@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
/* =========================================================================
   FIONA WONG – PORTFOLIO
   Monochrome editorial product system. Serif display, cool charcoal, strict hierarchy.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* -------------------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Palette – near-white canvas, cool charcoal ink, monochrome emphasis */
  --paper:        #fcfcfc;
  --paper-raised: #f1f0ee;
  --paper-card:   #eae9e6;
  --ink:          #1a1a1c;
  --ink-soft:     #3a3a3d;
  --ink-muted:    #6b6b70;
  --ink-faint:    #9c9ca2;
  --line:         rgba(20, 20, 24, 0.12);
  --line-strong:  rgba(20, 20, 24, 0.26);
  --accent:       #1a1a1c;   /* monochrome: accent = ink, emphasis via weight + underline */
  --accent-soft:  #6b6b70;   /* muted grey for hover feedback */

  /* Dark surfaces for UI mock cards */
  --night:      #161618;
  --deep:       #1f1f22;

  /* Type families */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  /* -----------------------------------------------------------------------
     TYPE SCALE – a true modular scale, ratio ~1.25 (major third)
     Sizes are clamped for fluid response without breakpoints.
     ----------------------------------------------------------------------- */
  --t-display: clamp(3rem, 7vw, 5.5rem);     /* hero only */
  --t-h1:      clamp(2.25rem, 4.5vw, 3.5rem); /* page titles */
  --t-h2:      clamp(1.625rem, 2.6vw, 2rem);  /* section headings */
  --t-h3:      1.25rem;                        /* sub-headings */
  --t-lead:    clamp(1.125rem, 1.6vw, 1.375rem); /* lead paragraphs */
  --t-body:    1.0625rem;                      /* body */
  --t-small:   0.9375rem;
  --t-label:   0.75rem;                        /* eyebrows, mono labels */

  /* Line heights tuned per role */
  --lh-tight:  1.05;
  --lh-snug:   1.18;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* -----------------------------------------------------------------------
     SPACING SCALE – 8px base, geometric. Use these, never magic numbers.
     ----------------------------------------------------------------------- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;
  --sp-11: 12rem;

  /* Layout widths */
  --w-page:    1180px;
  --w-text:    680px;   /* optimal reading measure ~70 chars */
  --w-wide:    920px;
  --gutter:    clamp(1.5rem, 5vw, 5rem);
  --radius:    10px;
}

/* -------------------------------------------------------------------------
   RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'kern', 'liga', 'calt';
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }

::selection { background: var(--accent); color: var(--paper); }

/* -------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.page { max-width: var(--w-page); margin: 0 auto; padding-inline: var(--gutter); }
.measure { max-width: var(--w-text); }
.wide { max-width: var(--w-wide); }

/* -------------------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.serif { font-family: var(--serif); font-weight: 400; }
.italic { font-style: italic; }

/* -------------------------------------------------------------------------
   NAV
   ------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: var(--sp-4);
}

.nav-mark {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }

/* -------------------------------------------------------------------------
   HOME – HERO
   ------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(var(--sp-9), 14vw, var(--sp-11)) var(--sp-9);
  position: relative;
  isolation: isolate;
}

/* Landing-page cursor field: the original warm paper spotlight and faint
   technical dot grid, rebuilt as a full-bleed field. The layer spans the
   complete browser width and includes vertical overscan so the falloff stays
   soft beyond the centred content column and near the top or bottom edge. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: -360px;
  bottom: -360px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Original low-contrast warm bloom. */
.hero::before {
  background: radial-gradient(
    circle 430px at var(--hero-glow-x, 50vw) var(--hero-glow-y, calc(50% + 360px)),
    rgba(154, 75, 56, 0.095) 0%,
    rgba(154, 75, 56, 0.052) 31%,
    rgba(154, 75, 56, 0.018) 56%,
    transparent 75%
  );
  will-change: opacity, background;
}

/* Original technical dot grid, revealed only within the pointer spotlight. */
.hero::after {
  background-image: radial-gradient(circle, rgba(26, 26, 28, 0.19) 0 0.8px, transparent 0.95px);
  background-size: 22px 22px;
  background-position: 1px 1px;
  -webkit-mask-image: radial-gradient(
    circle 238px at var(--hero-glow-x, 50vw) var(--hero-glow-y, calc(50% + 360px)),
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.46) 46%,
    transparent 76%
  );
  mask-image: radial-gradient(
    circle 238px at var(--hero-glow-x, 50vw) var(--hero-glow-y, calc(50% + 360px)),
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.46) 46%,
    transparent 76%
  );
  will-change: opacity, -webkit-mask-image, mask-image;
}

.hero.has-pointer::before { opacity: 1; }
.hero.has-pointer::after { opacity: 0.58; }

.hero > * {
  position: relative;
  z-index: 1;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after { display: none; }
}

.hero-eyebrow { margin-bottom: var(--sp-5); }

.hero-title {
  font-family: var(--serif);
  font-size: var(--t-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  max-width: min(26ch, 92vw);
  margin-bottom: var(--sp-6);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

/* Optical alignment: the capital "I" in Manrope has wide left side-bearing,
   so the first line renders ~6.5 logical px right of the page column edge.
   Pull it left so the I visually hangs to the same baseline as the eyebrow,
   body copy, and context line. Calibrated against measured pixel positions
   in logical (not retina) units. */
.hero-title-line:first-child {
  margin-left: -0.07em;
}

.hero-title em { font-style: italic; }

.hero-lead,
.hero-copy {
  font-size: var(--t-lead);
  line-height: var(--lh-normal);
  color: var(--ink-soft);
  max-width: min(62ch, 72vw);
  margin-bottom: var(--sp-6);
}

.hero-copy p {
  max-width: 46ch;
  margin: 0;
}

.hero-copy p + p {
  margin-top: var(--sp-4);
}

.hero-context {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* -------------------------------------------------------------------------
   SECTION HEADER (shared)
   ------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------------
   HOME – WORK LIST
   ------------------------------------------------------------------------- */
.work { padding-bottom: var(--sp-9); }

.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--sp-6), 5vw, var(--sp-8));
  align-items: center;
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--line);
}

.project:first-of-type { padding-top: 0; }
.project--flip .project-visual { order: 2; }

.project-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project:hover .project-visual { transform: translateY(-6px); }
.project-visual img { border-radius: 6px; box-shadow: 0 0 0 1px rgba(60,60,60,0.22), 0 6px 20px rgba(0,0,0,0.08); }

.project-index {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: var(--sp-4);
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-3);
}

.project-desc {
  font-size: var(--t-small);
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
  margin-bottom: var(--sp-5);
  max-width: 40ch;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  align-items: center;
}

.project-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.project:hover .project-link { color: var(--accent-soft); }

/* -------------------------------------------------------------------------
   HOME – ABOUT TEASER
   ------------------------------------------------------------------------- */
.about-teaser { padding-block: var(--sp-9); border-bottom: 1px solid var(--line); }

.about-teaser-pull {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin-bottom: var(--sp-6);
}

.text-link {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* -------------------------------------------------------------------------
   CONTACT / FOOTER (shared)
   ------------------------------------------------------------------------- */
.contact { padding-block: var(--sp-9); }
.contact-eyebrow { margin-bottom: var(--sp-5); }

.contact-line {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.contact-line a { border-bottom: 2px solid var(--ink); padding-bottom: 3px; }
.contact-line a:hover { color: var(--accent); border-color: var(--accent); }

.contact-meta {
  display: flex;
  gap: var(--sp-6);
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-meta a:hover { color: var(--ink); }

.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-6);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* =========================================================================
   CASE STUDY PAGE
   ========================================================================= */
.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-6);
}
.back-link:hover { color: var(--accent); }

.case-head { padding-bottom: var(--sp-7); }

.case-title {
  font-family: var(--serif);
  font-size: var(--t-h1);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-3);
  max-width: 18ch;
}

