/* altaircrest.com
   Theme: "On silver" from the brand kit (user's choice, 6 Dec): brushed silver, Summit Navy text and logo, orange CREST.
   The earlier navy theme is kept in site.navy-theme.css. The silver overrides are at the end of this file.
   Fonts (brand kit): Montserrat Bold for the ALTAIRCREST name only, Manrope for all other text. Self-hosted.
   Shape rule: buttons are full pills, cards 22px, screenshots 14px. One accent: the sunrise orange. */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0B1530;
  --navy-2: #0F1B3C;
  --navy-3: #16244B;
  --ink: #EEF2FA;
  --ink-2: #C9D1E6;
  --mute: #9AA6C4;
  --line: rgba(205, 218, 255, .11);
  --line-2: rgba(205, 218, 255, .18);
  --sun: linear-gradient(100deg, #FFD27A 0%, #FFA552 40%, #F2643A 100%);
  --orange: #F2643A;
  --orange-soft: #FFA552;
  --r-card: 22px;
  --r-shot: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--navy); color: var(--ink);
  font: 400 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--navy); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 3px; border-radius: 6px; }

/* ---- wordmark (brand kit construction) ---- */
.wm { font-family: "Montserrat", sans-serif; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: baseline; color: #fff; }
.wm svg { vertical-align: baseline; }
.wm-crest { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sun { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; text-decoration: none; font-weight: 700;
  font-size: 16px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sun { background: var(--sun); color: #1A1206; box-shadow: 0 10px 30px -12px rgba(242, 100, 58, .55); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(242, 100, 58, .7); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 210, 122, .5); background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(11, 21, 48, .72); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { height: 72px; display: flex; align-items: center; gap: 32px; }
.nav-logo { font-size: 22px; text-decoration: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #fff; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; min-height: min(calc(100dvh - 72px), 860px); display: flex; }
.sky { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 22% 64%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 37% 32%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 46% 9%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 58% 22%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 66% 6%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 74% 38%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 86% 14%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 93% 46%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 6% 82%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 31% 88%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(120% 70% at 78% 110%, rgba(242, 100, 58, .22), transparent 60%),
    radial-gradient(80% 60% at 10% -10%, rgba(61, 139, 255, .10), transparent 60%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; width: min(var(--wrap), 100% - 48px); }
.hero-copy { padding-bottom: 72px; }
.h1 { font-weight: 800; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.035em; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34ch; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; align-self: stretch; min-height: 560px; }
.glow { position: absolute; left: 6%; right: -10%; bottom: -8%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 165, 82, .28), rgba(242, 100, 58, .08) 55%, transparent 75%); filter: blur(10px); }
.peak { position: absolute; right: -16%; bottom: 0; width: 114%; height: auto; aspect-ratio: 60 / 52.4; filter: drop-shadow(0 -1px 0 rgba(205,218,255,.15)); }
.altair { position: absolute; width: 46px; height: 46px; left: 62%; top: 7%; filter: drop-shadow(0 0 18px rgba(255, 196, 110, .55)); }
.shot { margin: 0; border-radius: var(--r-shot); overflow: hidden; background: #F4F6FA;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 40px 80px -30px rgba(2, 6, 20, .85), 0 0 0 1px rgba(255,255,255,.08); }
.shot-hero { position: absolute; left: -8%; top: 50%; width: 78%; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }

/* hero entrance: the peak rises, the screen settles, then Altair appears */
.js .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .peak { opacity: 0; transform: translateY(60px); animation: peakup 1.4s var(--ease) .1s forwards; }
.js .shot-hero { opacity: 0; animation: shotin 1.2s var(--ease) .35s forwards; }
.js .altair { opacity: 0; transform: scale(.4) rotate(-30deg); animation: starin .9s var(--ease) 1.1s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes peakup { to { opacity: 1; transform: none; } }
@keyframes shotin { from { opacity: 0; transform: perspective(1600px) rotateY(-16deg) rotateX(6deg) translateY(40px); }
  to { opacity: 1; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); } }
@keyframes starin { to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---- numbers ---- */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-2); }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 34px 28px 34px 0; display: grid; gap: 6px; }
.num + .num { padding-left: 28px; border-left: 1px solid var(--line); }
.num b { font-size: clamp(34px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.num span { color: var(--mute); font-size: 15px; line-height: 1.45; max-width: 26ch; }

/* ---- sections ---- */
.sec { padding: 120px 0; position: relative; }
.sec-tight { padding-top: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 18px; }
.h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.03em; }
.h2-center { text-align: center; max-width: 18ch; margin: 0 auto 56px; }
.body { margin-top: 20px; color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.pw { white-space: nowrap; }
.pw b { font-weight: 800; color: var(--orange-soft); }

.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.split-rev .split-copy { order: 2; }
.ticks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); font-size: 16px; max-width: 48ch; }
.ticks li .ic { margin-top: 3px; color: var(--orange-soft); width: 20px; height: 20px; }
.ticks b { color: var(--ink); font-weight: 700; }

.stack-shots { position: relative; aspect-ratio: 16 / 12.5; }
.shot-back { position: absolute; top: 0; right: 0; width: 86%; }
.shot-front { position: absolute; left: 0; bottom: 0; width: 72%; box-shadow: 0 50px 90px -30px rgba(2, 6, 20, .95), 0 0 0 1px rgba(255,255,255,.1); }
.shot-single { transition: transform .6s var(--ease); }
.shot-single:hover { transform: translateY(-4px); }
.link-arrow { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-soft); text-decoration: none; border-bottom: 1px solid rgba(255, 165, 82, .35); padding-bottom: 3px; }
.link-arrow:hover { border-bottom-color: var(--orange-soft); }

/* ---- bento ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 18px;
  grid-template-areas: "iv iv iv iv gd gd" "iv iv iv iv rs rs" "as as as cm cm cm" "cd cd cd cm cm cm"; }
.cell { position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--navy-2); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.cell h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.cell h3 .ic { color: var(--orange-soft); width: 22px; height: 22px; }
.cell p { color: var(--mute); font-size: 15.5px; max-width: 40ch; }
.cell img { border-radius: 12px; margin-top: auto; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.c-iv { grid-area: iv; background: linear-gradient(180deg, var(--navy-3), var(--navy-2) 70%); }
.c-iv img { margin-right: -60px; margin-bottom: -28px; max-width: none; width: calc(100% + 60px); border-top-right-radius: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.c-gd { grid-area: gd; background: var(--sun); border: 0; }
.c-gd img { box-shadow: 0 18px 40px -20px rgba(80, 30, 0, .6); }
.c-gd h3, .c-gd h3 .ic { color: #1A1206; }
.c-gd p { color: #3B2410; }
.c-rs { grid-area: rs; background: radial-gradient(120% 120% at 100% 0%, rgba(61, 139, 255, .16), transparent 60%), var(--navy-2); }
.chips { margin-top: auto; display: flex; gap: 10px; }
.chips span { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.chips .ic { width: 22px; height: 22px; color: var(--ink); }
.c-as { grid-area: as; }
.c-cm { grid-area: cm; }
.c-cm img { margin-bottom: -28px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.c-cd { grid-area: cd; justify-content: flex-end; min-height: 230px;
  background-image: linear-gradient(rgba(205,218,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(205,218,255,.05) 1px, transparent 1px);
  background-size: 24px 24px; background-color: var(--navy-2); }
.big-35 { position: absolute; right: 22px; top: -14px; font-size: 168px; font-weight: 800; letter-spacing: -.06em; line-height: 1;
  background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }

/* ---- drive flow ---- */
.flow { list-style: none; padding: 0; margin: 96px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; counter-reset: none; }
.flow::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: linear-gradient(90deg, rgba(255,165,82,.6), rgba(205,218,255,.14)); }
.flow li { position: relative; display: grid; gap: 10px; align-content: start; }
.flow-ic { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: var(--navy); border: 1px solid rgba(255,165,82,.45); color: var(--orange-soft); position: relative; }
.flow-ic .ic { width: 22px; height: 22px; }
.flow h3 { margin-top: 10px; font-size: 19px; font-weight: 800; }
.flow p { color: var(--mute); font-size: 15.5px; max-width: 30ch; }
.guards { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px; }
.guards span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; background: rgba(255,255,255,.02); }
.guards .ic { color: var(--orange-soft); }

