/* Iqra Batool — portfolio.
 * Palette: Burgundy Wine, Soft Cream, Deep Black. One landing page built from
 * stacked "sheets" that slide over a pinned hero, plus the case study pages.
 * Tokens first; every component reads the surface tokens, never raw colours. */

/* ------------------------------------------------------------------ tokens */
:root {
  --black: #0B0B0B;
  --black-raised: #171212;
  --wine: #5B0F18;
  --wine-deep: #450B12;
  --wine-lit: #8C2A35;
  --cream: #F8F1E7;
  --cream-deep: #ECE1D0;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --t-body: 1.0625rem;
  --t-lede: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --t-small: 0.9375rem;
  --t-label: 0.8125rem;
  --t-display: clamp(2.75rem, 1.3rem + 5.6vw, 6.5rem);
  --t-display-xl: clamp(3rem, 1.2rem + 7.4vw, 8.5rem);

  --container: 82rem;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --r-sheet: clamp(1.5rem, 1rem + 2vw, 3rem);
  --r-md: 0.875rem;
  --header-h: 96px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Surfaces. A section picks one; everything inside follows. */
.on-black {
  --bg: var(--black); --ink: var(--cream); --ink-soft: #CFC5B8; --ink-mute: #9C9086;
  --line: rgba(248, 241, 231, 0.14); --line-strong: rgba(248, 241, 231, 0.32);
  --slab-bg: var(--wine); --slab-ink: var(--cream);
  --btn-bg: var(--cream); --btn-ink: var(--black); --btn-hover-bg: var(--wine); --btn-hover-ink: var(--cream);
  --panel: var(--black-raised); --focus: var(--cream);
}
.on-cream {
  --bg: var(--cream); --ink: var(--black); --ink-soft: #3B3331; --ink-mute: #6A5E59;
  --line: rgba(11, 11, 11, 0.14); --line-strong: rgba(11, 11, 11, 0.4);
  --slab-bg: var(--wine); --slab-ink: var(--cream);
  --btn-bg: var(--black); --btn-ink: var(--cream); --btn-hover-bg: var(--wine); --btn-hover-ink: var(--cream);
  --panel: var(--cream-deep); --focus: var(--wine);
}
.on-wine {
  --bg: var(--wine); --ink: var(--cream); --ink-soft: #EBDCD2; --ink-mute: #D2B8B1;
  --line: rgba(248, 241, 231, 0.2); --line-strong: rgba(248, 241, 231, 0.45);
  --slab-bg: var(--cream); --slab-ink: var(--wine);
  --btn-bg: var(--cream); --btn-ink: var(--wine); --btn-hover-bg: var(--black); --btn-hover-ink: var(--cream);
  --panel: var(--wine-deep); --focus: var(--cream);
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--wine-lit) var(--black); scrollbar-width: thin; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.65;
  background: var(--black); color: var(--ink-soft);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { max-width: 68ch; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.15; }
::selection { background: var(--wine); color: var(--cream); }
.on-wine ::selection { background: var(--cream); color: var(--wine); }
:focus-visible { outline: 2px solid var(--focus, var(--cream)); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--wine-lit); border-radius: 999px; border: 2px solid var(--black); }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 300; padding: 0.75rem 1.1rem; border-radius: 999px;
  background: var(--cream); color: var(--black); font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink); }

