*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #171915;
  --muted: #5e6258;
  --subtle: #8b8d82;
  --void: #f7f4ec;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(37, 40, 33, 0.14);
  --line-bright: rgba(37, 40, 33, 0.26);
  --bamboo: #596a4a;
  --leaf: #7d8a6b;
  --cyan: #6c7860;
  --violet: #9a8f72;
  --amber: #aa8141;
  --coral: #9d6d52;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  --scan: rgba(196, 161, 93, 0.06);
  --cursor-x: 50%;
  --cursor-y: 42%;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(37, 40, 33, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 40, 33, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfaf5 0%, #eee8da 100%);
  background-size: 112px 112px, 112px 112px, auto;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

body:has(.hero-video) {
  scroll-snap-type: y proximity;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 36%),
    radial-gradient(circle at 78% 18%, rgba(170, 129, 65, 0.14), transparent 28%);
  opacity: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(251, 250, 245, 0) 0%, rgba(238, 232, 218, 0.72) 88%);
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
img { max-width: 100%; display: block; }

.ambient-frame {
  position: fixed;
  inset: 14px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(37, 40, 33, 0.06);
  border-radius: 8px;
  opacity: .78;
}

.ambient-frame span {
  display: none;
}

.ambient-frame span:nth-child(1) {
  left: 3%;
  right: 42%;
  top: -1px;
  height: 1px;
  animation: none;
}

.ambient-frame span:nth-child(2) {
  top: 18%;
  bottom: 18%;
  right: -1px;
  width: 1px;
  background: none;
  animation: none;
}

.ambient-frame span:nth-child(3) {
  left: 38%;
  right: 4%;
  bottom: -1px;
  height: 1px;
  animation: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--void);
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(251, 250, 245, .12);
  background: rgba(11, 14, 9, 0.34);
  backdrop-filter: blur(18px);
}

.inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fbfaf5;
  text-decoration: none;
  font-weight: 850;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .24));
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--bamboo);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(251, 250, 245, .72);
  font-size: 13px;
  font-weight: 780;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  text-decoration: none;
}

.nav-links a[aria-current="page"], .nav-links a:hover {
  border-color: rgba(251, 250, 245, .18);
  background: rgba(251, 250, 245, 0.08);
  color: #fbfaf5;
}

main { min-height: 60vh; }

.home-page .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .45s ease, transform .45s ease;
}

.home-page.is-scrolled .site-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section { padding: 86px 0; }
.section.tight { padding: 54px 0; }

.forest-scene {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  background: #10140e;
}

.forest-media,
.forest-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.forest-media {
  object-fit: cover;
  opacity: .96;
  filter: saturate(.9) contrast(1.06);
  transform: scale(calc(1.02 + (var(--forest-progress, 0) * .12)));
  transform-origin: center;
}

.forest-shade {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .04), transparent 30%),
    linear-gradient(180deg, rgba(5, 7, 4, .08), rgba(5, 7, 4, .26));
}

.forest-intro .scroll-cue {
  left: 50%;
  transform: translateX(-50%);
}

.bio-reveal {
  min-height: auto;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .96) 58%, rgba(31, 30, 26, .05) 58.1%, rgba(31, 30, 26, .05) 100%),
    linear-gradient(180deg, #ffffff 0%, #f2eee5 100%);
  background-size: auto;
  padding: clamp(82px, 9vh, 118px) 0 clamp(46px, 6vh, 74px);
}

.bio-card {
  position: relative;
  display: block;
  border-left: 6px solid #c59b54;
  padding-left: clamp(22px, 4vw, 46px);
  opacity: 0;
  transform: translateY(80px) scale(.985);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1);
}

.bio-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bio-copy h1 {
  max-width: 840px;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .88;
}

.bio-copy p:not(.eyebrow) {
  max-width: none;
  margin: 18px 0 0;
  color: #3f3d37;
  font-size: clamp(16px, 1.6vw, 20px);
}

.bio-copy .bio-lede {
  max-width: min(760px, calc(100% - clamp(310px, 32vw, 430px)));
  margin-top: 0;
  color: #191915;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.bio-photo {
  position: relative;
  float: right;
  width: clamp(260px, 28vw, 360px);
  aspect-ratio: 4 / 5;
  margin: 0 0 28px clamp(28px, 6vw, 74px);
  border: 1px solid rgba(31, 30, 26, .18);
  border-radius: 8px;
  overflow: hidden;
  background: #efe8da;
  box-shadow: 0 34px 100px rgba(31, 30, 26, .2);
}