/* ---- campus ---- */
.campus { background: linear-gradient(180deg, var(--navy), var(--navy-2)); border-top: 1px solid var(--line); }
.campus-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.ways { display: grid; gap: 14px; }
.way { display: flex; gap: 20px; align-items: flex-start; padding: 24px 26px; border-radius: var(--r-card); border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: border-color .3s, transform .4s var(--ease); }
.way:hover { border-color: rgba(255,165,82,.35); transform: translateX(4px); }
.way-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255,165,82,.1); color: var(--orange-soft); }
.way-ic .ic { width: 22px; height: 22px; }
.way h3 { font-size: 18px; font-weight: 800; }
.way p { margin-top: 4px; color: var(--mute); font-size: 15.5px; }

/* ---- about ---- */
.about { text-align: center; }
.about-in { max-width: 860px; }
.about-mark { font-size: clamp(40px, 7vw, 92px); margin-bottom: 44px; }
.about-text { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
.about-tag { display: inline-block; margin-top: 28px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.about-meta { margin-top: 22px; color: var(--mute); font-size: 15px; }

/* ---- contact ---- */
.contact { padding-top: 40px; }
.contact-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: 28px;
  border: 1px solid rgba(255,165,82,.25); background: radial-gradient(90% 140% at 100% 100%, rgba(242,100,58,.22), transparent 60%), var(--navy-2); }
.contact-act { display: grid; justify-items: start; gap: 18px; }
.mail { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.mail:hover { color: #fff; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot-logo { font-size: 18px; text-decoration: none; }
.foot-links { display: flex; gap: 22px; margin-left: auto; }
.foot-links a { color: var(--mute); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { width: 100%; color: var(--mute); font-size: 14px; }

/* ---- scroll reveal (IntersectionObserver in site.js) ---- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.bento .cell:nth-child(2) { transition-delay: .06s; } .bento .cell:nth-child(3) { transition-delay: .12s; }
.bento .cell:nth-child(4) { transition-delay: .06s; } .bento .cell:nth-child(5) { transition-delay: .12s; } .bento .cell:nth-child(6) { transition-delay: .18s; }
.num:nth-child(2) { transition-delay: .08s; } .num:nth-child(3) { transition-delay: .16s; } .num:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .peak, .js .shot-hero, .js .altair { animation: none; opacity: 1; transform: none; }
  .js .shot-hero { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .way, .shot-single { transition: none; }
}

/* ---- tablet ---- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 24px; }
  .hero-art { min-height: 460px; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(3) { padding-left: 0; border-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .campus-grid { grid-template-columns: 1fr; gap: 48px; }
  .split-rev .split-copy { order: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .flow::before { display: none; }
  .contact-card { grid-template-columns: 1fr; padding: 40px; }
}

/* ---- mobile ---- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap, .hero-grid { width: calc(100% - 32px); }
  .nav-in { height: 64px; }
  .nav-logo { font-size: 18px; }
  .hero { padding-top: 32px; min-height: 0; }
  .hero-art { min-height: 330px; }
  .shot-hero { top: 8%; width: 92%; }
  .altair { width: 32px; height: 32px; }
  .num-grid { grid-template-columns: 1fr; }
  .num, .num + .num { padding: 22px 0; border-left: 0; }
  .num + .num { border-top: 1px solid var(--line); }
  .sec { padding: 80px 0; }
  .sec-tight { padding-top: 16px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "iv" "gd" "as" "cm" "rs" "cd"; }
  .c-iv img { margin-right: -28px; width: calc(100% + 28px); }
  .big-35 { font-size: 120px; }
  .flow { grid-template-columns: 1fr; }
  .contact-card { padding: 30px 22px; }
  .btn-lg { width: 100%; justify-content: center; }
  .foot-links { margin-left: 0; flex-wrap: wrap; }
}

/* ---- products (company page) ---- */
.product + .product { margin-top: 128px; }
.product .h2 { font-size: clamp(44px, 5.4vw, 72px); margin-bottom: 18px; }
.product .eyebrow { margin-bottom: 10px; }
@media (max-width: 767px) { .product + .product { margin-top: 80px; } }
/* soften the hero's bottom edge so the mountain sinks into the page */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 21, 48, 0), var(--navy)); }

/* ---- product detail pages ---- */
.phero { position: relative; overflow: hidden; padding: 56px 0 0; }
.phero::before { content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(61, 139, 255, .16), transparent 70%); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { color: var(--ink); }
.ph-name { margin-top: 40px; font-weight: 800; font-size: clamp(64px, 10vw, 144px); line-height: .95; letter-spacing: -.045em; }
.ph-lead { margin-top: 24px; font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-2); max-width: 46ch; }
.ph-shot { margin-top: 72px; }
.ph-shot .shot { box-shadow: 0 60px 120px -40px rgba(2, 6, 20, .95), 0 0 0 1px rgba(255, 255, 255, .1); }
.ph-shot img { display: block; width: 100%; height: auto; }
.eyebrow-center { display: flex; justify-content: center; }
.flow-top { margin-top: 0; }
.fair { max-width: 880px; text-align: center; }
.fair .body { margin-inline: auto; }
.fair .guards { justify-content: center; }
.sec-next { padding-top: 24px; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 48px; border: 1px solid var(--line); border-radius: var(--r-card);
  color: var(--ink); text-decoration: none; background: linear-gradient(120deg, var(--navy-2), var(--navy-3)); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.next:hover { border-color: rgba(255, 165, 82, .45); transform: translateY(-2px); }
.next small { display: block; color: var(--mute); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.next .pw { font-weight: 800; font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.035em; line-height: 1; }
.next-go { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; background: var(--sun); color: #1A1206; flex: none; }
.next-go .ic { width: 26px; height: 26px; }
@media (max-width: 767px) {
  .ph-shot { margin-top: 48px; }
  .next { padding: 28px 24px; }
  .next-go { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .next { transition: none; } }

/* ---- tool catalogue on product pages ---- */
.jump { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; background: rgba(255,255,255,.03); transition: border-color .3s var(--ease), color .3s var(--ease); }
.jump a:hover { border-color: rgba(255,165,82,.5); color: var(--ink); }
.cat { padding: 104px 0 0; scroll-margin-top: 72px; }
.cat-head { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; margin-bottom: 44px; }
.cat-num { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.03em; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: 4px; }
.cat-head .body { margin-top: 12px; }
.tools { display: grid; gap: 18px; }
.tools-2 { grid-template-columns: repeat(2, 1fr); }
.tools-3 { grid-template-columns: repeat(3, 1fr); }
.tool { padding: 30px 30px 32px; border: 1px solid var(--line); border-radius: var(--r-card); background: linear-gradient(180deg, var(--navy-2), rgba(15, 27, 60, .4)); display: flex; flex-direction: column; }
.tool-wide { grid-column: span 2; }
.tools-3 .tool-wide { grid-column: span 3; }
.tool-h { display: flex; align-items: center; gap: 14px; }
.tool-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 165, 82, .1); border: 1px solid rgba(255, 165, 82, .25); color: var(--orange-soft); }
.tool-ic .ic { width: 22px; height: 22px; }
.tool h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.tool-lead { margin-top: 14px; color: var(--ink); font-size: 16.5px; max-width: 60ch; }
.tool-pts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.tool-pts li { position: relative; padding-left: 20px; color: var(--mute); font-size: 15.5px; line-height: 1.55; max-width: 70ch; }
.tool-pts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 999px; background: var(--orange-soft); opacity: .8; }
.tool-shot { margin-top: 24px; width: 100%; height: auto; border-radius: var(--r-shot); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.cat-shots { margin-top: 56px; max-width: 980px; margin-inline: auto; }
.sec-next { padding-top: 104px; }
@media (max-width: 1024px) {
  .tools-3 { grid-template-columns: repeat(2, 1fr); }
  .tools-3 .tool-wide { grid-column: span 2; }
}
@media (max-width: 767px) {
  .cat { padding-top: 72px; }
  .cat-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 28px; }
  .tools-2, .tools-3 { grid-template-columns: 1fr; }
  .tool-wide, .tools-3 .tool-wide { grid-column: auto; }
  .tool { padding: 24px 22px 26px; }
  .sec-next { padding-top: 72px; }
}

/* ---- animated logo ----
   [data-logo] parts wait (paused at their first frame) until site.js adds .in.
   The A rises and its snow cap drops in, L T A and R flip up, the I grows and Altair shoots up,
   CREST is wiped in, then a light sweeps across it. .logo3d adds depth, a float and a pointer tilt. */
.wm-anim > span { display: inline-block; }
.wm-anim .a-body, .wm-anim .a-cap, .wm-anim .i-stem, .wm-anim .wm-star { transform-box: fill-box; }
.wm-anim .a-body { transform-origin: 50% 100%; }
.wm-anim .a-cap { transform-origin: 50% 0; }
.wm-anim .i-stem { transform-origin: 50% 100%; }
.wm-anim .wm-star { transform-origin: 50% 50%; }
.wm-anim .wm-l { transform-origin: 50% 100%; }
.wm-crest-anim { background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .92) 50%, transparent 62%), var(--sun);
  background-size: 300% 100%, 100% 100%; background-position: 90% 0, 0 0; background-repeat: no-repeat; }

