/* =================================================================
   NAVYATEJA MARRIPELLI · PORTFOLIO
   Theme: "The Creative Workspace" (Photoshop + Premiere Pro)
   Dark UI · bold FLAT colours pulled from the CV
   (pink #ff3f8e · blue #2f80ff · orange #ff8a2a · cream)
   ================================================================= */

:root {
  --bg:        #131316;
  --bg-2:      #17171b;
  --panel:     #1d1d22;
  --panel-2:   #25252c;
  --line:      #34343d;
  --line-soft: #2a2a31;
  --text:      #f4eee3;   /* warm off-white (CV cream) */
  --muted:     #9a958b;
  --muted-2:   #938d83;   /* passes 4.5:1 for small text on bg, panel and panel-2 */

  /* bold accents; the whole palette is derived from --pink at runtime */
  --pink:     #ff6b00;   /* << the user-selectable base accent (Brotomedia orange) */
  --pink-rgb: 255,107,0;
  --on-pink:  #141319;   /* text ON the accent: dark beats white on orange (6.5:1 vs 2.9:1) */
  /* the accent AS text, tuned per theme to reach 4.5:1; theme.js recomputes all three for custom accents */
  --pink-text-dark:  #ff6b00;
  --pink-text-light: #b84d00;
  --pink-text: var(--pink-text-dark);

  --blue:      #2f80ff;  /* harmonised secondary */
  --blue-rgb:  47,128,255;
  --blue-deep: #1e54e0;

  --orange:      #ff8a2a; /* harmonised tertiary */
  --orange-rgb:  255,138,42;
  --orange-deep: #ff6a14;

  --cream:  #f6ead4;

  /* role aliases used across the UI */
  --ps:     var(--blue);
  --pr:     var(--orange);
  --ae:     var(--pink);
  --ai:     var(--orange);
  --live:   var(--blue);
  --accent: var(--pink);

  --font-display: "Syne", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --rail: 3.5rem;
  --bar:  2.875rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* sections fill the space beside the tool rail and the Layers column (so minimising the panel
     visibly widens them); the cap only stops ultra-wide/4K screens from stretching grids too far */
  --content-max: 150rem;
  --case-max: max(68.75rem, 64vw);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Sizes are in rem. Up to 1440px wide 1rem = 16px; above that it grows only gently, to 18px at
   2560px and no further, so type stays comfortable rather than bulky. Big screens get their extra room
   from wider sections (--content-max), not from bigger text. */
html { font-size: 100%; }
@media (min-width: 1441px) { html { font-size: clamp(16px, calc(0.179vw + 13.43px), 18px); } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* the native pointer is hidden only when the custom cursor is actually running
   (mouse users; JS adds .has-cursor). Touch, pen and keyboard users keep theirs. */
body.has-cursor, body.has-cursor * { cursor: none; }

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--text); }
::selection { background: rgba(var(--pink-rgb),.32); color: #fff; }

/* ---------- background texture overlays ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.canvas-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 85%);
}
.grid-trail { position: fixed; inset: 0; z-index: -1; pointer-events: none; will-change: contents; transform: translateZ(0); }

/* =================================================================
   CUSTOM CURSOR
   ================================================================= */
.cursor { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot {
  position: fixed; width: 0.375rem; height: 0.375rem; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; width: 2.125rem; height: 2.125rem; border: 1px solid #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-radius .25s var(--ease), opacity .25s;
}
.cursor__label {
  position: fixed; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .5px;
  color: #fff; opacity: 0; white-space: nowrap; padding-top: 2.875rem; text-transform: uppercase;
}
body.cursor-hover .cursor__ring { width: 3.5rem; height: 3.5rem; border-radius: 0.5625rem; }
body.cursor-hover .cursor__label { opacity: 1; }
body:not(.has-cursor) .cursor { display: none; }
/* the cursor is a manual popover (top layer, so it stays above modal dialogs): undo the UA popover box */
.cursor[popover] { inset: auto; top: 0; left: 0; width: 0; height: 0; margin: 0; padding: 0; border: 0; background: none; overflow: visible; color: inherit; }

/* =================================================================
   BOOT LOADER
   ================================================================= */
.boot {
  position: fixed; inset: 0; z-index: 9500;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #1c1c22 0%, #0e0e11 80%);
  transition: opacity .6s var(--ease), visibility .6s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__card { width: min(26.25rem, 86vw); }
.boot__logo { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.625rem; }
.boot__badge {
  width: 3.125rem; height: 3.125rem; border-radius: 0.75rem; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--on-pink);
  background: var(--pink); box-shadow: 0 0.5rem 1.875rem rgba(var(--pink-rgb),.3);
}
.boot__id strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; }
.boot__id small { color: var(--muted); font-family: var(--font-mono); font-size: 0.6875rem; }
.boot__bar { height: 0.1875rem; background: var(--line-soft); border-radius: 0.25rem; overflow: hidden; }
.boot__fill { display: block; height: 100%; width: 0%; background: var(--pink); }
.boot__status {
  display: flex; justify-content: space-between; margin-top: 0.75rem;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted);
}
.boot__plugins { list-style: none; margin-top: 1.125rem; font-family: var(--font-mono); font-size: 0.6875rem; }
.boot__plugins li { color: var(--muted-2); padding: 0.1875rem 0; opacity: .35; transition: .3s; }
.boot__plugins li.is-on { color: var(--blue); opacity: 1; }
.boot__plugins li.is-on::before { content: "✓ "; }
.boot__plugins li:not(.is-on)::before { content: "• "; }

/* =================================================================
   TOP MENU BAR
   ================================================================= */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--bar); z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.125rem; background: rgba(20,20,24,.72); backdrop-filter: blur(0.875rem);
  border-bottom: 1px solid var(--line-soft);
  transform: translateY(-100%); transition: transform .6s var(--ease);
}
.menubar.is-in { transform: translateY(0); }
.menubar__brand { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-display); font-weight: 700; }
.menubar__badge {
  width: 1.625rem; height: 1.625rem; border-radius: 0.4375rem; display: grid; place-items: center;
  font-size: 0.8125rem; font-weight: 800; color: var(--on-pink); background: var(--pink);
}
.menubar__name .dim { color: var(--pink-text); }
.menubar__menu { display: flex; gap: 0.25rem; }
.menubar__menu a {
  font-size: 0.8125rem; color: var(--muted); padding: 0.4375rem 0.75rem; border-radius: 0.4375rem;
  position: relative; transition: color .2s, background .2s;
}
.menubar__menu a:hover, .menubar__menu a.is-active { color: var(--text); background: var(--panel-2); }
.menubar__status { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.dot { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--muted); }
.dot--live { background: var(--live); box-shadow: 0 0 0 0 rgba(var(--blue-rgb),.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--blue-rgb),.5);} 70% { box-shadow: 0 0 0 0.4375rem rgba(var(--blue-rgb),0);} 100% { box-shadow: 0 0 0 0 rgba(var(--blue-rgb),0);} }
@media (max-width: 720px) {
  /* phones: the section nav becomes a swipeable row instead of disappearing */
  .menubar { gap: 0.625rem; padding: 0 0.625rem; }
  .menubar__menu {
    flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .menubar__menu::-webkit-scrollbar { display: none; }
  .menubar__menu a { flex: 0 0 auto; font-size: 0.7813rem; padding: 0.5rem 0.625rem; }
  .menubar__status { display: none; }
}

/* =================================================================
   PHOTOSHOP TOOL RAIL
   ================================================================= */
.toolrail {
  position: fixed; left: 0; top: var(--bar); bottom: 0; width: var(--rail); z-index: 700;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.875rem 0;
  background: var(--panel); border-right: 1px solid var(--line-soft);
  transform: translateX(-100%); transition: transform .6s var(--ease) .1s;
}
.toolrail.is-in { transform: translateX(0); }
.tool {
  width: 2.375rem; height: 2.375rem; border: none; border-radius: 0.5625rem; background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s;
}
.tool svg { width: 1.1875rem; height: 1.1875rem; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.tool:hover { background: var(--panel-2); transform: translateY(-1px); }
.tool:hover svg { stroke: var(--text); }
.tool.is-active { background: rgba(var(--blue-rgb),.16); }
.tool.is-active svg { stroke: var(--ps); }
.toolrail__div { width: 1.375rem; height: 1px; background: var(--line); margin: 0.375rem 0; }
.tool--swatch { background: var(--pink); border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.tool--swatch:hover { transform: translateY(-1px) scale(1.05); }
/* mobile: turn the vertical rail into a horizontal touch toolbar above the scrubber */
@media (max-width: 860px) {
  .toolrail {
    flex-direction: row; align-items: center; justify-content: flex-start;
    top: auto; bottom: 2.5rem; left: 0; right: 0; width: auto; height: 3.375rem;
    padding: 0 0.625rem; gap: 0.25rem; z-index: 760;
    border-right: none; border-top: 1px solid var(--line-soft);
    background: rgba(20,20,24,.94); backdrop-filter: blur(0.875rem);
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transform: translateY(120%); transition: transform .5s var(--ease);
  }
  .toolrail::-webkit-scrollbar { display: none; }
  .toolrail.is-in { transform: translateY(0); }
  .tool { flex: 0 0 auto; width: 2.625rem; height: 2.625rem; cursor: pointer; }
  .tool svg { width: 1.3125rem; height: 1.3125rem; }
  .tool:active { background: var(--panel-2); transform: scale(.94); }
  .toolrail__div { width: 1px; height: 1.5rem; margin: 0 0.375rem; }
  .tool--swatch { width: 1.875rem; height: 1.875rem; }
}

/* =================================================================
   LAYERS PANEL (scroll spy)
   ================================================================= */
.layers {
  position: fixed; right: 1.125rem; bottom: 3.5rem; z-index: 700;
  width: 12.25rem; background: rgba(29,29,34,.85); backdrop-filter: blur(0.75rem);
  border: 1px solid var(--line-soft); border-radius: 0.75rem; overflow: hidden;
  opacity: 0; transition: opacity .6s var(--ease) .3s;
}
.layers.is-in { opacity: 1; }
.layers.is-dragging { transition: none; box-shadow: 0 1.75rem 3.75rem rgba(0,0,0,.45); }
.layers__head, .layers__opacity {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.625rem 0.8125rem; font-family: var(--font-mono); font-size: 0.6875rem;
  color: var(--muted); background: var(--panel-2);
}
.layers__head { cursor: pointer; user-select: none; }
.layers__title { display: inline-flex; align-items: center; gap: 0.4375rem; }
.layers__grip {
  width: 0.5625rem; height: 0.6875rem; opacity: .55; color: var(--muted);
  background: radial-gradient(currentColor 1px, transparent 1.4px) 0 0 / 0.25rem 0.25rem;
}
.layers__opacity { background: transparent; border-top: 1px solid var(--line-soft); }
.layers__list { list-style: none; padding: 0.375rem; }
.layers__item {
  display: flex; align-items: center; gap: 0.5625rem; padding: 0.5rem 0.5625rem; border-radius: 0.5rem;
  font-size: 0.75rem; color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
  width: 100%; background: none; border: none; font-family: inherit; text-align: left;
}
.layers__item:hover { background: var(--panel-2); color: var(--text); }
.layers__item.is-active { background: rgba(var(--pink-rgb),.14); color: var(--text); }
.layers__item.is-active .eye { background: var(--pink); border-color: var(--pink); }
.eye {
  width: 0.8125rem; height: 0.8125rem; border: 1px solid var(--muted-2); border-radius: 50%;
  flex-shrink: 0; position: relative; transition: .2s;
}
.eye::after { content: ""; position: absolute; inset: 0.25rem; border-radius: 50%; background: var(--bg); }
/* The Layers panel floats bottom-right, so it gets its own column: from 1440px up, main reserves
   the panel width on the right and no section ever runs underneath it. Narrower than that there is
   no room for a side column, and the top menubar already offers the same section links. */
@media (max-width: 1439px) { .layers { display: none; } }
@media (min-width: 1440px) {
  main { padding-right: calc(12.25rem + 1.125rem * 2); transition: padding-right .45s var(--ease); }
  /* minimised to the edge tab: the sections take the freed space, sliding wider together */
  html.layers-min main { padding-right: calc(2.5rem + 0.75rem * 2); }
}

/* =================================================================
   LAYOUT / SECTIONS
   ================================================================= */
main { padding-left: var(--rail); }
@media (max-width: 860px) { main { padding-left: 0; } }

.section {
  position: relative; padding: 7.5rem clamp(1.5rem, 7vw, 8.125rem);
  max-width: var(--content-max); margin: 0 auto;
}
.section__label {
  display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 2.5rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
}
.section__label span {
  color: var(--pink-text); font-size: 0.6875rem; font-weight: 700; letter-spacing: 1px;
  padding-bottom: 0.1875rem; border-bottom: 1px solid rgba(var(--pink-rgb), .4);
}

h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.grad { color: var(--pink-text); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  min-height: 100vh; max-width: none;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: var(--bar) clamp(1.5rem, 8vw, 9.375rem) 7.5rem;
  position: relative;
  container-type: inline-size;   /* lets the name size itself to the hero width (cqi units) */
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.tag {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .5px;
  padding: 0.375rem 0.75rem; border: 1px solid var(--line); border-radius: 1.875rem; color: var(--muted);
  background: rgba(255,255,255,.02);
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 9vw, 11.5rem);          /* fallback for browsers without container units */
  font-size: clamp(2rem, calc(100cqi / 10), 22rem); /* the longer line (MARRIPELLI) is ~9.85em wide: always fits the hero */
  line-height: 0.9; letter-spacing: -0.04em;
  text-transform: uppercase; margin-bottom: 0.625rem;
}
.hero__title .glitch { display: block; }
.hero__title .glitch:nth-child(3) { color: var(--pink-text); } /* child 1 is the .sr-only copy of the name */
.hero__title .glitch--alt { color: transparent; -webkit-text-stroke: 1.4px var(--text); }

.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.glitch.is-glitch::before { opacity: .9; color: var(--blue); transform: translate(-0.25rem, 2px); -webkit-text-stroke: 0; }
.glitch.is-glitch::after  { opacity: .9; color: var(--pink); transform: translate(0.25rem, -2px); -webkit-text-stroke: 0; }

.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.5rem); max-width: 38.75rem; color: var(--muted);
  margin: 1.375rem 0 2.25rem; line-height: 1.5;
}
.hero__tagline em { color: var(--text); font-style: italic; }
.hero__cta { display: flex; gap: 0.875rem; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono); font-size: 0.8125rem; padding: 0.8125rem 1.375rem; border-radius: 0.625rem;
  border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: .25s var(--ease);
  background: var(--panel); display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn:hover { border-color: var(--muted); transform: translateY(-2px); background: var(--panel-2); }
.btn--primary { background: var(--pink); border-color: transparent; color: var(--on-pink); font-weight: 700; }
.btn--primary:hover { box-shadow: 0 0.75rem 1.875rem rgba(var(--pink-rgb),.34); background: var(--pink); }
.btn--lg { padding: 1rem 1.75rem; font-size: 0.875rem; }

.hero__scrollhint {
  position: absolute; bottom: 5.625rem; left: clamp(1.5rem, 8vw, 9.375rem);
  display: flex; align-items: center; gap: 0.875rem; color: var(--muted-2);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1px; text-transform: uppercase;
}
.scrollhint__line { width: 3.75rem; height: 1px; background: var(--line); overflow: hidden; }
.scrollhint__line span { display: block; height: 100%; width: 40%; background: var(--pink); animation: slide 2s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%);} 100% { transform: translateX(250%);} }

.hero__corner {
  position: absolute; font-family: var(--font-mono); font-size: 0.625rem; color: var(--muted-2);
  letter-spacing: .5px;
}
.hero__corner--tl { top: calc(var(--bar) + 1.125rem); left: clamp(1.5rem, 8vw, 9.375rem); }
.hero__corner--tr { top: calc(var(--bar) + 1.125rem); right: 1.625rem; }
.hero__corner--bl { bottom: 1.625rem; left: clamp(1.5rem, 8vw, 9.375rem); }
.hero__corner--br { bottom: 1.625rem; right: 1.625rem; }
@media (max-width: 720px) { .hero__corner, .hero__scrollhint { display: none; } }

/* =================================================================
   ABOUT
   ================================================================= */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.125rem, 6vw, 5rem); align-items: center; }
.about__text h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); margin-bottom: 1.5rem; }
.about__text p { color: var(--muted); margin-bottom: 1.125rem; font-size: 1.05rem; }
.about__stats { display: flex; gap: 1.875rem; margin-top: 2.25rem; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--pink-text); }
.stat span { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }

/* ---- origin-story sticker (childhood cutout as a Photoshop layer) ---- */
.origin { position: relative; justify-self: center; width: min(17.5rem, 78%); margin: 0.625rem 0; }
.origin__float { animation: floaty 6s ease-in-out infinite; }
.origin__frame { position: relative; transform: rotate(-4deg); transition: transform .5s var(--ease); }
.origin:hover .origin__frame { transform: rotate(0deg) scale(1.04); }
.origin__frame img {
  display: block; width: 100%; height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 1.625rem 2.375rem rgba(0,0,0,.5));
}
/* marching-ants selection marquee */
.origin__marquee {
  position: absolute; inset: -0.875rem; z-index: 2; pointer-events: none; border-radius: 0.25rem;
  background-image:
    linear-gradient(90deg, var(--text) 50%, transparent 50%),
    linear-gradient(90deg, var(--text) 50%, transparent 50%),
    linear-gradient(0deg,  var(--text) 50%, transparent 50%),
    linear-gradient(0deg,  var(--text) 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 11px 1.5px, 11px 1.5px, 1.5px 11px, 1.5px 11px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  animation: ants .55s linear infinite;
}
@keyframes ants { to { background-position: 0.6875rem 0, -0.6875rem 100%, 0 -0.6875rem, 100% 0.6875rem; } }
/* free-transform corner handles */
.origin__h { position: absolute; z-index: 3; width: 0.5625rem; height: 0.5625rem; background: var(--pink); border: 1.5px solid var(--bg); border-radius: 2px; }
.origin__h--tl { top: -1.125rem; left: -1.125rem; }
.origin__h--tr { top: -1.125rem; right: -1.125rem; }
.origin__h--bl { bottom: -1.125rem; left: -1.125rem; }
.origin__h--br { bottom: -1.125rem; right: -1.125rem; }
/* layer tab */
.origin__tab {
  position: absolute; z-index: 4; bottom: -1rem; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.4375rem; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 0.4375rem; padding: 0.3125rem 0.6875rem;
}
.origin__eye { width: 0.6875rem; height: 0.6875rem; border: 1.5px solid var(--pink); border-radius: 50%; position: relative; }
.origin__eye::after { content: ""; position: absolute; inset: 0.1875rem; border-radius: 50%; background: var(--pink); }
/* speech bubble */
.origin__bubble {
  position: absolute; z-index: 4; top: 4%; right: -1.75rem;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; line-height: 1.2;
  max-width: 7.5rem; color: var(--on-pink); background: var(--pink);
  padding: 0.5625rem 0.8125rem; border-radius: 0.875rem 0.875rem 0.875rem 0.1875rem; transform: rotate(5deg) scale(.7);
  opacity: 0; transform-origin: bottom left; transition: opacity .35s var(--ease), transform .35s var(--ease);
  box-shadow: 0 0.625rem 1.5rem rgba(var(--pink-rgb),.4);
}
.origin:hover .origin__bubble { opacity: 1; transform: rotate(5deg) scale(1); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.75rem); } }
@media (max-width: 820px) { .origin { margin: 0 auto 24px; } .origin__bubble { opacity: 1; transform: rotate(5deg) scale(1); } }

/* =================================================================
   WORK GRID
   ================================================================= */
.work__head { margin-bottom: 2.75rem; }
.work__head h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
.work__head p { color: var(--muted); font-family: var(--font-mono); font-size: 0.8125rem; margin-top: 0.5rem; }

/* bento: dense auto-flow + a fine row unit; JS (layoutBento) sets each
   card's grid-row-end span from its real pixel height so tiles interlock
   with no leftover dead space, however many are on screen */

/* base dim over the whole image so the top badges stay legible on bright covers too */

/* card is a flex column (justify-content:flex-end) so .card__body sits at the bottom;
   its own gradient guarantees legible text no matter how bright the source image is */

/* =================================================================
   CASE STUDY OVERLAY  ·  "open the file"
   ================================================================= */
html.case-lock, html.case-lock body { overflow: hidden; }
.case {
  position: fixed; inset: 0; z-index: 9700; background: rgba(8,8,10,.6);
  backdrop-filter: blur(0.625rem); opacity: 0; transition: opacity .35s var(--ease);
  display: flex; flex-direction: column; cursor: auto;
}
.case.is-open { opacity: 1; }
.case__bar {
  flex-shrink: 0; height: 3.125rem; display: flex; align-items: center; gap: 1rem;
  padding: 0 1rem; background: rgba(20,20,24,.96); border-bottom: 1px solid var(--line);
}
.case__doc { display: inline-flex; align-items: center; gap: 0.5625rem; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text); }
.case__dot { width: 0.5625rem; height: 0.5625rem; border-radius: 0.1875rem; }
.case__crumb { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); margin-right: auto; }
.case__close {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font-family: var(--font-mono); font-size: 0.75rem; padding: 0.5rem 0.875rem; border-radius: 0.5rem; cursor: pointer;
  transition: .2s var(--ease);
}
.case__close:hover { border-color: var(--ink); color: var(--ink-text); }
.case__scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  background:
    radial-gradient(56.25rem 31.25rem at 80% -10%, color-mix(in srgb, var(--ink) 14%, transparent), transparent 70%),
    var(--bg);
}

/* gallery */
.gallery { columns: 2; column-gap: 1rem; }
.gallery--doc { columns: 2; }
.gallery--wide { columns: 1; }
@media (max-width: 700px) { .gallery, .gallery--doc { columns: 1; } }
.shot {
  break-inside: avoid; margin: 0 0 1rem; border-radius: 0.75rem; overflow: hidden; position: relative;
  border: 1px solid var(--line-soft); cursor: zoom-in; background: var(--panel);
}
.shot img { display: block; width: 100%; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.625rem 0.875rem 0.75rem;
  display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.6875rem; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8,8,10,.82)); opacity: 0; transition: .3s var(--ease);
}
.shot:hover figcaption { opacity: 1; }
.shot__no { color: var(--ink-text); font-weight: 700; }