.case-sub {
  font-family: var(--mono);
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

/* Meta row – role / focus / outcome as a clean 3-col band */
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-6);
  padding-block: var(--sp-6);
  margin-top: var(--sp-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-meta dt {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-3);
}

.case-meta dd {
  font-size: var(--t-small);
  line-height: var(--lh-normal);
  color: var(--ink-soft);
}

/* Hero image band – full bleed within page width */
.case-hero-img {
  margin-block: var(--sp-8);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-hero-img img { width: 100%; height: 100%; object-fit: contain; }
.case-hero-img .ph {
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Case body – narrow reading column */
.case-body { max-width: var(--w-text); margin: 0 auto; }

/* The decision spine block */
.block { margin-bottom: var(--sp-8); }

.block-label {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-4);
}

.block-h {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-4);
}

.block p {
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
  margin-bottom: var(--sp-4);
}

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

/* A named design decision – sub-unit within a block */
.decision { margin-block: var(--sp-6); }
.decision + .decision { margin-top: var(--sp-6); }

.decision-h {
  font-family: var(--sans);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--accent);
}

.decision p {
  font-size: var(--t-small);
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-3);
}

/* Core interaction model – monospace flow line */
.flow {
  font-family: var(--mono);
  font-size: var(--t-small);
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper-raised);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-5);
  letter-spacing: 0.02em;
}

/* Pull quote */
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding-block: var(--sp-5);
  margin-block: var(--sp-7);
}

/* Metric strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--sp-6);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-8);
}
.metric-v {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.metric-l {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Inline figure */
.figure { margin-block: var(--sp-7); }
.figure-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure-img .ph {
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.figure-cap {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: var(--sp-3);
}

/* Divider rule between sections */
.rule { border: 1px solid rgba(60,60,60,0.22); border-top: 1px solid var(--line); margin-block: var(--sp-7); }

/* =========================================================================
   TABLE CASE STUDY VISUALS
   Native HTML/CSS components matching the .demo / .flow language.
   Wide layout breaks out of the 680px reading column.
   ========================================================================= */

/* Wide container: same border/background language as .demo, breaks out of column */
.tc-wide {
  position: relative;
  width: min(var(--w-wide), 100%);
  left: 50%;
  transform: translateX(-50%);
  margin-block: var(--sp-8);
}
@media (max-width: 800px) {
  .tc-wide { width: 100%; left: 0; transform: none; }
}

.tc-frame {
  border: 1px solid rgba(60,60,60,0.22);
  border-radius: var(--radius);
  background: var(--paper-raised);
  overflow: hidden;
}
.tc-head {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.tc-head .eyebrow { color: var(--accent); }
.tc-head .tc-hint {
  font-family: var(--mono);
  font-size: var(--t-label);
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.tc-body { padding: var(--sp-6); }
.tc-cap {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: var(--sp-3);
  line-height: 1.5;
}

/* Side-by-side comparison: two simulated UI cards */
.tc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
@media (max-width: 700px) {
  .tc-compare { grid-template-columns: 1fr; }
}
.tc-side-label {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--sp-4);
}
.tc-side-label.before { color: var(--accent); }
.tc-side-label.after { color: #2a6b46; }
.tc-side-label .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* The simulated document/editor card */
.tc-doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

/* Document body inside the simulated doc */
.tc-doc-body { padding: 14px 16px 18px; }
.tc-text-bar { height: 6px; border-radius: 2px; background: var(--paper-card); margin-bottom: 6px; }
.tc-text-bar.short { width: 45%; }
.tc-text-bar.med { width: 70%; opacity: 0.7; }
.tc-text-bar.long { width: 88%; opacity: 0.7; }

/* Mini simulated table inside doc body */
.tc-mini-table {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.tc-mini-table.broken { border-color: rgba(138, 51, 36, 0.4); }
.tc-mini-cell {
  padding: 8px 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tc-mini-cell:nth-child(5n) { border-right: none; }
.tc-mini-cell.header { background: #f4f0e8; }
.tc-mini-cell.header .tc-text-bar { background: var(--ink-faint); height: 4px; opacity: 0.45; }
.tc-mini-cell .tc-text-bar { margin: 0; height: 4px; opacity: 0.5; }

/* Caption strip beneath each card */
.tc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 12px;
}
.tc-status.bad {
  background: rgba(138, 51, 36, 0.08);
  color: var(--accent);
  border: 1px solid rgba(138, 51, 36, 0.25);
}
.tc-status.good {
  background: rgba(42, 107, 70, 0.08);
  color: #2a6b46;
  border: 1px solid rgba(42, 107, 70, 0.25);
}
.tc-status .icon { font-weight: 600; }

/* Abstracted screenshot container – matches the hero image treatment */
.tc-shot {
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.tc-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tc-shot.ph {
  font-family: var(--mono);
  font-size: var(--t-label);
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper-card);
}
.tc-shot .ph-text {
  padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
}

/* Page break indicator for continuation visual */
.tc-page-break {
  height: 1px;
  border-top: 1px dashed var(--ink-faint);
  margin: 12px 0;
  position: relative;
}
.tc-page-break.bad { border-top-color: var(--accent); }
.tc-page-break-label {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  padding: 0 8px;
  background: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tc-page-break.bad .tc-page-break-label { color: var(--accent); }

/* Edge-case matrix table */
.tc-matrix {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
}
.tc-matrix thead th {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-strong);
  vertical-align: bottom;
  background: rgba(255,255,255,0.4);
}
.tc-matrix thead th small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
  margin-top: 4px;
  font-weight: 400;
}
.tc-matrix tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--ink-soft);
  vertical-align: top;
}
.tc-matrix tbody tr:last-child td { border-bottom: none; }
.tc-matrix tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
}
.tc-matrix tbody td:first-child small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* Compact scan list with accent dashes */
.scan-list {
  list-style: none;
  margin-block: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}
.scan-list li {
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
  padding-left: var(--sp-5);
  position: relative;
}
.scan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.scan-list li b,
.scan-list li strong {
  color: var(--ink);
  font-weight: 600;
}

/* Next case */
.next {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-9);
  margin-top: var(--sp-8);
}
.next-eyebrow { margin-bottom: var(--sp-4); }
.next-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
  padding-bottom: var(--sp-1);
}
.next-title:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================================
   ABOUT PAGE
   ========================================================================= */
.about-head { padding-block: clamp(var(--sp-8), 10vw, var(--sp-10)) var(--sp-6); }

.about-title {
  font-family: var(--serif);
  font-size: var(--t-h1);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
}

.about-lead {
  font-family: var(--serif);
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  max-width: 30ch;
  margin-top: var(--sp-6);
}

.about-body { max-width: var(--w-text); }
.about-body p {
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink-soft);
  margin-bottom: var(--sp-5);
}
.about-body strong { color: var(--ink); font-weight: 600; }

.about-section { padding-block: var(--sp-8); border-top: 1px solid var(--line); }
.about-section-h {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-h2);
  font-weight: 400;
  margin-bottom: var(--sp-6);
}

.cv-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: var(--sp-6);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.cv-row:last-child { border-bottom: 0; }
.cv-period {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 4px;
}
.cv-role { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-bottom: var(--sp-1); }
.cv-meta { font-size: var(--t-small); line-height: var(--lh-normal); color: var(--ink-soft); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 820px) {
  .project { grid-template-columns: 1fr; gap: var(--sp-5); }
  .project--flip .project-visual { order: 0; }
  .nav-links { gap: var(--sp-4); }
  .cv-row { grid-template-columns: 1fr; gap: var(--sp-2); }
  .footer-inner { flex-direction: column; gap: var(--sp-2); }
}

