/* Bamini (Ajay's own Tamil font) for the Tamil greeting. It is a legacy, non-Unicode font: Tamil letters sit
   on Latin keys, so the greeting is written in its keyboard code ("tzf;fk;" = வணக்கம்). Decorative text only. */
@font-face { font-family: "Bamini"; src: url("/assets/fonts/bamini-tamil51.ttf") format("truetype"); font-display: swap; }
.is-bamini { font-family: "Bamini", sans-serif !important; font-weight: 400 !important; letter-spacing: 0 !important; }
/* =====================================================================
   Ajay Karthik — site styles
   ---------------------------------------------------------------------
   CUSTOMISE HERE. Colours, fonts, spacing and corner radii used across
   every page come from these tokens. Change one value and the whole
   site follows.
   ===================================================================== */
:root {
  /* Signature gradient (headlines, primary button) */
  --grad-1: #b16cea;
  --grad-2: #ff5e69;
  --grad-3: #ff8a56;
  --grad-4: #ffa84b;
  --gradient: linear-gradient(100deg, var(--grad-1), var(--grad-2) 45%, var(--grad-3) 75%, var(--grad-4));

  /* Surfaces & text */
  --black: #000;
  --ink: #0d0d0d;
  --ink-soft: #5c5c5c;
  --ink-faint: #8a8a8a;
  --white: #fff;
  --paper: #fff;
  --paper-tint: #f7f7f5;
  --mint: #f2fce2;          /* text selection highlight */
  --line: rgba(0, 0, 0, .1);
  --line-dark: rgba(255, 255, 255, .12);
  --dot: rgba(255, 255, 255, .14);   /* hero dot grid */

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font); /* titles; body and UI stay in Plus Jakarta */
  --font-tamil: "Kavivanar", var(--font);
  --fs-hero: clamp(2rem, 5.2vw, 4.25rem);
  --fs-h1: clamp(2.4rem, 5vw, 4rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-h3: 1.5rem;
  --fs-body: 1.0625rem;

  /* Layout */
  --container: 80rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 6rem);
  --radius-lg: 20px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 0px;   /* header scrolls away, so nothing to offset */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
.years { font-family: var(--font-display); }
p { margin: 0 0 1em; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--grad-2); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[lang="ta"] { font-family: var(--font-tamil); }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; top: 8px; left: 8px; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.text-link { color: inherit; text-decoration: underline; text-decoration-color: var(--grad-2); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--grad-2); }

