/* ==========================================================================
   Sanju Vishwash — UI/UX & Motion Designer portfolio
   Rebuilt in plain HTML / CSS / JS
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Delicious+Handrawn&family=Fragment+Mono:ital@0;1&display=swap");

/* ---------- Tokens ---------- */
:root {
  /* Light theme, taken from saurabhyadav.design: cards are pure white
     (--surface, their --ui) on a neutral off-white page (--bg, their --bg),
     separated by a translucent hairline rather than a solid line (--border,
     their #11111414) so the card edge stays soft at any backdrop.
     --surface-2 is their --accent, the secondary fill for chips and tiles.
     --accent stays the brand orange for fills and graphics; --accent-ink is
     the only orange allowed on text, because #ff5c00 on paper is 3.1:1. */
  --bg:            #f6f6f3;
  --surface:       #ffffff;
  --surface-2:     #eaeaec;
  --card:          #ffffff;
  --border:        rgba(17, 17, 20, .08);
  --border-strong: rgba(17, 17, 20, .14);
  --border-flat:   #e4e4e0;
  --dot:           #d7d7d1;
  --text:          #111114;
  --muted:         #5c5c64;
  --dim:           #67676f;
  --accent:        #ff5c00;
  --accent-ink:    #b24405;
  --accent-soft:   #fff2e8;
  --accent-dark:   #cc4900;
  --green:         #15803d;
  --red:           #b91c1c;
  --amber:         #b45309;
  --sky:           #0369a1;
  --white:         #ffffff;
  --ink-invert:    #ffffff;
  --grain-blend:   multiply;
  --grain-opacity: .035;
  --shadow-sm: 0 4px 10px -2px rgba(0,0,0,.05), 0 2px 2px -1px rgba(0,0,0,.06);
  --shadow-md: 0 4px 10px -2px rgba(0,0,0,.06), 0 18px 40px -6px rgba(0,0,0,.10);

  --frame-w: 980px;
  --pad: 41px;

  --font: "Satoshi", "Satoshi Placeholder", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: "Delicious Handrawn", cursive;
  --font-mono: "Fragment Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0a0a0a;
    --surface:   #121214;
    --surface-2: #292929;
    --card:      #121214;
    --border:    rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .16);
    --border-flat:   #232325;
    --dot:       #2e2e2e;
    --text:      #f5f5f8;
    --muted:     #ababab;
    --dim:       #8f8f96;
    --accent-ink: #ff8a4d;
    --accent-soft: #2a1608;
    --green:     #4ade80;
    --red:       #ef4444;
    --amber:     #f59e0b;
    --sky:       #38bdf8;
    --white:     #0a0a0a;
    --ink-invert: #ffffff;
    --grain-blend: overlay;
    --grain-opacity: .05;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 2px 8px rgba(0,0,0,.45), 0 18px 40px rgba(0,0,0,.38);
  }
}

:root[data-theme="dark"] {
  --bg:        #0a0a0a;
  --surface:   #121214;
  --surface-2: #292929;
  --card:      #121214;
  --border:    rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .16);
  --border-flat:   #232325;
  --dot:       #2e2e2e;
  --text:      #f5f5f8;
  --muted:     #ababab;
  --dim:       #8f8f96;
  --accent-ink: #ff8a4d;
  --accent-soft: #2a1608;
  --green:     #4ade80;
  --red:       #ef4444;
  --amber:     #f59e0b;
  --sky:       #38bdf8;
  --white:     #0a0a0a;
  --ink-invert: #ffffff;
  --grain-blend: overlay;
  --grain-opacity: .05;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 2px 8px rgba(0,0,0,.45), 0 18px 40px rgba(0,0,0,.38);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1 { font-size: 64px; font-weight: 700; line-height: 1.2; color: var(--text); }
h3 { font-size: 36px; font-weight: 700; line-height: 1.2; color: var(--muted); }
h4 { font-size: 30px; font-weight: 500; line-height: 1.2; color: var(--dim); }
h5 { font-size: 26px; font-weight: 500; line-height: 1.2; color: var(--text); }
h6 { font-size: 22px; font-weight: 500; line-height: 1.2; }

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

/* Italic emphasis inside a heading, the way the reference site marks a key word */
.hl { font-style: italic; font-weight: 500; color: var(--accent-ink); }

/* ---------- Dotted background ---------- */
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 25px 25px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 20%, black 80%);
  mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 20%, black 80%);
  opacity: .9;
}

/* ---------- Gradual blur edges ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 901;
  pointer-events: none;
  background-image: url("../img/6mcf62RlDfRfU61Yg5vb2pefpi4.png");
  background-size: 180px 180px;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
}

.gradual-blur {
  position: fixed;
  left: 0; right: 0;
  height: 110px;
  z-index: 900;
  pointer-events: none;
}
.gradual-blur.top { top: 0; }
.gradual-blur.bottom { bottom: 0; }
.gradual-blur span { position: absolute; inset: 0; display: block; }
.gradual-blur.top span:nth-child(1) {
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 50%, black 100%);
  mask-image: linear-gradient(to top, transparent 0%, black 50%, black 100%);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.gradual-blur.top span:nth-child(2) {
  -webkit-mask-image: linear-gradient(to top, transparent 50%, black 100%);
  mask-image: linear-gradient(to top, transparent 50%, black 100%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.gradual-blur.bottom span:nth-child(1) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 100%);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.gradual-blur.bottom span:nth-child(2) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 50%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 50%, black 100%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}

/* ---------- Frame / sections ---------- */
.frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--frame-w);
  margin: 0 auto;
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.section {
  padding: 121px var(--pad) 150px;
  border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 64px; }