/* =========================================================================
   MOTION – one calm page-load reveal
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
  .reveal:nth-child(1) { animation-delay: 0.04s; }
  .reveal:nth-child(2) { animation-delay: 0.12s; }
  .reveal:nth-child(3) { animation-delay: 0.20s; }
  .reveal:nth-child(4) { animation-delay: 0.28s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   MOTION SYSTEM – scroll-triggered reveals (added v3)
   Calm, editorial. Elements rise and fade as they enter the viewport.
   Falls back to fully visible if JS is off or motion is reduced.
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  .fade-up.in-view { opacity: 1; transform: translateY(0); }

  /* Stagger children of a marked container */
  .stagger > .fade-up:nth-child(1) { transition-delay: 0.00s; }
  .stagger > .fade-up:nth-child(2) { transition-delay: 0.08s; }
  .stagger > .fade-up:nth-child(3) { transition-delay: 0.16s; }
  .stagger > .fade-up:nth-child(4) { transition-delay: 0.24s; }
  .stagger > .fade-up:nth-child(5) { transition-delay: 0.32s; }
}

/* Animated link underline – grows from left on hover */
.text-link, .project-link, .contact-line a, .next-title {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.text-link:hover, .project:hover .project-link,
.contact-line a:hover, .next-title:hover { background-size: 100% 1.5px; }

/* Project card – lift the whole card subtly, not just the image */
.project { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.project-title { transition: color 0.3s ease; }
.project:hover .project-title { color: var(--accent); }

/* =========================================================================
   INTERACTIVE DEMO – graduated confirmation (AI case page)
   Lets a reviewer trigger the behaviour: below threshold executes,
   at or above threshold the assistant pauses for a second confirmation.
   ========================================================================= */
.demo {
  margin-block: var(--sp-8);
  border: 1px solid rgba(60,60,60,0.22);
  border-radius: var(--radius);
  background: var(--paper-raised);
  overflow: hidden;
}
.demo-head {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.demo-head .eyebrow { color: var(--accent); }
.demo-head .demo-hint { font-family: var(--mono); font-size: var(--t-label); color: var(--ink-faint); letter-spacing: 0.04em; }
.demo-body { padding: var(--sp-6); }

.demo-control { margin-bottom: var(--sp-6); }
.demo-control-top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.demo-control-label { font-family: var(--mono); font-size: var(--t-small); color: var(--ink-soft); letter-spacing: 0.02em; }
.demo-count {
  font-family: var(--serif); font-size: 2.25rem; font-weight: 400; line-height: 1;
  color: var(--ink);
}
.demo-count small { font-family: var(--mono); font-size: 0.875rem; color: var(--ink-muted); margin-left: 0.4em; letter-spacing: 0.04em; }

/* Range slider, restyled to match the system */
.demo-range { width: 100%; -webkit-appearance: none; appearance: none; height: 2px; background: var(--line-strong); border-radius: 2px; outline: none; }
.demo-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 1px solid rgba(60,60,60,0.22);
  box-shadow: 0 0 0 1px rgba(60,60,60,0.22), 0 6px 20px rgba(0,0,0,0.08); transition: transform 0.15s ease;
}
.demo-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.demo-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 1px solid rgba(60,60,60,0.22); box-shadow: 0 0 0 1px rgba(60,60,60,0.22), 0 6px 20px rgba(0,0,0,0.08);
}
.demo-scale { display: flex; justify-content: space-between; margin-top: var(--sp-3); font-family: var(--mono); font-size: var(--t-label); color: var(--ink-faint); letter-spacing: 0.04em; }
.demo-threshold-note { margin-top: var(--sp-4); font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.04em; color: var(--ink-muted); }
.demo-threshold-note b { color: var(--accent); font-weight: 500; }

/* The assistant response card */
.demo-screen {
  background: var(--night); color: #e9e4d8; border-radius: var(--radius);
  padding: var(--sp-6); font-family: var(--sans); min-height: 168px;
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.demo-msg { font-size: var(--t-small); line-height: var(--lh-relaxed); color: #d8d2c4; }
.demo-msg b { color: #fff; font-weight: 600; }
.demo-state {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5em; align-self: flex-start;
  padding: 0.4em 0.8em; border-radius: 100px;
}
.demo-state .dot { width: 7px; height: 7px; border-radius: 50%; }
.demo-state.execute { background: rgba(122,168,116,0.16); color: #9ecb96; }
.demo-state.execute .dot { background: transparent; }
.demo-state.confirm { background: rgba(199,138,72,0.18); color: #e0a868; }
.demo-state.confirm .dot { background: transparent; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.demo-actions { display: flex; gap: var(--sp-3); margin-top: auto; flex-wrap: wrap; }
.demo-btn {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.7em 1.2em; border-radius: 6px; cursor: pointer; border: 1px solid rgba(60,60,60,0.22);
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}
.demo-btn:active { transform: scale(0.97); }
.demo-btn.primary { background: var(--accent); color: #fff; }
.demo-btn.primary:hover { background: var(--accent-soft); }
.demo-btn.ghost { background: transparent; color: #b7b1a4; border-color: rgba(255,255,255,0.18); }
.demo-btn.ghost:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.demo-done { font-size: var(--t-small); color: #9ecb96; font-family: var(--mono); letter-spacing: 0.04em; }

@media (prefers-reduced-motion: no-preference) {
  .demo-msg, .demo-state, .demo-actions { animation: demoIn 0.45s cubic-bezier(0.16,1,0.3,1) backwards; }
  .demo-state { animation-delay: 0.05s; }
  .demo-actions { animation-delay: 0.1s; }
}
@keyframes demoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================================
   PASSWORD GATE
   ========================================================================= */
.gate {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
}
.gate-inner { max-width: 390px; width: 100%; text-align: left; }
.gate-mark { display: inline-block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin-bottom: var(--sp-8); }
.gate-label { display: block; margin-bottom: var(--sp-3); }
.gate-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 400; line-height: var(--lh-snug); letter-spacing: -0.03em; margin-bottom: var(--sp-6); }
.gate-description { color: var(--ink-muted); font-size: var(--t-small); line-height: var(--lh-normal); margin-bottom: var(--sp-6); }
.gate-form { display: block; }
.gate-input {
  width: 100%; font-family: var(--mono); font-size: var(--t-body);
  padding: var(--sp-4); background: var(--paper-raised);
  border: 1px solid rgba(60,60,60,0.22); border-radius: 8px; color: var(--ink);
  margin-bottom: var(--sp-4); letter-spacing: 0.05em;
}
.gate-input:focus { outline: none; border-color: var(--accent); }
.gate-btn {
  width: 100%; font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase;
  padding: var(--sp-4); background: var(--ink); color: var(--paper);
  border: 1px solid rgba(60,60,60,0.22); border-radius: 8px; cursor: pointer; transition: background 0.2s ease;
}
.gate-btn:hover { background: var(--accent); }
.gate-error { font-family: var(--mono); font-size: var(--t-label); color: var(--accent); margin-top: var(--sp-4); min-height: 1em; letter-spacing: 0.04em; }
.gate-back { display: inline-block; margin-top: var(--sp-6); font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.06em; color: var(--ink-muted); }
.gate-back:hover { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Hide page content until unlocked */
body.locked > *:not(.gate):not(.glass-cursor) { display: none !important; }

/* =========================================================================
   SCROLL-REACTIVE HEADER (added v4)
   Nav tightens and solidifies on scroll; hero drifts up and fades.
   ========================================================================= */
.nav { transition: background 0.4s ease, box-shadow 0.4s ease; }
.nav-inner { transition: padding-block 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-mark { transition: font-size 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease; }

.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  box-shadow: 0 0 0 1px rgba(60,60,60,0.22), 0 6px 20px rgba(0,0,0,0.08);
}
.nav.scrolled .nav-inner { padding-block: var(--sp-3); }
.nav.scrolled .nav-mark { font-size: 1.1rem; }

/* Hero opacity/transform are driven inline by JS on scroll.
   Kept out of the load-reveal so the two never fight. */
@media (prefers-reduced-motion: reduce) {
  /* JS skips the hero fade entirely when reduced motion is set. */
  #hero { opacity: 1 !important; transform: none !important; }
}

* {
  font-family: "Manrope", sans-serif !important;
}


/* Hero layout adjustments */
.hero,
.hero-section,
.hero-content {
  padding-top: 120px !important;
  margin-top: 0 !important;
}

.logo,
.nav-logo,
.brand-name {
  font-size: 2rem !important;
}


/* =========================================================================
   CASE CARD COVERS + CTA REFINEMENT
   The whole project row is clickable. Metadata stays metadata; the CTA is
   separated below the tags for a cleaner portfolio scan path.
   ========================================================================= */
.project {
  cursor: pointer;
}

.project-content {
  align-self: center;
}

.project-tags {
  margin-bottom: var(--sp-4);
}

.project-link {
  display: none;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.project:hover .project-cta,
.project:focus-visible .project-cta {
  transform: translateX(4px);
  color: var(--accent-soft);
}

.project:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 8px;
}

.project-cover {
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.65rem, 1.4vw, 0.95rem);
  align-items: stretch;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  min-height: clamp(340px, 27vw, 384px);
  overflow: hidden;
  /* Semantic status colours, scoped to covers only so the global
     brand stays monochrome. Used as whispers, never decoration. */
  --cv-amber: #d8a657;
  --cv-mint:  #7fc6a0;
  --cv-indigo: #5b6cff;
}

.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 12%, rgba(255,255,255,0.10), transparent 40%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.project:hover .project-cover::after { opacity: 1; }

/* ---- shared mini-product chrome ---- */
.cv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cv-app {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cv-avatar {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(140deg, var(--cv-indigo), #8a96ff);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.cv-badge {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.42rem;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.cv-badge--beta {
  color: var(--cv-amber);
  border-color: color-mix(in srgb, var(--cv-amber) 40%, transparent);
  background: color-mix(in srgb, var(--cv-amber) 12%, transparent);
}

.cv-btn {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0.4rem 0.72rem;
  border-radius: 7px;
  white-space: nowrap;
}

.cv-btn--solid {
  background: var(--paper);
  color: #161618;
  box-shadow: 0 1px 0 rgba(0,0,0,0.25);
  transition: filter 0.3s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
}

.cv-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.78);
}

.project:hover .cv-btn--solid { filter: brightness(1.04); transform: translateY(-1px); }

/* =========================================================================
   COVER 1 – AI ASSISTANT (dark, the governed confirmation moment)
   ========================================================================= */
.cover-ai {
  color: var(--paper);
  background: linear-gradient(158deg, #17171a 0%, #202024 100%);
}

.cover-ai .cv-banner {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.74);
  padding: 0.6rem 0.72rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}
.cover-ai .cv-banner b { color: var(--paper); font-weight: 600; }

.cv-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cover-ai .cv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.62rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), background 0.3s ease;
}

.cv-file {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  min-width: 0;
}
.cv-file small {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}

.cv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cv-pill .cv-from {
  font-style: normal;
  color: var(--cv-amber);
  padding: 0.16rem 0.34rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--cv-amber) 14%, transparent);
}
.cv-pill em { font-style: normal; color: rgba(255,255,255,0.32); }
.cv-pill .cv-to {
  font-weight: 600;
  color: var(--cv-mint);
  padding: 0.16rem 0.34rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--cv-mint) 14%, transparent);
}

.cover-ai .cv-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}
.cv-foot-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.project:hover .cover-ai .cv-row { background: rgba(255,255,255,0.07); }
.project:hover .cover-ai .cv-row:nth-child(1) { transform: translateY(-2px); transition-delay: 0.02s; }
.project:hover .cover-ai .cv-row:nth-child(2) { transform: translateY(-2px); transition-delay: 0.07s; }
.project:hover .cover-ai .cv-row:nth-child(3) { transform: translateY(-2px); transition-delay: 0.12s; }

/* =========================================================================
   COVER 2 – TABLE LAYOUT (light, the redesigned scoped menu + clean break)
   ========================================================================= */
.cover-table {
  color: var(--ink);
  background: linear-gradient(160deg, #ece9e4 0%, #f4f2ef 100%);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.cv-editor {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20,20,24,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.6) inset;
}

.cv-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(20,20,24,0.08);
  background: #faf9f8;
}
.cv-toolbar i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(20,20,24,0.14);
}
.cv-toolbar i.on {
  background: var(--cv-indigo);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cv-indigo) 18%, transparent);
}