/* video player */
.player { border: 1px solid var(--line); border-radius: 0.875rem; overflow: hidden; background: #0c0c0e; }
.player__stage { position: relative; background: #000; display: grid; place-items: center; }
.player__stage video { width: 100%; max-height: 70vh; display: block; }
.player__play {
  position: absolute; inset: 0; margin: auto; width: 4.625rem; height: 4.625rem; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92); color: #111; font-size: 1.5rem; cursor: pointer;
  display: grid; place-items: center; transition: .25s var(--ease);
}
.player__play.is-playing { opacity: 0; pointer-events: none; }
.player__stage:hover .player__play { transform: scale(1.05); }
.player__tc {
  position: absolute; left: 0.75rem; bottom: 0.75rem; font-family: var(--font-mono); font-size: 0.6875rem; color: #fff;
  background: rgba(0,0,0,.5); padding: 0.3125rem 0.625rem; border-radius: 0.375rem; border-left: 2px solid var(--ink);
}
.player__mute {
  position: absolute; right: 0.75rem; bottom: 0.75rem; font-family: var(--font-mono); font-size: 0.6875rem;
  border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.5); color: #fff; padding: 0.3125rem 0.625rem;
  border-radius: 0.375rem; cursor: pointer;
}
.player__mute.is-on { border-color: var(--ink); color: var(--ink-text); }
.player__strip { display: flex; gap: 0.5rem; padding: 0.625rem; overflow-x: auto; background: var(--panel); }
.player__chip {
  flex: 0 0 auto; width: 5.5rem; border: 1px solid var(--line-soft); border-radius: 0.5rem; overflow: hidden;
  background: var(--bg-2); cursor: pointer; padding: 0; transition: .2s var(--ease);
}
.player__chip img { width: 100%; height: 3.5rem; object-fit: cover; display: block; }
.player__chip span { display: block; font-family: var(--font-mono); font-size: 0.5625rem; color: var(--muted); padding: 0.25rem; }
.player__chip.is-on { border-color: var(--ink); }
.player__chip.is-on span { color: var(--ink-text); }

/* figma / slides embed */
.embed { border: 1px solid var(--line); border-radius: 0.875rem; overflow: hidden; background: var(--panel); }
.embed__bar { display: flex; align-items: center; gap: 0.4375rem; padding: 0.625rem 0.875rem; background: var(--panel-2); border-bottom: 1px solid var(--line-soft); }
.embed__bar em { font-family: var(--font-mono); font-style: normal; font-size: 0.6875rem; color: var(--muted); margin-left: 0.5rem; }
.embed__dot { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: var(--line); }
.embed__frame { width: 100%; height: min(70vh, 40rem); border: 0; display: block; background: #1e1e1e; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.875rem; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats__cell { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 0.875rem; padding: 1.375rem 1.125rem; }
.stats__cell strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; }
.stats__cell span { display: block; margin-top: 0.625rem; font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9800; background: rgba(6,6,8,.92); display: grid; place-items: center;
  opacity: 0; transition: opacity .25s var(--ease); cursor: zoom-out; padding: 1.875rem;
}
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 0.5rem; box-shadow: 0 1.875rem 5.625rem rgba(0,0,0,.6); }
.lightbox__x { position: fixed; top: 1.125rem; right: 1.375rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* =================================================================
   EXPERIENCE · PREMIERE TIMELINE
   ================================================================= */
.timeline { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 0.875rem; padding: 1rem; }
.waveform { display: flex; align-items: center; gap: 2px; height: 1.875rem; }
.waveform span { width: 2px; background: var(--blue); opacity: .55; border-radius: 2px; }

/* =================================================================
   TOOLKIT
   ================================================================= */
.toolkit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.875rem, 1fr)); gap: 0.875rem; }
.tk {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 0.875rem; padding: 1.375rem;
  position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s;
}
.tk:hover { transform: translateY(-0.25rem); border-color: var(--muted-2); }
.tk__icon {
  width: 2.875rem; height: 2.875rem; border-radius: 0.6875rem; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; margin-bottom: 1rem;
  color: #fff;
}
.tk__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.tk__role { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); margin: 0.25rem 0 0.875rem; }
.tk__bar { height: 0.25rem; background: var(--line-soft); border-radius: 0.25rem; overflow: hidden; }
.tk__fill { display: block; height: 100%; width: 0; border-radius: 0.25rem; transition: width 1.1s var(--ease); }

/* =================================================================
   RECOGNITION (awards + education)
   ================================================================= */
.recognition__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.875rem, 6vw, 5.625rem); }
.rec-col h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 0.875rem; }
.rec-col h3::before { content: "▸ "; color: var(--pink); }
.rec-list { list-style: none; }
.rec-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.875rem 2px; border-top: 1px solid var(--line-soft);
}
.rec-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.rec-name { color: var(--text); font-size: 1rem; }
.rec-meta { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); text-align: right; white-space: nowrap; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rec-tags span {
  font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.375rem 0.75rem;
  border: 1px solid var(--line); border-radius: 1.875rem; color: var(--muted);
}
@media (max-width: 820px) { .recognition__grid { grid-template-columns: 1fr; } }

/* =================================================================
   CONTACT + FOOTER
   ================================================================= */
.contact__details { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted) !important; margin: -0.625rem 0 2rem !important; }
.contact { text-align: center; max-width: 61.25rem; padding-bottom: 5rem; }
.contact__inner h2 { font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1; }
.contact__inner p { color: var(--muted); margin: 1.25rem 0 2.375rem; font-size: 1.1rem; }
.contact__links { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

.footer {
  margin-top: 5.625rem; padding: 1.375rem clamp(1.5rem, 7vw, 8.125rem); border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.625rem;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted);
  max-width: var(--content-max); margin-left: auto; margin-right: auto;
}
.footer__easter { color: var(--muted-2); }

/* =================================================================
   PREMIERE SCRUBBER (scroll progress, pinned bottom)
   ================================================================= */
.scrubber {
  position: fixed; left: var(--rail); right: 0; bottom: 0; z-index: 750; height: 2.5rem;
  display: flex; align-items: center; gap: 0.875rem; padding: 0 1.125rem;
  background: rgba(20,20,24,.82); backdrop-filter: blur(0.875rem);
  border-top: 1px solid var(--line-soft);
  transform: translateY(100%); transition: transform .6s var(--ease) .2s;
}
.scrubber.is-in { transform: translateY(0); }
.scrubber__tc, .scrubber__fps { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); white-space: nowrap; }
.scrubber__tc { color: var(--blue); }
.scrubber__track { position: relative; flex: 1; height: 1rem; }
.scrubber__ticks { position: absolute; inset: 0; display: flex; align-items: center; }
.scrubber__ticks span { flex: 1; border-left: 1px solid var(--line-soft); height: 0.375rem; }
.scrubber__ticks span.major { height: 0.6875rem; border-color: var(--line); }
.scrubber__progress {
  position: absolute; top: 50%; left: 0; height: 0.1875rem; width: 0%; transform: translateY(-50%);
  background: var(--blue); border-radius: 0.1875rem;
}
.scrubber__playhead {
  position: absolute; top: -2px; bottom: -2px; left: 0; width: 2px; background: var(--blue);
}
.scrubber__playhead::before {
  content: ""; position: absolute; top: -1px; left: -0.3125rem; border: 0.375rem solid transparent;
  border-top-color: var(--blue); border-bottom: 0;
}
@media (max-width: 860px) { .scrubber { left: 0; } }

/* =================================================================
   ACCENT COLOUR PICKER
   ================================================================= */
.picker {
  position: fixed; left: calc(var(--rail) + 0.75rem); top: 50%; z-index: 900;
  width: 12.25rem; background: rgba(29,29,34,.97); backdrop-filter: blur(0.875rem);
  border: 1px solid var(--line); border-radius: 0.875rem; padding: 0.875rem;
  box-shadow: 0 1.5rem 3.75rem rgba(0,0,0,.55);
  opacity: 0; transform: translateX(-0.5rem) scale(.96); transform-origin: left center;
  pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.picker.is-open { opacity: 1; transform: none; pointer-events: auto; }
/* little pointer toward the swatch button */
.picker::before {
  content: ""; position: absolute; left: -0.375rem; top: var(--arrow, 50%); transform: translateY(-50%) rotate(45deg);
  width: 0.75rem; height: 0.75rem; background: rgba(29,29,34,.97);
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.picker__head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.picker__head #pickerHex { color: var(--pink-text); letter-spacing: .5px; }
.picker__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.picker__swatches button {
  aspect-ratio: 1; border-radius: 0.5625rem; border: 2px solid transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .15s var(--ease), border-color .15s;
}
.picker__swatches button:hover { transform: scale(1.1); }
.picker__swatches button.is-sel { border-color: #fff; }
.picker__custom {
  display: flex; align-items: center; justify-content: space-between; margin-top: 0.875rem;
  padding-top: 0.75rem; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); cursor: pointer;
}
.picker__custom input[type="color"] {
  width: 2.375rem; height: 1.625rem; border: 1px solid var(--line); border-radius: 0.375rem;
  background: none; cursor: pointer; padding: 2px;
}
@media (max-width: 860px) {
  .picker { width: 12.5rem; }
  .picker::before { display: none; }
}

/* =================================================================
   INTERACTIVE TOOLS (Move / Marquee / Crop / Brush / Lasso / Pen / Type)
   ================================================================= */
#fxCanvas { position: fixed; inset: 0; z-index: 600; pointer-events: none; touch-action: none; }
#fxCanvas.is-active { pointer-events: auto; }
body[data-tool="move"], body[data-tool="brush"], body[data-tool="lasso"],
body[data-tool="pen"], body[data-tool="marquee"], body[data-tool="crop"] { user-select: none; }
.fx-lift { position: relative; z-index: 610; }
.fx-flash { position: fixed; inset: 0; z-index: 9600; background: #fff; opacity: 0; pointer-events: none; }
.fx-flash.go { animation: fxflash .5s ease; }
@keyframes fxflash { 0% { opacity: 0; } 12% { opacity: .8; } 100% { opacity: 0; } }
.fx-toast {
  position: fixed; left: 50%; bottom: 4rem; transform: translate(-50%, 1rem); z-index: 9600;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-mono); font-size: 0.75rem; padding: 0.625rem 1rem; border-radius: 0.625rem;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,.4); opacity: 0; transition: .35s var(--ease); pointer-events: none;
}
.fx-toast.show { opacity: 1; transform: translate(-50%, 0); }
.type-caption {
  position: absolute; z-index: 940; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--pink); caret-color: var(--pink);
  outline: none; white-space: nowrap; line-height: 1.1; min-width: 0.5rem;
  padding: 0.25rem 0.5rem; border: 1px dashed transparent; border-radius: 0.375rem;
  text-shadow: 0 2px 1.375rem rgba(0,0,0,.45);
}
.type-caption:focus { border-color: rgba(var(--pink-rgb), .55); }
html.crop-lock, html.crop-lock body { overflow: hidden !important; }

/* =================================================================
   REVEAL ANIMATIONS
   ================================================================= */
.reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   RESPONSIVE / MOBILE
   ================================================================= */
@media (max-width: 860px) {
  /* the bottom toolbar + scrubber span full width here; keep content clear of them */
  .footer { padding-bottom: 3.75rem; }
  main { padding-bottom: 6rem; }
}

@media (max-width: 720px) {
  .section { padding: 5rem clamp(1.25rem, 6vw, 8.125rem); }
  .section__label { margin-bottom: 1.625rem; }

  .hero { min-height: 100svh; padding: calc(var(--bar) + 1.5rem) 1.5rem 5rem; }
  .hero__tagline { font-size: clamp(1rem, 4.4vw, 1.3rem); margin: 1.125rem 0 1.875rem; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }

  .about__text h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .about__text p { font-size: 1rem; }
  .about__stats { gap: 1.375rem 1.875rem; margin-top: 1.75rem; }
  .stat strong { font-size: 2rem; }

  /* Premiere timeline: tighten so the clips stay readable on a phone */
  .timeline { padding: 0.75rem; }

  /* awards: let long names wrap above their source */
  .rec-list li { flex-wrap: wrap; gap: 2px 1rem; }
  .rec-meta { text-align: left; }

  .contact__details { font-size: 0.75rem; word-break: break-word; }
  .footer { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 1.25rem; }
  .hero { padding: calc(var(--bar) + 1rem) 1.25rem 4rem; }
  .menubar__status span:not(.dot) { font-size: 0.625rem; }
  .btn { padding: 0.75rem 1.125rem; }
}

/* coarse-pointer (touch) devices: neutralise hover-only lift effects */
@media (hover: none) {
  .card:hover, .tk:hover, .btn:hover { transform: none; }
}

/* =================================================================
   YOUTUBE FACADE PLAYER  (lazy, perf-friendly)
   ================================================================= */
.ytfacade {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 0.875rem; overflow: hidden; cursor: pointer;
  background: #0b0b0d; isolation: isolate;
}
.ytfacade__thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,0,1), filter .5s;
}
.ytfacade__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 30%, rgba(0,0,0,.55) 100%);
  transition: opacity .4s;
}
.ytfacade__play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 5.25rem; height: 3.75rem; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer;
  filter: drop-shadow(0 0.375rem 1.125rem rgba(0,0,0,.5));
  transition: transform .35s cubic-bezier(.2,1.4,.4,1);
}
.ytfacade__play svg { width: 100%; height: 100%; }
.ytfacade__play svg path:first-child { opacity: .92; transition: opacity .3s; }
.ytfacade:hover .ytfacade__thumb { transform: scale(1.05); }
.ytfacade:hover .ytfacade__play { transform: scale(1.12); }
.ytfacade:hover .ytfacade__play svg path:first-child { opacity: 1; }
.ytfacade.is-live { cursor: default; }
.ytfacade__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }

/* =================================================================
   FILMS / SHOWREEL
   ================================================================= */
.films__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.125rem;
}
.film { grid-column: span 2; }
.film:first-child, .film:nth-child(2) { grid-column: span 3; }
.ytfacade--card { border: 1px solid var(--line); box-shadow: 0 1.125rem 2.5rem -1.75rem rgba(0,0,0,.8); }
.ytfacade--card .ytfacade__play { width: 4rem; height: 2.875rem; }
.film__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-top: 0.75rem; }
.film__title { font-weight: 650; letter-spacing: -.01em; }
.film__brand { font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 760px) {
  .films__grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .film, .film:first-child, .film:nth-child(2) { grid-column: span 1; }
  .film:first-child { grid-column: span 2; }
}

/* =================================================================
   PHONE NAVIGATOR  (Amazon proto · RootCause walkthrough)
   ================================================================= */
.phonewrap { display: flex; flex-direction: column; align-items: center; gap: 1.125rem; padding: 0.5rem 0 0.25rem; }
.phonewrap__hint { font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.device {
  position: relative; width: 20rem; max-width: 78vw; aspect-ratio: 320 / 660;
  background: #0a0a0c; border-radius: 2.75rem; padding: 0.75rem;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 2.5rem 5.625rem -2.5rem rgba(0,0,0,.9),
              inset 0 0 0 0.5rem #16161a, 0 0 3.75rem -1.25rem var(--ink);
}
.device__notch {
  position: absolute; top: 1.125rem; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 6.875rem; height: 1.625rem; background: #050506; border-radius: 0 0 1rem 1rem;
}
.device__screen {
  position: relative; width: 100%; height: 100%; border-radius: 2rem; overflow: hidden;
  background: #fff;
}
.device--scroll .device__screen { overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; }
.device--scroll .device__screen::-webkit-scrollbar { display: none; }
.device--scroll .device__shot { position: static; height: auto; }
.device__shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.02); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,0,1);
}
.device__shot.is-on { opacity: 1; transform: none; }
.device--proto { aspect-ratio: 320 / 690; }
.device__proto { width: 100%; height: 100%; border: 0; border-radius: 2rem; background: #fff; }
.device__nav { display: flex; align-items: center; gap: 1rem; }
.device__btn {
  width: 2.375rem; height: 2.375rem; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink-1); font-size: 1.125rem; cursor: pointer;
  display: grid; place-items: center; transition: background .25s, border-color .25s, transform .2s;
}
.device__btn:hover { border-color: var(--ink); color: var(--ink-text); transform: translateY(-2px); }
.device__dots { display: flex; gap: 0.5rem; }
.device__dots i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .25s, transform .25s; }
.device__dots i.is-on { background: var(--ink); transform: scale(1.35); }

/* live Figma prototype (already renders its own device, so no extra bezel) */
.proto {
  max-width: 28.75rem; margin: 0 auto; border-radius: 1.125rem; overflow: hidden;
  border: 1px solid var(--line); background: #0b0b0d;
  box-shadow: 0 2.5rem 5.625rem -3.125rem rgba(0,0,0,.9), 0 0 4.375rem -1.875rem var(--ink);
}
.proto__bar {
  display: flex; align-items: center; gap: 0.4375rem; padding: 0.6875rem 0.875rem;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.proto__dot { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: var(--line); }
.proto__bar em { margin-left: 0.5rem; font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-style: normal; }
.proto__frame { display: block; width: 100%; aspect-ratio: 9 / 17; border: 0; background: #0b0b0d; }

/* =================================================================
   CASE OPEN ANIMATIONS  (sleek staggered reveals)
   ================================================================= */

@keyframes caseUp { from { opacity: 0; transform: translateY(1.625rem); } to { opacity: 1; transform: none; } }

/* =================================================================
   TESTIMONIALS  ·  "Client Love"
   ================================================================= */
.tsm__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem;
}
.tsm {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 0.625rem; padding: 1.625rem 1.375rem 1.25rem;
  box-shadow: 0 1.125rem 2.5rem -1.75rem rgba(0,0,0,.8);
  display: flex; flex-direction: column; gap: 0.875rem;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s var(--ease);
}
.tsm:hover { transform: translateY(-0.25rem); border-color: rgba(var(--pink-rgb), .55); }
.tsm__mark {
  position: absolute; top: 0.5rem; right: 1rem;
  font-family: var(--font-display); font-size: 3.2rem; line-height: 1;
  color: rgba(var(--pink-rgb), .35); pointer-events: none;
}
.tsm__quote { font-size: .92rem; color: var(--text); opacity: .92; flex: 1; }
.tsm__who { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-soft); padding-top: 0.75rem; }
.tsm__who strong { font-family: var(--font-display); font-size: .95rem; letter-spacing: -.01em; }
.tsm__who span { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1020px) { .tsm__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tsm__grid { grid-template-columns: 1fr; gap: 14px; } }

/* =================================================================
   BRAND LOGO  ·  Newfangled Mind NM monogram
   ================================================================= */
.boot__badge, .menubar__badge { background: #ffffff; }
.boot__badge img, .menubar__badge img {
  width: 68%; height: 68%; object-fit: contain; display: block;
}
.footer__brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__logo { width: 1.125rem; height: 1.125rem; object-fit: contain; opacity: .8; }

/* =================================================================
   UX ROUND 2 · toolkit icons, work pagination, socials, exp rows
   ================================================================= */
/* toolkit: real app icons */
.tk__icon--img { background: transparent; padding: 0; }
.tk__icon--img img { width: 2.875rem; height: 2.875rem; object-fit: contain; display: block; filter: drop-shadow(0 0.375rem 0.875rem rgba(0,0,0,.4)); }

/* case notes: crisp accent border like the deck mock */

/* work: load more / view all */
.work__more { display: flex; gap: 0.875rem; justify-content: center; margin-top: 2.125rem; }
.work__more.is-done { display: none; }
.card--hidden { display: none !important; }

/* socials */
.socials { display: flex; gap: 0.875rem; justify-content: center; margin-top: 1.625rem; }
.social {
  width: 2.875rem; height: 2.875rem; border: 1px solid var(--line); border-radius: 0.75rem;
  display: grid; place-items: center; background: var(--panel);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.social svg { width: 1.25rem; height: 1.25rem; fill: var(--muted); transition: fill .25s; }
.social:hover { transform: translateY(-0.1875rem); border-color: var(--pink); background: var(--panel-2); }
.social:hover svg { fill: var(--pink); }

/* audio track: brand line that pops */
.clip__title--brand {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600; letter-spacing: .04em;
  color: var(--text); text-transform: uppercase;
}
.clip__title--brand b { color: var(--pink-text); font-weight: 800; text-shadow: 0 0 1.125rem rgba(var(--pink-rgb), .5); }
@media (max-width: 720px) {
  .clip__title--brand { display: block; font-size: .7rem; }
}
.clip__title--brand {
  flex: 0 0 auto; white-space: nowrap;
  font-size: clamp(.62rem, 1.1vw, .92rem);
}
@media (max-width: 900px) { .clip__title--brand { flex: 1; text-align: center; } }

/* =================================================================
   CERTIFICATIONS
   ================================================================= */
.certs__master { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1rem; margin-bottom: 2.125rem; }
.cert--master {
  position: relative; background: linear-gradient(135deg, rgba(var(--pink-rgb), .12), var(--panel) 60%);
  border: 1px solid var(--pink); border-radius: 0.875rem; padding: 1.5rem 1.375rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform .3s var(--ease);
}
.cert--master:hover { transform: translateY(-0.25rem); }
.cert__badge {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: .16em;
  color: var(--on-pink); background: var(--pink); padding: 0.25rem 0.5625rem; border-radius: 1.25rem; font-weight: 700;
}
.cert__name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--text); text-decoration: none; }
a.cert__name:hover { color: var(--pink-text); }
.cert__meta { font-family: var(--font-mono); font-size: 0.6563rem; color: var(--muted); }
.rec-name--link { color: var(--text); text-decoration: none; }
.rec-name--link:hover { color: var(--pink-text); }
.certs__grid { margin-top: 0.375rem; }

/* certifications: denser 3-col category grid */
.certs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.625rem; }
@media (max-width: 1020px) { .certs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .certs__grid { grid-template-columns: 1fr; } }
.certs__grid .rec-list li { padding: 0.4375rem 0; }
.certs__grid .rec-name, .certs__grid .rec-name--link { font-size: .84rem; }

/* top bar: 8 sections — keep them on one line, scroll if the window is narrow */
.menubar__menu {
  gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menubar__menu::-webkit-scrollbar { display: none; }
.menubar__menu a { white-space: nowrap; padding: 0.4375rem 0.625rem; font-size: 0.7813rem; }
@media (max-width: 1180px) { .menubar__menu a { padding: 7px 8px; font-size: 12px; } }

/* =================================================================
   LIGHT THEME  ·  toggled via #themeToggle, persisted in localStorage
   ================================================================= */
:root[data-theme="light"] {
  --bg:        #f7f4ee;
  --bg-2:      #f0ece3;
  --panel:     #ffffff;
  --panel-2:   #f3efe7;
  --line:      #e2dccd;
  --line-soft: #ece7db;
  --text:      #201d18;
  --muted:     #6b6459;
  --muted-2:   #756e62;   /* passes 4.5:1 on cream and white */
  /* the same accent as the dark theme (a darker shade, --pink-text-light, is still available if ever needed) */
  --pink-text: var(--pink);
  --cream:     #2a261f;
}
:root[data-theme="light"] .card__scrim,
:root[data-theme="light"] .card__body::before { filter: brightness(.92); }
:root[data-theme="light"] .cursor,
:root[data-theme="light"] .canvas-grid { opacity: .35; }

#themeToggle { position: relative; }
.theme-icon { position: absolute; inset: 0; margin: auto; }
.theme-icon--moon { opacity: 1; transform: scale(1); }
.theme-icon--sun { opacity: 0; transform: scale(.5) rotate(-45deg); }
:root[data-theme="light"] .theme-icon--moon { opacity: 0; transform: scale(.5) rotate(45deg); }
:root[data-theme="light"] .theme-icon--sun { opacity: 1; transform: scale(1) rotate(0); }
.theme-icon { transition: opacity .3s var(--ease), transform .3s var(--ease); }

/* =================================================================
   ACCESSIBILITY  ·  skip link + visible keyboard focus states
   ================================================================= */
.skip-link {
  position: absolute; top: -3.75rem; left: 0.75rem; z-index: 10000;
  background: var(--pink); color: var(--on-pink); font-weight: 700; font-size: 0.8125rem;
  padding: 0.625rem 1.125rem; border-radius: 0.5rem; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* Custom cursor hides the native pointer, but keyboard focus still needs
   a clear, branded indicator — applied broadly, opt out with .no-focus-ring */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--pink-text); outline-offset: 0.1875rem; border-radius: 0.25rem;
}
.card:focus-visible, .tk:focus-visible {
  outline: 2px solid var(--pink-text); outline-offset: 2px;
}
.social:focus-visible, .tool:focus-visible, .layers__item:focus-visible {
  outline: 2px solid var(--pink-text); outline-offset: 2px;
}