.bio-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgba(255, 255, 255, .36);
  pointer-events: none;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-photo.missing-photo::before {
  content: "Headshot";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.apps-reveal {
  min-height: 100vh;
  scroll-snap-align: start;
  background:
    linear-gradient(90deg, rgba(37, 40, 33, .045) 1px, transparent 1px),
    radial-gradient(circle at 85% 8%, rgba(197, 155, 84, .2), transparent 28%),
    linear-gradient(180deg, #fffdf7 0%, #eee8dc 100%);
  background-size: 118px 118px, auto, auto;
  color: var(--ink);
  overflow: hidden;
}

.apps-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: clamp(18px, 3vh, 30px) 0 clamp(86px, 10vh, 128px);
}

.app-stage {
  width: 100%;
}

.apps-reveal .app-stage {
  opacity: 1;
  transform: none;
  transition: none;
}

.apps-heading {
  width: min(760px, 100%);
  margin-bottom: clamp(22px, 4vh, 34px);
  opacity: 1;
  transform: none;
  transition: none;
}

.apps-heading h2 {
  color: var(--ink);
  font-size: clamp(50px, 7vw, 112px);
  line-height: .86;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  perspective: 1200px;
}

.app-grid .portfolio-card {
  min-height: 470px;
  padding: 30px;
  border-color: rgba(31, 30, 26, .13);
  background:
    radial-gradient(circle at 18% 0%, var(--app-accent-soft, rgba(197, 155, 84, .16)), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .72));
  box-shadow: 0 24px 70px rgba(31, 30, 26, .12);
}

.app-grid .portfolio-card h3 {
  margin: 0 0 18px;
  color: #161511;
  font-size: clamp(34px, 4vw, 54px);
  line-height: .95;
}

.app-grid .portfolio-card p {
  color: #4f4b41;
  font-size: 17px;
}

.app-grid .mini-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 0;
  margin-top: auto;
  text-align: center;
  color: #5c5548;
}

.app-grid .mini-links a {
  display: block;
  padding: 2px 8px 0;
}

.app-grid .mini-links a:hover {
  color: #171511;
}

.app-tagline {
  margin: 0;
  color: #171511 !important;
  font-size: 20px !important;
  font-weight: 820;
}

.availability-note,
.app-card-note {
  margin-top: auto;
  border-left: 3px solid rgba(197, 155, 84, .78);
  padding-left: 12px;
  color: #595246 !important;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 40px;
}

.portfolio-card .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.portfolio-card .status {
  margin-top: 2px;
}

.portfolio-card .app-store-badge {
  flex: 0 0 auto;
  margin-top: 0;
}

.portfolio-card .app-store-badge img {
  width: clamp(118px, 16vw, 142px);
}

.app-card-chalk {
  --app-accent-soft: rgba(245, 211, 139, .22);
  --app-accent: #f1eadc;
}

.app-card-triptracker-pro {
  --app-accent-soft: rgba(171, 157, 127, .24);
  --app-accent: #d6c6a2;
}

.app-card-match-card {
  --app-accent-soft: rgba(197, 155, 84, .32);
  --app-accent: #f1a442;
}

.app-store-badge {
  width: fit-content;
  display: inline-block;
  text-decoration: none;
}

.app-store-badge:hover {
  transform: translateY(-1px);
}

.app-store-badge img {
  width: 162px;
  height: auto;
  display: block;
}

.testflight-badge {
  width: fit-content;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid rgba(31, 30, 26, .16);
  border-radius: 11px;
  padding: 0 16px;
  background: rgba(31, 30, 26, .08);
  color: #171511;
  font-weight: 850;
}

.story-section,
.apps-section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

.story-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(37, 40, 33, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 40, 33, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #fbfaf5 0%, #eee8da 100%);
  background-size: 124px 124px, 124px 124px, auto;
}

.story-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 34%, rgba(89, 106, 74, .18), transparent 28%),
    linear-gradient(180deg, rgba(251, 250, 245, 0), rgba(37, 40, 33, .08));
  pointer-events: none;
}

.story-stage,
.app-stage {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(72px);
  transition: opacity .95s ease, transform 1.05s cubic-bezier(.16, 1, .3, 1);
}

.story-stage.is-visible,
.app-stage.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-stage h2 {
  max-width: 980px;
  font-size: clamp(42px, 7vw, 92px);
}

.story-copy {
  margin-top: 34px;
  max-width: 830px;
  margin-left: auto;
}