.cv-editor-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  flex: 1;
}

.cv-table {
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  border-right: 1px solid rgba(20,20,24,0.07);
}
.cv-trow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
}
.cv-trow s {
  height: 10px;
  border-radius: 3px;
  background: rgba(20,20,24,0.12);
}
.cv-trow.sel {
  position: relative;
  padding: 0.34rem;
  margin: -0.34rem;
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px var(--cv-indigo);
  background: color-mix(in srgb, var(--cv-indigo) 7%, transparent);
}
.cv-trow.sel s { background: rgba(20,20,24,0.2); }
.cv-break {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cv-break::before,
.cv-break::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px dashed rgba(20,20,24,0.22);
}

.cv-menu {
  padding: 0.85rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  background: #fcfbfa;
}
.cv-menu-group {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.4rem;
}
.cv-menu-group:first-child { margin-top: 0; }
.cv-menu-item {
  font-size: 0.7rem;
  color: var(--ink-soft);
  padding: 0.26rem 0.4rem;
  border-radius: 5px;
}
.cv-menu-item.on {
  color: var(--ink);
  font-weight: 600;
  background: color-mix(in srgb, var(--cv-indigo) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cv-indigo) 26%, transparent);
  transition: background 0.3s ease;
}
.project:hover .cover-table .cv-menu-item.on {
  background: color-mix(in srgb, var(--cv-indigo) 16%, transparent);
}

/* =========================================================================
   COVER 3 – VOICE AGE VERIFICATION (dark, the record moment)
   ========================================================================= */
.cover-voice {
  color: var(--paper);
  background: linear-gradient(158deg, #1b1b1f 0%, #29292e 100%);
}

.cv-prompt {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.78rem;
  border-radius: 9px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}
.cv-step {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}
.cv-phrase {
  font-size: 0.92rem;
  line-height: 1.35;
  font-style: italic;
  color: rgba(255,255,255,0.92);
}

.voice-bars {
  height: 52px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
}
.voice-bars i {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.7));
  transform-origin: center;
  animation: voicePulse 1.7s ease-in-out infinite;
}
.voice-bars i:nth-child(1)  { height: 26%; animation-delay: 0.00s; opacity: 0.5; }
.voice-bars i:nth-child(2)  { height: 54%; animation-delay: 0.06s; opacity: 0.7; }
.voice-bars i:nth-child(3)  { height: 88%; animation-delay: 0.12s; }
.voice-bars i:nth-child(4)  { height: 70%; animation-delay: 0.18s; }
.voice-bars i:nth-child(5)  { height: 40%; animation-delay: 0.24s; opacity: 0.72; }
.voice-bars i:nth-child(6)  { height: 82%; animation-delay: 0.30s; }
.voice-bars i:nth-child(7)  { height: 34%; animation-delay: 0.36s; opacity: 0.6; }
.voice-bars i:nth-child(8)  { height: 64%; animation-delay: 0.42s; }
.voice-bars i:nth-child(9)  { height: 96%; animation-delay: 0.48s; }
.voice-bars i:nth-child(10) { height: 48%; animation-delay: 0.54s; opacity: 0.66; }
.voice-bars i:nth-child(11) { height: 76%; animation-delay: 0.60s; }
.voice-bars i:nth-child(12) { height: 38%; animation-delay: 0.66s; opacity: 0.62; }
.voice-bars i:nth-child(13) { height: 58%; animation-delay: 0.72s; }
.voice-bars i:nth-child(14) { height: 30%; animation-delay: 0.78s; opacity: 0.5; }