/* =================================================================
   LIGHT THEME  ·  workspace chrome (menubar, tool rail, layers panel,
   scrubber, accent picker, case doc bar) gets a real light glass
   treatment instead of staying forced-dark — a dark bar floating on
   an otherwise light page read as broken, not as an app palette.
   Text/line colours fall back to the normal light-theme variables,
   which already have good contrast against a light background.
   ================================================================= */
:root[data-theme="light"] .menubar { background: rgba(255,255,255,.82); border-bottom-color: var(--line); }
:root[data-theme="light"] .toolrail { background: rgba(255,255,255,.92); border-right-color: var(--line); }
@media (max-width: 860px) {
  :root[data-theme="light"] .toolrail { background: rgba(255,255,255,.94); border-top-color: var(--line); }
}
:root[data-theme="light"] .layers { background: rgba(255,255,255,.9); border-color: var(--line); }
:root[data-theme="light"] .scrubber { background: rgba(255,255,255,.85); border-top-color: var(--line); }
:root[data-theme="light"] .picker,
:root[data-theme="light"] .picker::before { background: rgba(255,255,255,.97); }
:root[data-theme="light"] .picker { border-color: var(--line); }
:root[data-theme="light"] .case__bar { background: rgba(255,255,255,.96); border-bottom-color: var(--line); }
:root[data-theme="light"] .tool--swatch { border-color: var(--panel); box-shadow: 0 0 0 1px var(--line); }

/* decorative hero corner labels: swap to the higher-contrast muted tone */
.hero__corner { color: var(--muted); }

/* =================================================================
   CERTIFICATIONS  ·  collapsible category lists (closed by default)
   ================================================================= */
.certs__grid .rec-col summary {
  display: flex; align-items: center; gap: 0.5625rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  padding: 2px 0 0.25rem; user-select: none;
}
.certs__grid .rec-col summary::-webkit-details-marker { display: none; }
.certs__grid .rec-col summary::marker { content: ""; }
.certs__grid .rec-col__chev {
  font-style: normal; font-size: .6em; color: var(--pink-text); flex-shrink: 0;
  transition: transform .25s var(--ease); display: inline-block;
}
.certs__grid .rec-col[open] > summary .rec-col__chev { transform: rotate(90deg); }
.certs__grid .rec-col__count {
  margin-left: auto; font-family: var(--font-mono); font-weight: 400; font-size: 0.6875rem;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: 1.25rem; padding: 2px 0.5625rem;
}
.certs__grid .rec-col { border-bottom: 1px solid var(--line-soft); padding-bottom: 0.875rem; }
.certs__grid .rec-col:hover summary { color: var(--pink-text); }
.certs__grid .rec-col .rec-list { margin-top: 0.75rem; }
.certs__grid .rec-col[open] .rec-list { animation: certsFade .3s var(--ease); }
@keyframes certsFade { from { opacity: 0; transform: translateY(-0.25rem); } to { opacity: 1; transform: none; } }

/* =================================================================
   CLEANUP PASS (2026-10) · a11y helpers, boot skip, work filters,
   case-study results framing, contact form, mobile fixes
   ================================================================= */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
main:focus, section[tabindex="-1"]:focus { outline: none; }
summary:focus-visible, select:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 0.1875rem; border-radius: 0.25rem; }

/* ---------- boot loader: skip + repeat visits ---------- */
html.is-repeat .boot, .boot.is-quick { display: none; }
.boot__skip {
  margin-top: 1.375rem; display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line); border-radius: 0.5rem; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.4375rem 0.75rem; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.boot__skip:hover { color: var(--text); border-color: var(--muted); }
.boot__skip kbd { font-family: inherit; font-size: 0.625rem; padding: 1px 0.3125rem; border-radius: 0.25rem; background: var(--panel-2); }

/* ---------- work filters ---------- */
.work__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -1.125rem 0 1.625rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .3px;
  padding: 0.5625rem 0.875rem; border-radius: 62.4375rem; cursor: pointer;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-on { background: var(--pink); border-color: var(--pink); color: var(--on-pink); font-weight: 700; }
.chip__n { font-size: 0.625rem; }

/* the card title link stretches over the whole card: one tab stop, real URL */

/* no-JS / crawler fallback list (replaced by the cards when JS runs) */
.work__fallback { grid-column: 1 / -1; list-style: none; display: grid; gap: 0.5rem; }
.work__fallback a { color: var(--text); text-decoration: underline; text-underline-offset: 0.1875rem; }

/* ---------- case overlay: facts, results, permalink ---------- */

.case__perma {
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); text-decoration: none;
  padding: 0.375rem 0.625rem; border-radius: 0.5rem; border: 1px solid transparent;
}
.case__perma:hover { color: var(--ink-text); border-color: var(--line); }

.shot__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
.shot:focus-within figcaption { opacity: 1; }
@media (max-width: 640px) {
  .case__bar { gap: 0.625rem; padding: 0 0.625rem; }
  .case__crumb { display: none; }
  .case__doc { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; }
  .case__perma { display: none; }

  /* captions are hover-only on desktop; on touch show them under the image */
  .shot figcaption { position: static; opacity: 1; background: none; color: var(--muted); padding: 0.5rem 0.75rem; }
}

/* ---------- testimonials markup (figure > blockquote) ---------- */
.tsm { margin: 0; }
.tsm__quote { margin: 0; }

/* ---------- contact form ---------- */
.cform {
  text-align: left; max-width: 47.5rem; margin: 0 auto 2.125rem;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 0.875rem; overflow: hidden;
}
.cform__bar { display: flex; align-items: center; gap: 0.4375rem; padding: 0.625rem 0.875rem; background: var(--panel-2); border-bottom: 1px solid var(--line-soft); }
.cform__bar .embed__dot { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: var(--line); }
.cform__bar em { margin-left: 0.5rem; font-family: var(--font-mono); font-style: normal; font-size: 0.6875rem; color: var(--muted); }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.25rem; }
.cform__field { display: flex; flex-direction: column; gap: 0.375rem; }
.cform__field--wide { grid-column: 1 / -1; }
.cform__field > span { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.cform__field small { text-transform: none; letter-spacing: 0; opacity: .8; }
.cform input, .cform select, .cform textarea {
  width: 100%; font: inherit; font-size: 0.9375rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 0.625rem; padding: 0.75rem 0.8125rem;
  transition: border-color .2s, box-shadow .2s;
}
.cform textarea { resize: vertical; min-height: 8.125rem; line-height: 1.5; }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-color: var(--pink-text); box-shadow: 0 0 0 0.1875rem rgba(var(--pink-rgb), .22);
}
.cform input:user-invalid, .cform textarea:user-invalid { border-color: #e0433c; }
.cform__hp { position: absolute; left: -624.9375rem; width: 1px; height: 1px; overflow: hidden; }
.cform__foot { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex-wrap: wrap; padding: 0 1.25rem 1.25rem; }
.contact__inner .cform__status { margin: 0 auto 0 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.cform__status[data-kind="ok"] { color: #19b36b; }
.cform__status[data-kind="err"] { color: #e0433c; }
.cform button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 640px) {
  .cform__grid { grid-template-columns: 1fr; padding: 1rem; }
  .cform__foot { padding: 0 1rem 1rem; }
  .cform__foot .btn { width: 100%; justify-content: center; }
  .cform input, .cform select, .cform textarea { font-size: 1rem; } /* stops iOS zooming into fields */
}

/* ---------- mobile pass ---------- */
@media (max-width: 860px) {
  /* bottom toolbar (3.375rem) + scrubber (2.5rem) are fixed; keep the last content and toasts clear of them */
  main { padding-bottom: 6.875rem; }
  .fx-toast { bottom: 6.875rem; }
  .tool { width: 2.75rem; height: 2.75rem; }             /* 2.75rem touch targets */
  .work__filters { margin-top: -0.625rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
  .work__filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .menubar__status { display: none; }
  .contact__links .btn { width: 100%; justify-content: center; }
}

/* ---------- reduced motion: also stop the decorative chrome ---------- */
@media (prefers-reduced-motion: reduce) {
  .boot { display: none; }
  .card:hover, .card:hover .card__art, .shot:hover img, .tsm:hover { transform: none; }
}

/* the hero name deliberately bleeds past the canvas edge on desktop; clip it to the hero so it can never
   widen the page (on phones that made the browser zoom the whole site out) */
.hero { overflow-x: clip; }

/* =================================================================
   CONTRAST (WCAG AA) · project accents as text inside the case overlay.
   case.js sets --on-ink / --ink-text-dark / --ink-text-light from js/lib/color.js
   ================================================================= */
.case { --ink-text: var(--ink-text-dark, var(--ink)); }
:root[data-theme="light"] .case { --ink-text: var(--ink-text-light, var(--ink)); }
.case__idx, .stats__val { color: var(--ink-text); }

/* readable line length: sections get wider on big screens, running text does not */
.about__text p, .work__head p, .tsm__quote, .note p, .case__section > p { max-width: 68ch; }

/* wide screens: same card spans on a 16-column grid, so more projects sit side by side
   instead of each card ballooning to the extra width */

/* =================================================================
   LAYERS PANEL · minimise to an edge tab (Photoshop-style collapsed panel)
   ================================================================= */
.layers { transition: opacity .6s var(--ease) .3s, width .4s var(--ease), right .4s var(--ease); }
.layers__head { gap: 0.5rem; }
.layers__count { margin-left: auto; }
.layers__toggle {
  display: grid; place-items: center; width: 1.375rem; height: 1.375rem; margin-right: -0.25rem;
  border: 0; border-radius: 0.375rem; background: transparent; color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s, transform .4s var(--ease);
}
.layers__toggle:hover { background: var(--panel); color: var(--text); }
.layers__toggle svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

html.layers-min .layers { width: 2.5rem; right: 0.75rem; }
html.layers-min .layers__body { display: none; }
html.layers-min .layers__head {
  flex-direction: column; align-items: center; gap: 0.75rem; padding: 0.625rem 0;
  cursor: pointer; background: var(--panel-2);
}
html.layers-min .layers__head:hover { color: var(--text); }
html.layers-min .layers__title { writing-mode: vertical-rl; transform: rotate(180deg); gap: 0.5rem; letter-spacing: .08em; }
html.layers-min .layers__grip { display: none; }
html.layers-min .layers__count { margin: 0; }
html.layers-min .layers__toggle { order: -1; margin: 0; transform: rotate(180deg); }   /* chevron points "open" */

/* =================================================================
   EXPERIENCE TIMELINE (.xp) · a Premiere Pro sequence panel, kept clean:
   - track headers on the left (track id + eye, then company / dates / role:
     one aligned column to scan)
   - label-coloured clips on a to-scale ruler; colour = kind of work (legend)
   - a blue playhead resting at "Now" that scrubs the years on hover
   ================================================================= */
.xp {
  --xp-head: clamp(18rem, 32%, 26rem);
  --xp-gutter: 4.25rem;                         /* eye toggle + track id, inside the header */
  --xp-track-bg: color-mix(in srgb, var(--text) 3%, transparent);
  --xp-grid: rgba(255, 255, 255, .055);
  --xp-playhead: #2d8ceb;                       /* Premiere's playhead / timecode blue */
  /* Premiere label colours */
  --k-lead: #e8a33d;        /* Mango */
  --k-motion: #7184e0;      /* Iris */
  --k-web: #2fb0e6;         /* Cerulean */
  --k-design: #a58ae0;      /* Violet */
  --k-community: #4fb06a;   /* Forest */
  --k-audio: #22c19a;       /* Caribbean */
  position: relative; padding: 0 0.75rem 0.75rem; overflow: hidden;
  container: xp / inline-size;   /* header layout adapts to the panel width, not the screen (Layers panel, minimise) */
}
:root[data-theme="light"] .xp { --xp-grid: rgba(0, 0, 0, .07); --xp-playhead: #1a6fd1; }

/* sequence tab bar */
.xp-tabbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 0 -0.75rem 0.5rem; padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--text) 2.5%, transparent);
}
.xp-tab {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text);
  padding: 0.25rem 0.625rem; border-radius: 0.375rem; background: var(--panel-2);
  border-bottom: 2px solid var(--xp-playhead);
}
.xp-tab i { font-style: normal; color: var(--muted); }
.xp-legend { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.xp-legend > span { display: inline-flex; align-items: center; gap: 0.4375rem; }
.xp-swatch { width: 0.75rem; height: 0.5rem; border-radius: 2px; background: var(--c); }

/* rows: header cell + lane, Premiere-style thin separators */
.xp-list { list-style: none; margin: 0; padding: 0; }
.xp-row { display: grid; grid-template-columns: var(--xp-head) 1fr; column-gap: 0.5rem; align-items: stretch; }
.xp-list .xp-row { border-bottom: 1px solid var(--line-soft); }

/* track header */
.xp-head {
  display: grid; grid-template-columns: var(--xp-gutter) minmax(0, 1fr) auto; grid-template-rows: auto auto;
  column-gap: 0.625rem; row-gap: 0.0625rem; align-content: center; align-items: center;
  padding: 0.3125rem 0.75rem 0.3125rem 0; min-width: 0;
  background: var(--xp-track-bg); border-right: 1px solid var(--line-soft);
}
.xp-id {
  grid-column: 1; grid-row: 1 / span 2; justify-self: end;
  font-family: var(--font-mono); font-size: 0.625rem; color: var(--muted);
  padding: 0.125rem 0.375rem; border-radius: 0.25rem; border: 1px solid var(--line);
}
.xp-eye {
  grid-row: 1 / span 2; grid-column: 1; justify-self: start; margin-left: 0.625rem;
  width: 0.875rem; height: 0.875rem; fill: none; stroke: var(--muted-2); stroke-width: 1.6;
}
.xp-org {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xp-dates { grid-column: 3; grid-row: 1; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); white-space: nowrap; text-align: right; }
.xp-role {
  grid-column: 2 / -1; grid-row: 2; font-size: 0.8125rem; line-height: 1.35; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.is-current .xp-dates { color: var(--pink-text); }

/* lane: faint year grid, clips sit inside */
.xp-lane {
  position: relative; min-height: 2.625rem;
  background-image: repeating-linear-gradient(to right, var(--xp-grid) 0 1px, transparent 1px var(--xp-year, 9%));
}
.xp-bar {
  --c: var(--k-community);
  position: absolute; top: 50%; height: 1.875rem; transform: translateY(-50%); min-width: 0.375rem;
  border-radius: 0.1875rem; overflow: hidden; container-type: inline-size;
  background: color-mix(in srgb, var(--c) 42%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--c) 75%, transparent);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--c) 85%, white 15%);      /* the clip's lighter top edge */
  transition: filter .2s, opacity .2s;
}
.xp-bar--lead { --c: var(--k-lead); }
.xp-bar--motion { --c: var(--k-motion); }
.xp-bar--web { --c: var(--k-web); }
.xp-bar--design { --c: var(--k-design); }
.xp-bar--community { --c: var(--k-community); }
.xp-swatch.xp-bar--lead, .xp-swatch.xp-bar--motion, .xp-swatch.xp-bar--web, .xp-swatch.xp-bar--design, .xp-swatch.xp-bar--community {
  position: static; inset: auto; min-width: 0; border: 0; box-shadow: none; background: var(--c);
}
/* clip name, only when the clip is wide enough to hold it (container query on the clip) */
.xp-bar__name {
  display: none; padding: 0.375rem 0.5rem 0; font-size: 0.6875rem; font-weight: 600; line-height: 1;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
@container (min-width: 5.5rem) { .xp-bar__name { display: block; } }
:root[data-theme="light"] .xp-bar { background: color-mix(in srgb, var(--c) 70%, white); }
:root[data-theme="light"] .xp-bar__name { color: #16161a; text-shadow: none; }

.xp-list .xp-row:hover .xp-head { background: color-mix(in srgb, var(--text) 6%, transparent); }
.xp-list .xp-row:hover .xp-bar { filter: brightness(1.15); }

/* scrubbing: roles active under the playhead stay lit, the rest step back */
.xp.is-scrubbing .xp-list .xp-row:not(.is-hit) .xp-bar { opacity: .35; }
.xp.is-scrubbing .xp-list .xp-row:not(.is-hit) .xp-head > :not(.xp-id):not(.xp-eye) { opacity: .5; }
.xp.is-scrubbing .xp-row.is-hit .xp-head { background: color-mix(in srgb, var(--xp-playhead) 12%, transparent); }
.xp.is-scrubbing .xp-row.is-hit .xp-eye { stroke: var(--xp-playhead); }

/* ruler row: timecode readout + year marks with quarter ticks */
.xp-row--ruler { border-bottom: 1px solid var(--line); }
.xp-row--ruler .xp-head { background: none; }
.xp-tc { display: flex; align-items: baseline; gap: 0.5rem; padding-left: 0.5rem; }
.xp-tc__time { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 500; color: var(--xp-playhead); letter-spacing: .02em; }
.xp-tc__cap { font-family: var(--font-mono); font-size: 0.625rem; color: var(--muted-2); }
.xp-row--ruler .xp-lane {
  min-height: 2.25rem;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(var(--xp-year, 9%) / 4));
  background-size: 100% 0.3125rem; background-position: bottom; background-repeat: no-repeat;
}
.xp-year {
  position: absolute; bottom: 0.4375rem; padding-left: 0.3125rem;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted);
}
.xp-year::before { content: ""; position: absolute; left: 0; bottom: -0.4375rem; width: 1px; height: 0.875rem; background: var(--muted-2); }

/* playhead */
.xp-playhead {
  position: absolute; left: 0; top: 0; width: 1px; pointer-events: none; z-index: 3;
  background: var(--xp-playhead); transition: left .12s linear;
}
.xp-playhead::before {                       /* the handle on the ruler */
  content: ""; position: absolute; top: 0; left: -0.4375rem; width: 0.875rem; height: 0.75rem;
  background: var(--xp-playhead); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}
.xp-playhead__label {
  position: absolute; top: -0.0625rem; right: 0.625rem; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.625rem; color: #fff;
  background: var(--xp-playhead); padding: 0.125rem 0.375rem; border-radius: 0.1875rem;
}

/* audio track A1: the brand line on a Premiere-green audio clip */
.xp-row--audio { border-bottom: 0; }
.xp-row--audio .xp-head { grid-template-rows: auto; }
.xp-row--audio .xp-org { font-family: var(--font-mono); font-weight: 400; font-size: 0.6875rem; color: var(--muted); grid-column: 2; }
.xp-ms { display: none; }
.xp-row--audio .xp-ms { display: inline-flex; gap: 0.25rem; grid-column: 3; }
.xp-ms b {
  font-family: var(--font-mono); font-size: 0.5625rem; font-weight: 500; color: var(--muted);
  width: 1rem; height: 1rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 0.1875rem;
}
.xp-audio {
  position: absolute; inset: 0.4375rem 0; display: flex; align-items: center; gap: 1rem; padding: 0 1rem;
  border-radius: 0.1875rem; overflow: hidden;
  background: color-mix(in srgb, var(--k-audio) 22%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--k-audio) 60%, transparent);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--k-audio) 80%, white 20%);
}
.xp-row--audio .xp-lane { min-height: 3.5rem; }
.xp-audio .waveform { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.xp-audio .waveform span { background: var(--k-audio); }
.xp-brand { margin-left: auto; flex: 0 0 auto; }

/* narrower timeline: company gets the whole first line (wrapping if needed), dates move under the role */
@container xp (max-width: 72rem) {
  .xp-row { --xp-head: clamp(14rem, 34%, 19rem); }
  .xp-head { --xp-gutter: 2.75rem; }
  .xp-head { grid-template-columns: var(--xp-gutter) minmax(0, 1fr); }
  .xp-eye { display: none; }
  .xp-id { grid-row: 1 / span 3; justify-self: center; }
  .xp-org { white-space: normal; }
  .xp-dates { grid-column: 2; grid-row: 3; text-align: left; font-size: 0.625rem; }
  .xp-role { grid-column: 2; }
  .xp-row--audio .xp-ms { display: none; }
  .xp-audio .waveform { display: none; }
  .xp-brand { margin: 0 auto; white-space: normal; text-align: center; flex: 1 1 auto; min-width: 0; }
  .xp-tc__cap { display: none; }
}

/* phones: header above, a slim full-width clip under it; no playhead / ruler */
@media (max-width: 640px) {
  .xp { padding: 0 0.625rem 0.625rem; }
  .xp-tabbar { margin: 0 -0.625rem 0.25rem; }
  .xp-tab { display: none; }
  .xp-row { grid-template-columns: 1fr; row-gap: 0.375rem; padding: 0.625rem 0; }
  .xp-head { background: none; border-right: 0; padding: 0; grid-template-columns: minmax(0, 1fr); }
  .xp-id { display: none; }
  .xp-org, .xp-role, .xp-dates { grid-column: 1; }
  .xp-role { white-space: normal; }
  .xp-lane { min-height: 0.625rem; background: var(--line-soft); border-radius: 0.1875rem; }
  .xp-bar { top: 0; height: 100%; transform: none; border: 0; box-shadow: none; background: var(--c); }
  .xp-bar__name { display: none !important; }
  .xp-row--ruler, .xp-playhead { display: none; }
  .xp-row--audio .xp-head { display: none; }
  .xp-row--audio .xp-lane { min-height: 3.5rem; background: none; }
}

/* sound effects toggle (tool rail): crossed-out speaker when off, speaker + waves when on */
#soundToggle { position: relative; }
.sound-icon { position: absolute; inset: 0; margin: auto; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.sound-icon--on { opacity: 0; transform: scale(.7); }
#soundToggle[aria-pressed="true"] .sound-icon--on { opacity: 1; transform: none; }
#soundToggle[aria-pressed="true"] .sound-icon--off { opacity: 0; transform: scale(.7); }
#soundToggle[aria-pressed="true"] svg { stroke: var(--pink-text); }

/* =================================================================
   WORK · Featured mosaic + Archive grid (calm, gallery-like)
   - Featured: one hero card (8 cols × 2 rows) with two stacked beside it, then a row of three
   - Archive / filtered views: a uniform 3-up grid, 4:3 images, text below the image
   ================================================================= */
.work__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.25rem 1.5rem; align-items: start;
}
.work__label {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 0.75rem;
  margin: 0.5rem 0 -0.75rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.work__label i { font-style: normal; color: var(--muted-2); }
.work__label--featured { margin-top: 0; }
.work__label:not(.work__label--featured) { margin-top: 2.5rem; }

.card {
  grid-column: span 4; position: relative; display: flex; flex-direction: column; gap: 1rem; min-width: 0;
}
.card--hidden { display: none !important; }

/* featured mosaic (only in the unfiltered view) */
.work__grid:not(.is-filtered) .card--featured:nth-of-type(1) { grid-column: span 8; grid-row: span 2; align-self: stretch; }
.work__grid:not(.is-filtered) .card--featured:nth-of-type(1) .card__media { aspect-ratio: auto; flex: 1; min-height: 22rem; }
.work__grid:not(.is-filtered) .card--featured:nth-of-type(1) .card__title { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }

.card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.875rem;
  background: var(--panel); isolation: isolate;
  box-shadow: 0 0 0 1px var(--line-soft), 0 1.5rem 3rem -2rem rgba(0, 0, 0, .7);
  transition: box-shadow .5s var(--ease);
}
.card__img, .card__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.1s cubic-bezier(.2, .7, .1, 1), opacity .45s var(--ease), filter .6s var(--ease);
}
.card__video { opacity: 0; z-index: 1; }
.card.is-previewing .card__video { opacity: 1; }
.card__badge {
  position: absolute; z-index: 2; top: 0.75rem; left: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.3125rem 0.625rem 0.3125rem 0.5rem;
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(10, 10, 12, .45); backdrop-filter: blur(0.5rem); border-radius: 2rem; border: 1px solid rgba(255,255,255,.14);
  transition: opacity .3s;
}
.card__badge svg { width: 0.625rem; height: 0.625rem; fill: currentColor; }
.card.is-previewing .card__badge { opacity: 0; }