.story-copy p {
  margin: 0;
  color: #34382f;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.story-copy p + p {
  margin-top: 18px;
}

.apps-section {
  background: linear-gradient(180deg, #171915 0%, #242019 100%);
  color: #fbfaf5;
}

.apps-section h2,
.apps-section h3 {
  color: #fbfaf5;
}

.apps-section .copy,
.apps-section .card p {
  color: rgba(251, 250, 245, .7);
}

.apps-section .eyebrow {
  border-color: rgba(251, 250, 245, .16);
  background: rgba(251, 250, 245, .08);
  color: rgba(251, 250, 245, .84);
}

.apps-section .card {
  border-color: rgba(251, 250, 245, .14);
  background:
    linear-gradient(180deg, rgba(251, 250, 245, .09), rgba(251, 250, 245, .045)),
    rgba(251, 250, 245, .035);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.apps-section .mini-links {
  color: rgba(251, 250, 245, .74);
}

.apps-section .mini-links a:hover {
  color: #fbfaf5;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 82px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 58px;
  align-items: center;
}

.hero-video {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 25, 21, 0.84), rgba(65, 77, 54, 0.72)),
    linear-gradient(180deg, #293323, #171915);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  opacity: .92;
  filter: saturate(.92) contrast(1.08);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 6, .74) 0%, rgba(7, 9, 6, .34) 48%, rgba(7, 9, 6, .5) 100%),
    linear-gradient(180deg, rgba(7, 9, 6, .22) 0%, rgba(7, 9, 6, .76) 100%);
}

.hero-video-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 82px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 58px;
  align-items: center;
}

.hero-video-simple {
  max-width: 1160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0;
  padding-top: 126px;
  padding-bottom: clamp(64px, 11vh, 118px);
}

.hero-video-simple h1 {
  max-width: 760px;
  font-size: clamp(58px, 9vw, 132px);
  line-height: .86;
}

.hero-title {
  max-width: 820px;
  opacity: 0;
  transform: translateY(38px) scale(.98);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1);
}

.hero-title.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-cue {
  position: absolute;
  left: max(20px, calc((100vw - 1160px) / 2));
  bottom: 26px;
  width: 34px;
  height: 54px;
  border: 1px solid rgba(251, 250, 245, .42);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 10px;
  opacity: .82;
}

.scroll-cue span {
  width: 4px;
  height: 10px;
  border-radius: 99px;
  background: #fbfaf5;
  animation: cue-drop 1.9s ease-in-out infinite;
}

.hero-video h1,
.hero-video .lede,
.hero-video .copy {
  color: #fbfaf5;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .34);
}

.hero-video .lede,
.hero-video .copy {
  color: rgba(251, 250, 245, .86);
}

.hero-video .eyebrow {
  border-color: rgba(251, 250, 245, .22);
  background: rgba(251, 250, 245, .12);
  color: #f1eadc;
}

.hero-video .button {
  border-color: rgba(251, 250, 245, .34);
  background: #fbfaf5;
  color: #171915;
}

.hero-video .button.secondary {
  background: rgba(251, 250, 245, .12);
  color: #fbfaf5;
}

.hero.narrow {
  min-height: auto;
  grid-template-columns: minmax(0, 850px);
  padding-top: 150px;
  padding-bottom: 52px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(89, 106, 74, 0.08);
  color: var(--bamboo);
  font-size: 11px;
  font-weight: 880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 940px;
  color: var(--ink);
  font-size: clamp(46px, 6.7vw, 94px);
  line-height: 0.92;
  letter-spacing: 0;
}

h1::selection, h2::selection, p::selection {
  background: rgba(196, 161, 93, .24);
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  margin: 26px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.copy {
  margin: 14px 0 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 161, 93, 0.62);
  border-radius: 8px;
  padding: 0 18px;
  background: #171915;
  color: #fbfaf5;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.button::after {
  content: none;
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: transform .5s ease;
}

.button:hover::after { transform: translateX(120%); }

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  box-shadow: none;
}

.button:hover { transform: translateY(-1px); }

.focus-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 22px 70px rgba(37, 40, 33, 0.1);
  padding: 26px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
}

