/* ==========================================================================
   MCPO im. M.V. Lomonosov — art direction "AURORA PREMIUM"
   Drop-in replacement for styles.css. index.html / script.js stay untouched.
   Dark ink base (#05070F family), aurora glass surfaces, gilded display type.
   Accents: brand gold + aurora teal (2 hues max) on neutral ink ramp.
   Fonts: Unbounded (display, Cyrillic) + Manrope (body, Cyrillic).
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@300;400;500;600&display=swap");

:root {
  color-scheme: dark;

  /* ---- Ink ladder: sections differ by luminosity, never by going light ---- */
  --ink-950: #03050B; /* footer, deepest */
  --ink-900: #05070F; /* base / hero */
  --ink-850: #070B16; /* about */
  --ink-800: #0A101F; /* directions */
  --ink-750: #0D1426; /* tech, top */
  --ink-700: #080D1B; /* tech, bottom */
  --ink-650: #060A13; /* info */

  /* ---- Text ramp (verified >= 4.5:1 on every ink above) ---- */
  --tx-hi:   #F2F5FB; /* headings */
  --tx-body: #AFB9CD; /* body copy */
  --tx-mid:  #93A0B8; /* leads, subs */
  --tx-low:  #7E8BA3; /* labels, meta */

  /* ---- Accent I: brand gold ---- */
  --gold-300: #E9CE85;
  --gold-400: #D9B65C;
  --gold-500: #C19A3D;
  --gold-600: #A8842E;

  /* ---- Accent II: aurora teal ---- */
  --aur-300: #7FE8D2;
  --aur-400: #4ED4B8;
  --aur-500: #35B89C;
  --aur-600: #1F8F79;

  /* ---- Lines & glass ---- */
  --line:       rgba(151, 166, 195, 0.14);
  --line-soft:  rgba(151, 166, 195, 0.08);
  --glass-fill:   linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  --glass-border: rgba(151, 166, 195, 0.16);

  /* ---- Signature gradients ---- */
  --aurora-hairline: linear-gradient(90deg, transparent, rgba(217, 182, 92, 0.7) 32%, rgba(78, 212, 184, 0.55) 68%, transparent);
  --aurora-line: linear-gradient(90deg, var(--gold-500), var(--aur-400));
  --gold-text: linear-gradient(115deg, #F4E2A8 0%, #DDBE69 34%, #C19A3D 62%, #E5CB87 100%);

  /* ---- Type ---- */
  --font-display: "Unbounded", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  /* ---- Geometry: one radius system ---- */
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* ---- Spacing scale ---- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px;

  --container: 1160px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
}

/* ============ Base ============ */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip; /* clip keeps position:sticky alive */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tx-body);
  background: var(--ink-900);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Barely-there film grain: kills gradient banding on dark surfaces */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(78, 212, 184, 0.32);
  color: #F2F5FB;
}

img, svg { max-width: 100%; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--aur-300);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

section[id], main[id] { scroll-margin-top: 88px; }

/* Gilded gradient accent inside headings (readable: lightest stops dominate) */
.gold {
  font-style: normal;
  color: var(--gold-400);
}

@supports (-webkit-background-clip: text) {
  .gold {
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ============ Scroll progress hairline ============ */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 1000;
  background: var(--aurora-line);
  box-shadow: 0 0 12px rgba(78, 212, 184, 0.45);
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Gradient hairline under the header, appears with .is-scrolled */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--aurora-hairline);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 15, 0.84);
  border-bottom-color: var(--line-soft);
}

.site-header.is-scrolled::after { opacity: 1; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--tx-hi);
}

.emblem-img {
  display: block;
  height: 46px;
  width: auto;
}

.brand-text { min-width: 0; }

.brand-name {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--tx-hi);
}

.brand-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tx-low);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--tx-mid);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 0;
  background-image: var(--aurora-line);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1.5px;
  transition: color 0.25s ease, background-size 0.35s var(--ease-out);
}

.site-nav a:hover {
  color: var(--tx-hi);
  background-size: 100% 1.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 4px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--tx-hi);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 16vh, 184px) 0 clamp(84px, 11vh, 132px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.hero-glow--gold {
  top: -220px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(193, 154, 61, 0.16), transparent 62%);
}