.card__body { display: flex; flex-direction: column; gap: 0.375rem; padding: 0 0.125rem; }
.card__meta {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .04em; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; }
.card__link { color: var(--text); text-decoration: none; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
/* the title link covers the whole card: one tab stop, one real URL */
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 0.875rem; }
.card__tag { font-size: 0.875rem; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.card__cta {
  display: inline-flex; gap: 0.375rem; margin-top: 0.125rem;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-text);
  opacity: 0; transform: translateY(-0.25rem); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.card__cta i { font-style: normal; transition: transform .35s var(--ease); }

@media (hover: hover) {
  .card:hover .card__img { transform: scale(1.045); }
  .card:hover .card__media { box-shadow: 0 0 0 1px color-mix(in srgb, var(--pink) 45%, transparent), 0 2rem 3.5rem -2rem rgba(0, 0, 0, .8); }
  .card:hover .card__link { background-size: 100% 1px; }
  .card:hover .card__cta { opacity: 1; transform: none; }
  .card:hover .card__cta i { transform: translate(0.125rem, -0.125rem); }
}
.card:has(.card__link:focus-visible) .card__media { outline: 2px solid var(--pink-text); outline-offset: 4px; }
.card:has(.card__link:focus-visible) .card__cta { opacity: 1; transform: none; }
.card__link:focus-visible { outline: none; }

/* tablets: two up, hero full width */
@media (max-width: 1100px) {
  .work__grid { gap: 2rem 1.25rem; }
  .card { grid-column: span 6; }
  .work__grid:not(.is-filtered) .card--featured:nth-of-type(1) { grid-column: 1 / -1; grid-row: auto; }
  .work__grid:not(.is-filtered) .card--featured:nth-of-type(1) .card__media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
}
/* phones: one column */
@media (max-width: 640px) {
  .work__grid { gap: 1.75rem; }
  .card { grid-column: 1 / -1; }
  .card__cta { opacity: 1; transform: none; }
}

/* =================================================================
   CASE STUDY · title → cover → sticky facts beside the story → results / media → next project
   ================================================================= */
.case.is-instant, .case.is-instant * { transition: none !important; }
.case__hero, .case__cover, .case__layout, .case__nextcard { max-width: var(--case-max); margin-left: auto; margin-right: auto; padding-left: clamp(1.25rem, 5vw, 4rem); padding-right: clamp(1.25rem, 5vw, 4rem); }
.case__hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: 2rem; }
.case__idx {
  display: flex; gap: 0.625rem; align-items: center;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-text);
}
.case__idx i { font-style: normal; color: var(--muted-2); }
.case__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  line-height: 1; letter-spacing: -0.025em; margin: 1rem 0 0; max-width: 20ch;
}
.case__tag { margin-top: 1.25rem; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 56ch; }

.case__cover { margin-top: 0; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.case__cover img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1rem;
  box-shadow: 0 0 0 1px var(--line-soft), 0 2.5rem 5rem -3rem rgba(0, 0, 0, .8);
}

.case__layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.case__aside { position: sticky; top: 1.5rem; }
.case__facts { display: grid; gap: 1.125rem; padding-top: 1.125rem; border-top: 1px solid var(--line); }
.case__facts dt { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.case__facts dd { font-size: 0.9375rem; line-height: 1.45; color: var(--text); }

.case__main { min-width: 0; }
.case__story { display: grid; gap: 2.25rem; }
.story__block h2 {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-text); margin-bottom: 0.75rem;
}
.story__block p { font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.75; color: color-mix(in srgb, var(--text) 82%, var(--muted)); max-width: 68ch; }

.case__section { margin-top: clamp(3rem, 6vw, 4.5rem); }
.case__section::before {
  content: attr(data-anno); display: block; margin-bottom: 1.25rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.case__outcome { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.4; max-width: 40ch; margin-bottom: 1.75rem; }
.case__quote { margin: 0; padding-left: clamp(1rem, 3vw, 2rem); border-left: 2px solid var(--ink); }
.case__quote blockquote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.5; letter-spacing: -0.005em; max-width: 52ch; }
.case__quote figcaption { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em; color: var(--muted); }
.case__results .stats { margin-bottom: 2rem; }

/* next project teaser */
.case__nextcard {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%; margin-top: clamp(4rem, 9vw, 7rem); margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem); border: 0; border-top: 1px solid var(--line); background: none; color: inherit;
  text-align: left; cursor: pointer; font: inherit;
}
.nextcard__text { display: grid; gap: 0.75rem; }
.nextcard__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nextcard__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.nextcard__meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.nextcard__meta i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.nextcard__media { display: block; overflow: hidden; border-radius: 0.875rem; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line-soft); }
.nextcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.2, .7, .1, 1); }
.case__nextcard:hover .nextcard__media img { transform: scale(1.05); }
.case__nextcard:hover .nextcard__meta i { transform: translateX(0.375rem); }
.case__nextcard:hover .nextcard__title { color: var(--ink-text); }
.case__nextcard:focus-visible { outline: 2px solid var(--ink-text); outline-offset: 0.5rem; border-radius: 0.5rem; }

/* scroll-in reveals */
.case__hero > * { animation: caseUp .8s cubic-bezier(.2, .7, 0, 1) both; }
.case__hero > :nth-child(2) { animation-delay: .06s; }
.case__hero > :nth-child(3) { animation-delay: .12s; }
@keyframes caseUp { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
.case__section, .story__block, .case__nextcard { opacity: 0; transform: translateY(1.75rem); transition: opacity .8s cubic-bezier(.2, .7, 0, 1), transform .8s cubic-bezier(.2, .7, 0, 1); }
.case__section.in, .story__block.in, .case__nextcard.in { opacity: 1; transform: none; }
.story__block:nth-child(2).in { transition-delay: .06s; }
.story__block:nth-child(3).in { transition-delay: .12s; }

@media (max-width: 900px) {
  .case__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .case__aside { position: static; }
  .case__facts { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
  .case__nextcard { grid-template-columns: 1fr; }
  .nextcard__media { order: -1; }
}

/* card -> cover morph (View Transitions API) */
::view-transition-group(case-cover) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-old(case-cover), ::view-transition-new(case-cover) { height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .case__section, .story__block, .case__nextcard { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* footer admin link (local only) */
.footer__admin {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 2rem;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line-soft); transition: color .2s, border-color .2s;
}
.footer__admin svg { width: 0.75rem; height: 0.75rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__admin:hover { color: var(--pink-text); border-color: var(--pink-text); }
.footer__admin[hidden] { display: none; }

/* the scrubber bar is fixed to the bottom on every screen size: keep the footer's last line clear of it */
@media (min-width: 861px) { .footer { margin-bottom: 3.25rem; } }

/* formatted story text from the admin editor (js/lib/rich.js allows p / lists / links / highlights) */
.story__block p + p, .case__outcome p + p { margin-top: 0.875rem; }
.story__block ul, .story__block ol, .case__outcome ul, .case__outcome ol { margin: 0.75rem 0 0 1.25rem; display: grid; gap: 0.375rem; color: color-mix(in srgb, var(--text) 82%, var(--muted)); font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.7; max-width: 66ch; }
.story__block li::marker, .case__outcome li::marker { color: var(--ink-text); }
.story__block a, .case__outcome a, #aboutBody a, .hero__tagline a { color: var(--pink-text); text-decoration: underline; text-underline-offset: 3px; }
.story__block em, .case__outcome em { font-style: normal; color: var(--text); }

/* admin setting "Playful tools: off": hide the Photoshop tools, keep colour / theme / sound */
body.no-tools .tool[data-tool], body.no-tools .toolrail__div { display: none; }
.story__block h3, .case__outcome h3 { font-family: var(--font-display); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 700; line-height: 1.35; color: var(--text); margin: 1.25rem 0 0.5rem; }
.story__block blockquote, .case__outcome blockquote { margin: 1rem 0; padding: 0.25rem 0 0.25rem 1.125rem; border-left: 3px solid var(--ink-text); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--text); max-width: 60ch; }

/* =================================================================
   LIGHT THEME SHADOWS
   On a cream page, one big black shadow looks muddy. These use several thin layers of a warm brown
   at low opacity (a tight contact shadow plus a wide soft spread), so surfaces lift off cleanly.
   ================================================================= */
:root[data-theme="light"] {
  --sh: 60, 44, 24;
  --sh-sm: 0 1px 2px rgba(var(--sh), .06), 0 2px 6px rgba(var(--sh), .05);
  --sh-md: 0 1px 2px rgba(var(--sh), .05), 0 4px 10px rgba(var(--sh), .05), 0 14px 28px -8px rgba(var(--sh), .10);
  --sh-lg: 0 1px 3px rgba(var(--sh), .05), 0 8px 18px rgba(var(--sh), .05), 0 24px 48px -14px rgba(var(--sh), .14);
  --sh-xl: 0 2px 4px rgba(var(--sh), .04), 0 14px 30px rgba(var(--sh), .06), 0 40px 80px -24px rgba(var(--sh), .18);
  --sh-accent: 0 1px 2px rgba(var(--pink-rgb), .16), 0 6px 14px -2px rgba(var(--pink-rgb), .22), 0 16px 32px -10px rgba(var(--pink-rgb), .28);
}
:root[data-theme="light"] .btn--primary:hover,
:root[data-theme="light"] .boot__badge,
:root[data-theme="light"] .origin__bubble { box-shadow: var(--sh-accent); }
:root[data-theme="light"] .layers.is-dragging { box-shadow: var(--sh-xl); }
:root[data-theme="light"] .picker { box-shadow: var(--sh-lg); }
:root[data-theme="light"] .fx-toast { box-shadow: var(--sh-md); }
:root[data-theme="light"] .type-caption { text-shadow: 0 1px 2px rgba(var(--sh), .12), 0 6px 18px rgba(var(--sh), .14); }
:root[data-theme="light"] .ytfacade--card,
:root[data-theme="light"] .tsm { box-shadow: var(--sh-md); }
:root[data-theme="light"] .tsm:hover { box-shadow: var(--sh-lg); }
:root[data-theme="light"] .proto { box-shadow: var(--sh-xl), 0 0 4.375rem -1.875rem color-mix(in srgb, var(--ink) 60%, transparent); }
:root[data-theme="light"] .origin__frame img { filter: drop-shadow(0 2px 3px rgba(var(--sh), .08)) drop-shadow(0 18px 26px rgba(var(--sh), .14)); }
:root[data-theme="light"] .tk__icon--img img { filter: drop-shadow(0 1px 1px rgba(var(--sh), .10)) drop-shadow(0 4px 8px rgba(var(--sh), .10)); }
:root[data-theme="light"] .card__media { box-shadow: 0 0 0 1px var(--line-soft), var(--sh-sm); }
:root[data-theme="light"] .case__cover img { box-shadow: 0 0 0 1px var(--line-soft), var(--sh-lg); }
:root[data-theme="light"] .layers,
:root[data-theme="light"] .menubar { box-shadow: var(--sh-sm); }
@media (hover: hover) {
  :root[data-theme="light"] .card:hover .card__media { box-shadow: 0 0 0 1px color-mix(in srgb, var(--pink) 45%, transparent), var(--sh-lg); }
}

/* =================================================================
   CLIENTS STRIP  ·  two rows of logos drifting in opposite directions
   ================================================================= */
.clients {
  position: relative; max-width: var(--content-max); margin: 0 auto; padding: 1.5rem 0 3.5rem;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.clients__head {
  text-align: center; margin: 0 clamp(1.5rem, 7vw, 8.125rem) 1.75rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
.clients__marquee {
  display: grid; gap: 1.75rem; overflow: hidden;
  /* soft fade at both ends so logos slide in and out instead of being cut */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.clients__row { display: flex; width: max-content; animation: clients-drift calc(var(--n) * 3.6s) linear infinite; }
.clients__row--rev { animation-direction: reverse; }
.clients__marquee:hover .clients__row, .clients__marquee:focus-within .clients__row { animation-play-state: paused; }
.clients__set { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); padding-right: clamp(2.5rem, 5vw, 4.5rem); }
@keyframes clients-drift { to { transform: translateX(-50%); } }
.client { display: flex; align-items: center; justify-content: center; height: 3rem; flex: none; }
.client img {
  display: block; width: auto; height: auto; max-height: 100%; max-width: 9.5rem;
  /* quiet silhouettes in the text colour; full strength on hover */
  filter: brightness(0) invert(1); opacity: .5;
  transition: filter .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}
:root[data-theme="light"] .client img { filter: brightness(0); opacity: .45; }
/* hover: the same silhouette at full strength (white on dark, ink on light), never the brand colours */
.client:hover img, .client:focus-visible img { opacity: 1; transform: scale(1.06); }
/* square badge-style logos read smaller than wordmarks; let them use a little more height */
.client:has(img[src*="nushu"], img[src*="student-tribe"], img[src*="target"], img[src*="elevate"]) { height: 3.75rem; margin-block: -0.375rem; }
@media (prefers-reduced-motion: reduce) {
  .clients__row { animation: none; width: auto; }
  .clients__row .clients__set[aria-hidden] { display: none; }
  .clients__set { flex-wrap: wrap; justify-content: center; row-gap: 1.5rem; padding: 0 1.5rem; }
  .clients__marquee { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 720px) { .client { height: 2.25rem; } .clients__marquee { gap: 1.25rem; } }

/* =================================================================
   SHOWREEL  ·  Premiere "Program Monitor"
   ================================================================= */
.monitor { border: 1px solid var(--line); border-radius: 0.875rem; overflow: hidden; background: var(--panel); }
:root[data-theme="light"] .monitor { box-shadow: var(--sh-lg); }
.monitor__bar {
  display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.875rem;
  background: var(--panel-2); border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted);
}
.monitor__tab b { color: var(--text); font-weight: 600; }
.monitor__screen { position: relative; aspect-ratio: 16 / 9; background: #0b0b0d; overflow: hidden; }
.monitor__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
/* title-safe guides, like the monitor's safe-margin overlay; only while paused */
.monitor__safe { position: absolute; inset: 5%; border: 1px dashed rgba(255,255,255,.14); pointer-events: none; transition: opacity .3s; }
.monitor__safe::after { content: ""; position: absolute; inset: 5.5%; border: 1px dashed rgba(255,255,255,.09); }
.reel.is-playing .monitor__safe { opacity: 0; }
.monitor__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 5.5rem; height: 5.5rem; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; color: var(--on-pink); background: var(--pink);
  box-shadow: 0 0 0 0.75rem rgba(var(--pink-rgb), .18), 0 1.5rem 3rem -1rem rgba(0,0,0,.6);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.monitor__play svg { width: 2.25rem; height: 2.25rem; fill: currentColor; margin-left: 0.25rem; }
.monitor__play:hover { transform: scale(1.06); }
.reel.is-playing .monitor__play { opacity: 0; transform: scale(.85); }
.reel.is-playing .monitor__screen:hover .monitor__play, .reel.is-playing .monitor__play:focus-visible { opacity: .9; transform: none; }
.monitor__now[hidden] { display: none; }
.monitor__now {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4375rem 0.75rem; border-radius: 2rem; background: rgba(12,12,14,.72); backdrop-filter: blur(0.5rem);
  color: #fff; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .03em; text-decoration: none;
  border: 1px solid rgba(255,255,255,.12); transition: border-color .25s, background .25s;
}
.monitor__now i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(var(--pink-rgb), .25); }
.monitor__now b { color: var(--pink); font-weight: 400; }
.monitor__now:hover { border-color: var(--pink); background: rgba(12,12,14,.88); }
.monitor__ctl { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 0.875rem; background: var(--panel); }
.monitor__tc { font-family: var(--font-mono); font-size: 0.75rem; color: var(--blue); min-width: 6.75rem; }
.monitor__tc--dur { color: var(--muted); text-align: right; }
.monitor__track { position: relative; flex: 1; height: 1.75rem; cursor: pointer; touch-action: none; }
.monitor__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.25rem; translate: 0 -50%; border-radius: 1rem; background: var(--line); }
.monitor__fill { position: absolute; left: 0; top: 50%; height: 0.25rem; translate: 0 -50%; border-radius: 1rem; background: var(--pink); width: 0; }
.monitor__marks i { position: absolute; top: 50%; width: 1px; height: 0.75rem; translate: 0 -50%; background: var(--muted-2); }
.monitor__head { position: absolute; top: 0; bottom: 0; width: 2px; translate: -1px 0; background: var(--blue); left: 0; }
.monitor__head::before { content: ""; position: absolute; top: -0.125rem; left: 50%; translate: -50% 0; border: 0.375rem solid transparent; border-top: 0.5rem solid var(--blue); }
.monitor__track:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 2px; border-radius: 0.25rem; }
.monitor__btn { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.monitor__btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.monitor__btn:hover { color: var(--text); border-color: var(--muted); }
.monitor__screen:fullscreen { aspect-ratio: auto; }
@media (max-width: 720px) {
  .monitor__tc--dur, .monitor__fit { display: none; }
  .monitor__tc { min-width: 0; font-size: 0.6875rem; }
  .monitor__play { width: 4rem; height: 4rem; }
  .monitor__play svg { width: 1.625rem; height: 1.625rem; }
  .monitor__now { left: 0.5rem; bottom: 0.5rem; font-size: 0.625rem; }
}

/* =================================================================
   PROCESS  ·  stages as keyframes on a layer bar
   ================================================================= */
.process__track {
  position: relative; list-style: none; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem); padding-top: 2.25rem;
}
/* the layer bar the keyframes sit on */
.process__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0.6875rem; height: 1.375rem; border-radius: 0.375rem;
  background: linear-gradient(90deg, rgba(var(--pink-rgb), .22), rgba(var(--pink-rgb), .06));
  border: 1px solid rgba(var(--pink-rgb), .3);
}
.pstep { position: relative; padding-top: 1.25rem; }
.pstep__key {
  position: absolute; top: -1.5rem; left: 0.5rem; width: 0.875rem; height: 0.875rem; rotate: 45deg;
  background: var(--pink); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--pink);
}
.pstep__time { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.625rem; }
.pstep__title { display: flex; align-items: baseline; gap: 0.625rem; font-family: var(--font-display); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.25; margin-bottom: 0.625rem; }
.pstep__no { font-family: var(--font-mono); font-size: 0.75rem; color: var(--pink-text); font-weight: 700; }
.pstep__text { color: color-mix(in srgb, var(--text) 78%, var(--muted)); font-size: 0.9375rem; line-height: 1.65; }
.pstep__out {
  display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.875rem; padding: 0.3125rem 0.625rem;
  border: 1px solid var(--line); border-radius: 2rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted);
}
.pstep__out i { font-style: normal; color: var(--pink-text); }
@media (max-width: 960px) {
  .process__track { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .process__track::before { display: none; }
  .pstep { border-top: 1.375rem solid rgba(var(--pink-rgb), .12); border-radius: 0.375rem 0.375rem 0 0; padding-top: 1.5rem; }
  .pstep__key { top: -1.125rem; }
}
@media (max-width: 560px) { .process__track { grid-template-columns: 1fr; } }

/* =================================================================
   NOTES
   ================================================================= */
.notes__head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.notes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.note__link {
  display: flex; flex-direction: column; height: 100%; padding: 1rem 1rem 1.25rem; border: 1px solid var(--line);
  border-radius: 0.75rem; background: var(--panel); text-decoration: none; color: inherit;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.note__link:hover { border-color: rgba(var(--pink-rgb), .55); transform: translateY(-0.25rem); }
:root[data-theme="light"] .note__link { box-shadow: var(--sh-sm); }
:root[data-theme="light"] .note__link:hover { box-shadow: var(--sh-lg); }
.note__media { display: block; aspect-ratio: 16 / 9; border-radius: 0.5rem; overflow: hidden; margin-bottom: 1rem; background: var(--panel-2); }
.note__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.note__link:hover .note__media img { transform: scale(1.04); }
.note__meta { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); letter-spacing: .03em; }
.note__title { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.3; margin: 0.5rem 0; }
.note__excerpt { color: var(--muted); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.note__more { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--pink-text); }
.notes__grid .work__fallback { grid-column: 1 / -1; }
@media (max-width: 960px) { .notes__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .notes__grid { grid-template-columns: 1fr; } }

/* =================================================================
   FAQ
   ================================================================= */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__grid .work__head { position: sticky; top: 6rem; }
.faq__grid .work__head a { color: var(--pink-text); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0.25rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 600; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--pink-text); }
.faq__icon { position: relative; flex: none; width: 1.75rem; height: 1.75rem; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, border-color .3s, rotate .35s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.6875rem; height: 1.5px; translate: -50% -50%; background: currentColor; }
.faq__icon::after { rotate: 90deg; transition: opacity .25s; }
.faq__item[open] .faq__icon { rotate: 180deg; background: var(--pink); border-color: var(--pink); color: var(--on-pink); }
.faq__item[open] .faq__icon::after { opacity: 0; }
.faq__a { padding: 0 3rem 1.375rem 0.25rem; color: color-mix(in srgb, var(--text) 80%, var(--muted)); line-height: 1.7; max-width: 64ch; }
.faq__a p + p { margin-top: 0.75rem; }
.faq__a em { font-style: normal; color: var(--text); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__grid .work__head { position: static; } }