.hero-video .focus-panel {
  border-color: rgba(251, 250, 245, .22);
  background:
    linear-gradient(180deg, rgba(251, 250, 245, .18), rgba(251, 250, 245, .1)),
    rgba(14, 18, 12, .42);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.hero-video .focus-panel::before {
  border-color: rgba(251, 250, 245, .12);
  background:
    linear-gradient(90deg, transparent 49%, rgba(251, 250, 245, 0.07) 50%, transparent 51%),
    linear-gradient(180deg, transparent 49%, rgba(251, 250, 245, 0.07) 50%, transparent 51%);
}

.hero-video .visual-tile {
  border-color: rgba(251, 250, 245, .18);
  background: rgba(251, 250, 245, .1);
}

.hero-video .visual-tile strong {
  color: #fbfaf5;
}

.hero-video .visual-tile span {
  color: rgba(251, 250, 245, .75);
}

.focus-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(37, 40, 33, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(37, 40, 33, 0.06) 50%, transparent 51%),
    linear-gradient(180deg, transparent 49%, rgba(37, 40, 33, 0.06) 50%, transparent 51%);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.focus-panel::after {
  content: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--scan) 48%, transparent 52%);
  animation: scan 5.8s linear infinite;
}

.visual-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lab-logo-panel {
  position: relative;
  z-index: 1;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
}

.lab-logo-panel img {
  max-height: 150px;
  width: auto;
  filter: drop-shadow(0 0 26px rgba(255, 203, 107, 0.24));
}

.visual-tile {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
}

.visual-tile strong { font-size: 15px; }
.visual-tile span { color: var(--muted); font-size: 13px; }

.metric-line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bamboo), var(--amber));
  box-shadow: none;
  transform-origin: left;
  animation: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 1.12fr);
  gap: 54px;
  align-items: start;
}

.section-intro {
  margin-bottom: 28px;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(89, 106, 74, 0.07), transparent 38%),
    rgba(255, 255, 255, 0.38);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    var(--panel);
  padding: 24px;
  box-shadow: 0 14px 42px rgba(37, 40, 33, 0.06);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(196, 161, 93, 0.24);
  opacity: .75;
  pointer-events: none;
}

.card p, .card li { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.portfolio-card {
  display: flex;
  min-height: 344px;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.portfolio-card:hover {
  border-color: rgba(196, 161, 93, 0.42);
  box-shadow: 0 24px 58px rgba(37, 40, 33, 0.1);
  transform: translateY(-2px);
}

.reveal {
  animation: reveal-up .7s ease both;
  animation-delay: var(--delay, 0ms);
}

.app-icon {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f1eadc;
  color: var(--ink);
  font-weight: 950;
  font-size: 20px;
  overflow: hidden;
}

.app-icon.has-image {
  border-color: rgba(37, 40, 33, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 32px rgba(37, 40, 33, 0.1);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(196, 161, 93, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(196, 161, 93, 0.08);
  color: #d7c18e;
  font-size: 12px;
  font-weight: 850;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(31, 30, 26, .1);
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.mini-links a {
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.mini-links a:hover {
  border-color: var(--amber);
  color: var(--ink);
}

.app-hero {
  padding: 150px 0 54px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.app-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 48px;
  align-items: center;
}

.product-panel {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
}

.product-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(196, 161, 93, 0.07));
  pointer-events: none;
}

.product-panel .app-icon {
  width: 86px;
  height: 86px;
  border-radius: 18px;
}

.product-screen {
  position: relative;
  z-index: 1;
  min-height: 292px;
  border: 1px solid rgba(37, 40, 33, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37, 40, 33, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 40, 33, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.58);
  background-size: 32px 32px;
  padding: 18px;
}

.screen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(37, 40, 33, 0.09);
  padding: 14px 0;
}

.screen-row:first-child { padding-top: 0; }
.screen-row strong { font-size: 15px; }
.screen-row span { color: var(--muted); font-size: 13px; text-align: right; }

.list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.list li + li { margin-top: 8px; }

.prose {
  max-width: 900px;
}

.prose h2 {
  margin-top: 42px;
  font-size: 30px;
}

.prose h3 {
  margin-top: 26px;
  font-size: 20px;
}

.prose p, .prose li { color: var(--muted); }

.notice {
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: rgba(170, 129, 65, 0.1);
  padding: 16px 18px;
  color: #4b3921;
}

.story-world {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #151515;
  color: #fffaf0;
}

.story-world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(255, 220, 126, .22), transparent 24%),
    linear-gradient(90deg, rgba(8, 7, 12, .78), rgba(8, 7, 12, .24) 48%, rgba(8, 7, 12, .74)),
    linear-gradient(180deg, rgba(8, 7, 12, .18), rgba(8, 7, 12, .82));
}

.story-backdrop,
.story-backdrop-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.story-backdrop-image {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
  animation: story-drift 18s ease-in-out infinite alternate;
}

.story-stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 245, 180, .9) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 16%, rgba(255, 245, 180, .72) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 62%, rgba(255, 245, 180, .76) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 72%, rgba(255, 245, 180, .7) 0 2px, transparent 3px);
  animation: story-twinkle 3.2s ease-in-out infinite alternate;
}