.eyebrow {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: var(--accent-ink);
  margin-bottom: 5px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: width .32s var(--ease);
}
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px;
  border-radius: 12px;
  color: var(--dim);
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.sidebar-item svg { width: 18px; height: 18px; flex: none; stroke: currentColor; }
.sidebar-item span {
  font-size: 15px;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .32s var(--ease), margin-left .32s var(--ease), opacity .22s var(--ease);
}
.sidebar:hover .sidebar-item { justify-content: flex-start; }
.sidebar:hover .sidebar-item span { max-width: 90px; margin-left: 12px; opacity: 1; }
.sidebar-item:hover { color: var(--text); background: var(--surface-2); }
.sidebar-item.active { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.sidebar-sep { height: 1px; background: var(--border); margin: 4px 2px; }
.sidebar .theme-toggle svg.moon { display: none; }
:root[data-theme="light"] .sidebar .theme-toggle svg.sun { display: block; }
:root[data-theme="light"] .sidebar .theme-toggle svg.moon { display: none; }
:root[data-theme="dark"] .sidebar .theme-toggle svg.sun { display: block; }
:root[data-theme="dark"] .sidebar .theme-toggle svg.moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .sidebar .theme-toggle svg.sun { display: none; }
  :root:not([data-theme]) .sidebar .theme-toggle svg.moon { display: block; }
}
:root[data-theme="light"] .sidebar .theme-toggle svg.sun { display: none; }
:root[data-theme="light"] .sidebar .theme-toggle svg.moon { display: block; }
.theme-toggle { border: 1px solid var(--border); }

/* ==========================================================================
   Floating profile pill
   ========================================================================== */
.pill {
  position: fixed;
  top: 0; left: 50%;
  z-index: 1000;
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.pill.show { transform: translate(-50%, 0); opacity: 1; }
.pill-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: 248px;
  transition: width .35s var(--ease);
}
.pill:hover .pill-inner { width: 300px; }
.pill-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.pill-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.pill-info { flex: 1; min-width: 0; }
.pill-name { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.25; white-space: nowrap; }
.pill-role { font-size: 11px; color: var(--dim); line-height: 1.25; white-space: nowrap; }
.pill-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  max-height: 0;
  opacity: 0;
  font-size: 11px;
  color: var(--dim);
  border-top: 1px solid transparent;
  transition: max-height .35s var(--ease), opacity .3s var(--ease), padding .35s var(--ease);
}
.pill:hover .pill-bottom { max-height: 44px; opacity: 1; padding: 8px 12px; border-top-color: var(--border); }

/* ---------- Available badge ---------- */
.available {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
  padding: 5px 8px 5px 7px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  font-size: 12px;
  color: var(--green);
}
.pulser { position: relative; width: 8px; height: 8px; flex: none; }
.pulser i, .pulser b {
  position: absolute; inset: 0; border-radius: 50%; background: var(--green);
}
.pulser i { opacity: .5; animation: pulse 2s var(--ease) infinite; }
.pulser b { box-shadow: 0 0 20px rgba(80,112,86,.5); }
@keyframes pulse { 0% { transform: scale(1); opacity: .5 } 70% { transform: scale(2.4); opacity: 0 } 100% { transform: scale(2.4); opacity: 0 } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 132px var(--pad) 120px;
  border-bottom: 1px solid var(--border);
  min-height: 628px;
}
.hero-badge { display: flex; width: max-content; margin-bottom: 25px; }
.hero-title-row { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.greeting {
  position: relative;
  height: 77px;
  width: 149px;
  overflow: hidden;
  flex: none;
}
.greeting span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.greeting span.in { opacity: 1; transform: none; }
.greeting span.out { opacity: 0; transform: translateY(-60px); transition: opacity .22s var(--ease), transform .5s var(--ease); }
.hero h4 { margin-top: 0; }
.hero-lede { max-width: 520px; margin-top: 22px; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; margin-top: 44px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.btn .circle {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  overflow: hidden;
  transition: width .3s var(--ease), height .3s var(--ease);
  flex: none;
}
.btn .circle svg { width: 0; height: 12px; stroke: #fff; transition: width .3s var(--ease); }
.btn:hover .circle { width: 26px; height: 26px; }
.btn:hover .circle svg { width: 14px; }

/* ---------- Lanyard ---------- */
.lanyard {
  --rope: 215px;
  --card-h: 290px;
  position: absolute;
  top: -57px; right: 100px;
  width: 220px;
  height: calc(var(--rope) + 20px + var(--card-h));
  z-index: 3;
}
/* the wire is drawn by the rope simulation; overflow stays visible so it can
   swing outside the 220px column */
.lanyard .wire {
  position: absolute; left: 0; top: 0;
  width: 220px; height: var(--rope);
  overflow: visible;
  pointer-events: none;
}
.lanyard .wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* a flat woven band, with a sheen running just left of centre */
.lanyard .wire .band  { stroke: #26262a; stroke-width: 16; }
.lanyard .wire .sheen { stroke: #3e3f45; stroke-width: 7.5; }
/* everything below the wire hangs as one rigid body */
.lanyard .hang {
  position: absolute; left: 0; top: 0;
  width: 220px;
  transform: translate(0, var(--rope));
  transform-origin: 110px 0;
  will-change: transform;
  cursor: grab;
  touch-action: none;
}
.lanyard .hang:active { cursor: grabbing; }
/* hidden until the opening drop begins */
.lanyard.is-dropping { opacity: 0; }
.lanyard.is-dropping.ready { opacity: 1; transition: opacity .5s ease-out; }
.lanyard .clip {
  position: absolute; left: 50%; top: 0;
  margin-left: -10px;
  width: 20px; height: 42px;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.45));
  z-index: 4;
}
.lanyard .card {
  position: absolute; left: 0; top: 23px;
  width: 220px; height: var(--card-h);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.06) inset;
  display: flex; flex-direction: column;
}
.lanyard .card .strip { height: 8px; background: var(--accent); flex: none; }
.lanyard .card .photo { flex: 1; min-height: 0; position: relative; }
.lanyard .card .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .lanyard .hang { cursor: default; }
}

/* ==========================================================================
   Project cards
   ========================================================================== */
.projects { display: flex; flex-direction: column; gap: 32px; }
.project {
  display: grid;
  grid-template-columns: 472fr 424fr;
  gap: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.project:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border-flat)); }
