/* Cognumen — Kasia Siwosz system (Satoshi + Playfair, #191917 / white) with the logo text colour as accent */
:root {
  --ink: #191917;
  --white: #FFFFFF;
  --soft: #F1F1EF;
  --line: #E2E2DE;
  --muted: #B0B0AB;      /* secondary headline tone on light */
  --muted-d: #5E5E59;    /* secondary headline tone on dark */
  --text-2: #6B6B66;     /* body secondary on light */
  --text-2d: #9C9C96;    /* body secondary on dark */
  --hi: #B3C9DE;         /* logo text colour */

  --sans: "Satoshi", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --gutter: clamp(16px, 3.2vw, 48px);
  --pad: clamp(56px, 7vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--ink); }
::selection { background: var(--hi); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--hi); color: var(--ink); text-decoration: none; }
.skip:focus { top: 12px; }

/* placeholders: marker highlight, so they read as "to fill" */
.ph { background: linear-gradient(transparent 55%, rgba(179, 201, 222, .8) 55%); font-style: italic; }

/* type scale */
.h-xl { font-size: clamp(44px, 6.4vw, 100px); font-weight: 500; line-height: .94; letter-spacing: -.06em; text-transform: uppercase; }
.h-lg { font-size: clamp(32px, 4.2vw, 64px); font-weight: 500; line-height: .98; letter-spacing: -.05em; text-transform: uppercase; }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-d); }
.idx { font-size: 13px; margin-bottom: clamp(24px, 3vw, 40px); }
.kicker { margin-top: 24px; font-size: 15px; font-weight: 500; }
.small { font-size: 14px; color: var(--text-2); max-width: 300px; margin-top: 16px; }
.hi { color: var(--hi); }
.paren { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: -.02em; color: var(--muted-d); }

/* sections */
.sec { position: relative; padding: var(--pad) var(--gutter); }
.dark { background: var(--ink); color: var(--white); }
.light { background: var(--white); }
.soft { background: var(--soft); }

/* header: one colour, inverted by blend mode over any section */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--gutter);
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.site-header a { pointer-events: auto; }
.hdr-tag { font-size: 12px; line-height: 1.25; font-weight: 500; }
.hdr-tag span { opacity: .6; }
.hdr-name { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.hdr-nav { display: flex; justify-content: flex-end; gap: 28px; font-size: 13px; font-weight: 500; }
.hdr-nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding: 2px 0; }
.hdr-nav a:hover { background-size: 100% 1px; }

.book {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 100;
  padding: 15px 22px; background: var(--hi); color: var(--ink);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.book:hover { background: var(--ink); color: var(--hi); box-shadow: 0 0 0 1px var(--hi); }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 120px var(--gutter) 140px; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 110%; object-fit: cover; filter: brightness(.5) saturate(1.05); will-change: transform; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,25,23,.35) 0%, rgba(25,25,23,0) 35%, rgba(25,25,23,.85) 100%); }
.hero-title { position: relative; text-align: center; font-size: clamp(46px, 9.4vw, 156px); font-weight: 500; line-height: .9; letter-spacing: -.065em; text-transform: uppercase; }
.hl { display: block; overflow: hidden; padding-bottom: .04em; }
.hl > span { display: inline-block; }
.hero-sub { position: absolute; left: var(--gutter); bottom: 36px; max-width: 340px; font-size: 14px; color: rgba(255,255,255,.78); }
.hero-scroll { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); font-size: 12px; color: rgba(255,255,255,.6); }
.js .hl > span { transform: translateY(105%); animation: lineUp 1.2s var(--ease) forwards; }
.js .hl-2 > span { animation-delay: .12s; }
.js .hl-3 > span { animation-delay: .24s; }
.js .hero-sub, .js .hero-scroll { opacity: 0; animation: fadeIn 1s var(--ease) .7s forwards; }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* 01 split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: end; }
.split-text { display: grid; gap: 32px; }
.split-text > p:first-child { font-size: 14px; color: var(--text-2); max-width: 340px; }

/* scroll-fill text */
.fill { font-size: clamp(22px, 2.4vw, 36px); font-weight: 500; line-height: 1.18; letter-spacing: -.03em; }
.fill-lg { font-size: clamp(26px, 3.3vw, 50px); max-width: 24ch; margin: clamp(56px, 8vw, 120px) 0 0 auto; text-align: left; }
.js .fill .w { color: var(--muted); transition: color .25s; }
.js .dark .fill .w { color: var(--muted-d); }
.js .fill .w.on { color: inherit; }

/* 02 */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 40px; justify-content: end; margin-top: 48px; font-size: 14px; color: var(--text-2); }