.story-comet {
  position: absolute;
  top: 20%;
  left: 58%;
  width: 220px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 159, .95), transparent);
  transform: rotate(-18deg);
  animation: story-comet 5.8s ease-in-out infinite;
}

.story-hero-grid {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  padding-top: 112px;
  padding-bottom: 70px;
}

.story-hero-copy h1 {
  max-width: 880px;
  color: #fffaf0;
  font-size: clamp(58px, 9.5vw, 136px);
  text-shadow: 0 18px 60px rgba(0, 0, 0, .38);
}

.story-hero-copy .lede,
.story-hero-copy .copy {
  color: rgba(255, 250, 240, .84);
  text-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}

.story-hero-copy .eyebrow,
.story-world .eyebrow {
  border-color: rgba(255, 250, 240, .22);
  background: rgba(255, 250, 240, .12);
  color: #ffe4a1;
}

.story-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.story-hero-actions .button {
  border-color: rgba(255, 250, 240, .38);
  background: #fffaf0;
  color: #171511;
}

.story-hero-actions .button.secondary {
  background: rgba(255, 250, 240, .13);
  color: #fffaf0;
  cursor: pointer;
}

.story-orbital {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 250, 240, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 218, 111, .2), transparent 34%),
    rgba(255, 250, 240, .08);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.story-orbital::before {
  content: "";
  position: absolute;
  inset: 44px;
  border: 1px solid rgba(255, 250, 240, .22);
  border-radius: 50%;
  animation: story-spin 20s linear infinite;
}

.story-character-card {
  position: absolute;
  inset: 50%;
  width: min(250px, calc(100% - 60px));
  min-height: 220px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 250, 240, .2);
  border-radius: 8px;
  padding: 22px;
  background: rgba(13, 12, 16, .58);
  color: rgba(255, 250, 240, .82);
  display: grid;
  align-content: center;
  gap: 10px;
}

.story-character-card span {
  color: #ffe4a1;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.story-character-card strong {
  color: #fffaf0;
  font-size: 30px;
  line-height: 1;
}

.story-character-card p {
  margin: 0;
}

.story-character-token {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 138px;
  min-height: 76px;
  border: 1px solid rgba(255, 250, 240, .24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 250, 240, .12);
  color: #fffaf0;
  text-align: left;
  cursor: pointer;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 72deg))
    translateY(-204px)
    rotate(calc(var(--i) * -72deg));
  transition: transform .2s ease, background .2s ease;
}

.story-character-token:hover {
  background: rgba(255, 250, 240, .2);
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 72deg))
    translateY(-214px)
    rotate(calc(var(--i) * -72deg));
}

.story-character-token strong,
.story-character-token span {
  display: block;
}

.story-character-token span {
  margin-top: 5px;
  color: rgba(255, 250, 240, .7);
  font-size: 12px;
  line-height: 1.2;
}

.story-chapters {
  padding: 86px 0;
  background:
    linear-gradient(90deg, rgba(37, 40, 33, .05) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf0, #ece3cf);
  background-size: 104px 104px, auto;
}

.story-section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.story-chapter-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.story-chapter-card {
  min-height: 178px;
  border: 1px solid rgba(37, 40, 33, .13);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 8%, rgba(61, 149, 179, .18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6));
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(37, 40, 33, .08);
}

.story-chapter-card:hover {
  transform: translateY(-2px);
  border-color: rgba(170, 129, 65, .5);
}

.story-chapter-card span,
.story-chapter-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.story-chapter-card strong {
  display: block;
  margin: 14px 0;
  font-size: 24px;
  line-height: 1.05;
}

.story-reader-shell {
  padding: 92px 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(63, 149, 176, .16), transparent 28%),
    linear-gradient(180deg, #171915, #272014);
}

.story-reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 26px;
  align-items: stretch;
}

.story-reader-art,
.story-page-panel {
  border: 1px solid rgba(255, 250, 240, .16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .28);
}

.story-reader-art {
  position: relative;
  min-height: 620px;
  background: #111;
}

.story-reader-image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.story-reader-magic {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(255, 230, 128, .24), transparent 22%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .5));
  pointer-events: none;
}

.story-reader-meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fffaf0;
  font-weight: 850;
}