/* "navy" glow re-pitched to aurora teal — the cool pole of the palette */
.hero-glow--navy {
  bottom: -280px;
  left: -240px;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(53, 184, 156, 0.13), transparent 60%);
}

/* Slowly rotating "orrery" — a nod to Lomonosov the scientist */
.orrery {
  position: absolute;
  top: -240px;
  right: -260px;
  width: 760px;
  height: 760px;
  color: var(--aur-400);
  opacity: 0.45;
}

.orrery-spin {
  transform-origin: 400px 400px;
  animation: spin 140s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  flex: none;
  width: 44px;
  height: 1.5px;
  background: var(--aurora-line);
}

.hero-title {
  margin: 28px 0 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.6vw + 0.6rem, 4.35rem);
  line-height: 1.14;
  letter-spacing: 0.012em;
  color: var(--tx-hi);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero-title .line > span { display: block; }

/* Middle line: aurora contour treatment */
.outline {
  color: var(--aur-300);
}

@supports (-webkit-text-stroke: 1px black) {
  .outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(127, 232, 210, 0.85);
    filter: drop-shadow(0 0 26px rgba(78, 212, 184, 0.16));
  }
}

.hero-lead {
  margin: 0;
  max-width: 660px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--tx-mid);
  text-wrap: pretty;
}

/* Entrance choreography (JS-gated, reduced-motion aware) */
@keyframes rise {
  to { transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

html.js .hero-title .line > span {
  transform: translateY(112%);
  animation: rise 0.9s var(--ease-out) forwards;
}

html.js .hero-title .line:nth-child(1) > span { animation-delay: 0.15s; }
html.js .hero-title .line:nth-child(2) > span { animation-delay: 0.3s; }
html.js .hero-title .line:nth-child(3) > span { animation-delay: 0.45s; }

html.js .eyebrow { opacity: 0; animation: fadeUp 0.7s ease 0.05s forwards; }
html.js .hero-lead { opacity: 0; animation: fadeUp 0.7s ease 0.6s forwards; }
html.js .hero-scroll { opacity: 0; animation: fadeUp 0.7s ease 0.85s forwards; }

.hero-scroll {
  margin-top: 64px;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(127, 232, 210, 0.5);
  border-radius: 50%;
  color: var(--aur-300);
  background: rgba(78, 212, 184, 0.06);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  animation: bob 3.2s ease-in-out infinite;
}

.hero-scroll:hover {
  background: rgba(78, 212, 184, 0.14);
  box-shadow: 0 0 26px rgba(78, 212, 184, 0.25);
  transform: translateY(2px);
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 7px; }
}

/* ============ Section scaffolding ============ */

.section {
  position: relative;
  padding-block: clamp(88px, 12vw, 148px);
}

/* 01 — About */
.section--numbered { background: var(--ink-850); }

/* 02 — Directions: aurora field behind the glass cards (2 gradients max) */
.section--white {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(193, 154, 61, 0.07), transparent 60%),
    radial-gradient(800px 520px at 0% 110%, rgba(53, 184, 156, 0.07), transparent 62%),
    var(--ink-800);
}

/* Oversized outlined numeral watermark */
.section--numbered::before {
  content: attr(data-num);
  position: absolute;
  top: clamp(14px, 4vw, 40px);
  right: 3%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 1;
  color: rgba(151, 166, 195, 0.07);
  pointer-events: none;
  user-select: none;
}

@supports (-webkit-text-stroke: 1px black) {
  .section--numbered::before {
    color: transparent;
    -webkit-text-stroke: 1px rgba(151, 166, 195, 0.16);
  }
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.kicker-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold-400);
}

.kicker-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx-low);
  white-space: nowrap;
}

.kicker-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 182, 92, 0.4), transparent);
}

.section-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw + 0.6rem, 2.5rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--tx-hi);
  max-width: 780px;
  text-wrap: balance;
}

.section-sub {
  margin: 0;
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--tx-mid);
}

