@import url("fonts.css");

/* ==========================================================================
   CTVS Group. Locked dark theme, one accent, hairline rules, no shadows.
   ========================================================================== */

:root {
  --bg:          #0D1117;
  --bg-raised:   #151B24;
  --bg-deep:     #090C11;
  --rule:        #232B36;
  --rule-strong: #38424F;
  --text:        #E8E6E1;
  --text-bright: #F7F5F0;
  --muted:       #8A9199;
  --copper:      #C06B2E;
  --copper-lt:   #D98F51;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 88px);
  --max: 1560px;
  --section-y: clamp(72px, 11vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--copper); color: #0D1117; }

:focus-visible {
  outline: 2px solid var(--copper-lt);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--copper); color: #0D1117; padding: 12px 20px;
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------- layout ------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--raised { background: var(--bg-raised); }
.rule-top { border-top: 1px solid var(--rule); }

/* ----------------------------------------------------- typography ------- */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
  color: var(--text-bright);
  text-wrap: balance;
}

.display  { font-size: clamp(2.4rem, 6vw, 4.9rem); }
.h2       { font-size: clamp(1.85rem, 3.9vw, 3.15rem); }
.h3       { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.018em; line-height: 1.18; }
.h4       { font-size: 1.02rem; letter-spacing: -0.005em; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--text-bright);
  letter-spacing: -0.011em;
  max-width: 34ch;
}

.body-wide { max-width: 66ch; color: var(--text); }
.muted { color: var(--muted); }

.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
  display: block;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------- header ------- */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 72px;
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(13, 17, 23, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule);
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand-bar { width: 1px; height: 27px; background: var(--rule-strong); }
.brand-name { display: block; font-size: 17px; font-weight: 600; letter-spacing: .10em; color: var(--text-bright); line-height: 1; }
.brand-sub { display: block; font: 400 8.5px/1 var(--mono); letter-spacing: .30em; color: var(--copper); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  font-size: 13.5px; font-weight: 500; color: var(--text); letter-spacing: -0.003em;
  padding-block: 6px; position: relative; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--copper); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--text-bright); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text-bright); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 13px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  padding: 13px 22px; border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--copper); color: #0D1117; font-weight: 600; }
.btn--primary:hover { background: var(--copper-lt); }
.btn--ghost { border-color: var(--rule-strong); color: var(--text-bright); }
.btn--ghost:hover { border-color: var(--copper); color: var(--copper-lt); }
.btn--lg { padding: 17px 30px; font-size: 14px; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--text-bright); margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ----------------------------------------------------------- hero ------- */

.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding-top: 72px; padding-bottom: clamp(48px, 7vw, 92px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13,17,23,.97) 6%, rgba(13,17,23,.72) 42%, rgba(13,17,23,.34) 74%, rgba(13,17,23,.55) 100%),
    linear-gradient(to right, rgba(13,17,23,.82) 0%, rgba(13,17,23,.18) 62%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 76px); align-items: end; }