.story-scene-label {
  border: 1px solid rgba(255, 250, 240, .22);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(0, 0, 0, .25);
}

.story-page-panel {
  min-height: 620px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, .96), rgba(245, 235, 213, .92));
  display: flex;
  flex-direction: column;
}

.story-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 40, 33, .12);
  overflow: hidden;
  margin-bottom: 28px;
}

.story-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e97be, #d04743, #d69c35);
  transition: width .35s ease;
}

.story-page-panel .eyebrow {
  margin-bottom: 14px;
}

.story-page-title {
  font-size: clamp(34px, 4vw, 58px);
}

.story-page-text {
  margin: 24px 0 0;
  color: #3b3328;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.58;
}

.story-reader-controls {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 30px;
}

.story-reader-controls .button {
  cursor: pointer;
}

.story-reader-controls .button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.story-source-note {
  border-top: 1px solid rgba(255, 250, 240, .12);
  padding: 24px 0;
  background: #171915;
  color: rgba(255, 250, 240, .58);
  font-size: 13px;
}

.story-print-hero {
  padding: 150px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(37, 40, 33, .05) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf0, #eee7d8);
  background-size: 96px 96px, auto;
}

.story-print-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 48px;
  align-items: center;
}

.story-print-summary {
  border: 1px solid rgba(37, 40, 33, .13);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 20px 60px rgba(37, 40, 33, .1);
  display: grid;
  gap: 12px;
}

.story-print-summary strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.story-print-summary span {
  border-top: 1px solid rgba(37, 40, 33, .1);
  padding-top: 10px;
  color: var(--muted);
  font-weight: 780;
}

.story-print-book {
  max-width: 860px;
  padding: 74px 0 96px;
}

.story-print-chapter {
  page-break-before: always;
  break-before: page;
}

.story-print-chapter:first-child {
  page-break-before: auto;
  break-before: auto;
}

.story-print-chapter + .story-print-chapter {
  margin-top: 72px;
}

.story-print-chapter h2 {
  margin-bottom: 28px;
  font-size: clamp(32px, 4.2vw, 54px);
}

.story-print-page {
  page-break-inside: avoid;
  break-inside: avoid;
  border-top: 1px solid rgba(37, 40, 33, .12);
  padding: 18px 0 22px;
}

.story-print-marker {
  margin: 0 0 8px;
  color: #82672f;
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.story-print-page p:last-child {
  margin: 0;
  color: #312d26;
  font-size: 19px;
  line-height: 1.7;
}

.print-story-page .site-header {
  background: rgba(23, 25, 21, .86);
}

.print-story-page .brand-mark {
  border-color: rgba(251, 250, 245, .34);
  color: #fbfaf5;
}

.maya-hero {
  padding: 150px 0 72px;
  background:
    radial-gradient(circle at 78% 16%, rgba(62, 151, 190, .2), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(211, 75, 70, .13), transparent 28%),
    linear-gradient(180deg, #fffaf0, #ece3cf);
  overflow: hidden;
}

.maya-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 52px;
  align-items: center;
}

.maya-hero h1 {
  max-width: 880px;
}

.maya-hero-panel {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(37, 40, 33, .13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(46, 151, 190, .22), rgba(255, 250, 240, .76) 45%, rgba(211, 75, 70, .2)),
    linear-gradient(90deg, rgba(37, 40, 33, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 40, 33, .05) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  box-shadow: 0 32px 90px rgba(37, 40, 33, .18);
  overflow: hidden;
}

.maya-hero-panel span {
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 250, 240, .72);
  box-shadow: 0 20px 60px rgba(37, 40, 33, .18);
}

.maya-hero-panel span:nth-child(1) {
  width: 46%;
  height: 58%;
  left: 10%;
  top: 12%;
  transform: rotate(-9deg);
}

.maya-hero-panel span:nth-child(2) {
  width: 44%;
  height: 54%;
  right: 12%;
  top: 22%;
  transform: rotate(8deg);
}

.maya-hero-panel span:nth-child(3) {
  width: 54%;
  height: 34%;
  left: 24%;
  bottom: 12%;
  transform: rotate(-2deg);
  background: rgba(255, 228, 161, .68);
}

.maya-library {
  padding: 76px 0 104px;
}

.maya-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.maya-story-card {
  border: 1px solid rgba(37, 40, 33, .13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .68));
  box-shadow: 0 22px 70px rgba(37, 40, 33, .11);
  overflow: hidden;
}

