/* ============================================================
   EXPLORE SANDBOX STYLES  (v2 — matches Anjli's mockups)
   Editorial serif (Fraunces) for prose + display,
   sans (Outfit) for UI chrome, blue accent for links.
   Isolated — not linked from the live site.
   ============================================================ */

:root {
  /* Colors */
  --color-bg: #FAFAF8;
  --color-surface: #F2F0EC;
  --color-border: #E3E0DB;
  --color-muted: #9A9590;
  --color-text: #1A1A1A;
  --color-text-soft: #4A4744;
  --color-white: #FFFFFF;

  /* Accent (blue) — sampled from mockup; adjustable */
  --color-accent: #a64d79;
  --color-accent-soft: #F4E6EE;
  --color-figma: #2E6BE6;   /* Figma UI chrome (selection frames, handles, spacing, active tool) stays blue */

  /* Fonts */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Outfit', system-ui, sans-serif;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;

  /* Spacing */
  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;
  --space-10: 2.5rem; --space-12: 3rem;   --space-16: 4rem;
  --space-20: 5rem;   --space-24: 6rem;   --space-32: 8rem;

  --container-max: 1200px;
  --container-padding: clamp(1.5rem, 5vw, 5rem);
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-padding); }

/* Editorial serif for prose + display */
.serif { font-family: var(--font-serif); font-optical-sizing: auto; }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}
.nav.is-stuck { border-bottom-color: var(--color-border); }
.nav__inner { display: flex; align-items: center; justify-content: flex-end; padding-block: var(--space-5); gap: var(--space-8); }
.nav__link { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500; color: var(--color-text-soft); position: relative; transition: color var(--transition-fast); }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 1.5px; background: var(--color-accent); transition: width var(--transition-base); }
.nav__link:hover, .nav__link[aria-current] { color: var(--color-text); }
.nav__link:hover::after, .nav__link[aria-current]::after { width: 100%; }

/* ── Hero (home) ──────────────────────────────────────── */
.hero { padding-top: clamp(3rem, 9vh, 8rem); padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__name { font-family: var(--font-serif); font-size: var(--text-base); font-weight: 500; letter-spacing: -0.01em; color: var(--color-text-soft); margin-bottom: var(--space-3); }
.hero__tagline { font-family: var(--font-serif); font-weight: 540; font-size: clamp(1.85rem, 4vw, 2.9rem); letter-spacing: -0.015em; line-height: 1.05; }
.hero__lede { font-family: var(--font-ui); font-weight: 400; font-size: clamp(1.05rem, 1.7vw, 1.35rem); letter-spacing: -0.005em; line-height: 1.3; color: var(--color-text); margin-top: var(--space-4); }
.hero__contact { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: clamp(1.5rem, 3.5vw, 2rem); }
.hero__contact a { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500; color: var(--color-accent); position: relative; }
.hero__contact a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--color-accent); transition: width var(--transition-base); }
.hero__contact a:hover::after { width: 100%; }
/* email is click-to-copy */
.hero__copylink { cursor: pointer; }
/* toast (copy confirmation) */
.fig-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(8px); z-index: 80; background: var(--color-text); color: #fff; font: 500 var(--text-sm)/1 var(--font-ui); padding: 11px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.22); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.fig-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.hero__photo { position: relative; width: 100%; max-width: 260px; margin-left: auto; }
.hero__photo img { position: relative; z-index: 2; width: 100%; height: auto; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; }
/* clean graphical accents behind the portrait */
.hero__photo::before {            /* dot grid, top-right */
  content: ''; position: absolute; z-index: 1; width: 108px; height: 108px;
  right: -22px; top: -22px;
  background-image: radial-gradient(var(--color-border) 1.4px, transparent 1.5px);
  background-size: 13px 13px;
}
.hero__photo::after {             /* accent ring, bottom-left */
  content: ''; position: absolute; z-index: 0; width: 96px; height: 96px;
  left: -26px; bottom: -26px; border: 1.5px solid var(--color-accent);
  border-radius: 50%; opacity: 0.35;
}
.hero__deco {                     /* thin accent bar, offset behind */
  position: absolute; z-index: 0; top: 18%; left: -14px; width: 3px; height: 34%;
  background: var(--color-accent); opacity: 0.5; border-radius: 3px;
}

/* ══ FIGMA-BOARD HERO ═════════════════════════════════ */
body.figpage { overflow: hidden; height: 100svh; }
.figboard .hero__name { font-size: 1.4rem; line-height: 1.1; color: var(--color-text); }
/* em-based cap → title wraps to two lines consistently across breakpoints */
.figboard .hero__tagline { max-width: none; }
.figboard .hero__lede { line-height: 1.25; }
/* fixed (viewport-independent) sizes inside the frame — the frame itself scales,
   so the hero:image ratio stays constant across breakpoints */
.figboard .hero__tagline { font-size: 2.9rem; }
.figboard .hero__lede { font-size: 1.35rem; }
.figboard .fig-inst-card__title { font-size: 1.5rem; }
.figboard .fig-instance__panel { padding: 2.75rem; }
.figboard .fig-instance__grid { gap: 2rem; }