/* Display type: tall, heavy, uppercase. Emphasis is a solid slab, never italics. */
.display {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: var(--t-display);
  line-height: 0.9; letter-spacing: -0.005em; color: var(--ink); text-wrap: balance;
}
.display--xl { font-size: var(--t-display-xl); line-height: 0.86; }
.display em, .hero__title em {
  font-style: normal; display: inline-block; white-space: nowrap; background: var(--slab-bg); color: var(--slab-ink);
  padding: 0.04em 0.14em 0; margin-block: 0.03em; line-height: 0.92;
}
@media (max-width: 600px) { .display em { white-space: normal; } }
/* Word masks used by the heading animation */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-top: 0.06em; margin-top: -0.06em; }
.wd > span { display: inline-block; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; pointer-events: none; transition: transform 0.6s var(--ease);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .container {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: 64px; padding: 0 0.5rem 0 1.3rem; border-radius: 999px; pointer-events: auto;
  max-width: calc(var(--container) + var(--gutter) * 2 - var(--gutter) * 2); color: var(--cream);
}
.site-header .container::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(11, 11, 11, 0.82); border: 1px solid rgba(248, 241, 231, 0.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
}
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.7rem; color: var(--cream); text-decoration: none; }
.brand svg { width: 20px; height: 32px; flex: none; }
.brand__name { font-family: var(--f-display); font-size: 1.55rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 0.15rem; }
.nav__link {
  display: block; padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 500;
  color: #CFC5B8; text-decoration: none; transition: color 0.3s var(--ease-soft), background-color 0.3s var(--ease-soft);
}
.nav__link:hover { color: var(--cream); background: rgba(248, 241, 231, 0.1); }
.nav__link.is-active { color: var(--cream); background: var(--wine); }
.nav-toggle { display: none; }

.btn-talk {
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; color: var(--cream); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.85rem; min-height: 48px; padding: 0 0.4rem 0 1.35rem; border-radius: 999px;
  background: rgba(248, 241, 231, 0.04); border: 1px solid rgba(248, 241, 231, 0.5);
  transition: background-color 0.45s var(--ease-soft), color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft), translate 0.6s var(--ease), scale 0.25s ease;
}
.btn-talk__icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--cream); color: var(--black);
  transition: background-color 0.45s var(--ease-soft), color 0.45s var(--ease-soft), transform 0.6s var(--ease);
}
.btn-talk__icon svg { width: 1.05rem; height: 1.05rem; }
.btn-talk:hover { background: var(--wine); border-color: var(--wine-lit); color: var(--cream); }
.btn-talk:hover .btn-talk__icon { transform: rotate(-45deg); }
.btn-talk:active { scale: 0.97; }

/* Desktop: logo left, menu centred in the pill, button right */
@media (min-width: 961px) {
  .nav { flex: 1; justify-content: flex-end; }
  .nav__list { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}
@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .site-header .container { height: 58px; padding-left: 1.1rem; margin-inline: var(--gutter); width: auto; flex: 1; }
  .nav-toggle {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; padding: 0 1rem;
    font-size: 0.9375rem; font-weight: 600; color: var(--cream);
  }
  .nav-toggle__bars { width: 22px; height: 10px; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease);
  }
  .nav-toggle__bars::before { top: 0; }
  .nav-toggle__bars::after { top: 8.5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4.25px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4.25px; transform: rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; background: var(--black);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2.5rem;
    visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
  }
  .nav.is-open { visibility: visible; clip-path: inset(0); transition: clip-path 0.7s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid rgba(248, 241, 231, 0.14); }
  .nav__link, .nav__link.is-active {
    border-radius: 0; background: none; padding: 0.55rem 0; color: var(--cream);
    font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.25rem, 1.5rem + 4vw, 3.25rem); line-height: 1;
  }
  .nav__link:hover { background: none; }
  .btn-talk { align-self: flex-start; padding: 0 0.45rem 0 1.6rem; min-height: 54px; }
}
@media (max-width: 380px) { .brand__name { font-size: 1.3rem; } }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.85rem 1.7rem; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-ink); border: 1px solid transparent;
  transition: background-color 0.45s var(--ease-soft), color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft), translate 0.6s var(--ease), scale 0.25s ease;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-ink); }