.project.flip { grid-template-columns: 424fr 472fr; }
.project.flip .project-body { order: 2; }
.project.flip .project-media { order: 1; }
.project-body { padding: 32px 24px 29px; display: flex; flex-direction: column; gap: 0; }
.project-body h5 { color: var(--text); }
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  line-height: 1.2;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.chip.live, .live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; line-height: 1.2;
  border-radius: 100px;
  font-size: 12px; font-weight: 500;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.project-desc { color: var(--muted); font-size: 16px; margin-top: 13px; }
.project-desc + .project-desc { margin-top: 9px; }
.project-foot {
  margin-top: 25px;
  display: flex; align-items: center; gap: 12px;
}
.project-foot img { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: var(--surface-2); flex: none; }
.project-foot .who { flex: 1; min-width: 0; }
.project-foot .who b { display: block; font-size: 16px; font-weight: 500; color: var(--muted); }
.project-foot .who span { display: block; font-size: 16px; color: var(--dim); }
.arrow-btn {
  width: 39px; height: 39px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  flex: none;
  overflow: hidden;
  transition: transform .35s var(--ease);
}
.arrow-btn svg { width: 16px; height: 16px; stroke: #fff; transition: transform .35s var(--ease); }
.project:hover .arrow-btn svg { transform: translate(2px, -2px); }
.project-media {
  position: relative; overflow: hidden;
  min-height: 300px; background: var(--surface-2);
  perspective: 1000px;
}
/* --- Project image ------------------------------------------------------
   The card used to turn over on hover to reveal a second shot. It doesn't any
   more: the front image stays put and only eases in a touch on hover. The
   back face is kept in the markup but never shown. */
.card3d-inner { position: absolute; inset: 0; }
.card3d-face {
  position: absolute; inset: 0;
  display: block; overflow: hidden;
  background: var(--surface-2);
}
.card3d-back { display: none; }
.card3d-face img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left center;
  transition: transform .5s var(--ease);
}
.project:hover .card3d-face img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .card3d-face img { transform: none !important; }
}

/* vertical variant (contact / related) */
.projects.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.projects.grid2 .project { grid-template-columns: 1fr; }
.projects.grid2 .project-media { min-height: 0; aspect-ratio: 16 / 10; }
.projects.grid2 .card3d-face img { object-position: center top; }
.projects.grid2 .project-media { order: 1; }
.projects.grid2 .project-body { order: 2; }

/* ==========================================================================
   Stack grid
   ========================================================================== */