/* before the logo is on screen its parts are hidden; the animations are only attached once .in is added */
.js [data-logo]:not(.in) .a-body, .js [data-logo]:not(.in) .a-cap, .js [data-logo]:not(.in) .wm-l,
.js [data-logo]:not(.in) .wm-star { opacity: 0; }
.js [data-logo]:not(.in) .i-stem { transform: scaleY(0); }
.js [data-logo]:not(.in) .wm-crest-anim { clip-path: inset(-30% 100% -60% -5%); }
.js [data-logo].in .a-body { animation: logo-rise 1s var(--ease) .05s both; }
.js [data-logo].in .a-cap { animation: logo-cap .8s cubic-bezier(.34, 1.56, .64, 1) .55s both; }
.js [data-logo].in .wm-l { animation: logo-flip .9s var(--ease) calc(.15s + var(--i) * .09s) both; }
.js [data-logo].in .i-stem { animation: logo-grow .7s var(--ease) .5s both; }
.js [data-logo].in .wm-star { animation: logo-star 1.1s cubic-bezier(.34, 1.56, .64, 1) .9s both; }
.js [data-logo].in .wm-crest-anim { animation: logo-wipe 1s var(--ease) .7s both, logo-shine 1.6s ease-in-out 1.7s both; }
/* the big logo keeps going: Altair turns and pulses, the light sweeps again */