/* case overlay: share row + similar projects */
.case__share, .case__similar { max-width: var(--case-max); margin-left: auto; margin-right: auto; padding-left: clamp(1.25rem, 5vw, 4rem); padding-right: clamp(1.25rem, 5vw, 4rem); }
.case__share { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 6vw, 4rem); }
.case__share-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 0.5rem; }
.case__share-btn {
  position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer;
  transition: border-color .25s, color .25s, transform .25s;
}
.case__share-btn svg { width: 1rem; height: 1rem; fill: currentColor; }
.case__share-btn:hover { border-color: var(--ink-text); color: var(--ink-text); transform: translateY(-2px); }
.case__share-done { position: absolute; left: calc(100% + 0.625rem); white-space: nowrap; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-text); }
.case__similar { margin-top: clamp(3rem, 7vw, 5rem); }
.case__eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 1.25rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--line); }
.case__similar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.simcard { display: grid; gap: 0.5rem; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.simcard__media { display: block; aspect-ratio: 4 / 3; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.simcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.simcard:hover .simcard__media img { transform: scale(1.05); }
.simcard__meta { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); margin-top: 0.25rem; }
.simcard__title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; transition: color .3s; }
.simcard:hover .simcard__title { color: var(--ink-text); }
.simcard:focus-visible { outline: 2px solid var(--ink-text); outline-offset: 0.375rem; border-radius: 0.75rem; }
:root[data-theme="light"] .simcard__media { box-shadow: 0 0 0 1px var(--line-soft), var(--sh-sm); }
@media (max-width: 760px) { .case__similar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .case__similar-grid { grid-template-columns: 1fr; } }

/* =================================================================
   LANGUAGE SWITCH (menu bar) + Indian-script fonts
   ================================================================= */
.lang { position: relative; margin-right: 0.75rem; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 1.875rem; padding: 0 0.625rem; border-radius: 2rem;
  border: 1px solid var(--line); background: none; color: var(--text); font-family: var(--font-mono); font-size: 0.6875rem; cursor: pointer;
}
.lang__btn svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__btn b { font-weight: 600; letter-spacing: .06em; }
.lang__btn:hover, .lang__btn[aria-expanded="true"] { border-color: var(--pink); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 9rem; padding: 0.375rem; border-radius: 0.75rem;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1rem 2.5rem rgba(0,0,0,.4); z-index: 900;
}
:root[data-theme="light"] .lang__menu { box-shadow: var(--sh-lg); }
.lang__menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.625rem;
  border: 0; border-radius: 0.5rem; background: none; color: var(--text); font-size: 0.875rem; text-align: left; cursor: pointer;
}
.lang__menu button:hover, .lang__menu button:focus-visible { background: var(--panel-2); outline: none; }
.lang__menu button[aria-checked="true"]::after { content: "✓"; color: var(--pink-text); font-size: 0.75rem; }
@media (max-width: 720px) { .lang { margin-right: 0.375rem; } .lang__btn { padding: 0 0.5rem; } }

/* Syne and Inter have no Devanagari or Telugu letters: use the system's well-made fonts for those scripts
   (Nirmala UI on Windows, Noto on Android, Kohinoor / Sangam on Apple) and keep Latin text in the brand fonts */
