:root {
  color-scheme: light;
  --paper: #eee5e5;
  --paper-pure: #eee5e5;
  --ink: #003734;
  --slate: #53645f;
  --mist: #a7b7b4;
  --line: rgba(0, 55, 52, 0.18);
  --line-strong: rgba(0, 55, 52, 0.38);
  --signal: #a35b4f;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.hardware-story {
  height: 520svh;
  min-height: 3600px;
}

.hardware-story__sticky {
  --progress: 0;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 650px;
  overflow: clip;
  isolation: isolate;
  background: var(--paper);
}

.hardware-story__sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  top: clamp(22px, 3.5vw, 50px);
  right: clamp(24px, 4.5vw, 72px);
  left: clamp(24px, 4.5vw, 72px);
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 9px;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  width: 40px;
  height: 38px;
  align-items: center;
}

.brand svg {
  display: block;
  width: 36px;
  fill: var(--ink);
}

.chapter { justify-self: center; }

.prototype-note {
  justify-self: end;
  color: var(--slate);
  font-size: 8px;
  letter-spacing: .15em;
}

.intro {
  position: absolute;
  z-index: 12;
  top: 20%;
  left: clamp(28px, 6.5vw, 108px);
  width: min(26vw, 360px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--slate);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.intro h1,
.next-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}

.intro__detail {
  max-width: 34ch;
  margin: 26px 0 0;
  color: var(--slate);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.55;
}

.topography {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 26%;
  width: 55%;
  height: 100%;
  opacity: .62;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 25%, rgba(0,0,0,.7) 45%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 0 25%, rgba(0,0,0,.7) 45%, transparent 76%);
}

.topography svg { width: 100%; height: 100%; overflow: visible; }

.topography path {
  fill: none;
  stroke: rgba(0, 55, 52, .15);
  stroke-width: .85;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--progress));
}

.product {
  position: absolute;
  z-index: 7;
  top: 51%;
  left: 51%;
  width: min(28vw, 420px);
  height: min(83svh, 860px);
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.product__halo {
  position: absolute;
  inset: 6% -22%;
  z-index: -1;
  border-radius: 50%;
  background: transparent;
}

.product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  filter: none;
}

.product figcaption {
  position: absolute;
  right: 8%;
  bottom: 3%;
  left: 8%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: rgba(0,55,52,.58);
  font-size: 7px;
  letter-spacing: .19em;
}

.product figcaption i { height: 1px; background: var(--line); }

.specifications {
  position: absolute;
  z-index: 14;
  top: 17%;
  right: clamp(28px, 5.2vw, 84px);
  width: min(28vw, 410px);
}

.specifications__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--slate);
  font-size: 8px;
  letter-spacing: .2em;
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  min-height: 66px;
  padding: 13px 0 10px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 360ms ease, transform 420ms cubic-bezier(.2,.72,.26,1), border-color 240ms ease;
}

.spec::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0;
  transform: scale(.4);
  transition: opacity 220ms ease, transform 220ms ease;
}

.spec.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.spec.is-current { border-bottom-color: var(--line-strong); }
.spec.is-current::after { opacity: 1; transform: scale(1); }

.spec__index {
  padding-top: 2px;
  color: var(--signal);
  font-size: 8px;
  letter-spacing: .14em;
}

.spec p,
.spec strong {
  display: block;
  margin: 0;
  text-transform: uppercase;
}

.spec p {
  color: var(--slate);
  font-size: 8px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .18em;
}

.spec strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .11em;
}

.spec sup { color: var(--signal); font-size: .64em; }

