/* ==========================================================================
   AhabDev — "White Cube Gallery"
   A quiet, near-monochrome, museum-like shell. The artwork carries all the
   visual weight; the design only frames it.

   Contents
   --------
   01. Tokens & base
   02. Typography & utilities
   03. Buttons & badge
   04. Navigation (+ mobile overlay)
   05. Hero
   06. Sections & heads
   07. Work grid (wall labels, frames)
   08. Services rows
   09. Info page (bio, at-a-glance, chips, process)
   10. Case study (title block, media frames, spec sheet, gallery)
   11. Lightbox
   12. CTA
   13. Footer
   14. Floating contact
   15. Reveals & motion
   16. Responsive
   ========================================================================== */


/* --------------------------------------------------------------------------
   01. Tokens & base
   -------------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --ink: #151517;
  --ink-soft: #4b4b52;          /* long-form body text */
  --muted: #87878d;
  --hairline: #e9e9ec;
  --hairline-strong: #d9d9de;
  --accent: #151517;            /* the accent is black */
  --note: #3557ff;              /* single whisper of colour — dots only */

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;

  --section-pad: clamp(5rem, 10vw, 9rem);
  --ease: cubic-bezier(.2, .6, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

::selection { background: var(--ink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Scroll locks for menu / lightbox */
html.menu-open,
html.lightbox-open { overflow: hidden; }


/* --------------------------------------------------------------------------
   02. Typography & utilities
   -------------------------------------------------------------------------- */

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Museum wall-label register: small caps, tracked out, quiet */
.label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6em 1.2em;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.skip-link:focus { top: 0.75rem; }


/* --------------------------------------------------------------------------
   03. Buttons & badge
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 1em 1.8em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease),
              color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.btn--solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--solid:hover { background: #000; border-color: #000; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

/* Availability badge — the blue dot is the one colour note on the page */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.6em 1em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--note);
  flex: none;
}


/* --------------------------------------------------------------------------
   04. Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.3s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Hamburger — two hairlines, folds into a cross */
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0.75rem 0.25rem;
  margin-right: -0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }

html.menu-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
html.menu-open .nav-toggle span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* Full-white mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--bg);
  padding: calc(var(--nav-h) + 2.5rem) clamp(1.25rem, 6vw, 2.5rem) 2.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}

.nav-overlay nav { display: flex; flex-direction: column; }

.nav-overlay a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-overlay a:first-child { border-top: 1px solid var(--hairline); }

.nav-overlay .overlay-no {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}


/* --------------------------------------------------------------------------
   05. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.hero-kicker { margin-bottom: 1.75rem; }

.hero-title {
  font-size: clamp(2.2rem, 1.1rem + 4.4vw, 4rem);
  font-weight: 800;
  max-width: 22ch;
}

.hero-sub {
  margin-top: 1.75rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero-meta { margin-top: 2.25rem; }

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


/* --------------------------------------------------------------------------
   06. Sections & heads
   -------------------------------------------------------------------------- */

.section { padding-top: var(--section-pad); }
.section--pad-bottom { padding-bottom: var(--section-pad); }

