/* ==========================================================================
   igorfleck.com — v2, dark editorial
   One typeface (Schibsted Grotesk), black and warm off-white, hairlines on a
   12-column grid. The only colour on the page comes from the work.
   ========================================================================== */

/* Schibsted Grotesk — variable 400–900, SIL Open Font License (assets/fonts/OFL-SchibstedGrotesk.txt) */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/SchibstedGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/SchibstedGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0b0b;
  --bg-2: #131312;
  --fg: #eeece7;
  --fg-2: #a6a39d;
  --fg-3: #67655f;
  --line: rgba(238, 236, 231, .14);
  --line-2: rgba(238, 236, 231, .26);

  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --m: clamp(16px, 2.2vw, 32px);          /* page margin */
  --g: clamp(12px, 1.4vw, 20px);          /* gutter */
  --col: calc((100vw - 2 * var(--m) - 11 * var(--g)) / 12);
  --hd: 64px;                              /* header height */

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
ol, ul { list-style: none; }
sup { font-size: .55em; vertical-align: top; position: relative; top: .1em; margin-left: .15em; font-feature-settings: "tnum"; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
::selection { background: var(--fg); color: var(--bg); }

.skip { position: absolute; left: var(--m); top: -60px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); }
.skip:focus { top: 12px; }

/* ---------- type primitives --------------------------------------------- */
.label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.label sup { color: var(--fg-3); }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 0;
  color: var(--fg);
}
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}
.link:hover::after { transform-origin: left; transform: scaleX(1); }
.link--out::before { content: '↗'; order: 2; font-size: .9em; transition: transform .4s var(--ease); }
.link--out:hover::before { transform: translate(2px, -2px); }

/* word-by-word rise, for headings marked data-split (js wraps the words) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 32ms + var(--d, 0s)); }
.is-in .w > span, .w.is-in > span { transform: none; }

/* hidden only when js/site.js is there to reveal it */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- header ------------------------------------------------------ */
.hd {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0;
  height: var(--hd);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  align-items: center;
  padding: 0 var(--m);
  font-size: 14px;
  font-weight: 500;
  color: #eeece7;
  mix-blend-mode: difference;            /* light over black, black over paper — no background needed */
  transition: transform .7s var(--ease);
}
.hd.is-hidden { transform: translateY(-100%); }
.hd__brand { grid-column: 1 / span 3; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.hd__brand svg { width: 11px; height: auto; fill: currentColor; }
.hd__col { grid-column: span 3; color: var(--fg-2); }
.hd__time time { color: var(--fg); margin-left: .3em; font-feature-settings: "tnum"; }
.hd__nav { grid-column: 10 / -1; display: flex; justify-content: flex-end; gap: 22px; }
.hd__nav a { position: relative; color: var(--fg-2); transition: color .3s; }
.hd__nav a:hover { color: var(--fg); }
.hd__nav sup { color: var(--fg-3); }
.hd__cta { color: var(--fg) !important; }
.hd__cta::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; }

/* ---------- hero -------------------------------------------------------- */
.hero {
  padding: calc(var(--hd) + clamp(36px, 7.5vh, 88px)) var(--m) clamp(24px, 4.5vh, 48px);
}
.hero__kicker { margin-bottom: clamp(18px, 2.6vh, 28px); }
.hero__title {
  max-width: 15.5em;
  font-size: clamp(42px, 5.9vw, 112px);
  line-height: .96;
  font-weight: 600;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__foot {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  margin-top: clamp(28px, 5vh, 56px);
  align-items: end;
}
.hero__sub { grid-column: 1 / span 5; font-size: 17px; color: var(--fg-2); max-width: 34em; text-wrap: pretty; }
.hero__sub .kw {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .3s;
}
@media (pointer: fine) { .hero__sub .kw:hover { text-decoration-color: currentColor; } }
.facts { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--g); }
.facts div { border-top: 1px solid var(--line-2); padding-top: 12px; }
.facts dt { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.facts dd { font-size: 15px; font-weight: 500; }
.facts a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.facts a:hover { background-size: 100% 1px; }

/* ---------- selected work ----------------------------------------------- */
.work__inner { padding: 0 var(--m) clamp(72px, 12vh, 140px); }
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}
.work__hint { color: var(--fg-3); }
.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--g);
  padding-top: clamp(8px, 1.6vh, 18px);
}

