:root {
  /* Layout: one white page, a 1240px column with wide gutters and long vertical spacing. Light-weight display type carries the design; hairlines appear only where content needs separating. Single theme: white. */
  --paper: #FFFFFF;
  --ink: #000000;
  --muted: #6E6E73;
  --line: #E8E8EA;
  --soft: #F5F5F6;
  --font-display: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(24px, 6vw, 72px); }
.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus { left: 16px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em;
}
.brand svg { width: 16px; height: 14px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); font-size: 0.9375rem; }
.nav a:not(.pill) { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.nav a:not(.pill):hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 680px) { .nav .hide-sm { display: none; } }

/* Buttons and links */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: inherit; font-size: 0.9375rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.pill:hover { background: #2B2B2E; }
.pill.small { height: 40px; padding: 0 18px; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none; color: var(--ink);
}
.tlink svg { width: 14px; height: 14px; flex: none; transition: transform 0.2s ease; }
.tlink:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.tlink:hover svg { transform: translateX(3px); }
.tlink.out:hover svg { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tlink svg, .co-arrow svg, .pill { transition: none; }
}

/* Hero */
.hero { padding-top: clamp(64px, 12vw, 176px); }
.hero h1, .display {
  margin: 0;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.9rem, 7.4vw, 6.4rem);
  line-height: 1; letter-spacing: -0.045em;
  max-width: 11.5em;
  text-wrap: balance;
}
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 32px 64px; margin-top: clamp(40px, 6vw, 72px);
}
.hero-foot p { margin: 0; max-width: 33em; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
@media (max-width: 820px) { .hero-foot { grid-template-columns: minmax(0, 1fr); } }

/* Sections */
.section { padding-top: clamp(88px, 12vw, 168px); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end;
  gap: 16px 64px; margin-bottom: clamp(40px, 6vw, 72px);
}
.sec-head h2, .split h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec-head p { margin: 0; max-width: 30em; color: var(--muted); }
@media (max-width: 820px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

/* Exits */
.exits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 880px) { .exits { grid-template-columns: minmax(0, 1fr); } }
.exit {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 4.5vw, 60px);
  background: var(--soft); border-radius: 24px;
}
.exit .status { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.exit h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em;
}
.exit .desc { margin: 0; max-width: 30em; color: var(--muted); }
.exit-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  margin: clamp(16px, 3vw, 28px) 0 0; padding-top: 24px;
  border-top: 1px solid #E1E1E4;
}
.exit-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.exit-stats dd {
  margin: 0;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.exit-stats dt { margin-top: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--muted); max-width: 16em; }
.exit .tlink { margin-top: auto; padding-top: 20px; }
.exit .note { margin-top: auto; padding-top: 20px; font-size: 0.9375rem; color: var(--muted); }

/* Company list */
.co-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.co-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr) 20px;
  grid-template-areas: "name desc status arrow";
  align-items: center; gap: 12px 32px;
  padding-block: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.co-name {
  grid-area: name;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.15; letter-spacing: -0.025em;
}
.co-desc { grid-area: desc; color: var(--muted); line-height: 1.5; }
.co-status { grid-area: status; display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.co-status::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
}
.co-status.live::before { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.co-status.building::before { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--muted); }
.co-status.stealth { color: var(--muted); }
.co-status.stealth::before { background: transparent; border: 1.5px dashed var(--muted); width: 9px; height: 9px; }
.co-arrow { grid-area: arrow; display: flex; justify-content: flex-end; }
.co-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
a.co-row:hover .co-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
a.co-row:hover .co-arrow svg { transform: translate(2px, -2px); }
.co-row.quiet .co-name { color: var(--muted); }
@media (max-width: 760px) {
  .co-row {
    grid-template-columns: minmax(0, 1fr) 20px;
    grid-template-areas: "name arrow" "desc desc" "status status";
    gap: 8px 16px;
  }
}

/* How we build */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin: 0; padding: 0; list-style: none; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { padding-top: 24px; border-top: 1px solid var(--ink); }
.step-num { display: block; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps h3 {
  margin: 18px 0 10px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em;
  text-wrap: balance;
}
.steps p { margin: 0; color: var(--muted); max-width: 26em; }

/* Closing call to action */
.cta { padding-block: clamp(104px, 15vw, 216px) clamp(80px, 11vw, 152px); }
.cta .display { max-width: 12em; font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(32px, 5vw, 56px); }
.cta-email {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem); letter-spacing: -0.02em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  overflow-wrap: anywhere;
}
#copy-status { color: var(--muted); font-size: 0.9375rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
.foot-brand p { margin: 12px 0 0; color: var(--muted); font-size: 0.9375rem; }
.foot-col h3 { margin: 0 0 14px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.foot-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  margin-top: clamp(48px, 6vw, 72px);
  color: var(--muted); font-size: 0.875rem;
}
.foot-base p { margin: 0; }

