/* Sandeep Kumar portfolio
   VOICE: plain, warm, confident. A researcher's working wall.
   IDEA: the highlighter. Findings get marked, method sits in the margin.
   PICTURE: each case study shows its finding as a small figure; INTENSITY brings its own screens.
   COLOUR: navy-to-fuchsia bands, white ground, deep ink; a soft lavender-to-pink highlighter; INTENSITY keeps its night palette.
   LAYOUT: full-width bands; a margin-note column beside a reading column inside each band. */

:root {
  --paper: #ffffff;
  --tint: #f2f4f7;
  --ink: #121a2e;
  --ink-2: #4a5367;
  --rule: #e1e5eb;
  --navy: #121a3a;
  --fuchsia: #b3216f;
  --band: linear-gradient(118deg, #121a3a 0%, #24205a 45%, #5b2275 72%, #b3216f 100%);
  --mark-grad: linear-gradient(90deg, #e2e5ff, #ffd6ea);
  --focus: #2747d6;
  --night: #0c0a18;
  --night-2: #18142c;
  --night-ink: #efecfa;
  --night-ink-2: #b9b3d3;
  --glow: linear-gradient(90deg, #ff9a4d, #f25f9c);
  --rainbow: linear-gradient(90deg, #5aa8ff, #5ee0a0, #f7d84a, #ff8a4d, #f25f9c);
  --measure: 44rem;
  --margin: 16rem;
  --gap: 3rem;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 10; }

/* The highlighter */
mark {
  color: inherit;
  background-color: transparent; background-image: var(--mark-grad); border-radius: 0.2em;
  background-repeat: no-repeat; background-size: 100% 100%;
  padding: 0 0.25em; margin: 0 -0.1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js .draw mark { background-size: 0% 100%; transition: background-size 0.7s cubic-bezier(.3,.7,.3,1) 0.15s; }
.js .draw.seen mark { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .js .draw mark { background-size: 100% 100%; transition: none; } }
@media (forced-colors: active) { mark { background: Mark; color: MarkText; } }

/* Frame */
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 2rem; }
.band { padding: 0; }
.band-mark { background: var(--band); color: #fff; }
.band-mark a { color: #fff; }
.band-mark .note, .band-mark .note strong, .band-mark .muted, .band-mark .back { color: rgba(255,255,255,.82); }
.band-mark .note strong { color: #fff; }
.band-mark .btn { background: #fff; color: var(--navy); border-color: #fff; }
.band-mark .btn:hover { background: #ece9f7; }
.band-mark .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.band-mark .btn.secondary:hover { background: rgba(255,255,255,.1); }
.band-tint { background: var(--tint); }
.band-night { background: var(--night); color: var(--night-ink); }

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: #fff; }
main > .band:first-child { padding-top: 3.6rem; }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; flex-wrap: wrap; }
.site-name { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 1.4rem; font-size: 0.95rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: #fff; opacity: 0.8; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }
.site-nav .app { opacity: 1; font-weight: 600; }

/* Margin-note grid */
.row {
  display: grid; grid-template-columns: var(--margin) minmax(0, var(--measure)); column-gap: var(--gap);
  padding: 3.5rem 0; border-top: 1px solid var(--rule);
}
.band > .wrap > .row:first-child, .row.flush { border-top: 0; }
.row > .note { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); padding-top: 0.35rem; }
.row > .note p { margin: 0 0 0.6rem; }
.row > .note strong { color: var(--ink); font-weight: 600; display: block; }
.row > .note h2 { color: var(--ink); font-size: 1.35rem; }
.row > .body > :first-child { margin-top: 0; }
.row > .body > :last-child { margin-bottom: 0; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--ink-2); }
.lede { font-size: 1.22rem; line-height: 1.55; }
.muted { color: var(--ink-2); }

/* Hero */
.hero { padding: 3.5rem 0 4.5rem; }
.hero-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3.5rem; align-items: start; }
.hero-cols .lede { margin: 0; }
.hero .who { font-weight: 600; margin-bottom: 1.25rem; }
.hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 2rem; }
.status { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.98rem; margin-top: 1.25rem; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #4ade80; flex: none; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0.65rem 1.2rem; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.98rem; border: 1.5px solid var(--ink);
}
.btn:hover { background: #24304f; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: rgba(18,26,46,.07); }
.btn.glow { background: var(--glow); border: 0; color: #1b0f1a; }
.btn.glow:hover { filter: brightness(1.06); }
.btn.ghost-night { background: transparent; color: var(--night-ink); border-color: rgba(239,236,250,.35); }
.btn.ghost-night:hover { background: rgba(239,236,250,.08); }
.text-link { font-weight: 600; }

/* Selected work */
.section-head { padding: 4.5rem 0 1.75rem; display: grid; grid-template-columns: var(--margin) minmax(0, var(--measure)); column-gap: var(--gap); align-items: baseline; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); }
.cases { list-style: none; margin: 0; padding: 0 0 4rem; display: grid; gap: 1.25rem; }
.cases li { margin: 0; }
.case {
  display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: 1.25rem; border-radius: 18px; text-decoration: none; color: inherit; background: var(--paper);
  border: 1px solid var(--rule); transition: border-color .15s, transform .15s;
}
.case:hover { border-color: #b9c1cd; }
.case:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.case .meta { font-size: 0.88rem; color: var(--ink-2); margin-bottom: 0.4rem; }
.case .meta strong { color: var(--ink); font-weight: 600; }
.case h3 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.case p { margin: 0 0 0.9rem; }
.access { font-size: 0.92rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.45rem; }
.access svg { width: 0.9rem; height: 0.9rem; }

/* Figures inside case cards */
.fig {
  background: var(--tint); border-radius: 12px; padding: 1.4rem 1.4rem 1.2rem; min-height: 13.5rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; font-size: 0.86rem; color: var(--ink-2);
}
.fig .cap { font-size: 0.8rem; color: var(--ink-2); }
.bars { display: grid; gap: 0.7rem; }
.bar-row { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); align-items: center; gap: 0.75rem; }
.bar-row .lab { line-height: 1.25; color: var(--ink); font-weight: 600; font-size: 0.85rem; }
.bar-row .lab span { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.75rem; }
.track { display: flex; align-items: center; gap: 0.5rem; }
.fill { height: 1.6rem; border-radius: 0 5px 5px 0; background: var(--ink); flex: none; }
.fill.soft { background: #8a93a7; }
.fill.mark { background: linear-gradient(90deg, var(--navy), var(--fuchsia)); }
.val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.dots { display: grid; grid-template-columns: repeat(14, 0.85rem); gap: 0.35rem; }
.dots i { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--ink); display: block; }
.dots i.h { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.8rem; color: var(--ink); }
.key span { display: inline-flex; align-items: center; gap: 0.4rem; }
.key i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ink); display: inline-block; }
.key i.h { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

.rounds { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.4rem; align-items: start; }
.rounds .r { display: grid; gap: 0.4rem; }
.rounds .r b { font-size: 0.78rem; color: var(--ink); font-weight: 600; }
.rounds .ppl { display: grid; grid-template-columns: repeat(5, 0.7rem); gap: 0.28rem; }
.rounds .ppl i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ink); }
.rounds .ppl.u i { background: #8a93a7; }

/* INTENSITY band */
.app-band { padding: 5rem 0; position: relative; overflow: hidden; }
.app-band::before {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 80%;
  background: radial-gradient(closest-side, rgba(242,95,156,.28), transparent 70%); pointer-events: none;
}
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; position: relative; }
.wordmark { font-weight: 700; letter-spacing: 0.04em; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; margin-bottom: 1rem; font-size: 1.05rem; }
.app-band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.1rem; }
.app-band p { color: var(--night-ink-2); }
.app-band .facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; color: var(--night-ink); font-size: 0.98rem; }
.app-band .facts li { margin: 0; padding-left: 1.4rem; position: relative; }
.app-band .facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--glow); }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 26rem; }
.phone {
  width: 12.5rem; border-radius: 26px; overflow: hidden; background: #000;
  border: 6px solid #2a2440; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  flex: none;
}
.phone:nth-child(1) { transform: rotate(-7deg) translate(2.5rem, 1.2rem); z-index: 1; width: 11rem; opacity: .92; }
.phone:nth-child(2) { z-index: 2; width: 13.5rem; }
.phone:nth-child(3) { transform: rotate(7deg) translate(-2.5rem, 1.2rem); z-index: 1; width: 11rem; opacity: .92; }