.work__list { grid-column: 1 / span 3; align-self: start; counter-reset: w; }
.work__item { border-bottom: 1px solid var(--line); }
.work__item:first-child { border-top: 1px solid var(--line); }
.work__item button {
  width: 100%;
  display: grid;
  grid-template-columns: 2.2em 1fr;
  align-items: baseline;
  text-align: left;
  padding: clamp(7px, 1.25vh, 12px) 0;
  color: var(--fg-3);
  transition: color .45s var(--ease);
}
.work__item .n { font-size: 12px; font-weight: 500; font-feature-settings: "tnum"; }
.work__item .t { font-size: clamp(16px, 1.45vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.work__item .k { grid-column: 2; font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .6s var(--ease); }
.work__item button:hover { color: var(--fg-2); }
.work__item.is-active button { color: var(--fg); }
.work__item.is-active .k { max-height: 2em; opacity: 1; margin-top: 6px; color: var(--fg-2); }

.work__stage { grid-column: 4 / -1; display: flex; flex-direction: column; min-height: 0; }
.work__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;                     /* the recordings' own shape: nothing cropped */
  overflow: hidden;
  background: var(--bg-2);
}
@media (pointer: fine) { .work__frame, .work__frame .slide { cursor: none; } }
.slide {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 112%, 100% 100%, 100% 100%, 0 100%);
  z-index: 1;
}
.slide.is-active { z-index: 3; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.slide.is-under { z-index: 2; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.slide.from-top { clip-path: polygon(0 0, 100% 0, 100% 0, 0 -12%); }
.slide.is-anim { transition: clip-path 1.05s var(--ease-io); }
.slide img, .slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}
.slide.is-active img, .slide.is-active video { transform: none; }
.slide video { opacity: 0; transition: opacity .6s, transform 1.4s var(--ease); }
.slide.is-playing video { opacity: 1; }
.work__frame button.slide { cursor: pointer; }

.work__cap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: var(--g);
  padding-top: 14px;
}
.work__cap-main { display: flex; align-items: baseline; gap: 12px; }
.work__cap-idx { font-size: 12px; font-weight: 500; color: var(--fg-3); font-feature-settings: "tnum"; }
.work__cap-name { font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.work__cap-meta { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-2); }
.work__cap-links { display: flex; gap: 22px; }
.work__cap-links { grid-column: 3; grid-row: 1; }
.work__cap-desc { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; max-width: 62ch; font-size: 15px; line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
.work__cap.is-swap .work__cap-name, .work__cap.is-swap .work__cap-meta, .work__cap.is-swap .work__cap-idx, .work__cap.is-swap .work__cap-desc { animation: capIn .8s var(--ease) both; }
.work__cap.is-swap .work__cap-desc { animation-delay: .06s; }

/* ---------- FAQ (native <details>) --------------------------------------------- */
.faq { position: relative; z-index: 5; }
.faq .sec-head { margin-bottom: clamp(36px, 6vh, 64px); }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: clamp(18px, 2.6vh, 26px) 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--fg);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-weight: 400; color: var(--fg-2); transition: transform .45s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { max-width: 62ch; padding: 0 0 clamp(20px, 3vh, 30px); font-size: 17px; color: var(--fg-2); text-wrap: pretty; }
.faq__item[open] p { animation: capIn .6s var(--ease) both; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.work__progress { height: 1px; margin-top: 12px; background: var(--line); overflow: hidden; }
.work__progress i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }

.work__cards { display: none; }