.js .logo3d.in .wm-crest-anim { animation: logo-wipe 1s var(--ease) .7s both, logo-shine 6s ease-in-out 1.7s infinite; }

@keyframes logo-rise { from { opacity: 0; transform: translateY(45%) scaleY(.6); } to { opacity: 1; transform: none; } }
@keyframes logo-cap { from { opacity: 0; transform: translateY(-140%) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes logo-flip { from { opacity: 0; transform: perspective(420px) rotateX(-95deg) translateY(30%); } to { opacity: 1; transform: none; } }
@keyframes logo-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes logo-star { 0% { opacity: 0; transform: translateY(320%) scale(.15) rotate(-120deg); }
  55% { opacity: 1; transform: translateY(-25%) scale(1.35) rotate(15deg); } 100% { opacity: 1; transform: none; } }
@keyframes logo-pulse { 0% { transform: none; } 50% { transform: scale(1.22) rotate(45deg); } 100% { transform: rotate(90deg); } }
@keyframes logo-wipe { from { clip-path: inset(-30% 100% -60% -5%); } to { clip-path: inset(-30% -5% -60% -5%); } }
@keyframes logo-shine { 0% { background-position: 90% 0, 0 0; } 30%, 100% { background-position: 10% 0, 0 0; } }

/* the big 3D logo in About */
.logo3d { position: relative; display: inline-block; perspective: 900px; padding: 36px 36px 64px; }
.logo3d::before { content: ""; position: absolute; inset: 0 -10% 10%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 139, 255, .14), transparent 75%); }
.logo3d-tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); transform-style: preserve-3d; }
.logo3d-float { transform-style: preserve-3d; }
.logo3d.in .logo3d-float { animation: logo-float 8s ease-in-out 2.2s infinite; }
.logo3d .wm { transform-style: preserve-3d; position: relative; }
/* layers sit at different depths, so the tilt shows real parallax */
.logo3d .wm-a { translate: 0 0 26px; }
.logo3d .wm-i { translate: 0 0 34px; }
.logo3d .wm-crest { translate: 0 0 14px; }
/* extruded sides; --sx leans the sides away from the pointer */
.logo3d .wm-a svg, .logo3d .wm-l, .logo3d .wm-i svg {
  filter: drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #D5DCEE) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #A9B4D2)
          drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #8190B8) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #5C6B98)
          drop-shadow(0 16px 18px rgba(2, 6, 20, .6)); }
.logo3d .wm-crest {
  filter: drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #E0582F) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #BD4621)
          drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #983617) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #752911)
          drop-shadow(0 16px 18px rgba(2, 6, 20, .6)); }
.logo3d-floor { position: absolute; left: 14%; right: 14%; bottom: 14px; height: 30px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 165, 82, .38), rgba(242, 100, 58, .12) 60%, transparent); filter: blur(4px);
  opacity: 0; transform: scaleX(.3); }
.logo3d.in .logo3d-floor { animation: floor-in 1.4s var(--ease) .4s forwards, floor-breathe 8s ease-in-out 2.2s infinite; }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floor-in { to { opacity: 1; transform: none; } }
@keyframes floor-breathe { 0%, 100% { opacity: 1; transform: scaleX(1); } 50% { opacity: .6; transform: scaleX(.86); } }
.about-mark { font-size: clamp(44px, 8.4vw, 124px); margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  [data-logo] *, .logo3d-float, .logo3d-floor { animation: none !important; opacity: 1 !important; clip-path: none !important; }
  [data-logo] .i-stem { transform: none !important; }
  .logo3d-floor { opacity: 1; transform: none; }
  .logo3d-tilt { transition: none; }
}

/* ---- Altair on the I twinkles (all animated logos) ---- */
.wm-anim .wm-halo, .wm-anim .wm-glint { transform-box: fill-box; transform-origin: 50% 50%; }
.js [data-logo].in .wm-star { animation: logo-star 1.1s cubic-bezier(.34, 1.56, .64, 1) .9s both, star-twinkle 4.2s ease-in-out 2.1s infinite; }
.js [data-logo].in .wm-halo { animation: halo-twinkle 4.2s ease-in-out 2.1s infinite; }
.js [data-logo].in .wm-glint { animation: glint-flash 4.2s ease-in-out 2.1s infinite; }
@keyframes star-twinkle {
  0%, 100% { transform: none; opacity: 1; }
  10% { transform: scale(.7); opacity: .55; }
  16% { transform: scale(1.3); opacity: 1; }
  24% { transform: scale(.95); }
  30%, 52% { transform: none; }
  58% { transform: scale(.8); opacity: .7; }
  64% { transform: scale(1.18); opacity: 1; }
  72% { transform: none; }
  84% { transform: scale(.9); opacity: .8; }
  90% { transform: scale(1.08); opacity: 1; }
}
@keyframes halo-twinkle { 0%, 100% { opacity: .2; transform: scale(.8); } 16% { opacity: .75; transform: scale(1.15); } 30%, 52% { opacity: .25; transform: scale(.85); }
  64% { opacity: .6; transform: scale(1.05); } 76% { opacity: .2; transform: scale(.8); } 90% { opacity: .4; transform: scale(.95); } }