.cv-result {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.cv-result-k {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}
.cv-result-v {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.cv-conf {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cv-mint);
}
.cv-conf b {
  width: 4px;
  height: 11px;
  border-radius: 1.5px;
  background: var(--cv-mint);
}
.cv-conf b.off { background: rgba(255,255,255,0.18); }

.cv-foot--voice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}
.cv-rec {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
}
.cv-rec i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e5573f;
  box-shadow: 0 0 0 0 rgba(229,87,63,0.5);
  animation: recPulse 2s ease-in-out infinite;
}
.cv-award {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cv-amber);
  white-space: nowrap;
}

@keyframes voicePulse {
  0%, 100% { transform: scaleY(0.82); }
  50% { transform: scaleY(1.1); }
}
@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,87,63,0.45); }
  50% { box-shadow: 0 0 0 5px rgba(229,87,63,0); }
}

@media (prefers-reduced-motion: reduce) {
  .project-visual,
  .project-cta,
  .cover-ai .cv-row,
  .cv-btn--solid,
  .voice-bars i,
  .cv-rec i {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}


/* =========================================================================
   ABOUT SECTION IMAGE
   ========================================================================= */

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 0 0 1px rgba(60,60,60,0.22), 0 6px 20px rgba(0,0,0,0.08);
}

.about-text {
  max-width: 680px;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image-wrap {
    max-width: 320px;
  }
}




/* =========================================================================
   ABOUT PAGE IMAGE LAYOUT
   ========================================================================= */

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 440px);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding-top: clamp(var(--sp-8), 9vw, var(--sp-10));
  padding-bottom: var(--sp-8);
}

.about-main-copy {
  min-width: 0;
}

.about-hero-grid .about-head {
  padding-block: 0 var(--sp-6);
}

.about-hero-grid .about-title {
  max-width: 15ch;
}

.about-hero-grid .about-body {
  max-width: 760px;
}

.about-side-image-wrap {
  position: sticky;
  top: 118px;
  align-self: start;
  padding-top: clamp(2.5rem, 7vw, 5.25rem);
}

.about-side-image {
  width: 100%;
  aspect-ratio: 4 / 5.45;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
  box-shadow: 0 0 0 1px rgba(60,60,60,0.22), 0 6px 20px rgba(0,0,0,0.08);
}

@media (max-width: 1180px) {
  .about-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 34vw);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .about-hero-grid .about-title {
    max-width: 14ch;
  }
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
  }

  .about-side-image-wrap {
    position: relative;
    top: 0;
    order: -1;
    max-width: 420px;
    padding-top: 0;
  }

  .about-hero-grid .about-title {
    max-width: none;
  }
}

/* =========================================================================
   READ CASE UNDERLINE ANIMATION
   Matches the exact underline language used by the “Full background” link.
   ========================================================================= */

.project-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  overflow: visible;
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 0 0 2px 0;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.project-cta::before,
.project-cta::after {
  content: none;
}

.project-cta:hover,
.project-cta:focus-visible {
  background-size: 100% 1.5px;
}

@media (prefers-reduced-motion: reduce) {
  .project-cta,
  .project-cta::before,
  .project-cta::after {
    transition: none !important;
  }
}


/* =========================================================================
   HERO TITLE MICRO-INTERACTION
   A restrained editorial response on the landing-page headline only.
   ========================================================================= */

.hero-title,
.hero-title em {
  position: relative;
  transition:
    letter-spacing 220ms cubic-bezier(0.16, 1, 0.3, 1),
    text-shadow 220ms ease,
    filter 220ms ease;
}

.hero-title:hover {
  letter-spacing: -0.01em;
  filter: contrast(1.04);
  text-shadow: 0 0 22px rgba(255,255,255,0.18);
}

/* =========================================================================
   HOLLOW EDITORIAL RING CURSOR
   Single authoritative cursor implementation. The custom ring is enabled
   only for precise pointers when reduced motion is not requested.
   ========================================================================= */

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html,
  body,
  a,
  button,
  .project,
  [role="button"],
  input,
  textarea,
  select,
  label,
  .project-cta {
    cursor: none !important;
  }

  .glass-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(26, 26, 28, 0.62);
    border-radius: 999px;
    background: transparent;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.6) inset,
      0 4px 14px rgba(20, 20, 24, 0.18);
    backdrop-filter: blur(6px) saturate(1.1);
    -webkit-backdrop-filter: blur(6px) saturate(1.1);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    will-change: transform, width, height, opacity;
    transition:
      width 240ms cubic-bezier(0.16, 1, 0.3, 1),
      height 240ms cubic-bezier(0.16, 1, 0.3, 1),
      opacity 180ms ease,
      border-color 220ms ease,
      box-shadow 220ms ease;
  }

  .glass-cursor::before,
  .glass-cursor::after {
    content: none;
    display: none;
  }

  .glass-cursor.is-visible {
    opacity: 1;
  }

  .glass-cursor.is-hover {
    width: 42px;
    height: 42px;
  }

  body.hero-ink-hover .glass-cursor {
    width: 58px;
    height: 58px;
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .glass-cursor {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   FIX: table case-study figure sizing + scroll reveal transform
   ------------------------------------------------------------------------- */
.tc-wide {
  width: min(760px, 100%);
  max-width: 100%;
}

.tc-wide.fade-up {
  transform: translateX(-50%) translateY(22px);
}

.tc-wide.fade-up.in-view {
  transform: translateX(-50%) translateY(0);
}

.tc-frame {
  max-width: 760px;
  margin-inline: auto;
}

.tc-head {
  padding: 1rem 1.25rem;
}

.tc-head .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  background: var(--accent);
  color: var(--paper) !important;
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.tc-body {
  padding: 1.25rem;
}

.tc-shot {
  aspect-ratio: auto;
  height: clamp(180px, 24vw, 260px);
}

.tc-cap {
  max-width: 62ch;
}

@media (max-width: 800px) {
  .tc-wide.fade-up,
  .tc-wide.fade-up.in-view {
    transform: translateY(0);
  }
}

.hero-copy-line {
  display: block;
}

@media (min-width: 760px) {
  .hero-copy {
    max-width: 92ch;
  }

  .hero-copy p {
    max-width: 92ch;
  }

  .hero-copy-line {
    white-space: nowrap;
  }
}

/* =========================================================================
   CASE SHOWCASE – Voice verification hero
   ========================================================================= */
.case-showcase {
  margin: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.showcase-frame {
  position: relative;
  border-radius: 14px;
  background: #FAF7F2;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 36px -10px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.showcase-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 500 12px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: 0.01em;
  color: #4a4a4a;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F36B1C;
  box-shadow: 0 0 0 3px rgba(243, 107, 28, 0.18);
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #F36B1C;
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; }
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  font: 500 12px/1 'Manrope', system-ui, sans-serif;
  color: #1a1a1a;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.045);
  transition: background 160ms ease;
  white-space: nowrap;
}

.showcase-link:hover { background: rgba(0, 0, 0, 0.085); }
.showcase-link svg { transition: transform 160ms ease; }
.showcase-link:hover svg { transform: translate(1px, -1px); }
.showcase-link:focus-visible {
  outline: 2px solid #F36B1C;
  outline-offset: 2px;
}

.showcase-image {
  padding: clamp(18px, 3.5vw, 40px);
  background: linear-gradient(180deg, transparent, rgba(243, 107, 28, 0.035));
}

.showcase-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 28px -8px rgba(0, 0, 0, 0.10);
}

.showcase-image .ph {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: #fff;
  border-radius: 6px;
  color: #999;
  font: 14px 'Manrope', system-ui, sans-serif;
}

.showcase-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 4px;
  font: 500 13px/1.5 'Manrope', system-ui, sans-serif;
  color: #2a2a2a;
}

.caption-award {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(243, 107, 28, 0.12);
  color: #F36B1C;
}