.hero h1 { max-width: 15ch; }
.hero__aside { padding-bottom: 8px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ------------------------------------------------------- statement ------ */

.statement { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.statement__body { font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.5; letter-spacing: -0.015em; color: var(--text-bright); max-width: 30ch; }
.statement__body strong { font-weight: 600; color: var(--copper-lt); }
.statement__notes { max-width: 60ch; color: var(--muted); }
.statement__notes p { margin-bottom: 1.3em; }

/* ------------------------------------------------------ capability ------ */

.cap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.cap__list { border-top: 1px solid var(--rule); }
.cap__item {
  display: grid; grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  padding: clamp(26px, 3.2vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
  transition: border-color .35s var(--ease);
}
.cap__item:hover { border-bottom-color: var(--rule-strong); }
.cap__no { font: 500 11px/1.8 var(--mono); color: var(--copper); letter-spacing: .1em; }
.cap__item h3 { margin-bottom: 10px; }
.cap__item p { color: var(--muted); max-width: 62ch; margin: 0; font-size: 15.5px; }

/* ------------------------------------------------------- figures ------- */

.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.figs > div { padding: clamp(26px, 3vw, 42px) clamp(16px, 2vw, 34px) clamp(26px, 3vw, 38px) 0; border-bottom: 1px solid var(--rule); }
.figs > div + div { border-left: 1px solid var(--rule); padding-left: clamp(18px, 2.2vw, 38px); }
.fig__val { font: 400 clamp(2rem, 4.4vw, 3.4rem)/1 var(--mono); color: var(--text-bright); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fig__val span { font-size: .42em; color: var(--copper); letter-spacing: 0; margin-left: .3em; }
.fig__key { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 22ch; }

/* --------------------------------------------------------- model ------- */

.model { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.model__sticky { position: sticky; top: 132px; }
.model__steps { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.model__step { background: var(--bg); padding: clamp(28px, 3.4vw, 46px) clamp(20px, 3vw, 44px); transition: background .4s var(--ease); }
.model__step.is-in { background: var(--bg-raised); }
.model__step .num { font: 500 11px/1 var(--mono); color: var(--copper); letter-spacing: .18em; display: block; margin-bottom: 18px; }
.model__step h3 { margin-bottom: 12px; }
.model__step p { color: var(--muted); font-size: 15.5px; max-width: 58ch; margin: 0; }

/* -------------------------------------------------------- feature ------ */

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 0; }
.feature__media { position: relative; min-height: clamp(340px, 46vw, 620px); overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(36px, 5vw, 88px) clamp(24px, 4vw, 76px); display: flex; flex-direction: column; justify-content: center; background: var(--bg-raised); }

/* --------------------------------------------------------- specs ------- */

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 44px; }
.spec { background: var(--bg); padding: clamp(24px, 2.6vw, 34px); }
.spec dt { font: 500 10.5px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.spec dd { margin: 0; font-size: 15px; color: var(--text); line-height: 1.5; }
.spec dd b { display: block; font: 400 1.6rem/1.1 var(--mono); color: var(--text-bright); letter-spacing: -0.02em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- coverage ------ */

.coverage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
.coverage__map svg { width: 100%; height: auto; }
.coverage__map .land { fill: var(--bg-raised); stroke: var(--rule-strong); stroke-width: 1.1; }
.coverage__node { fill: var(--copper); }
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin: 34px 0 0; padding: 0; list-style: none; }
.regions li { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--text); display: flex; justify-content: space-between; gap: 14px; }
.regions li span { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }

/* ------------------------------------------------------ standards ------ */

.stds { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: clamp(28px, 3.4vw, 56px); }
.stds section h3 { font-size: 1.02rem; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--copper); display: inline-block; }
.stds ul { margin: 0; padding: 0; list-style: none; }
.stds li { font-size: 14.5px; color: var(--muted); padding: 9px 0; line-height: 1.5; }

/* ------------------------------------------------------- cta band ------ */

.band { background: var(--bg-deep); border-top: 1px solid var(--rule); }
.band__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.band h2 { max-width: 17ch; }
.band__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* -------------------------------------------------------- article ------ */

.article { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(30px, 5vw, 84px); align-items: start; }
.article__body h2 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); margin: 56px 0 18px; }
.article__body h2:first-child { margin-top: 0; }
.article__body h3 { font-size: 1.05rem; margin: 34px 0 12px; }
.article__body p, .article__body li { color: var(--text); font-size: 16px; }
.article__body ul, .article__body ol { padding-left: 1.15em; max-width: 68ch; }
.article__body li { margin-bottom: .6em; }
.article__toc { position: sticky; top: 132px; }
.article__toc ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.article__toc li a { display: block; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); transition: color .2s var(--ease); }
.article__toc li a:hover { color: var(--copper-lt); }
.meta { font: 400 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ----------------------------------------------------------- form ------ */

.form { display: grid; gap: 20px; max-width: 620px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-raised); border: 1px solid var(--rule-strong);
  color: var(--text-bright); font: 400 15px/1.5 var(--sans); padding: 13px 15px;
  transition: border-color .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #79818B; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); outline: none; }
.field textarea { min-height: 148px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: #E0764F; display: none; }
.field.is-bad input, .field.is-bad textarea, .field.is-bad select { border-color: #E0764F; }
.field.is-bad .err { display: block; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form__status { font-size: 14.5px; padding: 15px 18px; border: 1px solid var(--rule-strong); display: none; }
.form__status.is-on { display: block; }
.form__status.is-ok { border-color: var(--copper); color: var(--text-bright); }
.form__status.is-err { border-color: #E0764F; color: #E0764F; }

/* --------------------------------------------------------- footer ------ */

.ftr { background: var(--bg-deep); border-top: 1px solid var(--rule); padding-block: clamp(56px, 6vw, 92px) 34px; }
.ftr__cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: clamp(28px, 4vw, 64px); }
.ftr h4 { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 11px; }
.ftr li a { font-size: 14px; color: var(--text); transition: color .2s var(--ease); }
.ftr li a:hover { color: var(--copper-lt); }
.ftr__about { font-size: 14px; color: var(--muted); max-width: 40ch; margin-top: 22px; }
.ftr__legal { margin-top: clamp(44px, 5vw, 72px); padding-top: 26px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: space-between; align-items: flex-start; }
.ftr__reg { font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 66ch; }
.site-credit { font-size: 12.5px; color: var(--muted); margin: 0; }
.site-credit a { color: var(--text); border-bottom: 1px solid var(--rule-strong); }
.site-credit a:hover { color: var(--copper-lt); border-bottom-color: var(--copper); }

/* --------------------------------------------------------- motion ------ */

.rv { opacity: 0; transform: translateY(14px); }
.rv.is-in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.rv-d1.is-in { transition-delay: .05s; }
.rv-d2.is-in { transition-delay: .10s; }
.rv-d3.is-in { transition-delay: .15s; }
.rv-d4.is-in { transition-delay: .20s; }
.rv-d5.is-in { transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv.is-in { opacity: 1; transform: none; transition: none; }
  .hdr, .btn, .nav a::after, .model__step { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ----------------------------------------------------- responsive ------ */

@media (max-width: 1080px) {
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figs > div:nth-child(even) { border-left: 1px solid var(--rule); padding-left: clamp(18px, 3vw, 34px); }
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 26px;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 18px; }
  .burger { display: block; }
  .hdr.is-nav-open { background: var(--bg-deep); border-bottom-color: transparent; }

  .hero__grid, .statement, .cap, .model, .coverage, .feature, .band__inner, .article {
    grid-template-columns: minmax(0, 1fr);
  }
  .model__sticky, .article__toc { position: static; }
  .article__toc { display: none; }
  .feature__media { min-height: 300px; }
  .lede, .statement__body { max-width: 46ch; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .figs > div, .figs > div:nth-child(even) { border-left: 0; padding-left: 0; }
  .regions { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .ftr__cols { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 92dvh; }
}

@media print {
  .hdr, .band, .hero__media { display: none; }
  body { background: #fff; color: #000; }
}