@keyframes glint-flash { 0%, 12%, 26%, 60%, 70%, 100% { opacity: 0; transform: scale(.4); } 16% { opacity: 1; transform: scale(1.15); } 64% { opacity: .8; transform: scale(.95); } }

/* ---- snow falling onto the A (big logo) ---- */
.wm-a { position: relative; }
.snow { position: absolute; left: 0; width: 100%; top: -140%; height: 240%; pointer-events: none; }
.snow i { position: absolute; top: 0; left: var(--x); width: 0; height: 100%; transform: translate(0, 0);
  animation: snow-fall var(--t) linear var(--d) infinite; }
.snow i::before { content: ""; position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s);
  border-radius: 50%; background: #fff; box-shadow: 0 0 .04em rgba(255, 255, 255, .9); }
@keyframes snow-fall {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .95; }
  50% { transform: translate(var(--dx), calc(var(--land) / 2)); }
  88% { opacity: .95; }
  100% { transform: translate(0, var(--land)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .snow { display: none; } }
.js [data-logo]:not(.in) .snow { opacity: 0; }
.js [data-logo].in .snow { animation: snow-in 1.2s ease-out 1.1s both; }
@keyframes snow-in { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   SILVER THEME (brand kit "On silver (foil, metal)")
   Silver #F7F8FA -> #9097A1, Summit Navy #0B1530 for text and the word, orange for CREST, the cap and the star.
   ===================================================================== */
:root {
  --bg: #E6E9EE;
  --ink: #0B1530;
  --ink-2: #27324F;
  --mute: #545F77;
  --line: rgba(11, 21, 48, .12);
  --line-2: rgba(11, 21, 48, .22);
  --sun: linear-gradient(100deg, #F7904A 0%, #F2643A 55%, #DE4E26 100%);
  --orange-soft: #BF4520;              /* orange for small text and icons: readable on silver */
  --foil: linear-gradient(118deg, #F9FAFC 0%, #E3E6EB 28%, #C7CCD4 50%, #EEF0F3 68%, #B3B9C2 88%, #9AA1AB 100%);
  --panel: linear-gradient(160deg, #FBFCFD 0%, #EEF0F4 55%, #E2E5EA 100%);
  --panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(11, 21, 48, .06), 0 18px 40px -24px rgba(11, 21, 48, .35);
  color-scheme: light;
}
body {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .22) 0 1px, rgba(11, 21, 48, .012) 1px 3px),
    linear-gradient(180deg, #F1F3F6 0%, #E3E6EB 45%, #DADEE4 100%);
}
.skip { background: var(--ink); color: #fff; }
.wm { color: var(--ink); }

/* buttons: navy carries the brand, orange stays the accent */
.btn-sun { background: linear-gradient(180deg, #1A2850, #0B1530); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 26px -14px rgba(11, 21, 48, .75); }
.btn-sun .ic { color: #FFB27A; }
.btn-sun:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 34px -16px rgba(11, 21, 48, .85); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, .55); }
.btn-ghost:hover { border-color: rgba(11, 21, 48, .4); background: rgba(255, 255, 255, .85); }

/* nav */
.nav { background: rgba(236, 239, 243, .78); }
.nav-links a:hover { color: var(--ink); }

/* hero: the foil sheet from the brand kit */
.hero { background: var(--foil); }
.sky { background:
    linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, .55) 47%, transparent 56%),
    radial-gradient(90% 70% at 80% 110%, rgba(242, 100, 58, .14), transparent 60%); }
.hero::after { background: linear-gradient(to bottom, rgba(230, 233, 238, 0), #EDEFF2); }
.glow { background: radial-gradient(closest-side, rgba(242, 100, 58, .18), rgba(242, 100, 58, .05) 55%, transparent 75%); }
.peak { filter: drop-shadow(0 24px 30px rgba(11, 21, 48, .28)); }
.altair { filter: drop-shadow(0 0 14px rgba(242, 100, 58, .45)); }
.lead, .body, .ph-lead { color: var(--ink-2); }

/* screenshots sit on silver with a soft, cool shadow */
.shot { box-shadow: 0 0 0 1px rgba(11, 21, 48, .08), 0 30px 60px -28px rgba(11, 21, 48, .45); }
.shot-front { box-shadow: 0 0 0 1px rgba(11, 21, 48, .1), 0 40px 70px -30px rgba(11, 21, 48, .55); }
.ph-shot .shot { box-shadow: 0 0 0 1px rgba(11, 21, 48, .08), 0 50px 90px -40px rgba(11, 21, 48, .55); }
.tool-shot, .cell img { box-shadow: 0 0 0 1px rgba(11, 21, 48, .1); }

/* accents */
.pw b { color: var(--orange); }
.link-arrow { border-bottom-color: rgba(191, 69, 32, .35); }

/* metal panels */
.tool, .next, .way, .cell, .c-iv, .c-rs, .c-cd { background: var(--panel); border-color: rgba(11, 21, 48, .1); box-shadow: var(--panel-shadow); }
.tool-ic { background: linear-gradient(180deg, #FFF4EC, #FCE3D3); border-color: rgba(242, 100, 58, .3); }
.jump a, .guards span, .chips span { background: rgba(255, 255, 255, .6); border-color: var(--line-2); color: var(--ink-2); }
.jump a:hover { border-color: rgba(11, 21, 48, .45); color: var(--ink); }
.flow-ic { background: var(--panel); border-color: rgba(242, 100, 58, .45); box-shadow: var(--panel-shadow); }
.flow::before { background: linear-gradient(90deg, rgba(242, 100, 58, .6), rgba(11, 21, 48, .15)); }
.next { color: var(--ink); }
.next:hover { border-color: rgba(242, 100, 58, .45); }
.next-go { background: linear-gradient(180deg, #1A2850, #0B1530); color: #fff; }
.phero { background: var(--foil); }
.phero::before { background: linear-gradient(118deg, transparent 35%, rgba(255, 255, 255, .55) 46%, transparent 57%); width: 100%; height: 100%; top: 0; left: 0; transform: none; border-radius: 0; }
.ph-shot { position: relative; }
.contact-card { background: radial-gradient(90% 140% at 100% 100%, rgba(242, 100, 58, .16), transparent 60%), var(--panel);
  border-color: rgba(11, 21, 48, .1); box-shadow: var(--panel-shadow); }
.mail:hover { color: var(--ink); }
.foot { border-top-color: var(--line); }

/* the 3D logo on silver: navy letters with deep-navy sides, orange CREST with copper sides */
.logo3d::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .75), transparent 75%); }
.logo3d .wm-a svg, .logo3d .wm-l, .logo3d .wm-i svg {
  filter: drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #2A3866) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #1F2B52)
          drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #17213F) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #0F172E)
          drop-shadow(0 18px 18px rgba(11, 21, 48, .3)); }
.logo3d .wm-crest {
  filter: drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #D9522B) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #B64220)
          drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #923418) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #6F2711)
          drop-shadow(0 18px 18px rgba(11, 21, 48, .3)); }
.logo3d-floor { background: radial-gradient(closest-side, rgba(11, 21, 48, .28), rgba(11, 21, 48, .08) 60%, transparent); }
/* snow on silver: white flakes with a soft shadow so they show */
.snow i::before { background: #fff; box-shadow: 0 0 0 .004em rgba(11, 21, 48, .18), 0 .012em .03em rgba(11, 21, 48, .35); }
/* the I in animated logos: stem and Altair are separate layers; only the stem gets the 3D sides */
.wm-i { position: relative; }
.logo3d .wm-i svg { filter: none; }
.logo3d .wm-i svg.i-body {
  filter: drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #2A3866) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #1F2B52)
          drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #17213F) drop-shadow(calc(var(--sx, 0) * 1px) 1.5px 0 #0F172E)
          drop-shadow(0 18px 18px rgba(11, 21, 48, .3)); }
.logo3d .wm-i svg.i-star { filter: drop-shadow(0 3px 0 #B64220) drop-shadow(0 10px 12px rgba(11, 21, 48, .25)); }
/* product page tops: the light streak stays behind the text, and the foil fades into the page */
.phero > .wrap { position: relative; z-index: 1; }
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(230, 233, 238, 0), #EEF0F3); }
.ph-shot { z-index: 2; }

/* =====================================================================
   HOME HERO: 3D scroll reveal ({{reveal}} in build.py)
   Base = a still hero (finished logo + headline). With html.rv (scroll-driven animations supported and motion allowed,
   set in the <head> script) the stage pins for two screens of scrolling: the giant Everest A glides down into the A of
   the wordmark, L T A R fly in from depth, the I grows and Altair drops from the sky onto it, CREST sweeps in, then the
   headline rises. site.js measures where the A and the star must land (--tx/--ty/--ts, --stx/--sty/--sts).
   ===================================================================== */
.reveal { position: relative; margin-top: -73px; }   /* slides up under the see-through nav (72px + 1px border) */
@media (max-width: 767px) { .reveal { margin-top: -65px; } }
.stage { position: relative; overflow: hidden; background: var(--foil); min-height: 88svh; padding: 140px 24px 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; text-align: center; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(237, 239, 242, 0), #EDEFF2); }
.r-sheen { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 36%, rgba(255, 255, 255, .6) 47%, transparent 58%) no-repeat;
  background-size: 220% 100%; background-position: 60% 0; }
.r-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 100, 58, .26), rgba(242, 100, 58, .07) 55%, transparent 75%) no-repeat;
  background-size: 120vh 80vh; background-position: 50% 135%; }
.r-peak, .r-star, .r-intro { display: none; }
.r-word { position: relative; z-index: 5; font-size: clamp(38px, 10.4vw, 168px); }
.r-copy { position: relative; z-index: 6; display: flex; flex-direction: column; align-items: center; }
.r-copy .lead { margin-inline: auto; }
.r-copy .cta-row { justify-content: center; margin-top: 30px; }
/* the wordmark in the hero: navy letters with deep-navy sides, orange CREST with copper sides (as in About) */
.r-word .wm-a svg, .r-word .wm-l, .r-word svg.i-body {
  filter: drop-shadow(0 .012em 0 #2A3866) drop-shadow(0 .012em 0 #1F2B52) drop-shadow(0 .012em 0 #17213F)
          drop-shadow(0 .012em 0 #0F172E) drop-shadow(0 .14em .12em rgba(11, 21, 48, .28)); }
.r-word .wm-crest {
  filter: drop-shadow(0 .012em 0 #D9522B) drop-shadow(0 .012em 0 #B64220) drop-shadow(0 .012em 0 #923418)
          drop-shadow(0 .012em 0 #6F2711) drop-shadow(0 .14em .12em rgba(11, 21, 48, .28)); }
.r-word svg.i-star { filter: drop-shadow(0 .02em 0 #B64220) drop-shadow(0 .08em .1em rgba(11, 21, 48, .25)); }
/* snow over the whole stage */
.r-snow { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.r-snow i { position: absolute; top: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 0 .5px rgba(11, 21, 48, .12), 0 1px 3px rgba(11, 21, 48, .3); animation: r-fall var(--t) linear var(--d) infinite; }
@keyframes r-fall { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: var(--o); } 50% { transform: translate(var(--dx), 52vh); }
  92% { opacity: var(--o); } 100% { transform: translate(0, 104vh); opacity: 0; } }
/* only the star on the I twinkles; the big star in the sky stays still */
.reveal .wm-star { animation: star-twinkle 4.2s ease-in-out 1s infinite; }
.reveal .wm-halo { animation: halo-twinkle 4.2s ease-in-out 1s infinite; }
.reveal .wm-glint { animation: glint-flash 4.2s ease-in-out 1s infinite; }
.reveal .wm-crest-anim { animation: logo-shine 6s ease-in-out 1s infinite; }
@media (prefers-reduced-motion: reduce) { .r-snow { display: none; } .reveal .wm-star, .reveal .wm-halo, .reveal .wm-glint, .reveal .wm-crest-anim { animation: none; } }

/* ---- the pinned, scroll-driven version ---- */
/* lvh: the stage always fills the screen on phones, even after the address bar slides away */
.rv .reveal { height: 300lvh; view-timeline: --rv block; view-timeline-inset: 0; }   /* inset 0: ignore html scroll-padding */
.rv .stage { position: sticky; top: 0; height: 100lvh; min-height: 0; padding: 0; display: block; perspective: 1100px;
  --tx: 0px; --ty: 0px; --ts: 1; --stx: 0px; --sty: 0px; --sts: 1; }
.rv .stage::after { height: 90px; }
.rv .r-intro { display: block; position: absolute; z-index: 5; left: max(24px, calc(50% - 620px)); top: calc(72px + 6vh); text-align: left; }
.r-tag { font-weight: 800; font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.r-cue { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange-soft); }
.r-cue .ic { animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
/* the real Everest (tools/everest.py). Summit in the photo: 46.28% across, 26.07% down.
   --pw/--ph: photo size, always at least as wide as the screen and as tall as the stage (so no edge ever shows).
   --pl: photo left edge: summit centred where possible, but never leaving a gap at either side.
   The summit sits 37% down the stage, below the "Reach higher." line. The logo A starts on the summit. */
.rv .stage { --pw: max(100vw, 184lvh);   /* vw not %: --ph is also used in top, where % means height */ --ph: calc(var(--pw) / 1.8391);
  --pl: clamp(calc(100% - var(--pw)), calc(50% - var(--pw) * .4628), 0px); }
.rv .r-photo { position: absolute; z-index: 1; left: var(--pl); top: calc(37% - var(--ph) * .2607); bottom: auto; right: auto; width: var(--pw); }
.rv .r-photo img { width: 100%; height: auto; transform-origin: 46.28% 26.07%; }
.rv .r-peak { display: block; position: absolute; z-index: 2; width: calc(var(--pw) * .12);
  left: calc(var(--pl) + var(--pw) * .4628 - var(--pw) * .12 * .4433); top: 37%; transform-origin: 0 0; }
.r-peak svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 100%;
  filter: drop-shadow(0 1.2vh 2vh rgba(11, 21, 48, .35)); }
.r-peak .pk-solid { transition: none; }
.rv .r-star { display: block; position: absolute; z-index: 4; left: calc(50% + min(30vw, 46vh)); top: calc(72px + 1vh);
  width: clamp(54px, 7vw, 104px); transform-origin: 0 0; }
.r-star svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgba(242, 100, 58, .5)); }
.rv .r-word { position: absolute; left: 0; right: 0; top: 34%; display: flex; justify-content: center; }
/* each flying letter carries its own perspective(): perspective or preserve-3d on the word, together with the letters'
   filters, makes Chrome paint a pale box behind the word */
.rv .r-copy { position: absolute; left: 0; right: 0; bottom: calc(100lvh - 100svh + 8svh); padding: 0 24px; }
.rv .r-copy .h1 { font-size: clamp(34px, 4.6vw, 64px); }
.rv .r-copy .lead { margin-top: 14px; }
.rv .r-copy .cta-row { margin-top: 24px; }

/* every scroll animation runs on the same timeline: the two screens while the stage is pinned */
.rv .stage :is(.r-intro, .r-photo img, .r-rays, .r-peak, .pk-solid, .r-star, .r-word, .r-copy, .r-glow, .r-sheen, .r-snow, .wm-a, .wm-l, .i-stem, .i-star) {
  animation-timeline: --rv; animation-range: contain 0% contain 100%; animation-fill-mode: both; animation-duration: auto; }
.rv .r-intro { animation-name: rv-intro; animation-timing-function: linear; }
.rv .r-peak { animation-name: rv-peak; animation-timing-function: linear; }
.rv .r-photo img { animation-name: rv-photo; animation-timing-function: linear; }
.rv .r-rays { animation-name: rv-rays; animation-timing-function: linear; }
.rv .pk-solid { animation-name: rv-solid; animation-timing-function: linear; }
.rv .r-star { animation-name: rv-star; animation-timing-function: linear; }
.rv .r-word { animation-name: rv-word; animation-timing-function: linear; }
.rv .r-copy { animation-name: rv-copy; animation-timing-function: linear; }
.rv .r-glow { animation-name: rv-glow; animation-timing-function: linear; }
.rv .r-sheen { animation-name: rv-sheen; animation-timing-function: linear; }
.rv .r-word .wm-a { animation-name: rv-a; animation-timing-function: linear; }
.rv .r-word .i-stem { animation-name: rv-stem; animation-timing-function: linear; }
.rv .r-word .i-star { animation-name: rv-istar; animation-timing-function: linear; }
/* the letters fly in from deep behind the screen, one after another */
.rv .r-word .wm-l { animation-name: rv-fly; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
.rv .r-word .wm-l:nth-of-type(2) { animation-range: contain 18% contain 42%; }
.rv .r-word .wm-l:nth-of-type(3) { animation-range: contain 23% contain 47%; }
.rv .r-word .wm-l:nth-of-type(4) { animation-range: contain 28% contain 52%; }
.rv .r-word .wm-l:nth-of-type(6) { animation-range: contain 40% contain 62%; }
/* CREST swings in from the right on scroll while its light keeps sweeping in time.
   (A clip-path wipe here made Chrome paint a pale box behind the whole word, so it moves instead.) */
.rv .r-word .wm-crest-anim { animation: rv-crest cubic-bezier(.2, .7, .2, 1) both, logo-shine 6s ease-in-out 1s infinite;
  animation-timeline: --rv, auto; animation-range: contain 54% contain 70%, normal; }

/* measuring: site.js turns the scroll animations off for a moment to read where things land */
.rv .stage.measuring, .rv .stage.measuring * { animation: none !important; }

@keyframes rv-intro { 0%, 2% { opacity: 1; transform: none; } 14%, 100% { opacity: 0; transform: translateY(-5vh); } }
@keyframes rv-peak {
  0%, 7% { transform: none; opacity: 0; }
  14% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  46% { transform: translate(var(--tx), var(--ty)) scale(var(--ts)); opacity: 1; }
  50%, 100% { transform: translate(var(--tx), var(--ty)) scale(var(--ts)); opacity: 0; } }
/* the camera closes in on the summit while the real mountain fades and the logo A takes its place */
@keyframes rv-photo { 0%, 3% { transform: none; opacity: 1; animation-timing-function: ease-in; }
  12% { opacity: 1; } 28%, 100% { transform: scale(1.3); opacity: 0; } }
@keyframes rv-rays { 0%, 4% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes rv-solid { 0%, 28% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes rv-a { 0%, 45% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes rv-star {
  0%, 10% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(.6, 0, .3, 1); }
  55% { transform: translate(var(--stx), var(--sty)) scale(var(--sts)); opacity: 1; }
  58%, 100% { transform: translate(var(--stx), var(--sty)) scale(var(--sts)); opacity: 0; } }
@keyframes rv-istar { 0%, 54% { opacity: 0; } 57%, 100% { opacity: 1; } }
@keyframes rv-stem { 0%, 34% { transform: scaleY(.001); opacity: 0; } 36% { opacity: 1; } 52%, 100% { transform: none; opacity: 1; } }
@keyframes rv-fly { 0% { opacity: 0; transform: perspective(900px) translate3d(0, -10%, -1400px) rotateY(-80deg) rotateX(20deg); }
  35% { opacity: 1; } 100% { opacity: 1; transform: perspective(900px); } }
@keyframes rv-crest { 0% { opacity: 0; transform: perspective(900px) translate3d(40%, 0, -500px) rotateY(-55deg); }
  30% { opacity: 1; } 100% { opacity: 1; transform: perspective(900px); } }
@keyframes rv-word {
  0%, 10% { transform: translateY(4vh) rotateX(34deg) scale(.9); animation-timing-function: ease-out; }
  46%, 72% { transform: none; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  90%, 100% { transform: translateY(-12vh) scale(.82); } }
@keyframes rv-copy { 0%, 74% { opacity: 0; transform: translateY(10vh); visibility: hidden; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  75% { visibility: visible; } 92%, 100% { opacity: 1; transform: none; visibility: visible; } }
/* the glow moves by background only: as a separate moving layer it showed a pale box under the word */
@keyframes rv-glow { 0% { background-size: 120vh 80vh; background-position: 50% 135%; }
  50% { background-size: 150vh 100vh; background-position: 50% 95%; } 100% { background-size: 170vh 110vh; background-position: 50% 85%; } }
@keyframes rv-sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }

@media (max-width: 720px) {
  /* phones: a bigger mountain that runs off both edges, a bigger word that does not shrink at the end */
  .rv .r-star { left: auto; right: 6vw; top: calc(72px + 9vh); }
  .rv .r-intro { top: calc(72px + 4vh); }
  .rv .r-word { top: 30%; font-size: 11.6vw; }
  .rv .r-word { animation-name: rv-word-m; }
  .rv .r-copy { bottom: calc(100lvh - 100svh + 6svh); }
}
@keyframes rv-word-m {
  0%, 10% { transform: translateY(4vh) rotateX(34deg) scale(.9); animation-timing-function: ease-out; }
  46%, 72% { transform: none; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  90%, 100% { transform: translateY(-4vh); } }

/* the photo and the dawn sun rays (both layers belong to the hero) */
.r-photo { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
.r-photo img { display: block; width: 100%; height: auto; }
.rv .r-photo { opacity: 1; -webkit-mask-image: none; mask-image: none; }
/* low sun just off the right edge: a warm bloom and soft rays fanning across the peaks */
.r-rays { display: none; }
.rv .r-rays { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(60% 55% at 104% 30%, rgba(255, 176, 102, .7), rgba(255, 140, 70, .24) 45%, transparent 70%),
    repeating-conic-gradient(from 228deg at 104% 30%, rgba(255, 170, 100, 0) 0deg, rgba(255, 170, 100, .22) 2.2deg,
      rgba(255, 170, 100, 0) 4.6deg, rgba(255, 170, 100, 0) 8deg);
  -webkit-mask-image: radial-gradient(95% 85% at 100% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(95% 85% at 100% 30%, #000 30%, transparent 85%); }
.foot-credit { width: 100%; margin-top: -24px; color: var(--mute); font-size: 12px; }
.foot-credit a { color: inherit; }

/* nav runs edge to edge (user, 6 Dec): logo in the left corner, links and button in the right corner */
.nav .wrap.nav-in { width: 100%; max-width: none; padding-inline: clamp(16px, 2.6vw, 44px); }
/* phones: the big About logo must fit inside the screen */
@media (max-width: 520px) {
  .about-mark { font-size: 10.4vw; }
  .logo3d { padding: 24px 10px 52px; }
}