:root[lang="hi"] { --font-display: "Syne", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", system-ui, sans-serif;
                   --font-body: "Inter", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", system-ui, sans-serif; }
:root[lang="te"] { --font-display: "Syne", "Noto Sans Telugu", "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", system-ui, sans-serif;
                   --font-body: "Inter", "Noto Sans Telugu", "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", system-ui, sans-serif; }
/* those scripts need more room above and below the letters than Syne's tight display leading */
:root[lang="hi"] h2, :root[lang="te"] h2, :root[lang="hi"] .pstep__title, :root[lang="te"] .pstep__title,
:root[lang="hi"] .faq__item summary, :root[lang="te"] .faq__item summary { line-height: 1.35; letter-spacing: 0; }
:root[lang="hi"] .hero__tagline, :root[lang="te"] .hero__tagline, :root[lang="hi"] #aboutBody, :root[lang="te"] #aboutBody { line-height: 1.75; }

/* =================================================================
   STAT NUMBERS  ·  heavy Inter, tight tracking; the unit set smaller beside the number
   (Syne's extra-wide digits broke "2 wks" onto two lines and made single digits look like slabs)
   ================================================================= */
.stat strong, .stats__cell strong {
  display: flex; align-items: baseline; gap: 0.06em; flex-wrap: nowrap; white-space: nowrap;
  font-family: "Inter", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.055em; line-height: .92;
  font-feature-settings: "ss01" 1, "cv01" 1; font-variant-numeric: lining-nums;
}
.stat strong .n, .stats__cell strong .n { font-size: 1em; }
.stat strong .u, .stats__cell strong .u { font-size: .42em; font-weight: 700; letter-spacing: -0.01em; margin-left: .14em; opacity: .9; }
.stat strong .u--pre, .stats__cell strong .u--pre { margin-left: 0; margin-right: .12em; }
/* "+" and "%" ride high, like a superscript, and keep the accent at full strength */
.stat strong .u--sym, .stats__cell strong .u--sym { align-self: flex-start; font-size: .5em; margin-left: .06em; margin-top: .06em; opacity: 1; }

/* About: three big numbers with a hairline rule above each label */
.about__stats { gap: clamp(1.25rem, 3vw, 2.5rem); }
.stat strong { font-size: clamp(2.75rem, 5vw, 4rem); color: var(--pink-text); }
.stat span { display: block; margin-top: 0.75rem; padding-top: 0.625rem; border-top: 1px solid var(--line); letter-spacing: .12em; }

/* Case results: number cards */
.stats__cell { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: 9rem; padding: 1.375rem 1.25rem 1.25rem; position: relative; overflow: hidden; }
.stats__cell::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ink), transparent); opacity: .8; }
.stats__cell strong { font-size: clamp(2.5rem, 4.4vw, 3.5rem); color: var(--ink-text); }
.stats__cell span { margin-top: 0; font-size: .8125rem; line-height: 1.45; }
:root[data-theme="light"] .stats__cell { box-shadow: var(--sh-sm); }
@media (max-width: 720px) { .stat strong { font-size: 2.5rem; } }
/* the number's own spans must not pick up the label styles below them */
.stat strong span, .stats__cell strong span { display: inline; font-family: inherit; color: inherit; text-transform: none; margin-top: 0; padding: 0; border: 0; line-height: inherit; }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat strong { font-size: clamp(2.25rem, 3.6vw, 3.5rem); }
@media (max-width: 420px) { .about__stats { grid-template-columns: 1fr 1fr; } }
.stat strong .n, .stats__cell strong .n { letter-spacing: inherit; }
/* results: as many cards as there are metrics, each wide enough for its label */
.case__results .stats { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

/* =================================================================
   PROCESS v2  ·  a timeline ruler with a scroll-driven playhead over four stage cards
   ================================================================= */
.process { --p: 0; }
.process__track::before { content: none; }
.process__ruler { position: relative; height: 3.25rem; margin: 0.5rem 0 1.5rem; }
.process__ticks {
  position: absolute; left: 0; right: 0; bottom: 0.75rem; height: 0.75rem; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / (var(--steps) * 10)));
  -webkit-mask-image: linear-gradient(transparent 55%, #000 55%); mask-image: linear-gradient(transparent 55%, #000 55%);
}
.process__key { position: absolute; bottom: 0.75rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; translate: 0 0; }
.process__key b { order: -1; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.process__key i { width: 0.75rem; height: 0.75rem; rotate: 45deg; translate: -0.375rem 0.375rem; background: var(--bg); border: 1.5px solid var(--muted-2); transition: background .3s, border-color .3s; }
.process__fill { position: absolute; left: 0; bottom: 0.75rem; height: 2px; width: calc(var(--p) * 100%); background: var(--pink); box-shadow: 0 0 0.75rem rgba(var(--pink-rgb), .6); }
.process__head { position: absolute; bottom: 0; left: calc(var(--p) * 100%); width: 2px; height: 2.75rem; translate: -1px 0; background: var(--blue); }
.process__head::before { content: ""; position: absolute; top: -0.25rem; left: 50%; translate: -50% 0; border: 0.4375rem solid transparent; border-top: 0.5625rem solid var(--blue); }

.process__track { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); padding: 0; list-style: none; counter-reset: none; }
.pstep {
  position: relative; display: flex; flex-direction: column; gap: 0.875rem; min-height: 22rem; padding: 1.5rem 1.375rem 1.375rem;
  border: 1px solid var(--line-soft); border-radius: 1rem; background: var(--panel); overflow: hidden; isolation: isolate;
  transition: border-color .45s var(--ease), transform .45s var(--ease), background .45s var(--ease);
}
/* the accent wash that rises when the stage is under the playhead */
.pstep::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 100%; z-index: -1; opacity: 0;
  background: radial-gradient(120% 70% at 0% 100%, rgba(var(--pink-rgb), .16), transparent 70%);
  transition: opacity .5s var(--ease);
}
.pstep::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--pink); transition: width .6s var(--ease); }
.pstep.is-done::after { width: 100%; opacity: .45; }
.pstep.is-active { border-color: rgba(var(--pink-rgb), .55); transform: translateY(-0.25rem); }
.pstep.is-active::before { opacity: 1; }
.pstep.is-active::after { width: 100%; opacity: 1; }
.pstep__key { display: none; }
.pstep__no {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3.75rem, 6vw, 5.5rem); line-height: .85; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line); transition: color .5s var(--ease), -webkit-text-stroke-color .5s var(--ease);
  margin-bottom: auto;
}
.pstep.is-done .pstep__no { -webkit-text-stroke-color: rgba(var(--pink-rgb), .45); }
.pstep.is-active .pstep__no { color: var(--pink); -webkit-text-stroke-color: var(--pink); }
.pstep__time { display: inline-flex; align-self: flex-start; margin: 0; padding: 0.25rem 0.5625rem; border-radius: 2rem; border: 1px solid var(--line); color: var(--blue); }
.pstep__title { display: block; margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.625rem); line-height: 1.15; letter-spacing: -0.01em; }
.pstep__text { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); transition: color .45s; }
.pstep.is-active .pstep__text { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.pstep__out { margin-top: 0.25rem; align-self: flex-start; gap: 0.4375rem; color: var(--text); border-color: var(--line); background: var(--bg); }
.pstep__out svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: var(--pink-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="light"] .pstep { box-shadow: var(--sh-sm); }
:root[data-theme="light"] .pstep.is-active { box-shadow: var(--sh-lg); }
@media (prefers-reduced-motion: reduce) { .process__head { display: none; } }

@media (max-width: 960px) {
  .process__ruler { display: none; }
  .process__track { grid-template-columns: 1fr 1fr; row-gap: clamp(0.75rem, 1.4vw, 1.25rem); }
  .pstep { min-height: 0; border-top: 1px solid var(--line-soft); border-radius: 1rem; padding-top: 1.5rem; }
  .pstep__no { font-size: 3.25rem; margin-bottom: 0.5rem; }
}
@media (max-width: 560px) { .process__track { grid-template-columns: 1fr; } }
.process__key.is-on i { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 0.625rem rgba(var(--pink-rgb), .55); }
.process__key.is-on b { color: var(--text); }
/* room above and below the rows, so the taller round / square badges (Nushu, Target…) are never clipped by the strip's edge */
.clients__marquee { padding-block: 0.625rem; }
.client:has(img[src*="nushu"], img[src*="student-tribe"], img[src*="target"], img[src*="elevate"]) { margin-block: -0.375rem; }

/* =================================================================
   YOUTUBE FILMS  ·  the site's program-monitor frame around an unlisted YouTube video
   ================================================================= */
.film { border: 1px solid var(--line); border-radius: 0.875rem; overflow: hidden; background: var(--panel); }
:root[data-theme="light"] .film { box-shadow: var(--sh-lg); }
.film__src { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.film__screen { position: relative; aspect-ratio: 16 / 9; background: #0b0b0d; overflow: hidden; }
/* Shorts: a tall frame centred on the dark stage */
.film__screen--v { aspect-ratio: auto; height: min(78vh, 46rem); }
.film__screen--v .film__poster, .film__screen--v .film__frame { width: auto; aspect-ratio: 9 / 16; left: 50%; translate: -50% 0; }
.film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.film__scrim { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 55%, transparent, rgba(0,0,0,.5)), linear-gradient(transparent 60%, rgba(0,0,0,.45)); pointer-events: none; }
.film__screen:hover .film__poster { transform: scale(1.035); }
.film__screen .monitor__safe { opacity: .8; }
.film__screen:hover .monitor__play { transform: scale(1.06); }
.film__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.film__strip { display: flex; gap: 0.625rem; padding: 0.75rem; overflow-x: auto; background: var(--panel); border-top: 1px solid var(--line-soft); scrollbar-width: thin; }
.film__chip {
  flex: none; display: grid; gap: 0.375rem; width: 11rem; padding: 0.375rem; border: 1px solid var(--line-soft); border-radius: 0.625rem;
  background: none; color: var(--muted); text-align: left; font: 0.75rem/1.3 var(--font-body); cursor: pointer; transition: border-color .25s, color .25s;
}
.film__chip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.375rem; display: block; }
.film__chip span { padding: 0 0.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film__chip:hover { color: var(--text); border-color: var(--line); }
.film__chip.is-on { color: var(--text); border-color: var(--ink, var(--pink)); box-shadow: inset 0 0 0 1px var(--ink, var(--pink)); }
.case .film .monitor__play { background: var(--ink); color: var(--on-ink, #141319); box-shadow: 0 0 0 0.75rem color-mix(in srgb, var(--ink) 20%, transparent), 0 1.5rem 3rem -1rem rgba(0,0,0,.6); }
@media (max-width: 720px) { .film__chip { width: 8.5rem; } .film__screen--v { height: 70vh; } }

/* =================================================================
   CLIENT LOVE v2  ·  a spotlight quote that rotates gently, every voice listed beside it
   ================================================================= */
/* stars: five stars as a mask, filled to the exact fraction (--r) */
.stars {
  --star-on: var(--pink); --star-off: color-mix(in srgb, var(--text) 16%, transparent);
  display: inline-block; flex: none; width: 6em; height: 1.2em; font-size: 0.875rem; vertical-align: middle;
  background: linear-gradient(90deg, var(--star-on) var(--r, 100%), var(--star-off) var(--r, 100%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.7l2.85 5.85 6.45.92-4.67 4.52 1.1 6.4L12 17.37l-5.73 3.02 1.1-6.4L2.7 9.47l6.45-.92z'/%3E%3C/svg%3E") 0 0 / 1.2em 1.2em repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.7l2.85 5.85 6.45.92-4.67 4.52 1.1 6.4L12 17.37l-5.73 3.02 1.1-6.4L2.7 9.47l6.45-.92z'/%3E%3C/svg%3E") 0 0 / 1.2em 1.2em repeat-x;
}
.stars--sm { font-size: 0.6875rem; }
.stars--lg { font-size: 1.125rem; }

.tsx { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.75rem); align-items: stretch; }
.tsx__stage {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel);
}
/* a soft accent glow that drifts slowly behind the quote */
.tsx__stage::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; left: -18%; top: -45%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--pink-rgb), .14), transparent 70%);
  animation: tsx-drift 16s ease-in-out infinite alternate;
}
@keyframes tsx-drift { to { transform: translate(18%, 22%) scale(1.15); } }
.tsx__mark {
  position: absolute; right: clamp(1.25rem, 3vw, 2.5rem); top: clamp(0.25rem, 1vw, 0.75rem); z-index: -1;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(8rem, 14vw, 12rem); line-height: 1;
  color: rgba(var(--pink-rgb), .12); pointer-events: none; user-select: none;
}
.tsx__slides { display: grid; flex: 1; }
.tsx__slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 1.5rem; margin: 0; visibility: hidden; }
.tsx__slide.is-on { visibility: visible; }
/* each part rises in after the one before it */
.tsx__slide > * { opacity: 0; transform: translateY(0.875rem); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.tsx__slide.is-on > * { opacity: 1; transform: none; }
.tsx__slide.is-on > :nth-child(2) { transition-delay: .08s; }
.tsx__slide.is-on > :nth-child(3) { transition-delay: .16s; }
.tsx__rating { display: flex; align-items: center; gap: 0.625rem; }
.tsx__rating b { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.tsx__quote { margin: 0; flex: 1; }
.tsx__quote p {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.1vw, 1.875rem); line-height: 1.35; letter-spacing: -0.012em;
  color: var(--text); max-width: 36ch; text-wrap: pretty;
}
.tsx__who { display: flex; align-items: center; gap: 0.875rem; }
.tsx__avatar {
  flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; overflow: hidden;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: var(--on-pink);
  background: linear-gradient(135deg, var(--pink), color-mix(in srgb, var(--pink) 55%, #7a2bff));
  box-shadow: 0 0 0 3px var(--panel), 0 0 0 4px rgba(var(--pink-rgb), .45);
}
.tsx__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tsx__avatar--sm { width: 2.375rem; height: 2.375rem; font-size: 0.8125rem; box-shadow: none; background: var(--panel-2); color: var(--muted); transition: background .4s, color .4s; }
.tsx__id { display: grid; gap: 0.125rem; min-width: 0; }
.tsx__id strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.01em; }
.tsx__id small { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* controls: count, one progress bar per quote, previous / next */
.tsx__ctl { display: flex; align-items: center; gap: 0.875rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line-soft); }
.tsx__count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); min-width: 4.25rem; }
.tsx__count b { color: var(--text); font-weight: 600; }
.tsx__bars { flex: 1; display: flex; gap: 0.375rem; }
.tsx__bars i { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tsx__bars span { display: block; height: 100%; width: 0; background: var(--pink); }
.tsx__bars i.is-done span { width: 100%; opacity: .45; }
.tsx__bars i.is-on span { animation: tsx-fill var(--dur, 8s) linear forwards; }
.tsx.is-paused .tsx__bars i.is-on span { animation-play-state: paused; }
@keyframes tsx-fill { from { width: 0; } to { width: 100%; } }
.tsx__nav { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.tsx__nav svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tsx__nav:hover { border-color: var(--pink); background: rgba(var(--pink-rgb), .1); transform: translateY(-1px); }

/* side: average rating + every testimonial to jump to */
.tsx__side { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.tsx__avg { display: flex; align-items: center; gap: 1rem; padding: 1.125rem 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.tsx__avg strong { font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 2.75rem; line-height: 1; letter-spacing: -0.05em; }
.tsx__avg div { display: grid; gap: 0.375rem; }
.tsx__avg small { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.tsx__list { list-style: none; display: grid; gap: 0.375rem; flex: 1; align-content: start; }
.tsx__pick {
  position: relative; width: 100%; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.875rem; text-align: left;
  border: 1px solid transparent; border-radius: 0.875rem; background: none; color: var(--muted); cursor: pointer; overflow: hidden;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s;
}
.tsx__pick::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--pink); transform: scaleY(0); transition: transform .45s var(--ease); }
.tsx__pick .tsx__id { flex: 1; }
.tsx__pick .tsx__id strong { color: var(--muted); font-size: 0.9375rem; transition: color .35s; }
.tsx__pick:hover { background: color-mix(in srgb, var(--panel) 70%, transparent); }
.tsx__pick:hover .tsx__id strong { color: var(--text); }
.tsx__pick.is-on { background: var(--panel); border-color: var(--line); }
.tsx__pick.is-on::before { transform: scaleY(1); }
.tsx__pick.is-on .tsx__id strong { color: var(--text); }
.tsx__pick.is-on .tsx__avatar--sm { background: var(--pink); color: var(--on-pink); }
.tsx__pick:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 2px; }

:root[data-theme="light"] .tsx__stage, :root[data-theme="light"] .tsx__avg { box-shadow: var(--sh-md); }
:root[data-theme="light"] .tsx__pick.is-on { box-shadow: var(--sh-sm); }
@media (prefers-reduced-motion: reduce) {
  .tsx__stage::before { animation: none; }
  .tsx__slide > * { transition: none; }
}
@media (max-width: 960px) {
  .tsx { grid-template-columns: 1fr; }
  .tsx__list { display: flex; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.25rem; scrollbar-width: none; }
  .tsx__list li { flex: none; }
  .tsx__pick { width: auto; border-color: var(--line-soft); }
  .tsx__pick .stars { display: none; }
}
@media (max-width: 560px) { .tsx__count { display: none; } .tsx__quote p { font-size: 1.2rem; } }

/* testimonial quote: words slide up one after another when the quote comes into the spotlight */
.tsx__slide > .tsx__quote { transform: none; }
.tsx__quote .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.tsx__quote .w > span {
  display: inline-block; transform: translateY(110%);
  transition: transform .75s cubic-bezier(.2, .75, .15, 1) calc(0.12s + min(var(--i) * 0.03s, 1.4s));
}
.tsx__slide.is-on .tsx__quote .w > span { transform: none; }
/* leaving: no stagger, it just fades with the slide */
.tsx__slide:not(.is-on) .tsx__quote .w > span { transition-duration: .3s; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .tsx__quote .w > span { transform: none; transition: none; } }

/* =================================================================
   CLIENT LOVE v3  ·  a paging row of testimonial cards
   ================================================================= */
.tsc { --gap: clamp(0.875rem, 1.6vw, 1.25rem); display: grid; gap: 1.25rem; }
.tsc__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.tsc__avg { display: flex; align-items: center; gap: 1rem; }
.tsc__avg strong { font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.055em; }
.tsc__avg div { display: grid; gap: 0.375rem; }
.tsc__avg small { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .06em; color: var(--muted); }
.tsc__avg--plain small { text-transform: uppercase; letter-spacing: .14em; }
.tsc__ctl { display: flex; align-items: center; gap: 0.75rem; flex: 1; max-width: 34rem; justify-content: flex-end; }
.tsc__count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.tsc__count b { color: var(--text); font-weight: 600; }
.tsc__bars { flex: 1; display: flex; gap: 0.375rem; max-width: 16rem; }
.tsc__bars i { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tsc__bars span { display: block; height: 100%; width: 0; background: var(--pink); }
.tsc__bars i.is-done span { width: 100%; opacity: .45; }
.tsc__bars i.is-on span { animation: tsx-fill var(--dur, 8s) linear forwards; }
.tsc.is-paused .tsc__bars i.is-on span { animation-play-state: paused; }
.tsc.is-single .tsc__ctl { display: none; }
.tsc__nav { display: grid; place-items: center; flex: none; width: 2.625rem; height: 2.625rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.tsc__nav svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tsc__nav:hover { border-color: var(--pink); background: rgba(var(--pink-rgb), .1); transform: translateY(-1px); }

/* the row: 3 / 2 / 1-and-a-peek cards; native horizontal scroll with snapping */
.tsc__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0.5rem 0.125rem 1rem; margin: -0.5rem -0.125rem -1rem;
}
.tsc__track::-webkit-scrollbar { display: none; }
.tsc__track:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 4px; border-radius: 1rem; }
.tsc__card {
  position: relative; display: flex; flex-direction: column; gap: 1.125rem; margin: 0; scroll-snap-align: start; overflow: hidden; isolation: isolate;
  padding: clamp(1.5rem, 2.4vw, 2rem); border: 1px solid var(--line); border-radius: 1.125rem; background: var(--panel);
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
/* accent line that grows across the top, and a soft glow, on hover */
.tsc__card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--pink), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.tsc__card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--pink-rgb), .12), transparent 70%); opacity: 0; transition: opacity .6s var(--ease); }
.tsc__card:hover { transform: translateY(-0.3rem); border-color: rgba(var(--pink-rgb), .45); }
.tsc__card:hover::before { transform: scaleX(1); }
.tsc__card:hover::after { opacity: 1; }
.tsc__mark { position: absolute; right: 1.25rem; top: 0.25rem; z-index: -1; font-family: var(--font-display); font-weight: 800; font-size: 6.5rem; line-height: 1; color: rgba(var(--pink-rgb), .1); pointer-events: none; }
.tsc__rating { display: flex; align-items: center; gap: 0.5rem; }
.tsc__rating b { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.tsc__quote { margin: 0; flex: 1; }
.tsc__quote p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.45; letter-spacing: -0.005em; color: var(--text); text-wrap: pretty; }
.tsc__who { display: flex; align-items: center; gap: 0.75rem; padding-top: 1.125rem; border-top: 1px solid var(--line-soft); }
.tsc__avatar {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; overflow: hidden;
  font-family: var(--font-display); font-weight: 800; font-size: 0.875rem; color: var(--on-pink);
  background: linear-gradient(135deg, var(--pink), color-mix(in srgb, var(--pink) 55%, #7a2bff));
}
.tsc__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tsc__id { display: grid; gap: 0.125rem; min-width: 0; }
.tsc__id strong { font-family: var(--font-display); font-size: 0.9375rem; letter-spacing: -0.01em; }
.tsc__id small { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* words rise in when the card comes into view; cards in a row follow each other slightly */
.tsc__quote .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.tsc__quote .w > span { display: inline-block; transform: translateY(110%); transition: transform .7s cubic-bezier(.2, .75, .15, 1) calc(var(--d) * 0.12s + min(var(--i) * 0.022s, 1s)); }
.tsc__card.is-in .tsc__quote .w > span { transform: none; }
.tsc__rating, .tsc__who { opacity: 0; transform: translateY(0.5rem); transition: opacity .6s var(--ease) calc(var(--d) * 0.12s), transform .7s var(--ease) calc(var(--d) * 0.12s); }
.tsc__card.is-in .tsc__rating, .tsc__card.is-in .tsc__who { opacity: 1; transform: none; }
.tsc__card.is-in .tsc__who { transition-delay: calc(var(--d) * 0.12s + .35s); }

:root[data-theme="light"] .tsc__card { box-shadow: var(--sh-sm); }
:root[data-theme="light"] .tsc__card:hover { box-shadow: var(--sh-lg); }
@media (prefers-reduced-motion: reduce) {
  .tsc__quote .w > span, .tsc__rating, .tsc__who { transform: none; opacity: 1; transition: none; }
  .tsc__card { transition: none; }
}
@media (max-width: 1100px) { .tsc__track { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 680px) {
  .tsc__track { grid-auto-columns: 86%; }
  .tsc__bar { flex-direction: column; align-items: stretch; }
  .tsc__ctl { max-width: none; justify-content: space-between; }
  .tsc__bars { max-width: none; }
}

/* =================================================================
   SERVICES  ·  category tabs, search, cards, and a details dialog
   ================================================================= */
.svc__head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.svc__search { position: relative; display: flex; align-items: center; width: min(22rem, 100%); }
.svc__search svg { position: absolute; left: 0.875rem; width: 1rem; height: 1rem; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.svc__search input {
  width: 100%; height: 2.75rem; padding: 0 1rem 0 2.5rem; border-radius: 2rem; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: 0.875rem var(--font-body); transition: border-color .25s, box-shadow .25s;
}
.svc__search input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(var(--pink-rgb), .18); }
.svc__tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 1.75rem; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.svc__tabs::-webkit-scrollbar { display: none; }
.svc__tab {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem; height: 2.375rem; padding: 0 0.875rem; border-radius: 2rem;
  border: 1px solid var(--line); background: none; color: var(--muted); font: 500 0.8125rem var(--font-body); cursor: pointer; white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s;
}
.svc__tab span { font: 0.6875rem var(--font-mono); padding: 0.0625rem 0.4375rem; border-radius: 1rem; background: var(--panel-2); color: var(--muted); }
.svc__tab:hover { color: var(--text); border-color: var(--muted-2); }
.svc__tab.is-on { color: var(--on-pink); background: var(--pink); border-color: var(--pink); }
.svc__tab.is-on span { background: rgba(0,0,0,.18); color: inherit; }
.svc__tabs.is-searching .svc__tab { opacity: .55; }
.svc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.125rem); }
.svc__grid .work__fallback { grid-column: 1 / -1; }
.svc__empty { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 1rem; }
.svc__empty a { color: var(--pink-text); }

.svc-card { opacity: 0; transform: translateY(0.75rem); transition: opacity .5s var(--ease) calc(var(--d) * 60ms), transform .6s var(--ease) calc(var(--d) * 60ms); }
.svc-card.is-in { opacity: 1; transform: none; }
.svc-card__open {
  position: relative; display: flex; flex-direction: column; gap: 0.625rem; width: 100%; height: 100%; padding: 1.375rem 1.375rem 1.25rem;
  text-align: left; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); color: inherit; cursor: pointer; overflow: hidden;
  transition: border-color .35s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.svc-card__open::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--pink), transparent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc-card__open:hover, .svc-card__open:focus-visible { border-color: rgba(var(--pink-rgb), .5); transform: translateY(-0.25rem); outline: none; }
.svc-card__open:hover::before, .svc-card__open:focus-visible::before { transform: scaleX(1); }
.svc-card__cat { font: 0.625rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-text); padding-right: 2.5rem; }
.svc-card__name { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; padding-right: 2rem; }
.svc-card__desc { color: var(--muted); font-size: 0.875rem; line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc-card__meta { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.375rem; }
.svc-card__meta span { font: 0.6875rem var(--font-mono); padding: 0.1875rem 0.5rem; border-radius: 1rem; border: 1px solid var(--line); color: var(--muted); }
.svc-card__go { position: absolute; top: 1.125rem; right: 1.125rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: background .3s, color .3s, border-color .3s, transform .45s var(--ease); }
.svc-card__go svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-card__open:hover .svc-card__go { background: var(--pink); border-color: var(--pink); color: var(--on-pink); transform: rotate(45deg); }
:root[data-theme="light"] .svc-card__open { box-shadow: var(--sh-sm); }
:root[data-theme="light"] .svc-card__open:hover { box-shadow: var(--sh-lg); }

/* details dialog */
html.svc-lock { overflow: hidden; }
.svc-dlg {
  width: min(64rem, calc(100vw - 2rem)); max-height: min(88vh, 60rem); padding: 0; margin: auto; border: 1px solid var(--line); border-radius: 1.25rem;
  background: var(--panel); color: var(--text); overflow: hidden; box-shadow: 0 2.5rem 6rem -2rem rgba(0,0,0,.8);
}
.svc-dlg[open] { display: flex; flex-direction: column; animation: svc-in .45s var(--ease); }
.svc-dlg::backdrop { background: rgba(8, 8, 10, .62); backdrop-filter: blur(6px); animation: svc-fade .3s ease; }
@keyframes svc-in { from { opacity: 0; transform: translateY(1rem) scale(.985); } }
@keyframes svc-fade { from { opacity: 0; } }
:root[data-theme="light"] .svc-dlg { box-shadow: var(--sh-xl); }
:root[data-theme="light"] .svc-dlg::backdrop { background: rgba(60, 44, 24, .28); }
.svc-dlg__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.625rem 0.875rem 0.625rem 1.25rem; border-bottom: 1px solid var(--line-soft); background: var(--panel-2); }
.svc-dlg__doc { font: 0.75rem var(--font-mono); color: var(--muted); }
.svc-dlg__x { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.svc-dlg__x svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.svc-dlg__x:hover { border-color: var(--pink); }
.svc-dlg__body { overflow-y: auto; padding: clamp(1.5rem, 4vw, 2.75rem); overscroll-behavior: contain; }
.svc-dlg__cat { font: 0.6875rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-text); }
.svc-dlg__title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.05; margin: 0.625rem 0 1rem; max-width: 24ch; }
.svc-dlg__desc { color: color-mix(in srgb, var(--text) 82%, var(--muted)); font-size: 1rem; line-height: 1.7; max-width: 66ch; }
.svc-dlg__note { margin-top: 1rem; padding: 0.75rem 1rem; border-left: 3px solid var(--pink); background: rgba(var(--pink-rgb), .07); border-radius: 0 0.5rem 0.5rem 0; font-size: 0.875rem; color: var(--text); max-width: 66ch; }
.svc-pk { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0.75rem; margin-top: 2rem; }
.svc-pk__col { position: relative; display: flex; flex-direction: column; gap: 0.875rem; padding: 1.25rem 1.125rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--bg); }
.svc-pk__col.is-pick { border-color: rgba(var(--pink-rgb), .6); background: linear-gradient(180deg, rgba(var(--pink-rgb), .08), var(--bg) 45%); }
.svc-pk__flag { position: absolute; top: -0.625rem; left: 1rem; font: 600 0.625rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 0.1875rem 0.5rem; border-radius: 1rem; background: var(--pink); color: var(--on-pink); }
.svc-pk__col h3 { font-family: var(--font-display); font-size: 1.125rem; }
.svc-pk__col dl { display: grid; gap: 0.375rem; padding-bottom: 0.875rem; border-bottom: 1px solid var(--line-soft); }
.svc-pk__col dl div { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.8125rem; }
.svc-pk__col dt { font: 0.6875rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.svc-pk__col dd { text-align: right; }
.svc-pk__col ul { list-style: none; display: grid; gap: 0.5rem; }
.svc-pk__col li { display: flex; gap: 0.5rem; font-size: 0.875rem; line-height: 1.4; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.svc-pk__col li svg { flex: none; width: 0.9375rem; height: 0.9375rem; margin-top: 0.125rem; fill: none; stroke: var(--pink-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.svc-opt { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
.svc-opt > div { padding: 1.125rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--bg); }
.svc-opt h3 { font: 0.6875rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.svc-dlg__cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 2rem; padding: 1.25rem 1.375rem; border-radius: 1rem; border: 1px dashed var(--line); }
.svc-dlg__cta p { color: var(--muted); font-size: 0.9rem; max-width: 46ch; }
@media (prefers-reduced-motion: reduce) { .svc-card { opacity: 1; transform: none; transition: none; } .svc-dlg[open], .svc-dlg::backdrop { animation: none; } }
@media (max-width: 1100px) { .svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-pk { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .svc__grid { grid-template-columns: 1fr; }
  .svc-pk, .svc-opt { grid-template-columns: 1fr; }
  .svc-dlg { width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 1.25rem 1.25rem 0 0; }
}

/* =================================================================
   SERVICES v2  ·  a categories panel + an editorial index of services
   ================================================================= */
.svc__layout { display: grid; grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }

/* left: a Layers-style panel of categories, sticky while the list scrolls */
.svc__cats { position: sticky; top: 5.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); overflow: hidden; }
:root[data-theme="light"] .svc__cats { box-shadow: var(--sh-sm); }
.svc__cats-head { display: flex; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line-soft); background: var(--panel-2); font: 0.6875rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.svc__cats .svc__tabs { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0.375rem; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.svc__cats .svc__tab {
  position: relative; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem;
  height: auto; padding: 0.625rem 0.75rem; border: 0; border-radius: 0.625rem; background: none; text-align: left;
  font: 500 0.875rem/1.3 var(--font-body); color: var(--muted); transition: background .3s var(--ease), color .3s;
}
.svc__cats .svc__tab::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--pink); transform: scaleY(0); transition: transform .4s var(--ease); }
.svc__tab-no { font: 0.6875rem var(--font-mono); color: var(--muted-2); transition: color .3s; }
.svc__tab-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc__cats .svc__tab .svc__tab-n { font: 0.6875rem var(--font-mono); padding: 0; background: none; color: var(--muted-2); }
.svc__cats .svc__tab:hover { color: var(--text); background: var(--panel-2); }
.svc__cats .svc__tab.is-on { color: var(--text); background: rgba(var(--pink-rgb), .1); border: 0; }
.svc__cats .svc__tab.is-on::before { transform: scaleY(1); }
.svc__cats .svc__tab.is-on .svc__tab-no, .svc__cats .svc__tab.is-on .svc__tab-n { color: var(--pink-text); }
.svc__cats .svc__tab:focus-visible { outline: 2px solid var(--pink-text); outline-offset: -2px; }
.svc__cats .svc__tabs.is-searching .svc__tab { opacity: .5; }

/* right: the category in focus */
.svc__panel { min-width: 0; }
.svc__cathead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 0.5rem 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.svc__cathead-no {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3.75rem, 7vw, 6rem); line-height: .8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(var(--pink-rgb), .7);
}
.svc__cathead-name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.015em; }
.svc__cathead p { margin-top: 0.5rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; max-width: 56ch; }
.svc__cathead-count { font: 0.75rem var(--font-mono); color: var(--muted); white-space: nowrap; padding-bottom: 0.25rem; }

/* the index: one service per row */
.svc__grid { display: block; }
.svc-list { list-style: none; }
.svc-row { border-bottom: 1px solid var(--line-soft); }
.svc-row__open {
  position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto 2.5rem; align-items: center; gap: 0.5rem 1.25rem;
  width: 100%; padding: 1.25rem 0.5rem; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; isolation: isolate;
}
/* hover: an accent hairline sweeps across and a soft wash fills the row */
.svc-row__open::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--pink), transparent 85%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc-row__open::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 0.75rem; background: linear-gradient(90deg, rgba(var(--pink-rgb), .07), transparent 70%); opacity: 0; transition: opacity .4s var(--ease); }
.svc-row__no { font: 0.75rem var(--font-mono); color: var(--muted-2); align-self: start; padding-top: 0.375rem; transition: color .3s; }
.svc-row__main { display: grid; gap: 0.3125rem; min-width: 0; transition: transform .45s var(--ease); }
.svc-row__cat { font: 0.625rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-text); }
.svc-row__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.2; letter-spacing: -0.01em; }
.svc-row__desc { color: var(--muted); font-size: 0.875rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 68ch; }
.svc-row__meta { display: flex; gap: 0.375rem; justify-self: end; }
.svc-row__meta span { font: 0.6875rem var(--font-mono); padding: 0.1875rem 0.5625rem; border-radius: 1rem; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.svc-row__go { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: background .35s, color .35s, border-color .35s, transform .5s var(--ease); }
.svc-row__go svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-row__open:hover::before, .svc-row__open:focus-visible::before { transform: scaleX(1); }
.svc-row__open:hover::after, .svc-row__open:focus-visible::after { opacity: 1; }
.svc-row__open:hover .svc-row__no, .svc-row__open:focus-visible .svc-row__no { color: var(--pink-text); }
.svc-row__open:hover .svc-row__main { transform: translateX(0.375rem); }
.svc-row__open:hover .svc-row__go, .svc-row__open:focus-visible .svc-row__go { background: var(--pink); border-color: var(--pink); color: var(--on-pink); transform: rotate(45deg); }
.svc-row__open:focus-visible { outline: none; }

/* switching category: the header and rows glide in, one after another */
.svc.is-switching .svc__cathead > * { animation: svc-rise .6s var(--ease) both; }
.svc.is-switching .svc__cathead > :nth-child(2) { animation-delay: .05s; }
.svc.is-switching .svc-row { animation: svc-rise .55s var(--ease) both; animation-delay: calc(.08s + min(var(--i), 12) * .04s); }
@keyframes svc-rise { from { opacity: 0; transform: translateY(0.625rem); } }
@media (prefers-reduced-motion: reduce) { .svc.is-switching .svc__cathead > *, .svc.is-switching .svc-row { animation: none; } .svc-row__open:hover .svc-row__main { transform: none; } }

@media (max-width: 1180px) { .svc-row__meta span + span { display: none; } }
@media (max-width: 900px) {
  .svc__layout { grid-template-columns: 1fr; }
  .svc__cats { position: static; border: 0; background: none; overflow: visible; }
  .svc__cats-head { display: none; }
  .svc__cats .svc__tabs { flex-direction: row; overflow-x: auto; gap: 0.375rem; padding: 0 0 0.25rem; scrollbar-width: none; }
  .svc__cats .svc__tab { flex: none; grid-template-columns: auto auto auto; border: 1px solid var(--line); border-radius: 2rem; padding: 0.5rem 0.875rem; }
  .svc__cats .svc__tab::before { display: none; }
  .svc__cats .svc__tab.is-on { background: var(--pink); color: var(--on-pink); border-color: var(--pink); }
  .svc__cats .svc__tab.is-on .svc__tab-no, .svc__cats .svc__tab.is-on .svc__tab-n { color: inherit; opacity: .75; }
  :root[data-theme="light"] .svc__cats { box-shadow: none; }
}
@media (max-width: 640px) {
  .svc__cathead { grid-template-columns: auto minmax(0, 1fr); }
  .svc__cathead-count { display: none; }
  .svc-row__open { grid-template-columns: 1.75rem minmax(0, 1fr) 2.25rem; }
  .svc-row__meta { display: none; }
  .svc-row__desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
/* services refinements: names wrap instead of being cut; tags sit under the description so names get the full width */
.svc__cats .svc__tab { font-family: var(--font-body); }
.svc__tab-name { white-space: normal; overflow: visible; text-overflow: clip; }
.svc-row__open { grid-template-columns: 2.25rem minmax(0, 1fr) 2.5rem; grid-template-areas: "no main go" "no meta go"; row-gap: 0.625rem; }
.svc-row__no { grid-area: no; }
.svc-row__main { grid-area: main; }
.svc-row__go { grid-area: go; }
.svc-row__meta { grid-area: meta; justify-self: start; transition: transform .45s var(--ease); }
.svc-row__open:hover .svc-row__meta { transform: translateX(0.375rem); }
@media (max-width: 1180px) { .svc-row__meta span + span { display: inline; } }
@media (max-width: 640px) { .svc-row__open { grid-template-columns: 1.75rem minmax(0, 1fr) 2.25rem; } .svc-row__meta { display: flex; } }
.svc__cats .svc__tab .svc__tab-name { font: 500 0.875rem/1.3 var(--font-body); padding: 0; border-radius: 0; background: none; color: inherit; }
.svc__cats .svc__tab .svc__tab-no { padding: 0; border-radius: 0; background: none; }
.svc__layout > * { min-width: 0; }
@media (max-width: 900px) { .svc__cats .svc__tab .svc__tab-name { white-space: nowrap; } }

/* =================================================================
   SERVICES v3  ·  category tiles; the open one's services slide out in a drawer under its row
   ================================================================= */
.svc__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.625rem, 1.2vw, 1rem); margin-top: 0.5rem; }
.svc-tile {
  --lift: 0;
  position: relative; display: flex; flex-direction: column; gap: 0.625rem; min-height: 15.5rem; padding: 1.375rem 1.375rem 1.125rem;
  text-align: left; border: 1px solid var(--line); border-radius: 1.125rem; background: var(--panel); color: inherit; cursor: pointer;
  overflow: hidden; isolation: isolate; font: inherit;
  transition: transform .5s var(--ease), border-color .4s var(--ease), opacity .4s var(--ease), filter .4s var(--ease), box-shadow .5s var(--ease);
}
/* a glow that follows the pointer (set from JS-free CSS: centred, grows on hover) */
.svc-tile::before {
  content: ""; position: absolute; z-index: -1; width: 140%; aspect-ratio: 1; left: -20%; top: 35%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--pink-rgb), .18), transparent 70%); opacity: 0; transform: scale(.6); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.svc-tile::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--pink), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.svc-tile__top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-tile__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.875rem; border: 1px solid var(--line); background: var(--bg); color: var(--text); transition: background .4s var(--ease), color .4s, border-color .4s, transform .6s var(--ease); }
.svc-tile__icon svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-tile__no { font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; line-height: .85; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line); transition: -webkit-text-stroke-color .4s, color .4s; }
.svc-tile__name { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.2; letter-spacing: -0.01em; }
.svc-tile__blurb { color: var(--muted); font-size: 0.8125rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-tile__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; margin-top: 0.25rem; border-top: 1px solid var(--line-soft); font: 0.6875rem var(--font-mono); letter-spacing: .06em; color: var(--muted); }
/* a plus that turns into a cross when the tile is open */
.svc-tile__foot i { position: relative; width: 1.625rem; height: 1.625rem; border-radius: 50%; border: 1px solid var(--line); transition: background .35s, border-color .35s, transform .5s var(--ease); }
.svc-tile__foot i::before, .svc-tile__foot i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.625rem; height: 1.5px; translate: -50% -50%; background: currentColor; }
.svc-tile__foot i::after { rotate: 90deg; }

