:root {
  color-scheme: dark;
  --ink: #f2f2f0;
  --paper: #090909;
  --white: #ffffff;
  --blue: #151515;
  --blue-deep: #101010;
  --coral: #b8b8b4;
  --lime: #d7d7d3;
  --line: rgba(255, 255, 255, 0.15);
  --muted: #999995;
  --accent: #ff5038;
  --accent-soft: rgba(255, 80, 56, .14);
  --radius: .55rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { color: #090909; background: var(--accent); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
em { font-family: inherit; font-style: normal; font-weight: inherit; }
.icon { display: inline-block; flex: 0 0 auto; width: 1em; height: 1em; vertical-align: -.125em; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .75rem 1rem; color: #090909; background: var(--white); border: 2px solid var(--white); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.5rem;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.profile-mark { display: inline-flex; align-items: center; gap: .8rem; min-width: 0; }
.profile-avatar { isolation: isolate; position: relative; display: block; flex: 0 0 auto; width: 3rem; height: 3rem; }
.profile-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 40% 54%; border: 1px solid var(--line); border-radius: 50%; }
.profile-ring { position: absolute; inset: -4px; border: 2px solid transparent; border-radius: 50%; background: conic-gradient(#ff3ca6, #ff852f, #a347ff, #ff3ca6) border-box; mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; animation: profile-ring-retreat 20s cubic-bezier(.42, 0, .58, 1) infinite; }
.profile-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.profile-copy strong { font-size: .9rem; font-weight: 600; }
.profile-copy small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .72rem; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); font-size: .9rem; font-weight: 600; }
.site-header nav > a:not(.nav-contact):hover { opacity: .55; }
.work-menu { position: relative; }
.work-menu-trigger { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem 0; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; }
.work-menu-trigger .icon { width: .9rem; height: .9rem; transition: transform .2s; }
.work-menu.open .work-menu-trigger .icon { transform: rotate(180deg); }
.work-menu-list { position: absolute; top: calc(100% + .55rem); right: 0; width: 12rem; padding: .45rem; background: #111111; border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 18px 55px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-.4rem); transition: opacity .18s, transform .18s, visibility .18s; }
.work-menu-list::before { content: ""; position: absolute; inset: -.8rem 0 auto; height: .8rem; }
.work-menu-list a { display: block; padding: .72rem .75rem; border-radius: .55rem; }
.work-menu-list a:hover, .work-menu-list a:focus-visible { color: #090909; background: var(--ink); }
.work-menu.open .work-menu-list { opacity: 1; visibility: visible; transform: none; }
.nav-contact { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.nav-contact:hover { color: var(--ink); background: var(--accent-soft); border-color: var(--accent); }

.hero {
  min-height: calc(100svh - 5.5rem);
  border-bottom: 1px solid var(--line);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 5.5rem); padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 8vw, 8rem); }
.eyebrow, .case-kicker, .mini-label { color: var(--muted); font-size: .82rem; letter-spacing: .015em; font-weight: 500; }
.hero h1 { max-width: 14ch; margin-top: 1.5rem; font-size: clamp(3rem, 6vw, 6.7rem); }
.hero h1 em { color: var(--accent); }
.hero-intro { max-width: 39rem; margin-top: 2rem; font-size: clamp(1.08rem, 1.7vw, 1.45rem); line-height: 1.45; }
.hero-links { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .95rem 1.2rem; border-radius: 999px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.button-dark { color: #090909; background: var(--ink); }
.button-dark:hover { color: #090909; background: var(--accent); }
.text-link, .case-link { display: inline-flex; align-items: center; gap: .35rem; }
.text-link { border-bottom: 1px solid currentColor; }

.work { padding: 0 clamp(1.25rem, 4vw, 4rem) clamp(5rem, 9vw, 8rem); }
.case { position: relative; padding: clamp(5rem, 8vw, 8rem) 0; border-top: 1px solid var(--ink); }
.case-doorlist { border-top: 0; }
.case-copy { display: grid; grid-template-columns: 1fr 2.15fr; gap: 1.5rem clamp(2rem, 8vw, 8rem); margin-bottom: 4rem; }
.case-copy h3 { font-size: clamp(2.35rem, 4.4vw, 4.8rem); }
.case-copy > p:not(.case-kicker), .case-facts { grid-column: 2; }
.case-link { grid-column: 2; width: fit-content; margin-top: .5rem; padding-bottom: .15rem; border-bottom: 1px solid var(--accent); font-weight: 600; transition: color .2s; }
.case-link:hover { color: var(--accent); }
.case-copy > p:not(.case-kicker) { max-width: 46rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.5; }
.case-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0 0; }
.case-facts div { padding-top: 1rem; border-top: 1px solid var(--line); }
.case-facts dt { margin-bottom: .35rem; color: var(--muted); font-size: .78rem; letter-spacing: .01em; font-weight: 500; }
.case-facts dd { margin: 0; font-size: .98rem; }

.visual-board { overflow: hidden; margin: 0; border-radius: var(--radius); }
.visual-board-dark { padding: 1rem; background: #121212; border: 1px solid var(--line); }
.visual-board img { border-radius: calc(var(--radius) - .55rem); }
.visual-board figcaption, .pilot-gallery figcaption { padding: .8rem .25rem .2rem; color: rgba(255,255,255,.62); font-size: .78rem; }
.visual-board.compact { margin-top: 4rem; }
.doorlist-screen-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doorlist-screen-frame { position: relative; overflow: hidden; aspect-ratio: 860 / 1842; border-radius: 12px; background: #00030d; }
.doorlist-screen-frame img { position: absolute; top: 0; width: auto; max-width: none; height: 100%; min-height: 0; border-radius: 0; }
.doorlist-screen-left { left: 0; }
.doorlist-screen-right { right: 0; }
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); padding: clamp(5rem, 9vw, 8rem) 0 2rem; }
.decision-copy h4 { max-width: 18ch; margin: 1rem 0 1.5rem; font-size: clamp(1.8rem, 3.2vw, 3.4rem); }
.decision-copy p:last-child { max-width: 37rem; font-size: 1.05rem; }
blockquote { align-self: end; margin: 0; padding: .4rem 1rem .65rem 1.5rem; color: var(--ink); background: transparent; border-left: 1px solid var(--accent); border-radius: 0; font-size: clamp(1.55rem, 3vw, 3rem); font-weight: 500; line-height: 1.18; }
.outcome { display: grid; grid-template-columns: 1fr 2.15fr; gap: 1rem clamp(2rem, 8vw, 8rem); padding-top: clamp(5rem, 9vw, 8rem); }
.outcome > *:not(.mini-label) { grid-column: 2; }
.outcome-statement { max-width: 20ch; font-size: clamp(2rem, 3.5vw, 3.8rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; color: var(--white); }
.outcome p:last-child { max-width: 42rem; font-size: 1.05rem; }

.case-pilot { color: var(--ink); background: #101010; margin-inline: calc(clamp(1.25rem, 4vw, 4rem) * -1); padding-inline: clamp(1.25rem, 4vw, 4rem); border-top-color: var(--line); }
.project-case .case-pilot { background: var(--paper); }
.case-pilot .case-facts div { border-top-color: rgba(255,255,255,.25); }
.pilot-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pilot-gallery figure { overflow: hidden; margin: 0; padding: .7rem; background: #e8e8e5; border-radius: var(--radius); }
.pilot-gallery img { border-radius: calc(var(--radius) - .55rem); }
.pilot-gallery figcaption { color: rgba(17,17,17,.62); }
.visual-board,
.pilot-gallery { width: min(82%, 50rem); margin-inline: auto; }
.principles { padding-top: clamp(5rem, 9vw, 8rem); }
.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; border-top: .5px solid rgba(255,255,255,.25); }
.principle-list > div { min-height: 17rem; padding: 1.2rem 1.5rem 1.5rem 0; border-right: .5px solid rgba(255,255,255,.25); }
.principle-list > div + div { padding-left: 1.5rem; }
.principle-list > div:last-child { border-right: 0; }
.principle-list span { font-size: .75rem; opacity: .6; }
.principle-list h4 { margin: 4rem 0 1rem; font-size: clamp(1.6rem, 2.5vw, 2.8rem); }
.principle-list p { opacity: .76; }

.case-zeal { border-top: 0; }
.zeal-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 1fr); gap: 1rem; }
.zeal-grid .case-copy { display: block; margin: 0; padding: clamp(2rem, 5vw, 4rem); color: var(--ink); background: #151515; border: 1px solid var(--line); border-radius: var(--radius); }
.zeal-grid .case-copy h3 { margin: 2rem 0; font-size: clamp(2.2rem, 3.8vw, 4rem); }
.zeal-grid .case-copy p:last-child { font-size: 1.05rem; line-height: 1.5; }
.role-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 30rem; padding: clamp(2rem, 4vw, 3.5rem); background: #0f0f0f; border: 1px solid var(--line); border-radius: var(--radius); }
.role-card h4 { max-width: 11ch; margin-top: .8rem; font-size: clamp(2.1rem, 3.2vw, 3.4rem); }
.role-card dl { margin: 3rem 0 0; }
.role-card dl > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.role-card dl > div + div { margin-top: 1.5rem; }
.role-card dt { margin-bottom: .4rem; color: var(--muted); font-size: .78rem; font-weight: 500; }
.role-card dd { max-width: 36rem; margin: 0; line-height: 1.55; }
.zeal-note { max-width: 46rem; margin: 2rem 0 0 auto; color: var(--muted); font-size: .9rem; }

.about { display: grid; grid-template-columns: 1fr 2.15fr; gap: 1.5rem clamp(2rem, 8vw, 8rem); padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4rem); border-top: 1px solid var(--line); }
.about-copy h2 { max-width: 14ch; margin: 0 0 2rem; font-size: clamp(2.8rem, 5vw, 5.5rem); }
.about-copy { align-self: start; }
.about-copy > p { max-width: 42rem; font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.45; }
.about-copy > p + p { margin-top: 1.5rem; }
.about-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.about-meta span { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
.about-philosophy { grid-column: 1 / -1; margin-top: clamp(1rem, 4vw, 4rem); padding: clamp(2.5rem, 6vw, 6rem); color: var(--ink); background: #121212; border: 1px solid var(--line); border-radius: var(--radius); }
.about-philosophy p { max-width: 25ch; font-size: clamp(2rem, 3.6vw, 4rem); line-height: 1.08; letter-spacing: -.035em; }
.about-philosophy strong { color: var(--accent); font-weight: 500; }

.project-main { padding-top: 0; }
.project-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(18rem, .6fr); min-height: 34rem; border-bottom: 1px solid var(--line); }
.project-hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7rem); }
.project-hero-copy h1 { max-width: 15ch; margin-top: 1.2rem; font-size: clamp(3rem, 5.5vw, 6rem); }
.project-hero-copy > p:last-child { max-width: 42rem; margin-top: 2rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.project-hero-side { display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; color: var(--ink); background: #121212; border-left: 1px solid var(--line); }
.project-hero-side dl { margin: 0; }
.project-hero-side div { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.3); }
.project-hero-side dl > div:first-child { border-top: 0; }
.project-hero-side dt { margin-bottom: .3rem; color: var(--muted); font-size: .76rem; letter-spacing: .01em; font-weight: 500; }
.project-hero-side dd { margin: 0; }
.project-case { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 4vw, 4rem); }
.project-case .case { padding-top: 0; border-top: 0; }
.project-next { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 6vw, 6rem); color: var(--ink); background: #121212; border-top: 1px solid var(--line); }
.project-next span { color: var(--muted); font-size: .8rem; letter-spacing: .01em; font-weight: 500; }
.project-next a { display: inline-flex; align-items: center; gap: .55rem; font-size: clamp(1.8rem, 3.2vw, 3.4rem); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.project-next a:hover { color: var(--accent); }
.project-page-zeal .project-hero-side { background: #121212; }
.project-page-zeal .project-next a:hover { color: var(--accent); }

.contact { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 8vw, 8rem); color: var(--ink); background: #111111; border-top: 1px solid var(--line); }
.contact h2 { margin: 1.5rem 0 3rem; font-size: clamp(3.5rem, 7vw, 8rem); }
.contact h2 em { color: var(--accent); }
.contact-row { display: flex; align-items: center; gap: 2rem; }
.button-light { color: #090909; background: var(--white); }
footer { display: flex; justify-content: space-between; padding: 1.3rem clamp(1.25rem, 4vw, 4rem); color: var(--muted); background: #111111; border-top: 1px solid var(--line); font-size: .78rem; }
footer a { display: inline-flex; align-items: center; gap: .3rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .case-copy, .outcome, .about { grid-template-columns: 1fr; }
  .case-copy > p:not(.case-kicker), .case-facts, .case-link, .outcome > *:not(.mini-label) { grid-column: 1; }
  .pilot-gallery { grid-template-columns: 1fr; }
  .zeal-grid { grid-template-columns: 1fr; }
  .role-card { min-height: auto; }
  .project-hero { grid-template-columns: 1fr; }
  .project-hero-side { min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .decision-grid { grid-template-columns: 1fr; }
  .visual-board, .pilot-gallery { width: 100%; }
  .case-copy, .outcome, .about { gap: 1.5rem; }
}

@media (max-width: 620px) {
  .site-header { height: 4.5rem; padding-inline: 1rem; gap: .75rem; }
  .site-header nav > a, .work-menu-trigger { display: inline-flex; align-items: center; min-height: 44px; }
  .site-header nav { gap: .8rem; }
  .profile-copy { display: none; }
  .work-menu-list { position: fixed; top: 4.5rem; right: 1rem; left: 1rem; width: auto; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  html { scroll-padding-top: 5.5rem; }
  .hero { min-height: 0; }
  .hero-copy { min-height: calc(85svh - 4.5rem); padding: 3.5rem 1.25rem; }
  .hero h1 br { display: none; }
  .hero-intro { margin-top: 1.5rem; }
  .hero-links, .contact-row { align-items: flex-start; flex-direction: column; }
  .case { padding-block: 3.5rem; }
  .case-copy { margin-bottom: 2rem; }
  .case-copy h3 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .case-facts { margin-top: .5rem; }
  .case-link, .about-more, .hero-links .text-link { min-height: 44px; }
  .project-hero { min-height: 0; }
  .project-hero-copy { padding: 3rem 1.25rem; }
  .project-hero-copy h1 { font-size: clamp(2.35rem, 9.5vw, 3.5rem); }
  .project-hero-side { padding: 1rem 1.25rem; }
  .project-case { padding: 3.5rem 1.25rem 0; }
  .project-brand { line-height: 1.5; }
  .decision-grid, .outcome, .principles { padding-top: 3.5rem; }
  .visual-board.compact { margin-top: 2.5rem; }
  .case-facts, .decision-grid, .principle-list, .zeal-grid { grid-template-columns: 1fr; }
  .decision-grid { gap: 3rem; }
  .principle-list > div { min-height: auto; padding: 1.5rem 0 2.5rem; border-right: 0; border-bottom: .5px solid rgba(255,255,255,.25); }
  .principle-list > div + div { padding-left: 0; }
  .principle-list h4 { margin-top: 2rem; }
  .visual-board-dark { padding: .5rem; }
  .visual-board img { height: auto; min-height: 0; object-fit: contain; }
  .visual-board, .pilot-gallery { width: 100%; }
  .about { padding: 3.5rem 1.25rem; gap: 2rem; }
  .about-copy h1, .about-copy h2 { max-width: 14ch; font-size: clamp(2.35rem, 9.5vw, 3.5rem); }
  .about-philosophy { padding: 1.5rem; }
  .about-philosophy p { font-size: 1.75rem; }
  .contact { padding: 3.5rem 1.25rem; }
  .contact h2 { font-size: clamp(2.75rem, 11vw, 4rem); margin-bottom: 2rem; }
  .contact-row .button { max-width: 100%; gap: .75rem; font-size: clamp(.85rem, 3.8vw, 1rem); }
  footer { gap: 1rem; flex-wrap: wrap; }
  .project-next { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .profile-copy { display: none; }
}

/* Company marks stay at the requested 32px at every viewport size. */
.project-brand { display: flex; align-items: center; gap: 8px; }
.project-brand .project-logo { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; border-radius: 8px; }
.about-photo { grid-column: 1 / -1; margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.about-photo figcaption { margin-top: .75rem; font-size: .8rem; color: var(--muted); }
.about-more { margin-top: 1.5rem; }
.about-page .about { border-top: 0; }
.about-copy h1 { max-width: 14ch; margin: 0 0 2rem; font-size: clamp(2.8rem, 5vw, 5.5rem); }

.doorlist-product-row { display: grid; grid-template-columns: minmax(0, .575fr) minmax(0, .615fr) minmax(0, .574fr); gap: 6px; align-items: end; }
.doorlist-product-row img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; border-radius: 0; }
.doorlist-comparison > img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }

.about-photo-small { width: min(100%, 40rem); justify-self: center; }
.about-title .about-profile-photo { display: block; width: 144px; height: 144px; margin-top: 2rem; border-radius: 50%; object-fit: cover; }

:root {
  --modal-open-dur: 250ms;
  --modal-close-dur: 150ms;
  --modal-scale: 0.96;
  --modal-scale-close: 0.96;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.t-modal {
  transform-origin: center;
  transform: scale(var(--modal-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-open-dur) var(--modal-ease),
    opacity   var(--modal-open-dur) var(--modal-ease);
  will-change: transform, opacity;
}
.t-modal.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-modal.is-closing {
  transform: scale(var(--modal-scale-close));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-close-dur) var(--modal-ease),
    opacity   var(--modal-close-dur) var(--modal-ease);
}
@media (prefers-reduced-motion: reduce) {
  .t-modal { transition: none !important; }
}
.zoomable-image { cursor: zoom-in; transition: filter 150ms ease-out, scale 150ms ease-out; }
@media (hover: hover) {
  .zoomable-image:hover { filter: brightness(1.06); scale: 1.015; }
}
@media (prefers-reduced-motion: reduce) {
  .zoomable-image { transition: none; }
  .zoomable-image:hover { scale: 1; }
}
.zoomable-image:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.image-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 56px 24px 24px; border: 0; background: transparent; overflow: auto; }
.image-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.image-lightbox::backdrop { background: rgb(0 0 0 / .88); }
.image-lightbox-content { flex: 0 1 auto; min-width: 0; }
.image-lightbox-content img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 80px); object-fit: contain; border-radius: 8px; }
.image-lightbox-close { position: fixed; top: 12px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #ffffff55; border-radius: 50%; background: #171717; color: white; cursor: pointer; }
.image-lightbox-close:focus-visible { outline: 2px solid white; outline-offset: 3px; }

.image-lightbox-close svg { display: block; width: 14px; height: 14px; }

/* Match the phone bodies despite different decorative margins in the exports. */
#pilot .pilot-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Compensate for the exports’ unequal transparent side margins. */
.doorlist-product-row img:nth-child(2) { translate: 5% 0; }

/* A short retreat on page load, then once every 20 seconds. */
@keyframes profile-ring-retreat {
  0%, 7%, 100% { transform: scale(1); }
  3.5% { transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-ring { animation: none; }
}

/* Phone screens stay readable in a local swipe area, without widening the page. */
.gallery-hint { display: none; }
@media (max-width: 620px) {
  .gallery-scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--radius); }
  .doorlist-product-row { min-width: 660px; }
  .gallery-hint { display: block; margin-bottom: .5rem; color: var(--muted); font-size: .75rem; }
  .image-lightbox { padding: 60px 12px 20px; }
  .image-lightbox-close::after { content: ""; position: absolute; inset: -6px; }
}

/* Pilot's long-form case study keeps screenshots uncropped and the reading column calm. */
.pilot-story { max-width: 1440px; margin: auto; padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 5vw, 5rem) 0; }
.pilot-story-section { padding: clamp(3.5rem, 7vw, 7rem) 0; border-top: 1px solid var(--line); }
.pilot-story > .pilot-story-figure { margin-bottom: clamp(3.5rem, 7vw, 7rem); }
.pilot-story-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
.pilot-story-label { color: var(--muted); font-size: .82rem; }
.pilot-story h2 { max-width: 23ch; font-size: clamp(2rem, 3.7vw, 3.6rem); text-wrap: balance; }
.pilot-story h3 { margin-top: 2rem; font-size: 1.4rem; }
.pilot-story-intro > div > p { margin-top: 1.5rem; max-width: 65ch; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.65; }
.pilot-story-figure { margin: 3rem 0 0; min-width: 0; }
.pilot-story-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.pilot-story-figure figcaption { max-width: 75ch; margin-top: .85rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.pilot-story-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.pilot-story-pair .pilot-story-figure img { aspect-ratio: 1.69; object-fit: contain; background: #f5f5f5; }
.pilot-signal-map { margin-top: 3rem; padding: 2.5rem 1rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.pilot-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.pilot-sources button { padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 2rem; font-size: .85rem; }
.pilot-map-arrow { display: block; color: var(--muted); margin: 1rem; }
.pilot-signal-map strong { font-size: 1.75rem; }
.pilot-signal-map p { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
.pilot-signal-map p span { color: var(--white); }
.pilot-question-map { margin: 3rem 0 0; }
.pilot-question-map > div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.pilot-question-map dt { font-size: 1.1rem; }
.pilot-question-map dd { margin: 0; color: var(--muted); text-align: right; }
.pilot-modes { margin-top: 3rem; }
.pilot-modes > div { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.pilot-modes h3 { margin: .75rem 0 1rem; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.pilot-modes p { color: var(--muted); max-width: 40ch; }
.pilot-trust-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 3rem 0 0; list-style: none; counter-reset: trust; }
.pilot-trust-flow li { counter-increment: trust; border-top: 1px solid var(--line); padding-top: 1rem; }
.pilot-trust-flow li::before { content: '0' counter(trust); display: block; font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.pilot-story-demo { margin-top: 2rem; }
@media (max-width: 760px) {
  .pilot-story-intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .pilot-story-pair { grid-template-columns: 1fr; gap: 0; }
  .pilot-modes { gap: 2rem; }
  .pilot-trust-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .pilot-question-map > div { flex-direction: column; gap: .35rem; }
  .pilot-question-map dd { text-align: left; font-size: .9rem; }
  .pilot-story-figure { margin-top: 2rem; }
}

.pilot-app-sources { margin-top: 3rem; overflow-x: auto; overscroll-behavior-x: contain; }
.pilot-app-sources ul { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: max-content; min-width: 100%; margin: 0; padding: 1rem .75rem; list-style: none; }
.pilot-app-sources li { flex: 0 0 64px; display: flex; align-items: center; justify-content: center; height: 72px; }
.pilot-app-sources img { width: auto; height: auto; max-width: 64px; max-height: 72px; border: 0; outline: none; box-shadow: none; filter: none; }
.pilot-signal-map .pilot-map-logo { width: 64px; height: 64px; margin: auto; border-radius: 14px; }
.pilot-app-sources + .pilot-signal-map { margin-top: 1.5rem; }

/* Keep each screen with its mode, with matching top edges on wide layouts. */
.pilot-modes > div { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; }
.pilot-modes .pilot-story-figure img { aspect-ratio: 2878 / 1836; object-fit: contain; object-position: top left; }
.pilot-modes .pilot-story-figure { margin-top: 2rem; }
@media (min-width: 761px) {
  .pilot-modes { row-gap: 0; }
  .pilot-modes > div { grid-row: span 4; grid-template-rows: subgrid; }
}

/* Category focus also exposes the app mapping for keyboards and touch. */
.pilot-sources button { color: inherit; font-family: inherit; line-height: inherit; background: transparent; cursor: pointer; min-height: 44px; transition: background-color 150ms ease, border-color 150ms ease; }
.pilot-sources button:is(:hover, :focus) { background: rgb(255 255 255 / .065); border-color: rgb(255 255 255 / .3); }
.pilot-sources button:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }
.pilot-app-sources li { outline: none; box-shadow: none; filter: none; transition: scale 200ms ease-out, opacity 200ms ease-out; }
#origin:has(.pilot-sources button:is(:hover, :focus)) .pilot-app-sources li { opacity: .6; }
#origin:has(.pilot-sources [data-source="analytics"]:is(:hover, :focus)) [data-source-group="analytics"] { scale: 1.06; opacity: 1; }
#origin:has(.pilot-sources [data-source="feedback"]:is(:hover, :focus)) [data-source-group="feedback"] { scale: 1.06; opacity: 1; }
#origin:has(.pilot-sources [data-source="code"]:is(:hover, :focus)) [data-source-group="code"] { scale: 1.06; opacity: 1; }
#origin:has(.pilot-sources [data-source="social"]:is(:hover, :focus)) [data-source-group="social"] { scale: 1.06; opacity: 1; }
#origin:has(.pilot-sources [data-source="changes"]:is(:hover, :focus)) [data-source-group="changes"] { scale: 1.06; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pilot-sources button, .pilot-app-sources li { transition: none; } }

.doorlist-research-images { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1rem, 3vw, 3rem); width: min(100%, 44rem); margin: 0 auto clamp(4rem, 8vw, 7rem); }
.doorlist-research-images img { width: 100%; height: clamp(20rem, 44vw, 35rem); object-fit: contain; }
@media (max-width: 600px) { .doorlist-research-images { grid-template-columns: 1fr; max-width: 20rem; gap: 2rem; } .doorlist-research-images img { height: 30rem; max-height: 75vh; } }

.doorlist-experiment { padding-bottom: clamp(3rem, 6vw, 5rem); }
.outcome > .doorlist-final-screens { grid-column: 1 / -1; width: 100%; margin: clamp(2rem, 4vw, 4rem) 0 0; }
.doorlist-final-screens img { width: 100%; height: auto; border-radius: var(--radius); }

.case-study-link { justify-self: start; margin-top: 1rem; padding: .55rem .9rem; gap: .85rem; font-size: .875rem; }

.doorlist-test-comparison { margin-bottom: 0; }
.doorlist-test-comparison figure { margin: 0; min-width: 0; }
.doorlist-test-comparison figcaption { margin-top: 1rem; text-align: center; color: var(--muted); font-size: .875rem; }

.case-zeal .outcome > p:not(.mini-label):not(.zeal-note) { max-width: 42rem; font-size: 1.05rem; }
.case-zeal .outcome > .zeal-note { margin: 1rem 0 0; font-size: .9rem; }

.doorlist-preview > .doorlist-final-screens { width: 85%; margin: 0 auto; }
.project-hero-side > .case-study-link { align-self: flex-start; }

/* DoorList presentation access */
button.case-study-link { font-family: inherit; border: 0; cursor: pointer; }
.case-study-dialog { width: min(28rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: clamp(1.5rem, 5vw, 2.5rem); color: var(--ink); background: #121212; border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: 0 24px 90px #0008; }
.case-study-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.case-study-close { position: absolute; top: .75rem; right: .9rem; width: 2rem; height: 2rem; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 50%; font-family: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.case-study-close:hover { color: var(--white); background: #ffffff0a; }
.case-study-dialog h2 { font-size: 2.4rem; margin-bottom: .85rem; }
#case-study-description { color: var(--muted); font-size: .95rem; }
.case-study-form { margin-top: 1.75rem; }
.case-study-form input { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); color: var(--white); font: inherit; text-align: center; }
.case-study-form input::placeholder { color: rgba(255, 255, 255, .22); opacity: 1; letter-spacing: .18em; font-size: 22px; }
.case-study-form input:focus-visible { outline: none; border-color: rgba(255, 255, 255, .4); }
.case-study-form input[aria-invalid="true"] { border-color: var(--accent); }
.case-study-error { min-height: 1.5rem; margin: .5rem 0; color: #ff9687; font-size: .8rem; }
.case-study-form .button { width: 100%; justify-content: center; padding: .6rem .9rem; border: 0; font-family: inherit; font-size: .875rem; line-height: 1.4; cursor: pointer; }
.case-study-form .button:disabled { color: #999; background: #303030; opacity: 1; cursor: not-allowed; }
.case-study-request { margin-top: 1.5rem; color: var(--muted); font-size: .8rem; text-align: center; }
.case-study-request a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

.contact-row .contact-email-button { padding: .55rem .9rem; gap: 1rem; }

.case-kicker-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 9px; margin-bottom: 1.5rem; }

.zeal-preview-image { width: 75%; margin: 0 auto; }
.zeal-preview-image img { width: 100%; height: auto; border-radius: var(--radius); }
.case-zeal > .zeal-preview-image + * { margin-top: clamp(3rem, 6vw, 5rem); }

/* Only standalone Pilot figures shrink; paired figures keep their existing layout. */
.pilot-story > .pilot-story-figure,
.pilot-story-section > .pilot-story-figure { width: 85%; margin-left: auto; margin-right: auto; }

/* Camera-roll stories, opened by the profile ring. */
button.profile-avatar { padding: 0; border: 0; background: transparent; cursor: pointer; }
.profile-avatar:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; border-radius: 50%; }
.stories-dialog { padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; max-width: none; max-height: none; }
.stories-dialog::backdrop { background: rgb(0 0 0 / .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.story-shell { position: relative; width: min(387px, calc((100vw - 24px) * .9), calc((100dvh - 24px) * .50625)); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: #181818; box-shadow: 0 20px 90px #0008; container-type: inline-size; }
.stories-dialog[open] .story-shell { animation: story-enter .22s ease-out; }
@keyframes story-enter { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.story-progress { position: absolute; inset: 10px 12px auto; display: flex; gap: 4px; z-index: 5; }
.story-progress button { flex: 1; padding: 5px 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.story-progress button::before { content: ''; position: absolute; inset: 4px 0; background: #ffffff55; border-radius: 3px; }
.story-progress span { display: block; position: relative; height: 2px; background: white; border-radius: 3px; width: 0; }
.story-toolbar { position: absolute; top: 25px; left: 16px; right: 12px; display: flex; align-items: center; justify-content: space-between; z-index: 5; font-size: 12px; font-weight: 600; text-shadow: 0 1px 5px #0008; }
.story-count { opacity: .65; margin-left: 6px; font-weight: 400; }
.story-toolbar > div { display: flex; gap: 5px; }
.story-toolbar button, .story-controls button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #0003; color: #fff; font: inherit; cursor: pointer; }
.story-toolbar .story-close { font-size: 26px; }
.story-controls { position: absolute; inset: auto 16px 12px; display: flex; align-items: center; justify-content: space-between; z-index: 5; font-size: 10px; color: #fff9; }
.story-controls button { font-size: 20px; }
.story-controls button:disabled { opacity: .25; cursor: default; }
.story-shell button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
@property --ring-reveal {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}
.profile-avatar { --ring-reveal: 0deg; transition: --ring-reveal .85s cubic-bezier(.4,0,.2,1); }
.profile-avatar:is(:hover,:focus-visible) { --ring-reveal: 360deg; }
.profile-ring { mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0), conic-gradient(transparent var(--ring-reveal), #000 0); mask-composite: intersect; }
.profile-avatar:is(:hover,:focus-visible) .profile-ring { animation:none; transform:none; }
.profile-dotted-ring { position:absolute; inset:-4px; width:calc(100% + 8px); height:calc(100% + 8px); pointer-events:none; mask:conic-gradient(#000 var(--ring-reveal), transparent 0); }
.profile-dotted-ring circle { transform-origin:28px 28px; animation:profile-dots-spin 12s linear infinite; animation-play-state:paused; }
.profile-avatar:is(:hover,:focus-visible) .profile-dotted-ring circle { animation-play-state:running; }
@keyframes profile-dots-spin { to { transform:rotate(360deg); } }
.story-toolbar svg,.story-controls svg { display:block;width:18px;height:18px; }
.story-stage,.story-slide { position:absolute;inset:0; }
.story-slide[hidden] { display:none; }
.story-slide { overflow:hidden;color:white;background:#171717; }
.story-backdrop { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.story-slide::after { content:'';position:absolute;inset:0;background:linear-gradient(#0009,transparent 16%,transparent 88%,#0007);pointer-events:none; }
.story-photos { position:absolute;inset:0; }
.story-photo { position:absolute;display:block;object-fit:cover;border:0;box-shadow:0 3px 12px #0002; }
.story-heading { position:absolute;z-index:2;top:14%;left:7%;right:7%;text-shadow:0 2px 14px #000b; }
.story-note { font-size:2.5cqw;font-weight:700;letter-spacing:.18em; }
.story-heading h2 { font-size:9cqw;line-height:.99;letter-spacing:-.055em;margin:2cqw 0 0;max-width:none; }
.story-stickers { position:absolute;inset:0;z-index:3;pointer-events:none; }
.story-emoji { position:absolute;font-size:7cqw;filter:drop-shadow(0 2px 3px #0003); }
.story-emoji-1 { left:3%;top:28%;transform:rotate(-18deg); }
.story-emoji-2 { right:5%;top:43%;transform:rotate(15deg);font-size:9cqw; }
.story-emoji-3 { left:36%;top:62%;transform:rotate(-8deg); }
.story-emoji-4 { right:3%;top:78%;transform:rotate(23deg); }
.story-emoji-5 { left:7%;top:87%;transform:rotate(-12deg);font-size:9cqw; }
.story-emoji-6 { right:4%;top:23%;transform:rotate(12deg); }
.story-emoji-7 { left:8%;top:54%;transform:rotate(-22deg);font-size:5cqw; }
.story-emoji-8 { right:25%;top:91%;transform:rotate(6deg);font-size:5cqw; }
.story-emoji-9 { right:33%;top:37%;transform:rotate(25deg);font-size:5cqw; }
.story-emoji-10 { left:28%;top:76%;transform:rotate(-14deg);font-size:5cqw; }
.story-intro .story-photo { width:59%;height:38%;filter:brightness(.75); }
.story-intro .story-photo-1 { left:-6%;top:-2%;transform:rotate(-8deg); }
.story-intro .story-photo-2 { right:-7%;top:-3%;transform:rotate(8deg); }
.story-intro .story-photo-3 { left:-8%;top:31%;transform:rotate(6deg); }
.story-intro .story-photo-4 { right:-7%;top:31%;transform:rotate(-7deg); }
.story-intro .story-photo-5 { left:-5%;bottom:-3%;transform:rotate(-7deg); }
.story-intro .story-photo-6 { right:-5%;bottom:-3%;transform:rotate(8deg); }
.story-intro .story-heading { top:37%;transform:rotate(-5deg);text-align:center;left:4%;right:4%; }
.story-intro .story-heading h2 { font-size:13cqw; }
.story-intro .story-note { display:inline-block;background:#fffc;color:#30282e;padding:2cqw 3cqw;text-shadow:none; }
.story-intro .story-emoji-2 { top:26%; }
.story-summer .story-heading { top:13%;transform:rotate(-4deg); }
.story-summer .story-heading h2 { font:italic bold 9.2cqw/.95 Georgia,serif;letter-spacing:-.04em; }
.story-summer .story-photo-1 { left:-5%;top:-7%;width:64%;height:65%;transform:rotate(-5deg);object-position:center 37%;filter:brightness(.85); }
.story-summer .story-photo-2 { right:-5%;top:-3%;width:53%;height:39%;transform:rotate(5deg);filter:brightness(.85); }
.story-summer .story-photo-3 { right:-4%;top:32%;width:53%;height:37%;transform:rotate(6deg);object-position:50% 80%; }
.story-summer .story-photo-4 { left:-5%;top:52%;width:61%;height:29%;transform:rotate(-6deg); }
.story-summer .story-photo:nth-child(n+5) { width:36%;height:26%; }
.story-summer .story-photo-5 { left:-4%;top:77%;transform:rotate(6deg); }
.story-summer .story-photo-6 { left:30%;top:74%;transform:rotate(-7deg); }
.story-summer .story-photo-7 { right:-4%;top:77%;transform:rotate(6deg); }
.story-summer .story-photo-8 { right:-5%;top:62%;width:39%;height:20%;transform:rotate(-6deg); }
.story-summer .story-photo-9 { left:32%;top:64%;width:36%;height:19%;transform:rotate(8deg); }
.story-tennis .story-heading { top:13%;transform:rotate(-3deg); }
.story-tennis .story-heading h2 { text-transform:uppercase;font-size:8.6cqw; }
.story-tennis .story-photo-1 { top:-2%;left:-3%;width:106%;height:56%;object-position:center;filter:brightness(.65); }
.story-tennis .story-photo-2 { top:49%;left:-4%;width:59%;height:35%;transform:rotate(-5deg); }
.story-tennis .story-photo-3 { top:49%;right:-4%;width:55%;height:36%;transform:rotate(5deg);object-position:65%; }
.story-tennis .story-photo-4 { bottom:-3%;left:-5%;width:53%;height:25%;transform:rotate(5deg); }
.story-tennis .story-photo-5 { bottom:-2%;right:-4%;width:54%;height:25%;transform:rotate(-5deg); }
.story-tennis .story-photo-6 { top:69%;left:29%;width:40%;height:23%;transform:rotate(-8deg);clip-path:ellipse(49% 49%); }
.story-tennis .story-emoji-1 { top:34%; }
.story-tennis .story-emoji-6 { top:87%;right:33%; }
.story-food .story-heading { top:13%;transform:rotate(-4deg); }
.story-food .story-heading h2 { font:italic bold 11cqw/.95 Georgia,serif;letter-spacing:-.04em; }
.story-food .story-photo-1 { left:-4%;top:-4%;width:68%;height:56%;transform:rotate(-5deg);filter:brightness(.68); }
.story-food .story-photo-2 { right:-8%;top:-3%;width:58%;height:48%;transform:rotate(8deg);filter:brightness(.68); }
.story-food .story-photo-3 { right:-5%;top:41%;width:62%;height:32%;transform:rotate(5deg); }
.story-food .story-photo-4 { left:-5%;top:46%;width:54%;height:35%;transform:rotate(-7deg); }
.story-food .story-photo-5 { left:-4%;top:76%;width:40%;height:27%;transform:rotate(6deg); }
.story-food .story-photo-6 { left:31%;top:76%;width:38%;height:27%;transform:rotate(-6deg); }
.story-food .story-photo-7 { right:-5%;top:75%;width:41%;height:28%;transform:rotate(7deg); }
.story-food .story-photo-8 { left:6%;top:31%;width:38%;height:22%;clip-path:circle(45%);transform:rotate(-8deg); }
.story-food .story-photo-9 { right:-4%;top:63%;width:38%;height:18%;transform:rotate(10deg); }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media(prefers-reduced-motion:reduce) { .stories-dialog[open] .story-shell,.profile-dotted-ring circle { animation:none; } .profile-avatar { transition:none; } }

.story-stage { cursor:pointer; touch-action:pan-y; user-select:none; }
@media (max-width:600px) {
  .stories-dialog { inset:0; margin:0; width:100vw; height:100dvh; }
  .stories-dialog::backdrop { background:#000; backdrop-filter:none; -webkit-backdrop-filter:none; }
  .story-shell { width:100%; height:100%; aspect-ratio:auto; border-radius:0; box-shadow:none; }
  .story-progress { top:calc(10px + env(safe-area-inset-top)); }
  .story-toolbar { top:calc(25px + env(safe-area-inset-top)); }
  .story-controls { bottom:calc(12px + env(safe-area-inset-bottom)); }
}

.story-static-intro { display:block; width:100%; height:100%; object-fit:fill; }
.story-loading { position:absolute; inset:45% 0 auto; text-align:center; color:#fff9; font-size:13px; }
.stories-dialog.is-loading .story-stage { visibility:hidden; }
.stories-dialog.is-loading .story-controls,.stories-dialog.is-loading .story-progress,.stories-dialog.is-loading .story-pause { visibility:hidden; }

/* Fixed geometry keeps the hover target stable; only transforms and opacity animate. */
.about-story-stack { display:block; position:relative; width:min(100%,340px); height:40px; margin:0 0 1.5rem; padding:0; border:0; background:none; color:var(--ink); text-align:left; cursor:pointer; }
.about-stack-photos { display:block; position:relative; width:40px; height:40px; }
.about-stack-photos img { position:absolute; left:0; top:0; width:40px; height:40px; object-fit:cover; border-radius:9px; border:2px solid var(--paper); transform:translateX(0); transition:transform .6s cubic-bezier(.22,1,.36,1); }
.about-stack-photos img:nth-child(1) { z-index:4; }
.about-stack-photos img:nth-child(2) { z-index:3; }
.about-stack-photos img:nth-child(3) { z-index:2; }
.about-stack-photos img:nth-child(4) { z-index:1; object-position:50% 43%; }
.about-stack-label { position:absolute; left:124px; top:0; height:40px; display:flex; align-items:center; gap:.5rem; white-space:nowrap; opacity:0; font-size:.8rem; line-height:1.4; transform:translateX(-16px); transition:transform .6s cubic-bezier(.22,1,.36,1), opacity .45s ease; }
.about-stack-label .icon { flex-shrink:0; }
.about-story-stack:is(:hover,:focus-visible) img:nth-child(2) { transform:translateX(24px); }
.about-story-stack:is(:hover,:focus-visible) img:nth-child(3) { transform:translateX(48px); }
.about-story-stack:is(:hover,:focus-visible) img:nth-child(4) { transform:translateX(72px); }
.about-story-stack:is(:hover,:focus-visible) .about-stack-label { opacity:1; transform:translateX(0); }
.about-story-stack:focus-visible { outline:1px solid var(--ink); outline-offset:6px; border-radius:8px; }
@media(hover:none) {
 .about-stack-photos img:nth-child(2) { transform:translateX(24px); }
 .about-stack-photos img:nth-child(3) { transform:translateX(48px); }
 .about-stack-photos img:nth-child(4) { transform:translateX(72px); }
 .about-stack-label { opacity:1; transform:none; }
}
@media(prefers-reduced-motion:reduce) { .about-stack-photos img, .about-stack-label { transition:none; } }

/* Unframed DoorList mockups. */
.doorlist-product-gallery { padding:0; background:none; border:0; border-radius:0; box-shadow:none; }
.doorlist-product-gallery .gallery-scroll { border-radius:0; }

/* A solid gradient stroke draws clockwise around the story CTA. */
.about-story-button { --ring-reveal:0deg; position:relative; display:flex; width:164px; height:36px; justify-content:center; padding:0 12px; font-weight:500; margin-top:2rem; border:0; font-family:inherit; font-size:.875rem; cursor:pointer; transition:--ring-reveal .85s cubic-bezier(.4,0,.2,1); }
.about-story-button:is(:hover,:focus-visible) { --ring-reveal:360deg; transform:none; }
.story-button-ring { position:absolute; inset:-4px; width:172px; height:44px; overflow:visible; opacity:0; pointer-events:none; transition:opacity .25s ease; }
.about-story-button:is(:hover,:focus-visible) .story-button-ring { opacity:1; }
.story-button-ring path { fill:none; stroke:url(#profile-gradient); stroke-width:2; }
.story-button-solid { stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:100; stroke-dashoffset:100; transition:stroke-dashoffset .85s cubic-bezier(.4,0,.2,1); }
.about-story-button:is(:hover,:focus-visible) .story-button-solid { stroke-dashoffset:0; }
@keyframes story-button-dots { to { stroke-dashoffset:-100; } }
.about-story-button:focus-visible { outline:2px solid var(--ink); outline-offset:7px; }

.about-actions { display:flex; align-items:center; flex-wrap:wrap; gap:1rem 1.5rem; margin-top:1.5rem; }
.about-actions .about-more, .about-actions .about-story-button { margin:0; }
.about-stack-photos::after { content:""; position:absolute; inset:0; z-index:3; background:var(--paper); border-radius:9px; pointer-events:none; opacity:1; transition:opacity .4s ease; }
.about-stack-photos img:first-child { z-index:5; border:0; object-fit:contain; border-radius:9px; }
.about-story-stack:is(:hover,:focus-visible) .about-stack-photos::after { opacity:0; }
@media(hover:none) { .about-stack-photos::after { opacity:0; } }
@media(prefers-reduced-motion:reduce) { .about-stack-photos::after { transition:none; } }

@media(prefers-reduced-motion:reduce) { .about-story-button,.story-button-ring { transition:none; } }

@media(prefers-reduced-motion:reduce) { .story-button-solid { transition:none; } }

.about-more { transition:color .2s ease, border-color .2s ease; }
.about-more .icon { transition:transform .2s ease; }
.about-more:is(:hover,:focus-visible) { color:var(--accent); border-color:var(--accent); }
.about-more:is(:hover,:focus-visible) .icon { transform:translate(2px,-2px); }
@media(prefers-reduced-motion:reduce) { .about-more,.about-more .icon { transition:none; } }

.hero h1 em { color:var(--white); display:inline-block; position:relative; white-space:nowrap; font-size:min(1em, 8.2vw); }
.hero h1 { color:var(--white); }
.headline-word { display:inline-block; position:relative; white-space:nowrap; }
.headline-scribble { position:absolute; left:0; bottom:-.15em; width:100%; height:.23em; overflow:visible; pointer-events:none; }
.headline-scribble path { fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:100; }
.is-underlined .headline-scribble path { stroke-dashoffset:0; transition:stroke-dashoffset .3s ease-out; }
.is-underlined .headline-scribble path:nth-child(2) { transition-delay:.12s; }
.is-underlined .headline-scribble path:nth-child(3) { transition-delay:.24s; }
@media(prefers-reduced-motion:reduce) { .is-underlined .headline-scribble path { transition:none; } }

.headline-word > span { position:relative; }
.typing-cursor::after,.typing-cursor-start::before { content:""; position:absolute; top:.08em; height:.85em; width:2px; background:var(--white); visibility:visible; animation:headline-cursor-blink 1s steps(1) infinite; }
.typing-cursor::after { right:-.045em; }
.typing-cursor-start::before { left:0; }
@keyframes headline-cursor-blink { 50% { opacity:0; } }
@media(prefers-reduced-motion:reduce) { .typing-cursor::after,.typing-cursor-start::before { display:none; } }