.maya-story-link {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.maya-story-link.is-disabled {
  cursor: default;
}

.maya-story-link.is-disabled img {
  filter: saturate(.8);
}

.maya-story-card span,
.maya-story-card strong,
.maya-story-card em,
.maya-story-card p {
  margin-left: 24px;
  margin-right: 24px;
}

.maya-story-card span {
  width: fit-content;
  margin-top: 22px;
  border: 1px solid rgba(170, 129, 65, .26);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(170, 129, 65, .1);
  color: #6f562d;
  font-size: 12px;
  font-weight: 860;
}

.maya-story-card strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
}

.maya-story-card em {
  margin-top: 10px;
  color: #2f7d91;
  font-style: normal;
  font-weight: 850;
}

.maya-story-card p {
  margin-top: 14px;
  margin-bottom: 24px;
  color: var(--muted);
}

.headshot-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(89, 106, 74, 0.08), rgba(170, 129, 65, 0.08)),
    var(--panel);
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.headshot-wrap img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.headshot-placeholder {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid rgba(197, 155, 84, .22);
  padding: 34px 0 38px;
  color: rgba(251, 250, 245, .72);
  font-size: 14px;
  background:
    linear-gradient(180deg, #211b12 0%, #090908 100%);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid span {
  display: block;
}

.footer-meta {
  flex: 0 1 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: rgba(251, 250, 245, .76);
}

.footer-links a {
  color: rgba(251, 250, 245, .76);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 250, 245, .22);
}

.footer-links a:hover {
  color: #fbfaf5;
  border-color: rgba(197, 155, 84, .72);
}

@keyframes scan {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

@keyframes pulse-line {
  0%, 100% { transform: scaleX(.55); opacity: .72; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cue-drop {
  0% { transform: translateY(0); opacity: .25; }
  38% { opacity: 1; }
  100% { transform: translateY(20px); opacity: .08; }
}

@keyframes rail-x {
  0% { transform: translateX(-22%); opacity: .28; }
  50% { opacity: .82; }
  100% { transform: translateX(22%); opacity: .28; }
}

@keyframes rail-y {
  0% { transform: translateY(-18%); opacity: .22; }
  50% { opacity: .78; }
  100% { transform: translateY(18%); opacity: .22; }
}

@keyframes story-drift {
  from { transform: scale(1.04) translate3d(-10px, -8px, 0); }
  to { transform: scale(1.09) translate3d(16px, 10px, 0); }
}

@keyframes story-twinkle {
  from { opacity: .45; transform: scale(1); }
  to { opacity: .95; transform: scale(1.015); }
}

@keyframes story-comet {
  0%, 46%, 100% { opacity: 0; transform: translate3d(-120px, -40px, 0) rotate(-18deg); }
  58% { opacity: 1; }
  78% { opacity: 0; transform: translate3d(260px, 60px, 0) rotate(-18deg); }
}

@keyframes story-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  @page {
    margin: .68in;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .site-header,
  .site-footer,
  .ambient-frame,
  .story-print-hero .actions,
  .no-print {
    display: none !important;
  }

  .story-print-hero {
    padding: 0 0 28px;
    border: 0;
    background: #fff !important;
  }

  .story-print-hero-layout {
    display: block;
  }

  .story-print-summary {
    display: none;
  }

  .story-print-book {
    width: auto;
    max-width: none;
    padding: 0;
  }

  h1 {
    font-size: 30pt !important;
    line-height: 1.05 !important;
  }

  .lede {
    color: #333 !important;
    font-size: 12pt !important;
  }

  .eyebrow {
    border: 0;
    padding: 0;
    background: transparent;
    color: #333;
    letter-spacing: 0;
  }

  .story-print-chapter h2 {
    font-size: 20pt !important;
  }

  .story-print-page p:last-child {
    color: #111;
    font-size: 11.5pt;
    line-height: 1.45;
  }
}

@media (max-width: 940px) {
  .hero,
  .split,
  .app-hero-layout,
  .maya-hero-grid,
  .story-print-hero-layout,
  .story-hero-grid,
  .story-reader {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }

  .grid,
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-photo {
    width: clamp(210px, 34vw, 280px);
    margin-left: 30px;
  }

  .story-orbital {
    min-height: 430px;
  }

  .maya-story-grid {
    grid-template-columns: 1fr;
  }

  .story-character-token {
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--i) * 72deg))
      translateY(-164px)
      rotate(calc(var(--i) * -72deg));
  }

  .story-character-token:hover {
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--i) * 72deg))
      translateY(-172px)
      rotate(calc(var(--i) * -72deg));
  }
}