.svc-tile:hover, .svc-tile:focus-visible { transform: translateY(-0.25rem); border-color: rgba(var(--pink-rgb), .45); outline: none; }
.svc-tile:hover::before, .svc-tile:focus-visible::before, .svc-tile.is-on::before { opacity: 1; transform: none; }
.svc-tile:hover::after, .svc-tile:focus-visible::after { transform: scaleX(1); }
.svc-tile:hover .svc-tile__icon { transform: rotate(-6deg) scale(1.05); }
.svc-tile:hover .svc-tile__no { -webkit-text-stroke-color: rgba(var(--pink-rgb), .7); }
.svc-tile.is-on { border-color: var(--pink); transform: translateY(-0.25rem); }
.svc-tile.is-on::after { transform: scaleX(1); }
.svc-tile.is-on .svc-tile__icon { background: var(--pink); border-color: var(--pink); color: var(--on-pink); }
.svc-tile.is-on .svc-tile__no { color: var(--pink); -webkit-text-stroke-color: var(--pink); }
.svc-tile.is-on .svc-tile__foot i { background: var(--pink); border-color: var(--pink); color: var(--on-pink); transform: rotate(45deg); }
.svc-tile.is-on .svc-tile__foot { color: var(--text); }
/* with a category open (or a search), the other tiles step back */
.svc__tiles.has-open .svc-tile:not(.is-on):not(:hover) { opacity: .55; filter: saturate(.6); }
.svc__tiles.is-searching .svc-tile { opacity: .45; }
:root[data-theme="light"] .svc-tile { box-shadow: var(--sh-sm); }
:root[data-theme="light"] .svc-tile:hover, :root[data-theme="light"] .svc-tile.is-on { box-shadow: var(--sh-lg); }
.svc__tiles.reveal.is-in .svc-tile { animation: svc-tile-in .7s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes svc-tile-in { from { opacity: 0; transform: translateY(1rem) scale(.98); } }

/* the drawer: full width of the grid, under the open tile's row */
.svc__drawer { grid-column: 1 / -1; overflow: hidden; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel); position: relative; }
.svc__drawer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--pink), transparent); }
:root[data-theme="light"] .svc__drawer { box-shadow: var(--sh-md); }
.svc__drawer .svc__cathead { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem); margin: 0; border-bottom: 1px solid var(--line-soft); }
.svc__cathead-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--pink); color: var(--on-pink); }
.svc__cathead-icon svg { width: 1.625rem; height: 1.625rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc__drawer .svc__cathead-no { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.svc__close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; transition: border-color .25s, transform .4s var(--ease); }
.svc__close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.svc__close:hover { border-color: var(--pink); transform: rotate(90deg); }
.svc__drawer .svc__grid { padding: 0.25rem clamp(0.75rem, 2.5vw, 1.75rem) 1rem; }
.svc__drawer .svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.svc__drawer .svc-row:last-child, .svc__drawer .svc-row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.svc__drawer.is-in .svc__cathead > * { animation: svc-rise .55s var(--ease) both; }
.svc__drawer.is-in .svc__cathead > :nth-child(2) { animation-delay: .06s; }
.svc__drawer.is-in .svc-row { animation: svc-rise .55s var(--ease) both; animation-delay: calc(.1s + min(var(--i), 14) * .035s); }
@media (prefers-reduced-motion: reduce) { .svc__tiles.reveal.is-in .svc-tile, .svc__drawer.is-in .svc__cathead > *, .svc__drawer.is-in .svc-row { animation: none; } }

@media (max-width: 1180px) { .svc__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .svc__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc__drawer .svc-list { grid-template-columns: 1fr; } .svc__drawer .svc-row:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line-soft); } }
@media (max-width: 560px) {
  .svc__tiles { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .svc-tile { min-height: 11.5rem; padding: 1rem; }
  .svc-tile__blurb { display: none; }
  .svc-tile__no { font-size: 2rem; }
  .svc-tile__icon { width: 2.5rem; height: 2.5rem; }
  .svc__drawer .svc__cathead { grid-template-columns: auto minmax(0, 1fr) auto; padding: 1.125rem; }
  .svc__cathead-icon { width: 2.75rem; height: 2.75rem; }
}
.svc-tile__no { -webkit-text-stroke: 1.25px color-mix(in srgb, var(--muted) 60%, transparent); }

/* hero proof pill: overlapping client avatars + a two-line claim */
.hero__cta { flex-wrap: wrap; align-items: center; }
.hero__proof {
  display: inline-flex; align-items: center; gap: 0.875rem; margin-left: 0.5rem; padding: 0.4375rem 0.5rem 0.4375rem 0.4375rem;
  border: 1px solid var(--line); border-radius: 3rem; background: color-mix(in srgb, var(--panel) 70%, transparent); backdrop-filter: blur(10px);
  text-decoration: none; color: var(--text); transition: border-color .35s var(--ease), transform .45s var(--ease), background .35s;
  animation: proof-in .8s var(--ease) both .2s;
}
@keyframes proof-in { from { opacity: 0; transform: translateY(0.5rem) scale(.97); } }
.hero__proof:hover { border-color: rgba(var(--pink-rgb), .55); transform: translateY(-2px); }
.hero__faces { display: flex; padding-left: 0.375rem; }
.hero__face {
  display: grid; place-items: center; width: 2.375rem; height: 2.375rem; margin-left: -0.625rem; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2.5px var(--bg); font: 800 0.75rem var(--font-display); color: var(--on-pink);
  background: linear-gradient(135deg, var(--pink), color-mix(in srgb, var(--pink) 55%, #7a2bff));
  animation: face-pop .55s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.35s + var(--i) * .08s);
  transition: transform .4s var(--ease);
}
.hero__face:nth-child(2) { background: linear-gradient(135deg, #2d8ceb, #7a2bff); }
.hero__face:nth-child(3) { background: linear-gradient(135deg, #14b8a6, #2d8ceb); color: #fff; }
.hero__face:nth-child(4) { background: linear-gradient(135deg, #f0b54a, var(--pink)); }
.hero__face img { width: 100%; height: 100%; object-fit: cover; }
@keyframes face-pop { from { opacity: 0; transform: scale(.4); } }
/* the faces fan apart a touch on hover */
.hero__proof:hover .hero__face { transform: translateX(calc(var(--i) * 0.1875rem)); }
.hero__proof-text { display: grid; gap: 0.0625rem; line-height: 1.25; }
.hero__proof-text b { font: 600 0.875rem var(--font-body); }
.hero__proof-text small { font: 0.6875rem var(--font-mono); color: var(--muted); }
.hero__proof-text small i { font-style: normal; color: var(--pink-text); }
.hero__proof-go { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: background .3s, color .3s, border-color .3s, transform .45s var(--ease); }
.hero__proof-go svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__proof:hover .hero__proof-go { background: var(--pink); border-color: var(--pink); color: var(--on-pink); transform: rotate(45deg); }
:root[data-theme="light"] .hero__proof { background: rgba(255,255,255,.75); box-shadow: var(--sh-sm); }
@media (prefers-reduced-motion: reduce) { .hero__proof, .hero__face { animation: none; } }
@media (max-width: 720px) { .hero__proof { margin-left: 0; margin-top: 0.25rem; } }

/* ===== Featured deck: stacked -> rise -> fanned arc, client chips, hover lift ===== */
.deck {
  --w: clamp(9.5rem, 15.5vw, 16.5rem);
  --s: calc(var(--w) * 0.7);
  --t: 1.05s cubic-bezier(.2, .9, .15, 1);
  position: relative; margin: 0.5rem 0 4.5rem; text-align: center;
}
.deck__kicker { display: inline-flex; gap: 0.625rem; margin: 0 0 1.25rem; font: 0.75rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.deck__kicker i { font-style: normal; color: var(--pink-text); }
.deck__stage { position: relative; height: calc(var(--w) * 1.333 + 5.5rem); }
.deck__card {
  position: absolute; left: 50%; top: 2.75rem; width: var(--w); margin-left: calc(var(--w) / -2);
  text-decoration: none; color: inherit; outline: none;
  transform-origin: 50% 120%;
  /* 0. waiting below, stacked */
  opacity: 0; transform: translateY(45%) rotate(calc(var(--o) * 1.5deg)) scale(.92);
  transition: transform var(--t), opacity .6s ease;
  transition-delay: calc(var(--d) * 45ms);
}
/* 1. the stack rises as one */
.deck.is-risen .deck__card { opacity: 1; transform: translateY(0) rotate(calc(var(--o) * 1.5deg)); }
/* 2. it fans out into an overlapping arc */
.deck.is-fanned .deck__card {
  transform:
    translateX(calc(var(--o) * var(--s) + var(--push, 0) * 2.5rem))
    translateY(calc(var(--o) * var(--o) * 0.375rem))
    rotate(calc(var(--o) * 4.5deg + var(--push, 0) * 1.5deg));
}
/* 3. once settled, hover answers immediately */
.deck.is-settled .deck__card { transition: transform .6s var(--ease), opacity .4s ease, filter .4s ease; transition-delay: 0s; }
.deck.is-hovering .deck__card:not(.is-on) { filter: saturate(.55) brightness(.72); }
.deck.is-fanned .deck__card.is-on {
  z-index: 40 !important;
  transform: translateX(calc(var(--o) * var(--s))) translateY(-1.5rem) rotate(0deg) scale(1.08);
}
.deck__frame {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 1.125rem;
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: 0 1.5rem 3rem -1.25rem rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.2);
}
.deck__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
/* a soft sheen that slides across the lifted card */
.deck__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.deck__card.is-on .deck__frame::after { transform: translateX(120%); }
.deck__card.is-on .deck__frame img { transform: scale(1.05); }
.deck__card:focus-visible .deck__frame { outline: 2px solid var(--pink); outline-offset: 4px; }
.deck__card.is-on .deck__frame { box-shadow: 0 2.25rem 4rem -1.25rem rgba(0,0,0,.75), 0 0 0 1px rgba(var(--pink-rgb), .55); }

/* speech-bubble client chips */
.deck__chip {
  position: absolute; left: 0.75rem; top: -1.125rem; max-width: calc(100% - 1.5rem);
  padding: 0.375rem 0.75rem; border-radius: 1rem 1rem 1rem 0.25rem;
  font: 600 0.75rem/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--text); color: var(--bg); box-shadow: 0 0.5rem 1.25rem -0.5rem rgba(0,0,0,.5);
  transform-origin: 0 100%; opacity: 0; transform: scale(.3) rotate(calc(var(--o) * -4.5deg));
  transition: transform .55s cubic-bezier(.3, 1.6, .5, 1), opacity .3s ease, background .3s, color .3s;
  transition-delay: calc(1s + var(--d) * 90ms);
}
.deck__card:nth-child(even) .deck__chip { left: auto; right: 0.75rem; top: auto; bottom: -1rem; border-radius: 1rem 0.25rem 1rem 1rem; transform-origin: 100% 0; }
.deck.is-fanned .deck__chip { opacity: 1; transform: rotate(calc(var(--o) * -4.5deg)); }
.deck.is-settled .deck__chip { transition-delay: 0s; }
.deck__card.is-on .deck__chip { background: var(--pink); color: var(--on-pink); transform: rotate(0deg) translateY(-0.25rem); }

/* caption that names whichever card is in focus */
.deck__caption { min-height: 6.5rem; margin-top: 2rem; }
.deck__meta { margin: 0 0 0.375rem; font: 0.75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.deck__title { margin: 0; font: 700 clamp(1.375rem, 2.4vw, 2.125rem)/1.1 var(--font-display); }
.deck__tag { max-width: 34rem; margin: 0.5rem auto 0; color: var(--muted); }
.deck__caption > * { opacity: 0; }
.deck.is-fanned .deck__caption.is-in > * { animation: deck-cap .6s var(--ease) both; }
.deck.is-fanned .deck__caption.is-in > :nth-child(2) { animation-delay: .05s; }
.deck.is-fanned .deck__caption.is-in > :nth-child(3) { animation-delay: .1s; }
@keyframes deck-cap { from { opacity: 0; transform: translateY(0.625rem); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* the "All" grid below lists only the archive while the deck shows the featured work */
.work__grid.has-deck:not(.is-filtered) .work__label:not(.work__label--featured):not([hidden]) { margin-top: 0; }

:root[data-theme="light"] .deck__frame { box-shadow: var(--sh-lg); }
:root[data-theme="light"] .deck.is-hovering .deck__card:not(.is-on) { filter: saturate(.6) brightness(.95) opacity(.75); }

@media (prefers-reduced-motion: reduce) {
  .deck__card, .deck__chip, .deck__frame img, .deck__frame::after { transition: none !important; }
  .deck.is-fanned .deck__caption.is-in > * { animation: none; opacity: 1; }
}
/* phones: a swipeable, gently tilted row instead of the fan */
@media (max-width: 720px) {
  .deck { --w: 62vw; margin-bottom: 3rem; }
  .deck__stage {
    display: flex; gap: 0.875rem; height: auto; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 1.75rem 19vw 2rem; margin-inline: calc(var(--gutter, 1rem) * -1); scrollbar-width: none;
  }
  .deck__stage::-webkit-scrollbar { display: none; }
  .deck__card, .deck.is-risen .deck__card, .deck.is-fanned .deck__card, .deck.is-fanned .deck__card.is-on {
    position: relative; left: auto; top: auto; margin: 0; flex: 0 0 var(--w); scroll-snap-align: center;
    transform: rotate(calc(var(--o) * 1deg)); opacity: 1; z-index: auto !important;
  }
  .deck.is-hovering .deck__card:not(.is-on) { filter: none; }
  .deck__caption { display: none; }
}
.deck__name { display: none; }
@media (max-width: 720px) {
  .deck__name { display: block; margin-top: 1.5rem; font: 700 1.0625rem/1.2 var(--font-display); text-align: left; }
}

/* =================================================================
   AWARDS · EDUCATION · SKILLS · CERTIFICATIONS (honours.js)
   ================================================================= */
.hon__label { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.25rem; font: 0.75rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hon__label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.hon__label i { font-style: normal; color: var(--pink-text); }

/* ---- awards: medal cards ---- */
.awards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 clamp(3rem, 7vw, 5rem); padding: 0; }
.award {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 1rem; align-content: start;
  min-height: 11.5rem; padding: 1.375rem 1.375rem 1.25rem; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-soft); border-radius: 1rem;
  background: linear-gradient(160deg, var(--panel), color-mix(in srgb, var(--panel) 55%, var(--bg)));
  opacity: 0; transform: translateY(1.25rem);
  transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s, box-shadow .4s;
  transition-delay: calc(var(--i) * 80ms);
}
.awards.is-in .award { opacity: 1; transform: none; }
.awards.is-in .award:hover { transform: translateY(-0.25rem); transition-delay: 0s; border-color: rgba(var(--pink-rgb), .5); box-shadow: 0 1.5rem 3rem -1.75rem rgba(var(--pink-rgb), .45); }
/* soft glow behind the laurel, and a sheen that crosses on hover */
.award::before { content: ""; position: absolute; z-index: -1; left: -2.5rem; top: -2.5rem; width: 10rem; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--pink-rgb), .16), transparent); opacity: .6; transition: opacity .5s; }
.award:hover::before { opacity: 1; }
.award::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%); transform: translateX(-100%); transition: transform 1s var(--ease); }
.award:hover::after { transform: translateX(100%); }
.award__laurel { grid-row: 1 / span 3; width: 3.5rem; height: 3.5rem; color: var(--pink); }
.award__laurel svg { width: 100%; height: 100%; overflow: visible; }
.award__laurel .stem { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1s var(--ease); transition-delay: calc(var(--i) * 80ms + 150ms); }
.award__laurel .lf { fill: currentColor; opacity: 0; transform-box: view-box; scale: .2; transition: opacity .45s ease, scale .55s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 80ms + 300ms + var(--k) * 70ms); }
.award__laurel .star { fill: currentColor; transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .6s cubic-bezier(.3, 1.6, .5, 1), rotate .8s var(--ease); transition-delay: calc(var(--i) * 80ms + 850ms); }
.awards.is-in .stem { stroke-dashoffset: 0; }
.awards.is-in .lf { opacity: .9; scale: 1; }
.awards.is-in .star { scale: 1; }
.award:hover .star { rotate: 72deg; transition-delay: 0s; }
.award__year {
  position: absolute; right: 1rem; top: 0.5rem; z-index: -1;
  font: 800 clamp(2.5rem, 4vw, 3.5rem)/1 var(--font-display); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.25px var(--line); transition: -webkit-text-stroke-color .5s var(--ease);
}
.award:hover .award__year { -webkit-text-stroke-color: rgba(var(--pink-rgb), .55); }
.award__name { grid-column: 2; margin: 0.25rem 0 0; font: 700 clamp(1.0625rem, 1.4vw, 1.25rem)/1.2 var(--font-display); padding-right: 3.5rem; }
.award__tier { grid-column: 2; justify-self: start; margin-top: 0.5rem; padding: 0.1875rem 0.5625rem; border-radius: 2rem; font: 600 0.6875rem var(--font-mono); letter-spacing: .04em; color: var(--pink-text); background: rgba(var(--pink-rgb), .1); border: 1px solid rgba(var(--pink-rgb), .25); }
.award__by { grid-column: 2; align-self: end; margin-top: 1rem; font: 0.75rem var(--font-mono); color: var(--muted); }

/* ---- education: credential cards on a rail that fills with the scroll ---- */
.hon__split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.edu { --p: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 2.5rem; display: grid; gap: 0.875rem; }
.edu::before, .edu::after { content: ""; position: absolute; left: 0.5rem; top: 1.75rem; bottom: 1.75rem; width: 2px; border-radius: 2px; background: var(--line-soft); }
.edu::after { bottom: auto; height: calc((100% - 3.5rem) * var(--p)); background: linear-gradient(var(--pink), color-mix(in srgb, var(--pink) 45%, #7a2bff)); box-shadow: 0 0 14px rgba(var(--pink-rgb), .55); }
.edu__item { position: relative; }
.edu__node { position: absolute; left: -2.5rem; top: 1.5rem; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); z-index: 1; transition: border-color .4s, background .4s, box-shadow .4s, scale .5s cubic-bezier(.3, 1.6, .5, 1); }
.edu__item.is-on .edu__node { border-color: var(--pink); background: var(--pink); box-shadow: 0 0 0 6px rgba(var(--pink-rgb), .14); scale: 1.08; }
.edu__card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.125rem; align-items: center;
  padding: 1.125rem 1.25rem; border: 1px solid var(--line-soft); border-radius: 1rem; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--panel), color-mix(in srgb, var(--panel) 50%, var(--bg)));
  opacity: .55; translate: 0.75rem 0;
  transition: opacity .6s var(--ease), translate .6s var(--ease), border-color .4s, box-shadow .4s;
}
.edu__item.is-on .edu__card { opacity: 1; translate: 0 0; }
.edu__card:hover { border-color: rgba(var(--pink-rgb), .45); box-shadow: 0 1.25rem 2.5rem -1.75rem rgba(var(--pink-rgb), .5); }
.edu__mono { position: relative; width: 3.25rem; height: 3.25rem; perspective: 400px; }
.edu__mono b, .edu__mono i {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 0.875rem; backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.3, 1.3, .5, 1);
}
.edu__mono b { font: 800 1.0625rem var(--font-display); letter-spacing: .02em; color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.edu__item.is-on .edu__mono b { box-shadow: inset 0 0 0 1px rgba(var(--pink-rgb), .5); }
.edu__mono i { transform: rotateY(180deg); background: var(--pink); color: var(--on-pink); }
.edu__mono svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edu__card:hover .edu__mono b { transform: rotateY(-180deg); }
.edu__card:hover .edu__mono i { transform: rotateY(0deg); }
.edu__main { display: grid; gap: 0.1875rem; min-width: 0; }
.edu__years { font: 0.6875rem var(--font-mono); letter-spacing: .08em; color: var(--blue); }
.edu__name { margin: 0; font: 700 clamp(1.0625rem, 1.5vw, 1.3125rem)/1.25 var(--font-display); }
.edu__name em { font-style: normal; font-weight: 600; color: var(--pink-text); }
.edu__school { font-size: 0.875rem; color: var(--muted); }
.edu__end {
  position: absolute; right: 0.875rem; bottom: -0.625rem; z-index: -1;
  font: 800 clamp(2.75rem, 4.5vw, 3.75rem)/1 var(--font-display); letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.25px var(--line-soft); transition: -webkit-text-stroke-color .5s var(--ease);
}
.edu__card:hover .edu__end { -webkit-text-stroke-color: rgba(var(--pink-rgb), .45); }

/* ---- skills: icon tiles that flip in ---- */
.skills { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; perspective: 900px; }
.skill {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1rem; border: 1px solid var(--line-soft); border-radius: 0.875rem; overflow: hidden; isolation: isolate;
  background: var(--panel); transform-origin: 50% 0;
  opacity: 0; transform: rotateX(-70deg) translateY(0.5rem);
  transition: opacity .6s var(--ease), transform .8s cubic-bezier(.3, 1.3, .5, 1), border-color .35s, background .35s;
  transition-delay: calc(var(--i) * 70ms);
}
.skills.is-in .skill { opacity: 1; transform: none; }
/* a soft glow that follows into the hovered tile */
.skill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 0% 0%, rgba(var(--pink-rgb), .16), transparent 60%); opacity: 0; transition: opacity .4s; }
.skill:hover { border-color: rgba(var(--pink-rgb), .5); transition-delay: 0s; }
.skill:hover::before { opacity: 1; }
.skill__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.6875rem; background: var(--panel-2); color: var(--pink); transition: background .35s, color .35s, rotate .5s var(--ease); }
.skill__icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 0; }
.skill:hover .skill__icon { background: var(--pink); color: var(--on-pink); rotate: -8deg; }
.skill:hover .skill__icon svg { animation: skill-draw .9s var(--ease) both; }
@keyframes skill-draw { from { stroke-dashoffset: 80; } }
.skill__name { font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.skill__no { font: 600 0.625rem var(--font-mono); color: var(--muted-2); transition: color .3s; }
.skill:hover .skill__no { color: var(--pink-text); }
:root[data-theme="light"] .edu__card, :root[data-theme="light"] .skill { background: #fff; box-shadow: var(--sh-sm); }
@media (prefers-reduced-motion: reduce) { .edu__card, .skill, .edu__mono b, .edu__mono i { transition: none !important; } .skill:hover .skill__icon svg { animation: none; } }
@media (max-width: 900px) { .hon__split { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .skills { grid-template-columns: 1fr; } .edu { padding-left: 2rem; } .edu__node { left: -2rem; } .edu::before, .edu::after { left: 0.25rem; } }

/* ---- certifications: counters ---- */
.cstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0.5rem 0 clamp(2.5rem, 6vw, 4rem); border-block: 1px solid var(--line-soft); }
.cstat { display: grid; gap: 0.375rem; padding: 1.5rem 1.25rem; }
.cstat + .cstat { border-left: 1px solid var(--line-soft); }
.cstat strong { font: 850 clamp(2.25rem, 4.5vw, 3.75rem)/1 var(--font-body); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.cstat:first-child strong { color: var(--pink-text); }
.cstat span { font: 0.6875rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---- mastery seals ---- */
.seals { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.75rem 1rem; margin: 0 0 clamp(3rem, 7vw, 4.5rem); padding: 0; }
.seal { display: grid; justify-items: center; align-content: start; text-align: center; gap: 0.375rem; opacity: 0; transform: translateY(1rem) scale(.9); transition: opacity .7s var(--ease), transform .7s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(var(--i) * 60ms); }
.seals.is-in .seal { opacity: 1; transform: none; }
.seal__badge { position: relative; display: grid; place-items: center; width: 7.5rem; aspect-ratio: 1; margin-bottom: 0.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--panel) 92%, #fff), var(--panel) 60%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1rem 2rem -1.25rem rgba(0,0,0,.7); transition: transform .6s var(--ease), box-shadow .5s; }
.seal__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal__ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; transition: stroke .4s; }
.seal__ring--in { stroke-dasharray: none; stroke: color-mix(in srgb, var(--line) 70%, transparent); }
.seal__rim { transform-origin: 60px 60px; animation: seal-turn 40s linear infinite; animation-play-state: paused; }
.seal__rim text { font: 600 7.5px var(--font-mono); letter-spacing: .5px; fill: var(--muted); transition: fill .4s; }
@keyframes seal-turn { to { rotate: 360deg; } }
.seal__no { font: 800 2rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.25px rgba(var(--pink-rgb), .7); transition: color .45s var(--ease), -webkit-text-stroke-color .45s; }
.seal:hover .seal__badge { transform: translateY(-0.25rem) rotate(-6deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1.5rem 2.5rem -1.25rem rgba(var(--pink-rgb), .5); }
.seal:hover .seal__rim { animation-play-state: running; animation-duration: 8s; }
.seal:hover .seal__rim text { fill: var(--pink-text); }
.seal:hover .seal__ring { stroke: rgba(var(--pink-rgb), .6); }
.seal:hover .seal__no { color: var(--pink); -webkit-text-stroke-color: var(--pink); }
.seal__name { font: 700 0.9375rem/1.3 var(--font-display); color: var(--text); text-decoration: none; max-width: 13rem; }
a.seal__name:hover { color: var(--pink-text); }
.seal__meta { font: 0.6875rem var(--font-mono); color: var(--muted); }

/* ---- disciplines: bar chart that opens into lists ---- */
.disc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.disc__row { border-bottom: 1px solid var(--line-soft); }
.disc__row summary { display: grid; grid-template-columns: 1.75rem minmax(0, 11rem) 1fr 2rem 1rem; align-items: center; gap: 0.875rem; padding: 0.9375rem 0; cursor: pointer; list-style: none; }
.disc__row summary::-webkit-details-marker { display: none; }
.disc__no { font: 600 0.6875rem var(--font-mono); color: var(--muted-2); }
.disc__name { font-weight: 600; font-size: 0.9375rem; transition: color .3s; }
.disc__bar { position: relative; height: 0.375rem; border-radius: 1rem; background: var(--panel-2); overflow: hidden; }
.disc__bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--pink) 55%, transparent), var(--pink)); transition: width 1.1s var(--ease), filter .3s; transition-delay: calc(var(--i) * 55ms + 100ms); }
.disc.is-in .disc__bar i { width: calc(var(--w) * 100%); }
.disc__n { font: 700 0.9375rem var(--font-body); text-align: right; font-variant-numeric: tabular-nums; }
.disc__chev { width: 0.5rem; height: 0.5rem; justify-self: end; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); rotate: 45deg; translate: 0 -2px; transition: rotate .4s var(--ease), border-color .3s; }
.disc__row summary:hover .disc__name, .disc__row[open] .disc__name { color: var(--pink-text); }
.disc__row summary:hover .disc__bar i { filter: brightness(1.2); }
.disc__row[open] .disc__chev { rotate: 225deg; translate: 0 2px; border-color: var(--pink); }
.disc__list { list-style: none; margin: 0 0 1rem 2.625rem; padding: 0.25rem 0 0; }
.disc__row[open] .disc__list li { animation: disc-li .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 25ms); }
@keyframes disc-li { from { opacity: 0; transform: translateY(0.375rem); } }
.disc__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px dashed var(--line-soft); font-size: 0.875rem; }
.disc__cert { color: color-mix(in srgb, var(--text) 85%, var(--muted)); text-decoration: none; }
a.disc__cert:hover { color: var(--pink-text); }
.disc__meta { flex: none; font: 0.6875rem var(--font-mono); color: var(--muted); }