/* links: hover highlight (padding offset by margin keeps text aligned) */
.figboard .hero__contact a { position: relative; padding: 4px 8px; margin: -4px -8px; border-radius: 6px; transition: background var(--transition-fast); }
.figboard .hero__contact a::after { display: none; }   /* drop the base sliding underline → no double underline */
@media (hover: hover) { .figboard .hero__contact a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; } }
/* macOS-style link popover, rendered as a fixed overlay so nothing clips it */
.fig-linktip {
  position: fixed; z-index: 50; display: flex; align-items: center; gap: 8px;
  background: var(--color-text); color: #fff; font: 500 11px/1 var(--font-ui); letter-spacing: .01em;
  padding: 6px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 4px);
  transition: opacity .14s ease, transform .14s ease;
}
.fig-linktip.show { opacity: 1; transform: translate(-50%, 0); }
.fig-linktip svg { width: 14px; height: 14px; opacity: .85; flex: none; }
.fig-linktip::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-bottom-color: var(--color-text); }
/* footer variant: sits above the link, caret points down */
.fig-linktip.above { transform: translate(-50%, calc(-100% - 4px)); }
.fig-linktip.above.show { transform: translate(-50%, -100%); }
.fig-linktip.above::before { bottom: auto; top: 100%; border-bottom-color: transparent; border-top-color: var(--color-text); }
.figboard {
  position: fixed; inset: 0;
  max-width: 1536px; margin-inline: auto;   /* beyond desktop: cap the canvas width so content stops scaling up; page bg fills the margins */
  background-color: #0e0e13;
  overflow: hidden;
  user-select: none;
}
/* the canvas — a plain solid colour, no effects (fast to paint) */
.fig-canvas { background-color: #0e0e13; }
/* the artboard = the Figma frame holding the site (no shadow) */
.fig-artboard { position: absolute; background: var(--color-bg); }
.fig-artboard__title {
  position: absolute; left: 0; bottom: 100%; margin-bottom: 0.66em;
  display: flex; align-items: center; gap: 0.47em;
  font: 500 15px/1 var(--font-ui); color: #cfcadf; white-space: nowrap;
  /* counter-scale with the canvas zoom so titles stay legible when zoomed out,
     capped so they never balloon (--abz is the live canvas scale, set in JS) */
  font-size: clamp(13px, calc(15px / var(--abz, 1)), 46px);
}
.fig-artboard__title svg { width: 1em; height: 1em; opacity: .85; }
/* fun message out in the void */
.void-msg { position: absolute; text-align: center; color: #fff; pointer-events: none; }
.void-msg h2 { font-family: var(--font-serif); font-weight: 500; font-size: 72px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 16px; text-shadow: 0 0 40px rgba(120,110,220,.5); }
.void-msg p { font: 400 20px/1.5 var(--font-ui); color: #8f8aa8; }
/* pannable viewport — this scrollbar IS the canvas scrollbar */
.fig-scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(140,140,150,.4) transparent; }
.fig-scroll::-webkit-scrollbar { width: 11px; height: 11px; }
.fig-scroll::-webkit-scrollbar-thumb { background: rgba(140,140,150,.4); border: 3px solid transparent; background-clip: padding-box; border-radius: 10px; }
.fig-scroll::-webkit-scrollbar-thumb:hover { background: rgba(140,140,150,.7); background-clip: padding-box; }
.fig-scroll::-webkit-scrollbar-track { background: transparent; }
.fig-sizer { position: relative; overflow: hidden; }   /* clip canvas to sizer so framed scroll can't reach the void */
.fig-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

/* a draggable node */
.fig-node { position: absolute; will-change: transform; cursor: grab; }
.fig-node:active { cursor: grabbing; }
/* an in-flow draggable node (stays in normal/grid layout, moved via transform) */
.fig-node--inflow { position: relative; }
.fig-node img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.fig-node .hero__name, .fig-node .hero__tagline, .fig-node .hero__lede { margin: 0; }
.fig-node .hero__contact { margin-top: 0; }

/* selection chrome (injected by JS) */
.fig-frame { position: absolute; inset: -2px; border: 1.5px solid var(--color-figma); pointer-events: none; opacity: 0; transition: opacity .12s ease; }
.fig-node:hover > .fig-frame, .fig-node.is-selected > .fig-frame { opacity: 1; }
/* handles get geometry inline via JS; these set colour + interaction only */
.fig-handle { pointer-events: none; padding: 0; }
.fig-node.is-selected > .fig-frame > .fig-handle { pointer-events: auto; }
.fig-handle--tl, .fig-handle--br { cursor: nwse-resize; }
.fig-handle--tr, .fig-handle--bl { cursor: nesw-resize; }
.fig-handle--n, .fig-handle--s { cursor: ns-resize; }
.fig-handle--e, .fig-handle--w { cursor: ew-resize; }
/* locked instance node (e.g. the links) — purple on hover, no handles */
.fig-node.fig-locked { cursor: default; }
.fig-node.is-selected { z-index: 5; }
.fig-node.is-selected > .fig-frame { border-width: 2px; }

/* spacing indicators (Figma-style, injected by JS) */
.fig-measure { position: absolute; z-index: 4; pointer-events: none; }
.fig-measure--v { border-left: 1px dashed #F24822; }
.fig-measure--h { border-top: 1px dashed #F24822; }
.fig-measure__cap { position: absolute; background: #F24822; color: #fff; font: 600 10px/1 var(--font-ui); padding: 2px 4px; border-radius: 3px; white-space: nowrap; transform: translate(-50%, -50%); }

/* Anjli cursor (bottom-right, gentle float) */
.fig-cursor { position: absolute; z-index: 8; pointer-events: none; display: flex; align-items: flex-start; gap: 3px; }
.fig-cursor svg { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.fig-cursor__tag { font: 600 11px/1 var(--font-ui); color: #fff; padding: 4px 10px; border-radius: 999px; white-space: nowrap; transform: translateY(-2px); }
.fig-cursor--anjli { right: 8%; bottom: 14%; animation: float-anjli 6.5s ease-in-out infinite; }
@keyframes float-anjli { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-8px,-9px); } }
/* cursor chat bubble — sits ABOVE the name tag, rides along with the cursor */
.fig-chat {
  position: absolute; bottom: calc(100% + 6px); right: -4px; left: auto; background: var(--color-figma); color: #fff;
  font: 500 12px/1.35 var(--font-ui); padding: 8px 12px; border-radius: 14px 14px 3px 14px;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(46,107,230,.28);
  animation: chat-in .5s ease .4s both;
}
@keyframes chat-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { .fig-cursor--anjli { animation: none; } }

/* ── soot sprite: a fuzzy, skittish drag-&-poke friend ───── */
.sprite {
  position: fixed; z-index: 45; width: 46px; height: 46px; left: 0; top: 0;
  touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: scale(0); transition: opacity .5s ease, transform .55s cubic-bezier(.2,1.3,.4,1);
}
.sprite.is-in { opacity: 1; transform: scale(1); }
.sprite.is-off { display: none; }
/* toggle-off: the body shrinks & fades away while its "nooooo" bubble lingers */
.sprite.is-leaving { pointer-events: none; }
.sprite.is-leaving .sprite__svg { animation: sprite-leave .55s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes sprite-leave { to { opacity: 0; transform: scale(.12) translateY(10px) rotate(18deg); } }
/* toolbar toggle: a little sprite face, no button box — accent when on, grey when off */
.fig-tool--sprite, .fig-tool--sprite:hover { border: 0; background: none; padding: 0; }
.fig-tool.fig-tool--sprite svg { width: 23px; height: 23px; }
.fig-tool--sprite .sprite-ico__body { fill: var(--color-accent); transition: fill .15s ease; }
.fig-tool--sprite.is-off .sprite-ico__body { fill: #c1bcc9; }
.sprite.is-dragging { cursor: grabbing; }
.sprite:focus-visible { outline: none; }
.sprite__svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0,0,0,.28)); transform-origin: 50% 60%; animation: sprite-idle 3.4s ease-in-out infinite; will-change: transform; }
.sprite.is-dragging .sprite__svg { animation: none; transform: scale(1.05); }
.sprite.is-poked .sprite__svg { animation: sprite-jump .5s ease; }
@keyframes sprite-idle { 0%,100% { transform: translateY(0) scale(1); } 25% { transform: translateY(-1.5px) rotate(-2deg); } 50% { transform: translateY(-4px) scale(1.015); } 75% { transform: translateY(-1.5px) rotate(2deg); } }
@keyframes sprite-jump { 0%,100% { transform: translateY(0) scale(1,1); } 25% { transform: translateY(-12px) scale(.9,1.12); } 55% { transform: translateY(0) scale(1.14,.86); } 80% { transform: translateY(-3px) scale(1,1); } }
.sprite__body { fill: var(--color-accent); }
.sprite__eye { fill: #fff; }
.sprite__pupil { fill: #1c1622; transition: transform .12s ease; }
.sprite__eyes { transform-origin: 60px 60px; animation: sprite-blink 4.6s infinite; }
@keyframes sprite-blink { 0%,93%,100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.sprite__bubble {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 116px; max-width: 222px; width: max-content; text-align: center;
  background: var(--color-text); color: #fff; font: 500 12.5px/1.4 var(--font-ui); letter-spacing: .01em;
  padding: 8px 12px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.26);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.sprite__bubble.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sprite__bubble::after { content: ''; position: absolute; top: 100%; left: var(--caret, 50%); transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--color-text); }
.sprite__bubble.below { bottom: auto; top: calc(100% + 10px); transform: translateX(-50%) translateY(-6px); }
.sprite__bubble.below.show { transform: translateX(-50%) translateY(0); }
.sprite__bubble.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--color-text); }
@media (prefers-reduced-motion: reduce) {
  .sprite__svg, .sprite__eyes { animation: none; }
  .sprite, .sprite.is-in { transition: opacity .3s ease; transform: none; }
}
@media (max-width: 767px) { .sprite { display: none; } }

/* toolbar */
.fig-toolbar {
  position: absolute; z-index: 30; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; background: #fff;
  border: 1px solid var(--color-border); border-radius: 10px; padding: 5px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.fig-tool { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--color-text-soft); transition: background var(--transition-fast), color var(--transition-fast); }
.fig-tool:hover { background: var(--color-surface); color: var(--color-text); }
.fig-tool.is-active { background: var(--color-accent); color: #fff; }
.fig-tool.is-active:hover { background: var(--color-accent); color: #fff; }
.fig-tool svg { width: 17px; height: 17px; }
/* Work chevron: an independent control beside the Home icon that toggles the dropdown */
.fig-tool--chev { width: 22px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.fig-tool--chev svg { width: 13px; height: 13px; transition: transform var(--transition-fast); }
.fig-navitem.dd-open .fig-tool--chev { background: var(--color-surface); color: var(--color-text); }
.fig-navitem.dd-open .fig-tool--chev svg { transform: rotate(180deg); }
/* back button (extreme left) — subtle, in line with the nav */
.fig-tool--back { background: none; border: 0; cursor: pointer; padding: 0; font: inherit; color: var(--color-muted); }
.fig-tool--back:hover { color: var(--color-text); background: var(--color-surface); }
.fig-tool--back.is-disabled { opacity: .32; pointer-events: none; }
/* hover tooltip */
.fig-tool[data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--color-text); color: #fff; font: 500 11px/1 var(--font-ui); letter-spacing: .01em;
  padding: 6px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.fig-tool[data-tip]::before {
  content: ''; position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: var(--color-text); opacity: 0; transition: opacity .14s ease; pointer-events: none;
}
.fig-tool[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.fig-tool[data-tip]:hover::before { opacity: 1; }

/* work shown as Figma frames on the canvas */
.fig-framebox { text-decoration: none; }
.fig-frameLabel { position: absolute; top: -19px; left: 1px; font: 500 11px/1 var(--font-ui); color: var(--color-text-soft); white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.fig-frameLabel .n { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.fig-thumb { border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; background-color: var(--color-surface); background-size: cover; background-position: center; aspect-ratio: 16 / 11; width: 100%; }

/* ── Selected work: text title + 3 standalone card instances ── */
:root { --fig-instance: #9747FF; }
.work-title { position: absolute; font-family: var(--font-serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.01em; line-height: 1; color: var(--color-text); }
.work-grid { position: absolute; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fig-inst-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.fig-thumb {
  border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden;
  background-color: var(--color-surface); background-size: cover; background-position: center;
  aspect-ratio: 16 / 9; width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.fig-thumb--video { display: block; object-fit: cover; }
.fig-inst-card:hover .fig-thumb { box-shadow: 0 16px 34px rgba(0,0,0,.10); transform: translateY(-4px); }
.fig-inst-card__body { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.fig-inst-card__title { font-family: var(--font-serif); font-weight: 540; font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.12; color: var(--color-text); transition: color var(--transition-fast); }
.fig-inst-card:hover .fig-inst-card__title { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fig-inst-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* purple locked-instance outline (title + cards), shown on hover */
.fig-pframe { position: absolute; inset: -8px; border: 1.5px solid var(--fig-instance); border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.fig-inst-card:hover > .fig-pframe, .fig-inst:hover > .fig-pframe, .fig-node.fig-locked:hover > .fig-pframe { opacity: 1; }

/* zoom pill */
.fig-zoom {
  position: absolute; z-index: 30; right: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--color-border); border-radius: 8px; padding: 6px 12px;
  font: 500 12px/1 var(--font-ui); color: var(--color-text-soft);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.fig-zoom button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0 2px; }
.fig-zoom #zoomVal { cursor: pointer; min-width: 38px; text-align: center; }
.fig-zoom #zoomVal:hover { color: var(--color-text); }

/* ── Design / Preview segmented toggle (in the nav) ───── */
.fig-sep { width: 1px; align-self: stretch; margin: 2px 6px; background: var(--color-border); }
.fig-modeseg { display: inline-flex; align-items: center; gap: 2px; background: var(--color-surface); border-radius: 8px; padding: 3px; }
.fig-seg {
  display: inline-flex; align-items: center; gap: 6px; border: none; background: none; cursor: pointer;
  font: 600 13px/1 var(--font-ui); color: var(--color-text-soft);
  padding: 6px 11px; border-radius: 6px; transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.fig-seg svg { width: 15px; height: 15px; }
.fig-seg:hover { color: var(--color-text); }
.fig-seg.is-active { background: #fff; color: var(--color-accent); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
#segPreview.is-active { color: var(--color-text); }

/* zoom control living inside the nav (version B) */
.fig-navzoom { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--font-ui); color: var(--color-text-soft); padding: 0 4px; }
.fig-navzoom button { font: inherit; font-size: 16px; line-height: 1; color: inherit; background: none; border: none; cursor: pointer; padding: 2px 4px; border-radius: 5px; }
.fig-navzoom button:hover { background: var(--color-surface); color: var(--color-text); }
.fig-navzoom #zoomVal { min-width: 40px; text-align: center; cursor: pointer; }
.fig-navzoom #zoomVal:hover { color: var(--color-text); }

/* ── About artboard content (version B) ───────────────── */
.ab-heading { font-family: var(--font-serif); font-weight: 540; font-size: 2.4rem; letter-spacing: -0.015em; line-height: 1; color: var(--color-text); }
.ab-prose { position: absolute; display: flex; flex-direction: column; gap: 0.4em; font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; line-height: 1.5; color: var(--color-text); }
.ab-reel { position: absolute; display: flex; gap: 16px; }
.ab-photo { flex: 1; aspect-ratio: 3 / 4; border: none; padding: 0; border-radius: 12px; background-size: cover; background-position: center; background-color: var(--color-surface); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.ab-photo:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,.10); }
.ab-history { position: absolute; display: flex; flex-direction: column; gap: 26px; }
.ab-tl__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ab-tl__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); flex: none; }
.ab-tl__dot--active { box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.ab-tl h3 { font-family: var(--font-serif); font-weight: 540; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--color-text); }
.ab-tl__meta { font: 500 0.85rem/1 var(--font-ui); color: var(--color-muted); }
.ab-tl p { margin-top: 8px; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.5; color: var(--color-text-soft); }

/* Lab placeholder */
.lab-ph { position: absolute; left: 7%; top: 40%; width: 86%; }
.lab-ph h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.01em; line-height: 1; margin-bottom: 12px; }
.lab-ph p { font: 400 1.2rem/1.6 var(--font-ui); color: var(--color-text-soft); }

/* nav transition: simple content fade (distinct from the artboard-click fly) */
.fig-artboard.is-fading > *:not(.fig-artboard__title) { animation: ab-fade .4s ease both; }
@keyframes ab-fade { from { opacity: 0; } to { opacity: 1; } }

/* version B: spacing indicators = blue dotted lines, no numbers */
.figb .fig-measure--v { border-left: 1.5px dotted var(--color-figma); }
.figb .fig-measure--h { border-top: 1.5px dotted var(--color-figma); }
.figb .fig-measure__cap { display: none; }
/* clickable reel photos (About artboard) */
.figb .reel__item { border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; }
/* full-bleed reel with a thin edge fade — runs off the page */
.figb .reel--bleed { -webkit-mask: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
/* History dots pulled into the column margin (no longer hanging out) */
.figb .editorial--history .tl { padding-left: 24px; }
.figb .editorial--history .tl__dot { left: 0; }
.figb .tl__domain { display: none; }   /* drop the domain notes (Product · B2B SaaS …) */

/* copyright component at the end of each artboard */
/* copyright — matches the old site footer's bottom row (small, muted, hairline rule above) */
.fig-copyright { font: 500 var(--text-xs)/1 var(--font-ui); color: var(--color-muted); letter-spacing: 0.01em; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.fig-copyright__links { display: flex; gap: 22px; margin-left: auto; }
.fig-copyright__links a { color: var(--color-accent); font-weight: 500; text-decoration: none; cursor: pointer; }
@media (hover: hover) { .fig-copyright__links a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; } }
.fig-copyright--abs { position: absolute; left: 7%; right: 7%; bottom: 32px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.fig-copyright--flow { margin: 0 7%; padding: 22px 0 40px; border-top: 1px solid var(--color-border); }

/* while flying, drop off-focus project content so the transform stays smooth (keep the target) */
.figboard.is-flying .fig-artboard:not(.fly-target) .proj__clip { visibility: hidden; }
/* the hero selection chrome only while framed on Home (never as stray outlines in the void) */
.figboard:not(.at-home) .fig-frame { opacity: 0 !important; }

/* work cards: one-liner, no hover elevation */
.fig-inst-card__desc { font: 400 1rem/1.45 var(--font-ui); color: var(--color-text-soft); max-width: 42ch; }
.figb .fig-inst-card:hover .fig-thumb { transform: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

/* uniform 7% page margins in the About artboard (reel stays full-bleed) */
.figb [data-ab="about"] .wrap, .figb [data-ab="lab"] .wrap { max-width: none; padding-inline: 7%; }
/* tighter section rhythm in About — removes the big empty gap */
.figb [data-ab="about"] .editorial, .figb [data-ab="lab"] .editorial { padding-block: 0.75rem; }

/* interactive titles: selection hugs the text height, not the full grid row */
.figb .editorial__label.fig-node--inflow { align-self: start; }

/* project artboards (children of Work) — fresh native pages, clipped to the frame */
.proj-embed { position: relative; height: 100%; }
/* clip content like a Figma frame; the current (framed) project scrolls internally */
.proj__clip { height: 100%; overflow: hidden; position: relative; background: var(--color-bg); }
.proj__clip.is-live { overflow-y: auto; overscroll-behavior: contain; }
/* About uses the same clip mechanism */
.about-clip { height: 100%; }

/* back-to-work CTA — icon only, top-left; reveals its label on hover. Only on the framed project. */
.proj-back { position: absolute; z-index: 5; top: 26px; left: 26px; display: none; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border-radius: 8px; color: var(--color-text-soft); text-decoration: none; background: none; transition: color var(--transition-fast), background var(--transition-fast); }
.proj-embed:has(.proj__clip.is-live) .proj-back { display: inline-flex; }
.proj-back svg { width: 18px; height: 18px; flex: none; }
.proj-back span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font: 500 var(--text-sm)/1 var(--font-ui); transition: max-width .2s ease, opacity .18s ease; }
.proj-back:hover { color: var(--color-text); }
.proj-back:hover span { max-width: 140px; opacity: 1; }

/* ── fresh project page: hero + flowing body (margins match the old case study) ── */
.proj-hero { max-width: 1200px; margin: 0 auto; padding: 110px clamp(1.5rem, 5vw, 4rem) 0; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-5); }
.proj-tag { font: 500 var(--text-xs)/1 var(--font-ui); letter-spacing: .01em; color: var(--color-text-soft); background: var(--color-surface); border-radius: 999px; padding: 5px 10px; }
.proj-title { font-family: var(--font-serif); font-weight: 540; font-size: clamp(2.1rem, 4vw, 2.9rem); letter-spacing: -0.02em; line-height: 1.04; color: var(--color-text); margin: 0; max-width: 66%; }
.proj-desc { margin: 16px 0 0; max-width: 66%; font: 400 1.1rem/1.5 var(--font-ui); color: var(--color-text-soft); }
.proj-hero-img { margin: 36px 0 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); }
.proj-hero-img img { width: 100%; height: auto; display: block; }
/* vision & funnel heros are transparent mockups — drop the panel bg so they float */
[data-ab="proj-vision"] .proj-hero-img,
[data-ab="proj-funnel"] .proj-hero-img { background: transparent; overflow: visible; }

.proj-body { max-width: 68ch; margin: 0 auto; padding: var(--space-12) clamp(1.5rem, 5vw, 4rem) var(--space-16); }
.proj-body .cs-block { margin-top: var(--space-12); }
.proj-body .cs-block:first-child { margin-top: 0; }
.cs-h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.9rem; letter-spacing: -0.01em; line-height: 1.15; color: var(--color-text); margin: 0 0 var(--space-4); }
.cs-h3 { font-family: var(--font-serif); font-weight: 540; font-size: var(--text-lg); letter-spacing: -0.01em; line-height: 1.25; color: var(--color-text); margin: var(--space-8) 0 var(--space-3); }
.cs-p { font: 400 1.02rem/1.7 var(--font-ui); color: var(--color-text-soft); margin: 0 0 var(--space-4); }
.cs-p strong { color: var(--color-text); font-weight: 600; }
.cs-list { font: 400 1.02rem/1.7 var(--font-ui); color: var(--color-text-soft); margin: var(--space-4) 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.cs-list strong { color: var(--color-text); }
/* section numbering (restored) */
.cs-label { font: 600 var(--text-xs)/1 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 12px; }
/* images — match the old case study variants (default framed, flat = transparent, outline, wide = breakout) */
.cs-fig { margin: var(--space-8) 0; width: 100%; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface); border: 3px solid #fff; box-shadow: 0 0 8px rgba(162,162,162,0.25); }
.cs-fig--flat { background: transparent; border: none; box-shadow: none; border-radius: 0; }
.cs-fig--outline { background: transparent; border: 1px solid #E2E2E2; box-shadow: none; border-radius: var(--radius-md); }
.cs-fig--wide { width: 1000px; margin-left: 50%; margin-right: 0; transform: translateX(-50%); }
.cs-fig img, .cs-fig video { width: 100%; height: auto; display: block; }
.cs-cap { font: 400 var(--text-sm)/1.5 var(--font-ui); color: var(--color-muted); margin: 10px auto 0; text-align: center; max-width: 60ch; }
.cs-quote { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; line-height: 1.35; letter-spacing: -0.01em; color: var(--color-text); margin: var(--space-8) 0; }
.cs-note { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); padding: var(--space-5); margin: var(--space-4) 0; }
.cs-note--accent { border-color: var(--color-accent-soft); background: var(--color-accent-soft); }
.cs-note__title { font: 600 1rem/1.3 var(--font-ui); color: var(--color-text); margin: 0 0 6px; }
.cs-note__body { font: 400 0.98rem/1.6 var(--font-ui); color: var(--color-text-soft); margin: 0 0 6px; }
.cs-note__body:last-child { margin-bottom: 0; }
/* result callout — a simple icon + text row */
.cs-callout { margin: var(--space-4) 0; }
.cs-callout__inner { display: flex; gap: 12px; align-items: flex-start; background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); }
.cs-callout__inner > svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.cs-callout .cs-note__title { margin: 0; font: 500 1rem/1.55 var(--font-ui); color: var(--color-text); }
.proj-body a { color: var(--color-accent); text-decoration: none; }
.proj-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.proj-body img, .proj-body video { max-width: 100%; }
/* image grids — reproduced from the old case studies */
.cs-split { display: flex; gap: var(--space-8); align-items: flex-start; margin: var(--space-8) 0; }
.cs-split--center { align-items: center; }
.cs-split__text { flex: 1; }
.cs-split__text > :first-child { margin-top: 0; }
.cs-split__image { flex-shrink: 0; width: clamp(240px, 45%, 460px); border-radius: var(--radius-md); border: 3px solid #fff; box-shadow: 0 0 8px rgba(162,162,162,0.25); object-fit: cover; }
.cs-image-row { display: flex; gap: var(--space-4); margin: var(--space-8) 0; align-items: flex-start; }
.cs-image-row img { flex: 1; min-width: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-md); object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 8px rgba(162,162,162,0.25); }
.cs-ideation-grid { display: flex; gap: var(--space-3); margin: var(--space-8) 0; align-items: stretch; }
.cs-ideation-grid__left { display: flex; flex-direction: column; gap: var(--space-3); flex: 0 0 45%; align-self: stretch; }
.cs-ideation-grid__left img { flex: 1; min-height: 0; width: 100%; border-radius: var(--radius-md); border: 3px solid #fff; box-shadow: 0 0 8px rgba(162,162,162,0.25); object-fit: cover; object-position: left center; display: block; }
.cs-ideation-grid__right { flex: 1; min-width: 0; border-radius: var(--radius-md); border: 3px solid #fff; box-shadow: 0 0 8px rgba(162,162,162,0.25); object-fit: cover; object-position: left center; display: block; align-self: stretch; width: 100%; }
/* keep breathing room after any media before the next copy */
.cs-cap { margin-bottom: 0; }
.proj-body > .cs-block > img, .proj-body > .cs-block > p > img { margin: var(--space-8) 0; display: block; }

/* all project media: light stroke + rounded corners, no elevation (the automations/procedure treatment) */
.proj-body .cs-fig,
.proj-body .cs-split__image,
.proj-body .cs-image-row img,
.proj-body .cs-ideation-grid__left img,
.proj-body .cs-ideation-grid__right { border: 1px solid #E2E2E2; box-shadow: none; background: transparent; border-radius: var(--radius-md); }
/* except: transparent diagrams stay flat */
.proj-body .cs-fig--flat { border: none; border-radius: 0; }
/* prototype videos break out to the wide width — capped to clear the TOC gutter */
.proj-body .cs-fig:has(video) { width: 1000px; max-width: none; margin-left: 50%; margin-right: 0; transform: translateX(-50%); }

/* floating TOC (right side of a framed project); appears after the hero */
.proj-toc-stick { position: sticky; top: 0; height: 0; z-index: 6; }
.proj__clip:not(.is-live) .proj-toc-stick { display: none; }
.proj-toc { position: absolute; right: 26px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; text-align: right; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.proj-toc.is-shown { opacity: 1; pointer-events: auto; }
.proj-toc__item { font: 500 11px/1.3 var(--font-ui); letter-spacing: .02em; color: var(--color-muted); text-decoration: none; white-space: nowrap; transition: color var(--transition-fast); }
.proj-toc__num { font-weight: 600; margin-right: 5px; }
.proj-toc__item:hover, .proj-toc__item.is-active { color: var(--color-text); }

/* Work nav dropdown (Figma-style command panel) — spans the navbar width, directly below it */
.fig-navitem { position: static; display: flex; }
.fig-dropdown { position: absolute; top: calc(100% + 9px); left: 0; right: 0; transform: translateY(-6px); background: #fff; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease; z-index: 40; }
/* invisible bridge across the gap so the dropdown doesn't drop when the cursor moves onto it */
.fig-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.fig-navitem.dd-open .fig-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.fig-dropdown__label { font: 500 11px/1 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); padding: 6px 8px 8px; margin: 0; }
.fig-dropdown__item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; font: 500 var(--text-sm)/1.2 var(--font-ui); color: var(--color-text); text-decoration: none; }
.fig-dropdown__item:hover { background: var(--color-surface); }
.fig-dropdown__thumb { width: 34px; height: 26px; flex: none; border-radius: 5px; background-size: cover; background-position: center; background-color: var(--color-surface); }

/* image lightbox */
.fig-lightbox { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(8,8,12,.94); cursor: zoom-out; }
.fig-lightbox.show { display: flex; }
.fig-lightbox img, .fig-lightbox video { max-width: 82vw; max-height: 84vh; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.4); }
.fig-lightbox video { cursor: default; }

/* ── Simple website mode: strip all the Figma chrome ─── */
body.simple .figboard { background: var(--color-bg); }
body.simple .fig-canvas { background-image: none; background-color: var(--color-bg); }
body.simple .fig-artboard { box-shadow: none; }
body.simple .fig-artboard__title,
body.simple .void-msg,
body.simple .fig-zoom { display: none !important; }
body.simple .fig-frame,
body.simple .fig-pframe,
body.simple .fig-measure,
body.simple .fig-pmeasure { display: none !important; }
body.simple .fig-node { cursor: default; }
body.simple .hero__contact a { cursor: pointer; }

/* hint */
.fig-hint {
  position: absolute; z-index: 9; left: 18px; bottom: 18px;
  font: 500 11px/1.4 var(--font-ui); color: var(--color-muted);
  background: rgba(255,255,255,.7); border: 1px solid var(--color-border);
  border-radius: 8px; padding: 6px 10px; backdrop-filter: blur(4px);
}

@media (max-width: 760px) {
  .figboard { min-height: 620px; }
  .fig-toolbar { top: 10px; }
}

/* ── Section head ─────────────────────────────────────── */
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section__title { font-family: var(--font-serif); font-weight: 540; font-size: clamp(1.3rem, 2.5vw, 1.75rem); letter-spacing: -0.015em; line-height: 1.05; }
.section__meta { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--color-muted); }

/* ── Work cards (featured) ────────────────────────────── */
.work { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.5vw, 2rem); }
.work__card {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  overflow: hidden; background: var(--color-white);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.work__card:hover { border-color: var(--color-muted); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.work__card:nth-child(even) .work__media { order: 2; }
.work__media { min-height: 320px; background-size: cover; background-position: center; background-color: var(--color-surface); }
.work__body { padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }
.work__num { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.work__title { font-family: var(--font-serif); font-weight: 540; font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: -0.015em; line-height: 1.1; }
.work__title .arrow { display: inline-block; color: var(--color-accent); transition: transform var(--transition-base); }
.work__card:hover .work__title .arrow { transform: translate(4px, -4px); }
.work__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.chip { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 500; color: var(--color-accent); background: var(--color-accent-soft); border-radius: 999px; padding: 5px 12px; }
.work__note { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--color-muted); font-style: italic; }

/* ── Work cards — alt style: single row, image-top, borderless ── */
.workrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 2rem); }
.wr-card { display: flex; flex-direction: column; gap: var(--space-4); }
.wr-card__media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background-size: cover; background-position: center; background-color: var(--color-surface);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.wr-card:hover .wr-card__media { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.06); }
.wr-card__body { display: flex; flex-direction: column; gap: var(--space-3); }
.wr-card__num { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.wr-card__title { font-family: var(--font-serif); font-weight: 540; font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.1; }
.wr-card__title .arrow { display: inline-block; color: var(--color-accent); transition: transform var(--transition-base); }
.wr-card:hover .wr-card__title .arrow { transform: translate(3px, -3px); }
@media (max-width: 860px) {
  .workrow { grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 2.25rem); }
  .wr-card__media { aspect-ratio: 16 / 10; }
}

/* ── Footer ───────────────────────────────────────────── */
.foot { border-top: 1px solid var(--color-border); padding-block: clamp(3rem, 6vw, 5rem); margin-top: clamp(2rem, 5vw, 4rem); }
.foot__big { font-family: var(--font-serif); font-weight: 540; font-size: clamp(1.5rem, 3.6vw, 2.4rem); letter-spacing: -0.015em; line-height: 1.05; margin-bottom: var(--space-8); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); color: var(--color-text-soft); font-size: var(--text-sm); }
.foot__row a { color: var(--color-accent); font-weight: 500; }

/* ══ ABOUT PAGE ═══════════════════════════════════════ */
/* Two-column editorial block: label (left) + prose (right) */
.editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2rem, 5vw, 4rem); }
.editorial__label { font-family: var(--font-serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.01em; line-height: 1; }
.prose { font-family: var(--font-ui); font-weight: 400; font-size: clamp(0.98rem, 1.2vw, 1.05rem); line-height: 1.6; letter-spacing: 0; color: var(--color-text); display: flex; flex-direction: column; gap: 1em; max-width: 52ch; }
.prose--wide { max-width: 54ch; }

/* Photo reel — horizontal, seamless loop */
.reel {
  overflow-x: auto; overflow-y: hidden; width: 100%; padding-block: clamp(1.5rem, 3vw, 2.5rem);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; }
.reel__track { display: flex; gap: clamp(0.75rem, 1.5vw, 1.25rem); width: max-content; user-select: none; }
.reel__item { flex: none; width: clamp(180px, 22vw, 250px); aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); }
.reel__item img { width: 100%; height: 100%; object-fit: cover; }
.reel__item--video { display: block; width: clamp(180px, 22vw, 250px); height: auto; object-fit: cover; background: #000; padding: 0; border: 0; cursor: pointer; }
.reel__ph { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--font-ui); font-size: var(--text-xs); color: var(--color-muted); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); text-align: center; padding: var(--space-2); }
@keyframes reel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .reel__track { animation: none; } }

/* History — label (left col) + intro & timeline together (right col) */
.editorial--history .history-body { display: flex; flex-direction: column; }
.history-body > .prose { margin-bottom: clamp(1rem, 2.5vw, 2rem); }

.timeline { display: flex; flex-direction: column; }
.tl { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); position: relative; }
.tl + .tl { border-top: 1px solid var(--color-border); }
.tl__header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
/* dot hangs into the gutter so entry text aligns with the intro above */
.tl__dot { position: absolute; left: -26px; top: calc(clamp(1.75rem, 3.5vw, 2.75rem) + 0.6em); width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); }
/* current role: radiating pulse */
.tl__dot--active::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--color-accent); animation: radiate 2.2s ease-out infinite;
}
@keyframes radiate {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tl__dot--active::before { animation: none; }
  .tl__dot--active { box-shadow: 0 0 0 4px var(--color-accent-soft); }
}
.tl__title { font-family: var(--font-serif); font-weight: 540; font-size: var(--text-lg); letter-spacing: -0.01em; }
.tl__domain { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--color-muted); }
.tl__date { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--color-text-soft); margin-top: 4px; }
.tl__body { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-3); }
.tl__desc { font-family: var(--font-ui); font-weight: 400; font-size: clamp(0.9rem, 1vw, 0.98rem); line-height: 1.6; color: var(--color-text-soft); max-width: 64ch; }
/* Lab items (dot + title + description + screenshot) */
/* short Lab content: lay the clip out as a column so the footer sinks to the bottom
   of the framed viewport instead of stranding mid-page on tall screens. The live clip
   is one viewport tall and overflows the (content-height) artboard box, so lift Lab above
   its neighbours to keep them from bleeding through that overflow. */