.on-black .btn:hover { border-color: var(--wine-lit); }
.btn:active { scale: 0.97; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn svg, .link-arrow svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.55s var(--ease); }
.btn:hover svg, .link-arrow:hover svg { transform: translateX(4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem; padding-bottom: 0.35rem; font-size: 0.9375rem; font-weight: 600;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s var(--ease-soft);
}
.link-arrow:hover { border-color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 500; line-height: 1; letter-spacing: 0.01em;
  padding: 0.45rem 0.75rem; border-radius: 999px; color: var(--ink); background: rgba(11, 11, 11, 0.04); border: 1px solid var(--line);
}
.svc-list .tags { margin-top: 0.4rem; }
.badge {
  display: inline-block; margin-right: 0.75rem; padding: 0.1rem 0.6rem; border-radius: 999px;
  background: var(--slab-bg); color: var(--slab-ink); font-size: 0.75rem; font-weight: 600;
}
.note {
  display: flex; gap: 1rem; padding: 1.1rem 1.4rem; margin-top: 1.5rem; max-width: 46rem; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line); font-size: var(--t-small);
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 0.2rem; color: var(--ink); }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; z-index: 1; min-height: 100svh; display: flex; overflow: hidden;
  background: var(--black); color: var(--ink-soft);
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42vmax 34vmax at var(--mx, 22%) var(--my, 38%), rgba(140, 42, 53, 0.5), transparent 68%),
    radial-gradient(36vmax 30vmax at 88% 86%, rgba(91, 15, 24, 0.55), transparent 70%);
}
.hero__inner {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(1.75rem, 4.5vh, 3.25rem); padding-top: calc(var(--header-h) + 0.5rem); padding-bottom: calc(var(--r-sheet) + clamp(4.25rem, 2.6rem + 5.4vw, 8rem));
}
.hero__stage { position: relative; --hero-fs: clamp(3rem, min(11.2vw, 17svh), 12rem); }
.hero__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: var(--hero-fs);
  line-height: 0.86; letter-spacing: -0.012em; color: var(--cream);
  display: flex; flex-direction: column; align-items: center;
}
.hero__line { display: flex; align-items: center; justify-content: center; gap: 0.14em; white-space: nowrap; }
.w { display: inline-block; overflow: hidden; padding-top: 0.07em; }
.w > span { display: inline-block; }
.tile { display: grid; place-items: center; flex: none; width: 0.72em; height: 0.72em; margin-top: 0.05em; }
.tile svg { width: 56%; height: 56%; stroke-width: 2; }
.tile--cream { background: var(--cream); color: var(--black); border-radius: 0.07em; }
.tile--wine { background: var(--wine); color: var(--cream); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--wine-lit); }
.tile--ring { color: var(--cream); border-radius: 50%; box-shadow: inset 0 0 0 0.022em var(--cream); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem; }
.hero__foot .lede { max-width: 44ch; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }

/* The last headline word rolls through three endings inside its slab */
.swap { overflow: hidden; vertical-align: top; transition: width 0.8s var(--ease); }
.swap__list { display: grid; }
.swap__list > span { grid-area: 1 / 1; justify-self: start; translate: 0 115%; transition: translate 0.9s var(--ease); }
.swap__list > span.is-on { translate: 0 0; }
.swap__list > span.is-off { translate: 0 -115%; }

/* A burgundy copy of the hero, shown through a circle that follows the pointer */
.hero__mask {
  position: absolute; inset: 0; z-index: 1; display: flex; pointer-events: none; background: var(--wine);
  clip-path: circle(var(--lr, 0px) at var(--lx, 50%) var(--ly, 50%));
}
.hero__mask .hero__title, .hero__mask .hero__foot .lede { color: var(--cream); }
.hero__mask .tile--cream { background: var(--black); color: var(--cream); }
.hero__mask .tile--wine { background: var(--cream); color: var(--wine); box-shadow: none; }