.stack-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 26px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.stack-row { display: flex; gap: 26.7px; justify-content: center; flex-wrap: nowrap; }
.stack-row + .stack-row { margin-top: 27px; }
.stack-row.offset { transform: translateX(6px); }
.stack-tile {
  width: 61px; height: 61px;
  flex: none;
  border-radius: 14px;
  background: #f3f3f5;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  display: grid; place-items: center;
  opacity: .88;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.stack-tile img { width: 38px; height: 38px; object-fit: contain; }
.stack-tile:hover { opacity: 1; transform: translateY(-4px) scale(1.06); }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { margin-top: 74px; display: flex; flex-direction: column; }
.tl-row.tl-lead .tl-body { padding: 0; }
.tl-row.tl-lead .tl-rail { height: 200px; }
.tl-row.tl-lead .tl-bar { flex: 1; margin-bottom: 26px; }
.tl-row { display: grid; grid-template-columns: 180px 1fr; gap: 0; }
.tl-rail { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-left: 70px; }
.tl-num { font-size: 22px; font-weight: 500; font-style: italic; color: var(--dim); line-height: 1.2; margin-top: -19px; padding-bottom: 33px; transform: translateX(-11px); }
.tl-bar { position: relative; width: 2px; flex: 1; min-height: 60px; margin-bottom: 52px; background: var(--border); border-radius: 2px; overflow: hidden; }
.tl-bar i {
  position: absolute; inset: 0;
  display: block;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.tl-body { padding: 0 0 86px 0; }
.tl-row:last-child .tl-body { padding-bottom: 23px; }
.tl-head { display: flex; align-items: center; gap: 8px; }
.tl-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; flex: none;
  font-size: 18px; font-weight: 500; color: var(--accent-ink);
}
.tl-company { font-size: 16px; color: var(--dim); line-height: 1.5; }
.tl-role { font-size: 26px; font-weight: 500; color: var(--text); line-height: 1.2; }
.tl-line { display: flex; align-items: flex-start; gap: 0; margin-top: 16px; font-size: 16px; }
.tl-line > img { width: 18px; height: 18px; object-fit: contain; margin-top: 3px; flex: none; }
.tl-dates { color: var(--muted); }
.tl-dates em { font-style: normal; color: var(--green); }
.tl-dates em.accent { color: var(--accent-ink); }
.tl-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.tl-highlight { font-weight: 500; color: var(--text); }
.tl-group { margin-top: 22px; margin-left: 18px; max-width: 580px; }
.tl-label {
  font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--dim);
}
.tl-points {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.tl-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}
.tl-wins li { color: var(--text); }
.tl-points li::before {
  content: "";
  position: absolute; left: 1px; top: .66em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: .8;
}


/* ==========================================================================
   Accordion
   ========================================================================== */