.validation-note {
  margin: 13px 0 0 38px;
  color: rgba(83,100,95,.82);
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: .055em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.validation-note.is-visible { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute;
  z-index: 18;
  bottom: 43px;
  left: clamp(28px, 6.5vw, 108px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate);
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: opacity 220ms linear;
}

.scroll-cue svg {
  width: 13px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-progress {
  position: absolute;
  z-index: 18;
  right: clamp(24px, 4.5vw, 72px);
  bottom: 35px;
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(90px, 15vw) auto;
  align-items: center;
  gap: 14px;
  color: var(--slate);
  font-size: 7px;
  letter-spacing: .18em;
}

.story-progress i { height: 1px; overflow: hidden; background: var(--line); }
.story-progress b { display: block; width: calc(var(--progress) * 100%); height: 100%; background: var(--ink); }

.next-section {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 10vw;
  border-top: 1px solid var(--line);
}

.next-section h2 { font-size: clamp(60px, 10vw, 165px); }

@media (max-width: 1120px) {
  .intro { left: 5vw; width: 27vw; }
  .intro h1 { font-size: clamp(38px, 4.7vw, 54px); }
  .product { left: 49%; width: min(31vw, 390px); }
  .specifications { right: 4vw; width: 30vw; }
}

@media (max-width: 820px) {
  .hardware-story { height: 560svh; }
  .site-header { grid-template-columns: 1fr auto; }
  .chapter { justify-self: end; }
  .prototype-note { display: none; }

  .intro {
    top: 12%;
    left: 6vw;
    width: 42vw;
  }

  .intro h1 { font-size: clamp(36px, 6vw, 52px); }
  .intro__detail { font-size: 12px; }

  .product {
    top: 51%;
    left: 31%;
    width: 36vw;
    height: 70svh;
  }

  .topography { left: 0; width: 65%; }
  .specifications { top: 17%; right: 5vw; width: 42vw; }
  .spec { min-height: 62px; }
  .story-progress { left: 47%; }
}

@media (max-width: 620px) {
  .hardware-story {
    height: 580svh;
    min-height: 3400px;
  }

  .hardware-story__sticky { min-height: 580px; }

  .site-header {
    top: 18px;
    right: 20px;
    left: 20px;
  }

  .brand { width: 30px; height: 30px; }
  .brand svg { width: 28px; }
  .chapter { font-size: 8px; }

  .intro {
    top: 10%;
    left: 20px;
    width: calc(100% - 40px);
  }

  .eyebrow { margin-bottom: 8px; font-size: 7px; }
  .intro h1 { font-size: clamp(31px, 9.6vw, 43px); line-height: .94; }
  .intro__detail { display: none; }

  .product {
    top: 41%;
    left: 50%;
    width: min(42vw, 184px);
    height: 40svh;
  }

  .product figcaption { display: none; }
  .topography { top: 4%; left: 5%; width: 90%; height: 61%; opacity: .48; }

  .specifications {
    top: auto;
    right: 20px;
    bottom: 52px;
    left: 20px;
    width: auto;
  }

  .specifications__head { padding-bottom: 6px; font-size: 7px; }

  .spec {
    grid-template-columns: 22px 1fr;
    gap: 7px;
    min-height: 0;
    padding: 6px 0 5px;
  }

  .spec p { font-size: 6.5px; line-height: 1.15; }
  .spec strong { margin-top: 2px; font-size: 8px; line-height: 1.2; }
  .spec__index { font-size: 7px; }

  .validation-note {
    margin: 7px 0 0 29px;
    font-size: 6.5px;
    line-height: 1.3;
  }

  .scroll-cue { display: none; }

  .story-progress {
    right: 20px;
    bottom: 23px;
    left: 20px;
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-height: 700px) and (min-width: 621px) {
  .site-header { top: 20px; }
  .intro { top: 16%; }
  .product { height: 79svh; }
  .specifications { top: 13%; }
  .spec { min-height: 54px; padding-top: 9px; }
  .validation-note { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hardware-story { height: 100svh; min-height: 650px; }
  .spec { transition: none; }
  .topography path { stroke-dashoffset: 0; }
}

html.is-embedded,
html.is-embedded body {
  height: 100%;
  overflow: hidden;
}

html.is-embedded .hardware-story,
html.is-embedded .hardware-story__sticky {
  height: 100svh;
  min-height: 0;
}

html.is-embedded .hardware-story__sticky {
  position: relative;
}