/* ============ About ============ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 48px;
  margin-top: 16px;
  max-width: 1020px;
}

.about-grid p {
  margin: 0;
  font-size: 1.03rem;
  color: var(--tx-mid);
}

.about-grid .lede {
  font-size: 1.16rem;
  color: var(--tx-body);
}

.about-grid .lede::first-letter {
  float: left;
  padding: 0.08em 0.14em 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.9em;
  line-height: 0.86;
  color: var(--gold-400);
}

.about-quote {
  position: relative;
  margin: 60px auto 0;
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
}

.about-quote::before {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 0 auto 30px;
  background: var(--aurora-line);
}

.about-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw + 0.5rem, 1.55rem);
  line-height: 1.6;
  color: var(--tx-hi);
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold-400);
  opacity: 0.9;
}

.quote-mark--close { margin-left: 0.15em; }

/* ============ Directions — glass cards ============ */

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
  align-items: stretch;
}

.direction-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--glass-fill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 34px 32px 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Aurora top edge, wipes in on hover */
.direction-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--aurora-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.direction-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 182, 92, 0.45);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 28px 56px rgba(0, 0, 0, 0.42);
}

.direction-card:hover::after { transform: scaleX(1); }

.direction-num {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--aur-300);
}

.direction-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tx-hi);
}

.direction-card > p {
  margin: 0 0 18px;
  font-size: 0.98rem;
  color: var(--tx-mid);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--tx-body);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--aurora-line);
}

.chips-label {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tx-low);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.84rem;
  font-weight: 600;
  color: #C9D3E3;
  border: 1px solid rgba(78, 212, 184, 0.32);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  background: rgba(78, 212, 184, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  background: rgba(78, 212, 184, 0.12);
  border-color: rgba(78, 212, 184, 0.6);
}

.card-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(151, 166, 195, 0.22);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--tx-mid);
}

/* ============ Themes marquee ============ */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: #050810;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}

.marquee-group span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #98A4BB;
}

.marquee-group i {
  font-style: normal;
  font-size: 0.55rem;
  color: var(--gold-400);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ Technology ============ */

.section--tech {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-750), var(--ink-700));
}

/* Teal aura + blueprint grid (SVG pattern, not a gradient layer) */
.section--tech::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 12% 0%, rgba(53, 184, 156, 0.12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 .5H0M.5 0v64' stroke='%23FFFFFF' stroke-opacity='0.045' fill='none'/%3E%3C/svg%3E");
}

.section--tech .container { position: relative; z-index: 1; }

.section--tech .kicker-label { color: rgba(255, 255, 255, 0.66); }
.section--tech .kicker-rule { background: linear-gradient(90deg, rgba(127, 232, 210, 0.4), transparent); }
.section--tech .kicker-num { color: var(--aur-300); }
.section--tech .section-title { color: #FFFFFF; }
.section--tech .section-sub { color: rgba(255, 255, 255, 0.72); }

@supports (-webkit-text-stroke: 1px black) {
  .section--tech.section--numbered::before {
    -webkit-text-stroke: 1px rgba(127, 232, 210, 0.14);
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 54px;
}

.tech-card {
  position: relative;
  background: var(--glass-fill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-lg);
  padding: 30px 28px 32px;
  transition: transform 0.3s var(--ease-out);
}

/* Gradient border, revealed on hover (mask trick) */
.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(127, 232, 210, 0.7), rgba(127, 232, 210, 0.12) 35%, rgba(255, 255, 255, 0.08) 60%, rgba(217, 182, 92, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tech-card:hover {
  transform: translateY(-4px);
}

.tech-card:hover::before { opacity: 1; }

.tech-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(127, 232, 210, 0.35);
  background: radial-gradient(circle at 30% 25%, rgba(78, 212, 184, 0.22), rgba(78, 212, 184, 0.04) 70%);
  color: var(--aur-300);
  transition: box-shadow 0.3s ease;
}

.tech-card:hover .tech-icon {
  box-shadow: 0 0 26px rgba(78, 212, 184, 0.22);
}

.tech-icon svg { width: 24px; height: 24px; }

.tech-card h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
  color: #FFFFFF;
}

.tech-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.72);
}

.tech-note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 46px 0 0;
  padding: 28px 32px;
  border: 1px solid rgba(217, 182, 92, 0.38);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(193, 154, 61, 0.13), rgba(193, 154, 61, 0.04));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold-300);
}

.tech-note p {
  margin: 0;
  font-size: 0.99rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

.tech-note svg { flex: none; margin-top: 3px; }

/* ============ Info & contacts ============ */

#info {
  background:
    radial-gradient(760px 420px at 100% 0%, rgba(193, 154, 61, 0.06), transparent 62%),
    var(--ink-650);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 52px;
  align-items: stretch;
}