:root[data-theme="light"] .award { background: #fff; box-shadow: var(--sh-sm); }
:root[data-theme="light"] .seal__badge { background: radial-gradient(circle at 35% 30%, #fff, #f1ece2 70%); box-shadow: var(--sh-md); }

@media (prefers-reduced-motion: reduce) {
  .award, .award .stem, .award .lf, .award .star, .seal, .disc__bar i { transition: none !important; }
  .seal__rim { animation: none; }
}
@media (max-width: 1020px) {
  .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* one column: back to rank order (the two-column split interleaves them) */
  .disc { display: flex; flex-direction: column; }
  .disc__col { display: contents; }
  .disc__row { order: var(--i); }
  .cstats { grid-template-columns: repeat(2, 1fr); }
  .cstat:nth-child(3) { border-left: 0; }
  .cstat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 600px) {
  .awards { grid-template-columns: 1fr; gap: 0.75rem; }
  .award { min-height: 0; }
  .seals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seal__badge { width: 6.5rem; }
  .disc__row summary { grid-template-columns: 1.5rem minmax(0, 1fr) 4.5rem 1.75rem 0.75rem; gap: 0.625rem; }
  .disc__list { margin-left: 0; }
  .disc__list li { flex-direction: column; gap: 0.125rem; }
}

/* =================================================================
   TOOLKIT: a Layers panel (content.js renderToolkit)
   ================================================================= */
.lyr {
  --sel: rgba(var(--pink-rgb), .12);
  border: 1px solid var(--line); border-radius: 1rem; overflow: hidden;
  background: var(--panel); box-shadow: 0 2rem 4rem -2.5rem rgba(0,0,0,.7);
}
.lyr__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 1rem; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.lyr__tabs { display: flex; }
.lyr__tabs b, .lyr__tabs i { padding: 0.75rem 1rem 0.6875rem; font: 600 0.75rem var(--font-body); font-style: normal; color: var(--muted); border-bottom: 2px solid transparent; }
.lyr__tabs b { color: var(--text); border-bottom-color: var(--pink); }
.lyr__file { font: 0.6875rem var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyr__opts { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.625rem 1rem; border-bottom: 1px solid var(--line-soft); font: 0.6875rem var(--font-mono); color: var(--muted); }
.lyr__mode { padding: 0.3125rem 0.625rem; border: 1px solid var(--line); border-radius: 0.375rem; color: var(--text); }
.lyr__mode i { font-style: normal; color: var(--muted); margin-left: 0.375rem; }
.lyr__list { display: grid; grid-template-columns: 1fr 1fr; }
.lyr__row {
  position: relative; display: grid; grid-template-columns: 2rem 3rem minmax(0, 1fr) minmax(6.5rem, 9rem); align-items: center; gap: 0.75rem;
  padding: 0.625rem 1rem 0.625rem 0.625rem; border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(-0.5rem);
  transition: opacity .45s var(--ease), transform .55s var(--ease), background .25s;
  transition-delay: calc(var(--i) * 55ms);
}
.lyr__row:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.lyr.is-in .lyr__row { opacity: 1; transform: none; }
/* the active layer: a tinted band with an accent edge, as in Photoshop */
.lyr__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--pink); scale: 1 0; transition: scale .3s var(--ease); }
.lyr__row:hover { background: var(--sel); transition-delay: 0s; }
.lyr__row:hover::before { scale: 1 1; }
.lyr__eye { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 0.375rem; background: none; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.lyr__eye:hover { color: var(--text); background: var(--panel-2); }
.lyr__eye svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lyr__eye-shut { display: none; }
.lyr__eye[aria-pressed="false"] .lyr__eye-open { display: none; }
.lyr__eye[aria-pressed="false"] .lyr__eye-shut { display: inline; }
.lyr__thumb {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.375rem; border: 1px solid var(--line);
  background: repeating-conic-gradient(var(--panel-2) 0 25%, color-mix(in srgb, var(--panel-2) 55%, var(--panel)) 0 50%) 0 0 / 0.75rem 0.75rem;
  transition: border-color .25s;
}
.lyr__row:hover .lyr__thumb { border-color: var(--pink); }
.lyr__thumb img { width: 2.125rem; height: 2.125rem; object-fit: contain; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.lyr__row:hover .lyr__thumb img { transform: scale(1.12) rotate(-4deg); }
.lyr__text { display: grid; gap: 0.125rem; min-width: 0; }
.lyr__text b { font: 700 0.9375rem/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyr__text small { font: 0.6875rem var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyr__lvl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.625rem; }
.lyr__track { position: relative; height: 0.25rem; border-radius: 1rem; background: var(--line-soft); }
.lyr__track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--pink) 50%, transparent), var(--pink)); transition: width 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + 250ms); }
/* the slider's knob rides the end of the fill */
.lyr__track i::after { content: ""; position: absolute; right: -0.3125rem; top: 50%; width: 0.625rem; height: 0.625rem; translate: 0 -50%; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2px var(--panel); opacity: 0; transition: opacity .3s; }
.lyr.is-in .lyr__track i { width: calc(var(--lv) * 100%); }
.lyr__row:hover .lyr__track i::after { opacity: 1; }
.lyr__lvl em { font: 600 0.75rem var(--font-mono); font-style: normal; color: var(--muted); min-width: 2.25rem; text-align: right; font-variant-numeric: tabular-nums; transition: color .25s; }
.lyr__row:hover .lyr__lvl em { color: var(--pink-text); }
/* a hidden layer: everything but the eye fades back */
.lyr__row.is-hidden .lyr__thumb, .lyr__row.is-hidden .lyr__text, .lyr__row.is-hidden .lyr__lvl { opacity: .3; filter: grayscale(1); }
.lyr__row .lyr__thumb, .lyr__row .lyr__text, .lyr__row .lyr__lvl { transition: opacity .3s, filter .3s; }
.lyr__foot { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; background: var(--panel-2); font: 0.6875rem var(--font-mono); color: var(--muted); }
.lyr__tools { display: flex; gap: 0.25rem; }
.lyr__tools i { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; font-style: normal; border-radius: 0.3125rem; color: var(--muted); }
:root[data-theme="light"] .lyr { box-shadow: var(--sh-md); }
@media (prefers-reduced-motion: reduce) { .lyr__row, .lyr__track i { transition: none !important; } }
@media (max-width: 860px) {
  .lyr__list { grid-template-columns: 1fr; }
  .lyr__row:nth-child(odd) { border-right: 0; }
  .lyr__opts span:last-child { display: none; }
}
@media (max-width: 480px) {
  .lyr__row { grid-template-columns: 1.75rem 2.5rem minmax(0, 1fr) 4.75rem; gap: 0.5rem; padding-right: 0.75rem; }
  .lyr__thumb { width: 2.5rem; height: 2.5rem; }
  .lyr__thumb img { width: 1.75rem; height: 1.75rem; }
  .lyr__lvl { grid-template-columns: 1fr; gap: 0.25rem; }
  .lyr__lvl em { text-align: left; }
  .lyr__tabs i, .lyr__file { display: none; }
}

/* =================================================================
   NOTES: an editorial spread (lead story + two stacked)
   ================================================================= */
.notes__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 1.25rem; }
.notes__grid.is-solo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.nt { min-width: 0; opacity: 0; transform: translateY(1.25rem) rotate(calc((var(--i) - 1) * 0.6deg)); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 120ms); }
.notes__grid.is-in .nt { opacity: 1; transform: none; }
.nt--lead { grid-row: 1 / span 2; }
.nt__link {
  position: relative; display: grid; height: 100%; color: inherit; text-decoration: none; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-soft); border-radius: 1.125rem; background: var(--panel);
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
}
.nt:not(.nt--lead) .nt__link { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
.nt__link:hover { border-color: rgba(var(--pink-rgb), .5); transform: translateY(-0.25rem); box-shadow: 0 1.75rem 3rem -2rem rgba(var(--pink-rgb), .45); }
.nt__media { position: relative; display: block; overflow: hidden; background: var(--panel-2); }
.nt--lead .nt__media { aspect-ratio: 16 / 9; }
.nt:not(.nt--lead) .nt__media { height: 100%; min-height: 10rem; }
.nt__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.nt__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); pointer-events: none; }
.nt__link:hover .nt__media img { transform: scale(1.06) rotate(-0.6deg); filter: saturate(1.05); }
.nt__body { display: flex; flex-direction: column; gap: 0.625rem; padding: 1.25rem 1.375rem 1.25rem; min-width: 0; }
.nt--lead .nt__body { padding: 1.5rem 1.75rem 1.5rem; gap: 0.75rem; }
.nt__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.nt__no { font: 700 0.6875rem var(--font-mono); color: var(--pink-text); margin-right: 0.375rem; }
.nt__tag { padding: 0.1875rem 0.5rem; border: 1px solid var(--line); border-radius: 2rem; font: 0.625rem var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.nt__title { margin: 0; font: 700 clamp(1.0625rem, 1.5vw, 1.25rem)/1.3 var(--font-display); }
.nt--lead .nt__title { font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.15; }
/* the title underlines itself on hover */
.nt__title span { background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 2px; }
.nt__link:hover .nt__title span { background-size: 100% 2px; }
.nt__excerpt { margin: 0; color: var(--muted); line-height: 1.65; max-width: 56ch; }
.nt__foot { margin-top: auto; padding-top: 0.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: 0.6875rem var(--font-mono); color: var(--muted); }
.nt__go { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line); color: var(--text); transition: background .35s, border-color .35s, color .35s, rotate .5s var(--ease); }
.nt__go svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nt__link:hover .nt__go { background: var(--pink); border-color: var(--pink); color: var(--on-pink); rotate: 45deg; }
.notes__grid .work__fallback { grid-column: 1 / -1; }
:root[data-theme="light"] .nt__link { background: #fff; box-shadow: var(--sh-sm); }
@media (prefers-reduced-motion: reduce) { .nt { transition: none; opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .notes__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .nt--lead { grid-row: auto; }
}
@media (max-width: 560px) { .nt:not(.nt--lead) .nt__link { grid-template-columns: minmax(0, 1fr); } .nt:not(.nt--lead) .nt__media { aspect-ratio: 16 / 9; min-height: 0; } }

/* =================================================================
   FAQ: numbered questions, answers that glide open
   ================================================================= */
.faq__grid .work__head { isolation: isolate; }
/* a big outlined question mark behind the sticky heading */
.faq__grid .work__head::before {
  content: "?"; position: absolute; z-index: -1; left: -0.5rem; top: -3.5rem;
  font: 800 clamp(9rem, 16vw, 15rem)/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--line-soft);
  pointer-events: none;
}
.faq__list { display: grid; gap: 0.625rem; }
.qa { position: relative; border: 1px solid var(--line-soft); border-radius: 1rem; background: color-mix(in srgb, var(--panel) 60%, transparent); overflow: hidden; isolation: isolate; transition: border-color .4s, background .4s, box-shadow .4s; }
.qa::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pink); scale: 1 0; transform-origin: top; transition: scale .5s var(--ease); }
.qa.is-open { border-color: rgba(var(--pink-rgb), .35); background: var(--panel); box-shadow: 0 1.5rem 3rem -2.25rem rgba(var(--pink-rgb), .55); }
.qa.is-open::before { scale: 1 1; }
.qa > summary { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 1.125rem 1.25rem 1.125rem 1rem; cursor: pointer; list-style: none; }
.qa > summary::-webkit-details-marker { display: none; }
.qa__no { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); border-radius: 0.625rem; font: 600 0.75rem var(--font-mono); letter-spacing: .02em; color: var(--muted); background: var(--panel-2); transition: color .35s, background .35s, border-color .35s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.qa > summary:hover .qa__no { border-color: rgba(var(--pink-rgb), .6); color: var(--pink-text); transform: rotate(-6deg); }
.qa.is-open .qa__no { color: var(--on-pink); background: var(--pink); border-color: var(--pink); transform: none; }
.qa__q { font: 700 clamp(1rem, 1.35vw, 1.1875rem)/1.35 var(--font-display); transition: color .3s; }
.qa > summary:hover .qa__q { color: var(--pink-text); }
.qa__icon { position: relative; flex: none; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; transition: background .35s, border-color .35s, rotate .5s var(--ease), color .35s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.75rem; height: 1.5px; translate: -50% -50%; background: currentColor; border-radius: 1px; transition: rotate .45s var(--ease), opacity .3s; }
.qa__icon::after { rotate: 90deg; }
.qa.is-open .qa__icon { rotate: 180deg; background: var(--pink); border-color: var(--pink); color: var(--on-pink); }
.qa.is-open .qa__icon::after { rotate: 0deg; opacity: 0; }
.qa__a { overflow: hidden; }
.qa__inner { padding: 0 3.5rem 1.375rem 4.25rem; color: color-mix(in srgb, var(--text) 80%, var(--muted)); line-height: 1.75; max-width: 68ch; }
.qa__inner p + p { margin-top: 0.75rem; }
.qa__inner em { font-style: normal; color: var(--text); }
.qa.is-open .qa__inner > * { animation: qa-in .6s var(--ease) both .08s; }
@keyframes qa-in { from { opacity: 0; transform: translateY(0.5rem); filter: blur(3px); } }
:root[data-theme="light"] .qa { background: rgba(255,255,255,.6); }
:root[data-theme="light"] .qa.is-open { background: #fff; }
@media (prefers-reduced-motion: reduce) { .qa.is-open .qa__inner > * { animation: none; } }
@media (max-width: 640px) {
  .qa > summary { grid-template-columns: 2rem minmax(0, 1fr) auto; padding: 1rem 0.875rem; }
  .qa__no { width: 2rem; height: 2rem; font-size: 0.6875rem; }
  .qa__inner { padding: 0 1rem 1.125rem 3.625rem; }
}

/* =================================================================
   CERTIFICATE VIEWER (honours.js): names with an original attached open it
   ================================================================= */
.seal__name--file, .disc__cert--file {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit;
  display: inline-flex; align-items: baseline; gap: 0.375rem;
}
.seal__name--file { font: 700 0.9375rem/1.3 var(--font-display); justify-content: center; }
/* the whole seal opens it */
.seal { position: relative; }
.seal__name--file::after { content: ""; position: absolute; inset: 0; border-radius: 1rem; }
.seal__name--file:focus-visible::after { outline: 2px solid var(--pink); outline-offset: 4px; }
.cert-doc { display: inline-grid; place-items: center; flex: none; width: 1.125rem; height: 1.125rem; border-radius: 0.3125rem; background: rgba(var(--pink-rgb), .14); color: var(--pink-text); translate: 0 0.125rem; transition: background .3s, color .3s; }
.cert-doc svg { width: 0.75rem; height: 0.75rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seal__name--file:hover, .disc__cert--file:hover { color: var(--pink-text); }
.seal:hover .cert-doc, .disc__cert--file:hover .cert-doc { background: var(--pink); color: var(--on-pink); }

.cview {
  width: min(64rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; margin: auto;
  border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel); color: var(--text);
  box-shadow: 0 3rem 6rem -2rem rgba(0,0,0,.8); overflow: hidden; display: none; flex-direction: column;
}
.cview[open] { display: flex; animation: cview-in .5s var(--ease); }
@keyframes cview-in { from { opacity: 0; transform: translateY(1.25rem) scale(.98); } }
.cview::backdrop { background: rgba(8, 8, 10, .72); backdrop-filter: blur(6px); animation: cview-fade .4s ease; }
@keyframes cview-fade { from { opacity: 0; } }
.cview__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.75rem 0.75rem 1.25rem; border-bottom: 1px solid var(--line-soft); background: var(--panel-2); }
.cview__doc { font: 0.75rem var(--font-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cview__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.cview__btn { padding: 0.4375rem 0.75rem; border: 1px solid var(--line); border-radius: 2rem; font: 600 0.75rem var(--font-mono); color: var(--text); text-decoration: none; transition: border-color .3s, color .3s; }
.cview__btn:hover { border-color: var(--pink); color: var(--pink-text); }
.cview__x { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); border-radius: 0.625rem; background: none; color: var(--text); cursor: pointer; transition: border-color .3s, background .3s; }
.cview__x:hover { border-color: var(--pink); }
.cview__x svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cview__head { padding: 1.25rem 1.5rem 0.75rem; }
.cview__meta { margin: 0 0 0.25rem; font: 0.6875rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pink-text); }
.cview__title { margin: 0; font: 700 clamp(1.25rem, 2.4vw, 1.75rem)/1.2 var(--font-display); }
.cview__stage { position: relative; flex: 1 1 auto; min-height: 0; margin: 0.75rem 1.5rem 1.5rem; border-radius: 0.875rem; overflow: auto; background: repeating-conic-gradient(var(--panel-2) 0 25%, transparent 0 50%) 0 0 / 1.25rem 1.25rem; box-shadow: inset 0 0 0 1px var(--line-soft); display: grid; place-items: center; }
.cview__stage img { display: block; max-width: 100%; max-height: calc(100dvh - 15rem); object-fit: contain; box-shadow: 0 1rem 2.5rem -1rem rgba(0,0,0,.6); animation: cview-img .6s var(--ease) .1s both; }
@keyframes cview-img { from { opacity: 0; transform: scale(.97); } }
.cview.is-zoomed .cview__stage { place-items: start; }
.cview.is-zoomed .cview__stage img { max-width: none; max-height: none; width: 180%; }
.cview__stage.is-pdf { display: block; flex: none; height: min(calc(100dvh - 15rem), 52rem); background: var(--panel-2); }
.cview__stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.cview__pdfcard { display: grid; justify-items: center; gap: 0.5rem; margin: 2.5rem auto; padding: 2rem 2.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); color: var(--text); text-decoration: none; text-align: center; }
.cview__pdfcard .cert-doc { width: 3rem; height: 3rem; border-radius: 0.75rem; translate: none; }
.cview__pdfcard .cert-doc svg { width: 1.5rem; height: 1.5rem; }
.cview__pdfcard b { font: 700 1.0625rem var(--font-display); }
.cview__pdfcard small { font: 0.6875rem var(--font-mono); color: var(--muted); }
@media (max-width: 720px) {
  .cview__stage.is-pdf { height: auto; }
  .cview__btn { padding: 0.375rem 0.625rem; font-size: 0.6875rem; }
  .cview__doc { display: none; }
  .cview__bar { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .cview[open], .cview::backdrop, .cview__stage img { animation: none; } }

/* ---- About: the name, written on with a glowing pen tip (signature.js) ---- */
.about__sign { margin: 1.75rem 0 2.25rem; }
.sig-wrap { display: block; width: 100%; max-width: 30rem; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 0.5rem; color: var(--text); }
.sig-wrap:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }
.sig { display: block; width: 100%; height: auto; overflow: visible; }
.sig path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sig__ink { stroke: currentColor; }
/* the pen tip: a small, crisp point of light in the accent colour */
.sig__tip { stroke: color-mix(in srgb, #fff 70%, var(--pink)); filter: drop-shadow(0 0 3px var(--pink)) drop-shadow(0 0 7px rgba(var(--pink-rgb), .55)); }
:root[data-theme="light"] .sig__tip { stroke: var(--pink); filter: drop-shadow(0 0 3px rgba(var(--pink-rgb), .5)); }


/* draft (unverified) results: flagged in the admin preview / locally; never rendered on the live site */
.case__draft { margin: 0 0 1rem; padding: 0.5rem 0.75rem; border: 1px dashed rgba(var(--pink-rgb), .6); border-radius: 0.5rem; font: 0.75rem var(--font-mono); color: var(--pink-text); background: rgba(var(--pink-rgb), .06); }
