@font-face {
  font-family: Archivo;
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg-graphite: #1c1f24;
  --bg-blue: #183a6f;
  --bg-orange: #b5520c;
  --bg-green: #14693a;
  --bg-brown: #5a3720;
  --bg-black: #0b0b0c;
  --bg-light: #f3f1ec;
  --ink: #141414;
  --ink-inverse: #ffffff;
  --focus: #2bc2c9;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Archivo, system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink-inverse);
  background: var(--bg-graphite);
}

a {
  color: inherit;
}

[data-bg="light"] {
  --focus: #123f86;
  color: var(--ink);
  background-color: var(--bg-light);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.display {
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:root {
  --gutter: clamp(1.5rem, 6vw, 7rem);
}

[data-bg="graphite"] { background-color: var(--bg-graphite); }
[data-bg="blue"] { background-color: var(--bg-blue); }
[data-bg="orange"] { background-color: var(--bg-orange); }
[data-bg="green"] { background-color: var(--bg-green); }
[data-bg="brown"] { background-color: var(--bg-brown); }
[data-bg="black"] { background-color: var(--bg-black); }

.skip-link {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  top: 1rem;
  transform: translateY(-200%);
  padding: .7rem 1rem;
  background: white;
  color: var(--ink);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  inset: 0 var(--gutter) auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid #ffffff42;
}
.site-header a, .scene-link {
  font-weight: 650;
  text-decoration: none;
}
.site-header a span { margin-left: .5em; }
.logo {
  display: block;
  width: 6rem;
  height: auto;
}
.scene { position: relative; isolation: isolate; overflow: clip; padding: clamp(3rem, 6vw, 6rem) var(--gutter); }
.scene :is(h2, h3, p, figure) { margin: 0; }
.site-header h1 { margin: 0; }
.scene :is(h2, h3) { letter-spacing: -.055em; line-height: .96; }
.scene h2 { font-size: clamp(3.3rem, 6.6vw, 7rem); font-weight: 680; text-wrap: balance; }
.chapter {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  align-content: center;
}
.copy { max-width: 38rem; }
.stage { position: relative; min-width: 0; }
.stage img, .stage svg:not(.map-defs) { display: block; width: 100%; height: auto; }
.copy .eyebrow, .field-photo figcaption span, .invoice-sheet figcaption span {
  font: 650 .72rem/1.35 Archivo, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.copy .eyebrow { margin-bottom: clamp(1rem, 2.2vw, 2rem); }
.copy .eyebrow::before { content: ""; display: inline-block; width: 2.2em; height: 2px; background: currentColor; vertical-align: middle; margin-right: .8em; }
.copy [data-field] { max-width: 33ch; margin-top: 1.3rem; font-size: clamp(1.2rem, 1.65vw, 1.7rem); line-height: 1.26; letter-spacing: -.025em; }
.product-detail, .copy .yard-note {
  border-top: 1px solid #ffffff45;
  margin-top: clamp(1.4rem, 2.5vw, 2.5rem);
  padding-top: 1rem;
  max-width: 49ch;
}
.product-detail .tagline { font-weight: 690; }
.product-detail .summary { margin-top: .25rem; line-height: 1.45; }
.scene-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 1.3rem;
  margin-top: .6rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.scene-link::after { content: "\2198" / ""; }
.scene-link:hover { text-decoration-thickness: 2px; }
[data-scene="network"] {
  padding-top: 7rem;
  background-image: radial-gradient(ellipse at 76% 48%, #263c40, transparent 58%);
}
#network-title { max-width: 7.5ch; font-size: clamp(4.5rem, 8.9vw, 10rem); line-height: .89; letter-spacing: -.073em; }
[data-scene="network"] .scene-link {
  padding: .62rem 1.2rem;
  margin-top: 1.75rem;
  border-radius: 2rem;
  color: #142326;
  background: #edf3df;
  text-decoration: none;
}
[data-surface="network"] { aspect-ratio: 600 / 568; }
[data-scene="yard"], [data-scene="invoice"] { background-image: radial-gradient(ellipse at 75% 45%, #79513a, transparent 66%); }
.stage .reel { width: min(93%, 66svh); margin: auto; filter: drop-shadow(.4rem 1.7rem 1rem #26180e70); }
[data-scene="route"] { background-image: linear-gradient(115deg, #123f31, transparent 88%); }
[data-scene="route"] .stage, [data-scene="demo"] .stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 24%; align-items: center; gap: clamp(.65rem, 1.5vw, 1.5rem);
}
.map-defs { position: absolute; }
.route-window { min-width: 0; }
.route-track { display: grid; gap: 1rem; }
html.js-motion .route-window { overflow: clip; }
html.js-motion .route-track { display: flex; gap: 0; }
html.js-motion .route-panel { flex: 0 0 100%; }
.route-panel { min-width: 0; background: #eeefdc; color: #263b30; }
.route-panel svg { overflow: hidden; }
.map-leader { fill: none; stroke: #384939; stroke-width: 1.5; }
.map-tag { fill: #324536; }
.map-label { fill: #fffbe8; font: 600 15px Archivo, sans-serif; }
.app-screen { border: 3px solid #263435; border-radius: 8% / 3.7%; box-shadow: 0 .7rem 1.6rem #001d243b; }
[data-scene="pole"] { background-image: linear-gradient(115deg, #8c3d16, transparent 84%); }
.field-photo { background: #e8b387; color: #251811; }
.closure-view { position: relative; overflow: hidden; aspect-ratio: 1.8; background: linear-gradient(155deg,#ecc6a0,#c98d5d); }
.stage .closure-view svg { position: absolute; inset: 0; height: 100%; }
.stage .closure { position: relative; width: 104%; max-height: 100%; object-fit: cover; object-position: center; margin-left: -2%; }
.field-photo figcaption { display: grid; gap: .2rem; padding: 1.1rem 1.4rem; background: #35231c; color: #fff4df; }
.field-photo strong { font-size: clamp(1.4rem, 2.8vw, 2.9rem); font-weight: 580; letter-spacing: -.04em; line-height: 1.1; }
.field-photo figcaption span:last-child { text-transform: none; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
[data-surface="inside"] { width: min(100%, 74svh); justify-self: center; }
[data-surface="inside"] img { mask-image: radial-gradient(ellipse 71% 71%, black 60%, transparent); }
[data-surface="inside"] .tube { width: 79%; margin-left: auto; }
[data-scene="demo"] { border-top: 1px solid #ffffff32; }
[data-scene="demo"] .stage { grid-template-columns: minmax(0, 1fr) 26%; }
.invoice-sheet {
  max-width: 38rem; margin-inline: auto;
  background: #f6f1df; color: #312b23; padding: clamp(1.2rem, 3.6vw, 3.5rem);
  box-shadow: 0 1rem 3rem #28160e38; font-variant-numeric: tabular-nums;
}
.invoice-sheet figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-bottom: .75rem; border-bottom: 1px solid #a7a08c; }
.invoice-sheet figcaption strong { font-size: 1.1rem; letter-spacing: -.035em; }
.invoice-sheet h3 { font-weight: 560; font-size: clamp(2.3rem, 4vw, 4.4rem); margin-block: 1.8rem; }
.invoice-sheet table { width: 100%; border-collapse: collapse; text-align: left; }
.invoice-sheet th, .invoice-sheet td { padding: .7rem 0; border-bottom: 1px solid #bdb7a5; }
.invoice-sheet thead th { font-size: .77rem; }
.invoice-sheet :is(th, td):not(:first-child) { text-align: right; }
.invoice-sheet .invoice-total { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; font-weight: 650; }
.invoice-total strong { font-size: clamp(2.2rem, 3.5vw, 4rem); letter-spacing: -.065em; line-height: 1; }

[data-scene="demo"] fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  min-inline-size: 0;
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid #ffffff80;
  border-radius: .6rem;
}
[data-scene="demo"] legend { padding-inline: .4rem; font-weight: 700; }
[data-scene="demo"] label { flex-basis: 100%; }
[data-scene="demo"] :is(input, button) {
  min-height: 44px;
  border: 1px solid white;
  border-radius: .35rem;
  padding: .5rem .65rem;
  font: inherit;
}
[data-scene="demo"] input { width: 3.6rem; color: var(--ink); background: white; }
[data-scene="demo"] button { cursor: pointer; color: white; background: #112c56; }
[data-scene="demo"] output { flex-basis: 100%; font-weight: 650; }
[data-surface="demo"] {
  width: 100%;
  aspect-ratio: 1;
  justify-self: center;
}
[data-surface="demo"]:empty { display: none; }
[data-surface="demo"]:empty + .app-screen {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(44%, 28svh);
}
.fiber-ring {
  display: block;
  width: 100%;
  background: #102b50;
  border: 1px solid #ffffff60;
  border-radius: 50%;
}
.fiber-ring circle { stroke-width: .35; }
.fiber-ring [data-lit] {
  stroke: white;
  stroke-width: 1.05;
  filter: drop-shadow(0 0 .4px black) drop-shadow(0 0 .4px black);
}
.fiber-ring [data-tube][data-lit] { stroke-width: 1.4; }
.marquee { padding-inline: 0; }
.marquee-track {
  margin-inline: var(--gutter);
  font-size: clamp(1.5rem, 8vw, 9rem);
  font-weight: 850;
  font-stretch: 115%;
  line-height: 1;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.marquee-track [aria-hidden] { display: none; }
html.js-motion .marquee-track {
  display: flex;
  margin: 0;
  width: max-content;
  white-space: pre;
  font-size: clamp(4rem, 11vw, 12rem);
  animation: marquee 30s linear infinite;
}
html.js-motion .marquee-track [aria-hidden] { display: inline; }
@keyframes marquee { to { transform: translateX(-50%); } }

#apps { display: block; padding-block: clamp(5rem, 9vw, 10rem); }
#app-cards {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}
.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 2.6vw, 3rem);
  background: #fff;
  border-top: .35rem solid var(--bg-blue);
  scroll-margin-top: 1rem;
}
#card-cablestamp { border-color: var(--bg-orange); }
#card-linewalk { border-color: var(--bg-green); }
.app-card h3 { font-size: clamp(1.8rem, 2.7vw, 3rem); }
.app-card .tagline { margin: 1rem 0 .6rem; font-weight: 650; }
.app-card p { max-width: 45ch; }
.app-card--flagship {
  background: var(--bg-graphite);
  color: white;
  --focus: #2bc2c9;
  border-color: #b68255;
}
.app-card--flagship h3 { font-size: clamp(2.9rem, 4.8vw, 5rem); }
.app-card--flagship .tagline { font-size: clamp(1.45rem, 2.3vw, 2.5rem); line-height: 1.15; }
.badge {
  display: inline-block;
  margin: 1.4rem 0;
  padding: .25rem .7rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
  font-size: .8rem;
}
.card-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: auto; }
.card-links a, .site-footer nav a { padding-block: .4rem; font-size: .87rem; text-underline-offset: .2em; }
.site-footer { display: grid; gap: 3rem; padding: 4rem var(--gutter) 2rem; }
.contact { display: inline-block; margin-top: 1.3rem; text-underline-offset: .25em; }
.site-footer nav { display: grid; gap: .75rem 2rem; }
.site-footer nav div { display: grid; align-content: start; }
.site-footer small { border-top: 1px solid #ffffff50; padding-top: 1.25rem; }

.scene.marquee { padding: clamp(2rem, 5vw, 5rem) 0; border-block: 1px solid #ffffff2e; }
@media (min-width: 900px) {
  #app-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-card--flagship::after {
    content: ""; flex: 1; align-self: stretch; min-height: 10rem; margin: 1rem 0 2rem;
    background: url("../img/reel-meshy-800.webp") right center / contain no-repeat;
  }
  .app-card--flagship .card-links { order: 1; }
  .app-card--flagship { grid-column: span 2; grid-row: span 2; }
  #card-cable-colors { grid-column: span 2; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer small { grid-column: 1 / -1; }
}
.site-footer nav { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 899px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .stage { width: min(100%, 32rem); justify-self: center; }
  .stage .reel { width: min(85%, 38svh); }
  [data-surface="network"] { width: min(100%, 44svh); }
  [data-surface="inside"] { width: min(100%, 46svh); }
  [data-scene="invoice"] { padding-block: 1.5rem; gap: 1.1rem; }
  #invoice-title { font-size: clamp(2.5rem, 10.8vw, 3.8rem); }
  [data-scene="invoice"] .product-detail { margin-top: 1rem; padding-top: .65rem; }
  .invoice-sheet h3 { margin-block: 1rem; }
  .invoice-sheet :is(td, th) { padding-block: .45rem; }
  .copy [data-field] { margin-top: .9rem; }
  .product-detail { font-size: .94rem; }
}
@media (min-width: 600px) and (max-height: 500px) {
  .chapter { grid-template-columns: 1fr 1fr; gap: 2rem; padding-block: 1.25rem; }
  .scene h2, #invoice-title { font-size: 2.65rem; }
  .copy .eyebrow, .copy [data-field], .product-detail { margin-block: .6rem; }
  .copy [data-field] { font-size: 1.13rem; }
  .product-detail { font-size: .88rem; padding-top: .5rem; }
  .scene-link { margin-top: .25rem; }
  .site-header { padding-block: .65rem; }
  [data-scene="network"] { padding-top: 5rem; }
  .invoice-sheet { padding: 1.1rem 1.3rem; }
}