/* Work leads straight out of the hero — the art is the hero */
.section--work { padding-top: clamp(2rem, 4vw, 3.5rem); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .label { color: var(--ink); }
.section-head .label + .label { color: var(--muted); text-align: right; }


/* --------------------------------------------------------------------------
   07. Work grid — uniform frames, wall labels below
   -------------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(3rem, 5vw, 4.5rem);
}

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tile figure { margin: 0; }

/* The frame: hairline border, soft ground while loading, no overlays */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.tile:hover .frame img,
.tile:focus-visible .frame img { transform: scale(1.02); }

/* Featured piece — 2×2 in the grid, everything else stays uniform */
.tile--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.tile--featured figure {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tile--featured .frame {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}

/* Wall label — like a museum caption card */
.wall-label {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-top: 0.9rem;
}

.wall-label-no {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex: none;
}

.wall-label-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.wall-label-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s var(--ease);
}

.tile:hover .wall-label-title,
.tile:focus-visible .wall-label-title { text-decoration-color: var(--ink); }

.wall-label-cat {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.wall-label-arrow {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--ink);
  transition: transform 0.25s var(--ease);
}

.tile:hover .wall-label-arrow { transform: translateX(4px); }


/* --------------------------------------------------------------------------
   08. Services — numbered hairline rows
   -------------------------------------------------------------------------- */

.service-rows { border-bottom: 1px solid var(--hairline); }

.service-row {
  display: grid;
  grid-template-columns: 5rem 1fr 1.5fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}

.service-no {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.service-title {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.service-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 34rem;
}

/* Quiet trailing link: "How I work →" */
.more-link { margin-top: 2.5rem; }

.more-link a {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.35em;
  transition: opacity 0.2s var(--ease);
}
.more-link a:hover { opacity: 0.55; }

.more-link .arrow { display: inline-block; margin-left: 0.5em; }


/* --------------------------------------------------------------------------
   09. Info page
   -------------------------------------------------------------------------- */

.page-head {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-head .label { margin-bottom: 1.75rem; }

.page-title {
  font-size: clamp(2.2rem, 1.1rem + 4.4vw, 4rem);
  font-weight: 800;
  max-width: 20ch;
}

.page-sub {
  margin-top: 1.5rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Bio beside the at-a-glance list */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.bio p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 38rem;
}
.bio p + p { margin-top: 1.5rem; }
.bio p:first-child { color: var(--ink); }

.glance { margin: 0; }
.glance .label { margin-bottom: 0.5rem; }

.glance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--hairline);
}
.glance-row:first-of-type { border-top: 1px solid var(--hairline); }

.glance-row dt {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.glance-row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: right;
}

/* Capabilities — hairline chips, no icons */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  padding: 0.5em 1em;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Process 01–06 */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.process li {
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
}

.process .step-no {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.process h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}


/* --------------------------------------------------------------------------
   10. Case study (character.html)
   -------------------------------------------------------------------------- */

.back-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.back-link:hover { color: var(--ink); }
.back-link .arrow { transition: transform 0.25s var(--ease); }
.back-link:hover .arrow { transform: translateX(-4px); }

.case-head {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.case-head .label { margin-bottom: 1.5rem; }

.case-title {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.5rem);
  font-weight: 800;
}

.case-sub {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Media frames — lead image, video */
.media-figure { margin: 0; }

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  aspect-ratio: 16 / 9;
}

.media-frame img,
.media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-frame img { object-fit: cover; }

/* Spec sheet — quiet definition list, hairline rows */
.spec {
  margin: 0;
  max-width: 46rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.spec-row:first-of-type { border-top: 1px solid var(--hairline); }

.spec-row dt {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.spec-row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Case gallery — uniform 2-col, numbered wall labels, click → lightbox */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(2.5rem, 5vw, 4rem);
}

.frame--wide { aspect-ratio: 4 / 3; }

.case-end {
  margin-top: var(--section-pad);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: center;
}


/* --------------------------------------------------------------------------
   11. Lightbox — white overlay, black controls
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.5rem, 8vw, 5rem) clamp(4rem, 10vw, 6rem);
}

.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-image {
  max-width: min(100%, 1100px);
  max-height: 76vh;
  width: auto;
  height: auto;
  border: 1px solid var(--hairline-strong);
  background: #fff;
}

.lightbox-counter {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.lightbox-btn {
  appearance: none;
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease),
              color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.lightbox-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.lightbox-close { position: absolute; top: 1.1rem; right: 1.25rem; }
.lightbox-prev  { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); }


/* --------------------------------------------------------------------------
   12. CTA
   -------------------------------------------------------------------------- */

.cta {
  margin-top: var(--section-pad);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.cta h2 {
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
  font-weight: 800;
}


/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.footer-wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.footer-note {
  margin-top: 0.9rem;
  max-width: 24rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-col .label { margin-bottom: 1.1rem; }

.footer-col a {
  display: block;
  width: fit-content;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.footer-col a:hover { border-bottom-color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--hairline);
  padding-block: 1.4rem;
}

.footer-bottom p {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}


/* --------------------------------------------------------------------------
   14. Floating contact — white pill, inverts on hover
   -------------------------------------------------------------------------- */

.contact-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0.8em 1.4em;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s var(--ease),
              color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.contact-fab svg { width: 15px; height: 15px; flex: none; }

.contact-fab:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}


/* --------------------------------------------------------------------------
   15. Reveals & motion
   -------------------------------------------------------------------------- */

/* Only hide things when JS is confirmed present */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html.js [data-reveal="2"] { transition-delay: 0.08s; }
html.js [data-reveal="3"] { transition-delay: 0.16s; }
html.js [data-reveal="4"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .frame img,
  .wall-label-arrow,
  .back-link .arrow,
  .nav-overlay,
  .nav-toggle span { transition: none; }

  .tile:hover .frame img,
  .tile:focus-visible .frame img { transform: none; }
}


/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }

  .tile--featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .tile--featured .frame {
    flex: none;
    aspect-ratio: 16 / 10;
  }

  .service-row { grid-template-columns: 3.5rem 1fr; }
  .service-desc { grid-column: 2; }

  .about-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }

  .tile--featured .frame,
  .frame { aspect-ratio: 1 / 1; }

  .case-gallery { grid-template-columns: 1fr; }
  .frame--wide { aspect-ratio: 4 / 3; }

  .process { grid-template-columns: 1fr; }

  .spec-row { grid-template-columns: 1fr; gap: 0.3rem; }

  .glance-row dd { text-align: left; }
  .glance-row { flex-direction: column; gap: 0.25rem; align-items: flex-start; }

  .lightbox { padding: 4.5rem 1rem 6rem; }
  .lightbox-prev { left: auto; right: calc(50% + 0.5rem); top: auto; bottom: 1.1rem; transform: none; }
  .lightbox-next { right: auto; left: calc(50% + 0.5rem); top: auto; bottom: 1.1rem; transform: none; }

  .hero-actions .btn { flex: 1; justify-content: center; }
}


