:root {
  --void: #050914;
  --void-2: #08111f;
  --panel: rgba(11, 24, 39, .72);
  --panel-solid: #0b1828;
  --orange: #ff9a33;
  --orange-soft: #ffbd72;
  --cyan: #74d4dc;
  --text: #f4f7fb;
  --muted: #8b9aac;
  --line: rgba(150, 178, 201, .18);
  --line-hot: rgba(255, 154, 51, .34);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--void); color: var(--text); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
a { color: inherit; text-decoration: none; transition: color .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease); }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }

.nav { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 3.2rem; background: linear-gradient(to bottom, rgba(5,9,20,.96), transparent); transition: .3s var(--ease); }
.nav.scrolled { background: rgba(5,9,20,.84); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,154,51,.14); }
.nav-logo { display: flex; align-items: center; gap: .75rem; font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.nav-logo-img { width: 27px; height: 27px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,154,51,.4)); }
.nav-links { display: flex; align-items: center; gap: 2.1rem; list-style: none; }
.nav-links a { position: relative; font-family: var(--mono); font-size: .66rem; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -.55rem; width: 100%; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { border: 1px solid var(--orange); color: var(--orange) !important; padding: .62rem 1.15rem; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--orange); color: var(--void) !important; box-shadow: 0 0 26px rgba(255,154,51,.25); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: .5rem; }