@media (max-width: 640px) {
  .showcase-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Full-width table interaction screenshot */
.tc-single-shot {
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(30, 25, 20, 0.06);
}
.tc-single-shot img {
  width: 100%;
  height: auto;
  display: block;
}


/* =========================================================================
   TABLE CASE STUDY – polished abstract visual system
   ========================================================================= */
.case-hero-img {
  border-radius: 18px;
  border: 1px solid rgba(60,60,60,0.14);
  background: #f7f4ee;
  box-shadow: 0 24px 70px rgba(30,25,20,0.08);
  padding: clamp(10px, 1.4vw, 18px);
  aspect-ratio: 16 / 9;
}
.case-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.case-body .tc-wide {
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
}
.case-body .tc-wide.fade-up { transform: translateX(-50%) translateY(22px); }
.case-body .tc-wide.fade-up.in-view { transform: translateX(-50%) translateY(0); }
.case-body .tc-frame {
  max-width: none;
  border-radius: 18px;
  border: 1px solid rgba(60,60,60,0.14);
  background: #f7f4ee;
  box-shadow: 0 18px 55px rgba(30,25,20,0.06);
}
.case-body .tc-body { padding: clamp(16px, 2.4vw, 28px); }
.case-body .tc-head {
  background: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(60,60,60,0.10);
}
.case-body .tc-head .eyebrow {
  background: transparent;
  color: var(--accent) !important;
  padding: 0;
}
.case-body .tc-shot {
  height: auto;
  aspect-ratio: 14 / 9;
  border-radius: 14px;
  background: #f7f4ee;
  border: 1px solid rgba(60,60,60,0.10);
  box-shadow: 0 12px 38px rgba(30,25,20,0.055);
}
.case-body .tc-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.case-body .tc-single-shot {
  border-radius: 16px;
  background: #f7f4ee;
  border: 1px solid rgba(60,60,60,0.10);
  box-shadow: 0 14px 44px rgba(30,25,20,0.06);
}
.case-body .tc-single-shot img {
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
}
.case-body .tc-side-label { margin-bottom: 12px; }
.case-body .tc-status {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.72rem;
}
.case-body .tc-cap {
  max-width: 78ch;
  margin-top: 16px;
  color: var(--ink-muted);
}
@media (max-width: 800px) {
  .case-body .tc-wide,
  .case-body .tc-wide.fade-up,
  .case-body .tc-wide.fade-up.in-view {
    width: 100%;
    left: 0;
    transform: translateY(0);
  }
  .case-hero-img { aspect-ratio: auto; }
  .case-hero-img img { height: auto; }
}

/* =======================================================================
   TABLE-LAYOUT CASE · reconstructed product figures
   Self-contained. Vendor chrome neutralised; abstracted for confidential
   enterprise context. Reuses .tc-frame / .tc-head / .tc-body / .tc-cap.
   ======================================================================= */
.tlfig{
  --sel:#3257d6; --sel-soft:rgba(50,87,214,0.10);
  --good:#2a6b46; --bad:#8a3324;
  --chrome:#fbfbfa; --chrome-line:rgba(20,20,24,0.09); --topbar:#202024;
}
.tlfig .pbar{ height:7px; border-radius:2px; background:var(--paper-card); margin-bottom:8px; }
.tlfig .pbar.s{ width:38%; } .tlfig .pbar.m{ width:62%; opacity:0.7; }

/* reconstructed editor */
.ed{ border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--chrome); box-shadow:0 1px 0 rgba(20,20,24,0.04); font-size:13px; font-family:var(--sans); }
.ed-top{ height:40px; background:var(--topbar); display:flex; align-items:center; padding:0 14px; gap:14px; }
.ed-top .ico{ width:16px; height:16px; color:rgba(255,255,255,0.55); flex:none; }
.ed-top .grp{ display:flex; align-items:center; gap:12px; }
.ed-mark{ width:15px; height:15px; color:rgba(255,255,255,0.85); }
.ed-title{ flex:1; text-align:center; color:rgba(255,255,255,0.92); font-size:13px; font-weight:500; letter-spacing:0.01em; display:flex; align-items:center; justify-content:center; gap:7px; }
.ed-title .tag{ font-family:var(--mono); font-size:10px; letter-spacing:0.08em; text-transform:uppercase; color:rgba(255,255,255,0.45); border:1px solid rgba(255,255,255,0.18); border-radius:4px; padding:1px 6px; }
.ed-pill{ font-size:12px; color:rgba(255,255,255,0.78); border:1px solid rgba(255,255,255,0.20); border-radius:6px; padding:3px 9px; }
.ed-avatar{ width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg,#3a6f8f,#2f5d77); flex:none; }
.ed-ribbon{ height:44px; background:#fff; border-bottom:1px solid var(--chrome-line); display:flex; align-items:center; padding:0 12px; gap:10px; color:var(--ink-faint); }
.ed-ribbon .ico{ width:15px; height:15px; color:var(--ink-faint); flex:none; }
.ed-rgrp{ display:flex; align-items:center; gap:9px; }
.ed-div{ width:1px; height:20px; background:var(--chrome-line); flex:none; }
.ed-font{ display:flex; align-items:center; gap:5px; border:1px solid var(--chrome-line); border-radius:5px; padding:3px 6px; font-size:11.5px; color:var(--ink-muted); }
.ed-font .sz{ border-left:1px solid var(--chrome-line); padding-left:6px; margin-left:2px; }
.ed-rtxt{ font-size:12px; color:var(--ink-muted); }
.ed-spacer{ flex:1; }
.ed-work{ display:flex; min-height:430px; background:#eceae6; }
.ed-rail{ width:58px; background:#f6f5f2; border-right:1px solid var(--chrome-line); padding-top:12px; display:flex; flex-direction:column; align-items:center; gap:2px; flex:none; }
.ed-tab{ width:46px; padding:8px 0 6px; border-radius:7px; display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--ink-muted); }
.ed-tab.active{ background:#ecebff; color:var(--sel); }
.ed-tab .ico{ width:17px; height:17px; }
.ed-tab span{ font-size:9.5px; letter-spacing:0.01em; }
.ed-canvas{ flex:1; position:relative; padding:30px 34px; overflow:hidden; }
.ed-fit{ position:absolute; top:14px; right:16px; display:flex; align-items:center; gap:7px; font-size:11.5px; color:var(--ink-muted); }
.ed-toggle{ width:26px; height:15px; border-radius:8px; background:var(--good); position:relative; }
.ed-toggle::after{ content:""; position:absolute; width:11px; height:11px; border-radius:50%; background:#fff; top:2px; right:2px; }
.ed-page{ background:#fff; border:1px solid rgba(20,20,24,0.10); border-radius:3px; box-shadow:0 6px 24px -10px rgba(20,20,24,0.22),0 2px 6px -2px rgba(20,20,24,0.10); min-height:360px; padding:46px 40px; position:relative; }

.tmenu-wrap{ position:absolute; top:-2px; left:50%; transform:translateX(-50%); z-index:6; filter:drop-shadow(0 8px 20px rgba(20,20,24,0.16)); }
.tmenu{ background:#fff; border:1px solid rgba(20,20,24,0.14); border-radius:9px; display:flex; align-items:stretch; padding:4px; gap:2px; }
.tmi{ display:flex; align-items:center; gap:7px; padding:7px 11px; border-radius:6px; font-size:12.5px; color:var(--ink-soft); white-space:nowrap; }
.tmi .gl{ width:15px; height:15px; color:var(--ink-muted); flex:none; }
.tmi .car{ width:9px; height:9px; color:var(--ink-faint); margin-left:1px; }
.tmi.del{ color:var(--bad); } .tmi.del .gl{ color:var(--bad); }
.tmi-div{ width:1px; background:var(--chrome-line); margin:5px 1px; }
.tmenu-grip{ display:flex; align-items:center; padding:0 5px; color:var(--ink-faint); }
.tmenu-tail{ position:absolute; left:50%; bottom:-6px; transform:translateX(-50%) rotate(45deg); width:11px; height:11px; background:#fff; border-right:1px solid rgba(20,20,24,0.14); border-bottom:1px solid rgba(20,20,24,0.14); }

.tgrid-zone{ margin-top:78px; position:relative; }
.tgrid{ display:grid; grid-template-columns:1.25fr repeat(4,1fr); border:1px solid rgba(20,20,24,0.16); border-radius:2px; }
.tcell{ height:38px; border-right:1px solid rgba(20,20,24,0.12); border-bottom:1px solid rgba(20,20,24,0.12); }
.tcell:nth-child(5n){ border-right:none; }
.tgrid > div:nth-last-child(-n+5) .tcell, .tgrid .trow-last .tcell{ border-bottom:none; }
.tcell.head{ background:#eeece6; height:30px; }
.tcell.sel{ box-shadow:inset 0 0 0 2px var(--sel); background:var(--sel-soft); position:relative; }
.tcell.sel::after{ content:""; position:absolute; left:7px; top:7px; width:1px; height:14px; background:var(--sel); animation:tlblink 1.1s step-end infinite; }
@keyframes tlblink{ 50%{opacity:0;} }
.tgrid-handles{ position:absolute; top:-7px; left:0; right:0; height:1px; }
.thandle{ position:absolute; top:0; width:9px; height:9px; border:1px solid var(--ink-faint); background:#fff; border-radius:50%; transform:translate(-50%,-50%); }
.tadd{ position:absolute; width:22px; height:22px; border-radius:50%; background:#fff; border:1.5px solid var(--sel); color:var(--sel); display:flex; align-items:center; justify-content:center; z-index:7; box-shadow:0 2px 6px rgba(50,87,214,0.25); }
.tadd .ico{ width:13px; height:13px; }
.tadd.top{ top:-26px; left:61.9048%; transform:translateX(-50%); }
.tadd.left{ left:-26px; top:68px; transform:translateY(-50%); }
.tadd-cursor{ position:absolute; top:-19px; left:calc(61.9048% + 4px); width:19px; height:24px; z-index:9; pointer-events:none; filter:drop-shadow(0 1px 1px rgba(0,0,0,0.24)); }
.tadd-cursor svg{ display:block; width:100%; height:100%; }
.tadd-line{ position:absolute; background:var(--sel); opacity:0.5; }
.tadd-line.v{ width:2px; top:-2px; bottom:0; left:61.9048%; transform:translateX(-50%); }
.boundary-chip{ position:absolute; top:122px; right:6px; display:inline-flex; align-items:center; gap:7px; background:rgba(42,107,70,0.07); border:1px solid rgba(42,107,70,0.22); color:var(--good); border-radius:7px; padding:6px 11px; font-size:11.5px; }
.boundary-chip .ico{ width:13px; height:13px; }
.ed-foot{ height:30px; background:#f6f5f2; border-top:1px solid var(--chrome-line); display:flex; align-items:center; padding:0 14px; gap:12px; font-size:11px; color:var(--ink-muted); }
.ed-foot .ico{ width:13px; height:13px; color:var(--ink-faint); }
.anno{ display:flex; gap:18px; margin-top:18px; flex-wrap:wrap; }
.anno-item{ display:flex; align-items:flex-start; gap:8px; font-size:12px; color:var(--ink-muted); max-width:280px; line-height:1.45; }
.anno-item b{ color:var(--ink-soft); font-weight:500; }
.anno-num{ font-family:var(--mono); font-size:10px; color:var(--sel); border:1px solid var(--sel); border-radius:50%; width:17px; height:17px; display:flex; align-items:center; justify-content:center; flex:none; margin-top:1px; }

/* before / after menu comparison */
.cmp{ display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-5); }
@media(max-width:700px){ .cmp{ grid-template-columns:1fr; } }
.cmp-side .lbl{ font-family:var(--mono); font-size:var(--t-label); font-weight:500; letter-spacing:0.12em; text-transform:uppercase; display:flex; align-items:center; gap:0.5em; margin-bottom:var(--sp-4); }
.cmp-side .lbl.b{ color:var(--bad); } .cmp-side .lbl.a{ color:var(--good); }
.cmp-side .lbl .dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }
.cmp-stage{ background:#fff; border:1px solid var(--line); border-radius:6px; height:230px; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.cmp-stage .doc-hint{ position:absolute; left:18px; top:16px; right:18px; }
.toolbar-old{ background:#fff; border:1px solid rgba(20,20,24,0.16); border-radius:9px; padding:5px 7px; display:flex; align-items:center; gap:3px; box-shadow:0 8px 20px rgba(20,20,24,0.12); position:relative; }
.tb-btn{ display:flex; align-items:center; gap:2px; padding:6px; border-radius:5px; color:var(--ink-soft); }
.tb-btn.on{ color:var(--sel); background:var(--sel-soft); }
.tb-btn .ico{ width:18px; height:18px; }
.tb-btn .car{ width:8px; height:8px; color:var(--ink-faint); }
.tb-div{ width:1px; height:20px; background:var(--chrome-line); margin:0 4px; }
.toolbar-old .tail{ position:absolute; left:50%; bottom:-6px; transform:translateX(-50%) rotate(45deg); width:11px; height:11px; background:#fff; border-right:1px solid rgba(20,20,24,0.16); border-bottom:1px solid rgba(20,20,24,0.16); }
.menu-new{ background:#fff; border:1px solid rgba(20,20,24,0.14); border-radius:9px; padding:4px; display:flex; gap:2px; box-shadow:0 8px 20px rgba(20,20,24,0.12); position:relative; flex-wrap:wrap; max-width:300px; }
.menu-new .tail{ position:absolute; left:50%; bottom:-6px; transform:translateX(-50%) rotate(45deg); width:11px; height:11px; background:#fff; border-right:1px solid rgba(20,20,24,0.14); border-bottom:1px solid rgba(20,20,24,0.14); }
.cmp-status{ display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:100px; font-family:var(--mono); font-size:var(--t-label); letter-spacing:0.08em; text-transform:uppercase; margin-top:12px; }
.cmp-status.bad{ background:rgba(138,51,36,0.08); color:var(--bad); border:1px solid rgba(138,51,36,0.25); }
.cmp-status.good{ background:rgba(42,107,70,0.08); color:var(--good); border:1px solid rgba(42,107,70,0.25); }


/* =========================================================================
   CASE HERO FIGURES — native, vector, monochrome editorial
   Built on the existing token system. Replaces the raster hero PNGs.
   Namespaces: .hero-fig (shared) · .tlh (table) · .aih (assistant) · .vvh (voice)
   ========================================================================= */

.hero-fig {
  --sel: #3257d6; --good: #2a6b46; --bad: #8a3324;
  margin-block: var(--sp-8);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20,20,24,0.04), 0 20px 48px -26px rgba(20,20,24,0.20);
  overflow: hidden;
}
.hero-fig__top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.hero-fig__eyebrow {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.hero-fig__hint {
  font-family: var(--mono); font-size: var(--t-label);
  letter-spacing: 0.04em; color: var(--ink-faint);
}
.hero-fig__lead { padding: var(--sp-6) var(--sp-6) 0; }
.hero-fig__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.9vw, 2.15rem); line-height: 1.1;
  letter-spacing: -0.018em; color: var(--ink); max-width: 26ch;
}
.hero-fig__body { padding: var(--sp-6); }

/* shared abstracted icon helper */
.hf-ico { width: 17px; height: 17px; flex: none; }

/* -------------------------------------------------------------------------
   1 · TABLE EDITING SYSTEM
   ------------------------------------------------------------------------- */
.tlh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 760px) { .tlh-grid { grid-template-columns: 1fr; } }

.tlh-label {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.6em;
  margin-bottom: var(--sp-4); color: var(--ink-faint);
}
.tlh-label--after { color: var(--ink-soft); }
.tlh-label .ring { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.tlh-label--after .ring { background: currentColor; }

.tlh-stage {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: var(--sp-5); height: 100%;
}

/* before: unlabelled icon toolbar */
.tlh-toolbar {
  display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 7px; width: fit-content;
}
.tlh-tb {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 5px; color: var(--ink-soft);
}
.tlh-tb.on { color: var(--ink); background: rgba(20,20,24,0.06); }
.tlh-tb-div { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }

/* after: labelled scoped menu */
.tlh-menu {
  display: flex; align-items: stretch; gap: 2px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 4px; width: fit-content; max-width: 100%;
}
.tlh-mi {
  display: flex; align-items: center; gap: 7px; padding: 6px 10px;
  border-radius: 5px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft);
  white-space: nowrap;
}
.tlh-mi .hf-ico { width: 14px; height: 14px; color: var(--ink-muted); }
.tlh-mi .car { width: 9px; height: 9px; color: var(--ink-faint); }

/* mini document + table */
.tlh-doc { margin-top: var(--sp-5); }
.tlh-bar { height: 6px; border-radius: 2px; background: var(--paper-card); margin-bottom: 7px; }
.tlh-bar.s { width: 40%; } .tlh-bar.m { width: 64%; opacity: 0.7; }

.tlh-mini { position: relative; display: grid; grid-template-columns: 1.2fr repeat(3,1fr);
  border: 1px solid var(--line-strong); border-radius: 3px; margin-top: 11px; }
.tlh-cell { height: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tlh-cell:nth-child(4n) { border-right: none; }
.tlh-cell.head { background: #f1efe9; height: 18px; }
.tlh-mini .tlh-cell:nth-last-child(-n+4) { border-bottom: none; }

/* before: the row that splits at a page boundary (single restrained marker) */
.tlh-break {
  position: absolute; left: -6px; right: -6px; top: 58%;
  border-top: 1px dashed var(--bad); pointer-events: none;
}
.tlh-break::after {
  content: "boundary"; position: absolute; right: 0; top: -8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bad); background: var(--paper); padding: 0 4px;
}

/* after: the true-boundary insert affordance (the single saturated accent) */
.tlh-mini--ok { overflow: visible; }
.tlh-add {
  position: absolute; top: -10px; left: 60%; transform: translateX(-50%);
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--sel); color: var(--sel);
  display: flex; align-items: center; justify-content: center; z-index: 3;
  box-shadow: 0 2px 5px rgba(50,87,214,0.22);
}
.tlh-add .hf-ico { width: 11px; height: 11px; }
.tlh-add-line { position: absolute; top: -2px; bottom: 0; left: 60%;
  width: 1.5px; background: var(--sel); opacity: 0.45; transform: translateX(-50%); }

.tlh-cap {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.02em;
  color: var(--ink-muted); line-height: 1.55; margin-top: var(--sp-4);
}
.tlh-cap b { color: var(--ink-soft); font-weight: 500; }

/* -------------------------------------------------------------------------
   2 · ENTERPRISE AI ASSISTANT  (app window, monochrome + single accent)
   ------------------------------------------------------------------------- */
.aih-win { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(20,20,24,0.04); }
.aih-top { height: 38px; background: var(--night); display: flex; align-items: center;
  padding: 0 14px; gap: 8px; }
.aih-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.aih-title { flex: 1; text-align: center; color: rgba(255,255,255,0.88);
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.aih-title .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; padding: 1px 6px; }
.aih-pill { font-family: var(--sans); font-size: 11.5px; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 6px; padding: 3px 9px; }

.aih-grid { display: grid; grid-template-columns: 1fr 290px; min-height: 360px; }
@media (max-width: 760px) { .aih-grid { grid-template-columns: 1fr; } }

/* canvas: entity diagram */
.aih-canvas { position: relative; background: var(--paper); padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 26px; overflow: hidden; }
.aih-canvas svg.aih-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.aih-node {
  position: relative; z-index: 2; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 7px; padding: 9px 13px 10px; min-width: 132px; text-align: left;
}
.aih-node.updated { border-color: rgba(50,87,214,0.5); box-shadow: 0 0 0 2px rgba(50,87,214,0.10); }
.aih-node .utag { font-family: var(--mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--sel); display: block; margin-bottom: 3px; }
.aih-node .nm { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.aih-node .ju { font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em; color: var(--ink-muted); display: block; margin-top: 2px; }
.aih-row { display: flex; gap: 34px; }
.aih-foot { position: absolute; left: 16px; bottom: 12px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px; background: #fff; }
.aih-foot .d { width: 6px; height: 6px; border-radius: 50%; background: #2a6b46; }

/* assistant panel */
.aih-panel { border-left: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column; padding: 16px 16px 14px; }
.aih-phead { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.aih-pmark { width: 24px; height: 24px; border-radius: 6px; background: var(--night);
  display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.aih-pmark .hf-ico { width: 13px; height: 13px; }
.aih-ptitle { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; }
.aih-px { color: var(--ink-faint); }
.aih-userq { align-self: flex-end; background: rgba(50,87,214,0.07); border: 1px solid rgba(50,87,214,0.18);
  color: var(--ink-soft); font-size: 12px; border-radius: 9px 9px 3px 9px; padding: 7px 11px; margin-bottom: 12px; max-width: 92%; }
.aih-asr { font-size: 12.5px; color: var(--ink); line-height: 1.5; margin-bottom: 4px; }
.aih-asr b { font-weight: 600; }
.aih-scope { font-family: var(--mono); font-size: 10px; letter-spacing: 0.03em; color: var(--ink-muted); margin-bottom: 10px; }
.aih-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.aih-li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 9px; font-size: 12px; color: var(--ink-soft); }
.aih-li .d { width: 6px; height: 6px; border-radius: 50%; background: var(--sel); flex: none; }
.aih-li .chk { margin-left: auto; color: var(--ink-faint); }
.aih-li .chk .hf-ico { width: 13px; height: 13px; }
.aih-q { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 12px; }
.aih-acts { display: flex; gap: 8px; margin-top: auto; }
.aih-btn { font-family: var(--sans); font-size: 12px; font-weight: 500; border-radius: 7px;
  padding: 8px 14px; border: 1px solid var(--line-strong); }
.aih-btn.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.aih-note { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--ink-faint); margin-top: 11px; }

/* -------------------------------------------------------------------------
   3 · VOICE AGE VERIFICATION  (product UI kept orange, frame on-theme)
   ------------------------------------------------------------------------- */
.vvh { --vv: #F36B1C; }
.vvh-screen { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(20px, 3vw, 34px); box-shadow: 0 1px 2px rgba(20,20,24,0.04), 0 12px 30px -16px rgba(20,20,24,0.16); }
.vvh-titlerow { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }
.vvh-title { font-family: var(--sans); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink); }
.vvh-beta { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--vv); border: 1px solid rgba(243,107,28,0.4);
  border-radius: 4px; padding: 1px 6px; }
.vvh-org { font-family: var(--sans); font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; color: var(--ink-muted); }
.vvh-step { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin: 12px 0 18px; }
.vvh-step .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-right: 8px; }
.vvh-phrase { display: flex; align-items: center; gap: 16px; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.vvh-phrase p { font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.vvh-timer { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--vv);
  display: flex; align-items: center; justify-content: center; flex: none;
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--vv); }
.vvh-help { text-align: center; font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--vv); margin: 18px 0 16px; }
.vvh-ctrls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.vvh-mic { width: 50px; height: 50px; border-radius: 50%; background: var(--vv);
  display: flex; align-items: center; justify-content: center; color: #fff; flex: none;
  box-shadow: 0 6px 16px -6px rgba(243,107,28,0.55); }
.vvh-mic .hf-ico { width: 20px; height: 20px; }
.vvh-again { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--vv); border: 1px solid rgba(243,107,28,0.45); border-radius: 8px; padding: 11px 18px; text-transform: uppercase; }
