/* Tungsten v5 homepage: one night surface, one system.
   Every section: a numbered label, one headline, at most one line, a visual.
   The only light on the page is the filament: the key, the wire, the tubes. */

body.home-v5 {
  background: var(--surface-0);
  color: var(--ink-1);
}

body.home-v5 main {
  position: relative;
  isolation: isolate;
}

/* ------------------------------------------------------------------ */
/* Ambient layer: flow lines, cursor heat, grain, the current          */
/* ------------------------------------------------------------------ */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__lines {
  position: absolute;
  inset: -10% -5%;
  opacity: 0.5;
  will-change: transform;
}

.ambient__lines svg {
  width: 100%;
  height: 100%;
}

.ambient__lines path {
  fill: none;
  stroke: var(--flow-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ambient__lines path.hot {
  stroke: url(#amb-hot);
  stroke-width: 1.2;
}

.ambient__heat {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 92 0 / 0.075), rgb(255 92 0 / 0.025) 55%, transparent);
  transform: translate3d(50vw, 30vh, 0);
  will-change: transform;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .92  0 0 0 0 .85  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* The current: a wire in the left margin that heats as you read down. */
.current {
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(var(--page) / 2);
  z-index: 40;
  width: 1px;
  background: rgb(var(--ink-rgb) / 0.06);
  pointer-events: none;
}

.current__lit {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, rgb(255 92 0 / 0), rgb(255 92 0 / 0.55) 40%, var(--glow-hot));
  box-shadow: 0 0 6px rgb(255 92 0 / 0.5);
}

.current__bead {
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bead);
  box-shadow: 0 0 6px 2px rgb(255 150 60 / 0.9), 0 0 16px 4px rgb(255 92 0 / 0.5);
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .current {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Section system                                                       */
/* ------------------------------------------------------------------ */

.sec {
  position: relative;
  padding-top: clamp(96px, 11vw, 160px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

.sec__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sec__head {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.sec__head.is-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 24px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-family: var(--font-machine);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.label b {
  color: var(--accent-label);
  font-weight: 400;
}

.sec h2 {
  margin: 0;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sec__sub {
  max-width: 540px;
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.5;
}

.sec__body {
  margin-top: clamp(40px, 5vw, 64px);
}

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-1);
  font: 500 16px/1.2 var(--font-body);
  cursor: pointer;
}

.link-arrow span {
  color: var(--accent-ink);
  transition: transform var(--motion-snap) var(--ease-out-quart);
}

.link-arrow:hover span {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------ */
/* Hero: the key is the only light                                     */
/* ------------------------------------------------------------------ */

.h-hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 72px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 96px;
  text-align: center;
}

.h-hero .glass-key {
  zoom: 2.3;
  margin-bottom: 22px;
}

.h-hero__halo {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(900px, 90vw);
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 92 0 / 0.14), transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.h-hero h1 {
  margin: 0;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: clamp(48px, 7.4vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.h-hero__sub {
  max-width: 560px;
  margin: 26px auto 0;
  color: var(--ink-2);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}

.h-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}

.h-hero__actions .button {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.h-hero__cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-family: var(--font-machine);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.h-hero__cue i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--cue-line), transparent);
}

/* ------------------------------------------------------------------ */
/* Logos                                                                */
/* ------------------------------------------------------------------ */

.h-logos {
  padding-top: 8px;
  padding-bottom: 8px;
}

.h-logos__inner {
  display: flex;
  max-width: 1200px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 44px;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid rgb(var(--ink-rgb) / 0.07);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.07);
}

.h-logos p {
  margin: 0;
  color: var(--ink-3);
  font-family: var(--font-machine);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.h-logos ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.h-logos li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.h-logos img {
  height: 20px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.8;
}


.h-logos svg {
  height: 20px;
  width: auto;
  fill: currentColor;
}

.h-logos .aws-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  line-height: 0.8;
}

.h-logos .aws-wordmark svg {
  width: 30px;
  height: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Preserve recognizable marks and their original brand-color interaction. */
.h-logos .team-logo { white-space: nowrap; }
.h-logos .team-logo-fair img {
  width: 128px;
  height: auto;
  filter: grayscale(1) brightness(0) invert(.85);
}
.h-logos .team-logo-huggingface img { width: 26px; height: 24px; object-fit: contain; }
.h-logos .aws-wordmark svg { position: static; }
@media (hover: hover) {
  .h-logos li:hover { color: var(--ink-1); }
  .h-logos li:hover img { filter: none; opacity: 1; }
  .h-logos .team-logo-fair:hover img { filter: none; }
  .h-logos .team-logo-aws:hover svg { stroke: #ff9900; }
  .h-logos .team-logo-contextual:hover svg { fill: #8585ff; }
}
:root[data-theme="light"] .h-logos .team-logo-fair img { filter: grayscale(1) brightness(.6); }
:root[data-theme="light"] .h-logos .team-logo-contextual:hover svg { fill: #3f3fbf; }
:root[data-theme="light"] .h-logos .team-logo-fair:hover img { filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .h-logos li, .h-logos img, .h-logos svg { transition: color 240ms, filter 240ms, opacity 240ms, fill 240ms, stroke 240ms; }
}

/* Experiences sits on the same night surface now. */
body.home-v5 .experience {
  border-top: 0;
  background: transparent;
  padding-top: clamp(96px, 11vw, 160px);
  padding-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* How it works: three steps, three small pictures                     */
/* ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
}

.step__art {
  position: relative;
  height: 220px;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.07);
  background:
    radial-gradient(60% 70% at 50% 60%, rgb(255 92 0 / 0.08), transparent 70%),
    linear-gradient(rgb(var(--ink-rgb) / 0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(var(--ink-rgb) / 0.035) 1px, transparent 1px) 0 0 / 22px 22px;
}

.step__text {
  padding: 22px 24px 26px;
}

.step__num {
  color: var(--accent-label);
  font-family: var(--font-machine);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.step h3,
.uc h3 {
  margin: 10px 0 0;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p,
.uc p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

/* Shared mini parts for the pictures */
.mini-sheet {
  position: absolute;
  width: 116px;
  height: 142px;
  padding: 14px 12px;
  border: 1px solid rgb(var(--ink-rgb) / 0.12);
  border-radius: 8px;
  background: var(--sheet-bg);
  box-shadow: var(--sheet-shadow);
}

.mini-sheet i {
  display: block;
  height: 5px;
  margin-bottom: 8px;
  border-radius: 3px;
  background: rgb(var(--ink-rgb) / 0.12);
}

.mini-sheet i.hot {
  background: linear-gradient(90deg, var(--glow-orange), var(--glow-hot));
  box-shadow: 0 0 8px rgb(255 92 0 / 0.6);
}

.mini-note {
  position: absolute;
  max-width: 200px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgb(255 184 102 / 0.3);
  border-radius: 8px;
  background: var(--note-bg);
  color: var(--ink-1);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: left;
  box-shadow: inset 2px 0 0 var(--glow-orange), 0 10px 30px -10px rgb(255 92 0 / 0.4);
}

.mini-note small {
  display: block;
  margin-top: 6px;
  color: var(--accent-ink);
  font-family: var(--font-machine);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgb(111 216 156 / 0.35);
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok-text);
  font-family: var(--font-machine);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.mini-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px rgb(63 191 122 / 0.8);
}

.mini-chip {
  position: absolute;
  padding: 6px 10px;
  border: 1px solid rgb(var(--ink-rgb) / 0.14);
  border-radius: 6px;
  background: var(--chip-bg);
  color: var(--ink-2);
  font-family: var(--font-machine);
  font-size: 11px;
  white-space: nowrap;
}

.mini-chip.is-lit {
  border-color: rgb(255 184 102 / 0.45);
  color: var(--ink-1);
  box-shadow: 0 0 14px -4px rgb(255 92 0 / 0.6);
}

.mini-chip.is-struck {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgb(255 92 0 / 0.7);
}

.mini-tubes {
  position: absolute;
  display: grid;
  gap: 8px;
}

.mini-tubes span {
  position: relative;
  display: block;
  width: 150px;
  height: 26px;
  padding-left: 18px;
  border-radius: 6px;
  background: rgb(var(--tint-rgb) / 0.03);
}

.mini-tubes span::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgb(255 240 222), var(--glow-orange) 55%, var(--glow-deep));
  box-shadow: 0 0 8px -1px rgb(255 92 0 / 0.8);
}

.mini-tubes span::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 14px;
  top: 11px;
  height: 4px;
  border-radius: 3px;
  background: rgb(var(--ink-rgb) / 0.14);
}

.wire-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wire-path path {
  fill: none;
  stroke: url(#wire-grad);
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgb(255 120 30 / 0.9));
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.4s var(--ease-out-quart);
}

.is-lit .wire-path path {
  stroke-dashoffset: 0;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bead);
  box-shadow: 0 0 8px 3px rgb(255 120 30 / 0.8);
}

/* ------------------------------------------------------------------ */
/* Use cases                                                            */
/* ------------------------------------------------------------------ */

.ucs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.uc {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 300ms var(--ease-out-quart), transform 300ms var(--ease-out-quart);
}

.uc:hover {
  border-color: rgb(255 184 102 / 0.3);
  transform: translateY(-3px);
}

.uc__art {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.07);
  background:
    radial-gradient(70% 70% at 50% 60%, rgb(255 92 0 / 0.1), transparent 70%),
    linear-gradient(rgb(var(--ink-rgb) / 0.03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(var(--ink-rgb) / 0.03) 1px, transparent 1px) 0 0 / 24px 24px;
}

.uc__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.uc__tag {
  color: var(--ink-3);
  font-family: var(--font-machine);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.uc__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgb(var(--ink-rgb) / 0.07);
}

.uc__proof strong {
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: var(--accent-glow);
}

.uc__proof span {
  color: var(--ink-2);
  font-size: 14px;
}

.uc__more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink-1);
  font-size: 15px;
  font-weight: 500;
}

