/* ==========================================================================
   UltraVision Corporation - site stylesheet
   Plain CSS, no build step. Design tokens live in :root.
   ========================================================================== */

:root {
  --bg: #0a1628;
  --bg-2: #0d1b30;
  --bg-3: #112240;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e8eef8;
  --text-soft: #c3cfe0;
  --muted: #94a5bf;
  --primary: #0066ff;
  --primary-soft: rgba(0, 102, 255, 0.18);
  --secondary: #00c2ff;
  --accent: #00ffb8;
  --accent-soft: rgba(0, 255, 184, 0.14);
  --crest: #d8232a;
  --gradient: linear-gradient(135deg, #0066ff 0%, #00c2ff 55%, #00ffb8 100%);
  --gradient-text: linear-gradient(135deg, #4d94ff 0%, #00c2ff 60%, #00ffb8 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --nav-h: 72px;
  --container: 1200px;
  --gutter: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth scrolling is deliberately off: animated scrolls stall in throttled or embedded
   browser views and make in-page links feel like the page is fighting the user. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
strong { color: #fff; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(0, 194, 255, 0.35); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--accent); color: #042; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1320px; }

/* ---------- Typography helpers ---------- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gradient); border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.text-center { text-align: center; }
.text-center .lead, .text-center .eyebrow { margin-left: auto; margin-right: auto; }
.text-center .eyebrow::before { display: none; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--primary-soft); color: #8ab8ff;
}
.tag--accent { background: var(--accent-soft); color: var(--accent); }
.tag--secondary { background: rgba(0, 194, 255, 0.15); color: var(--secondary); }
.tag--warm { background: rgba(255, 170, 60, 0.15); color: #ffc46b; }
.reg-note { font-size: 0.82rem; line-height: 1.5; color: var(--muted); border-left: 2px solid #ffc46b; padding: 2px 0 2px 12px; margin: 14px 0 0; }
.reg-note + .link-arrow { margin-top: 14px; }
.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(0, 255, 184, 0.35); color: #fff;
  font-size: 0.9rem; font-weight: 500; text-decoration: none !important; transition: background 0.15s ease;
}
.announce .tag { background: var(--accent); color: #04122b; }
.announce svg { width: 16px; height: 16px; flex: none; }
.announce:hover { background: rgba(0, 255, 184, 0.24); }
.announce-wrap { margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important; white-space: nowrap; color: #fff; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--gradient); background-origin: border-box; color: #04122b; box-shadow: 0 10px 30px rgba(0, 150, 255, 0.25); }
.btn--primary:hover { opacity: 0.92; }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: #fff; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--outline { background: transparent; border-color: var(--primary); color: #fff; }
.btn--outline:hover { background: var(--primary); }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--secondary); }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(10, 22, 40, 0.9);
  border-bottom: 1px solid var(--border); transition: background 0.2s ease;
}
.nav.is-scrolled { background: rgba(10, 22, 40, 0.97); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none !important; line-height: 1.1; }
.brand__mark { width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); flex: none; }
.brand__mark img { width: 26px; height: auto; }
.brand__text small { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1; margin-top: 3px; }

.nav__menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 10px;
  color: var(--text-soft); font-weight: 500; font-size: 0.95rem; background: none; border: 0; cursor: pointer; text-decoration: none !important;
}
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link.is-active { color: #fff; background: var(--surface); }
.nav__link svg { width: 14px; height: 14px; opacity: 0.7; transition: transform 0.15s ease; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__cta { margin-left: 10px; }
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; padding: 8px;
  background: #0f1f3a; border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow);
  list-style: none; margin: 0; display: none;
}
.sub.is-open { display: block; }
.sub a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--text-soft); font-size: 0.93rem; text-decoration: none !important; }
.sub a:hover { background: var(--surface-2); color: #fff; }
.sub a small { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: #fff; cursor: pointer; place-items: center; }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }
.nav.is-open .nav__toggle .icon-menu { display: none; }

@media (max-width: 1040px) {
  .nav__toggle { display: grid; }
  /* The panel is positioned relative to the fixed bar itself and given an explicit height,
     because position:fixed children would otherwise escape the bar. */
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; overflow-y: auto;
    height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 2px; padding: 16px var(--gutter) 40px;
    background: rgba(10, 22, 40, 0.98); border-top: 1px solid var(--border); display: none;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .sub { position: static; min-width: 0; box-shadow: none; background: transparent; border: 0; padding: 0 0 6px 12px; }
  .sub a { padding: 10px 12px; }
  .nav__cta { margin: 14px 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: linear-gradient(180deg, var(--bg) 0%, #050b16 100%); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }
.section__head .lead:last-child { margin-bottom: 0; }

.glow { position: absolute; border-radius: 50%; opacity: 0.22; pointer-events: none; background: radial-gradient(closest-side, var(--glow-color), transparent); }
.glow--blue { --glow-color: var(--primary); }
.glow--cyan { --glow-color: var(--secondary); }
.glow--green { --glow-color: var(--accent); opacity: 0.12; }
.bg-grid { position: relative; }
.bg-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 8vw, 100px); overflow: hidden; position: relative; }
.hero .container { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy .badge { margin-bottom: 26px; }
.hero__copy h1 { margin-bottom: 22px; }
.hero__copy .lead { margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5)); }
.hero__media-card { position: absolute; bottom: -12px; left: -12px; padding: 14px 18px; border-radius: 14px; background: rgba(13, 27, 48, 0.9); border: 1px solid var(--border-strong); font-size: 0.85rem; max-width: 280px; color: var(--muted); }
.hero__media-card strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--border); }
.stat__value { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat__label { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; margin: 0 auto; }
  .hero__media-card { left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Inner page hero */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 6vw, 72px); overflow: hidden; border-bottom: 1px solid var(--border); position: relative; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 22ch; }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero__media img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); }