/* About page */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 64px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.split p { margin: 0 0 16px; max-width: 36em; }
.split .muted { color: var(--muted); }
.gloss { display: flex; margin: 0 0 32px; }
.morph { display: flex; flex-direction: column; }
.m-word {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem); line-height: 1; letter-spacing: -0.045em;
}
.m-gloss {
  width: 0; min-width: 100%;
  margin: 14px 12px 0 0; padding-top: 8px;
  border-top: 1px solid var(--ink);
  font-size: 0.875rem; line-height: 1.35; color: var(--muted);
}
.founder-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.025em;
}
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.facts div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Project grid */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
.work {
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--soft); border-radius: 18px;
}
.work .status { margin: 0; font-size: 0.875rem; color: var(--muted); }
.work h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em;
}
.work .desc { margin: 0; max-width: 32em; color: var(--muted); font-size: 0.9375rem; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.skills li { padding: 5px 12px; border-radius: 999px; background: var(--paper); font-size: 0.8125rem; color: var(--ink); }
.work .tlink { margin-top: auto; padding-top: 12px; font-size: 0.9375rem; }
.work.quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.work.quiet h3 { color: var(--muted); }
.work.quiet .skills li { background: var(--soft); color: var(--muted); }

/* Stacked statement lines */
.stack { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stack li {
  padding-block: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.035em;
}
.stack li:nth-child(2) { padding-left: clamp(0px, 8vw, 120px); }
.stack li:nth-child(3) { padding-left: clamp(0px, 16vw, 240px); color: var(--muted); }

/* Stage track */
.track {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin: 0 0 clamp(32px, 5vw, 56px); padding: 0; list-style: none;
}
.track::before { content: ""; position: absolute; left: 5px; right: 0; top: 5px; height: 1px; background: var(--ink); }
.track li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 28px; font-size: 0.9375rem; }
.track .dot { position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.track li:nth-child(2) .dot { background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%); }
.track li:nth-child(n + 3) .dot { background: var(--ink); }
.track strong { font-weight: 500; }
.track span:not(.dot) { color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
@media (max-width: 720px) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .track::before { display: none; }
}

/* Stage meter on each card */
.meter { display: grid; grid-template-columns: repeat(4, 22px); gap: 4px; }
.meter span { height: 3px; border-radius: 2px; background: #DCDCDF; }
.meter span.on { background: var(--ink); }
.work.quiet .meter span.on { background: var(--muted); }

/* Centered closing section */
.cta.centered { text-align: center; }
.cta.centered .display { margin-inline: auto; }
.cta.centered .cta-row { justify-content: center; }
.cta-copy { margin: 20px 0 0; font-size: 0.9375rem; color: var(--muted); }
.linklike { appearance: none; border: 0; padding: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.linklike:hover { color: var(--ink); }

/* Compact footer */
.site-foot { padding-block: 24px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot-row p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.foot-row .brand { font-size: 1rem; }


/* App-style icons */
.app-icon {
  display: block; width: 56px; height: 56px; margin-bottom: 10px;
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 14px rgba(0, 0, 0, 0.08);
}
.work.quiet .app-icon { box-shadow: none; }
.work { position: relative; }
.work .app-icon { position: absolute; top: 50%; right: clamp(20px, 2.4vw, 28px); margin: 0; transform: translateY(-50%); }
.work > :not(.app-icon) { margin-right: 88px; }
.app-icon.bordered { box-shadow: 0 0 0 1px #E4E4E7, 0 1px 2px rgba(0,0,0,0.08), 0 6px 14px rgba(0,0,0,0.08); }

.work .app-icon { width: 68px; height: 68px; border-radius: 15.5px; }
.skills li.acq { background: #000; color: #fff; }

/* ---------- Motion ---------- */
/* Sticky frosted header */
.site-head { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.site-head.scrolled { border-bottom-color: var(--line); }

/* Card hover lift */
.work { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1), opacity .7s ease; }
.work .app-icon { transition: transform .45s cubic-bezier(.2,.7,.2,1); }


@media (prefers-reduced-motion: no-preference) {
  /* Headline builds word by word */
  .words .w { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px);
    animation: wordIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .words .w:nth-child(1) { animation-delay: .15s; }
  .words .w:nth-child(2) { animation-delay: .55s; }
  .words .w:nth-child(3) { animation-delay: .95s; }
  @keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }

  /* Stacked lines light up as they reach the middle of the screen */
  .js .stack li { color: #C9C9CE; transition: color .7s ease; }
  .js .stack li.lit { color: var(--ink); }

  /* Cards ripple in */
}

/* ---------- Scroll story: words fill in as you scroll ---------- */
.story { position: relative; padding-block: clamp(200px, 26vw, 360px) clamp(64px, 9vw, 120px); }
.story-lines { margin: 0; }
.story-lines .line {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.2rem, 5.8vw, 4.8rem); line-height: 1.08; letter-spacing: -0.042em;
  padding-block: 0.45em;
}
.story-lines .line { transition: padding 1.6s cubic-bezier(.2,.8,.2,1); }
.js .story.spaced .line { padding-block: 1.4em; }
.js .story.collapsed .line { padding-block: 0.35em; }
.story-lines .line:nth-child(2) { padding-left: clamp(0px, 9vw, 140px); }
.story-lines .line:nth-child(3) { padding-left: clamp(0px, 18vw, 280px); }
.story-lines .kw { font-weight: 400; }
.story-lines .kw {
  background: linear-gradient(92deg, #1F64A8 0%, #7A5CF0 55%, #E8467C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .js .story .line { opacity: 0; transition: opacity 3s cubic-bezier(.25,.1,.25,1), padding 1.6s cubic-bezier(.2,.8,.2,1); }
  .js .story .line.in { opacity: 1; }
}

/* ---------- Apple design pass ---------- */
:root {
  --spring: cubic-bezier(.2,.8,.2,1);
  --spring-fast: cubic-bezier(.2,.8,.2,1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0.0000, 0.0874, 0.2575, 0.4330, 0.5840, 0.7032, 0.7925, 0.8572, 0.9029, 0.9347, 0.9564, 0.9711, 0.9809, 0.9875, 0.9918, 0.9947, 0.9966, 0.9978, 0.9986, 0.9991, 0.9994, 0.9996, 0.9998, 0.9998, 1); --spring-fast: linear(0.0000, 0.0842, 0.2495, 0.4219, 0.5719, 0.6915, 0.7822, 0.8485, 0.8959, 0.9292, 0.9523, 0.9680, 0.9787, 0.9859, 0.9907, 0.9939, 0.9960, 0.9974, 0.9983, 0.9989, 0.9993, 0.9995, 0.9997, 0.9998, 1); }
}

/* Typography: optical sizing, size-specific tracking */
html { font-optical-sizing: auto; }
body { letter-spacing: 0; }
.nav, .skills li, .foot-row p, .tlink, .pill { letter-spacing: 0.005em; }

/* Response: feedback on press, instant */
.pill, .tlink, .nav a, .co-row, .work a { -webkit-tap-highlight-color: transparent; }
.pill { transition: transform .55s var(--spring-fast), background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.pill:active { transform: scale(0.96); transition: transform 100ms ease-out; }
.tlink:active, .nav a:active { opacity: .6; transition: opacity 80ms ease-out; }

/* Cards: spring-driven tilt + lift (set by JS); entrance uses translate so the two compose */
.work {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)) scale(var(--press, 1));
  transition: translate .75s var(--spring), opacity .6s ease, box-shadow .4s ease;
  box-shadow: 0 calc(var(--shadow, 0) * 22px) calc(var(--shadow, 0) * 44px) calc(var(--shadow, 0) * -18px) rgba(0,0,0,.28);
}
.work .app-icon { transform: translateY(-50%) translate(var(--ix, 0px), var(--iy, 0px)) scale(var(--is, 1)); transition: none; }

/* Materials: translucent header with a scroll-edge fade instead of a hard divider */
.site-head { border-bottom: 0 !important; background: rgba(255,255,255,0.68);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,0)); opacity: 0; transition: opacity .3s ease; }
.site-head.scrolled::after { opacity: 1; }
@media (prefers-reduced-transparency: reduce) { .site-head { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .site-head { background: #fff; box-shadow: 0 1px 0 #000; } .work { box-shadow: inset 0 0 0 1px #000; } }

/* Headline materializes: blur + scale together, not a plain fade */
@media (prefers-reduced-motion: no-preference) {
  .words .w { transform: translateY(.18em) scale(.985); animation: wordIn 1s var(--spring) forwards; }
}
/* Reduced motion: gentle cross-fades only */
@media (prefers-reduced-motion: reduce) {
  .work { transform: none !important; transition: opacity .2s ease; }
  .pill:active { transform: none; }
  .words .w { animation: fadeOnly .4s ease forwards; opacity: 0; }
  @keyframes fadeOnly { to { opacity: 1; } }
}

/* Cards fly from the grid's center to their place, scrubbed by scroll */
.work-grid { position: relative; }
.work-grid.fly { will-change: translate; }
.work-grid.fly .work { position: relative; transition: box-shadow .4s ease; will-change: translate, scale, opacity; }
/* The project in the spotlight gets a soft lift so it reads as the focal point */
.work-grid.fly .work.focal { box-shadow: 0 30px 70px -28px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.04); }
.work-grid.fly .work.quiet.flying { background: #fff; }

/* ---------- Project cards: tabbed card shape, flips on hover to show more ---------- */
.work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .work-grid { grid-template-columns: minmax(0, 1fr); } }

.work {
  display: block; padding: 0; background: none; border-radius: 0; box-shadow: none !important;
  aspect-ratio: 1 / 1; perspective: 1400px; transform: none !important; outline: none;
}
@media (max-width: 520px) { .work { aspect-ratio: 5 / 4; } }
.work > :not(.app-icon) { margin-right: 0; }
.work .flip {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.work .face {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: clamp(18px, 1.8vw, 24px) clamp(18px, 1.8vw, 24px) 13%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  /* Rounded card with a tab that drops down on the bottom-left */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath d='M10 0H190A10 10 0 0 1 200 10V172A10 10 0 0 1 190 182H66C62 182 59.5 183.6 57.4 186.4L50.6 195.6C48.5 198.4 46 200 42 200H10A10 10 0 0 1 0 190V10A10 10 0 0 1 10 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath d='M10 0H190A10 10 0 0 1 200 10V172A10 10 0 0 1 190 182H66C62 182 59.5 183.6 57.4 186.4L50.6 195.6C48.5 198.4 46 200 42 200H10A10 10 0 0 1 0 190V10A10 10 0 0 1 10 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.work .front { background: var(--soft); }
.work .back  { background: #0B0B0C; color: #fff; transform: rotateY(180deg); gap: 10px; }

/* Front: big icon up top, name and line at the bottom */
.work .front .app-icon { position: static; transform: none; width: clamp(64px, 6vw, 80px); height: clamp(64px, 6vw, 80px); border-radius: 22.5%; margin: 0; }
.work .badge { display: inline-block; margin-bottom: 10px;
  padding: 5px 11px; border-radius: 999px; background: #000; color: #fff; font-size: 0.75rem; letter-spacing: .005em; }
.work .front-text { margin-top: auto; }
.work .front h3 { margin: 0 0 4px; }
.work .front .desc { font-size: 0.875rem; line-height: 1.4; }

/* Back: the longer story */
.work .back-name { margin: 0; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.015em; color: #fff; }
.work .more { margin: 0; color: rgba(255,255,255,.72); font-size: 0.875rem; line-height: 1.45; }
.work .back .skills { margin: 2px 0 0; }
.work .back .skills li { background: rgba(255,255,255,.12); color: #fff; }
.work .back .tlink { margin-top: auto; padding-top: 0; color: #fff; font-size: 0.875rem; }

.work.quiet .front { background: #FAFAFA; }
.work.quiet .back { background: #3F3F46; }

/* Flip once the card is in place: hover on desktop, tap on touch, and keyboard focus */
@media (hover: hover) {
  .work-grid:not(.fly) .work:hover .flip, .work.placed:hover .flip { transform: rotateY(180deg); }
}
.work.flipped .flip, .work:focus-visible .flip, .work:has(:focus-visible) .flip { transform: rotateY(180deg); }
.work:focus-visible .back { box-shadow: inset 0 0 0 2px #fff; }

/* Spotlight shadow follows the card's shape */
.work-grid.fly .work.quiet.flying { background: none; }

@media (prefers-reduced-motion: reduce) { .work .flip { transition: none; } }

/* ---------- Card art + title beneath the card, beside the tab ---------- */
.work { aspect-ratio: 200 / 216; }
@media (max-width: 520px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .work { aspect-ratio: 200 / 216; } }
.work .face {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 216' preserveAspectRatio='none'%3E%3Cpath transform='matrix(1 0 0 -1 0 216)' d='M10 0H190A10 10 0 0 1 200 10V174A10 10 0 0 1 190 184H70C65 184 62 186 59.6 189.6L48.4 210.4C46 214 43 216 38 216H10A10 10 0 0 1 0 206V10A10 10 0 0 1 10 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 216' preserveAspectRatio='none'%3E%3Cpath transform='matrix(1 0 0 -1 0 216)' d='M10 0H190A10 10 0 0 1 200 10V174A10 10 0 0 1 190 184H70C65 184 62 186 59.6 189.6L48.4 210.4C46 214 43 216 38 216H10A10 10 0 0 1 0 206V10A10 10 0 0 1 10 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  padding-bottom: 17%;
}
/* Front: full-bleed brand art with the logo large in the middle */
.work .front { align-items: center; justify-content: center; padding: 0 0 14.8%; overflow: hidden; }
.work .front .art { position: absolute; inset: 0 0 14.8% 0; width: 100%; height: 85.2%; }
.work .front .app-icon {
  position: relative; width: 40%; height: auto; aspect-ratio: 1; border-radius: 22.5%;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 14px 30px -6px rgba(0,0,0,.45);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.work .front .app-icon.bordered { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.18), 0 14px 30px -6px rgba(0,0,0,.45); }
#telemetry-properties .front .app-icon, #in-progress .front .app-icon { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 26px -8px rgba(31,60,100,.35); }
#in-progress .front .app-icon { box-shadow: none; }
.work .badge { position: absolute; top: 7%; left: 7%; margin: 0; background: rgba(255,255,255,.94); color: #000;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Title sits in the open space under the card, right of the tab */
.title-under {
  position: absolute; left: 37%; right: 2%; bottom: 0; height: 14.8%; margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: clamp(0.8rem, 1.05vw, 0.95rem); line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
}
.title-under .t-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.title-under .t-kick { color: var(--muted); font-size: .85em; }
@media (max-width: 520px) { .title-under .t-kick { display: none; } .title-under { font-size: .78rem; } }

/* Back */
.work .back { padding-bottom: 17%; }
.work .back-line { margin: -4px 0 0; color: #fff; font-size: 0.875rem; font-weight: 500; }
@media (max-width: 520px) { .work .back { padding: 14px 14px 17%; gap: 6px; } .work .more { font-size: .75rem; } .work .back .skills { display: none; } }
.work .front .app-icon { top: auto; right: auto; left: auto; transform: none; margin: 0; }
.title-under { left: 35%; }
.title-under .t-name { white-space: normal; line-height: 1.1; overflow: visible; }
.title-under .t-kick { white-space: nowrap; }

/* Pills live on the front of the card, over the art */
.work .front { padding: 12% 0 14.8%; }
.work .pills { position: absolute; z-index: 1; top: 6.5%; left: 6.5%; right: 6.5%; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.work .pills .badge { position: static; white-space: normal; line-height: 1.25; border-radius: 12px; padding: 5px 10px; max-width: 100%; }
.work .skills.on-art { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.work .skills.on-art li { padding: 4px 10px; font-size: 0.75rem; color: #fff; background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
#telemetry-properties .skills.on-art li { color: #1F3B5C; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(31,100,168,.15); }
#in-progress .skills.on-art li { color: var(--muted); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
/* Dark logos on dark art get a faint edge so they don't disappear */
#newsfold .front .app-icon, #skelo .front .app-icon, #indiana-spikes .front .app-icon, #sonar .front .app-icon {
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 14px 30px -6px rgba(0,0,0,.6); }
/* Back: keep the longer story inside the card */
.work .more { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
@media (max-width: 520px) {
  .work .pills { top: 6%; left: 6%; right: 6%; gap: 4px; }
  .work .pills .badge, .work .skills.on-art li { font-size: 0.625rem; padding: 3px 7px; }
  .work .more { -webkit-line-clamp: 4; }
  .work .back-line { font-size: .75rem; }
}
@media (max-width: 520px) { .work .back .tlink { font-size: .7rem; } .work .back-name { font-size: .9rem; } }

/* Flipped layout: the tab and the open space for the title are at the top */
.work .front { padding: 26% 0 0; }
.work .front .art { inset: 14.8% 0 0 0; }
.work .pills { top: calc(14.8% + 5.5%); }
.title-under { top: 0; bottom: auto; }
.work .back { padding-top: calc(14.8% + 18px); padding-bottom: clamp(18px, 1.8vw, 24px); }
@media (max-width: 520px) { .work .back { padding: calc(14.8% + 10px) 14px 14px; } .work .pills { top: calc(14.8% + 5%); } }
/* Pills along the bottom of the card */
.work .pills { top: auto; bottom: 6.5%; align-items: flex-end; align-content: flex-end; }
.work .front { padding: 14.8% 0 12%; }
@media (max-width: 520px) { .work .pills { top: auto; bottom: 6%; } .work .front { padding: 14.8% 0 14%; } }
@media (max-width: 520px) { .work .front .app-icon { width: 36%; } .work .front { padding: 14.8% 0 18%; } }
/* Acquired: solid, bolder, with a check, so it reads apart from the topic pills */
.work .pills .badge.acquired {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px 6px 7px; border-radius: 999px; background: #fff; color: #000;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 6px 18px -4px rgba(0,0,0,.45);
}
.work .pills .badge.acquired svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 520px) { .work .pills .badge.acquired { font-size: .6875rem; padding: 4px 9px 4px 5px; gap: 4px; } .work .pills .badge.acquired svg { width: 13px; height: 13px; } }
/* Bigger, bolder project titles */
.title-under .t-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 1.35vw, 1.2rem); letter-spacing: -0.02em; line-height: 1.02; }
.title-under .t-kick { font-size: clamp(.72rem, .85vw, .8rem); }
@media (max-width: 520px) { .title-under .t-name { font-size: .85rem; line-height: 1; } }
/* Titles: project names only */
.title-under { justify-content: flex-start; padding-left: 4px; }

/* ---------- Spotlight stage ----------
   While a project is presented, the rest of the page recedes behind a soft white veil,
   so the card and its name stand alone. The veil lifts as the card docks into the grid. */
.work-grid .stage-veil {
  position: absolute; top: 0; z-index: 250; background: #fff; opacity: 0;
  pointer-events: none; will-change: opacity, translate;
}
/* The name grows to fill the tab opening while its project is on stage */
.title-under .t-name { transform-origin: 0 50%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.work-grid.fly .work.focal .t-name { transform: scale(var(--tb, 1)); }

/* Lift: a tight contact shadow plus a wide pool of light in the project's own color.
   Painted as gradients (not blurred shadows) so it is perfectly smooth at any size and costs nothing to draw. */
.work::before {
  content: ""; position: absolute; left: -16%; right: -16%; top: 58%; bottom: -30%; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity .55s ease;
  background:
    radial-gradient(ellipse 33% 9% at 50% 59.5%, rgba(0,0,0,.34) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.06) 75%, rgba(0,0,0,0) 100%),
    radial-gradient(ellipse 44% 40% at 50% 60%, rgba(var(--glow, 20,20,30), .62) 0%, rgba(var(--glow, 20,20,30), .46) 30%, rgba(var(--glow, 20,20,30), .22) 55%, rgba(var(--glow, 20,20,30), .07) 78%, rgba(var(--glow, 20,20,30), 0) 100%);
}
.work-grid.fly .work.focal::before { opacity: 1; }
#telemetry { --glow: 22,70,122; }
#diamond-charts { --glow: 30,110,66; }
#newsfold { --glow: 29,61,143; }
#sonar { --glow: 24,96,200; }
#skelo { --glow: 46,150,58; }
#brightscan { --glow: 20,130,250; }
#town-civic { --glow: 32,54,92; }
#indiana-spikes { --glow: 170,128,48; }
#strength-in-pink { --glow: 219,39,119; }
#telemetry-properties { --glow: 31,100,168; }
#tree-farm { --glow: 24,90,54; }
#in-progress { --glow: 110,110,125; }

/* A single pass of light across the card as it takes the stage; the script picks a new direction each time */
.work .front::after {
  content: ""; position: absolute; inset: -60%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 43%, rgba(255,255,255,.14) 47.5%, rgba(255,255,255,.30) 50%, rgba(255,255,255,.14) 52.5%, rgba(255,255,255,0) 57%);
  transform: rotate(var(--sr, 22deg)) translateX(-42%);
}
.work-grid.fly .work.focal .front::after { animation: cardSheen 1.4s .25s cubic-bezier(.4,0,.2,1) both; }
@keyframes cardSheen {
  0% { opacity: 0; transform: rotate(var(--sr, 22deg)) translateX(-42%); }
  12%, 88% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--sr, 22deg)) translateX(42%); }
}
  100% { opacity: 0; transform: translateX(75%); }
}

/* Names break evenly when they need two lines */
.title-under .t-name { text-wrap: balance; }
/* While a card is on stage it is drawn flat, so it stays pin-sharp at full size; the 3D flip switches on once it is placed */
.work-grid.fly .work:not(.placed) { perspective: none; }
.work-grid.fly .work:not(.placed) .flip { transform-style: flat; }
.work-grid.fly .work:not(.placed) .back { display: none; }
.work-grid.fly .work:not(.placed) .front { -webkit-backface-visibility: visible; backface-visibility: visible; }
/* The placeholder card needs a touch more tone to hold its shape on a white stage */
#in-progress .front { background: #F1F1F4 !important; }
@media (max-width: 620px) { .work::before { left: -6%; right: -6%; } }
@media (max-width: 520px) { .title-under { left: 34%; padding-left: 2px; } .title-under .t-name { font-size: .8rem; } }

/* ================= Hero ================= */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 88px); min-height: calc(100svh - 88px);
  padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(88px, 13vh, 140px);
}
.hero > .wrap { width: 100%; }

/* Soft color in the air: three slow-drifting pools of light, the same hues as the headline */
.hero-aura {
  position: absolute; z-index: -1; inset: -88px 0 0 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0%, #000 52%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 52%, transparent 100%);
}
.hero-aura i { position: absolute; border-radius: 50%; will-change: transform; translate: calc(var(--px, 0) * var(--k, 1) * 1px) calc(var(--py, 0) * var(--k, 1) * 1px); }
.hero-aura .a1 { --k: 1; width: 64vw; height: 64vw; right: -16vw; top: -24vw;
  background: radial-gradient(closest-side, rgba(46,139,255,.22) 0%, rgba(46,139,255,.12) 45%, rgba(46,139,255,0) 100%); }
.hero-aura .a2 { --k: -.7; width: 54vw; height: 54vw; right: 16vw; top: 2vw;
  background: radial-gradient(closest-side, rgba(122,92,240,.17) 0%, rgba(122,92,240,.08) 50%, rgba(122,92,240,0) 100%); }
.hero-aura .a3 { --k: 1.5; width: 48vw; height: 48vw; right: -10vw; top: 20vw;
  background: radial-gradient(closest-side, rgba(232,70,124,.15) 0%, rgba(232,70,124,.07) 50%, rgba(232,70,124,0) 100%); }
@media (max-width: 700px) {
  .hero-aura .a1 { width: 120vw; height: 120vw; right: -50vw; top: -40vw; }
  .hero-aura .a2 { width: 110vw; height: 110vw; right: 10vw; top: 40vw; }
  .hero-aura .a3 { width: 100vw; height: 100vw; right: -40vw; top: 70vw; }
}

/* Headline: big, tight, confident. One line that spans the page; stacked on phones. */
.hero h1 {
  max-width: none; margin: 0; text-wrap: nowrap; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.2rem, 10.2vw, 7.9rem); line-height: .96; letter-spacing: -0.055em;
}
.hero .words .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: .09em .07em .13em .02em; margin: -.09em -.07em -.13em -.02em;
  opacity: 1; transform: none; filter: none; animation: none;
}
.hero .words .wi { display: inline-block; position: relative; color: rgba(0,0,0,1); }
/* Each word carries its own color, lit in turn */
.hero .words .wi::after {
  content: attr(data-t); content: attr(data-t) / "";
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.hero .words .w:nth-child(1) .wi { --g: linear-gradient(96deg, #1657A0 0%, #2E8BFF 100%); --n: 0; }
.hero .words .w:nth-child(2) .wi { --g: linear-gradient(96deg, #5B5BF0 0%, #A44FE8 100%); --n: 1; }
.hero .words .w:nth-child(3) .wi { --g: linear-gradient(96deg, #E8467C 0%, #FF8552 100%); --n: 2; }
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(4.2rem, 23vw, 6.6rem); line-height: .9; }
  .hero .words .w { display: block; width: -moz-fit-content; width: fit-content; }
}

/* The line beneath: larger, with the words that matter set in ink */
.hero .hero-foot { margin-top: clamp(30px, 4.4vw, 60px); gap: 32px 72px; align-items: end; }
.hero .hero-foot p.lede {
  max-width: 29em; margin: 0; color: #86868B; text-wrap: pretty;
  font-size: clamp(1.2rem, 1.85vw, 1.6rem); line-height: 1.42; letter-spacing: -0.014em; font-weight: 400;
}
.hero .lede .hl { color: var(--ink); font-weight: 500; }
.hero .hl:nth-of-type(1) { --i: 0; } .hero .hl:nth-of-type(2) { --i: 1; } .hero .hl:nth-of-type(3) { --i: 2; }
.hero .hl:nth-of-type(4) { --i: 3; } .hero .hl:nth-of-type(5) { --i: 4; } .hero .hl:nth-of-type(6) { --i: 5; }

/* Primary button: a little more presence, and a glow in the headline colors on hover */
.hero .pill { height: 54px; padding: 0 26px 0 28px; gap: 10px; font-size: 1rem;
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.55);
  transition: transform .55s var(--spring-fast), background-color .2s ease, box-shadow .35s ease, color .2s ease; }
.hero .pill svg { width: 15px; height: 15px; flex: none; transition: transform .45s var(--spring-fast); }
.hero .pill:hover { background: #000; box-shadow: 0 16px 36px -14px rgba(91,91,240,.75), 0 8px 20px -10px rgba(232,70,124,.5); }
.hero .pill:hover svg { transform: translateY(3px); }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: opacity .4s ease;
}
.scroll-cue i { position: relative; display: block; width: 1px; height: 38px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: linear-gradient(#5B5BF0, #E8467C); transform: translateY(-16px); }
.is-scrolled .scroll-cue { opacity: 0; }
@media (max-height: 560px) { .scroll-cue { display: none; } }

/* The story now starts right after a full-screen hero, so it needs less lead-in */
.story { padding-top: clamp(24px, 4vw, 64px); }

/* ---- Hero motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero .words .wi {
    transform: translateY(112%);
    animation: wordRise 1.05s var(--spring) forwards, inkOut 9s linear infinite both;
    animation-delay: calc(.12s + var(--n) * .16s), calc(1.7s + var(--n) * 3s);
  }
  .hero .words .wi::after { animation: ignite 9s linear infinite both; animation-delay: calc(1.7s + var(--n) * 3s); }
  @keyframes wordRise { to { transform: none; } }
  @keyframes ignite { 0% { opacity: 0; } 8% { opacity: 1; } 31% { opacity: 1; } 41% { opacity: 0; } 100% { opacity: 0; } }
  @keyframes inkOut { 0% { color: rgba(0,0,0,1); } 8% { color: rgba(0,0,0,0); } 31% { color: rgba(0,0,0,0); } 41% { color: rgba(0,0,0,1); } 100% { color: rgba(0,0,0,1); } }

  .hero .lede, .hero .hero-actions { opacity: 0; transform: translateY(16px); animation: riseIn 1.1s var(--spring) forwards; }
  .hero .lede { animation-delay: .75s; }
  .hero .hero-actions { animation-delay: .95s; }
  @keyframes riseIn { to { opacity: 1; transform: none; } }
  .hero .lede .hl { color: #86868B; animation: inkIn .9s ease forwards; animation-delay: calc(1.35s + var(--i) * .13s); }
  @keyframes inkIn { to { color: var(--ink); } }

  .hero-aura { opacity: 0; animation: auraIn 2.6s ease .2s forwards; }
  @keyframes auraIn { to { opacity: 1; } }
  .hero-aura .a1 { animation: driftA 24s ease-in-out infinite alternate; }
  .hero-aura .a2 { animation: driftB 29s ease-in-out infinite alternate; }
  .hero-aura .a3 { animation: driftC 33s ease-in-out infinite alternate; }
  @keyframes driftA { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-7vw, 5vw, 0) scale(1.12); } }
  @keyframes driftB { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(9vw, -4vw, 0) scale(.92); } }
  @keyframes driftC { from { transform: translate3d(0,0,0) scale(.95); } to { transform: translate3d(-6vw, -6vw, 0) scale(1.1); } }

  .scroll-cue { opacity: 0; animation: cueIn 1s ease 2.2s forwards; }
  .is-scrolled .scroll-cue { animation: none; opacity: 0; }
  @keyframes cueIn { to { opacity: 1; } }
  .scroll-cue i::after { animation: cueRun 2.2s cubic-bezier(.6,0,.3,1) 2.4s infinite; }
  @keyframes cueRun { 0% { transform: translateY(-16px); } 70%, 100% { transform: translateY(40px); } }
}
/* Reduced motion: no movement; the headline simply wears its colors */
@media (prefers-reduced-motion: reduce) {
  .hero .words .w { animation: none; opacity: 1; }
  .hero .words .wi { color: rgba(0,0,0,0); }
  .hero .words .wi::after { opacity: 1; }
}

/* ---------- Touch screens: make the back of each card obvious ---------- */
.flip-hint { display: none; }
@media (hover: none) {
  .flip-hint {
    display: grid; place-items: center; position: absolute; z-index: 2; right: 6%; top: calc(14.8% + 5.5%);
    width: 30px; height: 30px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.18);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  }
  .flip-hint svg { width: 16px; height: 16px; }
  #telemetry-properties .front .flip-hint, #in-progress .front .flip-hint { color: #3F3F46; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
  .work .back .flip-hint { top: auto; bottom: 6%; }
  .work .back .tlink { margin-right: 36px; }
  .work { -webkit-tap-highlight-color: transparent; cursor: pointer; }
  .work:active .flip { scale: .98; }
  .work-grid.fly .work:not(.placed) .flip-hint { opacity: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .work.peek:not(.flipped) .flip { animation: cardPeek 1.3s cubic-bezier(.3,.7,.3,1) .15s; }
    @keyframes cardPeek { 0%, 100% { transform: rotateY(0); } 40% { transform: rotateY(38deg); } 70% { transform: rotateY(-6deg); } }
    @keyframes hintSpin { to { transform: rotate(360deg); } }
  }
}