#service { padding-bottom: 120px; }
.accordion { margin-top: 10px; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 17px 0;
  text-align: left;
}
.acc-btn h5 { font-size: 26px; font-weight: 500; color: var(--text); }
.acc-icon {
  position: relative;
  width: 24px; height: 24px; border-radius: 100px;
  background: var(--surface);
  flex: none;
  transition: transform .35s var(--ease);
}
.acc-icon i, .acc-icon b {
  position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.acc-icon b { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .acc-icon b { transform: translate(-50%, -50%) rotate(180deg); opacity: 0; }
.acc-panel { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.acc-inner { padding: 0 0 26px; }
.acc-duration { font-size: 13px; letter-spacing: .04em; color: var(--text); text-transform: uppercase; }
.acc-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; font-size: 13px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.acc-tools i { color: var(--accent-ink); font-style: normal; }
.acc-text { color: var(--muted); max-width: 720px; }

/* cursor-follow preview */

/* ==========================================================================
   About bento
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: 362px 251px 251px;
  grid-template-rows: 264px 240px;
  gap: 16px;
}
.bento-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.bento-gallery { grid-row: span 2; }
.bento-surprise { grid-column: 2 / span 2; }

/* gallery */
.gal-track { position: absolute; inset: 0; }
.gal-track img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.gal-track img.on { opacity: 1; transform: none; }
.gal-nav {
  position: absolute; top: 0; bottom: 0; width: 72px;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 2;
}
.bento-gallery:hover .gal-nav { opacity: 1; }
.gal-nav.prev { left: 0; background: linear-gradient(to right, rgba(0,0,0,.35), transparent); }
.gal-nav.next { right: 0; background: linear-gradient(to left, rgba(0,0,0,.35), transparent); }
.gal-nav svg { width: 20px; height: 20px; stroke: #fff; }
.gal-steps {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.gal-steps i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); transition: background .3s var(--ease); }
.gal-steps i.on { background: #fff; }

/* music widget */
.music { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0 14px 14px; height: 100%; }
.music .cd { position: relative; width: 251px; height: 251px; margin-top: -123px; flex: none; }
.music .cd .art {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  animation: spin 9s linear infinite;
}
.music .cd .hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--surface);
}
@keyframes spin { to { transform: rotate(360deg) } }
.music .eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; margin-top: 34px; }
.music .eq i { width: 2px; background: var(--dim); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.music .eq i:nth-child(1) { animation-delay: 0s }
.music .eq i:nth-child(2) { animation-delay: .15s }
.music .eq i:nth-child(3) { animation-delay: .3s }
.music .eq i:nth-child(4) { animation-delay: .45s }
.music .eq i:nth-child(5) { animation-delay: .6s }
@keyframes eq { 0%,100% { height: 4px } 50% { height: 14px } }
.music .artist { font-size: 12px; color: var(--muted); }
.music .song { font-size: 16px; font-weight: 500; color: var(--muted); }
.music .bar { width: 32px; height: 2px; background: var(--border); border-radius: 2px; margin: 7px 0 5px; }
.music .time { font-size: 12px; color: var(--dim); }
.music .time b { color: var(--text); font-weight: 400; }

/* behind the scenes */
.bts { position: relative; height: 100%; }
.bts .papers { position: absolute; inset: 0; display: grid; place-items: center; }
.bts .papers img {
  position: absolute;
  width: 112px;
  margin-top: -40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .5s var(--ease);
}
.bts .papers img:nth-child(1) { transform: rotate(-8deg) translate(-14px, -22px); }
.bts .papers img:nth-child(2) { transform: rotate(4deg) translate(10px, -6px); }
.bts .papers img:nth-child(3) { transform: rotate(-2deg) translate(0, 14px); }
.bts:hover .papers img:nth-child(1) { transform: rotate(-14deg) translate(-40px, -34px); }
.bts:hover .papers img:nth-child(2) { transform: rotate(7deg) translate(32px, -10px); }
.bts:hover .papers img:nth-child(3) { transform: rotate(-1deg) translate(0, 26px); }
.bts .stickers { position: absolute; inset: 0; pointer-events: none; }
.bts .stickers img { position: absolute; transition: transform .5s var(--ease); }
.bts .stickers img:nth-child(1) { width: 62px; left: 24%; top: 46%; transform: rotate(-9deg); }
.bts .stickers img:nth-child(2) { width: 54px; right: 20%; top: 52%; transform: rotate(8deg); }
.bts:hover .stickers img:nth-child(1) { transform: rotate(-16deg) translate(-12px, 8px); }
.bts:hover .stickers img:nth-child(2) { transform: rotate(14deg) translate(10px, 10px); }

.bts .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  z-index: 2;
  background: linear-gradient(to top, var(--surface) 55%, transparent);
}
.bts .caption b { display: block; font-size: 26px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.bts .caption span {
  display: block; font-size: 12px; color: var(--dim);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s var(--ease), opacity .3s var(--ease);
}
.bts:hover .caption span { max-height: 40px; opacity: 1; }

/* surprise */
.about-lede { max-width: 700px; margin: -22px 0 48px; }
.about-lede p { color: var(--muted); }
.about-lede p + p { margin-top: 15px; }

.surprise { display: grid; place-items: center; height: 100%; position: relative; --peek: 0; }
.surprise .title { position: absolute; left: 0; right: 0; bottom: 15px; margin: 0; font-size: 26px; font-weight: 500; color: var(--text); text-align: center; padding: 0 20px; }
.sticky-wrap { position: absolute; top: 45px; left: 50%; transform: translateX(-50%); width: 100%; height: 130px; }
.sticky-rail {
  position: absolute; top: 6px;
  left: 17.2%; right: 17.2%;
  height: 11px;
  border-radius: 999px;
  background: var(--surface-2);
}
.sticky {
  position: absolute; top: 0; left: 34%;
  width: 118px; height: 118px;
  transform: translate(-50%, 0) rotate(0deg);
  /* hangs off the clip, not its own centre */
  transform-origin: 86% 5%;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
  z-index: 2;
}
.sticky:active { cursor: grabbing; }
.sticky:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
/* no transition while a finger is on it; the swing back is a transition */
.sticky.is-settling { transition: transform .62s cubic-bezier(.34, 1.26, .64, 1); }
.sticky .clip { position: absolute; top: 2px; left: 94px; width: 15px; z-index: 2; }
.sticky .note { width: 118px; height: 118px; display: block; }
/* what the note is covering */
.surprise-reveal {
  position: absolute;
  /* +14px keeps the heading clear of the pin rail at the top of the card */
  left: 0; right: 0; top: calc(50% + 14px);
  transform: translateY(calc(-50% + (1 - var(--peek)) * 10px));
  /* sits to the right of where the note parks, so the two never overlap */
  padding: 0 24px 0 158px;
  text-align: left;
  opacity: var(--peek);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s linear, transform .3s var(--ease);
}
.surprise.is-peeking .surprise-reveal,
.surprise.is-open .surprise-reveal { visibility: visible; }
.surprise.is-open .surprise-reveal { pointer-events: auto; }
.surprise-reveal .found { font-size: 22px; font-weight: 700; color: var(--text); }
.surprise-reveal .note-text { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.reveal-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.surprise-reveal .btn-cv {
  display: inline-flex; align-items: center;
  padding: 9px 17px;
  border-radius: 999px;
  /* --accent-dark, not --accent: white on #ff5c00 is 3.1:1 and fails */
  background: var(--accent-dark);
  color: #fff;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.surprise-reveal .btn-cv:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.surprise-reveal .go {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.surprise-reveal .go:hover { color: var(--text); border-bottom-color: var(--text); }
/* the prompt steps aside once the surprise is out */
.surprise .title { transition: opacity .25s linear; }
.surprise.is-peeking .title,
.surprise.is-open .title { opacity: calc(1 - var(--peek)); }

.sticky .scribble {
  position: absolute; inset: 18px 12px auto;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 17px;
  line-height: 1.15;
  color: #2b2b2b;
  transform: rotate(-2deg);
  pointer-events: none;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: border-color .25s var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field select { appearance: none; background-image: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--dim); pointer-events: none; }
.submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.submit:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--green); opacity: 0; transition: opacity .3s var(--ease); }
.form-note.show { opacity: 1; }

.profile-card { border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--border); }
.profile-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.profile-card .available { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); text-transform: uppercase; letter-spacing: .04em; }
.profile-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.profile-meta b { font-weight: 500; color: var(--text); }
.profile-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); display: block; }
.profile-meta span { color: var(--dim); }
.profile-socials { display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
.profile-socials a { color: var(--dim); transition: color .25s var(--ease); }
.profile-socials a:hover { color: var(--accent-ink); }
.profile-socials svg { width: 18px; height: 18px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 100px; gap: 10px; }
.tm-grid .cell { border-radius: 12px; background: var(--surface-2); opacity: .5; }
.tm-grid .faces { grid-column: 2; grid-row: 2; position: relative; border-radius: 12px; overflow: hidden; }
.tm-grid .faces img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.tm-grid .faces img.on { opacity: 1; }
.tm-quote { font-size: 48px; line-height: 1; color: var(--accent-ink); font-family: Georgia, serif; }
.tm-text { font-size: 26px; font-weight: 500; line-height: 1.25; color: var(--text); margin-top: 18px; min-height: 100px; }
.tm-name { margin-top: 22px; color: var(--muted); }
.tm-role { font-size: 14px; color: var(--dim); }
.tm-nav { display: flex; gap: 10px; margin-top: 22px; }
.tm-nav button {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--accent-ink);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tm-nav button svg { width: 14px; height: 14px; stroke: currentColor; }
.tm-nav button:hover { background: var(--accent); color: #fff; }

/* ==========================================================================
   Case study
   ========================================================================== */
.reading-pill {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 1000;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px 12px;
  border-radius: 0 0 18px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease);
}
.reading-pill.show { transform: translate(-50%, 0); }
.reading-pill .ring { position: relative; width: 30px; height: 30px; flex: none; }
.reading-pill .ring svg { transform: rotate(-90deg); }
.reading-pill .ring circle { fill: none; stroke-width: 2.5; }
.reading-pill .ring .track { stroke: var(--border); }
.reading-pill .ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.reading-pill .ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; color: var(--muted); }
.reading-pill .label { font-size: 16px; color: var(--accent-ink); }