/* Services run along the bottom edge of the hero */
.marquee {
  position: absolute; left: 0; right: 0; bottom: calc(var(--r-sheet) + 0.9rem); z-index: 2; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__group {
  display: flex; align-items: center; gap: 0.42em; padding-right: 0.42em; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: 1;
  font-size: clamp(2.25rem, 1.3rem + 3.9vw, 5rem); color: transparent; -webkit-text-stroke: 1px rgba(248, 241, 231, 0.6);
}
.marquee__group svg { width: 0.42em; height: 0.42em; flex: none; fill: var(--wine-lit); stroke: var(--wine-lit); }
@keyframes marquee { to { transform: translateX(-50%); } }
@supports not (-webkit-text-stroke: 1px #000) { .marquee__group { color: rgba(248, 241, 231, 0.35); } }
/* Pin the hero so the first sheet slides over it (only when it fits the screen) */
@media (min-width: 900px) and (min-height: 600px) {
  .hero { position: sticky; top: 0; height: 100svh; }
  .hero.is-covered { visibility: hidden; }
}
@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__inner { justify-content: center; padding-top: calc(var(--header-h) + 2rem); }
  .hero__stage { --hero-fs: clamp(2.5rem, 13.6vw, 6rem); }
  .hero__title { align-items: flex-start; }
  .hero__line { justify-content: flex-start; }
}

/* ------------------------------------------------------------------ sheets */
.stack { position: relative; z-index: 2; }
.sheet {
  position: relative; background: var(--bg); color: var(--ink-soft);
  margin-top: calc(var(--r-sheet) * -1);
  padding-block: var(--section) calc(var(--section) + var(--r-sheet));
}
.stack > .sheet:first-child { box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.9); }
.sheet.on-black { border-top: 1px solid var(--line); }
.sheet__head {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 1.5rem 4rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.sheet__head p { font-size: var(--t-lede); line-height: 1.5; max-width: 38ch; justify-self: end; }
@media (max-width: 860px) { .sheet__head { grid-template-columns: 1fr; } .sheet__head p { justify-self: start; } }

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem 5rem; align-items: start; }
.about .display { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.25rem); }
.about__text { display: grid; gap: 1.25rem; padding-top: 0.5rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); border-top: 1px solid var(--line-strong); }
.facts > div { display: flex; flex-direction: column-reverse; gap: 0.5rem; padding: 1.75rem 1.5rem 0 0; }
.facts > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--t-small); color: var(--ink-mute); }
.facts dd {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: 0.9; color: var(--ink);
  font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5.5rem); font-variant-numeric: tabular-nums;
}
.facts dd.facts__text { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1; align-self: stretch; display: flex; align-items: flex-end; min-height: 1.9em; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-top: 1.75rem; border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------- accordion */
.acc { border-top: 1px solid var(--line-strong); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__heading { font: inherit; }
.acc__head {
  width: 100%; display: grid; align-items: center; gap: 1rem 2rem; text-align: left; padding: clamp(1.25rem, 1rem + 1vw, 2rem) 0;
  grid-template-columns: minmax(0, 1fr) 2.75rem; color: var(--ink);
}
.acc__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: 0.95; color: var(--ink);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); transition: translate 0.6s var(--ease), color 0.3s var(--ease-soft);
}
.acc__head:hover .acc__title { translate: 0.5rem 0; }
.on-cream .acc__head:hover .acc__title, .on-cream .acc__item.is-open .acc__title { color: var(--wine); }
.acc__sign {
  position: relative; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-strong); justify-self: end;
  transition: background-color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft), transform 0.6s var(--ease);
}
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 1.5px; margin: -0.75px 0 0 -0.45rem;
  background: var(--ink); transition: transform 0.6s var(--ease), background-color 0.45s var(--ease-soft);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__head:hover .acc__sign, .acc__item.is-open .acc__sign { background: var(--slab-bg); border-color: var(--slab-bg); }