/* 03 method */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.steps { margin-top: 56px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); }
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.steps span { font-size: 13px; color: var(--hi); }
.steps h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.04em; text-transform: uppercase; margin-bottom: 6px; }
.steps p { font-size: 14px; color: var(--text-2d); max-width: 380px; }
.method { overflow: hidden; }
.stack-wrap { perspective: 1000px; display: grid; place-items: center; min-height: 420px; }
.stack { display: flex; flex-direction: column; font-size: clamp(60px, 8.6vw, 150px); font-weight: 900; line-height: .84; letter-spacing: -.06em; text-transform: uppercase; transform: rotateX(28deg) rotateZ(-28deg) skewX(-6deg); transform-style: preserve-3d; will-change: transform; }
.stack span:nth-child(2) { padding-left: .5em; }
.stack span:nth-child(3) { padding-left: .25em; }
.stack span:nth-child(4) { padding-left: .8em; color: var(--muted-d); }

/* 6/7 */
.num-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 48px); }
.num { font-family: var(--serif); font-weight: 400; font-size: clamp(150px, 30vw, 460px); line-height: .8; letter-spacing: -.06em; }
.num span { color: var(--muted); font-weight: 400; margin: 0 -.06em; }
.serif-cap { font-family: var(--serif); font-weight: 500; font-size: clamp(15px, 1.7vw, 26px); line-height: 1.08; text-transform: uppercase; color: var(--muted); justify-self: end; text-align: left; }
.serif-cap-b { justify-self: start; align-self: end; }
.num-text { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.num-text .fill-lg { margin: 0; max-width: 26ch; }

.ladder { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 80px); margin-top: clamp(40px, 5vw, 72px); padding-top: 32px; border-top: 1px solid var(--ink); }
.ladder-tabs { display: flex; flex-direction: column-reverse; gap: 6px; }
.ladder-tabs button { width: 88px; height: 48px; background: transparent; border: 1px solid var(--line); color: var(--text-2); font: 500 16px/1 var(--sans); letter-spacing: -.02em; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.ladder-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.ladder-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--hi); }
.ladder-panel { min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.ladder-level { font-size: 13px; color: var(--text-2); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.badge { background: var(--hi); color: var(--ink); padding: 4px 10px; font-size: 12px; font-weight: 700; }
.badge:empty { display: none; }
.ladder-panel h3 { font-size: clamp(28px, 3.6vw, 56px); font-weight: 500; line-height: .96; letter-spacing: -.05em; text-transform: uppercase; max-width: 18ch; }
.ladder-panel dl { display: flex; flex-wrap: wrap; gap: 16px 56px; margin-top: 28px; }
.ladder-panel dt { font-size: 12px; color: var(--text-2); }
.ladder-panel dd { font-weight: 500; }
.ladder-panel > * { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.ladder-panel.is-swapping > * { opacity: 0; transform: translateY(8px); }

/* 04 signs */
.signs { overflow: hidden; }
.stair { margin-top: 64px; max-width: 70%; }
.stair li { max-width: 300px; padding: 2px 0 2px 14px; border-left: 2px solid var(--ink); font-size: 15px; line-height: 1.35; margin-bottom: 28px; }
.stair li:nth-child(1) { margin-left: 0; }
.stair li:nth-child(2) { margin-left: 12%; }
.stair li:nth-child(3) { margin-left: 24%; }
.stair li:nth-child(4) { margin-left: 36%; }
.stair li:nth-child(5) { margin-left: 48%; }
.vertical { position: absolute; right: var(--gutter); bottom: var(--pad); writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(80px, 11vw, 190px); font-weight: 900; line-height: .85; letter-spacing: -.05em; color: #E6E6E2; }

/* photo band */
.photo-band { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--ink); }
.photo-band figure { aspect-ratio: 4 / 5; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-band figure:hover img { transform: scale(1.04); }
.band-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(64px, 13vw, 220px); font-weight: 900; line-height: .82; letter-spacing: -.065em; text-transform: uppercase; color: var(--hi); text-align: center; pointer-events: none; }

/* services */
.cover li { position: relative; padding: 20px 0 20px 28px; border-top: 1px solid var(--line); }
.cover li:last-child { border-bottom: 1px solid var(--line); }
.cover li::before { content: ""; position: absolute; left: 4px; top: 32px; width: 7px; height: 7px; background: var(--ink); transition: background .3s; }
.cover li:hover::before { background: var(--hi); box-shadow: 0 0 0 1px var(--ink); }
.cover h3 { font-size: clamp(20px, 2.3vw, 32px); font-weight: 500; line-height: 1; letter-spacing: -.045em; text-transform: uppercase; }
.cover p { font-size: 13px; color: var(--text-2); margin-top: 6px; }
#services .split { align-items: start; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(32px, 4vw, 56px); }
.rules li { border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.r-n { display: block; font-family: var(--serif); font-size: clamp(64px, 7vw, 112px); line-height: .9; color: var(--hi); margin-bottom: 28px; }
.rules h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; line-height: 1; letter-spacing: -.045em; text-transform: uppercase; margin-bottom: 16px; }
.rules p { font-size: 14px; color: var(--text-2d); max-width: 340px; }

/* about */
.about .kicker { margin: 0 0 28px; }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.about-photo { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-box { display: none; }
.no-photo .ph-box { display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--text-2); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.lbl { font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
.exp li { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; padding: 6px 0; }

/* test */
.test { text-align: center; overflow: hidden; }
.again { font-size: clamp(120px, 27vw, 440px); font-weight: 900; line-height: .78; letter-spacing: -.07em; text-transform: uppercase; color: #262624; margin-bottom: -.12em; }
.kicker-c { font-size: 15px; font-weight: 500; color: var(--hi); margin: 0 0 32px; position: relative; }
.qs li { font-size: clamp(20px, 2.6vw, 38px); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; text-transform: uppercase; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); transition: color .3s; }
.qs li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.qs li:hover { color: var(--hi); }
.test-yes { margin-top: 40px; font-size: 15px; color: var(--text-2d); }

/* process + contact */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: clamp(32px, 4vw, 56px); }
.process li { border-top: 1px solid var(--ink); padding-top: 18px; }
.process span { font-size: 13px; color: var(--text-2); }
.process h3 { font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; line-height: 1; letter-spacing: -.04em; text-transform: uppercase; margin: 32px 0 10px; }
.process p { font-size: 14px; color: var(--text-2); }

.talk-photo { display: grid; grid-template-columns: 168px 1fr; gap: 24px; align-items: end; margin: 32px 0 8px; }
.talk-photo img { width: 168px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.talk-photo figcaption { font-size: 15px; font-weight: 500; color: var(--text-2); max-width: 200px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.contact-links { margin-top: 40px; }
.contact-links a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.contact-links li:last-child a { border-bottom: 1px solid var(--line); }
.contact-links span { font-size: 13px; color: var(--text-2); }
.contact-links strong { font-weight: 500; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: grid; gap: 6px; }
.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 0; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--ink); box-shadow: 0 3px 0 var(--hi); }
.field [aria-invalid="true"] { border-bottom-color: #C03A1A; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn { padding: 16px 26px; background: var(--ink); color: #fff; border: 0; font: 700 14px/1 var(--sans); cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: var(--hi); color: var(--ink); }
.form-status { font-size: 14px; color: var(--text-2); }

/* footer */
.site-footer { padding: clamp(64px, 8vw, 120px) var(--gutter) 28px; overflow: hidden; }
.foot-word { font-size: 14.2vw; font-weight: 900; line-height: .78; letter-spacing: -.075em; text-transform: uppercase; margin-left: -.04em; white-space: nowrap; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; color: var(--text-2d); }
.foot-row a { text-decoration: none; color: #fff; }
.site-footer time { color: #fff; font-variant-numeric: tabular-nums; }
.site-footer .ph { color: var(--text-2d); background: none; text-decoration: underline dotted var(--hi); }

/* reveal (one system) */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 980px) {
  .split, .method-grid, .num-text, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stack-wrap { min-height: 300px; }
  .rules { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .stair { max-width: none; }
  .vertical { display: none; }
  .about-photo { max-width: 420px; }
}
@media (max-width: 680px) {
  .hdr-tag { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
  .hdr-nav { gap: 16px; font-size: 12px; }
  .hdr-nav a:nth-child(2) { display: none; }
  .hero-title { font-size: clamp(40px, 12vw, 64px); }
  .stack { font-size: 17vw; }
  .hero-sub { right: var(--gutter); bottom: 96px; }
  .hero-scroll { display: none; }
  .cols { grid-template-columns: 1fr; justify-content: start; }
  .fill-lg { margin-left: 0; }
  .num-grid { grid-template-columns: 1fr; justify-items: start; }
  .serif-cap, .serif-cap-b { justify-self: start; }
  .ladder { grid-template-columns: 1fr; }
  .ladder-tabs { flex-direction: row; }
  .ladder-tabs button { flex: 1; width: auto; }
  .stair li { margin-left: 0 !important; }
  .photo-band { grid-template-columns: 1fr 1fr; }
  .photo-band figure:last-of-type { display: none; }
  .about-cols, .contact-form { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process h3 { margin-top: 16px; }
  .book { left: var(--gutter); text-align: center; }
  .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .hl > span, .js .rv { transform: none; opacity: 1; }
  .js .hero-sub, .js .hero-scroll { opacity: 1; }
  .js .fill .w { color: inherit; }
}