/* ---------- Buttons ---------- */
/* Buttons: one family. Sentence case, 56px tall, 12px corners; a drawn icon that points
   where the button goes and nudges that way on hover */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 56px; padding: 0 1.6rem 0 1.75rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  background-color: var(--black); color: var(--white); font: 600 1rem/1 var(--font); letter-spacing: -.005em; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background-color .25s, border-color .25s, box-shadow .3s, background-position .7s cubic-bezier(.16, 1, .3, 1), transform .15s;
}
.button:hover { border-color: rgba(255, 255, 255, .34); background-color: #161616; }
.button:active { transform: scale(.98); }
.button__icon { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.button:hover .button__icon { transform: translateX(3px); }
.button:hover .button__icon--down { transform: translateY(3px); }
.button:hover .button__icon--out { transform: translate(2px, -2px); }
/* Primary: the brand gradient, which sweeps from purple-coral to coral-amber on hover */
.button--gradient {
  border-color: transparent; color: #1a0b0e;
  background-image: linear-gradient(100deg, var(--grad-1) 0%, var(--grad-2) 25%, var(--grad-4) 50%, var(--grad-2) 75%, var(--grad-1) 100%);
  background-size: 200% 100%; background-position: 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -14px rgba(255, 94, 105, .7);
}
.button--gradient:hover { border-color: transparent; background-position: 100% 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 32px -14px rgba(255, 94, 105, .85); }
.button--dark { background-color: var(--black); }
/* Secondary: grey glass with a soft light edge and a glow rising from the bottom
   (the hero "Resume" look). On light sections it sits on a solid grey so the text stays readable. */
.button--secondary, .button--dark {
  border-color: rgba(255, 255, 255, .55); background-color: rgba(72, 72, 73, .5);
  background-image: radial-gradient(85% 120% at 50% 120%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.button--secondary:hover, .button--dark:hover { border-color: rgba(255, 255, 255, .8); background-color: rgba(88, 88, 90, .6); }
.section:not(.section--dark) .button--dark { background-color: #3d3d3f; border-color: rgba(255, 255, 255, .35); }
.section:not(.section--dark) .button--dark:hover { background-color: #4a4a4d; }
.button--wide { display: flex; width: 100%; margin-top: 3rem; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--black); color: var(--white); }
.site-header .container { width: auto; padding: 12px 32px; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-logo { transition: opacity .2s; }
.site-logo:hover { opacity: .8; }
.site-logo img { width: 200px; height: auto; }
.site-nav { display: flex; gap: 40px; }
.site-nav a { padding: 9px 0; font-size: 12px; font-weight: 500; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; opacity: .6; transition: opacity .2s; }
.site-nav a:hover { opacity: .9; }
.site-nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-toggle { display: none; padding: .5rem; border: 0; background: none; color: inherit; cursor: pointer; }

/* Floating toolbar: dark frosted glass (readable over the black hero and the light sections),
   the current page picked out in Figma's selection blue */
/* The floating glass toolbar is the site's navigation, always visible. The old header stays only as an
   empty dark band of the same height, so page layouts (the hero fills the rest of the screen) don't shift. */
.float-nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding-inline: 12px; pointer-events: none; }
.site-header .container > * { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .js .float-nav__bar { animation: drift-down .8s var(--ease-out) .1s both; } }
.float-nav__bar { pointer-events: auto; display: flex; align-items: center; gap: .9rem; max-width: 100%; padding: 6px 6px 6px 14px; border-radius: 16px; box-sizing: border-box;
  background: rgba(22, 22, 24, .62); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .25), 0 12px 32px -12px rgba(0, 0, 0, .5); }
/* wide at the top of the page (logo left, links right), compact once you scroll */
@media (min-width: 768px) {
  .float-nav__bar { width: min(var(--container), 100%); transition: width .55s cubic-bezier(.16, 1, .3, 1), background-color .4s; }
  .float-nav__bar > * { flex: none; }
  .float-nav__divider { margin-left: auto; opacity: 0; transition: opacity .3s; }
  .float-nav.is-compact .float-nav__bar { width: var(--compact-w, auto); }
  .float-nav.is-compact .float-nav__divider { opacity: 1; }
}
/* at the very top the bar is just the logo and links on the page; the glass fades in once you scroll */
.js .float-nav:not(.is-compact) .float-nav__bar { background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.float-nav__bar { transition: background-color .4s, box-shadow .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s; }
@media (min-width: 768px) { .float-nav__bar { transition: width .55s cubic-bezier(.16, 1, .3, 1), background-color .4s, box-shadow .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s; } }
@media (min-width: 768px) and (prefers-reduced-motion: reduce) { .float-nav__bar { transition: none; } }
.float-nav__logo { display: block; transition: opacity .2s; }
.float-nav__logo:hover { opacity: .8; }
.float-nav__logo img { display: block; width: 112px; height: auto; }
.float-nav__divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .14); }
.float-nav__links { display: flex; gap: 2px; }
.float-nav__links a { padding: .55rem .9rem; border-radius: 10px; color: rgba(255, 255, 255, .72); font-size: .88rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s; }
.float-nav__links a:hover { background: rgba(255, 255, 255, .09); color: var(--white); }
.float-nav__links a[aria-current="page"] { background: #0d99ff; color: var(--white); }
.float-nav__links a:focus-visible { outline-offset: 2px; }
@media (max-width: 600px) {
  .float-nav { top: 10px; }
  /* on phones the logo takes the place of "Home" (it links home too), so all four fit in one row */
  .float-nav__divider, .float-nav__links a[href="/"] { display: none; }
  .float-nav__bar { gap: .35rem; padding: 5px 5px 5px 10px; }
  .float-nav__logo img { width: 84px; }
  .float-nav__links a { padding: .5rem .65rem; font-size: .8rem; }
}

/* ---------- Hero (home) — see hero.css ---------- */
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.hero__actions--center { justify-content: center; }


/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }
.section--tint { background: var(--paper-tint); }
/* A white sheet that rises over the black band above it, so dark → light is one movement */
/* Every change between dark and light is a sheet: the next section slides over the last with rounded
   top corners and a soft glow, so the page reads as stacked layers instead of hard stripes.
   (Same z-index throughout: a later sheet paints over the one before it.) */
.section--sheet { position: relative; z-index: 1; margin-top: -2.5rem; border-radius: 2.5rem 2.5rem 0 0; border-bottom: 0; background: var(--white); box-shadow: 0 -24px 60px rgba(255, 94, 105, .12); }
.section--dark.section--sheet { background: var(--black); box-shadow: 0 -20px 60px rgba(20, 10, 40, .14); }
.contact.section--sheet { background-color: #0d0d0d; box-shadow: 0 -20px 60px rgba(20, 10, 40, .14); }
@media (max-width: 767px) { .section--sheet { margin-top: -1.5rem; border-radius: 1.5rem 1.5rem 0 0; } }

/* Work section: a clean off-white, with one very faint wash behind the stack that takes the
   colour of the project in view (site.js sets --amb / --amb-2) */
@property --amb { syntax: "<color>"; inherits: true; initial-value: #b16cea; }
@property --amb-2 { syntax: "<color>"; inherits: true; initial-value: #ff8a56; }
.work-canvas { --amb: #b16cea; --amb-2: #ff8a56;
  background: #fafafa;
  transition: --amb 1s var(--ease-out, ease), --amb-2 1s var(--ease-out, ease); }
.work-canvas > .container { position: relative; z-index: 1; }
.work-canvas__light { position: sticky; top: 0; z-index: 0; height: 100vh; margin-bottom: -100vh; pointer-events: none; overflow: hidden; border-radius: inherit;
  background: radial-gradient(70% 60% at 50% 55%, color-mix(in srgb, var(--amb) 9%, transparent), transparent 75%); }
.section--dark { background: var(--black); color: var(--white); border-color: var(--line-dark); }
/* Section headings are frames on the Figma canvas: the frame's name above (as in the hero's
   Layers panel), and the heading "selected" in the hero's blue box with corner handles */
.section-head { margin-bottom: clamp(2.75rem, 5vw, 4rem); }
/* Split: frame label + selected heading on the left, the description in a right column aligned
   to the heading's foot, a fine rule under both */
.section-head:has(.section-head__tagline) { display: grid; grid-template-columns: minmax(0, max-content) minmax(12rem, 22rem); justify-content: space-between; column-gap: clamp(2rem, 6vw, 6rem);
  align-items: end; padding-bottom: clamp(1.75rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.section-head:has(.section-head__tagline) > .frame-label { grid-column: 1; }
.section-head:has(.section-head__tagline) > h2 { grid-column: 1; justify-self: start; }
.section-head:has(.section-head__tagline) > .section-head__tagline { grid-column: 2; grid-row: 2; margin: 0; padding-bottom: .5rem; }
@media (max-width: 767px) {
  .section-head:has(.section-head__tagline) { display: block; }
  .section-head:has(.section-head__tagline) > .section-head__tagline { margin-top: 1.1rem; padding: 0; }
}
.section-head--center { text-align: center; }
/* Like a Figma frame name: on the frame's top-left corner, blue while the frame is selected */
.frame-label { display: flex; align-items: center; gap: .3rem; margin: 0 0 .45rem; color: #0d99ff; font-size: .85rem; font-weight: 500; line-height: 1.2; transition: color .4s; }
.frame-label span { color: inherit; opacity: .8; }
.section-head h2 { position: relative; display: inline-block; max-width: 100%; padding: .06em .3em .1em;
  font-size: clamp(2.2rem, 4.3vw, 3.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; }
.section-head h2 .sel { position: absolute; inset: 0; border: 1.5px solid #0d99ff; pointer-events: none; }
.section-head h2 .sel i { position: absolute; width: 8px; height: 8px; border: 1.5px solid #0d99ff; background: #fff; }
.section-head h2 .sel i:nth-child(1) { top: -4.5px; left: -4.5px; }
.section-head h2 .sel i:nth-child(2) { top: -4.5px; right: -4.5px; }
.section-head h2 .sel i:nth-child(3) { bottom: -4.5px; left: -4.5px; }
.section-head h2 .sel i:nth-child(4) { bottom: -4.5px; right: -4.5px; }
/* "Designed, Built & Shipped 🚀": the three verbs rise in turn, then the rocket lands beside them.
   Hovering the heading launches it off and back. */
.launch__word, .launch__rocket { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .launch__word { transition: opacity .7s var(--ease-out, ease), transform .8s var(--ease-out, ease); }
  .launch__word:nth-child(2) { transition-delay: .18s; }
  .launch__word:nth-child(3) { transition-delay: .36s; }
  .motion-ready .launch:not(.is-visible):not(.is-revealed) .launch__word { opacity: 0; transform: translateY(.4em); }
  .motion-ready .launch:not(.is-visible):not(.is-revealed) .launch__rocket { opacity: 0; transform: translate(-.9em, .9em) scale(.5) rotate(-10deg); }
  .launch.is-visible .launch__rocket { animation: rocket-land 1s cubic-bezier(.2, .9, .3, 1.15) .7s both; }
  .launch:hover .launch__rocket { animation: rocket-launch 1.3s cubic-bezier(.6, 0, .3, 1) both; }
}
@keyframes rocket-land { from { opacity: 0; transform: translate(-.9em, .9em) scale(.5) rotate(-10deg); } 70% { opacity: 1; transform: translate(.06em, -.06em) scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes rocket-launch {
  0% { transform: none; opacity: 1; }
  12% { transform: translate(-.06em, .06em) scale(.95); }
  42% { transform: translate(1.6em, -1.6em) scale(.7); opacity: 0; }
  43% { transform: translate(-1.2em, 1.2em) scale(.6); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* Column headings (Education, Work experience): the same frame, one size down */
.section-head--col { margin-bottom: 1.5rem; }
.section-head--col h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
.section-head__kicker { margin-bottom: .75rem; color: var(--ink-soft); font-weight: 600; }
.section-head__tagline { max-width: 52ch; margin-top: 1.1rem; color: var(--ink-soft); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; }
/* The selection draws itself round the heading once it has risen in, then the handles pop */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .section-head h2:not(.is-visible):not(.is-revealed) .sel { clip-path: inset(0 100% 100% 0); }
  .motion-ready .section-head:has(h2:not(.is-visible):not(.is-revealed)) .frame-label { color: var(--ink-faint); }
  .motion-ready .section-head h2:not(.is-visible):not(.is-revealed) .sel i { transform: scale(0); }
  .section-head h2 .sel { clip-path: inset(-8px); transition: clip-path .7s cubic-bezier(.65, 0, .35, 1) .45s; }
  .section-head h2 .sel i { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1) 1.05s; }
  .section-head h2 .sel i:nth-child(2) { transition-delay: 1.1s; }
  .section-head h2 .sel i:nth-child(3) { transition-delay: 1.15s; }
  .section-head h2 .sel i:nth-child(4) { transition-delay: 1.2s; }
}

/* ---------- Project cards ---------- */
/* Group heading: title — hairline — project count */
/* Group heading as a Figma section tag: section icon, name, count badge */
.group-head { display: flex; margin: 4.5rem 0 1.25rem; }
.group-head:first-of-type { margin-top: 0; }
.group-head--wide { --stack-w: min(90vw, 110rem); width: var(--stack-w); margin-inline: calc((100% - var(--stack-w)) / 2); } /* lines up with the case stack */
.group-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .65rem .55rem .85rem; border-radius: 12px;
  background: var(--white); box-shadow: 0 1px 2px rgba(20, 10, 40, .06), 0 6px 18px -10px rgba(20, 10, 40, .18);
  color: var(--ink); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.group-chip svg { color: var(--ink-faint); }
.group-chip__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .45rem; border-radius: 8px;
  background: #f0eff4; color: var(--ink-soft); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
/* ---------- Home: product case studies as a stack of case files ---------- */
/* The stack breaks out of the content column to 90% of the screen (capped), centred */
.case-stack { --stack-w: min(90vw, 110rem); display: grid; gap: 7vh; width: var(--stack-w); margin-inline: calc((100% - var(--stack-w)) / 2); }
/* Room after the last card so it gets its pinned moment (sticky cards can't use padding) */
.case-stack::after { content: ""; height: 24vh; margin-top: -7vh; }
.case-more-link { display: flex; justify-content: center; margin: 1.25rem 0 0; }
.case-card { --i: 0; --cover: 0; --depth: 0; --accent: var(--grad-2); --accent-2: var(--grad-3); position: sticky; isolation: isolate; top: calc(5rem + var(--i) * 12px); display: block; /* clears the floating nav */ color: var(--ink); text-decoration: none; border-radius: 28px; }
.case-card__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(600px, calc(100svh - 5rem - 7 * 12px - 1.5rem)); /* the last card, pinned lowest, still fits */
  overflow: clip; border-radius: 28px;
  /* Each card takes a light tint from its own project image (cardTint), with the case header's grid drawn faintly over it */
  background: linear-gradient(rgba(20, 10, 40, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(20, 10, 40, .045) 1px, transparent 1px) 0 0 / 56px 56px, var(--tint, #eef0f5);
  box-shadow: 0 1px 2px rgba(20, 10, 40, .04); transform-origin: 50% 0;
}
/* The soft drop shadow lives on its own layer so a covered card's shadow can fade away
   (otherwise the shadows of every card behind pile up under the stack in uneven steps) */
.case-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 28px; pointer-events: none;
  box-shadow: 0 30px 60px -40px rgba(20, 10, 40, .25); }
/* Covered cards recede by how deep they sit in the stack (site.js sets --depth: 0 on top, 1, 2, ...):
   each a little narrower than the one above, so the edges step in like a fanned deck */
.case-card__inner::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #1a1424; opacity: 0; pointer-events: none; }
.case-card__info { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; padding: clamp(1.75rem, 3.5vw, 3rem); }
/* Pill top-left, headline centred in the space, specs + button anchored at the bottom */
.case-card__pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.case-card__pill { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-weight: 500; padding: .6rem 1.1rem .6rem .9rem; border-radius: 11px;
  background: rgba(255, 255, 255, .75); box-shadow: 0 1px 2px rgba(40, 20, 70, .08); color: var(--ink); font-size: .8rem; line-height: 1.5; }
.case-card__headline { margin-block: auto; }
.case-card__tagline { max-width: 15ch; margin: 0; padding-bottom: .06em; font-family: var(--font-display); font-size: clamp(1.9rem, 3.3vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
/* The project's own colour, deep to vivid, run across each line on its own */
.case-card__tagline span { background: linear-gradient(95deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.case-card__title { margin-top: .85rem; font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.case-card__blurb { max-width: 38ch; margin: .6rem 0 0; color: rgba(26, 20, 36, .68); font-size: 1rem; line-height: 1.5; }
/* results: a stats row above the role/tools divider; big number + trend arrow in the project's colour */
.case-card__results { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.case-card__results li { display: grid; gap: .3rem; }
.case-card__results b { color: var(--accent, var(--ink)); font-family: var(--font-display); font-size: clamp(1.6rem, 2.3vw, 2.2rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.case-card__results li > span { color: rgba(26, 20, 36, .6); font-size: .85rem; font-weight: 500; }
.trend { display: inline-flex; align-items: center; gap: .25em; }
.trend svg { width: .62em; height: .62em; flex: none; padding: .12em; box-sizing: content-box; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); }
.trend--down svg { transform: rotate(180deg); }
.case-card__tools { display: flex; flex-wrap: wrap; gap: .4rem; margin: .1rem 0 0; padding: 0; list-style: none; }
.case-card__tools li { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .72); }
.case-card__tools img { width: 20px; height: 20px; object-fit: contain; }
.case-card__tools span { padding: 0 .6rem; font-size: .8rem; }
.case-card__foot { display: grid; gap: 1.75rem; width: 100%; }
.case-card__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(40, 20, 70, .12); }
.case-card__specs dt { color: rgba(26, 20, 36, .55); font-size: .8rem; font-weight: 500; letter-spacing: .01em; }
.case-card__specs dd { margin: .35rem 0 0; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.45; letter-spacing: -.005em; }
.case-card__cta { display: inline-flex; justify-self: start; align-items: center; gap: .55rem; min-height: 48px; padding: 0 1.25rem 0 1.4rem;
  border-radius: 12px; background: var(--accent); color: var(--white); font-weight: 600; box-shadow: 0 10px 22px -12px var(--accent); transition: filter .25s, box-shadow .25s; }
.case-card:hover .case-card__cta { filter: brightness(1.08); box-shadow: 0 14px 28px -12px var(--accent); }
.case-card:hover .case-card__cta .button__icon { transform: translateX(3px); }

/* The image, inset in the card's tint like an artboard on a canvas */
.case-card__media { position: relative; padding: clamp(.75rem, 1.2vw, 1rem); padding-left: 0; }
.case-card__frame { --rx: 0deg; --ry: 0deg; position: relative; height: 100%; overflow: clip; border-radius: 20px; background: rgba(255, 255, 255, .5); clip-path: inset(0 round 20px); /* clip, not hidden: hidden would make it a scroll container and freeze the scroll-linked drift */
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
/* A soft highlight that follows the pointer across the image, like light on a glossy print */
.case-card__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(40% 50% at var(--sx, 50%) var(--sy, 30%), rgba(255, 255, 255, .28), transparent 70%); mix-blend-mode: soft-light; }
.case-card.is-pointing .case-card__frame::after { opacity: 1; }
/* Taller than the frame so it can drift (parallax, site.js sets --py) without showing an edge */
.case-card__frame img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; /* 10% spare above and below for the drift */
  transition: scale 1s var(--ease-out, ease); }
.case-card:hover .case-card__frame img { scale: 1.04; }

/* A Figma-style multiplayer cursor that follows the pointer over the image */
.case-card__cursor { position: absolute; left: 0; top: 0; z-index: 3; display: flex; align-items: flex-start; gap: 2px; pointer-events: none;
  opacity: 0; translate: var(--cx, 50%) var(--cy, 50%); scale: .6; transform-origin: 0 0; transition: opacity .2s, scale .25s var(--ease-out, ease); }
.case-card__cursor { color: var(--accent); }
.case-card__cursor b { margin-top: 16px; padding: .4rem .75rem; border-radius: 3px 14px 14px; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 16px -6px var(--accent); }
.case-card.is-pointing .case-card__cursor { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) { .case-card.is-pointing .case-card__media { cursor: none; } }

.case-card:focus-visible { outline-offset: 6px; border-radius: 28px; }

/* Arrival, once per card: the image opens from a smaller rounded frame and settles from a zoom,
   then the tagline rises out of a mask, followed by the name, specs and button */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .case-card:not(.is-in) .case-card__frame { clip-path: inset(6% 6% 6% 6% round 32px); }
  .motion-ready .case-card:not(.is-in) .case-card__frame img { scale: 1.12; }
  .motion-ready .case-card:not(.is-in) :is(.case-card__pill, .case-card__title, .case-card__blurb, .case-card__results, .case-card__specs > div, .case-card__cta) { opacity: 0; transform: translateY(18px); }
  .motion-ready .case-card:not(.is-in) .case-card__tagline { clip-path: inset(0 0 100% 0); transform: translateY(.4em); }
  .case-card__frame { transition: clip-path 1.2s var(--ease-out, ease), transform .7s cubic-bezier(.16, 1, .3, 1); }
  .case-card__frame img { transition: scale 1.4s var(--ease-out, ease); }
  .case-card__pill, .case-card__title, .case-card__blurb, .case-card__results, .case-card__specs > div, .case-card__cta { transition: opacity .8s var(--ease-out, ease), transform .9s var(--ease-out, ease); }
  .case-card__tagline { clip-path: inset(0 0 -12% 0); transition: clip-path 1s var(--ease-out, ease) .15s, transform 1s var(--ease-out, ease) .15s; }
  .case-card.is-in .case-card__title { transition-delay: .35s; }
  .case-card.is-in .case-card__blurb { transition-delay: .42s; }
  .case-card.is-in .case-card__results { transition-delay: .5s; }
  .case-card.is-in .case-card__specs > div:nth-child(1) { transition-delay: .5s; }
  .case-card.is-in .case-card__specs > div:nth-child(2) { transition-delay: .62s; }
  .case-card.is-in .case-card__cta { transition-delay: .76s; }
  /* The pill's dot pings twice in the project colour as the card arrives */
  .case-card.is-in:not(.is-settled) .case-card__pill::before { animation: pill-ping 1.1s cubic-bezier(.2, .7, .3, 1) .35s 2; }
  .case-card.is-settled .case-card__specs > div, .case-card.is-settled .case-card__cta { transition-delay: 0s; }
  .case-card.is-settled .case-card__frame img { transition: scale 1s var(--ease-out, ease); }
}

/* Scroll-linked, run by the browser (no script on scroll, so no jank):
   - each card recedes (a little smaller and dimmer) as the NEXT card slides up over it: its
     animation follows the next card's view timeline (--recede-by), named in case-card.njk
   - the image drifts gently inside its frame as the card crosses the screen
   Browsers without scroll-driven animations simply keep the plain sticky stack. */
@supports (animation-timeline: view()) {
  @media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .case-card__inner, .case-card__inner::after { animation: linear both; animation-timeline: var(--recede-by); animation-range: entry 0% entry 100%; } /* done as the next card fully arrives, before it pins, so it never freezes halfway */
    .case-card__inner { animation-name: card-recede; }
    .case-card__inner::after { animation-name: card-dim; }
    .case-card::before { animation: shadow-out linear both; animation-timeline: var(--recede-by); animation-range: entry 0% entry 60%; }
    .case-card__frame img { animation: img-drift linear both; animation-timeline: view(); animation-range: cover; }
    /* layered entry: the text trails the image frame a little and settles as the card arrives (done before it pins) */
    .case-card__info { animation: info-settle linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    /* nothing covers the last card, so it never recedes (without this it sat at the end state: narrower, dimmed, no shadow) */
    .case-card:last-child :is(.case-card__inner, .case-card__inner::after), .case-card:last-child::before { animation: none; }
  }
}
@keyframes card-recede { to { transform: scale(.95); } }
@keyframes card-dim { to { opacity: .1; } }
@keyframes shadow-out { to { opacity: 0; } }
@keyframes info-settle { from { translate: 0 64px; } }
@keyframes img-drift { from { translate: 0 8%; } to { translate: 0 -8%; } }

@keyframes pill-ping { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } to { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); } }

@media (max-width: 900px) {
  .case-stack { gap: 1.5rem; }
  .case-stack::after { display: none; }
  .case-card { position: relative; top: auto; } /* no sticky offset on mobile */
  .case-card__inner { grid-template-columns: 1fr; min-height: 0; transform: none; }
  .case-card__inner::after { display: none; }
  .case-card__media { order: -1; aspect-ratio: 16 / 10; padding: .75rem .75rem 0; }
  .case-card__headline { margin-block: 0; }
  .case-card__cursor { display: none; }
}
@media (max-width: 479px) { .case-card__specs { grid-template-columns: 1fr; } }
/* Short laptop screens: tighter spacing keeps each pinned card within the viewport */
@media (min-width: 901px) and (max-height: 820px) {
  .case-card__info { gap: 1.25rem; }
  .case-card__specs { padding-top: 1rem; }
  .case-card__foot { gap: 1.25rem; }
}

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
.project-card { display: block; color: inherit; text-decoration: none; }
.project-card--large { grid-column: 1 / -1; }
.project-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); background: var(--paper-tint); }
.project-card--large .project-card__media { aspect-ratio: 16 / 8; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.165, .84, .44, 1); }
.project-card:hover .project-card__media img { transform: scale(1.03); }
.project-card__tags { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .5rem; }
.project-card__tags li { padding: .35rem .7rem; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--white); font-size: .8rem; }
.project-card__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-top: 1.25rem; }
.project-card__text { min-width: 0; }
.project-card__name { margin: 0 0 .3rem; color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.project-card__title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }
.project-card__blurb { max-width: 54ch; margin: .45rem 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
/* results: at most two quiet chips, the number does the talking */
.project-card__results { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.project-card__results li { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: var(--paper-tint); color: var(--ink-soft); font-size: .85rem; }
.project-card__results b { color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.project-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-top: 1rem; }
.project-card__tools { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.project-card__tools li { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; background: var(--paper-tint); }
.project-card__tools img { width: 18px; height: 18px; object-fit: contain; }
.project-card__tools span { padding: 0 .55rem; color: var(--ink-soft); font-size: .78rem; font-weight: 500; }
.project-card__role { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.project-card__role span { margin-right: .35rem; color: var(--ink); font-weight: 600; }
.project-card__go { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background-color .3s, color .3s, border-color .3s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.project-card:hover .project-card__go, .project-card:focus-visible .project-card__go { background: var(--ink); border-color: var(--ink); color: var(--white); transform: translateX(4px); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.process__step { padding: 1.5rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; }
.process__num { display: block; margin-bottom: 1rem; color: var(--grad-2); font-weight: 700; }
.process__step img { height: 4rem; width: auto; margin: 0 auto 1rem; }
.process__step h3 { font-size: 1.05rem; }

/* ---------- Expertise ---------- */
#services .section-head { margin-bottom: 1.5rem; } /* the prompt follows the heading closely */
/* ---------- Snapshot: bento grid ---------- */
/* lives in the dark About section, under the story */
.about-glance { margin-top: clamp(4rem, 9vw, 7rem); }
.about-glance .frame-label { margin-bottom: 1rem; }
.about-me .bento__tile { color: var(--ink); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 1rem; }
.bento__tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-width: 0; overflow: hidden;
  padding: 1.4rem; border-radius: 24px; background: #f4f3f7; }
.bento__copy h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.bento__copy p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
.bento__tile--system { grid-column: span 2; grid-row: span 2; background: #f1e9fb; }
.bento__tile--code { grid-column: span 2; background: #e8f0fb; }
.bento__tile--ai { grid-column: span 2; flex-direction: row; align-items: center; background: #f6ecf5; }
.bento__tile--place { background: #ecf3f0; }
.bento__tile--tools { grid-column: span 2; background: #f7efe6; }
.bento__tile--years { grid-column: span 2; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: end; column-gap: 2rem; row-gap: .5rem; background: #f4f3f7; }

/* Design systems: a component set with a selection that moves through the variants */
.comp-set { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2.2rem 1.25rem 1.25rem; border: 1.5px dashed #9747ff; border-radius: 14px; background: rgba(255, 255, 255, .55); }
.comp-set__label { position: absolute; top: .6rem; left: .9rem; display: flex; align-items: center; gap: .35rem; margin: 0; color: #9747ff; font-size: .8rem; font-weight: 600; }
.comp-set__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.v { display: grid; place-items: center; height: 46px; border-radius: 10px; font-size: .9rem; font-weight: 600; }
.v--sm { height: 34px; font-size: .78rem; }
.v--primary { background: linear-gradient(100deg, var(--grad-1), var(--grad-2) 45%, var(--grad-4)); color: #1a0b0e; }
.v--secondary { background: #2a2930; color: #fff; }
.v--ghost { box-shadow: inset 0 0 0 1.5px rgba(20, 10, 40, .25); color: var(--ink); }
.comp-set__pick { position: absolute; left: 0; top: 0; width: 0; height: 0; border: 1.5px solid #0d99ff; border-radius: 12px; pointer-events: none; }

/* Design to code */
.d2c { display: flex; align-items: center; gap: .9rem; }
.d2c__frame { display: grid; gap: .35rem; flex: none; padding: .7rem; border-radius: 12px; background: #fff; box-shadow: 0 8px 20px -12px rgba(20, 10, 40, .3); font-size: .75rem; }
.d2c__frame b { color: #0d99ff; font-weight: 600; }
.d2c__frame i { padding: .45rem .8rem; border-radius: 8px; background: linear-gradient(100deg, var(--grad-1), var(--grad-2) 45%, var(--grad-4)); color: #1a0b0e; font-style: normal; font-weight: 600; }
.d2c__arrow { flex: none; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #0d99ff, var(--grad-2)); position: relative; }
.d2c__arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left-color: var(--grad-2); }
.d2c__code { flex: 1; min-width: 0; margin: 0; padding: .8rem 1rem; border-radius: 12px; background: #16151b; color: #e6e1ff; font: 500 .8rem/1.6 ui-monospace, "SF Mono", Menlo, monospace; }

/* AI-first */
.bento__tile--ai { justify-content: space-between; gap: 1.5rem; }
/* AI-first: the apps as three app icons */
.ai-apps { display: flex; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.ai-apps li { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #fff; box-shadow: 0 10px 22px -14px rgba(20, 10, 40, .45); }
.ai-apps__term { background: #1f1d24 !important; }
@media (max-width: 600px) { .bento__tile--ai { flex-direction: column; align-items: flex-start; } }

/* Melbourne: a pin pinging on a dot map */
.pin { position: relative; flex: 1; min-height: 70px; border-radius: 14px;
  background: radial-gradient(rgba(20, 60, 40, .22) 1.2px, transparent 1.5px) 0 0 / 12px 12px; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 75%); }
.pin__dot { position: absolute; left: 62%; top: 58%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--grad-2); box-shadow: 0 0 0 3px #fff; }
.pin__dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--grad-2); opacity: 0; }

/* Toolkit marquee */
.marquee { margin: 0 -1.4rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: .6rem; width: max-content; margin: 0; padding: 0 1.4rem; list-style: none; }
.marquee li { display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem .5rem .6rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; box-shadow: 0 4px 12px -8px rgba(20, 10, 40, .3); white-space: nowrap; }
.marquee img { flex: none; width: 20px; height: 20px; object-fit: contain; }

/* Years */
.years { margin: 0; line-height: .9; font-size: clamp(4rem, 7vw, 6rem); font-weight: 700; letter-spacing: -.05em; }
.years b { background: linear-gradient(100deg, var(--grad-1), var(--grad-2) 45%, var(--grad-4)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.years span { font-size: .35em; letter-spacing: -.02em; }
.bento__tile--years .bento__copy { grid-column: 1; max-width: 16ch; }
.bento__tile--years .years { grid-column: 1; }

/* Years activity grid: a continuous wave rolls across the cells (only while the bento is on screen) */
.act { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.act__grid { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.act__c { aspect-ratio: 1; border-radius: 3px; background: rgba(20, 10, 40, .07); position: relative; }
.act__c::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: var(--o, 0);
  background: var(--c); }
.act__c { --c: var(--grad-1); }
.act__c[style*="--k: 1"] { --c: var(--grad-2); }
.act__c[style*="--k: 2"] { --c: #ff8a56; }
.act__c[style*="--k: 3"] { --c: var(--grad-4); }
.act__c.l1 { --o: .28; } .act__c.l2 { --o: .55; } .act__c.l3 { --o: .85; }
.act__ends { display: flex; justify-content: space-between; margin: .6rem 0 0; color: var(--ink-soft); font-size: .75rem; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .bento.is-live .act__c::after { animation: act-wave 4.2s ease-in-out infinite; animation-delay: calc(var(--d) * 1s); }
}
@keyframes act-wave {
  0%, 30%, 100% { opacity: var(--o, 0); transform: none; }
  12% { opacity: 1; transform: scale(1.18); }
}

/* Live animations: only while the grid is on screen (site.js toggles .is-live) */
@media (prefers-reduced-motion: no-preference) {
  .bento.is-live .pin__dot::after { animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
  .bento.is-live .marquee ul { animation: marquee 26s linear infinite; }
  .bento:not(.is-live) * { animation-play-state: paused !important; }
}
/* the lines type in one by one, hold, then clear together */
@keyframes code-1 { 0% { opacity: 0; } 4%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes code-2 { 0%, 10% { opacity: 0; } 12%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes code-3 { 0%, 18% { opacity: 0; } 20%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes code-4 { 0%, 26% { opacity: 0; } 28%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes app-float { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pick { /* the selection steps through the six variants; positions are set as custom props by site.js */
  0%, 12% { left: var(--p0x); top: var(--p0y); width: var(--p0w); height: var(--p0h); }
  17%, 29% { left: var(--p1x); top: var(--p1y); width: var(--p1w); height: var(--p1h); }
  34%, 46% { left: var(--p2x); top: var(--p2y); width: var(--p2w); height: var(--p2h); }
  51%, 63% { left: var(--p3x); top: var(--p3y); width: var(--p3w); height: var(--p3h); }
  68%, 80% { left: var(--p4x); top: var(--p4y); width: var(--p4w); height: var(--p4h); }
  85%, 100% { left: var(--p5x); top: var(--p5y); width: var(--p5w); height: var(--p5h); }
}
@media (max-width: 991px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento__tile--years { grid-template-columns: 1fr; }
  .act { grid-column: 1; grid-row: auto; margin-top: .75rem; }
  .bento__tile--system, .bento__tile--code, .bento__tile--ai, .bento__tile--tools, .bento__tile--years { grid-column: auto; grid-row: auto; }
  .comp-set__grid { gap: .6rem; }
  .d2c { flex-direction: column; align-items: stretch; }
  .d2c__arrow { display: none; }
  .d2c__frame { justify-self: start; }
}

/* "Ask Ajay": an AI-assistant style services picker */
/* The section is a piece of Figma canvas: dot grid, a Figma-AI prompt, frames and comments */
.ask { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3.5vw, 2.75rem); border-radius: 28px;
  background: radial-gradient(rgba(30, 20, 50, .1) 1px, transparent 1.3px) 0 0 / 22px 22px, #f5f4f8; }
.ask__prompt { display: flex; align-items: center; gap: .75rem; max-width: 46rem; min-height: 60px; padding: .85rem 1.2rem; border-radius: 14px;
  background: var(--white); box-shadow: 0 1px 2px rgba(20, 10, 40, .06), 0 16px 40px -20px rgba(80, 40, 140, .35); font-size: 1.2rem; font-weight: 500; color: var(--ink); }
.ask__spark { flex: none; }
.ask__caret { width: 2px; height: 1.3em; margin-left: -.5rem; background: var(--grad-2); opacity: 0; }
.ask.is-typing .ask__caret { opacity: 1; animation: ask-blink .9s steps(1) infinite; }
@keyframes ask-blink { 50% { opacity: 0; } }
.ask__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ask__chip { padding: .6rem 1.1rem; border: 0; border-radius: 999px; background: #efedf3; color: var(--ink-soft); font: 500 .95rem/1.2 var(--font); cursor: pointer;
  transition: background-color .25s, color .25s, transform .15s; }
.ask__chip:hover { background: #e4e1ec; color: var(--ink); }
.ask__chip:active { transform: scale(.97); }
.ask__chip[aria-selected="true"] { background: var(--ink); color: var(--white); }
.ask__answer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 1.5rem; }
.js .ask__answer:not(.is-active) { display: none; }
/* Figma comment: an avatar pin with a teardrop corner, and the comment bubble beside it */
.ask__reply { display: flex; align-items: flex-start; gap: .75rem; }
.ask__pin { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 3px; border-radius: 50% 50% 50% 4px; background: var(--white);
  box-shadow: 0 2px 6px rgba(20, 10, 40, .15), 0 10px 24px -12px rgba(20, 10, 40, .35); }
.ask__pin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ask__bubble { flex: 1; min-width: 0; padding: 1.1rem 1.25rem 1.25rem; border-radius: 4px 18px 18px 18px; background: var(--white);
  box-shadow: 0 1px 2px rgba(20, 10, 40, .06), 0 18px 40px -22px rgba(60, 30, 110, .35); }
.ask__from { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .65rem; font-size: .85rem; }
.ask__from b { color: var(--ink); font-weight: 600; }
.ask__from span { color: var(--ink-faint); }
.ask__reply h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 700; letter-spacing: -.025em; }
.ask__text { max-width: 36ch; margin: .6rem 0 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.55; }
/* The image as a selected frame: name label above, blue box with corner handles */
.ask__frame { position: relative; padding-top: 1.4rem; }
.ask__frame-label { position: absolute; top: 0; left: 0; margin: 0; color: #0d99ff; font-size: .8rem; font-weight: 500; }
.ask__sel { position: absolute; inset: 1.4rem 0 0; margin: -5px; border: 1.5px solid #0d99ff; border-radius: calc(var(--radius-lg) + 5px); pointer-events: none; }
.ask__sel i { position: absolute; width: 9px; height: 9px; border: 1.5px solid #0d99ff; background: #fff; }
.ask__sel i:nth-child(1) { top: -5px; left: -5px; }
.ask__sel i:nth-child(2) { top: -5px; right: -5px; }
.ask__sel i:nth-child(3) { bottom: -5px; left: -5px; }
.ask__sel i:nth-child(4) { bottom: -5px; right: -5px; }
.ask__text .tok { opacity: 0; transition: opacity .35s; }
.ask__text .tok.on { opacity: 1; }
.ask__image { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #efedf3; aspect-ratio: 4 / 3; }
.ask__image img { width: 100%; height: 100%; object-fit: cover; transition: filter 1s var(--ease-out, ease), scale 1.2s var(--ease-out, ease), opacity .6s; }
/* "Generating": the image sharpens out of a blur while a shimmer sweeps across */
.ask__image.is-generating img { filter: blur(18px) saturate(1.3); scale: 1.06; opacity: .7; }
.ask__image::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) -100% 0 / 220% 100% no-repeat; }
.ask__image.is-generating::after { opacity: 1; animation: ask-shimmer 1.1s ease-in-out; }
@keyframes ask-shimmer { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .ask__image img, .ask__text .tok { transition: none; } .ask__image.is-generating::after { animation: none; opacity: 0; } }
@media (max-width: 767px) { .ask__answer { grid-template-columns: 1fr; } .ask__frame { order: -1; } .ask__prompt { font-size: 1.05rem; } .ask__pin { width: 36px; height: 36px; } }

.expertise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.expertise__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 1.25rem; }
.expertise__item h3 { font-size: var(--fs-h3); margin-bottom: .4rem; }
.expertise__item p { color: var(--ink-soft); }

/* ---------- About split (dark) ---------- */
.about-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-split__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.about-split h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.about-split__big { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; }
.about-split p { color: rgba(255, 255, 255, .82); }
.about-split strong { color: var(--white); }
.about-split .button { margin-top: 1rem; }

/* ---------- Home "About": a photo frame on a canvas, with stickers ---------- */
/* The section is the hero's canvas again: a faint dot grid that fades out around the photo */
.about-me { position: relative; overflow-x: clip; isolation: isolate; }
.about-me::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, .085) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 40% 50%, #000 35%, transparent); mask-image: radial-gradient(ellipse 80% 75% at 40% 50%, #000 35%, transparent); }
/* The warm light in the portrait spilling onto the canvas: a soft brand-gradient glow behind the photo */
.about-me::after { content: ""; position: absolute; z-index: -1; left: -4%; top: 6%; width: min(62vw, 980px); height: 88%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 94, 105, .32), rgba(255, 138, 86, .16) 45%, rgba(177, 108, 234, .12) 70%, transparent);
  filter: blur(50px); }
@media (max-width: 991px) { .about-me::after { left: 0; top: 6%; width: 100%; height: 40%; } }
/* the glow drifts slowly, like light moving across the canvas (transform only, so it stays on the GPU) */
@media (prefers-reduced-motion: no-preference) {
  .about-me::after { will-change: transform; animation: about-glow 12s ease-in-out infinite; }
}
@keyframes about-glow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  25% { transform: translate3d(9%, -6%, 0) scale(1.1) rotate(8deg); }
  50% { transform: translate3d(22%, 4%, 0) scale(.94) rotate(-4deg); }
  75% { transform: translate3d(5%, 9%, 0) scale(1.06) rotate(5deg); }
}
.about-me .about-split { align-items: center; gap: clamp(2.5rem, 7vw, 6.5rem); }
.about-me h2 { margin-bottom: 1.25rem; }
.about-me .about-split__big { color: rgba(255, 255, 255, .72); font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.about-me .about-split__big strong { color: var(--white); font-weight: 600; }
.about-me__text > p:not(.about-split__big) { max-width: 60ch; }
/* About page: "specialised in" as quiet tags under the intro */
.about-me__text .about-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; padding: 0; list-style: none; }
.about-tags li { padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); font-size: .9rem; font-weight: 500; }
.about-story .about-me__text > p:not(.about-split__big) { color: rgba(255, 255, 255, .72); }
/* Side by side: the photo keeps its height and the text group is centred beside it */
@media (min-width: 992px) {
  .about-me .about-split { align-items: stretch; }
  .about-photo { display: flex; flex-direction: column; }
  .about-photo__frame { flex: 1; min-height: 31rem; }
  /* Out of the flow, so the text column alone sets the height and the photo fills it */
  .about-photo .about-split__photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  /* the text sits as one group, centred against the photo */
  .about-me__text { display: flex; flex-direction: column; justify-content: center; padding-top: 2rem; }
  .about-me__text > p:last-of-type { margin-bottom: 2rem; }
  .about-me__text .button { align-self: flex-start; margin-top: 0; }
  .about-photo__hint { position: absolute; top: 100%; left: 0; margin-top: 2.5rem; }
}
.about-photo { position: relative; z-index: 2; margin: 0; padding-top: 2rem; } /* stickers can be dragged over the text column */
/* Frame label, like the name above a Figma frame */
.about-photo__label { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: .4rem; color: #0d99ff; font-size: .9rem; }
.about-photo__label span[aria-hidden] { color: inherit; opacity: .8; }
.about-photo .about-split__photo { display: block; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
/* On hover the photo is "selected", in the hero's blue, with corner handles */
.about-photo__frame { position: relative; }
.about-photo__select { position: absolute; inset: -6px; border: 1.5px solid #0d99ff; border-radius: calc(var(--radius-lg) + 6px); pointer-events: none; transition: inset .35s cubic-bezier(.16, 1, .3, 1); }
.about-photo__select i { position: absolute; width: 9px; height: 9px; border: 1.5px solid #0d99ff; background: #fff; }
.about-photo__select i:nth-child(1) { top: -5px; left: -5px; }
.about-photo__select i:nth-child(2) { top: -5px; right: -5px; }
.about-photo__select i:nth-child(3) { bottom: -5px; left: -5px; }
.about-photo__select i:nth-child(4) { bottom: -5px; right: -5px; }
@media (hover: hover) { .about-photo:hover .about-photo__select { inset: -10px; } } /* always selected; it eases outward on hover */
.about-photo__hint { display: flex; align-items: center; gap: .5rem; margin: 3.25rem 0 0; color: rgba(255, 255, 255, .6); font-size: .9rem; }
.about-photo__hint::before { content: ""; width: 1.5rem; height: 1px; background: rgba(255, 255, 255, .3); }
.no-js .about-photo__hint, html:not(.js) .about-photo__hint { display: none; }

.stickers { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
/* Die-cut vinyl lettering: chunky letters with a hard drop for depth, a white cut-line
   traced around their shape (the #die-cut SVG filter), then a soft shadow on the canvas.
   The filter sits on the inner art, which is drawn once; the outer sticker only moves, so the
   GPU can slide it around without redrawing the filter every frame. */
.sticker {
  --r: 0deg; --dx: 0px; --dy: 0px; --c: var(--grad-2); --d: #b3303b;
  position: absolute;
  font: 400 clamp(1.05rem, 1.6vw, 1.4rem)/1 "Bagel Fat One", var(--font); letter-spacing: .005em; white-space: nowrap;
  transform: translate(var(--dx), var(--dy)) rotate(var(--r));
  pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .45s;
}
.sticker__art { display: flex; align-items: center; gap: .12em; color: var(--c); text-shadow: 0 .06em 0 var(--d);
  filter: url(#die-cut) drop-shadow(0 .35rem .45rem rgba(0, 0, 0, .45)); }
.sticker__emoji { font-size: 1.05em; transform: rotate(10deg) translateY(-.04em); text-shadow: none; }
/* Brand colours only: --c is the letter colour, --d its deeper shade for the drop */
/* Around the photo, clear of the face. Left side, top to bottom */
.sticker--1 { top: 3%;  left: -9%;  --r: -9deg; --c: var(--grad-4); --d: #c9761a; }
.sticker--3 { top: 70%; left: -12%; --r: -5deg; --c: var(--grad-2); --d: #c2303d; }
.sticker--7 { top: 60%; left: -10%; --r: -6deg; --c: var(--grad-1); --d: #7a3ab8; } /* AI tinkerer */
.sticker--5 { bottom: -3%; left: 8%; --r: -3deg; --c: var(--grad-2); --d: #c2303d; }
/* Right side, top to bottom */
.sticker--2 { top: 21%; right: -11%; --r: 7deg;  --c: var(--grad-1); --d: #7a3ab8; }
.sticker--6 { top: 53%; right: -12%; --r: 6deg;  --c: var(--grad-4); --d: #c9761a; }
.sticker--4 { top: 73%; right: -8%;  --r: 4deg;  --c: var(--grad-3); --d: #c95a2a; }
@media (hover: hover) { .sticker:hover { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * .5)) scale(1.06); } }
.sticker.is-dragging { cursor: grabbing; transition: none; }
/* Stickers slap on one after another when the section scrolls in */
.stickers.is-armed .sticker { opacity: 0; transform: translate(var(--dx), calc(var(--dy) - 14px)) rotate(calc(var(--r) * 3)) scale(1.4); }
.stickers.is-armed.is-in .sticker { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
.stickers.is-in .sticker:nth-child(2) { transition-delay: .08s; }
.stickers.is-in .sticker:nth-child(3) { transition-delay: .16s; }
.stickers.is-in .sticker:nth-child(4) { transition-delay: .24s; }
.stickers.is-in .sticker:nth-child(5) { transition-delay: .32s; }
.stickers.is-in .sticker:nth-child(6) { transition-delay: .4s; }
.stickers.is-in .sticker:nth-child(7) { transition-delay: .48s; }

/* Engineer + Designer = Product Designer, each term in the material of its own world:
   Engineer is code, Designer is a Figma selection, Product Designer is a die-cut sticker */
.about-eq { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.1rem .85rem; margin: 1.75rem 0 2.25rem; }
.about-eq__step { display: flex; align-items: flex-start; gap: .85rem; } /* an operator always travels with the term after it */
.about-eq__term { display: flex; flex-direction: column; align-items: flex-start; }
/* Every term and operator sits in the same 2.6rem band, so the notes below share one line */
.about-eq__term strong, .about-eq__op { display: inline-flex; align-items: center; min-height: 2.6rem; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.1; }
.about-eq__term small { margin-top: .4rem; color: rgba(255, 255, 255, .55); font-size: .9rem; line-height: 1.3; }
/* Each note speaks its term's language: a code comment, a Figma size label, a scribbled annotation */
.eq-note--code { position: relative; font: 400 .85rem/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: rgba(255, 255, 255, .5); white-space: pre; }
.eq-note--code span { color: rgba(255, 255, 255, .3); }
.eq-note--pill { align-self: center; padding: .12rem .45rem; border-radius: 4px; background: #0d99ff; color: #fff !important; font-size: .78rem !important; font-weight: 500; font-variant-numeric: tabular-nums; }
.eq-note--scribble { display: flex; align-items: center; gap: .3rem; color: rgba(255, 255, 255, .7) !important; font-style: italic; }
.eq-note--scribble svg { flex: none; width: 1.6rem; height: 1.15rem; margin-top: -.45rem; overflow: visible; }
.eq-note__arrow { fill: none; stroke: var(--grad-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 0; }
.about-eq__op { color: var(--grad-2); font-weight: 400; }

/* Engineer: a code tag; brackets in coral */
.eq-code { position: relative; font: 500 .92em/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; color: var(--white); letter-spacing: 0; white-space: pre; }
.about-eq__term .eq-code { font-size: clamp(1.15rem, 1.6vw, 1.45rem) !important; }
.eq-code span { color: var(--grad-2); }
.eq-code::after { content: ""; position: absolute; top: .05em; bottom: .05em; left: 100%; width: .55ch; margin-left: .1ch; background: var(--grad-2); opacity: 0; }

/* Designer: inside the hero's blue Figma selection, with corner handles */
.eq-frame { position: relative; padding: 0 .3em; color: var(--white); font-weight: 600; letter-spacing: -.02em; }
.eq-frame__box { position: absolute; inset: .3rem 0; border: 1.5px solid #0d99ff; pointer-events: none; }
.eq-frame__box i { position: absolute; width: 7px; height: 7px; border: 1.5px solid #0d99ff; background: #fff; }
.eq-frame__box i:nth-child(1) { top: -4px; left: -4px; }
.eq-frame__box i:nth-child(2) { top: -4px; right: -4px; }
.eq-frame__box i:nth-child(3) { bottom: -4px; left: -4px; }
.eq-frame__box i:nth-child(4) { bottom: -4px; right: -4px; }

/* Product Designer: a die-cut sticker, like the ones on the photo */
.about-eq__term .eq-sticker { display: inline-block; padding: .05em .1em; font: 400 clamp(1.35rem, 2vw, 1.75rem)/1 "Bagel Fat One", var(--font); letter-spacing: .005em; white-space: nowrap;
  color: var(--grad-2); text-shadow: 0 .06em 0 #c2303d; filter: url(#die-cut) drop-shadow(0 .3rem .4rem rgba(0, 0, 0, .45)); transform: rotate(-3deg); }

/* The build, played once when the row scrolls in and again on hover. The animations are
   attached but paused while "is-armed", so each piece waits in its starting state. */
.about-eq.is-armed .eq-code { animation: eq-type .9s steps(var(--chars)) both; }
.about-eq.is-armed .eq-code::after { animation: eq-caret .9s steps(var(--chars)) both, eq-blink 1.4s steps(1) .9s both; }
.about-eq.is-armed .about-eq__step:nth-child(2) .about-eq__op { animation: eq-pop .5s cubic-bezier(.34, 1.56, .64, 1) .9s both; }
.about-eq.is-armed .eq-frame { animation: eq-rise .5s cubic-bezier(.16, 1, .3, 1) 1.05s both; }
.about-eq.is-armed .eq-frame__box { animation: eq-select .55s cubic-bezier(.65, 0, .35, 1) 1.35s both; }
.about-eq.is-armed .eq-frame__box i { animation: eq-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.about-eq.is-armed .eq-frame__box i:nth-child(1) { animation-delay: 1.75s; }
.about-eq.is-armed .eq-frame__box i:nth-child(2) { animation-delay: 1.8s; }
.about-eq.is-armed .eq-frame__box i:nth-child(3) { animation-delay: 1.85s; }
.about-eq.is-armed .eq-frame__box i:nth-child(4) { animation-delay: 1.9s; }
.about-eq.is-armed .about-eq__step:nth-child(3) .about-eq__op { animation: eq-pop .5s cubic-bezier(.34, 1.56, .64, 1) 2.05s both; }
.about-eq.is-armed .eq-sticker { animation: eq-slap .7s cubic-bezier(.2, .9, .3, 1.2) 2.25s both; }
/* Each note arrives right after its term */
.about-eq.is-armed .eq-note--code { animation: eq-type .6s steps(var(--chars)) .95s both; }
.about-eq.is-armed .eq-note--pill { transform-origin: top center; animation: eq-label .45s cubic-bezier(.34, 1.56, .64, 1) 1.95s both; }
.about-eq.is-armed .eq-note__arrow { animation: eq-scribble .55s cubic-bezier(.65, 0, .35, 1) 2.9s both; }
.about-eq.is-armed .eq-note--scribble span { animation: eq-fade .4s ease 3.25s both; }
.about-eq.is-armed:not(.is-in), .about-eq.is-armed:not(.is-in) * { animation-play-state: paused !important; }
.about-eq.is-armed:not(.is-in) .eq-code::after { animation-play-state: paused !important; }

/* About page heading: the equation's two moves on "Design" (Figma selection) and "Code" (typed tag) */
.hd-frame { position: relative; display: inline-block; padding: 0 .1em; }
.hd-frame__box { position: absolute; inset: .1em -.02em .04em; border: 2px solid #0d99ff; pointer-events: none; }
.hd-frame__box i { position: absolute; width: 10px; height: 10px; border: 2px solid #0d99ff; background: #fff; }
.hd-frame__box i:nth-child(1) { top: -6px; left: -6px; }
.hd-frame__box i:nth-child(2) { top: -6px; right: -6px; }
.hd-frame__box i:nth-child(3) { bottom: -6px; left: -6px; }
.hd-frame__box i:nth-child(4) { bottom: -6px; right: -6px; }
.hd-code { position: relative; display: inline-block; font: 600 .82em/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: -.03em; white-space: pre; }
.hd-code > span[aria-hidden] { color: var(--grad-2); }
.hd-code::after { content: ""; position: absolute; top: .08em; bottom: .08em; left: 100%; width: .5ch; margin-left: .08ch; background: var(--grad-2); opacity: 0; }
.hd-anim.is-armed .hd-frame__box { animation: eq-select .6s cubic-bezier(.65, 0, .35, 1) .35s both; }
.hd-anim.is-armed .hd-frame__box i { animation: eq-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.hd-anim.is-armed .hd-frame__box i:nth-child(1) { animation-delay: .85s; }
.hd-anim.is-armed .hd-frame__box i:nth-child(2) { animation-delay: .9s; }
.hd-anim.is-armed .hd-frame__box i:nth-child(3) { animation-delay: .95s; }
.hd-anim.is-armed .hd-frame__box i:nth-child(4) { animation-delay: 1s; }
.hd-anim.is-armed .hd-code { animation: eq-type .9s steps(var(--chars)) 1.15s both; }
.hd-anim.is-armed .hd-code::after { animation: eq-caret .9s steps(var(--chars)) 1.15s both, eq-blink 1.4s steps(1) 2.05s 2 both; }
.hd-anim.is-armed:not(.is-in) *, .hd-anim.is-armed:not(.is-in) .hd-code::after { animation-play-state: paused !important; }
@keyframes ph-wipe { from { clip-path: inset(-20px 100% -20px -20px); } to { clip-path: inset(-20px -20px -20px -20px); } }
@keyframes hero-glow { from { transform: translateX(-12%) scale(1); } to { transform: translateX(12%) scale(1.12); } }
@keyframes eq-type { from { clip-path: inset(-.2em 100% -.2em 0); } to { clip-path: inset(-.2em -1ch -.2em 0); } }
@keyframes eq-caret { from { left: 0; opacity: 1; } to { left: 100%; opacity: 1; } }
@keyframes eq-blink { 0%, 50% { opacity: 1; } 25%, 75%, 100% { opacity: 0; } }
@keyframes eq-pop { from { opacity: 0; transform: scale(0) rotate(-90deg); } }
@keyframes eq-rise { from { opacity: 0; transform: translateY(.35em); } }
@keyframes eq-select { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(-8px); } }
@keyframes eq-slap { 0% { opacity: 0; transform: scale(1.9) rotate(-16deg); } 55% { opacity: 1; transform: scale(.93) rotate(-1deg); } 78% { transform: scale(1.04) rotate(-3.5deg); } 100% { opacity: 1; transform: scale(1) rotate(-3deg); } }
@keyframes eq-fade { from { opacity: 0; } }
@keyframes eq-label { from { opacity: 0; transform: translateY(-.4rem) scale(.6); } }
@keyframes eq-scribble { from { stroke-dashoffset: 60; } }
@media (max-width: 991px) {
  .about-photo { max-width: 30rem; margin-inline: auto; }
  .sticker--1, .sticker--3, .sticker--7 { left: -4%; }
  .sticker--2, .sticker--4, .sticker--6 { right: -4%; }
}
@media (max-width: 479px) {
  .sticker { font-size: .95rem; }
  .sticker--1, .sticker--3, .sticker--7 { left: 1%; }
  .sticker--2, .sticker--4, .sticker--6 { right: 1%; }
}

/* ---------- Experience timeline ---------- */
.experience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
/* Wide screens: Education stays put beside you while the longer career list scrolls */
@media (min-width: 992px) {
  .experience { align-items: start; }
  .experience > div:first-child { position: sticky; top: 6rem; }
  /* the Work experience heading pins level with Education while its long list scrolls beneath it */
  .experience__list > .section-head { position: sticky; top: 6rem; z-index: 2; background: var(--paper); }
  .experience__list > .section-head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 6rem; background: var(--paper); pointer-events: none; }
  .experience__list > .section-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 2.5rem; pointer-events: none;
    background: linear-gradient(var(--paper), transparent); }
  /* ...and "See full resume" pins to the bottom of the screen while the list scrolls, then settles after it */
  .experience > div:last-child > .button--wide { position: sticky; bottom: 1.5rem; z-index: 2; transition: opacity .35s, translate .5s cubic-bezier(.16, 1, .3, 1); }
  /* it only joins once you've scrolled into the list (the heading has pinned): until then it stays out of the way */
  .js .experience > div:last-child > .button--wide.is-waiting { opacity: 0; translate: 0 24px; pointer-events: none; }
}
.experience__title { padding-bottom: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(0, 0, 0, .36); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; }
/* Experience as Figma's version history: a rail with a dot per role; current roles are live (green) */
ul.timeline { position: relative; padding-left: 2rem; } /* ul. beats the global list reset */
.timeline::before { content: ""; position: absolute; left: 5px; top: .6rem; bottom: .6rem; width: 2px; border-radius: 2px; background: #e7e6ec; transform-origin: top; }
.timeline li { position: relative; padding: 0 0 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(-2rem + 1px); top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px #c9c7d1; }
.timeline li.is-current::before { background: #14ae5c; box-shadow: none; }
.timeline__when { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0 0 .45rem; color: var(--ink-soft); font-size: .9rem; font-variant-numeric: tabular-nums; }
.timeline__dur { padding: .1rem .55rem; border-radius: 999px; background: var(--paper-tint); color: var(--ink-soft); font-size: .8rem; font-weight: 500; }
.timeline__now { padding: .1rem .55rem; border-radius: 999px; background: rgba(20, 174, 92, .12); color: #0d8a48; font-size: .8rem; font-weight: 600; }
.timeline h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; }
.timeline h3 a { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; transition: color .2s; }
.timeline h3 a svg { color: var(--ink-faint); transition: transform .2s, color .2s; }
.timeline h3 a:hover { color: var(--grad-2); }
.timeline h3 a:hover svg { color: var(--grad-2); transform: translate(2px, -2px); }
.timeline__role { margin: .15rem 0 0; color: var(--ink-soft); }
/* the rail draws itself down as the list scrolls through the screen */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline::before { animation: rail-draw linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; }
  }
}
@keyframes rail-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Contact ---------- */
/* "Let's work together!": dark, with the dotted globe glowing in from the right (as on the live site) */
.contact { position: relative; isolation: isolate; padding: clamp(5rem, 11vw, 9.5rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; color: var(--white); background: #0d0d0d; }
/* the globe sits on its own layer so it can drift slowly (transform only) */
.contact::before { content: ""; position: absolute; inset: -4%; z-index: -1; pointer-events: none; background: url("/assets/footer-globe.webp") 0 50% / cover no-repeat; }
.contact__inner { max-width: 68rem; }
.contact__title { font-size: clamp(2.75rem, 5.5vw, 4.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.contact__gradient { background: linear-gradient(66deg, #da8181, var(--grad-2) 29%, var(--grad-3) 66%, var(--grad-4)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.contact__lead { max-width: 34rem; margin: 1.5rem 0 0; color: rgba(255, 255, 255, .72); font-size: 1.2rem; line-height: 1.55; }
/* The email as a selected Figma text layer: click copies it (site.js) */
.contact__mail { position: relative; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.contact__copy { position: relative; display: inline-block; max-width: 100%; margin: 0 0 0 -.3em; padding: .12em .3em .18em; border: 0; background: none; color: var(--white); cursor: copy; text-align: left; }
.contact__address { display: block; overflow-wrap: break-word; font-family: var(--font-display); font-size: clamp(1.25rem, 5.4vw, 3.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; transition: color .3s; }
.contact__copy:hover .contact__address, .contact__copy:focus-visible .contact__address { color: #ffe0d6; }
.contact__sel { position: absolute; inset: 0; border: 1.5px solid #0d99ff; opacity: .9; pointer-events: none; transition: border-color .3s, box-shadow .3s; }
.contact__sel i { position: absolute; width: 9px; height: 9px; border: 1.5px solid #0d99ff; background: #fff; }
.contact__sel i:nth-child(1) { top: -5px; left: -5px; }
.contact__sel i:nth-child(2) { top: -5px; right: -5px; }
.contact__sel i:nth-child(3) { bottom: -5px; left: -5px; }
.contact__sel i:nth-child(4) { bottom: -5px; right: -5px; }
.contact__copy.is-copied .contact__sel { border-color: #14ae5c; box-shadow: 0 0 0 4px rgba(20, 174, 92, .18); }
.contact__copy.is-copied .contact__sel i { border-color: #14ae5c; }
.contact__copy:focus-visible { outline: none; }
.contact__copy:focus-visible .contact__sel { box-shadow: 0 0 0 4px rgba(13, 153, 255, .35); }
.contact__hint { margin: .6rem 0 0; color: rgba(255, 255, 255, .5); font-size: .9rem; }
/* Figma-style toast */
.contact__wave { display: inline-block; transform-origin: 70% 80%; }
.contact__cursor { position: absolute; z-index: 2; left: calc(100% + .5rem); top: 70%; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; opacity: 0; }
.contact__cursor svg { flex: none; margin: -3px 0 0 -3px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.contact__cursor b { margin-top: 14px; padding: 3px 8px; border-radius: 3px 10px 10px; background: #0d99ff; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.contact__toast { position: absolute; left: 0; top: calc(100% + .5rem); margin: 0; padding: .55rem .95rem; border-radius: 8px; background: #2c2c2c; color: var(--white); font-size: .9rem; font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease-out); }
.contact__toast.is-on { opacity: 1; transform: none; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact__socials { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.contact__socials a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem .55rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .85); font-size: .95rem; text-decoration: none; transition: background-color .2s, color .2s; }
.contact__socials a:hover, .contact__socials a:focus-visible { background: rgba(255, 255, 255, .14); color: var(--white); }
/* the same chips on a light page (Resume & Contact) */
.contact__socials--light { margin-top: 1rem; }
.contact__socials--light a { background: var(--paper-tint); color: var(--ink); }
.contact__socials--light a:hover, .contact__socials--light a:focus-visible { background: #ececea; color: var(--ink); }
.contact__clock { display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: rgba(255, 255, 255, .6); font-size: .95rem; }
.contact__time:not(:empty)::before { content: "·"; margin: 0 .45rem 0 .1rem; }
.contact__time { color: var(--white); font-variant-numeric: tabular-nums; }
.contact__dot { width: 8px; height: 8px; border-radius: 50%; background: #14ae5c; box-shadow: 0 0 0 3px rgba(20, 174, 92, .22); }
/* The footer's entrance, played once as it scrolls in (site.js adds .is-live); ambient bits run while on screen */
@media (prefers-reduced-motion: no-preference) {
  .contact.is-live .contact__wave { animation: wave 1.6s ease-in-out .5s both; }
  .contact__title:hover .contact__wave { animation: wave 1.2s ease-in-out both; }
  /* a mirrored gradient twice as wide sweeps across "together!" and settles on the original colours */
  .contact.is-live .contact__gradient { background-image: linear-gradient(66deg, #da8181, var(--grad-2) 15%, var(--grad-3) 33%, var(--grad-4) 50%, var(--grad-3) 67%, var(--grad-2) 85%, #da8181); background-size: 200% 100%; animation: shimmer 1.6s ease-out .3s both; }
  .motion-ready .contact:not(.is-live) .contact__sel { clip-path: inset(0 100% 100% 0); }
  .contact.is-live .contact__sel { animation: eq-select .6s cubic-bezier(.65, 0, .35, 1) .9s both; }
  .contact.is-live .contact__sel i { animation: eq-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; }
  .contact.is-live .contact__sel i:nth-child(1) { animation-delay: 1.35s; }
  .contact.is-live .contact__sel i:nth-child(2) { animation-delay: 1.4s; }
  .contact.is-live .contact__sel i:nth-child(3) { animation-delay: 1.45s; }
  .contact.is-live .contact__sel i:nth-child(4) { animation-delay: 1.5s; }
  .contact.is-live .contact__cursor { animation: cursor-in 1.4s cubic-bezier(.45, 0, .2, 1) 1.6s both, cursor-click .3s ease 3s both, cursor-idle 5s ease-in-out 3.4s infinite; }
  .contact.is-live .contact__socials li { animation: rise-in .8s var(--ease-out) both; }
  .contact.is-live .contact__socials li:nth-child(1) { animation-delay: .9s; }
  .contact.is-live .contact__socials li:nth-child(2) { animation-delay: .98s; }
  .contact.is-live .contact__socials li:nth-child(3) { animation-delay: 1.06s; }
  .contact.is-live .contact__socials li:nth-child(4) { animation-delay: 1.14s; }
  .contact.is-live .contact__socials li:nth-child(5) { animation-delay: 1.22s; }
  .contact.is-live .contact__dot { animation: dot-ping 2.4s ease-out infinite; }
  .contact.is-live::before { animation: globe-drift 24s ease-in-out infinite alternate; }
  .contact:not(.is-on) *, .contact:not(.is-on)::before { animation-play-state: paused !important; }
}
@keyframes wave { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-10deg); } 45% { transform: rotate(14deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(8deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes cursor-in { from { opacity: 0; transform: translate(160px, 70px); } to { opacity: 1; transform: translate(-1.6rem, -.4rem); } }
@keyframes cursor-click { 50% { scale: .82; } }
@keyframes cursor-idle { 0%, 100% { translate: 0 0; } 50% { translate: 6px -4px; } }
@keyframes dot-ping { 0% { box-shadow: 0 0 0 0 rgba(20, 174, 92, .5); } 100% { box-shadow: 0 0 0 10px rgba(20, 174, 92, 0); } }
@keyframes globe-drift { from { transform: translateX(0) scale(1); } to { transform: translateX(-2.5%) scale(1.05); } }
@media (max-width: 767px) { .contact__cursor { display: none; } }
@media (max-width: 767px) {
  .contact::before { background-position: 60% 50%; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 1.5rem 0 2rem; background: #0d0d0d; color: rgba(255, 255, 255, .45); font-size: .85rem; }
.site-footer__row { max-width: 68rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__row p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: rgba(255, 255, 255, .6); text-decoration: none; transition: color .2s; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); }
.site-footer__top { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Inner-page hero ---------- */
.page-hero { padding: clamp(4rem, 12vw, 10rem) 0 clamp(3rem, 8vw, 6rem); background: radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--black); color: var(--white); text-align: center; }
.page-hero--case { background: url("/assets/b51dd30c-646b3fffb8fd2c3a05f5386c_bg.jpg") center / cover, var(--black); }
.page-hero--full { min-height: 70vh; display: grid; align-items: center; }
.page-hero__eyebrow { display: inline-block; margin-bottom: 1.25rem; padding: .35rem .9rem; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .9rem; }
.page-hero__title { max-width: 20ch; margin-inline: auto; font-size: var(--fs-h1); font-weight: 700; line-height: 1.1; text-wrap: balance; }
/* Page headers: a soft glow drifts behind the title (brand colours, or the project's own on case studies) */
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 55%; width: min(70vw, 900px); height: 70%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent, var(--grad-2)) 34%, transparent), color-mix(in srgb, var(--accent-2, var(--grad-1)) 14%, transparent) 60%, transparent);
  filter: blur(40px); }
/* The title as a selected Figma layer: it sits in a blue box with handles */
.page-hero__title:has(.ph-sel) { position: relative; width: fit-content; padding: .08em .3em .12em; }
.ph-sel { position: absolute; inset: 0; border: 1.5px solid #0d99ff; pointer-events: none; }
.ph-sel i { position: absolute; width: 9px; height: 9px; border: 1.5px solid #0d99ff; background: #fff; }
.ph-sel i:nth-child(1) { top: -5px; left: -5px; }
.ph-sel i:nth-child(2) { top: -5px; right: -5px; }
.ph-sel i:nth-child(3) { bottom: -5px; left: -5px; }
.ph-sel i:nth-child(4) { bottom: -5px; right: -5px; }
/* Case studies: the headline in the project's colours, lifted for the dark background */
.page-hero__accent { background: linear-gradient(95deg, color-mix(in srgb, var(--accent-2) 80%, #fff), color-mix(in srgb, var(--accent-2) 45%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.page-hero__eyebrow--dot { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem .45rem .8rem; border: 0; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.page-hero__eyebrow--dot::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: linear-gradient(135deg, var(--accent, var(--grad-1)), var(--accent-2, var(--grad-4))); box-shadow: 0 0 0 0 var(--accent-2, var(--grad-2)); }
.page-hero .page-hero__results { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.page-hero__results li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .7); font-size: .9rem; }
.page-hero__results b { color: color-mix(in srgb, var(--accent-2, var(--grad-2)) 70%, #fff); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.page-hero__subtitle { max-width: 52ch; margin: 1rem auto 0; font-size: 1.2rem; color: rgba(255, 255, 255, .75); }
.filter-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.filter-links a { padding: .5rem 1rem; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .9rem; text-decoration: none; }
.filter-links a:hover, .filter-links a[aria-current="page"] { background: var(--white); color: var(--ink); }

/* ---------- Case study ---------- */
/* One column: the project facts sit in a bar under the breadcrumb, so full-width galleries never run under them */
.case { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 3rem 0 var(--section-y); }
.breadcrumb { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; color: var(--ink-faint); font-size: .95rem; }
.breadcrumb a { text-decoration: none; color: var(--ink); }
.breadcrumb a:hover { color: var(--grad-2); }
.case__body { grid-column: 1; grid-row: 3; }
.case__facts { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: 1.5rem 0; border-block: 1px solid var(--line); }
/* each field takes the width its content needs (the two-column role list included) and the row wraps when it runs out */
.case__facts dl { display: flex; flex-wrap: wrap; gap: 1.25rem clamp(2rem, 4vw, 3.5rem); flex: 1 1 36rem; margin: 0; }
.case__facts dl > div { flex: 0 1 auto; }
.case__facts div { min-width: 0; }
.case__facts dt { margin-bottom: .3rem; font-size: .85rem; font-weight: 500; color: var(--ink-faint); }
/* My role: each role with a Figma glyph for its kind of work, in Figma's own colours
   (frame/UI blue, component purple, dev coral, research green, brand amber) */
.case__fact--role dd { max-width: 30rem; }
.case__roles { display: grid; grid-template-columns: repeat(2, max-content); gap: .5rem 1.4rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 480px) { .case__roles { grid-template-columns: 1fr; } }
.role { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.role svg { flex: none; color: #0d99ff; }
.role--component svg { color: #9747ff; }
.role--code svg { color: var(--grad-2); }
.role--research svg { color: #14ae5c; }
.role--brand svg, .role--print svg, .role--interior svg, .role--social svg { color: #f08a24; }
.case__facts dd { margin: 0; white-space: pre-line; }
.case__facts .button { flex: none; }
/* Tools in the facts bar: each with its logo */
.case__tools { display: flex; flex-wrap: wrap; gap: .4rem; margin: .1rem 0 0; padding: 0; list-style: none; }
.case__tools li { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem .3rem .35rem; border-radius: 9px; background: var(--paper-tint); white-space: nowrap; }
.case__tools img { width: 22px; height: 22px; object-fit: contain; }

.prose { max-width: 46rem; }
.prose .cs-block { margin-bottom: 3rem; }
.prose h2 { margin: 0 0 1.25rem; font-size: var(--fs-h2); }
.prose h3, .prose h4 { margin: 2rem 0 .6rem; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .5rem; }
.prose a { text-decoration-color: var(--grad-2); text-underline-offset: 3px; }
.prose figure { margin: 2rem 0; }
.prose img { border-radius: var(--radius); }
/* Case-study summary, on the site's Figma canvas: three frames (problem, what I did, the result)
   joined by prototype connectors; the result is the selected frame. */
.prose .cs-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.6rem;
  width: min(var(--container), 100vw - var(--gutter) * 2); margin: 1.75rem 0 2.5rem; padding: 2.9rem clamp(1.25rem, 2.5vw, 2rem) 1.75rem; border-radius: 24px;
  background: radial-gradient(rgba(20, 10, 40, .13) 1px, transparent 1.3px) 0 0 / 18px 18px, #f4f4f6; }
.cs-summary > div { position: relative; padding: 1.25rem 1.35rem 1.4rem; border-radius: 6px; background: var(--white); box-shadow: 0 1px 2px rgba(20, 10, 40, .06), 0 10px 24px -18px rgba(20, 10, 40, .35); }
/* the frame name sits above each frame, like Figma */
.prose .cs-summary h3 { position: absolute; left: 0; bottom: calc(100% + .45rem); margin: 0; color: #0d99ff; font-family: var(--font); font-size: .85rem; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.cs-summary h3::before { content: "# "; opacity: .8; }
.cs-summary p { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.55; }
.cs-summary strong { color: var(--accent, var(--grad-2)); font-family: var(--font-display); font-size: 1.3em; font-weight: 700; letter-spacing: -.02em; line-height: 1; } /* the project's own colour (cardAccent) */
/* the result is the selected frame: blue outline + four handles */
.cs-summary > div:last-child { outline: 1.5px solid #0d99ff; outline-offset: 4px; }
.cs-summary > div:last-child::after { content: ""; position: absolute; inset: -9px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Crect x='.75' y='.75' width='7.5' height='7.5' fill='%23fff' stroke='%230d99ff' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 9px 9px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Crect x='.75' y='.75' width='7.5' height='7.5' fill='%23fff' stroke='%230d99ff' stroke-width='1.5'/%3E%3C/svg%3E") 100% 0 / 9px 9px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Crect x='.75' y='.75' width='7.5' height='7.5' fill='%23fff' stroke='%230d99ff' stroke-width='1.5'/%3E%3C/svg%3E") 0 100% / 9px 9px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Crect x='.75' y='.75' width='7.5' height='7.5' fill='%23fff' stroke='%230d99ff' stroke-width='1.5'/%3E%3C/svg%3E") 100% 100% / 9px 9px no-repeat; }
/* prototype connectors across the gaps */
.cs-summary > div:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: calc(50% - .375rem); left: calc(100% + .1rem); width: 2.4rem; height: .75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 12'%3E%3Ccircle cx='4' cy='6' r='3' fill='%23fff' stroke='%230d99ff' stroke-width='1.6'/%3E%3Cpath d='M7 6h30' stroke='%230d99ff' stroke-width='1.6'/%3E%3Cpath d='M35 2l6 4-6 4z' fill='%230d99ff'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .cs-block:not(.is-visible):not(.is-revealed) .cs-summary > div:not(:last-child)::after { clip-path: inset(0 100% 0 0); }
  .cs-block:is(.is-visible, .is-revealed) .cs-summary > div:not(:last-child)::after { animation: wire-draw .6s cubic-bezier(.65, 0, .35, 1) .55s both; }
  .cs-block:is(.is-visible, .is-revealed) .cs-summary > div:nth-child(2)::after { animation-delay: 1s; }
}
@keyframes wire-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@media (max-width: 767px) {
  .prose .cs-summary { grid-template-columns: 1fr; gap: 3.25rem; width: 100%; padding-top: 2.6rem; }
  .cs-summary > div:not(:last-child)::after { top: calc(100% + 1.25rem); left: calc(50% - 1.2rem); transform: rotate(90deg); }
}
/* Outcome: each result as a tile on the project's tint, the number large in the project's colour */
.prose .cs-outcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; width: min(var(--container), 100vw - var(--gutter) * 2); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.prose .cs-outcome li { display: flex; flex-direction: column; margin: 0; padding: 1.5rem 1.6rem 1.6rem; border-radius: 22px; background: var(--tint, var(--paper-tint)); }
.prose .cs-outcome p { margin: 0; }
.cs-outcome__num { display: inline-flex; align-items: center; gap: .18em; color: var(--accent, var(--grad-2)); font-family: var(--font-display); font-size: clamp(2.5rem, 4.2vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.cs-outcome__num svg { flex: none; width: .5em; height: .5em; padding: .1em; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); }
.cs-outcome__num--down svg { transform: rotate(180deg); }
.prose .cs-outcome p.cs-outcome__label { margin-top: .75rem; color: var(--ink); font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.prose .cs-outcome p.cs-outcome__note { margin-top: .3rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
/* links after the outcome: a dark primary and a quiet secondary button */
.cs-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.prose .cs-links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.3rem; border-radius: 12px; background: var(--paper-tint); color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .2s; }
.prose .cs-links a:first-child { background: var(--ink); color: var(--white); }
.prose .cs-links a::after { content: ""; width: .9em; height: .9em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 14 14 6M7 6h7v7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 14 14 6M7 6h7v7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose .cs-links a:hover { background: #ececea; }
.prose .cs-links a:first-child:hover { background: #2a2a2d; }

/* Image galleries break out of the text column to full container width */
.cs-gallery { display: grid; gap: 1.5rem; margin: 0 0 3rem; width: min(var(--container), 100vw - var(--gutter) * 2); }
.cs-gallery img { width: 100%; border-radius: var(--radius); }
.cs-gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-gallery--full img { border-radius: var(--radius-lg); }
/* Bento gallery: a 12-column grid; each tile sets its size with --c (columns) and --r (rows).
   Photos fill their tile; menus and print (--fit) sit whole on the project's tint. */
.cs-bento { --tint: #e2f1e5; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(90px, 10.5vw, 150px); gap: clamp(.6rem, 1.2vw, 1rem); }
.cs-bento__item { grid-column: span var(--c, 6); grid-row: span var(--r, 3); overflow: hidden; border-radius: var(--radius-lg); background: var(--tint); }
.cs-bento__item picture { display: contents; }
.cs-bento__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: scale .8s var(--ease-out, ease); }
.cs-bento__item--fit { padding: clamp(.6rem, 1.4vw, 1.25rem); }
.cs-bento__item--fit img { object-fit: contain; filter: drop-shadow(0 12px 18px rgba(20, 40, 20, .18)); }
.cs-bento__item:hover img { scale: 1.03; }
@media (max-width: 767px) {
  .cs-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .cs-bento__item { grid-column: span 2; grid-row: span 2; }
  .cs-bento__item--fit { grid-column: span 1; grid-row: span 3; }
}

/* Next project: a mini work card on the light page; the contact sheet then slides over it */
.next-project { --accent: var(--grad-2); --accent-2: var(--grad-3); padding: 0 0 calc(var(--section-y) + 2.5rem); background: var(--paper); }
.next-card { --accent: var(--grad-2); --accent-2: var(--grad-3); display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); padding: .75rem clamp(1rem, 2.5vw, 1.75rem) .75rem .75rem;
  border-radius: 22px; background: var(--tint); color: var(--ink); text-decoration: none; transition: box-shadow .3s; }
.next-card:hover { box-shadow: 0 20px 40px -28px rgba(20, 10, 40, .35); }
.next-card__thumb { flex: none; width: clamp(6.5rem, 14vw, 11rem); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.next-card__text { flex: 1; min-width: 0; }
.next-card__label { margin: 0; color: rgba(26, 20, 36, .55); font-size: .85rem; font-weight: 500; }
.next-card__tagline { margin: .2rem 0 0; color: var(--accent); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.next-card__name { margin: .15rem 0 0; color: rgba(26, 20, 36, .7); font-size: .95rem; }
.next-card__go { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent); color: var(--white); transition: transform .35s var(--ease-out, ease); }
.next-card:hover .next-card__go, .next-card:focus-visible .next-card__go { transform: translateX(5px); }
@media (max-width: 479px) { .next-card__go { display: none; } }

/* ---------- Generic content page (about, resume) ---------- */
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
/* Skills: Figma-style tags in the bento's pastel fills */
.skills { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.skills li { padding: .8rem 1.35rem; border-radius: 999px; background: #f4f3f7; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -.01em; }
.skills li:nth-child(6n + 1) { background: #f1e9fb; }
.skills li:nth-child(6n + 2) { background: #e8f0fb; }
.skills li:nth-child(6n + 3) { background: #f6ecf5; }
.skills li:nth-child(6n + 4) { background: #ecf3f0; }
.skills li:nth-child(6n + 5) { background: #f7efe6; }
.about-lead { font-size: 1.25rem; line-height: 1.5; }
.timeline__desc { max-width: 60ch; margin: .65rem 0 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.photo-grid { columns: 3 16rem; column-gap: 1rem; }
.photo-grid img { width: 100%; margin-bottom: 1rem; border-radius: var(--radius); break-inside: avoid; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.tools__group h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.tools__group ul { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.tools__group li { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem .5rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: .95rem; }
.tools__group img { width: 32px; height: 32px; object-fit: contain; }

/* ---------- Motion: one easing, soft rise + focus pull, on load and on scroll ----------
   Content is visible without JS (no .js class), and with reduced motion nothing moves. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(10px); } }
@keyframes drift-down { from { opacity: 0; transform: translate3d(0, -10px, 0); } }
@media (prefers-reduced-motion: no-preference) {
  /* Load: the header drifts in, then each page's title area rises line by line */
  .js .site-logo, .js .nav-toggle, .js .site-nav a { animation: drift-down .8s var(--ease-out) both; }
  .js .site-nav a:nth-child(1) { animation-delay: .06s; }
  .js .site-nav a:nth-child(2) { animation-delay: .12s; }
  .js .site-nav a:nth-child(3) { animation-delay: .18s; }
  .js .site-nav a:nth-child(4) { animation-delay: .24s; }
  .js .site-nav a:nth-child(5) { animation-delay: .3s; }
  .js .page-hero .container > * { animation: rise-in 1.1s var(--ease-out) both; }
  .js .page-hero .container > :nth-child(1) { animation-delay: .15s; }
  .js .page-hero .container > :nth-child(2) { animation-delay: .27s; }
  .js .page-hero .container > :nth-child(3) { animation-delay: .39s; }
  .js .page-hero .container > :nth-child(4) { animation-delay: .51s; }
  /* the title wipes in left to right, then its Figma selection draws round it and the handles pop */
  .js .page-hero__title:has(.ph-sel) { animation: ph-wipe 1.1s cubic-bezier(.65, 0, .35, 1) .3s both; }
  .js .ph-sel { animation: eq-select .55s cubic-bezier(.65, 0, .35, 1) 1.25s both; }
  .js .ph-sel i { animation: eq-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; }
  .js .ph-sel i:nth-child(1) { animation-delay: 1.65s; }
  .js .ph-sel i:nth-child(2) { animation-delay: 1.7s; }
  .js .ph-sel i:nth-child(3) { animation-delay: 1.75s; }
  .js .ph-sel i:nth-child(4) { animation-delay: 1.8s; }
  .js .page-hero__eyebrow--dot::before { animation: pill-ping 1.1s cubic-bezier(.2, .7, .3, 1) .6s 2; }
  .page-hero::after { animation: hero-glow 14s ease-in-out infinite alternate; }

  /* Scroll: rise, fade and come into focus; site.js staggers whatever arrives together.
     Hidden by CSS from the first paint (no flash); site.js reveals each block as it enters.
     If site.js never runs, everything appears after 3s anyway. Keep this list in step with site.js. */
  .js :is(.section-head > *, .group-head, .project-card, .process__step, .expertise__item, .experience__title, .timeline > li, .skills > li, .tools__group, .about-lead, .about-split:not(.about-me .about-split) > *, .about-me .about-photo, .about-me__text > p:not(.about-eq), .about-me__text > .button, .contact__inner > *, .bento__tile, .case__facts, .breadcrumb, .prose > *, .next-project .container > *):not(.hero-wf *, .page-hero *):not(.is-revealed) { opacity: 0; transform: translate3d(0, 36px, 0); filter: blur(8px);
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
  .js:not(.motion-ready) :is(.section-head > *, .group-head, .project-card, .process__step, .expertise__item, .experience__title, .timeline > li, .skills > li, .tools__group, .about-lead, .about-split:not(.about-me .about-split) > *, .about-me .about-photo, .about-me__text > p:not(.about-eq), .about-me__text > .button, .contact__inner > *, .bento__tile, .case__facts, .breadcrumb, .prose > *, .next-project .container > *):not(.hero-wf *, .page-hero *) { animation: reveal-failsafe .6s 3s both; }
  .js :is(.section-head > *, .group-head, .project-card, .process__step, .expertise__item, .experience__title, .timeline > li, .skills > li, .tools__group, .about-lead, .about-split:not(.about-me .about-split) > *, .about-me .about-photo, .about-me__text > p:not(.about-eq), .about-me__text > .button, .contact__inner > *, .bento__tile, .case__facts, .breadcrumb, .prose > *, .next-project .container > *).is-visible:not(.is-revealed) { opacity: 1; transform: none; filter: none; }
  /* Project images settle from a slight zoom */
  .js .project-card:not(.is-revealed) .project-card__media img { transform: scale(1.08); transition: transform 1.6s var(--ease-out) var(--reveal-delay, 0s); }
  .js .project-card.is-visible:not(.is-revealed) .project-card__media img { transform: none; }
}
@keyframes reveal-failsafe { to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .project-card__media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .site-header .container { padding: 12px 24px; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case { grid-template-columns: 1fr; }
  .case__body, .case__facts { grid-column: 1; }
  .case__facts { grid-row: 2; position: static; }
  .case__body { grid-row: 3; }
  .cs-gallery { width: 100%; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--black); border-bottom: 1px solid var(--line-dark); }
  .site-nav a { padding: .9rem 0; font-size: .9rem; opacity: .85; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-header .container { padding: 10px 18px; }
  .site-logo img { width: 160px; }
  .project-grid, .expertise, .about-split, .experience, .contact__inner, .content-grid, .skills, .cs-gallery--two { grid-template-columns: 1fr; }
  .project-card--large .project-card__media { aspect-ratio: 16 / 10; }
  .process { grid-template-columns: 1fr 1fr; }
  .group-head { margin-top: 3.5rem; }
  .group-chip { font-size: .95rem; }
  .button { width: 100%; }
}

/* ---------- Ask about Ajay: a Figma comment pin that opens a small assistant (src/js/ask-ajay.js) ---------- */
.ask-ajay { position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 90; font-size: 1rem; }
/* the pin: Figma's comment pin shape (round, pointed bottom-left) holding Ajay's photo */
.ask-ajay__pin { position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50% 50% 50% 6px; background: var(--white); cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 10, 40, .12), 0 16px 32px -12px rgba(20, 10, 40, .45); opacity: 0; transform: translateY(12px) scale(.6); pointer-events: none;
  transition: opacity .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s; }
.ask-ajay.is-shown .ask-ajay__pin { opacity: 1; transform: none; pointer-events: auto; }
.ask-ajay__pin img { width: 44px; height: 44px; border-radius: 50% 50% 50% 4px; object-fit: cover; }
.ask-ajay__pin:hover { transform: scale(1.06); }
.ask-ajay__pin:focus-visible { outline: 2px solid #0d99ff; outline-offset: 3px; }
.ask-ajay.is-open .ask-ajay__pin { box-shadow: 0 0 0 2px #0d99ff, 0 16px 32px -12px rgba(20, 10, 40, .45); }
.ask-ajay__badge { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #fff; box-shadow: 0 0 0 2px #fff;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2) 55%, var(--grad-4)); }
/* first-time guide: a small dark Figma tooltip pointing at the pin; the pin pulses meanwhile */
.ask-ajay__nudge { position: absolute; right: 68px; bottom: 13px; display: flex; width: max-content; max-width: calc(100vw - 110px);
  padding: 0; border-radius: 8px; background: #2c2c2c; color: #fff; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55);
  animation: nudge-in .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.ask-ajay__nudge::after { content: ""; position: absolute; right: -4px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 2px; background: #2c2c2c; transform: rotate(45deg); }
.ask-ajay__nudge[hidden] { display: none; }
.ask-ajay__nudge.is-leaving { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.ask-ajay__nudge button { border: 0; background: none; color: inherit; font-family: var(--font); cursor: pointer; text-align: left; }
.ask-ajay__nudge-open { padding: .55rem .85rem; font-size: .88rem; font-weight: 500; white-space: nowrap; }
@keyframes nudge-in { from { opacity: 0; transform: translateX(10px) scale(.92); } }
.ask-ajay.is-guiding .ask-ajay__pin::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #0d99ff; animation: pin-pulse 1.6s ease-out 3; pointer-events: none; }
@keyframes pin-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
/* the panel: Figma's comment thread popover (compact UI type, hairlines, Figma blue for actions) */
.ask-ajay__panel { position: absolute; right: 0; bottom: calc(100% + 12px); display: flex; flex-direction: column; width: min(340px, calc(100vw - 32px)); height: min(520px, calc(100svh - 140px));
  overflow: hidden; border-radius: 13px; background: var(--white); color: #1e1e1e; font-size: 13px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 2px 5px rgba(0, 0, 0, .08), 0 18px 48px -12px rgba(0, 0, 0, .28);
  transform-origin: 100% 100%; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .2s, transform .3s var(--ease-out); }
.ask-ajay.is-open .ask-ajay__panel { opacity: 1; transform: none; }
.ask-ajay__panel[hidden] { display: none; }
.ask-ajay__head { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5rem; padding: .7rem .6rem .7rem 1rem; border-bottom: 1px solid #e6e6e6; }
.ask-ajay__title { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: 13px; font-weight: 600; }
.ask-ajay__spark { color: #9747ff; transform-origin: 50% 50%; }
.ask-ajay__badge svg { transform-origin: 50% 50%; }
/* the sparkle twinkles now and then; while the assistant thinks or streams it spins through the brand colours */
@media (prefers-reduced-motion: no-preference) {
  .ask-ajay.is-open .ask-ajay__spark { animation: spark-twinkle 4s ease-in-out infinite; }
  .ask-ajay.is-shown:not(.is-open) .ask-ajay__badge svg { animation: spark-twinkle 4s ease-in-out 1s infinite; }
  .ask-ajay.is-working .ask-ajay__spark { animation: spark-work 1.1s linear infinite; }
}
@keyframes spark-twinkle { 0%, 82%, 100% { transform: none; } 88% { transform: rotate(45deg) scale(1.3); } 94% { transform: rotate(90deg) scale(.9); } }
@keyframes spark-work { 0% { transform: rotate(0) scale(1); color: #9747ff; } 33% { color: var(--grad-2); } 50% { transform: rotate(180deg) scale(1.2); } 66% { color: var(--grad-4); } 100% { transform: rotate(360deg) scale(1); color: #9747ff; } }
.ask-ajay__sub { grid-column: 1; margin: .1rem 0 0; color: #8c8c8c; font-size: 11px; }
.ask-ajay__close { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: #5e5e5e; cursor: pointer; }
.ask-ajay__close:hover { background: #f0f0f0; color: #1e1e1e; }
.ask-ajay__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .25rem 0 .5rem; }
/* each message is a comment: avatar, name and time on one line, the text below, hairlines between */
.ask-ajay__c { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .55rem; padding: .8rem 1rem; }
.ask-ajay__c + .ask-ajay__c { border-top: 1px solid #f0f0f0; }
.ask-ajay__av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
span.ask-ajay__av, .ask-ajay__me { display: grid; place-items: center; background: #14ae5c; color: #fff; font-size: 11px; font-weight: 600; }
.ask-ajay__from { display: flex; align-items: baseline; gap: .4rem; margin: 0 0 .15rem; font-size: 12px; }
.ask-ajay__from b { font-weight: 600; }
.ask-ajay__from span { color: #8c8c8c; font-size: 11px; }
.ask-ajay__text, .ask-ajay__body { margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ask-ajay__body ul { margin: .3rem 0 0; padding-left: 1rem; }
.ask-ajay__body li { margin-bottom: .2rem; }
.ask-ajay__body a { color: #0d99ff; font-weight: 500; text-decoration: none; }
.ask-ajay__body a:hover { text-decoration: underline; }
.ask-ajay__w { position: relative; opacity: 0; transition: opacity .32s ease-out; }
.ask-ajay__w.is-in { opacity: 1; }
.ask-ajay__w.is-last::after { content: ""; position: absolute; left: 100%; top: .15em; width: .4em; height: 1em; margin-left: .16em; border-radius: 2px; background: #9747ff; }
/* quick replies under the latest answer, like Figma's small secondary buttons */
.ask-ajay__chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .1rem 1rem .6rem calc(1rem + 24px + .55rem); }
.ask-ajay__chips button { padding: .3rem .6rem; border: 1px solid #e6e6e6; border-radius: 6px; background: var(--white); color: #1e1e1e; font: 500 12px/1.3 var(--font); cursor: pointer; transition: border-color .15s, background-color .15s; }
.ask-ajay__chips button:hover { border-color: #0d99ff; background: #f2f9ff; }
/* reply box */
.ask-ajay__composer { display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem .8rem; border-top: 1px solid #e6e6e6; }
.ask-ajay__me { flex: none; width: 24px; height: 24px; border-radius: 50%; }
.ask-ajay__field { flex: 1; display: flex; align-items: center; gap: .4rem; min-width: 0; padding: .25rem .3rem .25rem .7rem; border: 1px solid #e6e6e6; border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
.ask-ajay__field:focus-within { border-color: #0d99ff; box-shadow: 0 0 0 1px #0d99ff; }
.ask-ajay__field input { flex: 1; min-width: 0; padding: .35rem 0; border: 0; background: none; color: #1e1e1e; font: 400 13px var(--font); outline: none; }
/* phones and tablets zoom into any field under 16px when it's focused: keep the typing at 16px there */
@media (pointer: coarse), (max-width: 767px) { .ask-ajay__field input { font-size: 16px; } }
.ask-ajay__field button { flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #0d99ff; color: #fff; cursor: pointer; transition: background-color .15s; }
.ask-ajay__field button:disabled { background: #e6e6e6; color: #b3b3b3; cursor: default; }
.ask-ajay :is(.ask-ajay__chips button, .ask-ajay__close, .ask-ajay__field button, .ask-ajay__nudge button):focus-visible { outline: 2px solid #0d99ff; outline-offset: 2px; }
@media (max-width: 600px) {
  .ask-ajay__panel { position: fixed; left: 12px; right: 12px; bottom: 84px; width: auto; height: min(72svh, 560px); }
  .ask-ajay__nudge { right: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-ajay__pin, .ask-ajay__panel, .ask-ajay__w { transition: none; }
  .ask-ajay__nudge { animation: none; }
  .ask-ajay.is-guiding .ask-ajay__pin::after { animation: none; display: none; }
}
/* Ask about Ajay: thinking status, streaming caret, sources and project cards */
.ask-ajay__think { margin: .1rem 0 0; font-size: 13px; font-weight: 500;
  background: linear-gradient(90deg, var(--ink-faint) 0%, var(--ink-faint) 35%, var(--ink) 50%, var(--ink-faint) 65%, var(--ink-faint) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: think-shimmer 1.4s linear infinite; }
@keyframes think-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.ask-ajay__src { margin: .55rem 0 0; color: var(--ink-faint); font-size: .76rem; }
.ask-ajay__body .ask-ajay__src a { color: var(--ink-soft); font-weight: 500; text-decoration-color: rgba(26, 20, 36, .25); }
/* a project preview card inside the chat, in the project's colours */
.ask-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: .3rem .75rem; margin-top: .6rem; padding: .45rem; border-radius: 10px; background: var(--tint, var(--paper-tint)); color: var(--ink); text-decoration: none !important; }
.ask-card.is-in { animation: card-in .45s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } }
.ask-card img { grid-row: span 2; width: 88px; height: 66px; border-radius: 9px; object-fit: cover; }
.ask-card__text { display: grid; gap: .1rem; align-content: start; min-width: 0; }
.ask-card__text b { font-size: .88rem; }
.ask-card__text > span { color: var(--ink-soft); font-size: .8rem; line-height: 1.35; }
.ask-card__text em { color: var(--accent, var(--grad-2)); font-family: var(--font-display); font-size: .82rem; font-style: normal; font-weight: 700; }
.ask-card__go { align-self: end; justify-self: start; padding: .3rem .65rem; white-space: nowrap; border-radius: 8px; background: var(--white); font-size: .76rem; font-weight: 600; }
.ask-card:hover .ask-card__go { background: var(--ink); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .ask-ajay__think, .ask-card.is-in { animation: none; } }
/* small responsible-gambling / context note at the end of a case study */
.prose .cs-note { margin-top: 1.75rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--paper-tint); color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
/* click-to-play video in case studies */
.prose .cs-video { margin: 1.25rem 0 1.5rem; }
.yt-lite, .yt-lite__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius-lg); background: #000; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .9; transition: opacity .3s, scale .6s var(--ease-out, ease); }
.yt-lite:hover img { opacity: 1; scale: 1.02; }
.yt-lite__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--ease-out, ease); }
.yt-lite:hover .yt-lite__play { transform: scale(1.08); }
.yt-lite:focus-visible { outline: 2px solid #0d99ff; outline-offset: 3px; }
.prose .cs-video figcaption { margin-top: .6rem; color: var(--ink-faint); font-size: .85rem; }

/* Screen bentos (Betr): real screens in phone and browser frames on the project tint.
   Tiles rise in one after another as the bento arrives; each phone screen slowly scrolls through its page. */
.cs-shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1rem); margin: 1.25rem 0 2rem; }
.cs-shot { grid-column: span var(--c, 4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem; margin: 0; padding: clamp(1rem, 2.2vw, 1.75rem) clamp(.75rem, 1.6vw, 1.25rem) 1rem; border-radius: var(--radius-lg);
  background: radial-gradient(rgba(9, 58, 211, .12) 1.2px, transparent 1.5px) 0 0 / 18px 18px, var(--tint, var(--paper-tint)); }
.cs-shot picture { display: contents; }
.prose .cs-shot img { border-radius: 0; }
.cs-shot figcaption { color: var(--ink-soft); font-size: .82rem; text-align: center; line-height: 1.35; }
.cs-phone { width: min(100%, 230px); aspect-ratio: 390 / 844; padding: 6px; border-radius: 30px; background: #0b0f1e; box-shadow: 0 0 0 1.5px #2a3150, 0 24px 44px -24px rgba(10, 20, 60, .6); transition: transform .5s var(--ease-out, ease); }
.cs-phone > *:not(img), .cs-phone img { display: block; }
.cs-phone { overflow: hidden; }
.cs-phone img { width: 100%; height: auto; border-radius: 24px !important; }
.cs-browser, .cs-flat { width: 100%; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 20, 60, .08), 0 24px 44px -26px rgba(10, 20, 60, .55); transition: transform .5s var(--ease-out, ease); }
.cs-browser__bar { display: flex; gap: 6px; padding: 9px 12px; background: #eef0f6; }
.cs-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.cs-browser__bar i:nth-child(2) { background: #febc2e; } .cs-browser__bar i:nth-child(3) { background: #28c840; }
.cs-browser img, .cs-flat img { display: block; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .cs-shots:not(.is-visible):not(.is-revealed) .cs-shot { opacity: 0; transform: translateY(36px) scale(.98); }
  .cs-shots .cs-shot { transition: opacity .8s var(--ease-out, ease), transform 1s var(--ease-out, ease); }
  .cs-shots .cs-shot:nth-child(2) { transition-delay: .12s; }
  .cs-shots .cs-shot:nth-child(3) { transition-delay: .24s; }
  /* while a bento is on screen (site.js adds .is-on): frames float on their own rhythm,
     phone screens scroll through their pages, wide screens pan slowly */
  .cs-shots.is-on .cs-phone, .cs-shots.is-on .cs-browser, .cs-shots.is-on .cs-flat { animation: shot-float 6s ease-in-out infinite; }
  .cs-shots.is-on .cs-shot:nth-child(2) :is(.cs-phone, .cs-browser, .cs-flat) { animation-duration: 7s; animation-delay: -2s; }
  .cs-shots.is-on .cs-shot:nth-child(3) :is(.cs-phone, .cs-browser, .cs-flat) { animation-duration: 6.5s; animation-delay: -4s; }
  .cs-shots.is-on .cs-phone img { animation: screen-scroll 11s ease-in-out .4s infinite alternate; }
  .cs-shots.is-on .cs-shot:nth-child(2) .cs-phone img { animation-delay: 1.6s; }
  .cs-shots.is-on .cs-shot:nth-child(3) .cs-phone img { animation-delay: 2.8s; }
  .cs-shots.is-on :is(.cs-browser, .cs-flat) img { animation: shot-pan 14s ease-in-out infinite alternate; transform-origin: 30% 20%; }
}
@keyframes shot-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes shot-pan { from { transform: scale(1); } to { transform: scale(1.07) translate(-1.5%, -1.5%); } }
@keyframes screen-scroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
/* hover: the frame tilts toward the pointer (site.js sets --rx / --ry) */
.cs-shot { perspective: 900px; }
.cs-shot :is(.cs-phone, .cs-browser, .cs-flat) { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease-out, ease); }
.cs-shot:hover :is(.cs-phone, .cs-browser, .cs-flat) { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
.cs-phone { container-type: size; }
@media (max-width: 767px) {
  .cs-shot { grid-column: span 6; }
  .cs-shot--wide { grid-column: span 12; }
  .cs-phone { width: min(100%, 200px); }
}

/* ---------- Words preloader (home, first visit): see base.njk ---------- */
.preloader { display: none; }
.is-preloading { overflow: hidden; }
.is-preloading .preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(rgba(20, 10, 40, .12) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--paper);
  transition: transform .8s cubic-bezier(.76, 0, .24, 1) .2s; } /* Skiper's swipe: a beat, then up */
.preloader__word { position: relative; display: flex; align-items: center; justify-content: center; gap: .55em; box-sizing: border-box; margin: 0; padding: .14em .3em .2em; color: var(--ink); font: 700 clamp(2.6rem, 7vw, 5rem)/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap;
  transition: width .18s cubic-bezier(.2, .8, .2, 1); animation: preload-in .6s ease-out both; }
.preloader__text { display: inline-block; }
.preloader__logo { position: absolute; top: clamp(18px, 3vw, 30px); left: 50%; translate: -50% 0; animation: preload-in .6s ease-out .1s both; }
.preloader__logo img { display: block; width: 116px; height: auto; }
/* the frame name above the selection's top-left corner, like the section titles */
.preloader__label { position: absolute; bottom: 100%; left: 0; display: flex; align-items: center; gap: .3rem; margin-bottom: .45rem; color: #0d99ff; font: 500 .85rem/1.2 var(--font); letter-spacing: 0; animation: preload-in .5s ease-out .2s both; }
.preloader__label span { opacity: .8; }
/* a Figma selection that resizes to each word */
.preloader__sel { position: absolute; inset: 0; border: 1.5px solid #0d99ff; pointer-events: none; animation: eq-select .5s cubic-bezier(.65, 0, .35, 1) .25s both; }
.preloader__sel b { position: absolute; width: 9px; height: 9px; border: 1.5px solid #0d99ff; background: #fff; }
.preloader__sel b:nth-child(1) { top: -5px; left: -5px; } .preloader__sel b:nth-child(2) { top: -5px; right: -5px; }
.preloader__sel b:nth-child(3) { bottom: -5px; left: -5px; } .preloader__sel b:nth-child(4) { bottom: -5px; right: -5px; }
/* Ajay's logo, small, top centre (a dark-lettering version made for the light cover) */
/* a Figma-style toast in Ajay's voice along the bottom: a spinner, then a tick on the last line */
.preloader__toast { position: absolute; left: 50%; bottom: clamp(22px, 5vh, 44px); display: flex; align-items: center; gap: .6rem; max-width: calc(100vw - 32px); margin: 0; padding: .65rem 1rem .65rem .8rem;
  border-radius: 10px; background: #2c2c2c; color: #fff; font-size: .88rem; font-weight: 500; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .45);
  translate: -50% 0; animation: toast-in .55s cubic-bezier(.34, 1.56, .64, 1) .35s both; }
.preloader__msgs { position: relative; display: block; overflow: hidden; height: 1.35em; white-space: nowrap; transition: width .38s cubic-bezier(.2, .8, .2, 1); }
.preloader__msg { position: absolute; left: 0; top: 0; line-height: 1.35em; }
.preloader__msg:only-child { position: static; display: block; }
.preloader__spin { flex: none; position: relative; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); border-top-color: #fff; animation: toast-spin .7s linear infinite; }
.preloader__toast.is-done .preloader__spin { border-color: #14ae5c; background: #14ae5c; animation: tick-pop .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.preloader__toast.is-done .preloader__spin::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes toast-in { from { opacity: 0; translate: -50% 24px; scale: .9; } }
@keyframes toast-spin { to { transform: rotate(360deg); } }
@keyframes tick-pop { from { transform: scale(.3); } }
.preloader.is-leaving .preloader__toast { opacity: 0; translate: -50% 12px; transition: opacity .3s, translate .4s; }
@media (max-width: 600px) { .preloader__toast { font-size: .78rem; } }
/* the curved edge under the cover: it flattens as the cover lifts */
.preloader__curve { position: absolute; left: -10%; right: -10%; top: calc(100% - 1px); height: 26vh; border-radius: 0 0 50% 50%; background: var(--paper); transform-origin: 50% 0; transition: transform .8s cubic-bezier(.76, 0, .24, 1) .2s; }
.preloader.is-leaving { transform: translateY(-100%); }
.preloader.is-leaving .preloader__curve { transform: scaleY(0); }
.preloader.is-leaving .preloader__word { opacity: 0; transform: translateY(-80px); transition: opacity .35s, transform .6s cubic-bezier(.76, 0, .24, 1), width .18s; }
@keyframes preload-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Site-wide "You" cursor (site.js adds .has-you-cursor on desktop pointers) ---------- */
.you-cursor { display: none; }
.has-you-cursor, .has-you-cursor * { cursor: none !important; }
.has-you-cursor :is(input, textarea, select, [contenteditable="true"]) { cursor: text !important; }
.has-you-cursor .hero-wf, .has-you-cursor .hero-wf * { cursor: auto !important; } /* the hero has its own "You" */
.has-you-cursor .hero-wf :is(a, button) { cursor: pointer !important; }
.has-you-cursor .you-cursor { position: fixed; left: 0; top: 0; z-index: 3000; display: block; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.has-you-cursor .you-cursor.is-on { opacity: 1; }
.you-cursor__arrow { position: absolute; left: -16px; top: -12px; width: 48px; height: 48px; max-width: none; transform-origin: 16px 12px; transition: transform .2s var(--ease-out, ease); }
.you-cursor__tag { position: absolute; left: 26px; top: 30px; display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border: 1.5px solid #fff; border-radius: 3px 18px 18px;
  background: #000; color: #fff; font: 700 14px/1 var(--font); letter-spacing: .2px; white-space: nowrap; box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .5); transform-origin: 0 0; transition: transform .25s var(--ease-out, ease); }
.you-cursor__icon { position: relative; display: grid; place-items: center; width: 17px; height: 17px; }
.you-cursor__icon img { position: absolute; inset: 0; width: 17px; height: 17px; }
.you-cursor__icon i { position: relative; width: 4px; height: 4px; border-radius: 50%; background: #000; }
@media (prefers-reduced-motion: no-preference) { .you-cursor__icon img:first-child { animation: spin 9s linear infinite; } }
/* over links and buttons the tag grows a little; pressing squeezes it */
.you-cursor.is-link .you-cursor__tag { transform: scale(1.12); }
.you-cursor.is-link .you-cursor__arrow { transform: scale(1.08); }
.you-cursor.is-down .you-cursor__arrow, .you-cursor.is-down .you-cursor__tag { transform: scale(.88); }

/* Nudgeable titles (site.js): grab, drag a little with a rubber band, spring back on release */
.is-nudgeable { touch-action: none; user-select: none; -webkit-user-select: none; transition: translate .55s cubic-bezier(.34, 1.56, .64, 1); }
.is-nudgeable.is-nudging { transition: none; z-index: 5; }
.nudge-badge { position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; padding: 3px 7px; border-radius: 4px; background: #0d99ff; color: #fff;
  font: 600 11px/1.2 var(--font); letter-spacing: .02em; white-space: pre; pointer-events: none; opacity: 0; transition: opacity .2s; -webkit-text-fill-color: #fff; }
.is-nudging .nudge-badge { opacity: 1; }

/* profile photos: not draggable, no save menu on long-press (site.js blocks the right-click menu) */
.is-protected, .ask-ajay img, .about-photo__frame img, #services .ask img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* Photography as a bento (About): a 12-column grid with big, small and wide tiles */
.photo-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 200px); gap: clamp(.5rem, 1vw, .85rem); }
.photo-bento__tile { grid-column: span 3; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: #e9e8ec; }
.photo-bento__tile picture { display: contents; }
.photo-bento__tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: scale .8s var(--ease-out, ease); }
.photo-bento__tile:hover img { scale: 1.05; }
.photo-bento__tile--1, .photo-bento__tile--10 { grid-column: span 6; grid-row: span 2; }
.photo-bento__tile--11, .photo-bento__tile--12 { grid-column: span 6; }
@media (max-width: 767px) {
  .photo-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .photo-bento__tile, .photo-bento__tile--11, .photo-bento__tile--12 { grid-column: span 1; }
  .photo-bento__tile--1, .photo-bento__tile--10 { grid-column: span 2; grid-row: span 2; }
}

/* Footer sign-off: "Designed" as a selected Figma layer, "developed" as a code tag, a beating heart */
.site-footer__copy { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .4em; color: rgba(255, 255, 255, .55); font-size: .9rem; }
.ft-design { position: relative; padding: .05em .3em .1em; color: #fff; font-weight: 600; }
.ft-sel { position: absolute; inset: 0; border: 1px solid #0d99ff; pointer-events: none; }
.ft-sel i { position: absolute; width: 5px; height: 5px; border: 1px solid #0d99ff; background: #fff; }
.ft-sel i:nth-child(1) { top: -3px; left: -3px; } .ft-sel i:nth-child(2) { top: -3px; right: -3px; }
.ft-sel i:nth-child(3) { bottom: -3px; left: -3px; } .ft-sel i:nth-child(4) { bottom: -3px; right: -3px; }
.ft-code { padding: .1em .45em; border-radius: 6px; background: rgba(255, 255, 255, .07); color: #fff; font: 500 .85em/1.2 ui-monospace, "SF Mono", Menlo, monospace; }
.ft-code span { color: var(--grad-2); }
.ft-heart { display: inline-block; }
.ft-name { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .ft-heart { animation: heartbeat 2.4s ease-in-out infinite; }
  /* Entry, the moment the footer scrolls into view: the line rises in, the selection draws itself
     around "Designed", <developed /> types out, then the heart pops and keeps beating */
  .js .site-footer:not(.is-in) :is(.site-footer__copy, .site-footer__top) { opacity: 0; transform: translateY(14px); }
  .js .site-footer:not(.is-in) :is(.ft-sel, .ft-sel i, .ft-heart) { opacity: 0; }
  .js .site-footer:not(.is-in) .ft-code { clip-path: inset(0 100% 0 0); }
  .js .site-footer.is-in :is(.site-footer__copy, .site-footer__top) { animation: ft-rise .6s var(--ease-out, ease) both; }
  .js .site-footer.is-in .site-footer__top { animation-delay: .15s; }
  .js .site-footer.is-in .ft-sel { transform-origin: 0 0; animation: ft-draw .45s var(--ease-out, ease) .25s both; }
  .js .site-footer.is-in .ft-sel i { animation: ft-pop .3s var(--ease-out, ease) .6s both; }
  .js .site-footer.is-in .ft-code { animation: ft-type .7s steps(14, end) .55s both; }
  .js .site-footer.is-in .ft-heart { animation: ft-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1.2s both, heartbeat 2.4s ease-in-out 1.8s infinite; }
  /* ...and last, the name: it rises in, and the brand gradient sweeps across it once */
  .js .site-footer:not(.is-in) .ft-name { opacity: 0; }
  .js .site-footer.is-in .ft-name { display: inline-block; color: transparent; -webkit-background-clip: text; background-clip: text;
    background-image: linear-gradient(100deg, #fff 35%, var(--grad-1, #b16cea) 45%, var(--grad-2, #ff5e69) 50%, var(--grad-3, #ffa84b) 55%, #fff 65%); background-size: 300% 100%;
    animation: ft-rise .5s var(--ease-out, ease) 1.45s both, ft-sweep 1.4s ease-in-out 1.75s both; }
}
@keyframes ft-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ft-draw { from { opacity: 0; transform: scale(0, 0); } 1% { opacity: 1; } }
@keyframes ft-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes ft-pop { from { opacity: 0; transform: scale(0); } }
@keyframes ft-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes heartbeat { 0%, 40%, 100% { transform: scale(1); } 10%, 30% { transform: scale(1.25); } 20% { transform: scale(1.05); } }

/* Parallax between the hero and the work sheet: as you scroll, the hero's content lags behind
   (drifting down at ~70% of the scroll), settles back slightly and dims, so the work sheet visibly
   slides over it; the work heading then rises in a little faster than the page to meet it.
   Wide screens only: on phones the page just scrolls. */
@supports (animation-timeline: scroll()) {
  @media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .hero-wf__intro { animation: hero-recede linear both; animation-timeline: scroll(root); animation-range: 0 100vh; transform-origin: 50% 0; }
    .work-canvas > .container > .section-head { animation: head-catch-up linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes hero-recede { to { transform: translate3d(0, 30vh, 0) scale(.94); opacity: .35; } }
@keyframes head-catch-up { from { transform: translate3d(0, 90px, 0); } }

/* "How I can help" as a FigJam board: the dot grid covers the whole section, a sticky note from Ajay
   sits beside the heading, and FigJam's tool tray floats at the bottom of the screen while it's in view */
.figjam { background: radial-gradient(rgba(30, 20, 50, .13) 1.1px, transparent 1.4px) 0 0 / 24px 24px, #f7f7f9; }
.figjam > .container { position: relative; }
.figjam .ask { padding: 0; border-radius: 0; background: none; }
.fj-sticky { position: absolute; top: .5rem; right: clamp(1rem, 6vw, 6rem); width: 210px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem 1.1rem .8rem;
  background: #ffe28a; rotate: 3deg; box-shadow: 0 1px 2px rgba(60, 40, 0, .12), 0 18px 30px -16px rgba(60, 40, 0, .4); }
.fj-sticky p { margin: 0; color: #3b2f0a; font-size: 1.05rem; font-weight: 500; line-height: 1.35; }
.fj-sticky span { color: rgba(59, 47, 10, .55); font-size: .75rem; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { .fj-sticky { transition: rotate .4s var(--ease-out, ease), translate .4s var(--ease-out, ease); } .fj-sticky:hover { rotate: -1deg; translate: 0 -4px; } }
.fj-toolbar { position: sticky; bottom: 20px; z-index: 5; display: flex; align-items: center; gap: 4px; width: max-content; margin: 3rem auto 0; padding: 6px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 10, 40, .06), 0 2px 4px rgba(20, 10, 40, .06), 0 16px 36px -16px rgba(20, 10, 40, .35); }
.fj-tool { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #1e1e1e; font: 600 1.15rem/1 var(--font); }
.fj-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fj-tool.is-on { background: #0d99ff; color: #fff; }
.fj-tool.is-on svg { fill: currentColor; }
.fj-tool--sticky i { width: 24px; height: 24px; border-radius: 2px 2px 8px 2px; background: #ffe28a; box-shadow: 0 2px 4px rgba(60, 40, 0, .2); rotate: -6deg; }
.fj-tool--shapes { position: relative; }
.fj-tool--shapes i { position: absolute; left: 8px; top: 9px; width: 15px; height: 15px; border-radius: 3px; background: #a259ff; }
.fj-tool--shapes b { position: absolute; right: 8px; bottom: 8px; width: 15px; height: 15px; border-radius: 50%; background: #ff7262; mix-blend-mode: multiply; }
.fj-tool--stamp { font-size: 1.25rem; }
.fj-sep { width: 1px; height: 24px; margin-inline: 4px; background: rgba(20, 10, 40, .1); }
@media (max-width: 991px) { .fj-sticky { display: none; } }
@media (max-width: 600px) { .fj-toolbar { display: none; } }
/* the sticky can be picked up and moved around the board */
.fj-sticky { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transform: translate(var(--dx, 0px), var(--dy, 0px)); z-index: 4; }
.fj-sticky.is-dragging { cursor: grabbing; rotate: 0deg; scale: 1.04; box-shadow: 0 2px 4px rgba(60, 40, 0, .12), 0 30px 50px -18px rgba(60, 40, 0, .45); transition: rotate .2s, scale .2s, box-shadow .2s; }
/* Stamps: the stamp tool opens a tray; with an emoji picked, each click on the board stamps it there */
button.fj-tool { border: 0; background: none; cursor: pointer; transition: background-color .2s; }
button.fj-tool:not(.is-on):hover { background: #f0f0f3; }
.fj-toolbar { position: sticky; }
.fj-tool--stamp[aria-expanded="true"], .fj-tool--stamp.is-on { background: #e8f4ff; }
.fj-stamps { position: absolute; bottom: calc(100% + 10px); right: 0; display: grid; grid-template-columns: repeat(4, 40px); gap: 4px; padding: 6px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 10, 40, .06), 0 16px 36px -16px rgba(20, 10, 40, .35); }
.fj-stamps[hidden] { display: none; }
.fj-stamps button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; font-size: 1.35rem; line-height: 1; cursor: pointer; transition: background-color .15s, transform .15s; }
.fj-stamps button:hover { background: #f0f0f3; transform: scale(1.12); }
.fj-stamps button[aria-pressed="true"] { background: #e8f4ff; }
.figjam.is-stamping, .figjam.is-stamping * { cursor: crosshair; }
.fj-stamp { position: absolute; z-index: 3; translate: -50% -50%; border: 0; padding: 0; background: none; font-size: 2.1rem; line-height: 1; cursor: pointer;
  filter: drop-shadow(0 6px 8px rgba(20, 10, 40, .18)); }
@media (prefers-reduced-motion: no-preference) {
  .fj-stamp { animation: stamp-in .45s cubic-bezier(.3, 1.7, .5, 1) both; }
  .fj-stamp.is-leaving { animation: stamp-out .2s ease-in both; }
}
@keyframes stamp-in { from { scale: 0; rotate: -25deg; } }
@keyframes stamp-out { to { scale: 0; opacity: 0; } }
/* the "You" cursor carries the picked emoji while stamping */
.you-cursor[data-stamp]::before { content: attr(data-stamp); position: absolute; left: -16px; top: -18px; font-size: 30px; line-height: 1; }
.you-cursor[data-stamp] .you-cursor__arrow { opacity: 0; }
.has-you-cursor .figjam.is-stamping, .has-you-cursor .figjam.is-stamping * { cursor: none !important; }

/* The chat pin stays alive while closed: it floats gently (the badge's sparkle twinkles too) */
@media (prefers-reduced-motion: no-preference) {
  .ask-ajay.is-shown:not(.is-open):not(:hover) .ask-ajay__pin { animation: pin-float 3.6s ease-in-out infinite; }
}
@keyframes pin-float { 50% { translate: 0 -4px; } }

/* ---------- About bento: one Button, three places ----------
   A shared loop (site.js) steps the same Button through Primary → Secondary → Ghost, and each tile shows
   it from its own side: the component set selects it, the code retypes its variant, an agent works on it. */
.comp-set__props { position: absolute; top: .5rem; right: .75rem; display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .72rem; color: #8a8597; }
.comp-set__props b { min-width: 4.6rem; padding: .2rem .5rem; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 10, 40, .08); color: var(--ink); font-weight: 600; transition: background-color .3s; }
.comp-set__props b + span { margin-left: .35rem; }
.comp-set__props b.is-changed { background: #e8f4ff; }
.comp-set .v { transition: opacity .45s, scale .45s cubic-bezier(.34, 1.56, .64, 1); }
.comp-set.is-stepping .v:not(.is-picked) { opacity: .55; }
.comp-set .v.is-picked { scale: 1.03; }
.comp-set__pick { transform: translate(var(--x, 0), var(--y, 0)); width: var(--w, 0); height: var(--h, 0); transition: transform .6s cubic-bezier(.65, 0, .35, 1), width .6s cubic-bezier(.65, 0, .35, 1), height .6s cubic-bezier(.65, 0, .35, 1); }
.comp-set__pick i { position: absolute; width: 7px; height: 7px; border: 1.5px solid #0d99ff; background: #fff; }
.comp-set__pick i:nth-child(1) { top: -4px; left: -4px; } .comp-set__pick i:nth-child(2) { top: -4px; right: -4px; }
.comp-set__pick i:nth-child(3) { bottom: -4px; left: -4px; } .comp-set__pick i:nth-child(4) { bottom: -4px; right: -4px; }

/* design to code: an editor tab, a pulse along the arrow, the variant retyped, the preview restyled */
.d2c__frame b span { color: inherit; }
.d2c__btn { transition: background .45s, color .45s, box-shadow .45s; }
.d2c__btn[data-v="secondary"] { background: #2a2930 !important; color: #fff !important; }
.d2c__btn[data-v="ghost"] { background: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(20, 10, 40, .25); color: var(--ink) !important; }
.d2c__arrow { overflow: visible; }
.d2c__pulse { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--grad-2), 0 0 12px var(--grad-2); opacity: 0; }
.d2c.is-sending .d2c__pulse { animation: d2c-send .55s cubic-bezier(.65, 0, .35, 1); }
@keyframes d2c-send { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; translate: 22px 0; } }
.d2c__code { padding: 0 1rem .8rem; overflow: hidden; }
.d2c__code > span { display: block; white-space: pre; }
.d2c__code > .t { color: #ff8fa0; }
.d2c__code q { color: #9be6c1; } .d2c__code q::before, .d2c__code q::after { content: '"'; }
.d2c__code em { font-style: normal; }
.d2c__tab { display: flex !important; align-items: center; gap: 5px; margin: 0 -1rem .6rem; padding: .5rem .8rem; border-bottom: 1px solid rgba(255, 255, 255, .07); color: rgba(230, 225, 255, .55); font-size: .7rem; }
.d2c__tab i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.d2c__tab i:nth-child(3) { margin-right: .4rem; }
.d2c__caret, .ai-run__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: currentColor; text-decoration: none; display: none; }
.d2c.is-typing .d2c__caret, .ai-run.is-typing .ai-run__caret { display: inline-block; animation: ask-blink .8s steps(1) infinite; }

/* AI-first: an agent task typed out for the tool that's lit up */
.ai-run { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; max-width: 100%; margin: 1rem 0 0; padding: .45rem .75rem; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 10, 40, .06), 0 10px 22px -16px rgba(20, 10, 40, .45); color: var(--ink); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.ai-run svg { flex: none; color: #9747ff; }
.ai-run__ok { color: #14ae5c; opacity: 0; scale: .4; transition: opacity .25s, scale .35s cubic-bezier(.34, 1.56, .64, 1); }
.ai-run.is-done .ai-run__ok { opacity: 1; scale: 1; }
.ai-apps li { transition: translate .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, opacity .3s; }
.ai-apps.is-stepping li:not(.is-on) { opacity: .6; }
.ai-apps li.is-on { translate: 0 -6px; box-shadow: 0 0 0 2px #0d99ff, 0 16px 26px -14px rgba(13, 153, 255, .55); }
@media (max-width: 600px) {
  /* narrow tiles: the properties sit on their own line under the "Button" label */
  .comp-set__props { position: static; margin: 0 0 1rem; }
  .comp-set__props b { min-width: 0; }
}
/* Works grid: each project is its own soft panel in its project tint (no outline), the image inset like a
   framed Figma frame; a faint divider splits the headline and results from the role and tools */
.project-grid { gap: 1.5rem; }
.project-card { display: flex; flex-direction: column; padding: .6rem; border-radius: 28px; background: color-mix(in srgb, var(--tint, #f1f0f5) 60%, #fff); transition: background-color .35s; }
.project-card:hover { background: var(--tint, #f1f0f5); }
.project-card .project-card__media { border-radius: 22px; }
.project-card .project-card__body { flex: 1; margin-top: 0; padding: 1.2rem .9rem .8rem; }
.project-card__name span { margin-left: .6rem; color: var(--ink-faint); font-weight: 500; }
.project-card .project-card__meta { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(20, 10, 40, .08); }
.project-card .project-card__results li, .project-card .project-card__tools li { background: rgba(255, 255, 255, .75); }
.project-card .project-card__go { border-color: transparent; background: #fff; }
.project-card .project-card__text { flex: 1; } /* so the divider runs the full width of the card */
/* Card body rhythm (4px scale): name 6 → title 14 → results; ≥20 above the divider, 16 below it.
   The role row sits at the bottom of every card, so dividers line up across a row and any spare
   height collects above the divider rather than under the role. */
.project-card .project-card__body { align-items: stretch; }
.project-card .project-card__go { align-self: flex-start; }
.project-card .project-card__text { display: flex; flex-direction: column; }
.project-card .project-card__name { margin-bottom: .375rem; }
.project-card .project-card__results { margin: .875rem 0 0; }
.project-card .project-card__title:has(+ .project-card__meta), .project-card .project-card__results { margin-bottom: 1.25rem; }
.project-card .project-card__meta { margin-top: auto; padding-top: 1rem; }

/* ---------- Home work: a Figma file ----------
   Wide screens: a light Figma window (the daytime twin of the hero's) pins while the section scrolls by.
   Toolbar, Pages + Layers, the canvas with the selected frame, and the Design panel with its properties.
   site.js selects the layer for each stretch of scroll. Phones / no script: the case cards as a list. */
.ws__window { display: none; }
.ws-list { display: grid; gap: 1.5rem; }
.ws-list .case-card { position: relative; top: auto; }
@media (min-width: 900px) {
  .js .ws-list { display: none; }
  .js .ws { --ws-w: min(92vw, 112rem); width: var(--ws-w); margin-inline: calc((100% - var(--ws-w)) / 2); height: calc(var(--n) * 45vh + 100vh); }
  .js .ws__window { display: grid; }
  /* the header and the window pin together as one piece, and let go together */
  .js .ws__sticky { position: sticky; top: 5.25rem; display: flex; flex-direction: column; height: calc(100svh - 6.75rem); min-height: 34rem; }
  .js .ws__sticky > .section-head { flex: none; margin-bottom: 1.25rem; padding-inline: calc((var(--ws-w) - min(var(--ws-w), var(--container, 80rem))) / 2); }
  .js .ws__sticky > .ws__window { flex: 1; min-height: 0; height: auto; }
  .ws__window { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr) 18rem; grid-template-rows: 2.75rem minmax(0, 1fr); height: 100%;
    overflow: clip; border-radius: 16px; background: #fff; color: #1e1e1e; font-size: 13px;
    box-shadow: 0 0 0 1px rgba(20, 10, 40, .08), 0 2px 6px rgba(20, 10, 40, .05), 0 40px 90px -50px rgba(20, 10, 40, .45); }

  /* toolbar */
  .ws__bar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 .75rem 0 1rem; border-bottom: 1px solid #ececf0; }
  .ws__path { display: flex; align-items: center; gap: .45rem; min-width: 0; margin: 0; color: #8b8794; white-space: nowrap; }
  .ws__path svg { flex: none; color: #1e1e1e; }
  .ws__path b { overflow: hidden; text-overflow: ellipsis; color: #1e1e1e; font-weight: 600; }
  .ws__tools { display: flex; gap: 2px; }
  .ws__tools i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: #4b4855; font: 600 13px/1 var(--font); font-style: normal; }
  .ws__tools i.is-on { background: #0d99ff; color: #fff; }
  .ws__bar-end { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; }
  .ws__me img { display: block; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #0d99ff; }
  /* "All frames": zoom the canvas out to every project at once (and back) */
  .ws__all { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem; border: 0; border-radius: 6px; background: none; color: #4b4855; font: 500 12px/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s; }
  .ws__all:hover { background: #f4f3f7; color: #1e1e1e; }
  .ws__all[aria-pressed="true"] { background: #e5f4ff; color: #0d99ff; }
  .ws__all:focus-visible { outline: 2px solid #0d99ff; outline-offset: 1px; }

  /* left sidebar: Pages and Layers */
  .ws__layers { display: flex; flex-direction: column; min-height: 0; padding: .9rem .6rem; border-right: 1px solid #ececf0; overflow: auto; }
  .ws__panel-title { margin: 0 .5rem .45rem; color: #1e1e1e; font-size: 12px; font-weight: 600; }
  .ws__panel-title--layers { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #ececf0; }
  .ws__page { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .4rem .5rem; color: #1e1e1e; }
  .ws__page svg { color: #1e1e1e; }
  .ws__list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
  .ws__layer { display: flex; align-items: center; gap: .5rem; padding: .48rem .5rem; border-radius: 6px; color: #4b4855; text-decoration: none; transition: background-color .2s, color .2s; }
  .ws__layer svg { flex: none; color: #9a96a6; transition: color .2s; }
  .ws__layer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ws__layer-year { flex: none; color: #a3a0ad; font-size: 11px; font-variant-numeric: tabular-nums; }
  .ws__layer:hover { background: #f4f3f7; color: #1e1e1e; }
  .ws__layer.is-active { background: #e5f4ff; color: #1e1e1e; font-weight: 600; }
  .ws__layer.is-active svg { color: #0d99ff; }
  .ws__layer:focus-visible { outline: 2px solid #0d99ff; outline-offset: -2px; }

  /* the canvas: Figma's dotted grey; one frame shows at a time and the others wait above or below */
  .ws__canvas { position: relative; min-width: 0; overflow: clip; background: radial-gradient(rgba(20, 10, 40, .11) 1px, transparent 1.3px) 0 0 / 20px 20px, #f5f5f7; }
  .ws__frame { position: absolute; inset: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3.5vw, 3.25rem); display: flex; flex-direction: column; opacity: 0; visibility: hidden;
    transform: translateY(48px) scale(.96); filter: blur(8px); transition: opacity .4s, transform .75s cubic-bezier(.16, 1, .3, 1), filter .4s, visibility 0s .75s; }
  .ws__frame.is-before { transform: translateY(-48px) scale(.96); }
  .ws__frame.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .5s .06s, transform .75s cubic-bezier(.16, 1, .3, 1), filter .5s .06s, visibility 0s; }
  .ws__frame-label { flex: none; margin: 0 0 .45rem; color: #0d99ff; font-size: 12px; font-weight: 500; }
  .ws__art { position: relative; flex: 1; min-height: 0; display: block; border-radius: 4px; background: var(--tint, #eef0f5); box-shadow: 0 1px 3px rgba(20, 10, 40, .08), 0 24px 50px -30px rgba(20, 10, 40, .4); }
  .ws__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; transition: scale .9s cubic-bezier(.16, 1, .3, 1); }
  .ws__art:hover img { scale: 1.015; }
  .ws__sel { position: absolute; inset: -1px; border: 1.5px solid #0d99ff; border-radius: 5px; pointer-events: none; }
  .ws__sel i { position: absolute; width: 8px; height: 8px; border: 1.5px solid #0d99ff; background: #fff; }
  .ws__sel i:nth-child(1) { top: -4.5px; left: -4.5px; } .ws__sel i:nth-child(2) { top: -4.5px; right: -4.5px; }
  .ws__sel i:nth-child(3) { bottom: -4.5px; left: -4.5px; } .ws__sel i:nth-child(4) { bottom: -4.5px; right: -4.5px; }
  .ws__size { position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; padding: .2rem .4rem; border-radius: 4px; background: #0d99ff; color: #fff; font: 500 11px/1.2 var(--font); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ws__size:empty { display: none; }

  /* right sidebar: the Design panel, the selected project's properties */
  .ws__design { position: relative; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid #ececf0; }
  .ws__tabs { display: flex; gap: 1rem; margin: 0; padding: .85rem 1rem .7rem; border-bottom: 1px solid #ececf0; color: #8b8794; font-size: 12px; }
  .ws__tabs b { color: #1e1e1e; font-weight: 600; }
  .ws__props { position: absolute; inset: 2.6rem 0 0; display: flex; flex-direction: column; overflow: auto; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s, transform .4s cubic-bezier(.16, 1, .3, 1), visibility 0s .4s; }
  .ws__props.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s .12s, transform .45s cubic-bezier(.16, 1, .3, 1) .12s, visibility 0s; }
  .ws__sec { padding: .9rem 1rem 1rem; border-bottom: 1px solid #ececf0; }
  .ws__sec-head { display: flex; align-items: center; gap: .45rem; margin: 0 0 .7rem; font-weight: 600; }
  .ws__sec-head svg { color: #0d99ff; }
  .ws__sec-head em { margin-left: auto; padding: .15rem .45rem; border-radius: 4px; background: #f4f3f7; color: #6b6776; font-size: 11px; font-style: normal; font-weight: 500; white-space: nowrap; }
  .ws__tagline { margin: 0; font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance;
    background: linear-gradient(95deg, var(--accent, #1e1e1e), var(--accent-2, #1e1e1e)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .ws__sec-title { margin: 0 0 .6rem; color: #1e1e1e; font-size: 12px; font-weight: 600; }
  .ws__results { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
  .ws__results li { display: flex; align-items: baseline; gap: .5rem; }
  .ws__results b { color: var(--accent, #1e1e1e); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
  .ws__results b svg { width: 13px; height: 13px; margin-right: 2px; vertical-align: -1px; }
  .ws__results span[aria-hidden] { color: #6b6776; }
  .ws__rows { display: grid; gap: .55rem; margin: 0; }
  .ws__rows div { display: grid; grid-template-columns: 4.5rem 1fr; gap: .5rem; }
  .ws__rows dt { color: #8b8794; }
  .ws__rows dd { margin: 0; color: #1e1e1e; }
  .ws__tools-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
  .ws__tools-list li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .5rem; border-radius: 6px; background: #f4f3f7; color: #1e1e1e; }
  .ws__tools-list img { width: 14px; height: 14px; object-fit: contain; }
  .ws__open { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin: 1rem 0 0; padding: .6rem .95rem; border-radius: 8px; background: #0d99ff; color: #fff; font-weight: 600; text-decoration: none; transition: background-color .2s; }
  .ws__open svg { transition: translate .25s cubic-bezier(.16, 1, .3, 1); }
  .ws__open:hover { background: #0a87e0; }
  .ws__open:hover svg { translate: 3px 0; }
  .ws__open:focus-visible { outline: 2px solid #0d99ff; outline-offset: 2px; }
}
@media (min-width: 900px) and (max-width: 1199px) { .ws__window { grid-template-columns: 12rem minmax(0, 1fr) 15.5rem; } .ws__tools { display: none; } .ws__bar { grid-template-columns: 1fr auto; } }
@media (min-width: 900px) and (prefers-reduced-motion: reduce) { .ws__frame, .ws__frame.is-active, .ws__props, .ws__props.is-active { transition: none; transform: none; filter: none; } }

@media (min-width: 900px) {
  /* each layer shows a tiny preview of its frame, like Figma's thumbnails */
  .ws__layer-thumb { flex: none; width: 34px; height: 22px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(20, 10, 40, .1); }
  .ws__layer svg { display: none; }
  /* the overview: every frame on the canvas at once, in a grid; click one to select it */
  .ws__canvas.is-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); align-content: start; gap: 1.6rem 1.25rem; padding: 1.75rem; overflow: auto; }
  .ws__canvas.is-overview .ws__frame { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; filter: none; cursor: pointer;
    animation: ws-tile .45s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--k, 0) * 35ms); }
  .ws__canvas.is-overview .ws__art { flex: none; aspect-ratio: 16 / 10; pointer-events: none; }
  .ws__canvas.is-overview .ws__frame:not(.is-active) .ws__sel { display: none; }
  .ws__canvas.is-overview .ws__size { display: none; }
  .ws__canvas.is-overview .ws__frame:hover .ws__art { box-shadow: 0 0 0 1.5px #0d99ff, 0 24px 50px -30px rgba(20, 10, 40, .4); }
}
@keyframes ws-tile { from { opacity: 0; transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .ws__canvas.is-overview .ws__frame { animation: none; } }

/* Phones: the same Figma file, laid out like Figma's mobile app. The canvas swipes sideways (snapping to
   each frame, the centred one selected, its neighbours peeking in), layer chips below jump to a frame,
   and the Design panel shows the selected project. Nothing pins; the page scrolls normally. */
@media (max-width: 899px) {
  .js .ws-list { display: none; }
  .js .ws__window { display: flex; flex-direction: column; overflow: clip; border-radius: 16px; background: #fff; color: #1e1e1e; font-size: 13px;
    box-shadow: 0 0 0 1px rgba(20, 10, 40, .08), 0 30px 60px -40px rgba(20, 10, 40, .45); }
  .js .ws__bar { display: flex; align-items: center; padding: .7rem .9rem; border-bottom: 1px solid #ececf0; }
  .js .ws__path { display: flex; align-items: center; gap: .4rem; min-width: 0; margin: 0; color: #8b8794; white-space: nowrap; }
  .js .ws__path b { overflow: hidden; text-overflow: ellipsis; color: #1e1e1e; font-weight: 600; }
  .js .ws__path > span:nth-of-type(1), .js .ws__path > span:nth-of-type(2), .js .ws__tools, .js .ws__bar-end { display: none; }
  /* canvas: a sideways strip of frames */
  .js .ws__canvas { order: 1; display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1.2rem 5% 2rem; scrollbar-width: none;
    background: radial-gradient(rgba(20, 10, 40, .11) 1px, transparent 1.3px) 0 0 / 18px 18px, #f5f5f7; }
  .js .ws__canvas::-webkit-scrollbar { display: none; }
  .js .ws__frame { position: relative; flex: 0 0 90%; scroll-snap-align: center; opacity: .45; scale: .94; transition: opacity .35s, scale .45s cubic-bezier(.16, 1, .3, 1); }
  .js .ws__frame.is-active { opacity: 1; scale: 1; }
  .js .ws__frame-label { margin: 0 0 .4rem; color: #0d99ff; font-size: 12px; font-weight: 500; }
  .js .ws__art { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 4px; background: var(--tint, #eef0f5); box-shadow: 0 1px 3px rgba(20, 10, 40, .08), 0 20px 40px -28px rgba(20, 10, 40, .45); }
  .js .ws__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
  .js .ws__sel { display: none; position: absolute; inset: -1px; border: 1.5px solid #0d99ff; border-radius: 5px; pointer-events: none; }
  .js .ws__frame.is-active .ws__sel { display: block; }
  .js .ws__sel i { position: absolute; width: 7px; height: 7px; border: 1.5px solid #0d99ff; background: #fff; }
  .js .ws__sel i:nth-child(1) { top: -4px; left: -4px; } .js .ws__sel i:nth-child(2) { top: -4px; right: -4px; }
  .js .ws__sel i:nth-child(3) { bottom: -4px; left: -4px; } .js .ws__sel i:nth-child(4) { bottom: -4px; right: -4px; }
  .js .ws__size { display: none; }
  /* layer chips under the canvas */
  .js .ws__layers { order: 2; display: block; padding: .7rem 0; border-top: 1px solid #ececf0; border-bottom: 1px solid #ececf0; }
  .js .ws__layers .ws__panel-title, .js .ws__page { display: none; }
  .js .ws__list { display: flex; gap: .4rem; overflow-x: auto; margin: 0; padding: 0 .9rem; list-style: none; scrollbar-width: none; }
  .js .ws__list::-webkit-scrollbar { display: none; }
  .js .ws__layer { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .65rem .35rem .35rem; border-radius: 8px; background: #f4f3f7; color: #4b4855; white-space: nowrap; text-decoration: none; }
  .js .ws__layer svg, .js .ws__layer-year { display: none; }
  .js .ws__layer-thumb { flex: none; width: 28px; height: 20px; border-radius: 3px; object-fit: cover; }
  .js .ws__layer.is-active { background: #e5f4ff; color: #1e1e1e; font-weight: 600; box-shadow: inset 0 0 0 1.5px #0d99ff; }
  /* the Design panel: the selected project's properties */
  .js .ws__design { order: 3; display: block; }
  .js .ws__tabs { display: flex; gap: 1rem; margin: 0; padding: .8rem 1rem .6rem; border-bottom: 1px solid #ececf0; color: #8b8794; font-size: 12px; }
  .js .ws__tabs b { color: #1e1e1e; font-weight: 600; }
  .js .ws__props { display: none; }
  .js .ws__props.is-active { display: block; animation: ws-props-in .35s cubic-bezier(.16, 1, .3, 1); }
  .js .ws__sec { padding: .9rem 1rem 1rem; border-bottom: 1px solid #ececf0; }
  .js .ws__sec:last-child { border-bottom: 0; }
  .js .ws__sec-head { display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem; font-weight: 600; }
  .js .ws__sec-head svg { color: #0d99ff; }
  .js .ws__sec-head em { margin-left: auto; padding: .15rem .45rem; border-radius: 4px; background: #f4f3f7; color: #6b6776; font-size: 11px; font-style: normal; font-weight: 500; }
  .js .ws__tagline { margin: 0; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1.12; letter-spacing: -.025em;
    background: linear-gradient(95deg, var(--accent, #1e1e1e), var(--accent-2, #1e1e1e)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .js .ws__open { display: inline-flex; align-items: center; gap: .4rem; margin: .9rem 0 0; padding: .65rem 1rem; border-radius: 8px; background: #0d99ff; color: #fff; font-weight: 600; text-decoration: none; }
  .js .ws__sec-title { margin: 0 0 .55rem; font-size: 12px; font-weight: 600; }
  .js .ws__results { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
  .js .ws__results li { display: flex; align-items: baseline; gap: .5rem; }
  .js .ws__results b { color: var(--accent, #1e1e1e); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
  .js .ws__results b svg { width: 12px; height: 12px; vertical-align: -1px; }
  .js .ws__results span[aria-hidden] { color: #6b6776; }
  .js .ws__rows { display: grid; gap: .5rem; margin: 0; }
  .js .ws__rows div { display: grid; grid-template-columns: 4.5rem 1fr; gap: .5rem; }
  .js .ws__rows dt { color: #8b8794; } .js .ws__rows dd { margin: 0; }
  .js .ws__tools-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
  .js .ws__tools-list li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .5rem; border-radius: 6px; background: #f4f3f7; }
  .js .ws__tools-list img { width: 14px; height: 14px; object-fit: contain; }
}
@keyframes ws-props-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 899px) and (prefers-reduced-motion: reduce) { .js .ws__frame { transition: none; } .js .ws__props.is-active { animation: none; } }
.ws__layer picture { display: contents; } /* the thumbnail, not its <picture> wrapper, sizes itself in the row */

.ws__count { display: none; }
@media (max-width: 899px) {
  /* "4 of 8" on the right of the top bar */
  .js .ws__count { display: block; margin: 0 0 0 auto; padding-left: .75rem; color: #8b8794; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .js .ws__count b { color: #1e1e1e; font-weight: 600; }
  /* the layer row: quiet chips with soft edges */
  .js .ws__layers { padding: .55rem 0; }
  .js .ws__list { gap: .25rem; padding: 0 1.1rem; scroll-padding-inline: 1.1rem;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 1.1rem, #000 calc(100% - 1.1rem), transparent); mask-image: linear-gradient(to right, transparent, #000 1.1rem, #000 calc(100% - 1.1rem), transparent); }
  .js .ws__layer { position: relative; overflow: hidden; min-height: 42px; padding: .4rem .75rem .4rem .4rem; border-radius: 10px; background: transparent; color: #6b6776; transition: background-color .3s, color .3s, box-shadow .3s; }
  .js .ws__layer-thumb { width: 34px; height: 24px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(20, 10, 40, .08); }
  .js .ws__layer.is-active { background: #eef7ff; color: #1e1e1e; box-shadow: inset 0 0 0 1.5px #0d99ff; }
}

/* The Figma window's toolbar in dark mode, like classic Figma: a dark bar over the light canvas and panels */
.js .ws__bar { background: #2c2c2c; border-bottom-color: #1e1e1e; }
.js .ws__path { color: rgba(255, 255, 255, .55); }
.js .ws__path svg, .js .ws__path b { color: #fff; }
.js .ws__tools i { color: rgba(255, 255, 255, .78); }
.js .ws__tools i.is-on { background: #0d99ff; color: #fff; }
.js .ws__me img { box-shadow: 0 0 0 2px #2c2c2c, 0 0 0 3.5px #0d99ff; }
.js .ws__all { color: rgba(255, 255, 255, .78); }
.js .ws__all:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.js .ws__all[aria-pressed="true"] { background: rgba(13, 153, 255, .22); color: #fff; }
.js .ws__count { color: rgba(255, 255, 255, .55); }
.js .ws__count b { color: #fff; }

/* ...and the two sidebars too: Figma's dark UI around the light canvas */
.js .ws__window { background: #2c2c2c; color: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 6px rgba(20, 10, 40, .08), 0 40px 90px -50px rgba(20, 10, 40, .55); }
.js .ws__layers, .js .ws__design { background: #2c2c2c; border-color: #3d3d3d; }
.js .ws__panel-title, .js .ws__page, .js .ws__page svg { color: #fff; }
.js .ws__panel-title--layers { border-top-color: #3d3d3d; }
.js .ws__layer { color: rgba(255, 255, 255, .72); }
.js .ws__layer svg { color: rgba(255, 255, 255, .45); }
.js .ws__layer-year { color: rgba(255, 255, 255, .4); }
.js .ws__layer:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.js .ws__layer.is-active { background: rgba(13, 153, 255, .26); color: #fff; }
.js .ws__layer.is-active svg { color: #5cbcff; }
.js .ws__layer-thumb { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.js .ws__tabs { border-bottom-color: #3d3d3d; color: rgba(255, 255, 255, .5); }
.js .ws__tabs b { color: #fff; }
.js .ws__sec { border-bottom-color: #3d3d3d; }
.js .ws__sec-head, .js .ws__sec-title, .js .ws__rows dd { color: #fff; }
.js .ws__sec-head svg { color: #5cbcff; }
.js .ws__sec-head em { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .72); }
/* the project's colours, lifted so they read on the dark panel */
.js .ws__tagline { background-image: linear-gradient(95deg, color-mix(in srgb, var(--accent, #fff) 55%, #fff), color-mix(in srgb, var(--accent-2, #fff) 60%, #fff)); }
.js .ws__results b { color: color-mix(in srgb, var(--accent, #fff) 50%, #fff); }
.js .ws__results span[aria-hidden] { color: rgba(255, 255, 255, .6); }
.js .ws__rows dt { color: rgba(255, 255, 255, .5); }
.js .ws__tools-list li { background: rgba(255, 255, 255, .07); color: #fff; }
@media (max-width: 899px) {
  .js .ws__layers { border-color: #3d3d3d; }
  .js .ws__layer { background: transparent; }
  .js .ws__layer.is-active { background: rgba(13, 153, 255, .24); color: #fff; box-shadow: inset 0 0 0 1.5px #0d99ff; }
}
.ws .section-head { border-bottom: 0; padding-bottom: .5rem; } /* the Work header: no rule under it */

/* ---------- Work window motion ----------
   Once: the window settles in, its sidebars slide in from their sides and the tools pop in.
   Every project change: Ajay's cursor glides to the new frame and clicks it, the selection redraws
   (handles pop after the click), the layer highlight slides to its row, the Design panel's sections
   cascade in and its numbers count up (site.js). Reduced motion: none of it. */
.ws__hl, .ws__cursor { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .ws__props.is-active .ws__sec { animation: ws-sec-in .5s cubic-bezier(.16, 1, .3, 1) both; }
  .js .ws__props.is-active .ws__sec:nth-child(2) { animation-delay: .06s; }
  .js .ws__props.is-active .ws__sec:nth-child(3) { animation-delay: .12s; }
  .js .ws__props.is-active .ws__sec:nth-child(4) { animation-delay: .18s; }
  .js .ws__frame.is-active .ws__sel { animation: ws-sel-draw .5s cubic-bezier(.16, 1, .3, 1) .35s both; }
  .js .ws__frame.is-active .ws__sel i { animation: ws-handle .35s cubic-bezier(.34, 1.56, .64, 1) .6s both; }
  .js .ws__frame.is-active .ws__size { animation: ws-badge .35s cubic-bezier(.34, 1.56, .64, 1) .7s both; }
}
@keyframes ws-sec-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes ws-sel-draw { from { opacity: 0; clip-path: inset(0 100% 100% 0); } to { opacity: 1; clip-path: inset(-60px); } } /* wide enough to keep the size badge below it */
@keyframes ws-handle { from { transform: scale(0); } }
@keyframes ws-badge { from { opacity: 0; transform: translateY(-4px) scale(.8); } }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* the layer highlight is one pill that slides between rows */
  .js .ws__list { position: relative; }
  .js .ws__hl { display: block; position: absolute; left: 0; right: 0; top: 0; height: var(--hl-h, 34px); border-radius: 6px; background: rgba(13, 153, 255, .26);
    transform: translateY(var(--hl-y, 0px)); transition: transform .45s cubic-bezier(.16, 1, .3, 1), height .3s; pointer-events: none; }
  .js .ws__layer.is-active { background: transparent; }
  .js .ws__layer { position: relative; }
  /* Ajay's cursor on the canvas */
  .js .ws__cursor { display: flex; position: absolute; left: 0; top: 0; z-index: 5; align-items: flex-start; pointer-events: none;
    transform: translate(var(--cx, 60%), var(--cy, 40%)); transition: transform .7s cubic-bezier(.45, 0, .2, 1); }
  .js .ws__cursor svg { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); transition: transform .15s; }
  .js .ws__cursor b { margin: 14px 0 0 -2px; padding: .15rem .45rem; border-radius: 3px 9px 9px; background: #0d99ff; color: #fff; font: 600 11px/1.3 var(--font); white-space: nowrap; }
  .js .ws__cursor.is-click svg { transform: scale(.82); }
  /* the window's entrance, once */
  .js .ws:not(.is-open) .ws__window { opacity: 0; transform: translateY(24px) scale(.985); }
  .js .ws:not(.is-open) .ws__layers { opacity: 0; transform: translateX(-16px); }
  .js .ws:not(.is-open) .ws__design { opacity: 0; transform: translateX(16px); }
  .js .ws:not(.is-open) .ws__tools i { opacity: 0; transform: scale(.6); }
  .js .ws__window { transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1); }
  .js .ws__layers, .js .ws__design { transition: opacity .5s .3s, transform .7s cubic-bezier(.16, 1, .3, 1) .3s; }
  .js .ws__tools i { transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
  .js .ws.is-open .ws__tools i:nth-child(1) { transition-delay: .45s; } .js .ws.is-open .ws__tools i:nth-child(2) { transition-delay: .5s; }
  .js .ws.is-open .ws__tools i:nth-child(3) { transition-delay: .55s; } .js .ws.is-open .ws__tools i:nth-child(4) { transition-delay: .6s; }
  .js .ws.is-open .ws__tools i:nth-child(5) { transition-delay: .65s; } .js .ws.is-open .ws__tools i:nth-child(6) { transition-delay: .7s; }
}
@media (min-width: 900px) { .ws__frame { bottom: 2.6rem; } } /* room under the frame for its size badge */

/* Short laptop screens (e.g. 1024×600, 1280×720): pinning the header with the window leaves too little room.
   Here the "Designed, Built & Shipped" header scrolls away like normal content and only the Figma window
   pins, filling the viewport under the nav. Panels are compacted a little too. */
@media (min-width: 900px) and (max-height: 820px) {
  .js .ws__sticky { position: static; display: block; height: 100%; min-height: 0; }
  .js .ws__sticky > .ws__window { position: sticky; top: 4.75rem; height: calc(100svh - 5.75rem); }
  .ws__frame { inset: 1.25rem 1.5rem; bottom: 2.4rem; }
  .ws__layers { padding-block: .6rem; }
  .ws__panel-title--layers { margin-top: .6rem; padding-top: .6rem; }
  .ws__layer { padding-block: .36rem; }
  .ws__sec { padding-block: .7rem .8rem; }
  .ws__tagline { font-size: 1.5rem; }
}
@media (min-width: 900px) { .ws .section-head h2 { white-space: nowrap; max-width: none; } .ws .section-head:has(.section-head__tagline) { grid-template-columns: max-content minmax(12rem, 22rem); } } /* keep the rocket on the heading's line */