.acc__head:hover .acc__sign::before, .acc__head:hover .acc__sign::after,
.acc__item.is-open .acc__sign::before, .acc__item.is-open .acc__sign::after { background: var(--slab-ink); }
.acc__item.is-open .acc__sign { transform: rotate(180deg); }
.acc__item.is-open .acc__sign::after { transform: rotate(0deg); }
.acc__inner { padding-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
/* With JavaScript the panels collapse; without it they simply stay open. */
.js .acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.js .acc__inner { overflow: hidden; min-height: 0; padding-bottom: 0; visibility: hidden; transition: visibility 0s linear 0.7s; }
.js .acc__inner > * { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.js .acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.js .acc__item.is-open .acc__inner { visibility: visible; transition-delay: 0s; }

/* Services */
.acc--services .acc__head { grid-template-columns: 3.5rem minmax(0, 1.15fr) minmax(0, 1fr) 2.75rem; }
.acc--services .acc__title { font-weight: 900; font-size: clamp(1.9rem, 1.1rem + 2.9vw, 3.75rem); line-height: 0.92; }
.acc__summary { font-size: var(--t-small); line-height: 1.55; color: var(--ink-soft); max-width: 44ch; }
.acc__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; background: var(--black); color: var(--cream); border-radius: 0.4rem; }
.acc__icon svg { width: 1.5rem; height: 1.5rem; }
.acc__item:nth-child(2) .acc__icon { background: var(--wine); border-radius: 50%; }
.acc__item:nth-child(3) .acc__icon { background: transparent; color: var(--black); border: 1.5px solid var(--black); border-radius: 50%; }
.svc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 2.5rem; padding: 0.5rem 0 0 calc(3.5rem + 2rem); }
.svc-list > li { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.svc-list h4 { font-size: 1.0625rem; font-weight: 600; }
.svc-list p { font-size: var(--t-small); line-height: 1.55; }
@media (max-width: 1000px) {
  .acc--services .acc__head { grid-template-columns: 3rem minmax(0, 1fr) 2.75rem; }
  .acc__summary { grid-column: 2 / -1; grid-row: 2; }
  .acc__icon { width: 3rem; height: 3rem; }
  .svc-list { grid-template-columns: 1fr 1fr; padding-left: 0; }
}
@media (max-width: 600px) {
  .svc-list { grid-template-columns: 1fr; }
  .acc--services .acc__head { grid-template-columns: minmax(0, 1fr) 2.75rem; }
  .acc__icon { display: none; }
  .acc__summary { grid-column: 1 / -1; }
}

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem 5rem; align-items: start; }
.faq__head { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.faq__head p { font-size: var(--t-lede); line-height: 1.5; max-width: 30ch; }
.acc--faq .acc__inner p { max-width: 60ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* ----------------------------------------------------------------- process */
.flow { margin-top: clamp(1rem, 3vw, 3rem); }
.flow__wave { height: 120px; color: var(--cream); }
.flow__wave svg { width: 100%; height: 100%; overflow: visible; }
.flow__steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.flow__step { position: relative; display: grid; align-content: start; gap: 0.6rem; padding: 1.25rem 1.5rem 0 0; }
.flow__dot {
  position: absolute; left: 0; top: -30px; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 0 6px var(--wine), 0 0 0 7px rgba(248, 241, 231, 0.45);
}
.flow__step:nth-child(even) .flow__dot { top: -90px; }
.flow__step:first-child .flow__dot { margin-left: 0; }
.flow__num { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.flow__step h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: 0.95; }
.flow__step p { font-size: var(--t-small); line-height: 1.55; }
@media (max-width: 1100px) {
  .flow__wave { display: none; }
  .flow__steps { grid-template-columns: 1fr 1fr; gap: 0 2.5rem; border-top: 1px solid var(--line-strong); }
  .flow__step { padding: 1.75rem 0 1.75rem 2rem; border-bottom: 1px solid var(--line); }
  .flow__dot, .flow__step:nth-child(even) .flow__dot { top: 2.3rem; left: 0; margin-left: 0; width: 11px; height: 11px; box-shadow: none; }
}
@media (max-width: 640px) { .flow__steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- work */
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 2rem + 4vw, 6rem) clamp(1.5rem, 1rem + 3vw, 4rem); }
.plate:nth-child(even) { margin-top: clamp(3rem, 8vw, 9rem); }
.plate__media {
  position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line);
}
.plate__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.plate:hover .plate__media img { scale: 1.05; }
.plate__view {
  position: absolute; right: 1.25rem; bottom: 1.25rem; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--wine); color: var(--cream); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  scale: 0; rotate: -45deg; transition: scale 0.6s var(--ease), rotate 0.6s var(--ease);
}
.plate__view svg { width: 1.4rem; height: 1.4rem; rotate: -45deg; }
.plate:hover .plate__view, .plate:focus-within .plate__view { scale: 1; rotate: 0deg; }
.plate__body { display: grid; justify-items: start; gap: 0.6rem; padding-top: 1.5rem; }
.plate__cats { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.plate__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 0.92; }
.plate__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.7s var(--ease); }
.plate:hover .plate__title a { background-size: 100% 2px; }
.plate__sub { color: var(--ink-soft); margin-bottom: 0.6rem; }
@media (max-width: 760px) { .plates { grid-template-columns: 1fr; } .plate:nth-child(even) { margin-top: 0; } }