/* --------------------------------------------------------------------------
   17. Contact page — dense info handling
   Pattern: "short version" focus boxes up top (anchor-linked), then the full
   terms as quiet editorial rows. Boxes = --bg-soft + hairline, still flat.
   -------------------------------------------------------------------------- */

/* Intro: lede + actions beside an at-a-glance list (reuses .glance) */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.handle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.handle b { color: var(--ink); font-weight: 600; }

/* "The short version" — focus boxes */
.keypoints {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}

.keypoint {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.keypoint:hover { border-color: var(--ink); background: #fff; }

.keypoint .label { color: var(--ink); }

.keypoint p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.keypoint-go {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.keypoint:hover .keypoint-go { color: var(--ink); }

/* Full terms — editorial rows: number / title / body */
.term-rows { border-bottom: 1px solid var(--hairline); }

.term-row {
  display: grid;
  grid-template-columns: 5rem 1fr 1.5fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.term-no {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 0.35rem;
}

.term-title {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.term-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 40rem;
}

.term-body p { margin: 0 0 1rem; }
.term-body p:last-child { margin-bottom: 0; }
.term-body strong { color: var(--ink); font-weight: 600; }

/* Sub-label inside a clause (e.g. the three ownership cases) */
.term-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 1.5rem 0 0.45rem;
}
.term-body .term-sub:first-child { margin-top: 0; }

/* Boxed emphasis inside a clause — the "focus on it" treatment */
.callout {
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--ink);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin: 1.1rem 0;
  color: var(--ink);
  font-weight: 500;
}
.term-body .callout p { margin: 0; }

/* A whole clause flagged as a box (content restrictions) */
.term-row--flag .term-body {
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--ink);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; }
  .keypoints { grid-template-columns: repeat(2, 1fr); }
  .term-row { grid-template-columns: 3.5rem 1fr; }
  .term-body { grid-column: 2; }
}

@media (max-width: 640px) {
  .keypoints { grid-template-columns: 1fr; }
  .term-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .term-no { padding-top: 0; }
  .term-body { grid-column: 1; }
}


/* --------------------------------------------------------------------------
   18. Portfolio filter (portfolio.html)
   -------------------------------------------------------------------------- */

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filterbar button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  padding: 0.55em 1.1em;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filterbar button:hover { border-color: var(--ink); color: var(--ink); }

.filterbar button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pcount {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.pcount b { color: var(--ink); font-weight: 700; }

.tile.is-hidden { display: none; }


/* --------------------------------------------------------------------------
   19. Footer — production has four columns (brand / navigate / services / connect)
   -------------------------------------------------------------------------- */

.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   20. Compatibility layer — legacy case-study markup (character pages)
   The 26 not-yet-restructured character pages keep their old class names;
   these rules render them in White Cube language until each is migrated to
   the canonical structure (see lilith.html / maxine.html).
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section--tight { padding-top: var(--section-pad); }

.kicker {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--note);
  flex: none;
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 40rem;
}

.tlink {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.tlink:hover { color: var(--ink); }

.cs-back { padding-top: clamp(2rem, 4vw, 3rem); }

/* Old full-bleed dark hero → contained framed lead image with text above */
.hero--case {
  display: flex;
  flex-direction: column-reverse;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) 0;
}

