:root {
  color-scheme: dark;
  --background: #0A0C10;
  --accent: #3DFFF0;
  --silver: #C8D0DC;
  --text: #EFF2F6;
  --muted: #929CAB;
  --line: rgba(200, 208, 220, .14);
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  background: var(--background);
  color: var(--silver);
}

* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 100vh; height: 100svh; pointer-events: none; z-index: -1; background-image: linear-gradient(rgba(200, 208, 220, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 208, 220, .025) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(#000, #000 70%, transparent); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { color: var(--background); background: var(--accent); }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--text); }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 14px 20px; color: var(--background); background: var(--accent); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); color: var(--background); }
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-dot { color: var(--accent); }
nav { display: flex; align-items: center; gap: 36px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.nav-contact { gap: 24px; color: var(--text); }
.nav-contact span { color: var(--accent); font-size: 18px; }

.nav-toggle { display: none; }
.hero { position: relative; min-height: 800px; min-height: max(760px, 100svh); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px; padding-block: 160px 128px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-label, .lattice-label, .lattice-caption, .card-top > span, .card-note, .definition, .hero-bottom { font-size: 10px; font-weight: 500; letter-spacing: 1.7px; }
.eyebrow { display: flex; align-items: center; gap: 10px; line-height: 1.7; text-transform: uppercase; }
.signal { flex: 0 0 5px; height: 5px; background: var(--accent); box-shadow: 0 0 10px #3DFFF030; }
h1 { margin-top: 34px; font-size: clamp(88px, 9.5vw, 140px); line-height: .93; font-weight: 500; letter-spacing: .04em; }
h1 > span:not(.title-period) { color: var(--silver); }
.title-period { color: var(--accent); }
.tagline { margin-top: 32px; font-size: clamp(18px, 2vw, 25px); font-weight: 300; letter-spacing: -.5px; line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; min-height: 46px; border-bottom: 1px solid rgba(61, 255, 240, .45); font-size: 12px; color: var(--text); }
.text-link > span:last-child { color: var(--accent); font-size: 22px; }
.hero-link { margin-top: 32px; }
.lattice { position: relative; width: 100%; max-width: 520px; justify-self: end; }
.lattice svg { width: 100%; height: auto; }
.lattice-label, .lattice-caption { position: absolute; width: 100%; text-align: center; font-size: 9px; color: var(--muted); }
.lattice-label { top: 0; }
.lattice-caption { bottom: 0; }
.lattice-caption span { padding-inline: 14px; color: var(--accent); }
.hero-bottom { position: absolute; inset: auto 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); letter-spacing: 1px; }
.hero-bottom > span { font-size: 11px; letter-spacing: .2px; }
.hero-bottom a { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-size: 10px; }
.hero-bottom a > span:last-child { font-size: 20px; color: var(--accent); }
.section { padding-block: 120px; border-bottom: 1px solid var(--line); scroll-margin-top: 32px; }
.section-label { display: flex; align-items: baseline; gap: 20px; text-transform: uppercase; line-height: 1.6; }
.section-number { color: var(--accent); font-size: 10px; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; border-top: 1px solid var(--line); }
h2 { font-size: clamp(30px, 3.5vw, 48px); font-weight: 400; letter-spacing: -1.8px; line-height: 1.18; }
.about-copy { max-width: 660px; }
.about-copy .intro { margin-top: 36px; color: var(--silver); font-size: 20px; line-height: 1.65; font-weight: 300; }
.about-copy > p:not(.intro):not(.definition) { max-width: 590px; margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.9; font-weight: 300; }
.definition { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.definition > span:first-child { color: var(--accent); letter-spacing: .08em; }
.definition > span:last-child { letter-spacing: .2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 30px; }
.section-heading h2 { max-width: 560px; }
.section-heading p { max-width: 230px; font-size: 13px; line-height: 1.8; color: var(--muted); font-weight: 300; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 52px; border: 1px solid var(--line); }
.direction-card { padding: 32px; background: linear-gradient(140deg, rgba(200,208,220,.025), transparent 70%); display: flex; flex-direction: column; }
.direction-card + .direction-card { border-left: 1px solid var(--line); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 52px; }
.card-top svg { width: 36px; height: 36px; color: var(--accent); stroke: currentColor; stroke-width: 1; }
.card-top > span { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
h3 { font-size: 19px; font-weight: 400; letter-spacing: -.6px; line-height: 1.4; }
.direction-card p { margin-top: 18px; margin-bottom: 36px; font-size: 13px; font-weight: 300; line-height: 1.9; color: var(--muted); }
.card-note { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .3px; color: var(--silver); }
.contact { padding-top: 100px; scroll-margin-top: 32px; }
.contact-main { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 36px 96px; }
.contact-main h2 { font-size: clamp(30px, 3vw, 42px); }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: 16px; border-bottom: 1px solid rgba(61,255,240,.45); font-size: clamp(16px, 1.6vw, 22px); letter-spacing: -.5px; }
.contact-link > span:last-child { color: var(--accent); font-size: 26px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 10px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--silver); font-weight: 500; letter-spacing: .06em; }

@media (min-width: 1600px) {
  .hero { gap: 80px; }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 0; }
  .eyebrow { max-width: 280px; font-size: 9px; }
  h1 { font-size: clamp(80px, 11vw, 110px); }
  .about { grid-template-columns: 1fr 2fr; gap: 32px; }
  .section-label { gap: 12px; font-size: 9px; }
  .direction-card { padding: 24px; }
  .card-top { margin-bottom: 36px; }
  .section-heading { align-items: start; }
  .contact-link { gap: 24px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 16px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand-mark { width: 25px; height: 25px; }
  nav { gap: 14px; }
  nav a { font-size: 11px; }
  .nav-contact { gap: 8px; }
  .js-enabled .nav-toggle { display: flex; align-items: center; gap: 20px; min-height: 44px; padding: 0 4px; color: var(--silver); background: none; border: 0; font-size: 12px; cursor: pointer; }
  .nav-toggle span { color: var(--accent); font-size: 20px; }
  .js-enabled nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px; background: var(--background); border: 1px solid var(--line); }
  .js-enabled nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .js-enabled nav a { font-size: 14px; }
  .hero { grid-template-columns: 1fr; min-height: max(860px, 100svh); padding-block: 150px 120px; gap: 44px; }
  .eyebrow { max-width: none; font-size: 8px; letter-spacing: 1.2px; }
  h1 { margin-top: 28px; font-size: clamp(84px, 19vw, 120px); }
  .tagline { margin-top: 24px; font-size: 19px; }
  .hero-link { margin-top: 22px; }
  .lattice { width: min(78%, 330px); justify-self: center; }
  .lattice-label, .lattice-caption { font-size: 7px; }
  .hero-bottom { bottom: 20px; padding-top: 16px; gap: 12px; }
  .hero-bottom > span { font-size: 10px; }
  .hero-bottom a { gap: 10px; font-size: 10px; letter-spacing: .7px; }
  .section { padding-block: 72px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  h2 { font-size: 34px; letter-spacing: -1.2px; }
  .about-copy .intro { font-size: 19px; margin-top: 28px; }
  .section-heading { flex-direction: column; gap: 20px; margin-top: 28px; }
  .section-heading p { max-width: none; }
  .card-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .direction-card { padding: 28px; }
  .direction-card + .direction-card { border-left: 0; border-top: 1px solid var(--line); }
  .card-top { margin-bottom: 30px; }
  h3 { font-size: 21px; }
  .direction-card p { font-size: 14px; max-width: 450px; }
  .contact { padding-top: 72px; }
  .contact-main { flex-direction: column; align-items: start; padding-block: 28px 64px; gap: 28px; }
  .contact-link { width: min(100%, 360px); font-size: 20px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px 24px; }
  .footer-bottom > span:nth-child(2) { order: 3; flex-basis: 100%; }
  .footer-bottom > span:last-child { margin-left: auto; }
}

/* Navigation remains available when scripting is disabled. */
@media (max-width: 400px) {
  html:not(.js-enabled) .site-header { flex-wrap: wrap; gap: 0; padding-block: 12px; }
  html:not(.js-enabled) nav { width: 100%; justify-content: space-between; }
}

@media (forced-colors: active) {
  .signal { background: CanvasText; }
  .direction-card, .text-link, .contact-link { border-color: CanvasText; }
}

/* Motion & interaction polish. Everything below is enhancement: without JS the
   header stays static and nothing is hidden; with reduced motion nothing moves. */
a { transition: color .25s ease; }
.brand { min-height: 44px; }

/* Quiet frosted bar once the page leaves the top (class set by main.js). */
.js-enabled .site-header { position: fixed; }
.site-header::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(61, 255, 240, .18), transparent) bottom / 100% 1px no-repeat, rgba(10, 12, 16, .78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.site-header.is-scrolled { min-height: 72px; border-bottom-color: transparent; }
.site-header.is-scrolled::before { opacity: 1; }
.js-enabled .section, .js-enabled .contact { scroll-margin-top: 72px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background-color: rgba(10, 12, 16, .96); }
}

/* Cards: soft cyan edge and inner glow, no layout-shifting transforms. */
.direction-card { position: relative; }
.direction-card::after { content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0; border: 1px solid rgba(61, 255, 240, .3); box-shadow: 0 0 36px -10px rgba(61, 255, 240, .22), inset 0 0 44px rgba(61, 255, 240, .035); }
@media (hover: hover) {
  .direction-card:hover { z-index: 1; }
  .direction-card:hover::after { opacity: 1; }
  .direction-card:hover .card-top svg { filter: drop-shadow(0 0 6px rgba(61, 255, 240, .4)); }
  .direction-card:hover .card-note { color: var(--text); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .site-header { transition: min-height .45s cubic-bezier(.2, .7, .2, 1), border-color .45s ease; }
  .site-header::before { transition: opacity .45s ease; }

  .direction-card::after { transition: opacity .45s ease; }
  .card-top svg { transition: filter .45s ease; }
  .card-note { transition: color .45s ease; }

  .text-link > span:last-child, .contact-link > span:last-child, .nav-contact span { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .text-link:hover > span:last-child { transform: translate(2px, 2px); }
  .contact-link:hover > span:last-child, .nav-contact:hover span { transform: translate(2px, -2px); }

  /* Hero ambience: slow, low-amplitude, paused while the hero is off screen. */
  .signal { animation: signal-pulse 3.6s ease-in-out infinite; }
  .lattice svg { animation: lattice-drift 16s ease-in-out infinite; }
  .lattice svg > circle { transform-box: fill-box; transform-origin: center; animation: core-breathe 9s ease-in-out infinite; }
  .lattice circle[stroke-dasharray] { transform-box: fill-box; transform-origin: center; animation: ring-turn 180s linear infinite; }
  .lattice g[fill="#3DFFF0"] circle { animation: node-glint 7s ease-in-out infinite; }
  .lattice g[fill="#3DFFF0"] circle:nth-child(2) { animation-delay: -1.7s; }
  .lattice g[fill="#3DFFF0"] circle:nth-child(3) { animation-delay: -3.4s; }
  .lattice g[fill="#3DFFF0"] circle:nth-child(4) { animation-delay: -5.1s; }
  .hero-bottom a > span:last-child { animation: cue-drift 3.2s ease-in-out infinite; }
  .hero.is-offscreen * { animation-play-state: paused; }
}

/* Scroll reveal (class added by main.js only when motion is allowed). */
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms), transform .9s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@keyframes signal-pulse {
  0%, 100% { opacity: .75; box-shadow: 0 0 8px rgba(61, 255, 240, .16); }
  50% { opacity: 1; box-shadow: 0 0 14px 1px rgba(61, 255, 240, .42); }
}
@keyframes lattice-drift { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }
@keyframes core-breathe { 0%, 100% { opacity: .65; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes ring-turn { to { transform: rotate(360deg); } }
@keyframes node-glint { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes cue-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 700px) {
  .site-header.is-scrolled { min-height: 64px; }
  .js-enabled .section, .js-enabled .contact { scroll-margin-top: 64px; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .js-enabled nav.is-open { animation: menu-in .28s ease-out; }
}

@media (forced-colors: active) {
  .site-header::before { background: Canvas; border-bottom: 1px solid CanvasText; }
  .direction-card::after { border-color: Highlight; box-shadow: none; }
}