@media (max-width: 720px) {
  .inner { width: min(100% - 28px, 1160px); }
  .nav {
    min-height: 66px;
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 4px;
    overflow-x: auto;
    font-size: 12px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 7px;
  }
  .hero { padding: 52px 0 42px; }
  .hero-video { padding: 0; }
  .hero-video-simple {
    padding-top: 104px;
    padding-bottom: 76px;
  }
  .app-hero {
    padding: 96px 0 36px;
  }

  .app-hero-layout {
    gap: 22px;
  }

  .app-hero h1 {
    font-size: clamp(38px, 11vw, 54px);
    line-height: .94;
  }

  .app-hero .lede {
    margin-top: 18px;
    font-size: 17px;
  }

  .app-hero .copy {
    font-size: 15px;
  }

  .app-hero .actions {
    margin-top: 22px;
  }

  .app-hero .app-store-badge img {
    width: 134px;
  }

  .product-panel {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    align-content: center;
    gap: 16px;
    padding: 16px;
    box-shadow: 0 18px 48px rgba(37, 40, 33, .14);
  }

  .product-panel::after,
  .product-screen {
    display: none;
  }

  .product-panel .app-icon {
    width: 66px;
    height: 66px;
    border-radius: 15px;
  }

  .product-panel .copy {
    margin: 0;
    font-size: 14px;
  }

  .section { padding: 56px 0; }
  .story-section,
  .apps-section {
    min-height: auto;
  }

  .bio-reveal {
    min-height: auto;
    padding: 76px 0 58px;
  }

  .story-copy {
    margin-left: 0;
  }

  .apps-reveal,
  .apps-wrap {
    min-height: auto;
  }

  .apps-wrap {
    padding: 28px 0 76px;
  }

  .bio-card {
    border-left-width: 4px;
    padding-left: 20px;
  }

  .bio-photo {
    width: clamp(132px, 34vw, 190px);
    margin: 0 0 14px 22px;
    box-shadow: 0 18px 54px rgba(31, 30, 26, .16);
  }

  .bio-photo::after {
    border-width: 6px;
  }

  .bio-copy .bio-lede {
    font-size: clamp(25px, 6.8vw, 34px);
  }

  .bio-copy p:not(.eyebrow) {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.48;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-grid .portfolio-card {
    min-height: 320px;
  }

  .story-hero-grid {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 48px;
  }

  .maya-hero {
    padding: 104px 0 48px;
  }

  .maya-hero-panel {
    min-height: 300px;
  }

  .maya-library {
    padding: 58px 0 78px;
  }

  .story-hero-copy h1 {
    font-size: clamp(45px, 13vw, 64px);
  }

  .story-hero-actions,
  .story-reader-controls {
    flex-direction: column;
  }

  .story-hero-actions .button,
  .story-reader-controls .button {
    width: 100%;
  }

  .story-orbital {
    min-height: 650px;
  }

  .story-orbital::before {
    inset: 30px;
  }

  .story-character-card {
    top: auto;
    bottom: 24px;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    min-height: 170px;
  }

  .story-character-token {
    left: 24px;
    right: 24px;
    top: auto;
    width: auto;
    min-height: 64px;
    transform: none;
  }

  .story-character-token:hover {
    transform: translateY(-1px);
  }

  .story-character-token:nth-child(1) { top: 24px; }
  .story-character-token:nth-child(2) { top: 98px; }
  .story-character-token:nth-child(3) { top: 172px; }
  .story-character-token:nth-child(4) { top: 246px; }
  .story-character-token:nth-child(5) { top: 320px; }

  .story-chapters,
  .story-reader-shell {
    padding: 58px 0;
  }

  .story-chapter-rail {
    grid-auto-columns: minmax(210px, 82vw);
  }

  .story-reader-art,
  .story-reader-image,
  .story-page-panel {
    min-height: 430px;
  }

  .story-reader-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding: 26px 0 calc(28px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .footer-links {
    display: flex;
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .footer-grid span,
  .footer-links a {
    font-size: 13px;
  }

  .grid,
  .grid.two,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .focus-panel,
  .headshot-wrap,
  .headshot-wrap img {
    min-height: 340px;
  }

  .screen-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-row span { text-align: left; }
}

@media (max-width: 520px) {
  .bio-photo {
    float: right;
    width: clamp(116px, 31vw, 150px);
    margin: 2px 0 10px 16px;
  }

  .bio-copy .bio-lede { max-width: none; }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-grid .portfolio-card {
    min-height: 320px;
  }
}