/* ----------------------------------------------------------------- contact */
.contact__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2.5rem 4rem; margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.contact__side { display: grid; gap: 1.5rem; justify-items: start; }
.contact__side .lede { max-width: 40ch; color: var(--ink-soft); }
.contact__mail {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: 1; color: var(--ink);
  font-size: clamp(1.5rem, 0.9rem + 2.9vw, 3.5rem); overflow-wrap: anywhere; text-decoration: none; padding-bottom: 0.18em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size 0.7s var(--ease);
}
.contact__mail:hover { background-size: 0 2px; background-position: 100% 100%; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 1.5rem; min-height: 5rem; padding: 0 0.75rem 0 2.25rem; border-radius: 999px;
  font-size: 1.25rem; font-weight: 600; text-decoration: none; background: var(--cream); color: var(--wine);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  transition: background-color 0.45s var(--ease-soft), color 0.45s var(--ease-soft), translate 0.6s var(--ease), scale 0.25s ease;
}
.btn-cta__icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: none; background: var(--wine); color: var(--cream);
  transition: background-color 0.45s var(--ease-soft), color 0.45s var(--ease-soft), transform 0.6s var(--ease);
}
.btn-cta__icon svg { width: 1.35rem; height: 1.35rem; }
.btn-cta:hover { background: var(--black); color: var(--cream); }
.btn-cta:hover .btn-cta__icon { background: var(--cream); color: var(--black); transform: rotate(-45deg); }
.btn-cta:active { scale: 0.97; }
.social { display: flex; gap: 0.5rem; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: background-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft); }
.social a:hover { background: var(--slab-bg); color: var(--slab-ink); }
.social svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 600px) { .btn-cta { min-height: 4.25rem; font-size: 1.0625rem; padding-left: 1.75rem; gap: 1rem; } .btn-cta__icon { width: 3rem; height: 3rem; } }