.page-hero__media--tile { background: linear-gradient(160deg, #ffffff, #e9eef5); border-radius: var(--radius-lg); padding: 28px; }
.page-hero__media--tile img { filter: none; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__media { max-width: 560px; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4, .grid--split { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { background: var(--surface-2); border-color: var(--border-strong); }
a.card { color: inherit; text-decoration: none !important; display: block; }
a.card:hover { transform: translateY(-3px); }
a.card .muted, a.card .kicker { color: var(--muted); }
.card--featured { border-color: rgba(0, 194, 255, 0.5); box-shadow: 0 0 0 1px rgba(0, 194, 255, 0.25), 0 20px 50px rgba(0, 120, 255, 0.15); }
.card--featured .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--gradient); color: #04122b; font-size: 0.78rem; font-weight: 700; white-space: nowrap; z-index: 2; }
.card__icon { width: 50px; height: 50px; border-radius: 13px; background: var(--gradient); display: grid; place-items: center; margin-bottom: 18px; color: #04122b; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .kicker { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.card__media { margin: -28px -28px 22px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: linear-gradient(160deg, #ffffff, #e9eef5); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 22px; }
.card__media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.card__media--dark { background: #050b16; padding: 0; }
.card__media--dark img { width: 100%; height: 100%; object-fit: cover; }
.card--featured .card__media { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.check-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 3px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300ffb8'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.icon-row { display: flex; gap: 16px; align-items: flex-start; }
.icon-row .card__icon { margin: 0; flex: none; width: 46px; height: 46px; }
.icon-row h4 { margin-bottom: 4px; }
.icon-row p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.stack { display: grid; gap: 22px; }
.steps { counter-reset: step; }
.steps .card { padding-top: 34px; }
.steps .card::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 18px; right: 22px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--secondary); }

/* Feature "list card" (used for marketplace packages etc.) */
.list-card { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.list-card + .list-card { margin-top: 12px; }
.list-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.list-card__top strong { font-size: 1rem; }
.list-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* People (team / board) */
.person { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.person__avatar {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; overflow: hidden;
  background: var(--gradient); color: #04122b; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 2px; font-size: 1.2rem; }
.person .role { color: var(--secondary); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.person p { color: var(--muted); font-size: 0.95rem; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } }

/* Pricing / plan cards */
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1.1; margin: 14px 0 4px; }
.plan .price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .price-note { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }

/* ---------- Spec tables ---------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 0; }
.specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.specs dt { color: var(--muted); font-size: 0.9rem; margin: 0; }
.specs dd { margin: 0; color: var(--text); }
@media (max-width: 720px) { .specs { grid-template-columns: 1fr; } .specs > div { grid-template-columns: 120px 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 0.95rem; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { white-space: nowrap; font-weight: 600; color: #fff; }
.table--wrap td:first-child { white-space: normal; }

/* ---------- Media / galleries ---------- */
figure { margin: 0; }
.figure { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: #050b16; display: flex; flex-direction: column; }
.figure img { width: 100%; object-fit: cover; flex: 1 1 auto; }
.figure figcaption { padding: 12px 14px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
.figure--tile { background: linear-gradient(160deg, #ffffff, #e9eef5); }
.figure--tile img { object-fit: contain; padding: 18px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .gallery, .gallery--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery, .gallery--2, .gallery--4 { grid-template-columns: 1fr; } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #050b16; }
.media-frame--tile { background: linear-gradient(160deg, #ffffff, #e9eef5); padding: 28px; }
.media-frame--tile img { object-fit: contain; }
.video-card video { width: 100%; aspect-ratio: 3 / 2; background: #000; }

/* ---------- Long-form content ---------- */
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--text-soft); }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose figure { margin: 1.6em 0; }
.prose .figure img { object-fit: contain; }
.prose .gallery { margin: 1.6em 0; }
.prose .gallery figure { margin: 0; }
.note { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px solid rgba(0, 120, 255, 0.35); color: var(--text-soft); font-size: 0.95rem; }
.note strong { color: #fff; }
.note p:last-child { margin-bottom: 0; }
.note--accent { background: var(--accent-soft); border-color: rgba(0, 255, 184, 0.3); }
.note--warm { background: rgba(255, 170, 60, 0.1); border-color: rgba(255, 170, 60, 0.35); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px var(--bg); }
.timeline .when { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); }
.timeline h4 { margin: 4px 0 6px; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); text-align: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.22), rgba(0, 194, 255, 0.12) 50%, rgba(0, 255, 184, 0.14));
  border: 1px solid rgba(0, 194, 255, 0.35);
}
.cta h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta .lead { margin: 0 auto 28px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05); color: #fff; font: inherit; font-size: 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2394a5bf' stroke-width='2'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { color: #111; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.2); }
.form__status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 0.95rem; }
.form__status.is-ok { display: block; background: var(--accent-soft); border: 1px solid rgba(0, 255, 184, 0.35); color: #d9fff2; }
.form__status.is-err { display: block; background: rgba(255, 90, 90, 0.12); border: 1px solid rgba(255, 90, 90, 0.4); color: #ffd9d9; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card__icon { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-list strong { display: block; margin-bottom: 2px; }
.contact-list a { color: var(--text); }
.contact-list .muted { font-size: 0.92rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: clamp(48px, 6vw, 80px) 0 32px; background: #060e1c; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-soft); }
.footer a:hover { color: #fff; }
.footer__about p { color: var(--muted); font-size: 0.95rem; max-width: 36ch; }
.footer__about address { font-style: normal; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transition: opacity 0.5s ease; }
.reveal.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: var(--nav-h); }
.error-page h1 { font-size: clamp(4rem, 12vw, 9rem); line-height: 1; }