.hero--case .hero__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  aspect-ratio: 16 / 9;
}

.hero--case .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--case .hero__media::after { content: none; }

.hero--case .hero__content {
  position: static;
  padding: 0;
}

.hero--case .hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.hero--case h1 {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.5rem);
  font-weight: 800;
  color: var(--ink);
}

.hero--case .hero__sub {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Case layout: main + sticky spec sidebar */
.cs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.cs-main { min-width: 0; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  overflow: hidden;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame + .video-frame { margin-top: clamp(1.25rem, 2.5vw, 2rem); }

.cs-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.cs-gallery button {
  appearance: none;
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.cs-gallery button:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 9; }

.cs-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.cs-gallery button:hover img,
.cs-gallery button:focus-visible img { transform: scale(1.02); }

/* Spec sidebar — quiet hairline rows */
.cs-meta {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  border: 1px solid var(--hairline);
  padding: clamp(1.25rem, 2vw, 1.6rem);
}

.cs-meta__title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--hairline);
}

.cs-meta dl { margin: 0; }

.cs-meta__row {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--hairline);
}
.cs-meta__row:last-child { border-bottom: 0; padding-bottom: 0; }

.cs-meta dt {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.cs-meta dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.cs-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.cs-next__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Legacy reveal convention (.reveal / .is-in) */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.is-in,
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
html.js .reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Legacy button alias */
.btn--accent {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--accent:hover { background: #000; border-color: #000; }

@media (max-width: 1000px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-meta { position: static; }
}

@media (max-width: 640px) {
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-gallery button:nth-child(1) { grid-column: span 1; aspect-ratio: 1 / 1; }
}


/* --------------------------------------------------------------------------
   22. Extended compatibility — remaining dark-era pages (service/info) render
   in White Cube without per-page rewrites. Aliases map old tokens to WC
   values so each page's own <style> block resolves correctly; the rules below
   restyle the old structural classes (skicker/services/cta-band/meta-card…).
   -------------------------------------------------------------------------- */

:root {
  --surface: #f7f7f8;
  --surface-2: #f0f0f2;
  --text: #151517;
  --font-mono: var(--font);
  --font-display: var(--font);
  --font-body: var(--font);
  --accent-soft: #151517;
}

/* Inner-page top spacing + dark-era page-head (a div, not the WC header) */
.page-top { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)); }
.page-top .page-head { padding: 0; }
.page-head .kicker { display: block; margin-bottom: 1.25rem; }
.page-head h1 {
  font-size: clamp(2.2rem, 1.1rem + 4.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Section kicker */
.skicker {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.skicker__idx { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.skicker__label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); }
.skicker__rule { flex: 1; height: 1px; background: var(--hairline); align-self: center; min-width: 20px; }
.skicker__title { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin-left: auto; }

/* Services (dark-era) */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.service {
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  border-radius: 2px;
  padding: clamp(1.4rem, 2.4vw, 2rem);
}
.service__line { display: none; }
.service__num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1rem; }
.service h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.service p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* Teaser (dark-era) */
.teaser { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hairline); border-radius: 2px; overflow: hidden; }
.teaser__item { padding: clamp(1.4rem, 2.4vw, 2rem); border-right: 1px solid var(--hairline); }
.teaser__item:last-child { border-right: 0; }
.teaser__num { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.9rem; }
.teaser__item h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.teaser__item p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.teaser__foot { display: flex; justify-content: flex-end; margin-top: 1.5rem; }

/* Process (dark-era __n / __t inside li) */
.process .process__n { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.5rem; }
.process .process__t { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

/* Meta card (dark-era) */
.meta-card { border: 1px solid var(--hairline); border-radius: 2px; padding: clamp(1.25rem, 2vw, 1.6rem); background: var(--bg-soft); }
.meta-card h4 { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hairline); }
.meta-card .row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--hairline); }
.meta-card .row:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-card dt { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.meta-card dd { margin: 0; font-size: 0.85rem; font-weight: 500; text-align: right; }

/* CTA band (dark-era) */
.cta-band { margin-top: var(--section-pad); border-top: 1px solid var(--hairline); padding-block: clamp(4rem, 8vw, 7rem); }
.cta-band__glow { display: none; }
.cta-band__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.cta-band h2 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-band h2 em { font-style: normal; }
.btn__arrow { display: inline-block; }

@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .teaser__item { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .teaser__item:last-child { border-bottom: 0; }
}

/* Video embeds fill the canonical media frame (iframe already covered above) */
.media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.media-frame + .media-frame { margin-top: clamp(1.25rem, 2.5vw, 2rem); }

/* Fix: media-frame is a <span>; it needs block display for aspect-ratio to size it */
.media-frame { display: block; }

/* Landing banner (home) — full-width framed graphic, shown whole (no crop) */
.banner { margin: 0; }
.banner img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--bg-soft);
}