/* ------------------------------------------------------------------ footer */
.site-footer {
  position: relative; z-index: 2; background: var(--black); color: var(--ink-soft); overflow: hidden;
  margin-top: calc(var(--r-sheet) * -1); padding-top: clamp(3rem, 2rem + 4vw, 5rem);
}
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 2.5rem 5rem; align-items: start; }
.footer__line { font-size: var(--t-lede); line-height: 1.45; color: var(--ink); max-width: 30ch; }
.footer__nav { display: grid; grid-template-columns: auto auto; gap: 0.5rem 2.5rem; }
.footer__nav a, .footer__contact a { text-decoration: none; color: var(--ink-soft); transition: color 0.3s var(--ease-soft); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--cream); text-decoration: underline; }
.footer__contact { display: grid; gap: 0.75rem; justify-items: start; }
.footer__mark {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; white-space: nowrap; text-align: center; max-width: none;
  font-size: clamp(3.5rem, 16.4vw, 16.5rem); line-height: 0.8; letter-spacing: -0.01em; color: var(--wine-lit);
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); user-select: none;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.5rem; margin-top: clamp(1rem, 2vw, 2rem); border-top: 1px solid var(--line); font-size: var(--t-label); color: var(--ink-mute);
}
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--t-label); font-weight: 600; color: var(--ink-soft); transition: color 0.3s var(--ease-soft); }
.to-top:hover { color: var(--cream); }
.to-top svg { width: 1rem; height: 1rem; transition: transform 0.55s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__line { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- case study */
.case-top { position: relative; overflow: hidden; background: var(--black); color: var(--ink-soft); padding: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem)) 0 calc(var(--section) * 0.7 + var(--r-sheet)); }
.case-top .container { position: relative; }
.case-hero { display: grid; gap: 1.25rem; justify-items: start; }
.case-hero__sub { font-size: var(--t-lede); color: var(--ink); max-width: 40ch; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: var(--t-small); color: var(--ink-mute); margin-bottom: 0.75rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.6rem; opacity: 0.6; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--cream); text-decoration: underline; }
.case-figure { margin-top: clamp(2.5rem, 5vw, 4.5rem); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.case-figure img { width: 100%; }
.case-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem 5rem; align-items: start; }
.case-meta { display: grid; gap: 0; position: sticky; top: calc(var(--header-h) + 1rem); border-top: 1px solid var(--line-strong); }
.case-meta > div { display: grid; gap: 0.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.case-meta dd { color: var(--ink); }
.case-body { display: grid; gap: clamp(2.5rem, 4vw, 4rem); }
.case-body section { display: grid; gap: 1.1rem; }
.case-body h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 0.95; }
.case-body p { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-soft); }
.steps { counter-reset: step; display: grid; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; color: var(--wine); padding-top: 0.3rem; font-variant-numeric: tabular-nums; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--line-strong); }
.pager a { display: grid; gap: 0.4rem; padding-top: 1.5rem; text-decoration: none; }
.pager a span:first-child { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.pager a span:last-child { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1; color: var(--ink); transition: color 0.3s var(--ease-soft); }
.pager a:hover span:last-child { color: var(--wine); }
.pager__next { text-align: right; justify-items: end; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem 5rem; align-items: end; }
.cta__side { display: grid; gap: 1.75rem; justify-items: start; }
@media (max-width: 860px) {
  .case-layout, .cta__inner { grid-template-columns: 1fr; }
  .case-meta { position: static; }
}
@media (max-width: 520px) { .pager { grid-template-columns: 1fr; } .pager__next { text-align: left; justify-items: start; } }

/* --------------------------------------------------------------------- 404 */
.nf { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-items: center; background: var(--black); color: var(--ink-soft); padding: calc(var(--header-h) + 2rem) 0 calc(4rem + var(--r-sheet)); }
.nf__grid { position: relative; display: grid; gap: 1rem; }
.nf__code { font-family: var(--f-display); font-weight: 900; font-size: clamp(8rem, 30vw, 26rem); line-height: 0.78; color: var(--wine); max-width: none; user-select: none; }
.nf__text { display: grid; gap: 1.5rem; justify-items: start; }
.nf__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }

/* ------------------------------------------------------------------ motion */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none;
  background: var(--cream); box-shadow: 0 1px 0 var(--black); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .scroll-progress { display: none; }
}
@media print {
  .site-header, .scroll-progress, .hero__glow, .to-top { display: none !important; }
  .hero { position: static; height: auto; min-height: 0; }
  .sheet, .site-footer { margin-top: 0; border-radius: 0; }
}