[data-ab="lab"] { z-index: 2; }
[data-ab="lab"] .proj__clip { display: flex; flex-direction: column; }
[data-ab="lab"] .proj__clip > .fig-copyright--flow { margin-top: auto; }
.editorial--lab .lab-body { display: flex; flex-direction: column; }
.lab-body > .prose { margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.lab-item { position: relative; padding-left: 24px; }
.lab-item + .lab-item { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--color-border); }
.lab-item__dot { position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); }
.lab-item__title { font-family: var(--font-serif); font-weight: 540; font-size: var(--text-lg); letter-spacing: -0.01em; margin: 0 0 0.6em; }
.lab-item > .prose { max-width: 54ch; }
.lab-item__media { margin: clamp(1.25rem, 3vw, 2rem) 0 0; }
.lab-item__demo { position: relative; display: block; border: 1px solid #E2E2E2; border-radius: var(--radius-md); overflow: hidden; }
.lab-item__demo img { width: 100%; height: auto; display: block; }
.lab-item__ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--color-surface); color: var(--color-muted); font: 500 var(--text-sm) var(--font-ui); }
.lab-item__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(22, 20, 26, 0.30); opacity: 0; transition: opacity var(--transition-base); }
.lab-item__demo:hover .lab-item__overlay, .lab-item__demo:focus-visible .lab-item__overlay { opacity: 1; }
.lab-item__btn { font: 600 var(--text-sm) var(--font-ui); color: var(--color-text); background: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
/* touch devices have no hover — keep the button visible (bottom-right, no tint) */
@media (hover: none) { .lab-item__overlay { opacity: 1; background: none; align-items: flex-end; justify-content: flex-end; padding: 12px; } }
.tl__links { display: flex; flex-direction: column; gap: var(--space-2); max-width: 440px; }
.tl__link {
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500;
  border: 1px solid var(--color-border); border-radius: 999px;
  padding: var(--space-3) var(--space-5);
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.tl__link:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.tl__link .arrow { color: var(--color-accent); }

.pagehead { padding-top: clamp(2rem, 5vw, 4rem); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 320px; order: -1; }
  .work__card { grid-template-columns: 1fr; }
  .work__card:nth-child(even) .work__media { order: 0; }
  .work__media { min-height: 200px; aspect-ratio: 16 / 10; }
  .editorial { grid-template-columns: 1fr; gap: var(--space-4); }
  .prose, .prose--wide { max-width: none; }
  .photostrip { grid-template-columns: repeat(3, 1fr); }
  .tl { padding-left: 22px; }
  .tl__dot { left: 0; }
}

/* ══ Mobile: simple, view-only, linearized document ══ */
.fig-burger, .fig-menu, .fig-webnote { display: none; }

@media (max-width: 767px) {
  body.figpage { overflow: visible; height: auto; }
  .figboard { position: static; inset: auto; height: auto; min-height: 100svh; overflow-x: clip; overflow-y: visible; background: var(--color-bg); user-select: auto; }
  .fig-scroll { position: static; inset: auto; overflow: visible; height: auto; }
  .fig-sizer { position: static !important; width: auto !important; height: auto !important; }
  .fig-canvas { position: static !important; transform: none !important; width: auto !important; height: auto !important; left: auto !important; top: auto !important; background: transparent !important; }
  /* separate pages: show one artboard at a time (hamburger switches) */
  .fig-artboard { display: none !important; position: static !important; left: auto !important; top: auto !important; width: 100% !important; height: auto !important; overflow: visible; }
  .fig-artboard.mobile-active { display: block !important; }

  /* hide the figma chrome + desktop toolbar + zoom + overlays */
  .fig-toolbar, .fig-artboard__title, .fig-frame, .fig-handle, .fig-measure,
  .fig-cursor, .fig-chat, .fig-linktip, .fig-lightbox, .proj-toc-stick { display: none !important; }

  /* home hero: absolute layers → stacked flow with cohesive spacing */
  [data-ab=home] { padding: 84px 24px 48px !important; }
  [data-ab=home] .fig-node { position: static !important; transform: none !important; width: auto !important; height: auto !important; left: auto !important; top: auto !important; margin: 0 !important; }
  [data-ab=home] .hero__name { margin: 0 0 6px !important; }
  [data-ab=home] .hero__tagline { margin: 0 0 14px !important; }
  [data-ab=home] .hero__lede { margin: 0 0 26px !important; }
  [data-ab=home] .hero__contact { margin: 0 0 32px !important; }
  [data-ab=home] .fig-node img { max-width: none !important; width: 100% !important; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
  .work-title { position: static !important; margin: 40px 0 18px !important; }
  .work-grid { position: static !important; width: auto !important; grid-template-columns: 1fr !important; gap: 22px !important; }
  .fig-copyright--abs { position: static !important; left: auto; right: auto; bottom: auto; margin-top: 36px; }
  /* drop the edge fade on the About reel on mobile */
  .figb .reel--bleed { -webkit-mask: none !important; mask: none !important; }
  /* footer links: stack under the copyright, still readable */
  .fig-copyright__links { margin-left: 0; }

  /* clipped artboards (about + projects) open up and flow */
  .proj__clip, .about-clip { height: auto !important; overflow: visible !important; }
  .figb [data-ab=about] .wrap, .figb [data-ab=lab] .wrap { padding-inline: 24px !important; }
  .editorial { grid-template-columns: 1fr !important; gap: var(--space-3) !important; }
  .proj-hero { padding: 44px 24px 0 !important; }
  .proj-title, .proj-desc { max-width: 100% !important; }
  .proj-body { padding: 24px 24px 44px !important; max-width: none !important; }
  .cs-fig--wide, .proj-body .cs-fig:has(video) { width: 100% !important; margin-left: 0 !important; transform: none !important; }
  .cs-split, .cs-image-row, .cs-ideation-grid { flex-direction: column !important; }
  .cs-split__image, .cs-ideation-grid__left { width: 100% !important; }

  /* hamburger + menu + one-line note */
  .fig-burger { display: inline-flex; position: fixed; top: 14px; right: 14px; z-index: 60; width: 42px; height: 42px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08); color: var(--color-text); cursor: pointer; }
  .fig-burger svg { width: 20px; height: 20px; }
  .fig-menu { display: flex; flex-direction: column; position: fixed; top: 64px; right: 14px; z-index: 60; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 8px; min-width: 184px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease; }
  .fig-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .fig-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font: 500 var(--text-sm)/1 var(--font-ui); color: var(--color-text); text-decoration: none; }
  .fig-menu a svg { width: 17px; height: 17px; color: var(--color-text-soft); }
  .fig-menu a:active { background: var(--color-surface); }
  .fig-webnote { display: none; position: static; margin: 0; padding: 9px 16px; font: 500 var(--text-xs)/1.4 var(--font-ui); color: var(--color-muted); background: var(--color-surface); border-bottom: 1px solid var(--color-border); text-align: center; }
  body.mobile-home .fig-webnote { display: block; }   /* banner on the homepage only, scrolls away (not sticky) */
}