/* ---------- section heads ------------------------------------------------ */
section { position: relative; }
.services, .reviews, .contact { padding: clamp(96px, 16vh, 180px) var(--m) 0; }
.services { padding-bottom: clamp(160px, 30vh, 320px); }      /* room for the shutters to close over */
.faq { padding: clamp(96px, 16vh, 180px) var(--m) clamp(140px, 24vh, 260px); }   /* bottom: room for the paper sheet to lead Contact */
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: 20px; margin-bottom: clamp(48px, 8vh, 96px); }
.sec-head .label { grid-column: 1 / -1; }
.sec-title { grid-column: 1 / span 8; font-size: clamp(34px, 4.2vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.sec-intro { grid-column: 9 / -1; align-self: end; color: var(--fg-2); max-width: 26em; text-wrap: pretty; }
.sec-head--row { align-items: end; }
.sec-head--row > div { grid-column: 1 / span 8; display: grid; row-gap: 20px; }
.sec-head--row .sec-title { grid-column: auto; }

/* ---------- services ------------------------------------------------------ */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--g); }
.svc__item { border-top: 1px solid var(--line-2); padding-top: 18px; display: flex; flex-direction: column; }
.svc__num { font-size: 12px; font-weight: 500; color: var(--fg-3); font-feature-settings: "tnum"; margin-bottom: clamp(40px, 7vh, 80px); }
.svc__title { font-size: clamp(22px, 2vw, 32px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; margin-bottom: 14px; }
.svc__text { color: var(--fg-2); max-width: 24em; margin-bottom: 28px; text-wrap: pretty; }
.svc__tags { margin-top: auto; border-top: 1px solid var(--line); }
.svc__tags li { font-size: 14px; font-weight: 500; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--fg); }