/* How I work */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.25rem; }
.principles h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.principles p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

/* Experience */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); margin: 0; }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .when { font-size: 0.9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.timeline .what strong { font-weight: 600; }
.timeline .what span { display: block; color: var(--ink-2); font-size: 0.96rem; }

.contact { padding: 4.5rem 0 5rem; }
.contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; max-width: 20ch; }
.contact .addr { font-size: 1.15rem; font-weight: 600; }

.footer { padding: 1.75rem 0 2.5rem; font-size: 0.875rem; color: var(--ink-2); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* Case study pages */
.case-head { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.case-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 22ch; }
.back { font-size: 0.9rem; text-decoration: none; display: inline-block; margin-bottom: 2rem; font-weight: 600; }
.band-mark .hero .who { color: rgba(255,255,255,.85); }
.band-mark .text-link { text-decoration-color: rgba(255,255,255,.6); }
.back:hover { text-decoration: underline; }

.tldr { font-size: 1.15rem; line-height: 1.6; }
.round { margin-bottom: 1.25rem; }
.round strong { display: block; }
figure { margin: 2rem 0; }
figcaption { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.6rem; }
.chart { width: 100%; height: auto; display: block; max-width: 34rem; }
table.data { border-collapse: collapse; font-size: 0.9rem; margin-top: 0.75rem; }
table.data th, table.data td { text-align: left; padding: 0.35rem 1.25rem 0.35rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
table.data th[scope="col"] { color: var(--ink-2); }
table.data td { font-variant-numeric: tabular-nums; }
details.table-view summary { cursor: pointer; font-size: 0.9rem; color: var(--ink-2); }

/* INTENSITY case head */
.app-head { padding: 3rem 0 4.5rem; }
.app-head .back { color: var(--night-ink); }
.app-head h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.app-head .tldr { color: var(--night-ink-2); }
.app-head .meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.5rem; margin-top: 2rem; font-size: 0.9rem; color: var(--night-ink-2); }
.app-head .meta-list strong { display: block; color: var(--night-ink); font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.shots figure { margin: 0; }
.shots img { border-radius: 18px; border: 1px solid var(--rule); }
.shots figcaption { font-size: 0.82rem; }

/* Password gate */
.gate { max-width: 26rem; }
.gate label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.gate .field { display: flex; gap: 0.5rem; }
.gate input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 0.65rem 0.9rem; border: 1.5px solid #aab2c2; border-radius: 999px; background: #fff; color: var(--ink); min-height: 2.9rem; }
.gate .btn { cursor: pointer; font-family: inherit; }
.gate .error { color: #a3261b; font-size: 0.95rem; margin-top: 0.75rem; }
.gate .hint { font-size: 0.95rem; color: var(--ink-2); margin-top: 1.25rem; }
#content:focus { outline: none; }

@media (max-width: 60rem) {
  .case { grid-template-columns: 1fr; gap: 1.5rem; }
  .app-grid { grid-template-columns: 1fr; }
  .phones { min-height: 0; margin-top: 1rem; }
}
@media (max-width: 52rem) {
  :root { --gap: 0; }
  .wrap { padding: 0 1.25rem; }
  .row, .section-head, .hero-cols { grid-template-columns: 1fr; }
  .row > .note { padding-top: 0; margin-bottom: 1rem; }
  .section-head h2 { margin-bottom: 0.75rem; }
  .row { padding: 2.75rem 0; }
  .hero { padding: 2.5rem 0 3.25rem; }
  .principles { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.15rem; }
  .phone { width: 8.5rem; border-width: 4px; border-radius: 18px; }
  .phone:nth-child(1), .phone:nth-child(3) { width: 7rem; }
  .phone:nth-child(2) { width: 9rem; }
  .phone:nth-child(1) { transform: rotate(-7deg) translate(1.6rem, 0.8rem); }
  .phone:nth-child(3) { transform: rotate(7deg) translate(-1.6rem, 0.8rem); }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .app-head .meta-list { grid-template-columns: 1fr; }
  .case { padding: 1rem; }
}
@media (max-width: 26rem) { .dots { grid-template-columns: repeat(12, 0.75rem); } .dots i { width: .75rem; height: .75rem; } }
@media print { .site-header, .actions, .gate { display: none; } }
main > .wrap > .row:first-child, #content > .row:first-child { border-top: 0; }

.band-mark .row > .note, .band-mark .row > .note p { color: rgba(255,255,255,.8); }
.band-mark .row > .note strong, .band-mark .row > .note h2 { color: #fff; }

@media (max-width: 52rem) { main > .band:first-child { padding-top: 6rem; } }
@media (max-width: 40rem) { .site-nav .opt { display: none; } .site-nav { gap: 1rem; } }

.case .sub { color: var(--ink-2); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; counter-reset: st; }
.stages li { margin: 0; display: grid; grid-template-columns: 1.6rem 6rem minmax(0, 1fr); align-items: center; gap: 0.6rem; background: var(--paper); border-radius: 8px; padding: 0.55rem 0.7rem; counter-increment: st; }
.stages li::before { content: counter(st); width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--fuchsia)); }
.stages b { color: var(--ink); font-size: 0.85rem; }
.stages span { font-size: 0.8rem; }
.other { list-style: none; margin: 0; padding: 0; }
.other li { padding: 0.8rem 0; border-top: 1px solid var(--rule); margin: 0; }
.other li:first-child { border-top: 0; padding-top: 0; }
.other a { font-weight: 600; }
.other span { display: block; color: var(--ink-2); font-size: 0.96rem; }
.case-head .sub { font-size: 1.15rem; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 40rem; }
.other-head { padding-top: 1rem; padding-bottom: 4.5rem; }
.cases { padding-bottom: 2rem; }
.rounds { gap: 0.8rem; }
.rounds .ppl { grid-template-columns: repeat(5, 0.6rem); gap: 0.24rem; }
.rounds .ppl i { width: 0.6rem; height: 0.6rem; }
@media (max-width: 30rem) { .rounds { grid-template-columns: repeat(2, auto); } }
.row > * { min-width: 0; }
.gate { width: 100%; }
.gate .btn { flex: none; }

/* Hero, welcoming version */
.hero { padding: 4.5rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: none; margin-bottom: 1.25rem; }
.hero .intro { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; max-width: 32ch; margin-bottom: 1.75rem; color: rgba(255,255,255,.92); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { margin: 0; padding: 0.4rem 0.85rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: 0.92rem; }
.hello { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 1.5rem 1.6rem; }
.hello p { margin: 0 0 0.5rem; color: rgba(255,255,255,.85); }
.hello .status { margin-top: 0; color: #fff; font-weight: 600; }
.hello .actions { margin-top: 1.25rem; }
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

.hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; }
.hero .status { margin-top: 1.75rem; color: rgba(255,255,255,.9); }
.polaroid { margin: 0; justify-self: center; width: min(100%, 17rem); transform: rotate(3.5deg); }
.polaroid img { width: 100%; border-radius: 4px; box-shadow: 0 28px 50px -18px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.2); }
@media (max-width: 52rem) {
  .polaroid { order: -1; justify-self: start; width: 9.5rem; transform: rotate(-3deg); }
}
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Motion ---------- */

/* Header: fixed, frosted once you scroll */
.site-header { position: fixed; transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; }
.site-header.scrolled { background: rgba(18, 26, 58, .78); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header .wrap { padding-top: .95rem; padding-bottom: .95rem; }

/* Slow drift in the gradient bands */
.motion .band-mark { background-size: 160% 160%; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }

/* Hero entrance, one orchestrated sequence */
.motion .hero h1, .motion .hero .intro, .motion .hero .chips, .motion .hero .status, .motion .hero .actions {
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.motion .hero .intro { animation-delay: .12s; }
.motion .hero .chips { animation-delay: .24s; }
.motion .hero .status { animation-delay: .34s; }
.motion .hero .actions { animation-delay: .42s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.polaroid { --rx: 0deg; --ry: 0deg; perspective: 900px; }
.polaroid img { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.motion .polaroid { animation: drop 1.1s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes drop { from { opacity: 0; transform: rotate(-8deg) translateY(-30px) scale(.94); } to { opacity: 1; transform: rotate(3.5deg); } }
@media (max-width: 52rem) { @keyframes drop { from { opacity: 0; transform: rotate(4deg) translateY(-20px); } to { opacity: 1; transform: rotate(-3deg); } } }

/* Reveal on scroll */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }

/* Case cards respond to the pointer */
.case { transition: border-color .2s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.case:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(18,26,58,.35); border-color: #c9cfdb; }
.case:active { transform: translateY(-1px); }
.access svg, .access { transition: gap .2s; }
.case:hover .access { gap: .7rem; }

/* Figures build when the card comes into view */
.motion .draw .fill { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1) .25s; }
.motion .draw.seen .fill { transform: none; }
.motion .draw .val { opacity: 0; transition: opacity .4s ease 1s; }
.motion .draw.seen .val { opacity: 1; }
.motion .draw .dots i, .motion .draw .ppl i { opacity: 0; transform: scale(.3); transition: opacity .3s ease, transform .4s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--i, 0) * 18ms + 150ms); }
.motion .draw.seen .dots i, .motion .draw.seen .ppl i { opacity: 1; transform: none; }
.motion .draw .stages li { opacity: 0; transform: translateX(-12px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 140ms + 150ms); }
.motion .draw.seen .stages li { opacity: 1; transform: none; }

/* INTENSITY phones drift at different speeds */
.phones { --p: 0; }
.phone { transition: transform .1s linear; }
.motion .phone:nth-child(1) { transform: rotate(-7deg) translate(2.5rem, calc(1.2rem + var(--p) * 40px)); }
.motion .phone:nth-child(2) { transform: translateY(calc(var(--p) * -30px)); }
.motion .phone:nth-child(3) { transform: rotate(7deg) translate(-2.5rem, calc(1.2rem + var(--p) * 60px)); }
@media (max-width: 52rem) {
  .motion .phone:nth-child(1) { transform: rotate(-7deg) translate(1.6rem, calc(.8rem + var(--p) * 20px)); }
  .motion .phone:nth-child(3) { transform: rotate(7deg) translate(-1.6rem, calc(.8rem + var(--p) * 30px)); }
}

/* How I work: small lift on hover */
.principles > div { padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--tint); transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s; }
.principles > div:hover { transform: translateY(-3px); background: #e9ecf2; }

/* ---------- Experience: scroll-driven timeline ---------- */
.xp { display: grid; grid-template-columns: var(--margin) minmax(0, var(--measure)); column-gap: var(--gap); padding: 4rem 0; border-top: 1px solid var(--rule); }
.xp-side { position: relative; }
.xp-sticky { position: sticky; top: 6rem; }
.xp-sticky h2 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.xp-now { display: grid; gap: .2rem; margin-bottom: 1.25rem; min-height: 5.5rem; }
.xp-year { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(110deg, var(--navy), var(--fuchsia)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xp-co { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.motion .xp.swap .xp-year, .motion .xp.swap .xp-co { animation: swapIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.xp-sticky .muted { font-size: .9rem; }

.xp-track { position: relative; padding-left: 2.25rem; }
.xp-line { position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--rule); border-radius: 2px; }
.xp-fill { position: absolute; inset: 0; background: linear-gradient(var(--navy), var(--fuchsia)); transform-origin: top; transform: scaleY(0); border-radius: 2px; }
.xp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.xp-item { position: relative; margin: 0; padding: 1.1rem 1.3rem; border-radius: 14px; border: 1px solid transparent; transition: background .4s, border-color .4s, opacity .4s, transform .4s cubic-bezier(.2,.7,.2,1); }
.xp-item::before { content: ""; position: absolute; left: -2.05rem; top: 1.45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px #b9c1cd; transition: background .3s, box-shadow .3s, transform .3s; }
.xp-item h3 { margin: .15rem 0 .1rem; font-size: 1.15rem; }
.xp-item h3 a { text-decoration: none; }
.xp-item h3 a:hover { text-decoration: underline; }
.xp-when { font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.xp-role { font-weight: 600; margin: 0 0 .35rem; }
.xp-item p:last-child { margin: 0; color: var(--ink-2); }
.motion .xp-item { opacity: .45; }
.motion .xp-item.past { opacity: .7; }
.xp-item.past::before { background: var(--navy); box-shadow: none; }
.xp-item.active { opacity: 1; background: var(--tint); border-color: var(--rule); }
.motion .xp-item.active { transform: translateX(4px); }
.xp-item.active::before { background: var(--fuchsia); box-shadow: 0 0 0 5px rgba(179,33,111,.18); transform: scale(1.15); }

@media (max-width: 52rem) {
  .xp { grid-template-columns: 1fr; padding: 2.75rem 0; }
  .xp-sticky { position: static; }
  .xp-now { display: none; }
  .xp-track { padding-left: 1.75rem; }
  .xp-line { left: .35rem; }
  .xp-item::before { left: -1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .case, .case:hover, .principles > div:hover { transform: none; }
  .xp-item.active { transform: none; }
}
.confidential { grid-column: 2; margin: 1.5rem 0 0; font-size: .9rem; color: var(--ink-2); display: flex; gap: .5rem; align-items: baseline; }
.confidential::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--fuchsia)); }
@media (max-width: 52rem) { .confidential { grid-column: 1; } }

/* INTENSITY: collapsible */
.app-band { padding: 2.25rem 0 5rem; transition: padding .5s cubic-bezier(.2,.7,.2,1); }
.app-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.app-bar .wordmark { margin: 0; }
.app-bar-text { color: var(--night-ink-2); font-size: .95rem; margin-right: auto; }
.app-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid rgba(239,236,250,.3); background: transparent; color: var(--night-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.app-toggle:hover { background: rgba(239,236,250,.08); }
.app-toggle svg { width: 1rem; height: 1rem; transition: transform .35s ease; }
.app-band.collapsed .app-toggle svg { transform: rotate(180deg); }
.app-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.app-body > .app-grid { min-height: 0; overflow: hidden; padding-top: 2.5rem; }
.app-band.collapsed { padding-bottom: 2.25rem; }
.app-band.collapsed .app-body { grid-template-rows: 0fr; opacity: 0; }
.app-band.collapsed::before { opacity: 0; }
.app-band::before { transition: opacity .4s; }
@media (max-width: 40rem) { .app-bar-text { order: 3; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .app-body, .app-band { transition: none; } }
.app-body > .app-grid { transition: padding-top .55s cubic-bezier(.2,.7,.2,1); }
.app-band.collapsed .app-body > .app-grid { padding-top: 0; }

/* Experience logos, top right of each box */
.xp-item { padding-right: 9rem; }
.xp-logo { position: absolute; top: 1.05rem; right: 1.2rem; height: 2.4rem; display: flex; align-items: center; justify-content: flex-end; transition: opacity .45s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.xp-logo img { max-height: 1.35rem; max-width: 7rem; width: auto; height: auto; object-fit: contain; }
.xp-logo.icon img { max-height: 2.4rem; border-radius: 9px; }
.xp-logo.mono { width: 2.4rem; border-radius: 10px; justify-content: center; font-weight: 700; font-size: .85rem; letter-spacing: -.01em; color: #fff; background: linear-gradient(135deg, var(--navy), var(--fuchsia)); }
.motion .xp-logo { opacity: 0; transform: translateY(8px) scale(.94); }
.motion .xp-item.active .xp-logo, .motion .xp-item.past .xp-logo { opacity: 1; transform: none; }
.motion .xp-item.past .xp-logo { opacity: .75; }
@media (max-width: 52rem) {
  .xp-item { padding-right: 1.3rem; padding-top: 3.6rem; }
  .xp-logo { right: auto; left: 1.3rem; top: 1rem; height: 2rem; }
  .xp-logo img { max-height: 1.1rem; }
  .xp-logo.icon img, .xp-logo.mono { max-height: 2rem; }
  .xp-logo.mono { width: 2rem; }
}
.hero .intro.lead { margin-bottom: .75rem; color: #fff; font-weight: 500; }
.hero h1 .h1-sub { display: block; font-size: .42em; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; margin-top: .6rem; color: #fff; }

.hero h1 .h1-sub { font-size: clamp(1.25rem, 2.3vw, 1.8rem); }
.shine {
  font-weight: 700;
  background: linear-gradient(100deg, #ff8fcf 0%, #ffd1ec 22%, #ffffff 34%, #c9b8ff 50%, #ff8fcf 66%, #ffd1ec 84%, #ffffff 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 143, 207, .35));
}
.motion .shine { animation: sheen 5.5s cubic-bezier(.4,0,.2,1) 1.2s infinite; }
@keyframes sheen { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }
@media (forced-colors: active) { .shine { color: CanvasText; background: none; } }
