@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;450;500;550&display=swap');
/* Progressive enhancement of the existing hero, not a second content section. */
.hero-model-caption { display: none; }
.hero-story-chapters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 54px; padding: 90px max(36px,7.5%); background: #06070d; color: #f3f4f8; }
.hero-chapter-label { color: #f4dfcf; font: 10px/1.7 'DM Mono',monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero-chapter-label span { color: inherit; }
.hero-story-chapter { font-family: 'Geist','DM Sans',Arial,sans-serif; }
.hero-story-chapter h2 { margin: 24px 0 22px; font-size: clamp(30px,3vw,46px); line-height: 1.12; letter-spacing: -.025em; font-weight: 450; text-wrap: balance; }
.hero-story-chapter p { max-width: 395px; margin: 0 0 30px; color: #b8bfca; font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.hero-chapter-link { display: inline-flex; min-height: 46px; align-items: center; border: 1px solid #505663; border-radius: 6px; padding: 12px 18px; font-size: 13px; font-weight: 500; transition: border-color .2s,background .2s; }
.hero-chapter-link:hover { border-color: #ff7948; background: rgba(255,90,31,.08); }
.hero-chapter-detail { max-width: 350px; margin-top: 34px; font: 9px/1.8 'DM Mono',monospace; text-transform: uppercase; letter-spacing: .06em; color: #737f94; }
.hero-story-skip { display: none; }
.hero-transition-ready.hero-stage { position: relative; height: 100svh; min-height: 601px; overflow: hidden; isolation: isolate; background: rgb(var(--hero-background,255),var(--hero-background,255),var(--hero-background,255)); }
.hero-transition-ready .hero-framed { position: relative; background: transparent; z-index: 2; }
.hero-transition-ready .hero-framed > .hero-image,
.hero-transition-ready .hero-framed:before { opacity: calc(1 - var(--hero-handoff,0)); }
.hero-transition-ready .hero-content,
.hero-transition-ready .hero-scroll { opacity: var(--hero-text-opacity,1); }
.hero-transition-ready .hero-scroll { pointer-events: auto; }
.hero-transition-ready .hero-nav { z-index: 4; opacity: var(--hero-nav-opacity,1); }
.hero-model-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: var(--hero-handoff,0); }
.hero-transition-ready .hero-model-caption { display: block; position: absolute; left: 50%; top: 70%; transform: translate(-50%,var(--hero-caption-offset,16px)); width: min(850px,calc(100% - 48px)); text-align: center; color: #fff; opacity: var(--hero-caption-opacity,0); z-index: 3; }
.hero-model-caption h2 { font-size: clamp(28px,3.2vw,43px); font-weight: 400; letter-spacing: -.045em; line-height: 1.12; margin: 0 auto 20px; text-wrap: balance; }
.hero-model-caption p { max-width: 580px; font-size: 15px; line-height: 1.6; margin: 0 auto; color: #b7bdca; text-wrap: balance; }
.hero-transition-ready .hero-story-chapters { position: absolute; inset: 0; display: block; padding: 0; background: transparent; z-index: 3; pointer-events: none; }
.hero-transition-ready .hero-story-chapter { position: absolute; top: 50%; left: 7.5%; width: 30%; max-width: 440px; transform: translateY(-50%); visibility: hidden; }
.hero-transition-ready .hero-story-chapter[data-chapter='2'] { left: 62%; }
.hero-transition-ready .hero-story-chapter > * { opacity: var(--part-opacity,0); transform: translateY(var(--part-offset,16px)); }
.hero-transition-ready .hero-story-skip { display: inline-flex; align-items: center; min-height: 44px; position: absolute; right: 7.5%; bottom: 24px; z-index: 4; color: #8994a8; font: 10px 'DM Mono',monospace; text-transform: uppercase; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 5px; opacity: var(--story-navigation-opacity,0); }
.hero-story-skip:hover { color: #fff; }
@media(max-width:760px) {
  .hero-story-chapters { grid-template-columns: 1fr; gap: 56px; padding: 64px 24px; }
  .hero-story-chapter h2 { font-size: 34px; }
  .hero-transition-ready .hero-model-caption { top: 65%; width: calc(100% - 40px); }
  .hero-model-caption h2 { font-size: clamp(27px,7.6vw,35px); margin-bottom: 16px; }
  .hero-model-caption p { font-size: 14px; max-width: 340px; }
  .hero-transition-ready .hero-story-chapter,
  .hero-transition-ready .hero-story-chapter[data-chapter='2'] { left: 24px; top: 56%; width: calc(100% - 48px); max-width: 430px; transform: none; }
  .hero-transition-ready .hero-story-chapter h2 { font-size: clamp(28px,8.2vw,36px); margin: 14px 0 16px; }
  .hero-transition-ready .hero-story-chapter p { font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
  .hero-transition-ready .hero-chapter-label { font-size: 9px; }
  .hero-transition-ready .hero-chapter-detail { display: none; }
  .hero-transition-ready .hero-story-skip { right: 24px; bottom: 12px; font-size: 9px; }
}
@media(max-width:760px) and (max-height:740px) {
  .hero-transition-ready .hero-story-chapter,
  .hero-transition-ready .hero-story-chapter[data-chapter='2'] { top: 52%; }
  .hero-transition-ready .hero-story-chapter h2 { font-size: 28px; margin: 12px 0; }
  .hero-transition-ready .hero-story-chapter p { font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
}
@media(max-width:760px) and (max-height:660px) {
  .hero-transition-ready .hero-story-chapter,
  .hero-transition-ready .hero-story-chapter[data-chapter='2'] { top: 49%; }
  .hero-transition-ready .hero-story-chapter h2 { font-size: 25px; }
  .hero-transition-ready .hero-story-chapter p { font-size: 12px; }
}

/* Opening composition: a direct introduction above the existing live scene. */
.home .hero-stage { --intro-height: 344px; background: #0a0a0b; color: #f5f5f3; }
.home .hero-nav { color: #f5f5f3; height: 80px; }
.home .hero-nav .logo-img { filter: invert(1); }
.home .hero-nav .nav-cta { background: #f4dfcf; color: #171717; border-color: #f4dfcf; font: 500 13px 'DM Sans',Arial,sans-serif; letter-spacing: 0; border-radius: 5px; }
.home .hero-nav .nav-cta:hover { background: #fff0e5; }
.hero-introduction { position: relative; z-index: 3; height: var(--intro-height); padding: 38px 0 40px; margin: 0 5%; opacity: var(--hero-text-opacity,1); font-family: 'Geist','DM Sans',Arial,sans-serif; }
.hero-introduction h1 { font-size: clamp(40px,4.6vw,72px); font-weight: 450; letter-spacing: -.045em; line-height: 1.06; margin: 0 0 22px; }
.hero-introduction p { max-width: 540px; color: #b9b9bf; font-size: 16px; line-height: 1.6; margin: 0 0 26px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.hero-primary { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; background: #f4dfcf; color: #171717; border-radius: 5px; font-weight: 500; }
.hero-primary:hover { background: #fff0e5; }
.hero-secondary { display: inline-flex; align-items: center; min-height: 46px; gap: 12px; }
.hero-secondary:hover { color: #f4dfcf; }
.hero-actions a:focus-visible { outline: 2px solid #f4dfcf; outline-offset: 5px; }
.home .hero-framed { min-height: 0; height: max(280px,calc(100svh - 80px - var(--intro-height) - 24px)); border-radius: 8px; }
.home .hero-framed:before { background: transparent; }
.home .hero-scroll { right: 28px; bottom: 22px; font-size: 12px; }
.home .hero-transition-ready.hero-stage { background: rgb(var(--hero-background,10),var(--hero-background,10),var(--hero-background,10)); }
@media(min-width:1600px) { .home .hero-stage { --intro-height: 390px; } }
@media(max-width:760px) {
  .home .hero-stage { --intro-height: 350px; }
  .home .hero-nav { height: 76px; }
  .home .hero-nav .nav-toggle { color: #f5f5f3; }
  .home .hero-nav.open { background: #0a0a0b; }
  .home .hero-nav .nav-links a { color: #f5f5f3; border-color: #333; }
  .hero-introduction { margin: 0 24px; padding-top: 28px; }
  .hero-introduction h1 { font-size: clamp(32px,8.2vw,48px); line-height: 1.1; letter-spacing: -.04em; margin-bottom: 20px; }
  .hero-introduction p { font-size: 15px; max-width: 410px; margin-bottom: 22px; }
  .hero-actions { gap: 22px; font-size: 13px; }
  .hero-primary { padding: 0 16px; }
  .home .hero-framed { height: max(220px,calc(100svh - 76px - var(--intro-height) - 12px)); }
  .home .hero-scroll { right: 18px; bottom: 16px; }
}

@media(max-width:360px) { .home .hero-stage { --intro-height: 390px; } }

@media(max-width:360px) { .hero-actions { gap: 18px; font-size: 12px; white-space: nowrap; } .hero-primary { padding: 0 14px; } .hero-secondary { gap: 8px; } }

/* Homepage navigation rail: existing dark palette and controls, new layout. */
@media (min-width: 761px) {
  body.home { padding-left: 216px; }
  .home > .sidebar-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    transform: none;
    width: 216px;
    height: 100svh;
    margin: 0;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    background: #0a0a0b;
    color: #f5f5f3;
    border: 0;
    border-right: 1px solid #232326;
    font-family: 'Geist','DM Sans',Arial,sans-serif;
    overflow-y: auto;
  }
  .home .sidebar-nav .logo { display: inline-flex; align-items: center; min-height: 40px; }
  .home .sidebar-nav .logo-img { height: 31px; width: auto; }
  .home .sidebar-nav .nav-toggle { display: none; }
  .home .sidebar-nav .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 32px;
    font-size: 13px;
    font-weight: 400;
  }
  .home .sidebar-nav .nav-links a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 0;
    color: #a1a1a8;
    opacity: 1;
    transition: color .2s;
  }
  .home .sidebar-nav .nav-links a:hover,
  .home .sidebar-nav .nav-links a[aria-current='page'] { color: #f5f5f3; }
  .home .sidebar-nav .nav-links a[aria-current='page'] { font-weight: 500; }
  .home .sidebar-nav .nav-cta {
    margin: auto 0 0;
    min-height: 42px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .home .sidebar-nav a:focus-visible { outline: 2px solid #f4dfcf; outline-offset: 5px; }
  .home .hero-stage { padding-top: 80px; }
}
@media (min-width: 761px) and (max-width: 1050px) {
  body.home { padding-left: 180px; }
  .home > .sidebar-nav { width: 180px; padding-inline: 20px; }
}
@media (max-width: 760px) {
  .home > .sidebar-nav { background: #0a0a0b; color: #f5f5f3; }
  .home > .sidebar-nav .nav-links a[aria-current='page'] { color: #f4dfcf; }
}
@media (max-width: 760px) {
  .home > .sidebar-nav,
  .home > .sidebar-nav.open {
    width: 100%;
    margin: 0;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Editorial opening: supporting copy on the left, display typography on the right. */
.home .hero-stage { --intro-height: clamp(340px,47svh,480px); padding-top: 0; }
.home .hero-introduction {
  display: grid;
  grid-template-columns: minmax(235px,.8fr) minmax(0,1.65fr);
  align-items: center;
  column-gap: clamp(28px,2.8vw,52px);
  height: var(--intro-height);
  margin-inline: 5%;
  padding: 42px 0;
}
.home .hero-introduction h1 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: 'Instrument Serif',Georgia,serif;
  font-size: clamp(64px,6.6vw,122px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: initial;
  color: #f5f5f3;
}
.hero-introduction h1 > span { display: block; }
.hero-intro-support { grid-column: 1; grid-row: 1; }
.home .hero-intro-support p {
  max-width: 300px;
  margin: 0 0 28px;
  color: #b9b9bf;
  font-size: 15px;
  line-height: 1.6;
}
.home .hero-actions { gap: 10px; flex-wrap: wrap; font-size: 12px; }
.home .hero-primary,
.home .hero-secondary {
  min-height: 43px;
  padding: 0 17px;
  border-radius: 999px;
  justify-content: center;
  white-space: nowrap;
}
.home .hero-secondary { border: 1px solid #7c7c80; gap: 12px; }
.home .hero-secondary:hover { border-color: #f4dfcf; }
.home .hero-framed { height: max(220px,calc(100svh - var(--intro-height) - 24px)); }
@media (min-width: 761px) and (max-width: 1050px) {
  .home .hero-introduction { grid-template-columns: minmax(180px,.85fr) minmax(0,1.5fr); gap: 25px; }
  .home .hero-introduction h1 { font-size: clamp(49px,6.3vw,66px); }
  .home .hero-intro-support p { font-size: 13px; }
}
@media (max-width: 760px) {
  .home .hero-stage { --intro-height: 410px; }
  .home .hero-introduction {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    margin: 0 24px;
    padding: 30px 0 44px;
  }
  .home .hero-introduction h1 { font-size: clamp(51px,13.6vw,78px); line-height: .98; letter-spacing: -.025em; }
  .home .hero-intro-support p { font-size: 14px; max-width: 370px; margin-bottom: 23px; }
  .home .hero-actions { font-size: 12px; gap: 10px; }
  .home .hero-primary,.home .hero-secondary { min-height: 44px; padding-inline: 17px; }
  .home .hero-framed { height: max(220px,calc(100svh - 76px - var(--intro-height) - 12px)); }
}
@media (max-width: 360px) {
  .home .hero-stage { --intro-height: 440px; }
  .home .hero-introduction h1 { font-size: 49px; }
  .home .hero-actions { gap: 8px; font-size: 11px; }
  .home .hero-primary,.home .hero-secondary { padding-inline: 13px; }
}

.home .hero-intro-support .hero-pack-note {
  margin: 17px 0 0;
  max-width: none;
  font-size: 10px;
  line-height: 1.6;
  color: #929297;
}
@media (max-width: 760px) {
  .home .hero-stage { --intro-height: 450px; }
}
@media (max-width: 360px) {
  .home .hero-stage { --intro-height: 490px; }
}
@media (min-width: 1051px) {
  .home .hero-actions { gap: 8px; }
  .home .hero-primary,.home .hero-secondary { padding-inline: 13px; }
}

/* Hero type pairing: editorial display with restrained sans-serif details. */
.home .hero-intro-support,
.home .hero-introduction .hero-actions a {
  font-family: 'Geist','DM Sans',Arial,sans-serif;
  font-weight: 400;
  letter-spacing: -.015em;
}
.home .hero-introduction .hero-actions a { font-weight: 500; }
.home .hero-intro-support .hero-pack-note { letter-spacing: 0; }

/* Supporting sentence: softer shapes and a comfortable reading rhythm. */
.home .hero-intro-support > p:not(.hero-pack-note) {
  font-family: 'DM Sans',Arial,sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: #b9b9bf;
}
@media (max-width: 1050px) {
  .home .hero-intro-support > p:not(.hero-pack-note) { font-size: 14px; line-height: 1.55; }
}

/* Hero actions share one sizing and interaction system. */
.home .hero-introduction .hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home .hero-introduction .hero-actions a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: 'DM Sans',Arial,sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}
.home .hero-introduction .hero-primary { background: #f4dfcf; color: #171717; }
.home .hero-introduction .hero-primary:hover { background: #ffeddf; }
.home .hero-introduction .hero-actions .hero-secondary { gap: 13px; background: transparent; border-color: #69696e; color: #f5f5f3; }
.home .hero-introduction .hero-actions .hero-secondary:hover { border-color: #c2c2c5; background: #ffffff08; color: #fff; }
.home .hero-introduction .hero-secondary svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.home .hero-introduction .hero-actions a:active { transform: translateY(1px); }
.home .hero-introduction .hero-actions a:focus-visible { outline: 2px solid #f4dfcf; outline-offset: 4px; }
@media (min-width: 1051px) {
  .home .hero-introduction { grid-template-columns: minmax(320px,.9fr) minmax(0,1.65fr); }
}
@media (max-width: 360px) {
  .home .hero-introduction .hero-actions { gap: 8px; }
  .home .hero-introduction .hero-actions a { padding-inline: 13px; font-size: 11px; }
  .home .hero-introduction .hero-secondary { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .hero-introduction .hero-actions a { transition: none; }
}

/* Solid, softly rounded hero actions inspired by the supplied reference. */
.home .hero-introduction .hero-actions a {
  position: relative;
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1),background-color 240ms ease,box-shadow 240ms ease,border-color 240ms ease;
}
.home .hero-introduction .hero-actions .hero-primary {
  background: #fafafa;
  border-color: #e5e5e5;
  color: #171717;
  box-shadow: 0 1px 2px #00000018;
}
.home .hero-introduction .hero-actions .hero-secondary {
  background: #303030;
  border-color: #353535;
  color: #f5f5f3;
  gap: 10px;
}
.home .hero-introduction .hero-secondary svg { transition: transform 260ms cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) {
  .home .hero-introduction .hero-actions a:hover { transform: translateY(-3px); }
  .home .hero-introduction .hero-actions .hero-primary:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 6px 18px #ffffff12;
  }
  .home .hero-introduction .hero-actions .hero-secondary:hover {
    background: #414141;
    border-color: #4b4b4b;
    box-shadow: 0 6px 18px #00000024;
  }
  .home .hero-introduction .hero-secondary:hover svg { transform: translate(2px,-2px); }
}
.home .hero-introduction .hero-actions a:active { transform: translateY(0) scale(.98); box-shadow: none; }
@media (min-width: 1051px) {
  .home .hero-introduction { grid-template-columns: minmax(350px,.95fr) minmax(0,1.65fr); }
}
@media (max-width: 360px) {
  .home .hero-introduction .hero-actions a { padding-inline: 14px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .hero-introduction .hero-actions a,
  .home .hero-introduction .hero-secondary svg { transition: none; }
  .home .hero-introduction .hero-actions a:hover,
  .home .hero-introduction .hero-actions a:active,
  .home .hero-introduction .hero-secondary:hover svg { transform: none; }
}

/* Quiet hover feedback: stable controls without lift, glow, or icon motion. */
.home .hero-introduction .hero-actions a {
  box-shadow: none;
  transition: background-color 180ms ease,border-color 180ms ease,color 180ms ease;
}
.home .hero-introduction .hero-secondary svg { transition: none; }
.home .hero-introduction .hero-actions a:hover,
.home .hero-introduction .hero-actions a:active,
.home .hero-introduction .hero-secondary:hover svg { transform: none; box-shadow: none; }
.home .hero-introduction .hero-actions .hero-primary:hover { background: #e9e9e9; border-color: #e9e9e9; box-shadow: none; }
.home .hero-introduction .hero-actions .hero-secondary:hover { background: #393939; border-color: #393939; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .home .hero-introduction .hero-actions a { transition: none; }
}

/* A restrained surface sweep provides feedback without moving the control. */
.home .hero-introduction .hero-actions a {
  isolation: isolate;
  overflow: hidden;
}
.home .hero-introduction .hero-actions a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #e5e5e5;
  transform: translateX(-102%);
  transition: transform 380ms cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.home .hero-introduction .hero-actions .hero-secondary::before { background: #484848; }
@media (hover: hover) and (pointer: fine) {
  .home .hero-introduction .hero-actions .hero-primary:hover { background: #fafafa; border-color: #d5d5d5; }
  .home .hero-introduction .hero-actions .hero-secondary:hover { background: #303030; border-color: #626262; }
  .home .hero-introduction .hero-actions a:hover::before { transform: translateX(0); }
}
.home .hero-introduction .hero-actions a:focus-visible::before { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .home .hero-introduction .hero-actions a::before { transition: none; }
}

/* One-time, staggered headline reveal. */
@keyframes hero-headline-reveal {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(18px); }
  to { opacity: 1; clip-path: inset(0 0 -12% 0); transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .home .hero-introduction h1 > span {
    animation: hero-headline-reveal 1000ms cubic-bezier(.22,1,.36,1) both;
    animation-delay: 120ms;
  }
  .home .hero-introduction h1 > span:nth-child(2) { animation-delay: 300ms; }
}

/* The sidebar sample action uses the same surface and sweep as the hero. */
.home .sidebar-nav .nav-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 46px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
  color: #171717;
  font-family: 'DM Sans',Arial,sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
  box-shadow: none;
  transition: background-color 180ms ease,border-color 180ms ease;
}
.home .sidebar-nav .nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #e5e5e5;
  transform: translateX(-102%);
  transition: transform 380ms cubic-bezier(.22,1,.36,1);
}
.home .sidebar-nav .nav-cta:hover,
.home .sidebar-nav .nav-cta:active { transform: none; background: #fafafa; color: #171717; }
@media (hover: hover) and (pointer: fine) {
  .home .sidebar-nav .nav-cta:hover { border-color: #d5d5d5; }
  .home .sidebar-nav .nav-cta:hover::before { transform: translateX(0); }
}
.home .sidebar-nav .nav-cta:focus-visible::before { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .home .sidebar-nav .nav-cta,
  .home .sidebar-nav .nav-cta::before { transition: none; }
}
@media (max-width: 760px) {
  .nav-ready .home .sidebar-nav:not(.open) .nav-cta { min-height: 0; border-width: 0; padding-block: 0; }
}

/* Desktop sidebar drawer, independent of the mobile menu. */
.sidebar-close,.sidebar-reopen { display: none; }
@media (min-width: 761px) {
  body.home { transition: none; background: #0a0a0b; }
  .home > .sidebar-nav { transition: transform 340ms cubic-bezier(.22,1,.36,1); }
  .home .sidebar-close,.home .sidebar-reopen {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #b9b9bf;
    background: transparent;
    cursor: pointer;
    transition: background-color 180ms ease,color 180ms ease;
  }
  .home .sidebar-close { position: absolute; top: 33px; right: 20px; }
  .home .sidebar-reopen {
    position: fixed;
    top: 24px;
    left: 20px;
    z-index: 20;
    width: 34px;
    height: 34px;
    background: #0a0a0b;
    border-color: #28282c;
    visibility: hidden;
  }
  .home .sidebar-close:hover,.home .sidebar-reopen:hover { color: #fff; background: #292929; }
  .home .sidebar-close:focus-visible,.home .sidebar-reopen:focus-visible { outline: 2px solid #fafafa; outline-offset: 4px; }
  body.home.sidebar-collapsed { padding-left: 0; }
  .home.sidebar-collapsed > .sidebar-nav { transform: translateX(-100%); pointer-events: none; }
  .home.sidebar-collapsed .sidebar-reopen { visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
  body.home,.home > .sidebar-nav { transition: none; }
}
.home .hero-introduction h1.is-revealed > span {
  animation: none;
  opacity: 1;
  clip-path: none;
  transform: none;
}

/* The last pinned frame dissolves into the light proof section on scroll. */
.home .hero-transition-ready.hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #fff;
  opacity: var(--hero-departure,0);
}
.home .hero-transition-ready.hero-stage::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: clamp(90px,16svh,160px);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom,transparent,#ffffff30 50%,#fff);
  opacity: var(--hero-end-blend,0);
}
.home .hero-transition-ready .hero-story-chapters {
  opacity: calc(1 - var(--hero-departure,0));
}
.home .hero-transition-ready .hero-story-skip {
  opacity: calc(var(--story-navigation-opacity,0) * (1 - var(--hero-departure,0)));
}

/* Product story typography: concise headings and readable supporting details. */
.hero-story-chapter .scroll-story-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  max-width: 395px;
  font-family: 'Geist','DM Sans',Arial,sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #b8bfca;
}
.scroll-story-list li { padding: 10px 0; border-bottom: 1px solid #ffffff17; }
.scroll-story-list li:first-child { padding-top: 0; }
.scroll-story-list strong { color: #f3f4f8; font-weight: 500; }
@media (max-width: 760px) {
  .hero-story-chapter .scroll-story-list { font-size: 12px; line-height: 1.5; margin-bottom: 16px; }
  .scroll-story-list li { padding-block: 7px; }
  .hero-transition-ready .hero-story-chapter:has(.scroll-story-list) { top: 47%; }
  .hero-transition-ready .hero-story-chapter:has(.scroll-story-list) h2 { font-size: 30px; margin-block: 12px 16px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .hero-transition-ready .hero-story-chapter:has(.scroll-story-list) { top: 43%; }
  .hero-transition-ready .hero-story-chapter:has(.scroll-story-list) h2 { font-size: 26px; margin-block: 10px 12px; }
  .hero-story-chapter .scroll-story-list { font-size: 11px; }
}

/* Button artwork from Variable Width SVG; all icons inherit their control color. */
.home .hero-primary,.home .hero-chapter-link,.home .sidebar-nav .nav-cta { display: inline-flex; align-items: center; gap: 10px; }
.home a > svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.home .hero-introduction .hero-actions .hero-secondary svg { width: 18px; height: 18px; flex-basis: 18px; }
.home .sidebar-close svg,.home .sidebar-reopen svg { width: 20px; height: 20px; }
.home .nav-toggle .menu-close-icon { display: none; }
.home .sidebar-nav.open .nav-toggle .menu-open-icon { display: none; }
.home .sidebar-nav.open .nav-toggle .menu-close-icon { display: block; }
.home .nav-toggle svg { width: 22px; height: 22px; }
@media (min-width: 1051px) {
  .home .hero-introduction { grid-template-columns: minmax(370px,1fr) minmax(0,1.65fr); }
}
@media (max-width: 360px) {
  .home .hero-introduction .hero-actions a { padding-inline: 11px; }
  .home .hero-introduction .hero-actions .hero-primary { gap: 7px; }
}
.home .footer-email > svg { display: inline-block; vertical-align: middle; margin-left: 8px; }
@media (max-width: 360px) {
  .home .hero-introduction .hero-actions a { padding-inline: 8px; }
}
@media (max-width: 360px) {
  .home .hero-introduction .hero-actions { gap: 6px; }
}

@media (max-width: 760px) {
  .services-page > .sidebar-nav { display: grid; grid-template-columns: 1fr auto; align-items: center; height: 76px; gap: 0; padding: 0 24px; }
  .services-page .sidebar-nav .logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .services-page .sidebar-nav .nav-toggle { grid-column: 2; grid-row: 1; position: static; display: flex; align-items: center; justify-content: center; justify-self: end; width: 40px; height: 40px; margin: 0; padding: 0; background: transparent; border: 0; color: #f5f5f3; }
  .services-page .sidebar-nav .nav-links { grid-column: 1/-1; display: flex; flex-direction: column; gap: 0; overflow: hidden; max-height: 0; opacity: 0; margin: 0; transform: none; }
  .services-page .sidebar-nav .nav-links a { padding: 14px 0; font-size: 16px; border-top: 1px solid #28282c; }
  .services-page .sidebar-nav .nav-links a::after { display: none; }
  .services-page .sidebar-nav .nav-cta { grid-column: 1/-1; max-height: 0; min-height: 0; margin: 0; padding: 0; opacity: 0; border-width: 0; overflow: hidden; pointer-events: none; }
  .services-page > .sidebar-nav.open { height: auto; padding-top: 16px; padding-bottom: 20px; row-gap: 12px; }
  .services-page .sidebar-nav.open .nav-links { max-height: 400px; opacity: 1; }
  .services-page .sidebar-nav.open .nav-cta { max-height: 60px; min-height: 46px; opacity: 1; border-width: 1px; padding: 12px; pointer-events: auto; }
  html:not(.nav-ready) .services-page .sidebar-nav { height: auto; padding-block: 16px; }
  html:not(.nav-ready) .services-page .sidebar-nav .nav-links { max-height: none; opacity: 1; }
  html:not(.nav-ready) .services-page .sidebar-nav .nav-toggle { display: none; }
}