.cs-head { padding: 120px var(--pad) 0; }
.back-home {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--dim); font-size: 16px;
  transition: color .25s var(--ease);
}
.back-home:hover { color: var(--text); }
.back-home i {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
}
.back-home svg { width: 14px; height: 14px; stroke: currentColor; }

.cs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; padding: 60px var(--pad) 0; }
.cs-meta-item { display: flex; gap: 14px; align-items: flex-start; }
.cs-meta-item .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-size: 20px;
  flex: none;
}
.cs-meta-item .lbl { font-size: 14px; color: var(--dim); }
.cs-meta-item .val { font-size: 18px; color: var(--text); }
.cs-meta-item .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.cs-section { max-width: 600px; margin-left: 148px; }
.cs-section + .cs-section { margin-top: 74px; }
.cs-section p { color: var(--muted); margin-bottom: 14px; }
.cs-section p:last-child { margin-bottom: 0; }
.cs-section strong { color: var(--text); font-weight: 500; }
.cs-quote {
  border-left: 2px solid var(--accent);
  background: var(--surface);
  padding: 14px 18px;
  margin: 18px 0;
  font-style: italic;
  color: var(--muted);
}

/* ==========================================================================
   404
   ========================================================================== */
.nf-wrap { padding: 150px var(--pad); display: grid; place-items: center; border-bottom: 1px solid var(--border); }
.nf-card {
  width: 100%; max-width: 644px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.nf-card b { display: block; font-size: 16px; font-weight: 500; color: var(--text); }
.nf-card span { display: block; font-size: 14px; color: var(--dim); margin-bottom: 20px; }
.nf-grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; }
.nf-grid i { aspect-ratio: 1; border-radius: 2px; background: var(--surface-2); display: block; }
.nf-grid i.on { background: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-socials {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 0 var(--pad);
  margin: -17px 0;
  position: relative;
  z-index: 2;
}
.footer-socials::before, .footer-socials::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.footer-socials a {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.footer-socials a:hover { transform: translateY(-3px); }
.footer-socials img { width: 18px; height: 18px; object-fit: contain; }

.footer { padding: 64px 0 60px; text-align: center; }
.footer-cta { display: flex; align-items: center; justify-content: center; gap: 20px; }
.footer-cta p { color: var(--muted); width: 416px; }
.footer-cta p:first-child { text-align: right; }
.footer-cta p:last-child { text-align: left; }
.footer-cta img { width: 100px; height: 100px; object-fit: contain; flex: none; }
.footer-sign {
  margin: 70px auto 0;
  font-family: var(--font-hand);
  font-size: 60px; line-height: 1;
  text-align: center; color: var(--text); opacity: .55;
}
.footer-copy { margin-top: 17px; font-size: 12px; color: var(--muted); }

.template-badges {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.template-badges a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  background: #1c1c1c; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .25s var(--ease);
}
.template-badges a:hover { transform: translateY(-2px); }
.template-badges a.purple { background: #5f4aff; }
.template-badges svg { width: 14px; height: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1439.98px) {
  :root { --frame-w: 900px; }
  h1 { font-size: 60px; }
  .greeting { height: 72px; }
  .greeting span { font-size: 60px; }
  .cs-title { font-size: 52px; }
  .bento { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1100px) {
  .sidebar { left: 12px; }
}

@media (max-width: 1023.98px) {
  :root { --pad: 32px; }
  .sidebar { display: none; }
  .section { padding: 90px var(--pad); }
  h1 { font-size: 48px; }
  h3 { font-size: 30px; }
  .greeting { height: 58px; min-width: 150px; }
  .greeting span { font-size: 48px; }
  .lanyard { position: static; margin: 54px auto 0; --rope: 70px; }
  .hero { padding: 110px var(--pad) 80px; min-height: 0; }
  .project { grid-template-columns: 1fr; }
  .project.flip .project-body { order: 2; }
  .project.flip .project-media { order: 1; }
  .project-media { min-height: 240px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .footer-cta p { width: auto; }
  .bento-gallery { grid-row: auto; grid-column: 1 / -1; height: 320px; }
  .bento-music, .bento-bts { height: 262px; }
  .bento-surprise { grid-column: 1 / -1; height: 240px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .testimonials { grid-template-columns: 1fr; gap: 32px; }
  .cs-title { font-size: 40px; }
  .cs-meta { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 120px 1fr; }
  .tl-rail { padding-left: 36px; }
  .cs-section { margin-left: 0; max-width: none; }
}

@media (max-width: 809.98px) {
  :root { --pad: 20px; }
  h1 { font-size: 44px; }
  h3 { font-size: 26px; }
  h4 { font-size: 24px; }
  h5 { font-size: 22px; }
  .eyebrow { font-size: 18px; }
  .greeting { height: 54px; min-width: 130px; }
  .greeting span { font-size: 44px; }
  .section { padding: 72px var(--pad); }
  .frame { border-left: 0; border-right: 0; }
  .projects.grid2 { grid-template-columns: 1fr; }
  .cs-pair { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-music, .bento-bts { height: 262px; }
  .surprise-reveal { padding: 0 20px; text-align: center; }
  .stack-row { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .stack-tile { width: 54px; height: 54px; }
  .stack-tile img { width: 28px; height: 28px; }
  .tl-body { padding-left: 24px; padding-bottom: 60px; }
  .tl-row { grid-template-columns: 40px 1fr; }
  .tl-role { font-size: 22px; }
  .acc-btn h5 { font-size: 20px; }
  .cs-title { font-size: 32px; }
  .footer-cta { flex-direction: column; gap: 20px; }
  .footer-cta p { width: auto; text-align: center !important; }
  .template-badges { right: 12px; bottom: 12px; }
  .template-badges a { font-size: 12px; padding: 7px 11px; }
    .lanyard { display: none; }
  .nf-grid { grid-template-columns: repeat(24, 1fr); gap: 2px; }
}


/* ==========================================================================
   Elevation — a light theme needs a little lift; a 1px border alone reads flat
   ========================================================================== */
.project,
.stack-card,
.bento-card,
.profile-card,
.connect-card { box-shadow: var(--shadow-sm); }
.project:hover,
.connect-card:hover { box-shadow: var(--shadow-md); }

/* ==========================================================================
   Sections modelled on the saurabhyadav.design content structure
   ========================================================================== */

/* Small directional line under a section heading ("Tap a card for the full story →") */
.hint {
  margin-top: 14px;
  font-size: 15px;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hint::after { content: "→"; transition: transform .3s var(--ease); }
.section:hover .hint::after { transform: translateX(4px); }

/* ---------- What makes me different ---------- */
.diff-lede { max-width: 640px; }
.diff-lede p { color: var(--muted); font-size: 19px; line-height: 1.55; }
.diff-lede p + p { margin-top: 14px; }
.diff-lede strong { color: var(--text); font-weight: 500; }

.marquee {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 90px, #000 calc(100% - 90px), transparent);
}
.mq-row { display: flex; overflow: hidden; }
.mq-track {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  padding-right: 16px;
  animation: mq 42s linear infinite;
}
.mq-row.rev .mq-track { animation-direction: reverse; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track span {
  flex: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}
.mq-track i { flex: none; font-style: normal; color: var(--accent-ink); font-size: 13px; }
@keyframes mq { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ---------- How I got here ---------- */
.origin {
  max-width: 760px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--dim);
}
.origin strong { color: var(--text); font-weight: 500; }
.origin em { font-style: italic; color: var(--accent-ink); }

/* ---------- Personal facts ---------- */
.life {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.life h6 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.life ul { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.life li { color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.life li::before { content: "✦"; color: var(--accent-ink); font-size: 11px; flex: none; }
.life .place { margin-top: 14px; font-size: 22px; font-weight: 500; color: var(--text); }
.life .place span { display: block; font-size: 16px; font-weight: 400; color: var(--dim); margin-top: 4px; }

/* ---------- Let's connect ---------- */
.connect-lede { max-width: 560px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 38px;
}
.connect-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.connect-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border-flat)); }
.connect-card .ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.connect-card .ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.connect-card b { font-size: 17px; font-weight: 500; color: var(--text); }
.connect-card span { display: block; font-size: 14px; color: var(--dim); margin-top: 3px; word-break: break-word; }

/* ---------- Closing quote ---------- */
.closing {
  padding: 80px var(--pad) 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.closing q {
  display: block;
  max-width: 640px;
  margin: 0 auto;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
  quotes: "“" "”";
}
.closing cite { display: block; margin-top: 18px; font-style: normal; font-size: 15px; color: var(--dim); }

@media (max-width: 1024px) {
  .connect-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .origin { font-size: 22px; }
  .life { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .closing q { font-size: 20px; }
}

/* ---------- Hero statement + credential strip ---------- */
.hero-statement {
  margin-top: 26px;
  max-width: 620px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}
@media (max-width: 680px) {
  .hero-statement { font-size: 24px; }
}

/* A second heading inside an existing section (stack → journey) */
.section-head.sub { margin-top: 104px; }
.origin + .timeline { margin-top: 56px; }
.life .place + .place { margin-top: 22px; }

/* ---------- Case-study kicker + CTA band ---------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  flex-wrap: wrap;
  padding: 34px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cta-band h5 { color: var(--text); }
.cta-band p { margin-top: 8px; color: var(--muted); max-width: 46ch; }
.cta-band .hero-actions { margin-top: 0; }

/* ---------- 404 actions ---------- */
.nf-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.connect-lede + .contact-grid { margin-top: 38px; }
.nf-card span i { font-style: italic; color: var(--accent-ink); }
.life + .bento { margin-top: 56px; }

/* ==========================================================================
   Case study, presented as a deck
   Slide anatomy from the Designership UX case-study template: running header,
   uppercase chapter pill, large title, body, footer — rebuilt on this site's
   own tokens, type and radius so it still reads as the same site.
   ========================================================================== */
.deck {
  padding: 48px var(--pad) 110px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-bottom: 1px solid var(--border);
}
/* the prose rules from the old layout must not reach into a slide */
.deck .cs-section { max-width: none; margin-left: 0; }
.deck .cs-section + .cs-section { margin-top: 0; }

.slide {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  padding: 28px 36px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.slide-head,
.slide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.slide-foot { margin-top: auto; padding-top: 30px; }
.slide-head .no b { color: var(--text); font-weight: 400; }

.slide-badge {
  align-self: flex-start;
  margin-top: 44px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.slide-title {
  margin-top: 22px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--text);
  max-width: 22ch;
}
.slide-lede { margin-top: 18px; max-width: 54ch; font-size: 19px; line-height: 1.5; color: var(--dim); }
.slide-body { margin-top: 24px; max-width: 68ch; color: var(--muted); }
.slide-body p + p { margin-top: 14px; }
.slide-body strong { color: var(--text); font-weight: 500; }
.slide-body .cs-quote { margin: 20px 0; }

/* Cover */
.slide.cover { justify-content: flex-start; }
.slide.cover .slide-title { font-size: 54px; max-width: 18ch; margin-top: 34px; }
.slide.cover .cover-art {
  margin: 34px -36px -26px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.slide.cover .cover-art img { width: 100%; display: block; }

/* Agenda — the template's numbered section index */
.agenda { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.agenda a {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.agenda a i { font-style: normal; color: var(--accent-ink); }
.agenda a:hover { color: var(--text); border-color: var(--border-strong); transform: translateX(4px); }

/* Brief — the meta grid, inside a slide */
.slide .cs-meta { padding: 0; margin-top: 30px; gap: 24px 40px; }

/* Outcome figures */
.slide-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.slide-metrics.one { grid-template-columns: 1fr; }
.slide-metrics.two { grid-template-columns: repeat(2, 1fr); }
.metric {
  padding: 24px 22px;
  border-radius: var(--r-inner, 16px);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.metric b { display: block; font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--text); }
.metric span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.metric.text b { font-size: 22px; line-height: 1.3; letter-spacing: 0; }
.metric.text span { display: none; }

/* Media slide */
.slide.media { min-height: 0; padding: 28px 36px 26px; }
.slide-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.slide-figs figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.slide-figs img { width: 100%; display: block; }

@media (max-width: 860px) {
  .deck { padding: 36px 20px 80px; gap: 18px; }
  .slide { min-height: 0; padding: 22px 22px 20px; }
  .slide-title { font-size: 28px; max-width: none; }
  .slide.cover .slide-title { font-size: 34px; }
  .slide.cover .cover-art { margin: 26px -22px -20px; }
  .slide-badge { margin-top: 30px; }
  .slide-metrics, .slide-metrics.two { grid-template-columns: 1fr; }
  .metric b { font-size: 40px; }
  .slide-figs { grid-template-columns: 1fr; }
  .slide-head, .slide-foot { font-size: 10px; }
}
