/* Structure and typography. Existing image treatments remain in styles.css;
   the tablet menu below repeats only the original mobile-menu colors. */
[hidden] { display: none !important; }
html { scroll-padding-top: 104px; }
[id] { scroll-margin-top: 104px; }
body { font-size: 16px; line-height: 1.75; }
img { max-width: 100%; }
button, input, textarea { font-family: var(--sans); }
h1, h2 { line-height: .95; }
h3 { font-size: clamp(2.15rem, 3vw, 3.2rem); line-height: 1.05; }
.wordmark { flex-shrink: 0; }
.wordmark-name { font-size: 1.6rem; letter-spacing: -.015em; }
.wordmark-mark, .wordmark-mark img { width: 42px; height: 42px; }
.main-nav { gap: clamp(16px, 1.8vw, 30px); margin-right: 0; margin-left: 4vw; }
.main-nav a { font-size: .65rem; letter-spacing: .055em; padding-block: 9px; }
.header-actions { position: relative; z-index: 2; }
body.is-menu-open .site-header { backdrop-filter: none; }
.motion-toggle { min-width: 44px; min-height: 44px; justify-content: center; }
.motion-toggle [data-motion-icon] { font-size: 1.2rem; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.main-nav a[aria-current='page']::after { transform: scaleX(1); }
.hero-copy h1 { line-height: .87; }
.hero-intro { font-size: 1rem; }
.hero-footer { gap: 25px; }
.film-toggle { position: absolute; z-index: 4; right: 7.5%; bottom: 87px; min-height: 38px; padding-inline: 14px; font-size: .58rem; cursor: pointer; }
.film-toggle span { font-size: inherit; }
.home-guide .begin-inner { min-height: 700px; padding-block: 115px; gap: 8%; grid-template-columns: .85fr 1.3fr; }
.home-guide .begin-heading > p:not(.eyebrow) { max-width: 335px; margin-top: 28px; font-size: .95rem; }
.home-guide .begin-heading h2 { font-size: clamp(3.7rem, 5.2vw, 5.8rem); }
.home-guide .begin-heading .eyebrow { margin-bottom: 27px; }
.home-guide .begin-path { grid-template-columns: 35px 1fr 20px; padding: 28px 10px; gap: 18px; }
.home-guide .begin-path-copy { gap: 14px; }
.home-guide .begin-path-copy strong { font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.12; }
.home-guide .begin-path-copy small { font-size: .8rem; line-height: 1.8; text-transform: none; letter-spacing: 0; max-width: 460px; }
.home-guide .begin-path:last-child { border-bottom-width: 1px; border-bottom-style: solid; }
.home-ali .ali-copy h2 { font-size: clamp(3.7rem, 6vw, 6.5rem); }
.home-ali .ali-copy > .eyebrow { margin-bottom: 25px; }
.home-ali .ali-grid { gap: 8vw; }
.device-stage .device-label { font-size: 1rem; bottom: 14%; right: 1%; }
.reveal-copy h2 { font-size: clamp(3.7rem, 6vw, 6.6rem); }
.reveal-copy { padding-top: 65px; }
.reveal-copy .button { max-width: 100%; }
.transformation-copy .button { margin-top: 15px; }
.page-opening .faq-inner { min-height: 660px; padding-block: 160px 90px; }
.page-opening h1 { font-size: clamp(4.5rem, 8vw, 8rem); }
.page-opening .text-link { width: fit-content; margin-top: 20px; }
.frequency-page .split-copy p { line-height: 1.8; }
.frequency-page .ripple-caption { max-width: 230px; }
.device-list { display: grid; gap: 55px; }
.device-entry h3 { margin: 0 0 24px; }
.device-entry .text-link { margin-top: 8px; }
.next-step-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 630px; padding-block: 100px; }
.next-step-inner > p:not(.eyebrow) { max-width: 540px; margin-top: 10px; }
.next-step-inner > .eyebrow { margin-bottom: 27px; }
.next-step-inner .text-link { margin-top: 30px; }
.olive-page .olive-copy h1 { font-size: clamp(5rem, 9vw, 8rem); }
.haven-page .transformation-copy h1 { font-size: clamp(5rem, 9vw, 8rem); }
.haven-page .transformation-copy .text-link { margin-left: 30px; }
.haven-letter .ali-grid { align-items: start; min-height: 0; padding-block: 110px; }
.haven-letter .ali-copy h2 { font-size: clamp(3.8rem, 5.5vw, 6rem); }
.haven-letter .ali-copy .eyebrow { margin-bottom: 27px; }
.journey-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9%; align-items: start; }
.journey-layout .editorial-heading { position: sticky; top: 130px; margin: 0; }
.journey-layout .editorial-heading h2 { font-size: clamp(3.7rem, 5vw, 5.5rem); }
.journey-timeline { position: relative; border-left-width: 1px; border-left-style: solid; padding-left: 40px; }
.journey-entry { position: relative; padding-bottom: 55px; }
.journey-entry::before { position: absolute; top: 6px; left: -45px; width: 8px; height: 8px; border-width: 1px; border-style: solid; border-radius: 50%; content: ''; }
.journey-entry:last-child { padding-bottom: 0; }
.journey-entry h3 { margin: 0 0 25px; }
.journey-entry .story-year { margin-bottom: 16px; font-size: .68rem; }
.journey-entry p { line-height: 1.9; }
.anchor-target { position: absolute; }
.crystal-feature { overflow-wrap: anywhere; }
.crystal-feature-large .crystal-photo { max-width: 690px; }
.contact-section .editorial-heading h2 { line-height: 1.02; }
.contact-form input, .contact-form textarea { box-sizing: border-box; font-family: var(--sans); text-transform: none; font-size: .93rem; }
.contact-form .button { line-height: 1.5; padding-block: 16px; text-align: left; max-width: 100%; }
.contact-section .editorial-note { margin-top: 22px; }
.footer-links a { max-width: 100%; }
html:not(.motion-ready) .reveal { opacity: 1; transform: none; }