.uc__more span {
  color: var(--accent-ink);
}

/* Data intelligence: a field of contracts, some lit */
.contract-grid {
  position: absolute;
  left: 50%;
  top: 34px;
  display: grid;
  grid-template-columns: repeat(10, 16px);
  gap: 7px;
  transform: translateX(-50%);
}

.contract-grid i {
  width: 16px;
  height: 20px;
  border-radius: 3px;
  background: rgb(var(--ink-rgb) / 0.1);
  transition: background-color 500ms, box-shadow 500ms;
}

.is-lit .contract-grid i.ok {
  background: rgb(111 216 156 / 0.16);
}

.is-lit .contract-grid i.imp {
  background: var(--glow-orange);
  box-shadow: 0 0 8px rgb(255 92 0 / 0.7);
}

.is-lit .contract-grid i.flag {
  background: rgb(230 90 90 / 0.55);
}

/* ------------------------------------------------------------------ */
/* Own the outcome: your workflow, a swappable model underneath        */
/* ------------------------------------------------------------------ */

.own {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.own__art {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 44px 28px;
}

.own__workflow {
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid rgb(255 184 102 / 0.35);
  border-radius: 12px;
  background: var(--warm-panel);
  box-shadow: 0 0 40px -12px rgb(255 92 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.own__workflow header {
  display: flex;
  justify-content: space-between;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.own__workflow header span {
  color: var(--accent-ink);
  font-family: var(--font-machine);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.own__parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.own__parts span {
  padding: 10px 12px;
  border: 1px solid rgb(var(--ink-rgb) / 0.1);
  border-radius: 6px;
  background: rgb(var(--tint-rgb) / 0.03);
  color: var(--ink-2);
  font-size: 14px;
}

.own__socket {
  width: 2px;
  height: 56px;
  background: linear-gradient(180deg, var(--glow-hot), var(--glow-orange));
  box-shadow: 0 0 8px rgb(255 92 0 / 0.7);
}

.own__model {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  padding: 14px 18px;
  border: 1px solid rgb(var(--ink-rgb) / 0.14);
  border-radius: 10px;
  background: rgb(var(--tint-rgb) / 0.03);
}

.own__model small {
  color: var(--ink-3);
  font-family: var(--font-machine);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.own__model strong {
  color: var(--ink-1);
  font-size: 16px;
  font-weight: 500;
  transition: opacity 180ms;
}

.own__model strong.is-swapping {
  opacity: 0;
}

.own__checks {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.own__checks span {
  color: var(--ok-text);
  font-family: var(--font-machine);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ */
/* Trust band                                                           */
/* ------------------------------------------------------------------ */

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 28px 32px;
}

.trust ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow-orange);
  box-shadow: 0 0 6px rgb(255 92 0 / 0.7);
}

.trust__badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust__badges img {
  height: 46px;
  opacity: 0.9;
}

/* The HIPAA mark is drawn in white; on day it is inverted to ink. */
:root[data-theme="light"] .trust__badges img[src*="hipaa"] {
  filter: invert(1);
  opacity: 0.8;
}

.trust__badges .link-arrow {
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* FAQ on night                                                         */
/* ------------------------------------------------------------------ */

body.home-v5 .faq__list {
  border-top-color: rgb(var(--ink-rgb) / 0.1);
}

body.home-v5 .faq details {
  border-bottom-color: rgb(var(--ink-rgb) / 0.1);
}

body.home-v5 .faq summary {
  color: var(--ink-1);
  font-size: 20px;
}

body.home-v5 .faq summary::after {
  color: var(--accent-ink);
}

body.home-v5 .faq details p {
  color: var(--ink-2);
  font-size: 16px;
}

body.home-v5 .faq details p a {
  color: var(--ink-1);
  text-decoration: underline;
  text-decoration-color: rgb(255 92 0 / 0.7);
}

body.home-v5 .faq {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

/* Close */
body.home-v5 .switch-on {
  margin-top: clamp(96px, 11vw, 160px);
  background: radial-gradient(40% 50% at 50% 30%, rgb(255 92 0 / 0.16), transparent 70%);
}

/* ------------------------------------------------------------------ */
/* Reveal on scroll                                                     */
/* ------------------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out-quart), transform 700ms var(--ease-out-quart);
}

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

/* ------------------------------------------------------------------ */
/* Responsive and motion                                                */
/* ------------------------------------------------------------------ */

@media (max-width: 980px) {
  .steps,
  .ucs,
  .own {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home-v5 .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .h-hero .glass-key {
    zoom: 1.9;
  }

  .h-hero__cue {
    display: none;
  }
}

@media (max-width: 560px) {
  .h-logos ul {
    justify-content: center;
    gap: 14px 26px;
  }

  .trust {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .wire-path path {
    stroke-dashoffset: 0;
    transition: none;
  }

  .ambient__heat,
  .ambient__lines {
    transform: none !important;
  }
}

@media (max-width: 420px) {
  .uc__art > div,
  .step__art > div {
    scale: 0.88;
    transform-origin: 50% 0;
  }
}

/* ------------------------------------------------------------------ */
/* The film on the first screen: a chip under the hero actions         */
/* ------------------------------------------------------------------ */

.film-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgb(var(--ink-rgb) / 0.14);
  border-radius: 999px;
  background: rgb(var(--tint-rgb) / 0.03);
  color: var(--ink-2);
  font: 500 14px var(--font-body);
  cursor: pointer;
  transition:
    border-color var(--motion-snap) var(--ease-out-quart),
    color var(--motion-snap) var(--ease-out-quart);
}

.film-chip:hover {
  border-color: rgb(255 184 102 / 0.5);
  color: var(--ink-1);
}

.film-chip__play {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--night-0);
  color: var(--glow-core);
  box-shadow: inset 0 0 0 1px rgb(255 184 102 / 0.4), 0 0 14px -4px rgb(255 92 0 / 0.8);
}

.film-chip__play svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.film-chip__meta {
  color: var(--ink-3);
  font-family: var(--font-machine);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.h-hero__cue {
  text-decoration: none;
}

.h-hero__cue:hover {
  color: var(--ink-2);
}

.page-close-copy { max-width: 520px; margin: 0 auto 28px; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
@media (max-width: 600px) { .page-close-copy { font-size: 16px; } }

/* Center the provenance label and keep six logos in balanced rows. */
.h-logos__inner { flex-direction: column; gap: 20px; text-align: center; }
.h-logos p { width: 100%; text-align: center; }
.h-logos ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; max-width: 1080px; gap: 24px 32px; justify-items: center; }
.h-logos li { justify-content: center; }
@media (max-width: 1100px) { .h-logos ul { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; } }
@media (max-width: 600px) { .h-logos ul { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; gap: 22px 16px; } .h-logos li { font-size: 14px; } }

/* The product name keeps its wordmark face and accent within surrounding copy. */
body.v5 .brand-name, body.v5 .brand-heading, body.v5 .wordmark .brand-tungsten {
  color: var(--accent-ink);
  font-family: var(--font-wordmark);
  font-weight: 600;
  letter-spacing: -.035em;
  text-transform: lowercase;
}

/* Homepage layout: the filament story, expert teaching, and customer outcomes. */
body.v5 .c-hero { min-height: 0; padding-top: clamp(132px, 12vw, 180px); padding-bottom: 64px; background: transparent; }
.c-hero .hero-inner { max-width: 1360px; margin: auto; grid-template-columns: 1fr 1.05fr; gap: 48px; }
.c-hero h1 { font-family: var(--font-display); font-size: clamp(42px, 4.8vw, 76px); letter-spacing: -.045em; }
.c-hero .brand-heading { font-family: inherit; font-weight: inherit; color: var(--accent-ink); }
.c-hero .hero-copy { max-width: 440px; }
.c-hero .hero-copy p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); }
.c-hero .film-chip { display: flex; margin: 20px 0 0; }
.c-hero .hero-pathways { width: 100%; margin: 0; }
/* Lead with the experts, then the work and its outcome. */
.c-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; padding-block: 24px 32px; max-width: 1480px; margin: auto; }
.c-proof-heading { grid-column: 1 / -1; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.c-proof-heading h2 { margin: 0; font: 500 16px/1.4 var(--font-body); color: var(--ink-2); }
.c-proof-heading a { color: var(--accent-ink); text-decoration: none; font-size: 13px; }
.c-proof-story { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--ink-1); text-decoration: none; }
.c-proof-story h3 { margin: 0; max-width: 24ch; font: 500 clamp(21px, 1.6vw, 24px)/1.25 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.c-proof-story p { margin: 0; font: 400 14px/1.5 var(--font-body); color: var(--ink-2); }
.c-proof-story strong { font-weight: 500; color: var(--ink-1); }

.c-proof-read { margin-top: 0; font: 400 13px/1.5 var(--font-body); color: var(--accent-ink); }
.c-proof-read span { display: inline-block; transition: transform 180ms ease; }
.c-proof-story:hover h3 { color: var(--accent-ink); }
.c-proof-story:hover .c-proof-read span { transform: translateX(3px); }
.c-proof a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 6px; border-radius: 2px; }
@media(max-width: 800px) { .c-hero .hero-inner { grid-template-columns: 1fr; gap: 28px; } .c-hero .hero-pathways { max-width: 600px; margin: auto; } .c-proof { column-gap: 20px; } }
@media(max-width: 680px) { .c-proof { grid-template-columns: 1fr; gap: 20px; } .c-proof-story { grid-row: auto; grid-template-rows: none; grid-template-columns: 1fr; gap: 8px; padding-top: 16px; } .c-proof-story h3 { max-width: 25ch; font-size: 22px; } .c-proof-read { margin-top: 2px; } }
@media(max-width: 480px) { body.v5 .c-hero { padding-top: 112px; padding-bottom: 24px; } .c-proof-heading { gap: 12px; } .c-proof-heading a { font-size: 12px; } }
@media(prefers-reduced-motion: reduce) { .c-proof-read span { transition: none; } }



/* The harness label shares the filament's current pulse and pause state. */
.c-hero .hero-pathways.is-flowing .label-harness {
  animation: harness-signal 700ms var(--filament-delay) linear both;
}
.c-hero .hero-pathways.is-paused .label-harness { animation-play-state: paused; }
@keyframes harness-signal {
  8%, 85% { fill: var(--ember); opacity: 1; filter: drop-shadow(0 0 3px var(--glow)); }
}
@media (prefers-reduced-motion: reduce) {
  .c-hero .hero-pathways.is-flowing .label-harness { animation: none; }
}

.c-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Close the opening screen with the team's experience, then reveal stories. */
.c-first-screen { min-height: calc(100svh - 72px); display: flex; flex-direction: column; }
body.v5 .c-first-screen .c-hero { flex: 1; display: flex; align-items: center; padding-top: clamp(56px, 8vh, 112px); padding-bottom: clamp(32px, 5vh, 64px); }
.c-first-screen .hero-inner { width: 100%; }
.c-first-screen .h-logos { flex-shrink: 0; }
@media (max-width: 760px) { .c-first-screen { min-height: calc(100svh - 64px); } }

.c-close-copy { max-width: 480px; margin: 0 auto 28px; color: var(--ink-2); line-height: 1.6; font-size: 17px; }
.own__checks strong { flex-basis: 100%; font: 500 12px/1.5 var(--font-machine); color: var(--ink-2); }

.own__checks { flex-wrap: wrap; justify-content: center; text-align: center; }

/* In FAQ sentences, the product name reads as text rather than a wordmark. */
body.v5 .faq .brand-name { font:inherit; color:inherit; letter-spacing:inherit; text-transform:none; }