.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; padding: 0 9vw; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 10% 5% 8%; border: 1px solid rgba(255,154,51,.16); clip-path: polygon(0 0, 92% 0, 100% 15%, 100% 100%, 8% 100%, 0 85%); z-index: 2; pointer-events: none; }
.hero::after { content: ""; position: absolute; top: 17%; right: 8%; width: 23vw; height: 23vw; max-width: 330px; max-height: 330px; border: 1px solid rgba(116,212,220,.24); border-radius: 50%; background: repeating-conic-gradient(from 0deg, transparent 0 13deg, rgba(116,212,220,.12) 13.5deg 14deg, transparent 14.5deg 45deg); mask-image: radial-gradient(transparent 0 45%, #000 46% 47%, transparent 48% 54%, #000 55% 56%, transparent 57%); animation: spin 24s linear infinite; z-index: 2; pointer-events: none; }
.hero-bg { position: absolute; inset: 0; z-index: -2; transform: scale(1.04); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: brightness(.58) contrast(1.1) saturate(.9); transition: transform 1.2s var(--ease); }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 76% 43%, rgba(255,154,51,.14), transparent 23%), linear-gradient(105deg, rgba(5,9,20,.97) 0%, rgba(5,9,20,.72) 41%, rgba(5,9,20,.2) 100%), linear-gradient(to top, rgba(5,9,20,.9), transparent 48%); }
.hero-content { position: relative; z-index: 3; max-width: 820px; transform: translateZ(20px); }
.hero-content::before { content: "// ASHVADHA / SYSTEM 01"; display: block; margin-bottom: 1.3rem; color: var(--cyan); font: .62rem var(--mono); letter-spacing: .18em; opacity: .85; }
.hero-eyebrow { font: .67rem var(--mono); letter-spacing: .23em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.55rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: 1.02; font-weight: 500; letter-spacing: -.055em; max-width: 850px; text-wrap: balance; text-shadow: 0 10px 50px rgba(0,0,0,.4); }
.hero h1 em { font-style: normal; color: var(--orange); text-shadow: 0 0 30px rgba(255,154,51,.25); }
.scroll-hint, .saga-scroll-hint { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: .45rem; color: var(--muted); font: .6rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.scroll-hint { bottom: 2.5rem; left: 9vw; align-items: flex-start; }
.scroll-hint i, .saga-scroll-hint i { width: 42px; height: 1px; background: linear-gradient(90deg, var(--orange), transparent); display: block; animation: pulse 2.2s ease-in-out infinite; }

section { position: relative; }
.saga { min-height: 380vh; background: radial-gradient(ellipse at 50% 40%, #112235 0%, #07101e 37%, #050914 74%); }
.saga::before { content: "AUTONOMY CORE / SAGA"; position: absolute; top: 7rem; left: 3rem; z-index: 3; color: rgba(139,154,172,.6); font: .62rem var(--mono); letter-spacing: .18em; }
.saga::after { content: "01"; position: absolute; right: 4rem; top: 6.7rem; color: rgba(255,154,51,.8); font: 2.5rem var(--mono); z-index: 3; }
.saga-sticky { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }
.saga-sticky::before { content: ""; position: absolute; inset: 15% 12%; border: 1px solid rgba(116,212,220,.12); transform: perspective(600px) rotateX(62deg) rotateZ(8deg); transform-origin: center; background: linear-gradient(rgba(116,212,220,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(116,212,220,.035) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
#sagaCanvas, #oceanCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.saga-caption { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); text-align: center; z-index: 5; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.saga-caption.visible { opacity: 1; }
.saga-name { display: block; font: 600 .92rem var(--mono); letter-spacing: .32em; color: var(--orange); margin-bottom: .45rem; }
.saga-desc { display: block; font: .68rem var(--mono); letter-spacing: .1em; color: var(--muted); }
.saga-scroll-hint { bottom: 5%; left: 50%; transform: translateX(-50%); transition: opacity .4s ease; }

.beyond { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #050914; padding: 9rem 2rem; overflow: hidden; }
.beyond::before { content: "03 / MULTI-DOMAIN AWARENESS"; position: absolute; top: 3rem; left: 3rem; color: rgba(139,154,172,.7); font: .62rem var(--mono); letter-spacing: .15em; }
.beyond::after { content: ""; position: absolute; width: 75vw; height: 75vw; border: 1px solid rgba(116,212,220,.1); border-radius: 50%; box-shadow: 0 0 0 8vw rgba(116,212,220,.018), 0 0 0 16vw rgba(116,212,220,.012); }
.ocean-bg { opacity: .72; pointer-events: none; z-index: 0; }
.beyond-content { position: relative; z-index: 2; text-align: center; max-width: 740px; padding: 5rem 3.2rem; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(12,27,43,.82), rgba(5,9,20,.5)); box-shadow: 0 30px 100px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.06); clip-path: polygon(0 0, 96% 0, 100% 8%, 100% 100%, 4% 100%, 0 92%); }
.beyond-content::before, .beyond-content::after { content: ""; position: absolute; width: 44px; height: 44px; border-color: var(--orange); border-style: solid; opacity: .8; }
.beyond-content::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.beyond-content::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.beyond-domains { display: flex; justify-content: center; align-items: center; gap: 1.4rem; margin-bottom: 2.7rem; font: 600 .74rem var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--orange); }
.beyond-domains .sep { width: 24px; height: 1px; background: var(--line-hot); }
.beyond-line-1 { font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 500; line-height: 1.28; margin-bottom: .9rem; }
.beyond-line-2 { font-size: clamp(1.05rem, 2.1vw, 1.35rem); color: var(--muted); line-height: 1.55; }
.beyond-divider { width: 1px; height: 54px; margin: 2.8rem auto 2.4rem; background: linear-gradient(to bottom, transparent, var(--orange), transparent); }
.beyond-final-line { font-size: clamp(1.7rem, 3.8vw, 2.8rem); font-weight: 500; letter-spacing: -.03em; margin-bottom: 2rem; }
.loading-bar { width: 140px; height: 2px; background: rgba(255,154,51,.12); margin: 0 auto; position: relative; overflow: hidden; }
.loading-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: var(--orange); animation: load 3.2s ease-in-out infinite; box-shadow: 0 0 14px var(--orange); }

.join { padding: 8rem 9vw; background: linear-gradient(135deg, #091421, #050914); border-top: 1px solid var(--line); }
.join-inner { max-width: 1040px; margin: 0 auto; }
.section-label { font: .7rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 3.5rem; }
.contact-item { padding: 2.2rem; border: 1px solid var(--line); background: var(--panel); transition: transform .3s var(--ease), border-color .3s var(--ease); }
.contact-item:hover { transform: translateY(-5px) rotateX(2deg); border-color: var(--line-hot); }
.contact-item h3 { font: .68rem var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.contact-item a { font-size: 1.2rem; color: var(--text); }
.socials { display: flex; gap: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.socials a { font: .68rem var(--mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.socials a:hover { color: var(--orange); }

.footer { padding: 2.3rem 3.2rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); font: .68rem var(--mono); color: var(--muted); }
.built-in { display: flex; align-items: center; gap: .55rem; color: var(--text); letter-spacing: .04em; }
.built-in .lion { width: 18px; height: 18px; opacity: .85; animation: subtle-glow 3s ease-in-out infinite; }

.page-hero { position: relative; min-height: 42vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 10rem 3rem 5rem; text-align: center; background: radial-gradient(circle at 50% 80%, rgba(255,154,51,.16), transparent 35%), linear-gradient(#091726, #050914); overflow: hidden; }
.page-hero::before { content: "// ASHVADHA / PERSONNEL"; position: absolute; top: 9rem; color: var(--cyan); font: .62rem var(--mono); letter-spacing: .2em; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 500; letter-spacing: -.06em; }
.page-hero p { color: var(--muted); font-size: 1.05rem; margin-top: .8rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 960px; margin: 0 auto; padding: 4rem 3rem 9rem; }
.team-card { padding: 1rem; text-align: center; opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; background: var(--panel); border: 1px solid var(--line); }
.team-card.visible { opacity: 1; transform: translateY(0); }
.team-photo { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.7rem; filter: grayscale(25%) contrast(1.05); transition: filter .4s ease, transform .4s ease; }
.team-card:hover .team-photo { filter: grayscale(0); transform: scale(1.02); }
.team-card h2 { font-size: 1.3rem; font-weight: 500; margin-bottom: .35rem; }
.team-card .role { color: var(--orange); font: .72rem var(--mono); margin-bottom: 1rem; }
.team-card .linkedin { font: .65rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.team-card .linkedin:hover { color: var(--orange); }
.journal-list { max-width: 820px; margin: 0 auto; padding: 4rem 3rem 10rem; }
.journal-card { display: block; padding: 3rem; border: 1px solid var(--line); background: linear-gradient(135deg, var(--panel), rgba(5,9,20,.42)); transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.journal-card:hover { border-color: var(--orange); transform: translateY(-6px) perspective(600px) rotateX(1deg); box-shadow: 0 20px 60px rgba(0,0,0,.3); color: inherit; }
.journal-meta { font: .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .95rem; }
.journal-card h2 { font-size: 1.7rem; font-weight: 500; margin-bottom: .7rem; line-height: 1.25; }
.journal-card p { color: var(--muted); font-size: .95rem; line-height: 1.55; }

@keyframes pulse { 0%,100% { opacity: .3; transform: scaleX(.75); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes load { 0% { transform: translateX(-160%); } 100% { transform: translateX(450%); } }
@keyframes subtle-glow { 0%,100% { opacity: .7; } 50% { opacity: 1; filter: drop-shadow(0 0 6px var(--orange)); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } .saga { min-height: auto; } .saga-sticky { position: relative; height: 100vh; } }
@media (max-width: 900px) { .nav { padding: 1rem 1.5rem; } .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,9,20,.98); flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1.25rem; border-bottom: 1px solid var(--line); } .nav-links.open { display: flex; } .nav-toggle { display: block; } .hero { padding: 0 1.5rem; } .hero::after { right: -8%; width: 270px; height: 270px; opacity: .55; } .saga::before, .beyond::before { left: 1.5rem; } .saga::after { right: 1.5rem; } .join { padding-left: 1.5rem; padding-right: 1.5rem; } .contact-grid { grid-template-columns: 1fr; } .footer { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (max-width: 600px) { .hero { min-height: 620px; } .hero::before { inset: 16% 1.5rem 8%; } .hero h1 { font-size: 2.5rem; } .hero-content::before { font-size: .55rem; } .beyond-content { padding: 4rem 1.4rem; } .beyond-domains { gap: .75rem; letter-spacing: .18em; } .team-grid, .journal-list { padding-left: 1.5rem; padding-right: 1.5rem; } .journal-card { padding: 2rem 1.5rem; } .journal-card h2 { font-size: 1.4rem; } .footer { flex-direction: column; gap: 1rem; text-align: center; } }


/* Refined pass: quieter, sharper, more editorial. */
:root { --display: "Electrolize", var(--font); }
body::before { opacity: .07; background-size: 110px 110px; }
.nav-logo-img { filter: none; }
.hero::before, .hero::after { display: none; }
.hero { padding-left: 7vw; padding-right: 7vw; }
.hero-bg { transform: none; }
.hero-img { filter: brightness(.82) contrast(1.03) saturate(.94); transition: transform .8s var(--ease); }
.hero-overlay { background: linear-gradient(90deg, rgba(5,9,20,.68) 0%, rgba(5,9,20,.24) 54%, rgba(5,9,20,.04) 100%), linear-gradient(to top, rgba(5,9,20,.55), transparent 42%); }
.hero-content::before, .page-hero::before { display: none; }
.hero-eyebrow { font-family: var(--display); font-size: .72rem; letter-spacing: .18em; }
.hero h1, .page-hero h1, .saga-name, .beyond-final-line, .journal-card h2 { font-family: var(--display); }
.hero h1 { font-weight: 400; letter-spacing: -.04em; }
.scroll-hint { left: 7vw; }

.saga { min-height: 360vh; }
.saga::before { content: "01 / SAGA"; top: 6rem; left: 7vw; font-family: var(--display); letter-spacing: .12em; }
.saga::after { display: none; }
.saga-sticky::before { opacity: .35; inset: 20% 17%; transform: perspective(700px) rotateX(64deg) rotateZ(0); background-size: 54px 54px; }
.saga-caption { left: 7vw; bottom: 14%; transform: none; text-align: left; }
.saga-name { font-size: clamp(1.35rem, 3vw, 2.4rem); letter-spacing: .2em; font-weight: 400; text-shadow: none; }
.saga-desc { display: block; width: 0; max-width: 31ch; overflow: hidden; white-space: nowrap; border-right: 1px solid var(--orange); font-family: var(--display); font-size: .9rem; letter-spacing: .04em; color: var(--text); animation: typing 2.6s steps(31, end) 0.25s forwards, caret .8s step-end infinite; }
.saga-caption.visible .saga-desc { width: 31ch; }

.beyond { min-height: 120vh; padding-top: 11rem; padding-bottom: 11rem; }
.beyond::before { content: "02 / BEYOND VISIBLE"; top: 4rem; left: 7vw; font-family: var(--display); letter-spacing: .12em; }
.beyond::after { display: none; }
.beyond-content { max-width: 780px; padding: 0; border: 0; background: none; box-shadow: none; clip-path: none; }
.beyond-content::before, .beyond-content::after { display: none; }
.beyond-domains, .beyond-line-1, .beyond-line-2, .beyond-divider, .beyond-final-line, .loading-bar { transition: opacity .65s var(--ease), transform .8s var(--ease), filter .65s var(--ease); }
.beyond-domains, .beyond-line-1, .beyond-line-2 { opacity: 0; transform: translateY(28px); filter: blur(8px); }
.beyond-divider { opacity: 0; transform: scaleY(.2); }
.beyond-final-line, .loading-bar { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.beyond.is-revealing .beyond-domains, .beyond.is-revealing .beyond-line-1, .beyond.is-revealing .beyond-line-2 { opacity: 1; transform: translateY(0); filter: blur(0); }
.beyond.is-revealing .beyond-domains { transition-delay: .08s; }
.beyond.is-revealing .beyond-line-1 { transition-delay: .18s; }
.beyond.is-revealing .beyond-line-2 { transition-delay: .28s; }
.beyond.is-revealing .beyond-divider { opacity: 1; transform: scaleY(1); transition-delay: .44s; }
.beyond.is-complete .beyond-domains, .beyond.is-complete .beyond-line-1, .beyond.is-complete .beyond-line-2, .beyond.is-complete .beyond-divider { opacity: 0; transform: translateY(-22px); filter: blur(9px); pointer-events: none; }
.beyond.is-complete .beyond-final-line, .beyond.is-complete .loading-bar { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: .25s; }
.beyond-final-line { font-size: clamp(2.2rem, 6vw, 5.4rem); letter-spacing: .01em; color: var(--orange); }
.beyond-final-line::after { content: " / UNDER BUILD"; display: block; margin-top: .9rem; color: var(--muted); font: .65rem var(--display); letter-spacing: .22em; }
.ocean-bg { opacity: .6; }

.join { padding-top: 8rem; position: relative; }
.join::before { content: "03 / JOIN THE MISSION"; position: absolute; top: 3.2rem; left: 7vw; color: rgba(139,154,172,.72); font: .7rem var(--display); letter-spacing: .12em; }
.join .section-label { padding-top: 2rem; font-family: var(--display); font-size: .82rem; letter-spacing: .14em; }
.contact-grid { gap: 1rem; }
.contact-item { background: rgba(8,17,31,.42); border-color: rgba(150,178,201,.12); }
.contact-item:hover { transform: translateY(-3px); border-color: var(--line-hot); }
.socials { gap: 1rem; flex-wrap: wrap; }
.socials a { padding: .75rem 1rem; border: 1px solid rgba(150,178,201,.14); background: rgba(8,17,31,.3); }
.socials a:hover { border-color: var(--orange); background: transparent; }

.page-hero { min-height: 44vh; justify-content: center; padding-top: 8rem; background: linear-gradient(135deg, #091421, #050914); }
.page-hero h1 { font-weight: 400; }
.team-grid, .journal-list { position: relative; max-width: 1040px; }
.team-grid::before, .journal-list::before { content: ""; position: absolute; inset: 2rem 0 7rem; pointer-events: none; background: repeating-linear-gradient(120deg, transparent 0 80px, rgba(116,212,220,.028) 81px 82px, transparent 83px 160px); animation: drift 18s linear infinite; }
.team-card, .journal-card { position: relative; background: rgba(8,17,31,.44); border-color: rgba(150,178,201,.14); }
.team-card:hover, .journal-card:hover { border-color: var(--line-hot); box-shadow: none; }
.team-card h2 { font-family: var(--display); font-weight: 400; }
.journal-card h2 { font-weight: 400; }
.footer { background: #050914; }

@keyframes typing { from { width: 0; } to { width: 31ch; } }
@keyframes caret { 50% { border-color: transparent; } }
@keyframes drift { from { background-position: 0 0; } to { background-position: 320px 0; } }
@media (max-width: 900px) { .hero { padding-left: 1.5rem; padding-right: 1.5rem; } .scroll-hint { left: 1.5rem; } .saga::before, .beyond::before, .join::before { left: 1.5rem; } .saga-caption { left: 1.5rem; } }


/* Final rhythm pass: clean section cuts and quiet page surfaces. */
.saga::before, .beyond::before, .join::before { display: none; }
.hero, .saga, .beyond, .join, .page-hero, .team-grid, .journal-list { background-color: var(--void); }
.page-hero { background: var(--void); min-height: 38vh; padding-bottom: 4rem; }
.page-hero h1 { font-family: var(--display); font-size: clamp(3rem, 7vw, 6rem); }
.team-grid, .journal-list { background: var(--void); }
.team-grid::before, .journal-list::before { display: none; }
.team-card, .journal-card, .contact-item { background: rgba(5,9,20,.35); box-shadow: none; }
.team-card { transform: none; transition: border-color .25s var(--ease); }
.team-card.visible { transform: none; }
.team-card:hover { transform: none; }
.journal-card:hover { transform: translateY(-3px); }

/* Smooth visual cuts instead of hard color changes between sections. */
.hero::after, .saga::after, .beyond::after { display: block; content: ""; position: absolute; z-index: 6; left: 0; right: 0; bottom: -1px; height: 14vh; background: linear-gradient(to bottom, transparent, var(--void)); pointer-events: none; }
.saga::after { background: linear-gradient(to bottom, transparent, var(--void)); }
.beyond::after { background: linear-gradient(to bottom, transparent, var(--void)); }
.join { border-top: 0; }
.footer { background: var(--void); }

/* Beyond Visible: each domain arrives on its own scroll beat, then resolves to the final signal. */
.beyond-content { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.beyond-domains { opacity: 1; transform: none; filter: none; }
.beyond-domains span { opacity: 0; transform: translateY(20px); filter: blur(5px); transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease); }
.beyond.is-revealing .beyond-domains span { opacity: 1; transform: translateY(0); filter: blur(0); }
.beyond.is-revealing .beyond-domains span:nth-child(1) { transition-delay: .05s; }
.beyond.is-revealing .beyond-domains span:nth-child(3) { transition-delay: .28s; }
.beyond.is-revealing .beyond-domains span:nth-child(5) { transition-delay: .51s; }
.beyond.is-complete .beyond-domains { opacity: 0; transform: translateY(-24px); filter: blur(8px); }
.beyond.is-complete .beyond-line-1, .beyond.is-complete .beyond-line-2, .beyond.is-complete .beyond-divider { opacity: 0; transform: translateY(-24px); filter: blur(8px); }
.beyond-final-line { margin: 0; text-align: center; }

.join { padding-top: 7rem; padding-bottom: 7rem; }
.join-inner { max-width: 960px; }
.join .section-label { padding-top: 0; margin-bottom: 3.5rem; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 400; letter-spacing: .02em; color: var(--text); text-transform: none; }
.contact-item { padding: 1.8rem 0; border-width: 1px 0 0; border-color: rgba(150,178,201,.16); }
.contact-item:hover { transform: none; border-color: var(--orange); }
.socials { padding-top: 1.8rem; }
.socials a { border: 0; padding: 0; background: none; }
.socials a:hover { background: none; }
@media (max-width: 600px) { .beyond-content { min-height: 390px; } .join .section-label { font-size: 2rem; } }


/* Focused correction pass. */
:root { --brand-navy: #000b1b; }
body, .hero, .saga, .beyond, .join, .page-hero, .team-grid, .journal-list, .footer { background: var(--brand-navy); }
.nav { background: linear-gradient(to bottom, rgba(0,11,27,.98), transparent); }
.nav.scrolled { background: rgba(0,11,27,.94); }
.nav-logo-img { width: 43px; height: 43px; }
.hero { background: var(--brand-navy); }
.hero::after, .hero::before, .saga::after, .beyond::after { display: none !important; }
.hero-overlay { background: linear-gradient(90deg, rgba(0,11,27,.52) 0%, rgba(0,11,27,.15) 58%, rgba(0,11,27,.02) 100%), linear-gradient(to top, rgba(0,11,27,.42), transparent 45%); }
.hero-img { filter: brightness(.9) contrast(1.02) saturate(.98); }
.saga-scroll-hint { display: none; }
.saga-caption { bottom: 12%; }
.saga-desc { border-right: 0; animation: typing 2.6s steps(31, end) .25s forwards; }
.beyond { min-height: 130vh; background: var(--brand-navy); }
.ocean-bg { display: none; }
.beyond-content { min-height: 430px; }
.beyond-domains { gap: clamp(1.8rem, 5vw, 4.8rem); font-family: var(--display); font-size: clamp(1.8rem, 5.5vw, 5rem); font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--text); }
.beyond-domains .sep { width: 1px; height: 2.4rem; background: rgba(255,255,255,.3); }
.beyond-line-1, .beyond-line-2 { font-family: var(--display); }
.beyond-line-1 { font-size: clamp(1.55rem, 3.2vw, 2.5rem); }
.beyond-line-2 { font-size: clamp(1.15rem, 2.4vw, 1.7rem); }
.beyond-final-line { color: var(--text); font-family: var(--display); }
.beyond-final-line::after { display: none; }
.loading-bar { background: rgba(255,255,255,.14); }
.join { background: var(--brand-navy); padding-top: 8rem; }
.join .section-label { font-family: var(--display); font-size: clamp(2.3rem, 5vw, 4.8rem); font-weight: 400; color: var(--text); letter-spacing: 0; }
.contact-grid { gap: 4rem; }
.contact-item { padding: 0; border: 0; background: transparent; }
.contact-item:hover { border-color: transparent; transform: none; }
.contact-item h3 { font-family: var(--display); color: var(--muted); }
.contact-item a { font-family: var(--display); font-size: clamp(1rem, 2vw, 1.35rem); }
.socials { gap: 2.2rem; padding-top: 2.2rem; }
.socials a { padding: 0; border: 0; background: transparent; font-family: var(--display); }
.socials a:hover { background: transparent; }
.footer { background: var(--brand-navy); }
.page-hero, .team-grid, .journal-list { background: var(--brand-navy); }


/* Logo, hero typing, and Join us particle grid. */
.nav-logo-img { width: 48px; height: 48px; object-fit: contain; background: transparent; }
.hero-tagline { position: relative; width: max-content; max-width: 100%; clip-path: inset(0 100% 0 0); animation: heroType 2.4s steps(34, end) .35s forwards; }
.hero-tagline::after { content: ""; position: absolute; top: .08em; right: -.12em; width: 2px; height: .9em; background: var(--orange); animation: heroCaret .75s step-end infinite; }
.join { isolation: isolate; overflow: hidden; }
#joinGridCanvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.join-inner { position: relative; z-index: 1; }
.join .section-label { text-transform: none; }
@keyframes heroType { to { clip-path: inset(0 0 0 0); } }
@keyframes heroCaret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-tagline { animation: none; clip-path: none; } .hero-tagline::after { display: none; } }


/* Homepage polish pass: anchored hero type, staged domains, and balanced Join us. */
.hero { align-items: flex-start; justify-content: flex-start; }
.hero-content { position: absolute; left: 7vw; bottom: 10.5rem; max-width: min(900px, 86vw); }
.hero-tagline { width: auto; max-width: 100%; clip-path: none; animation: none; }
.hero-line {
  display: block;
  width: auto;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  clip-path: none;
  opacity: 0;
  transform: translateY(0.3em);
}
.hero-line-one { animation: heroLineIn 0.85s cubic-bezier(.23, 1, .32, 1) .15s forwards; }
.hero-line-two { animation: heroLineIn 0.85s cubic-bezier(.23, 1, .32, 1) .5s forwards; }
.hero-tagline::after { display: none; }
.hero h1 { font-size: clamp(2.15rem, 4.1vw, 4.4rem); font-weight: 500; line-height: 1.14; letter-spacing: -.04em; }
.scroll-hint { bottom: 3rem; left: 7vw; }
.saga-name { letter-spacing: .08em; font-weight: 700; }
.saga-desc { font-weight: 500; }

/* Each scroll beat is handled by .beyond-stage-* from script.js. */
.beyond-domains { opacity: 0; transform: translateY(24px); filter: blur(7px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease); }
.beyond-domains span { opacity: 0; transform: translateY(22px) scale(.96); filter: blur(5px); transition: opacity .5s var(--ease), transform .7s var(--ease), filter .5s var(--ease); }
.beyond-stage-1 .beyond-domains, .beyond-stage-2 .beyond-domains, .beyond-stage-3 .beyond-domains, .beyond-stage-4 .beyond-domains { opacity: 1; transform: translateY(0); filter: blur(0); }
.beyond-stage-1 .beyond-domains span:nth-child(1), .beyond-stage-2 .beyond-domains span:nth-child(1), .beyond-stage-3 .beyond-domains span:nth-child(1), .beyond-stage-4 .beyond-domains span:nth-child(1) { opacity: 1; transform: none; filter: blur(0); }
.beyond-stage-2 .beyond-domains span:nth-child(3), .beyond-stage-3 .beyond-domains span:nth-child(3), .beyond-stage-4 .beyond-domains span:nth-child(3) { opacity: 1; transform: none; filter: blur(0); }
.beyond-stage-3 .beyond-domains span:nth-child(5), .beyond-stage-4 .beyond-domains span:nth-child(5) { opacity: 1; transform: none; filter: blur(0); }
.beyond-stage-1 .beyond-domains span:nth-child(1) { transition-delay: .05s; }
.beyond-stage-2 .beyond-domains span:nth-child(3) { transition-delay: .05s; }
.beyond-stage-3 .beyond-domains span:nth-child(5) { transition-delay: .05s; }
.beyond-line-1, .beyond-line-2, .beyond-divider, .beyond-final-line, .loading-bar { opacity: 0; transform: translateY(28px); filter: blur(7px); transition: opacity .6s var(--ease), transform .75s var(--ease), filter .6s var(--ease); }
.beyond-stage-3 .beyond-line-1, .beyond-stage-4 .beyond-line-1 { opacity: 1; transform: none; filter: blur(0); }
.beyond-stage-3 .beyond-line-2, .beyond-stage-4 .beyond-line-2 { opacity: 1; transform: none; filter: blur(0); transition-delay: .2s; }
.beyond-stage-3 .beyond-divider, .beyond-stage-4 .beyond-divider { opacity: 1; transform: scaleY(1); filter: blur(0); transition-delay: .35s; }
.beyond-stage-4 .beyond-domains, .beyond-stage-4 .beyond-line-1, .beyond-stage-4 .beyond-line-2, .beyond-stage-4 .beyond-divider { opacity: 0; transform: translateY(-25px); filter: blur(9px); }
.beyond-stage-4 .beyond-final-line, .beyond-stage-4 .loading-bar { opacity: 1; transform: none; filter: blur(0); transition-delay: .2s; }
.beyond-final-line { color: var(--orange); }

.join-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .6fr); column-gap: clamp(3rem, 10vw, 9rem); align-items: end; }
.join .section-label { grid-column: 1 / -1; }
.contact-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 0; }
.contact-item { padding: 1.1rem 1.25rem; border: 1px solid rgba(150,178,201,.18); background: rgba(0,0,0,.16); }
.contact-item:hover { border-color: var(--orange); transform: none; }
.socials { flex-direction: column; align-items: flex-start; gap: 1.35rem; padding: 0; border-top: 0; }
.socials a { font-size: .85rem; letter-spacing: .12em; }
@keyframes heroLineIn {
  from { opacity: 0; transform: translateY(0.3em); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 700px) {
  .hero-content { left: 1.5rem; bottom: 8rem; max-width: calc(100vw - 3rem); }
  .hero h1 { font-size: 2.15rem; }
  .hero-line { white-space: normal; width: auto; }
  .join-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .join .section-label { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-line-one, .hero-line-two { animation: none; opacity: 1; transform: none; }
}


/* Final polish: side detail, no domain separators, and aligned contact actions. */
.saga-side { position: absolute; top: 50%; z-index: 4; width: 150px; color: rgba(139,154,172,.68); font: .58rem var(--display); letter-spacing: .14em; opacity: .8; }
.saga-side-left { left: 7vw; }
.saga-side-right { right: 7vw; text-align: right; }
.saga-side i { display: block; width: 100%; height: 1px; margin: .8rem 0; background: linear-gradient(90deg, rgba(116,212,220,.5), transparent); }
.saga-side-right i { margin-left: auto; background: linear-gradient(90deg, transparent, rgba(116,212,220,.5)); }
.saga-side b { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px rgba(255,154,51,.35); }
.saga-side-right b { margin-left: auto; }
.beyond-domains .sep { display: none; }
.beyond-domains { gap: clamp(2.6rem, 7vw, 7rem); }
.socials { width: 100%; gap: .9rem; }
.socials a { display: block; width: 100%; padding: 1.1rem 1.25rem; border: 1px solid rgba(150,178,201,.18); background: rgba(0,0,0,.16); }
.socials a:hover { border-color: var(--orange); background: rgba(0,0,0,.16); }
.page-particle-surface { overflow: hidden; isolation: isolate; }
.page-particles { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .42; pointer-events: none; }
.team-card, .journal-card { z-index: 1; }
@media (max-width: 900px) { .saga-side { opacity: .42; width: 90px; } .saga-side-left { left: 1.5rem; } .saga-side-right { right: 1.5rem; } }
@media (max-width: 700px) { .saga-side { display: none; } }


/* Composition refinement: reveal systems with SAGA, widen scroll beats, simplify final signal. */
.saga-sticky::before { display: none; }
.saga-side { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.saga-side.visible { opacity: .76; transform: translateY(0); }
.saga-side span { display: block; margin: .5rem 0; color: rgba(139,154,172,.72); }
.saga-side i { margin: .9rem 0; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-item { min-height: 94px; display: flex; flex-direction: column; justify-content: center; }
.footer { position: relative; }
.footer-socials { display: flex; align-items: center; gap: 1.1rem; }
.footer-socials a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); border: 1px solid rgba(150,178,201,.18); transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.footer-socials a:hover { color: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.footer-socials svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.beyond { min-height: 190vh; }
.beyond-content { min-height: 520px; }
.beyond-line-1, .beyond-line-2 { transition-duration: .9s; }
.beyond-final-line { min-height: 1.2em; }
#beyondDustCanvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 1.2s var(--ease); }
.beyond-content { z-index: 1; }
.beyond.beyond-stage-4 #beyondDustCanvas { opacity: .38; }
.beyond.beyond-stage-4 .beyond-content { min-height: 72vh; }
.beyond.beyond-stage-4 .beyond-final-line { color: var(--orange); }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } .footer-socials { margin-top: .5rem; } }


/* Final visual direction: subtle hero, icon satellites, blue-to-black descent. */
.hero-img { transform: scale(1.02); }
.saga-side { width: 120px; height: 150px; display: flex; flex-direction: column; justify-content: space-around; align-items: center; }
.saga-side-left { left: 8vw; }
.saga-side-right { right: 8vw; }
.system-icon { position: relative; display: block; width: 24px; height: 18px; border: 1px solid rgba(220,228,238,.48); opacity: .75; animation: satelliteFloat 4.5s ease-in-out infinite; }
.saga-side-right .system-icon { animation-delay: -1.8s; }
.system-icon-wing { border-width: 1px 0; transform: skewX(-28deg); }
.system-icon-wing::before, .system-icon-wing::after { content: ""; position: absolute; top: 3px; width: 9px; height: 1px; background: var(--orange); }
.system-icon-wing::before { left: -6px; transform: rotate(-25deg); } .system-icon-wing::after { right: -6px; transform: rotate(25deg); }
.system-icon-box { width: 18px; height: 18px; transform: rotate(45deg); }
.system-icon-capsule { width: 28px; height: 12px; border-radius: 50%; }
.system-icon-cross { width: 20px; height: 20px; border: 0; }
.system-icon-cross::before, .system-icon-cross::after { content: ""; position: absolute; inset: 9px 0 auto; height: 1px; background: rgba(220,228,238,.58); } .system-icon-cross::after { transform: rotate(90deg); }
.saga-side b { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; }
.beyond { background: linear-gradient(180deg, rgb(5, 27, 52) 0%, rgb(0, 11, 27) 68%, rgb(0, 0, 0) 100%); background-size: 100% 180%; background-position: 0 var(--beyond-depth, 0%); transition: background-position .8s var(--ease); }
.beyond.beyond-stage-4 { background-position: 0 100%; }
.beyond-final-line { color: var(--orange); }
.loading-bar { display: block; width: 120px; height: 2px; margin: 1.8rem auto 0; overflow: hidden; background: rgba(255,255,255,.16); opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.loading-bar::after { content: ""; display: block; width: 28%; height: 100%; background: var(--orange); animation: buildScan 2.8s linear infinite; box-shadow: 0 0 8px var(--orange); }
.beyond-stage-4 .loading-bar { opacity: 1; transform: none; transition-delay: .35s; }
.join-inner { width: min(100%, 1080px); }
.contact-grid { width: 100%; }
.contact-item { min-height: 108px; }
@keyframes satelliteFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes buildScan { from { transform: translateX(-360%); } to { transform: translateX(480%); } }
@media (prefers-reduced-motion: reduce) { .system-icon { animation: none; } .loading-bar::after { animation: none; } }


/* Uploaded 3D Saga integration and narrative transition. */
.saga { min-height: 380vh; background: radial-gradient(120% 90% at 50% 20%, #0b0f1c, #070a12 70%); }
.saga-sticky { box-shadow: inset 0 0 180px 50px rgba(3,5,10,.55); }
.saga-sticky::before { display: none !important; }
.saga-word { position: absolute; top: 46%; left: 50%; transform: translate(-50%,-50%); z-index: 2; pointer-events: none; font-family: var(--display); font-size: clamp(2.2rem, 4.8vw, 4.2rem); letter-spacing: .1em; color: #fff; text-shadow: 0 0 14px rgba(255,255,255,.55), 0 0 46px rgba(255,154,51,.48); opacity: 0; transition: opacity .45s var(--ease); }
.saga-tagline { position: absolute; left: 7vw; bottom: 9%; z-index: 3; color: rgba(238,241,246,.68); font: .72rem var(--display); letter-spacing: .08em; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.saga-tagline.is-visible { opacity: 1; transform: none; }
.beyond { margin-top: -18vh; padding-top: 11rem; min-height: 170vh; background: linear-gradient(180deg, #071323 0%, #000b1b 68%, #000 100%); }
.beyond-content { max-width: 800px; padding-top: 1rem; }
.beyond-line-1 { margin-top: 1rem; }
.beyond-divider { display: none; }
.beyond-final-line { margin-top: 2.6rem; }
.join { background: #000b1b; }
.join-inner { max-width: 1100px; }
.contact-grid { gap: 1.4rem; }
.contact-item { min-height: 122px; padding: 1.45rem 1.6rem; }
@media (max-width: 700px) { .beyond { margin-top: -8vh; } .saga-tagline { left: 1.5rem; } }


/* Uploaded Beyond Visible section: the next domain, disclosed only through motion. */
.beyond { position: relative; height: 560vh; min-height: 0; margin-top: 0; padding: 0; overflow: hidden; background: #070a12; }
.beyond .domain-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #0b0f1c, #070a12 72%); }
.beyond .domain-sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dword { position: absolute; top: 47%; left: 50%; transform: translate(-50%,-50%); font-family: var(--display); font-size: clamp(3rem, 11vw, 8rem); letter-spacing: .1em; color: #fff; text-shadow: 0 0 44px rgba(255,255,255,.3), 0 0 90px rgba(255,154,51,.12); opacity: 0; pointer-events: none; white-space: nowrap; z-index: 2; }
.dline { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--mono); font-size: clamp(1.5rem, 3.6vw, 2.5rem); letter-spacing: .01em; color: var(--text); text-align: center; max-width: 22ch; line-height: 1.55; opacity: 0; pointer-events: none; z-index: 2; }
.dtag-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; opacity: 0; pointer-events: none; z-index: 2; }
.dtag { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 6.4vw, 4.2rem); letter-spacing: .05em; color: var(--text); text-shadow: 0 0 10px rgba(238,241,246,.22); margin: 0; white-space: nowrap; }
.dtag-rule { width: 0; height: 2px; margin: 1.1rem auto 0; background: var(--orange); box-shadow: 0 0 12px rgba(255,154,51,.8); transition: width 1.1s ease; }
.dtag-wrap.show .dtag-rule { width: 120px; }
.dloading { display: flex; gap: 6px; justify-content: center; margin-top: 2.2rem; }
.dloading i { width: 14px; height: 8px; background: rgba(238,241,246,.12); border: 1px solid rgba(238,241,246,.2); display: block; }
.dloading i.on { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 10px rgba(255,154,51,.6); }
.dflash { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(circle at 50% 47%, rgba(255,255,255,.9), transparent 60%); opacity: 0; }
.saga-tagline { font-size: clamp(.95rem, 1.3vw, 1.2rem); letter-spacing: .075em; font-weight: 500; }
.join { padding-top: 10rem; padding-bottom: 10rem; }
.join-inner { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); column-gap: clamp(3rem, 9vw, 10rem); align-items: center; }
.join .section-label { grid-column: auto; margin: 0; font: clamp(2.8rem, 6vw, 6.4rem) var(--display); letter-spacing: -.04em; color: var(--text); text-transform: none; line-height: .95; }
.contact-grid { margin: 0; align-self: stretch; }
.contact-item { min-height: 150px; padding: 2rem 2.2rem; }
@media (max-width: 700px) { .beyond { height: 520vh; } .dtag { white-space: normal; } .join-inner { grid-template-columns: 1fr; row-gap: 3rem; } .join .section-label { font-size: 3.4rem; } .contact-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .beyond { height: auto; } .beyond .domain-sticky { position: relative; height: 100vh; } }


/* Ensure the new domain is legible before the first animated reveal. */
.domain-locator { position: absolute; top: 2.4rem; left: 3rem; z-index: 4; color: rgba(238,241,246,.5); font: .62rem var(--mono); letter-spacing: .16em; }
.domain-locator span { color: var(--orange); padding: 0 .35rem; }
@media (max-width: 700px) { .domain-locator { left: 1.5rem; top: 2rem; font-size: .55rem; } }


/* ============================================================
   Finishing pass (v30): accessibility, resilience, small fixes.
   ============================================================ */
:root { color-scheme: dark; }
::selection { background: rgba(255,154,51,.32); color: #fff; }

/* Keyboard focus — visible everywhere, on-brand */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.nav-toggle:focus-visible { outline-offset: 0; }

.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 10000; padding: .7rem 1.1rem; background: var(--orange); color: var(--brand-navy); font: 600 .82rem var(--font); transform: translateY(-220%); transition: transform .2s var(--ease); }
.skip-link:focus, .skip-link:hover { transform: none; color: var(--brand-navy); }

/* Full-height hero that doesn't jump when the mobile URL bar collapses */
.hero { height: 100vh; height: 100svh; }

/* Portraits carry width/height attributes now, so let CSS own the box */
.team-photo { height: auto; }

/* Journal card: say where it goes */
.journal-more { display: inline-block; margin-top: 1.6rem; font: 500 .85rem var(--font); color: var(--orange); text-underline-offset: .28em; }
.journal-card:hover .journal-more { text-decoration: underline; }

/* If the 3D layer can't start (blocked script, no WebGL), show SAGA as a static title */
html.saga-failed .boot { display: none; }
html.saga-failed .saga-v29 { --saga-v29-track-height: 100vh; }
html.saga-failed .saga-v29__canvas { display: none; }
html.saga-failed .saga-v29__brand { opacity: 1; transform: translate(-50%, -50%); top: 50%; left: 50%; text-align: center; }
.page-hero .nav-cta { margin-top: 2rem; }


/* Compact header: smaller bar, tight logo mark, hides itself while scrolling down. */
:root { --nav-h: 3.5rem; }
.nav { height: var(--nav-h); padding: 0 2rem; transition: transform .35s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.nav.nav--hidden { transform: translateY(-100%); }
.nav:has(:focus-visible) { transform: none; }
.nav-logo { gap: .65rem; font-size: .78rem; }
.nav-logo-img { width: auto; height: 34px; filter: none; }
.nav-links { gap: 1.7rem; }
.nav-cta { padding: .45rem .95rem; }
@media (max-width: 900px) { .nav { padding: 0 1.25rem; } }

/* Older Safari needs the prefixed mask on the faint background grid */
body::before { -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