@media (max-width: 1150px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .motion-toggle [data-motion-label] { display: none; }
  .header-actions { gap: 8px; }
  .mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 25px; padding: 125px 9vw 65px; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; pointer-events: none; }
  .mobile-menu.is-open { visibility: visible; pointer-events: auto; }
  .mobile-menu a { font-family: var(--sans); font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.35; width: fit-content; max-width: 100%; }
  .site-header { gap: 25px; }
  .journey-layout { gap: 7%; }
  .journey-timeline { padding-left: 30px; }
  .journey-entry::before { left: -35px; }
  .home-guide .begin-inner { gap: 6%; }
}
@media (min-width: 721px) and (max-width: 1150px) {
  /* Reuse the exact existing mobile-menu colors, now also at tablet widths. */
  .mobile-menu { background: rgba(10,47,49,.98); opacity: 0; transform: translateY(-15px); transition: opacity .3s ease, transform .3s ease; }
  .mobile-menu.is-open { opacity: 1; transform: translateY(0); }
  .mobile-menu a::first-letter { color: var(--gold); }
  .ali-grid { gap: 6%; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .ali-copy h2 { font-size: 4.6rem; }
  .device-stage { min-height: 400px; }
  .technology-visual { max-width: 100%; }
  .home-guide .begin-heading h2 { font-size: 4rem; }
  .home-guide .begin-path-copy strong { font-size: 1.8rem; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 85px; }
  [id] { scroll-margin-top: 85px; }
  body { font-size: 15px; }
  h1 { line-height: .92; }
  h2 { line-height: .98; }
  .site-header { gap: 8px; }
  .wordmark-name { font-size: 1.35rem; }
  .wordmark-mark, .wordmark-mark img { width: 34px; height: 34px; }
  .wordmark-meta { letter-spacing: .12em; }
  .mobile-menu { padding-top: 110px; gap: 23px; }
  .mobile-menu a { font-size: 1.9rem; }
  .hero-inner { min-height: max(780px,100svh); padding-top: 125px; }
  .hero-copy { margin-top: 15vh; }
  .hero-copy h1 { font-size: clamp(4.5rem,17vw,6rem); }
  .hero-footer { font-size: .48rem; }
  .film-toggle { bottom: 73px; right: 7%; }
  .home-guide .begin-inner { display: flex; flex-direction: column; gap: 42px; padding-block: 90px; min-height: 0; }
  .home-guide .begin-heading h2 { font-size: 3.8rem; }
  .home-guide .begin-path { grid-template-columns: 25px 1fr 18px; gap: 12px; padding: 26px 0; }
  .home-guide .begin-path-copy strong { font-size: 1.9rem; }
  .home-guide .begin-path-copy small { font-size: .79rem; }
  .home-ali .ali-grid { padding-block: 95px; }
  .home-ali .ali-copy { max-width: none; }
  .home-ali .ali-copy h2 { font-size: 4.3rem; }
  .home-ali .ali-image { margin: 0 auto; width: 100%; max-width: 370px; aspect-ratio: 1.15; }
  .reveal-inner { gap: 35px; min-height: 0; padding-block: 105px 95px; }
  .reveal-copy { order: 2; padding: 0; }
  .reveal-inner > .chapter-index { order: 0; }
  .device-stage { order: 1; position: relative; top: auto; right: auto; width: 100%; min-height: 300px; transform: none; opacity: 1; }
  .technology-visual { width: 100%; max-width: 100%; }
  .device-stage .device-label { bottom: -8px; right: 8px; }
  .reveal-copy h2 { font-size: 3.55rem; }
  .transformation-copy h2 { font-size: 3.8rem; }
  .olive-copy h2 { font-size: 4.3rem; }
  .page-opening .faq-inner { min-height: 620px; padding-block: 135px 75px; }
  .page-opening .faq-inner h1 { font-size: 4.1rem; }
  .frequency-page .split-inner .chapter-index { margin-bottom: 270px; }
  .frequency-page .split-copy { max-width: 100%; }
  .frequency-page .ripple-scene { top: 26%; }
  .frequency-page .split-copy p { font-size: .88rem; }
  .next-step-inner { min-height: 530px; padding-block: 90px; }
  .next-step-inner h2 { font-size: 3.6rem; }
  .olive-page .olive-copy h1, .haven-page .transformation-copy h1 { max-width: none; font-size: 4.5rem; }
  .haven-page .transformation-copy .text-link { display: flex; width: fit-content; margin: 27px 0 0; }
  .haven-letter .ali-grid { padding-block: 90px; gap: 40px; }
  .haven-letter .ali-copy { max-width: none; }
  .haven-letter .ali-copy h2 { font-size: 4.3rem; }
  .journey-layout { display: block; }
  .journey-layout .editorial-heading { position: static; margin-bottom: 60px; }
  .journey-layout .editorial-heading h2 { font-size: 3.6rem; }
  .journey-timeline { margin-left: 5px; padding-left: 26px; }
  .journey-entry::before { left: -31px; }
  .journey-entry h3 { font-size: 2.5rem; }
  .journey-entry p { font-size: .9rem; }
  .contact-section .editorial-heading h2 { font-size: 3.3rem; }
  .contact-form .button { font-size: .58rem; }
  .faq-inner h1 { font-size: 4.3rem; }
  .footer-main { column-gap: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .film-toggle, .motion-toggle { display: none; }
  .reveal { opacity: 1; transform: none; }
}