/* ---------- statement (scrubbed words) ------------------------------------ */
.statement { padding: clamp(120px, 22vh, 240px) var(--m); }
.statement__text {
  max-width: 21em;
  font-size: clamp(30px, 3.6vw, 64px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.statement__text .sw { color: var(--fg-3); transition: color .35s linear; }
.statement__text .sw.on { color: var(--fg); }

/* ---------- reviews ------------------------------------------------------- */
.score { grid-column: 9 / -1; justify-self: end; text-align: right; display: grid; }
.score__num { font-size: clamp(56px, 6vw, 108px); line-height: .9; font-weight: 600; letter-spacing: -.05em; }
.score__lbl { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-2); margin-top: 10px; }
.quote blockquote { text-wrap: pretty; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; color: var(--fg-2); }
.quote figcaption strong { display: block; color: var(--fg); font-weight: 600; }
.quote figcaption img, .quote .ini { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.quote .ini { display: grid; place-items: center; font-size: 12px; font-weight: 600; background: #262523; color: var(--fg-2); }
.quote--lead { border-top: 1px solid var(--line-2); padding-top: clamp(28px, 5vh, 56px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
.quote--lead blockquote { grid-column: 1 / span 10; font-size: clamp(26px, 2.9vw, 50px); line-height: 1.12; font-weight: 500; letter-spacing: -.03em; }
.quote--lead figcaption { grid-column: 1 / -1; margin-top: 32px; }
.quote--lead figcaption img { width: 48px; height: 48px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--g); margin-top: clamp(64px, 11vh, 120px); }
.quotes .quote { border-top: 1px solid var(--line); padding-top: 20px; }
.quotes blockquote { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }

/* ---------- contact --------------------------------------------------------- */
.contact { padding-bottom: clamp(80px, 14vh, 140px); }
.contact .label { margin-bottom: 22px; }
.contact__title { font-size: clamp(48px, 8.4vw, 168px); line-height: .92; font-weight: 600; letter-spacing: -.055em; max-width: 9.5em; text-wrap: balance; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); margin-top: clamp(56px, 9vh, 104px); padding-top: 22px; border-top: 1px solid var(--line-2); }
.contact__info { grid-column: 1 / span 4; color: var(--fg-2); }
.contact__mail { display: inline-block; margin: 28px 0 10px; font-size: clamp(22px, 2vw, 32px); font-weight: 600; letter-spacing: -.03em; color: var(--fg); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 4px; }
.contact__note { font-size: 14px; color: var(--fg-3); }
.form { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); row-gap: 26px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-3); }
.field input, .field textarea {
  font: 500 18px/1.4 var(--font);
  color: var(--fg);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 6px 0 12px;
  resize: none;
  border-radius: 0;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.form__status { font-size: 14px; font-weight: 500; color: var(--fg-2); max-width: 30em; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--fg); }
.form__status a { color: var(--fg); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.form.is-sent .field, .form.is-sent .btn { opacity: .35; pointer-events: none; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 26px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background-color .3s, color .3s;
}
.btn:hover { background: var(--btn-hover, #fff); }
.btn span { transition: transform .4s var(--ease); }
.btn:hover span { transform: translateX(4px); }

/* ---------- footer ---------------------------------------------------------- */
.ft {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: var(--g);
  padding: 22px var(--m) 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
}
.ft__links { display: flex; gap: 18px; }
.ft a:hover { color: var(--fg); }
.ft time { color: var(--fg); font-feature-settings: "tnum"; }
.ft [data-top] { justify-self: end; }

/* ---------- live preview ---------------------------------------------------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
.viewer.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.viewer__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--g); height: var(--hd); padding: 0 var(--m); border-bottom: 1px solid var(--line); }
.viewer__title { font-size: 15px; }
.viewer__title span { color: var(--fg-3); font-size: 12px; font-weight: 500; margin-right: 8px; font-feature-settings: "tnum"; }
.viewer__title strong { font-weight: 600; }
.viewer__dev { display: flex; gap: 2px; }
.viewer__dev button { font-size: 13px; font-weight: 500; padding: 6px 12px; color: var(--fg-3); border: 1px solid transparent; transition: color .3s, border-color .3s; }
.viewer__dev button[aria-pressed="true"] { color: var(--fg); border-color: var(--line-2); }
.viewer__actions { display: flex; justify-content: flex-end; gap: 22px; }
.viewer__win {
  justify-self: center;
  width: calc(100% - 2 * var(--m));
  max-width: 1600px;
  margin: var(--g) 0 var(--m);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  min-height: 0;
  transition: max-width .8s var(--ease);
}
.viewer__win.is-mobile { max-width: 402px; }
.viewer__chrome { height: 34px; flex: none; display: grid; place-items: center; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--fg-3); }
.viewer__screen { position: relative; flex: 1; background: var(--bg-2); }
.viewer__screen > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: 50% 0; }
.viewer__screen iframe { background: #fff; opacity: 0; transition: opacity .5s; }
.viewer__screen iframe.is-ready { opacity: 1; }
.viewer__note { inset: auto auto 16px 16px !important; width: auto !important; height: auto !important; padding: 8px 12px; font-size: 12px; font-weight: 500; background: var(--bg); color: var(--fg-2); border: 1px solid var(--line-2); }

/* ==========================================================================
   Black / paper — the page alternates, and every change of colour is a
   transition built from the symbol's geometry (its two halves, its diagonal).
   ========================================================================== */
.theme-light {
  --bg: #eeece7;
  --bg-2: #e1dfd9;
  --fg: #0b0b0b;
  --fg-2: #4f4d48;
  --fg-3: #8b8881;
  --line: rgba(11, 11, 11, .14);
  --line-2: rgba(11, 11, 11, .28);
  --btn-hover: #2b2a27;
  background: var(--bg);
  color: var(--fg);
}
.theme-light .quote .ini { background: #dcd9d2; }

/* stacking: each colour change happens on a layer that sits between the section it covers and the
   section it leads into (the fixed .tb / .tu layers), so nothing adds empty scroll. */
.hero, .work { position: relative; z-index: 1; }
.tz { position: relative; z-index: 2; }
.services { z-index: 3; }
.tb { z-index: 4; }
.statement, .reviews { position: relative; z-index: 5; }
.tu { z-index: 6; }
.contact { z-index: 7; }
.ft { position: relative; z-index: 7; background: #0b0b0b; }

/* ---------- intro (first visit of a session) -------------------------------- */
.intro { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.is-intro, .is-intro body { overflow: hidden; }
.intro__half { position: absolute; inset: 0; background: #0b0b0b; transition: transform 1.05s var(--ease-io); }
.intro__half--a { clip-path: polygon(0 0, 100% 0, 100% 44%, 0 56.5%); }
.intro__half--b { clip-path: polygon(0 56.4%, 100% 43.9%, 100% 100%, 0 100%); }
.intro__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(36px, 3.4vw, 52px);
  aspect-ratio: 489 / 760;
  translate: -50% -50%;
  transition: transform 1.05s var(--ease-io);
}
.intro__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.intro__mark path { fill: #eeece7; opacity: 0; transition: transform .8s var(--ease), opacity .45s var(--ease); }
.intro__mark--a path { transform: translate(-260px, -360px); }
.intro__mark--b path { transform: translate(260px, 360px); }
.intro.is-playing .intro__mark path { transform: none; opacity: 1; }
.intro.is-split .intro__half--a, .intro.is-split .intro__mark--a { transform: translateY(-62vh); }
.intro.is-split .intro__half--b, .intro.is-split .intro__mark--b { transform: translateY(62vh); }

/* ---------- hero: the audiences fan out their projects ----------------------- */
.nb { white-space: nowrap; }
.kw .w > span { box-shadow: inset 0 -.055em 0 color-mix(in srgb, currentColor 32%, transparent); transition: box-shadow .4s var(--ease), color .4s; }
@media (pointer: fine) {
  .kw { cursor: pointer; }
  .kw:hover .w > span { box-shadow: inset 0 -.055em 0 currentColor; }
  .hero__title:has(.kw:hover) .w > span { color: var(--fg-3); }
  .hero__title .kw:hover .w > span { color: var(--fg); }
}
.kwp { position: fixed; left: 0; top: 0; z-index: 45; width: clamp(200px, 17vw, 280px); aspect-ratio: 16 / 10; pointer-events: none; }
.kwp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: translate(calc(var(--i) * 26px), calc(var(--i) * 14px)) rotate(var(--r)) scale(.55);
  transition: transform .55s var(--ease), opacity .3s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.kwp.is-on img { opacity: 1; transform: translate(calc(var(--i) * 26px), calc(var(--i) * 14px)) rotate(var(--r)) scale(1); }

/* ---------- "Live preview" badge, the cursor over the frame ------------------ */
.peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 46;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: #eeece7;
  color: #0b0b0b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  pointer-events: none;
  transform: scale(0);
  transition: transform .45s var(--ease);
}
.peek.is-on { transform: scale(1); }

/* ---------- T1: black → paper, a dive into the symbol ------------------------- */
.tz { height: 170vh; background: #0b0b0b; }
.tz__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #0b0b0b; }
.tz.is-full .tz__sticky { background: #eeece7; }
.tz__svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.tz__svg path { fill: #eeece7; }
.tz__label { position: absolute; left: 0; right: 0; top: calc(50% + 12vh + 22px); text-align: center; color: #a6a39d; }

/* ---------- T2: paper → black, slanted shutters ---------------------------------- */
.tb {
  position: fixed;
  inset: -12vh -8vw;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  visibility: hidden;
  transform: skewY(-7deg);
}
.tb i { flex: 1; margin-bottom: -3px; background: #0b0b0b; transform-origin: 50% 100%; transform: scaleY(0); }
.tb i:last-child { margin-bottom: 0; }

/* ---------- T3: black → paper, a sheet unfolding on the diagonal -------------- */
.tu { position: fixed; inset: 0; background: #eeece7; pointer-events: none; visibility: hidden; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }

/* ---------- frame → live preview: the image flies into the window -------------- */
.ghost {
  position: fixed;
  z-index: 95;
  overflow: hidden;
  transform-origin: 0 0;
  pointer-events: none;
  background: var(--bg-2);
}
.ghost img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ghost.is-flying { transition: transform .9s var(--ease-io); }
.viewer.is-landing .viewer__win { opacity: 0; }
.viewer__win { transition: max-width .8s var(--ease), opacity .25s; }

/* ==========================================================================
   Case studies (/work/<slug>/) — same type, grid and black/paper rhythm
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 5vh, 56px); color: var(--fg-3); }
.crumbs a { color: var(--fg-2); transition: color .3s; }
.crumbs a:hover { color: var(--fg); }
.case-hero { padding: calc(var(--hd) + clamp(32px, 6vh, 72px)) var(--m) clamp(32px, 5vh, 56px); }
.case-hero__kicker { margin-bottom: 18px; }
.case-hero__title { font-size: clamp(56px, 11vw, 220px); line-height: .88; font-weight: 600; letter-spacing: -.06em; }
.case-hero__lede { margin-top: clamp(24px, 4vh, 44px); max-width: 24em; font-size: clamp(22px, 2.2vw, 36px); line-height: 1.18; font-weight: 500; letter-spacing: -.025em; text-wrap: pretty; }
.case-facts { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--g); margin-top: clamp(36px, 6vh, 72px); }
.case-facts div { border-top: 1px solid var(--line-2); padding-top: 12px; }
.case-facts dt { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.case-facts dd { font-size: 15px; font-weight: 500; }
.case-facts .link { font-size: 15px; padding: 0; }

.case-media { margin: 0 var(--m); }
.case-media__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.case-media__frame img, .case-media__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.case-media__frame video { opacity: 0; transition: opacity .6s; }
.case-media__frame.is-playing video { opacity: 1; }
.case-media figcaption { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--fg-3); }

.case-block { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); padding: clamp(80px, 13vh, 160px) var(--m) 0; position: relative; z-index: 1; }
.case-block__title { grid-column: 1 / span 4; font-size: clamp(28px, 2.8vw, 48px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; }
.case-block__body { grid-column: 6 / -1; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.case-block__body > p + p { margin-top: 1em; }
.case-list { border-top: 1px solid var(--line-2); counter-reset: c; }
.case-list li { counter-increment: c; display: grid; grid-template-columns: 2.6em 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.case-list li::before { content: counter(c, decimal-leading-zero); font-size: 12px; font-weight: 500; color: var(--fg-3); padding-top: .45em; font-feature-settings: "tnum"; }
.case-list li span { color: var(--fg-2); }
/* the project timeline inside "The brief" */
.case-time { margin-top: 1.8em; border-top: 1px solid var(--line-2); font-size: .82em; }
.case-time li { display: grid; grid-template-columns: 7.5em 1fr; column-gap: 1em; padding: 11px 0; border-bottom: 1px solid var(--line); }
.case-time time { color: var(--fg-3); font-weight: 500; font-feature-settings: "tnum"; }
.case-time span { color: var(--fg); }
.case-time li:last-child span { font-weight: 600; }

.case-decisions { margin-top: clamp(96px, 16vh, 180px); padding: clamp(96px, 16vh, 180px) var(--m) clamp(64px, 10vh, 120px); position: relative; z-index: 2; }
.decision { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: start; padding: clamp(40px, 7vh, 80px) 0; border-top: 1px solid var(--line-2); }
.decision__img { grid-column: 1 / span 8; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .35); }
.decision__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.decision__text { grid-column: 10 / -1; }
.decision:nth-of-type(even) .decision__img { grid-column: 5 / -1; grid-row: 1; }
.decision:nth-of-type(even) .decision__text { grid-column: 1 / span 3; grid-row: 1; }
.decision__num { font-size: 12px; font-weight: 500; color: var(--fg-3); font-feature-settings: "tnum"; }
.decision__title { margin: 10px 0 12px; font-size: clamp(22px, 2vw, 32px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.decision__text p { color: var(--fg-2); text-wrap: pretty; }

.case-phones { padding: clamp(96px, 16vh, 180px) var(--m) 0; position: relative; z-index: 1; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); }
.phones img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: 50% 0; border-radius: clamp(18px, 2vw, 32px); border: 1px solid var(--line-2); background: var(--bg-2); }
.case-quote { padding: clamp(96px, 16vh, 180px) var(--m) 0; position: relative; z-index: 1; }
.case-next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); padding: clamp(96px, 16vh, 180px) var(--m) clamp(72px, 12vh, 120px); position: relative; z-index: 1; }
.case-next a { display: block; border-top: 1px solid var(--line-2); padding-top: 16px; }
.case-next .label { display: block; margin-bottom: 12px; }
.case-next strong { display: block; font-size: clamp(28px, 3.4vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -.04em; transition: transform .5s var(--ease); }
.case-next a:hover strong { transform: translateX(8px); }

/* work caption / cards: the case-study link */
.work__cap-case[hidden] { display: none; }
mark.todo { background: #ffe066; color: #0b0b0b; padding: 0 .25em; border-radius: 2px; }

@media (max-width: 900px) {
  .case-facts { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .case-block__title, .case-block__body { grid-column: 1 / -1; }
  .case-block__body { margin-top: 18px; }
  .decision__img, .decision__text,
  .decision:nth-of-type(even) .decision__img, .decision:nth-of-type(even) .decision__text { grid-column: 1 / -1; grid-row: auto; }
  .decision__text { margin-top: 18px; }
  .phones { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .phones img { scroll-snap-align: start; }
  .case-next { grid-template-columns: 1fr; row-gap: 40px; }
}

/* ---------- responsive ------------------------------------------------------- */
@media (max-width: 1180px) {
  .hd__col:not(.hd__time) { display: none; }
  .hd__time { grid-column: 5 / span 3; }
  .hd__nav { grid-column: 8 / -1; }
  .facts { grid-column: 6 / -1; }
}
@media (max-width: 900px) {
  :root { --hd: 56px; }
  .hd { grid-template-columns: 1fr auto; }
  .hd__brand { grid-column: auto; }
  .hd__time { display: none; }
  .hd__nav { grid-column: auto; gap: 16px; }
  .hd__nav a:not(.hd__cta) { display: none; }

  .hero__foot { display: block; }
  .hero__sub { margin-bottom: 32px; }
  .facts { grid-template-columns: 1fr; row-gap: 0; }
  .facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
  .facts dt { margin: 0; }

  .work__inner { display: none; }
  .work { padding: 24px var(--m) 48px; }
  .work__cards { display: block; border-top: 1px solid var(--line-2); }
  .card { padding: 18px 0 36px; }
  .card__idx { color: var(--fg-3); margin-bottom: 14px; font-feature-settings: "tnum"; }
  .card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
  .card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
  .card__media video { opacity: 0; transition: opacity .6s; }
  .card__media.is-playing video { opacity: 1; }
  .card__name { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-top: 14px; }
  .card__meta { font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-2); margin-top: 4px; }
  .card__desc { margin-top: 8px; max-width: 34em; font-size: 15px; line-height: 1.45; color: var(--fg-2); }
  .card__visit { margin-top: 10px; }

  .sec-head, .sec-head--row { display: block; }
  .sec-head > * + *, .sec-head--row > div > * + * { margin-top: 18px; }
  .sec-intro { margin-top: 18px; }
  .score { display: grid; text-align: left; justify-items: start; margin-top: 36px; }
  .svc, .quotes { grid-template-columns: 1fr; row-gap: 48px; }
  .quote--lead { display: block; }
  .contact__grid { display: block; }
  .form { margin-top: 48px; grid-template-columns: 1fr; }
  .ft { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .viewer__bar { grid-template-columns: 1fr auto; height: auto; padding: 12px var(--m); row-gap: 10px; }
  .viewer__dev { display: none; }
  .viewer__actions { gap: 16px; }
}

@media (max-width: 900px) {
  .tz { height: 150vh; }
  .kwp, .peek { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .w > span, [data-reveal] { transform: none !important; opacity: 1 !important; }
  .intro, .tz, .tb, .tu, .kwp, .peek { display: none !important; }   /* colours simply change at the section edge */
}