/* Animated portfolio previews — muted video, static poster at rest, plays on hover */
.frame video.preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-soft);
  transition: transform 0.7s var(--ease);
}
.tile:hover .frame video.preview,
.tile:focus-visible .frame video.preview { transform: scale(1.02); }

/* Per-entry tag chips (case-study pages) */
.case-tags { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-chip {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  padding: 0.42em 0.8em;
}

/* --------------------------------------------------------------------------
   Service demo pages (unity / etc.) — White Cube
   -------------------------------------------------------------------------- */
.demo + .demo { margin-top: clamp(2.5rem, 5vw, 4rem); }
.demo-title { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem); font-weight: 700; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
.demo-note { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; max-width: 70ch; margin: 0 0 1.25rem; }
.demo-note + .demo-note { margin-top: -0.6rem; }
.demo .media-figure { margin-top: 1.25rem; }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.25rem; }
.media-grid .media-figure { margin: 0; }
.note-box { background: var(--bg-soft); border: 1px solid var(--hairline); border-radius: 2px; padding: 1rem 1.25rem; margin: 1.25rem 0 0; }
.note-box p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; margin: 0; }
.note-box strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .media-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Mobile: the 25-tag portfolio filter becomes one swipeable row instead of a
   tall wrapped block; bigger tap targets.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .filterbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    /* faint right-edge fade hints there's more to swipe (only the last few px) */
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
  }
  .filterbar::-webkit-scrollbar { display: none; }
  .filterbar button {
    flex: 0 0 auto;
    padding-top: 0.62em;
    padding-bottom: 0.62em;
  }
}

/* --------------------------------------------------------------------------
   Hire page — role cards, numbered points, FAQ accordion (White Cube)
   -------------------------------------------------------------------------- */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.role-card { background: var(--bg-soft); border: 1px solid var(--hairline); border-radius: 2px; padding: clamp(1.6rem, 2.5vw, 2.2rem); }
.role-card .role-tag { display: block; margin-bottom: 0.9rem; color: var(--ink); }
.role-card h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.role-card > p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.7; }
.role-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.role-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; padding-block: 0.8rem; border-top: 1px solid var(--hairline); align-items: baseline; }
.role-list li::before { content: ""; width: 5px; height: 5px; background: var(--ink); border-radius: 50%; transform: translateY(-2px); }
.role-list strong { font-weight: 600; color: var(--ink); }
.role-list span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.role-note { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* Numbered points (requirements / terms) */
.points { list-style: none; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding: 0; }
.points > li { padding-block: clamp(1.4rem, 3vw, 2rem); border-top: 1px solid var(--hairline); }
.points > li:first-child { border-top: 0; }
.points h4 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.6rem; display: flex; align-items: baseline; gap: 0.8rem; }
.points h4 .pn { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); flex: none; }
.points p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.75; max-width: 68ch; }
.points p + p { margin-top: 0.7rem; }
.points strong { color: var(--ink); font-weight: 600; }
.points li.is-flag { background: var(--bg-soft); border-left: 2px solid var(--ink); padding-inline: clamp(1.1rem, 2.5vw, 1.5rem); }
.points li.is-flag h4 .pn { color: var(--ink); }

/* FAQ accordion */
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding-block: clamp(1.1rem, 2.2vw, 1.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; font-size: clamp(1rem, 1.9vw, 1.2rem); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--muted); }
.faq summary .ico { flex: none; width: 20px; height: 20px; position: relative; }
.faq summary .ico::before, .faq summary .ico::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq summary .ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .ico::after { transform: translate(-50%, -50%) rotate(0); }
.faq__body { padding-bottom: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--ink-soft); font-size: 0.98rem; line-height: 1.75; max-width: 74ch; }
.faq__body p + p { margin-top: 0.7rem; }
.faq__body strong { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) { .role-grid { grid-template-columns: 1fr; } }