.info-card {
  background: var(--glass-fill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 36px 36px 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.26);
}

/* Aurora top edge for the license card (::before keeps the radius intact) */
.info-card.license {
  position: relative;
  overflow: hidden;
}

.info-card.license::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--aurora-line);
}

.license-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.license-top h3 { margin-top: 0; }

.seal {
  flex: none;
  width: 116px;
  height: 116px;
  color: var(--gold-400);
  opacity: 0.92;
}

.seal text { font-family: var(--font-body); }

.info-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--tx-hi);
}

.info-card > p {
  margin: 0 0 22px;
  font-size: 0.97rem;
  color: var(--tx-mid);
}

.license-top p { margin-bottom: 22px; }

.meta { margin: 0; }

.meta-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 4px 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.meta-row:last-child { border-bottom: 0; }

.meta-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-low);
}

.meta-row dt svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--gold-400);
}

.meta-row dd {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 600;
  color: #D7DEEA;
}

.meta-row a {
  color: var(--aur-300);
  text-decoration: none;
  background-image: linear-gradient(90deg, rgba(127, 232, 210, 0.55), rgba(127, 232, 210, 0.2));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  transition: color 0.2s ease;
}

.meta-row a:hover { color: var(--gold-300); }

/* ============ Footer ============ */

.site-footer {
  background: var(--ink-950);
  color: var(--tx-mid);
  padding: 60px 0 34px;
  border-top: 1px solid;
  border-image: var(--aurora-hairline) 1;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }

.footer-brand .brand-mark {
  color: var(--tx-hi);
}

.footer-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-tagline {
  margin: 3px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(233, 206, 133, 0.75);
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }

.footer-nav a {
  color: var(--tx-low);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--aur-300); }

.back-to-top {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(127, 232, 210, 0.45);
  border-radius: 50%;
  color: var(--aur-300);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top:hover {
  background: rgba(78, 212, 184, 0.12);
  box-shadow: 0 0 24px rgba(78, 212, 184, 0.28);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.83rem;
  color: var(--tx-low);
}

.footer-bottom p { margin: 0; }

/* ============ Reveal on scroll (progressive enhancement) ============ */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

html.js .reveal[data-delay="1"] { transition-delay: 0.12s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.24s; }

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ Glass fallback (no backdrop-filter support) ============ */

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .direction-card,
  .tech-card,
  .info-card,
  .tech-note {
    background: rgba(13, 20, 36, 0.88);
  }
}

/* ============ Responsive ============ */

@media (max-width: 1020px) {
  .directions-grid { grid-template-columns: 1fr 1fr; }
  .direction-card:last-child { grid-column: 1 / -1; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .tech-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 9, 18, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
    padding: 8px clamp(20px, 4vw, 32px) 18px;
  }

  .site-nav.is-open {
    display: flex;
    animation: navDrop 0.3s var(--ease-out);
  }

  .site-nav a {
    padding: 15px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line-soft);
    background-image: none;
  }

  .site-nav a:hover { background-size: 0; color: var(--tx-hi); }
  .site-nav a:last-child { border-bottom: 0; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .brand-sub { display: none; }

  .eyebrow { letter-spacing: 0.09em; }
  .eyebrow::before, .eyebrow::after { display: none; }

  .orrery {
    top: auto;
    bottom: -360px;
    right: -340px;
    opacity: 0.25;
  }

  .hero-scroll { margin-top: 48px; }

  .section--numbered::before { right: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 10px; }

  .directions-grid { grid-template-columns: 1fr; }
  .direction-card:last-child { grid-column: auto; }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-card:last-child { grid-column: auto; }
  .info-grid { grid-template-columns: 1fr; }

  .meta-row { grid-template-columns: 1fr; gap: 3px; }

  .info-card { padding: 30px 26px 22px; }

  .seal { width: 92px; height: 92px; }

  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .seal { width: 84px; height: 84px; }
  .hero-scroll { margin-top: 40px; }
  .direction-card { padding: 28px 22px 26px; }
  .tech-card { padding: 26px 22px 28px; }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js .reveal,
  html.js .hero-title .line > span,
  html.js .eyebrow,
  html.js .hero-lead,
  html.js .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none;
  }
}
