/* Smart Materials website styles.
   Layout concept: one 1200px measure; dark "lab" bands alternate with light paper bands;
   text is left-aligned; the interactive press test is the single bold centrepiece. */

@font-face {
  font-family: "Archivo";
  src: url(../fonts/archivo-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url(../fonts/archivo-latin-ext.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(../fonts/source-serif-4-latin.woff2) format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(../fonts/source-serif-4-latin-ext.woff2) format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Soft serif for the Huggah section: Fraunces (SIL OFL 1.1), set soft and medium to sit close to Huggah's own headings */
@font-face {
  font-family: "Huggah Display";
  src: url(../fonts/fraunces-soft-500.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: brand blue and white, on a deep navy sampled from the lab footage */
  --ink: #061229;
  --ink-2: #0B1B3A;
  --paper: #FFFFFF;
  --mist: #F1F5FB;
  --line: #D8E1EE;
  --line-ink: rgba(234, 241, 255, 0.16);
  --text: #0A1A33;
  --muted: #4E5E78;
  --on-ink: #EAF1FF;
  --on-ink-soft: #C6D3EA;
  --on-ink-muted: #A9B8D3;
  --blue: #3A86FF;
  --blue-ink: #1C5FD4;
  --blue-ink-hover: #164DAF;
  --blue-light: #77A9FF;
  --blue-soft: #E3EDFF;
  --white: #FFFFFF;
  --focus: #3A86FF;
  /* Test-rig drawing */
  --table: #13213D;
  --table-hole: #2A3A5A;
  --steel: #C3CCD9;
  --steel-2: #AAB5C6;
  --steel-3: #8F9BB0;
  --conv-fill: #E7EBF2;
  --conv-line: #8794AA;
  --conv-edge: #6F7D95;
  --zetic-fill: #E3EDFF;
  /* Layer illustration: a typical mattress in plain neutrals */
  --layer-1: #EFEBE6;
  --layer-2: #E0DAD2;
  --layer-3: #CEC7BC;
  --quilt: #E2DCE8;
  /* Huggah brand, used only in the Huggah section */
  --huggah-navy: #1D1D3D;
  --huggah-ink: #55556B;
  --huggah-lavender: #B78FFF;
  --huggah-lavender-deep: #6A4FB5;
  --huggah-lavender-soft: #EFE6FF;
  --huggah-lemon: #FFE674;
  --huggah-lemon-hover: #FFDD47;
  --huggah-white: #FFFBF8;
  --font-huggah: "Huggah Display", Georgia, "Times New Roman", serif;

  /* Type: Archivo (the logo's family) for display and interface, Source Serif 4 for reading */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --band-pad: clamp(72px, 9vw, 128px);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { 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(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Paints the phone's top safe-area band in the header colour */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ink);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.25rem); font-stretch: 110%; }
h3 { font-size: 1.3125rem; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.reg { font-size: 0.42em; vertical-align: 1.05em; font-weight: 500; margin-left: 0.03em; letter-spacing: 0; line-height: 0; }

a { color: var(--blue-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 4px;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Buttons, chips, small type ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--blue-ink); color: var(--white); }
.btn--primary:hover { background: var(--blue-ink-hover); }
.btn--ghost { background: transparent; color: var(--on-ink); border-color: rgba(234, 241, 255, 0.4); }
.btn--ghost:hover { border-color: var(--on-ink); background: rgba(234, 241, 255, 0.06); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn--outline:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; }

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip--live { background: var(--blue-soft); color: var(--blue-ink); }
.chip--open { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.chip--plain { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.ui { font-family: var(--font-display); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid var(--line-ink);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(6, 18, 41, 0.9); backdrop-filter: saturate(140%) blur(10px); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; color: var(--white); line-height: 0; }
.brand svg { width: 156px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  color: var(--on-ink-soft);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 8px;
}
.nav__list a:hover { color: var(--white); text-decoration: underline; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  color: var(--on-ink);
  border: 1px solid rgba(234, 241, 255, 0.35);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}
.menu-toggle__bars::before { top: 1px; }
.menu-toggle__bars::after { bottom: 1px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { bottom: 5px; transform: rotate(-45deg); }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px max(var(--gutter), env(safe-area-inset-right, 0px)) 28px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--ink);
    border-bottom: 1px solid var(--line-ink);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding-block: 14px; font-size: 1.125rem; border-bottom: 1px solid var(--line-ink); }
  .nav .btn { align-self: flex-start; }
}

/* ---------- Bands ---------- */
.band { padding-block: var(--band-pad); }
.band--paper { background: var(--paper); color: var(--text); }
.band--mist { background: var(--mist); color: var(--text); }
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--ink-2 { background: var(--ink-2); color: var(--on-ink); }
.band--ink p, .band--ink-2 p { color: var(--on-ink-soft); }
.band--ink a:not(.btn), .band--ink-2 a:not(.btn) { color: var(--blue-light); }
section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-head { display: grid; gap: 20px; max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); }
.band--ink .section-head p, .band--ink-2 .section-head p { color: var(--on-ink-soft); }
.section-head--row {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--on-ink);
}
.hero__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 48vw, 700px);
}
.hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(66%, 1040px);
  z-index: -1;
}
.hero__media video, .hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(6, 18, 41, 0.7) 14%, rgba(6, 18, 41, 0) 40%),
    linear-gradient(0deg, var(--ink) 0%, rgba(6, 18, 41, 0) 16%);
  pointer-events: none;
}
.hero__inner {
  padding-block: clamp(56px, 7vw, 96px);
}
.hero__copy { max-width: 34rem; display: grid; gap: 28px; }
.hero h1 {
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.25rem);
  font-weight: 620;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--white);
}
.hero__lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--on-ink-soft); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__caption {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 5px 5px 14px;
  border-radius: 999px;
  background: rgba(6, 18, 41, 0.72);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--on-ink-soft);
}
.video-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(234, 241, 255, 0.4);
  background: rgba(6, 18, 41, 0.5);
  color: var(--on-ink);
  cursor: pointer;
}
.video-toggle:hover { border-color: var(--on-ink); }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* Datasheet row along the bottom of the hero */
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-ink);
}
.specs > div { padding: 22px 24px 40px 0; min-width: 0; }
.specs > div + div { padding-left: 24px; border-left: 1px solid var(--line-ink); }
.specs dt { font-family: var(--font-display); font-size: 0.85rem; color: var(--on-ink-muted); margin-bottom: 6px; }
.specs dd { margin: 0; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; line-height: 1.35; color: var(--on-ink); }

@media (max-width: 860px) {
  .hero__stage { display: block; min-height: 0; }
  .hero__media { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; z-index: 0; }
  .hero__media::after {
    background: linear-gradient(0deg, var(--ink) 0%, rgba(6, 18, 41, 0) 35%);
  }
  .hero__inner { padding-block: 4px 48px; margin-top: -32px; position: relative; }
  .hero__caption { top: 12px; bottom: auto; right: max(12px, env(safe-area-inset-right, 0px)); font-size: 0.8rem; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs > div:nth-child(n+3) { border-top: 1px solid var(--line-ink); }
}
@media (max-width: 480px) {
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs > div, .specs > div + div { padding: 16px 0 18px; border-left: 0; }
  .specs > div + div { border-top: 1px solid var(--line-ink); }
  .specs > div:last-child { padding-bottom: 36px; }
  .hero__caption > span { display: none; }
  .hero__caption { padding: 4px; }
}

/* ---------- Press test ---------- */
.press-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.press-intro p { color: var(--muted); }
.press {
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding: clamp(16px, 3vw, 36px);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.press__svg { display: block; width: 100%; height: auto; }
.press__readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  text-align: center;
}
.readout { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.readout__name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.readout__status {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: var(--text);
}
.readout--zetic .readout__status { color: var(--blue-ink); }
.readout__note { font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); }
.press__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.press__controls label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.press__controls output {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 4ch;
  color: var(--blue-ink);
}
.press__caption { margin-top: 14px; font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); }

.range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 260px;
  min-width: 0;
  height: 32px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) var(--fill, 0%), var(--line) var(--fill, 0%)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--blue); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-ink);
}
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue-ink); }

/* SVG parts of the test rig */
.sv-table { fill: var(--table); }
.sv-hole { fill: var(--table-hole); }
.sv-shaft { fill: var(--steel-2); }
.sv-platen { fill: var(--steel); }
.sv-platen-edge { fill: var(--steel-3); }
.sv-body--conv { fill: var(--conv-fill); }
.sv-body--zetic { fill: var(--zetic-fill); }
.sv-cells { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sv-cells--conv { stroke: var(--conv-line); }
.sv-cells--zetic { stroke: var(--blue); }
.sv-edge { fill: none; stroke-width: 2; }
.sv-edge--conv { stroke: var(--conv-edge); }
.sv-edge--zetic { stroke: var(--blue-ink); }
.sv-guide { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 6; opacity: 0.7; fill: none; }
.sv-arrow { stroke: var(--text); stroke-width: 2; fill: none; stroke-linecap: round; }
.sv-arrow-head { fill: var(--text); }

.props {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  list-style: none;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
}
.props li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--text); min-width: 0; }
.props p { font-size: 1.0625rem; color: var(--muted); }

@media (max-width: 860px) {
  .press-intro { grid-template-columns: minmax(0, 1fr); }
  .props { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.process__copy { display: grid; gap: 24px; }
.routes { display: grid; gap: 20px; }
.route {
  padding: 26px 26px 30px;
  border: 1px solid var(--line-ink);
  border-radius: 6px;
}
.route--ours { border-color: rgba(58, 134, 255, 0.6); background: rgba(58, 134, 255, 0.08); }
.route__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 26px; }
.route__head h3 { color: var(--white); }
.route__scale { font-family: var(--font-display); font-size: 0.875rem; color: var(--on-ink-muted); }
.route--ours .route__scale { color: var(--blue-light); }
.route__steps {
  --dot: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.route__steps li {
  position: relative;
  padding-top: calc(var(--dot) + 14px);
  padding-right: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--on-ink);
}
.route__steps li::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--on-ink-muted);
}
.route__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 1px);
  left: calc(var(--dot) + 6px);
  right: 6px;
  height: 2px;
  background: var(--line-ink);
}
.route--ours .route__steps li::before { border-color: var(--blue); }
.route--ours .route__steps li:last-child::before { background: var(--blue); }
.route--ours .route__steps li:not(:last-child)::after { background: rgba(58, 134, 255, 0.55); }
.route--old .route__steps li:last-child { color: var(--on-ink-muted); }

@media (max-width: 860px) {
  .process { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .route { padding: 22px 18px 24px; }
  .route__steps { grid-auto-flow: row; gap: 18px; }
  .route__steps li { padding-top: 0; padding-left: calc(var(--dot) + 14px); }
  .route__steps li:not(:last-child)::after {
    top: calc(var(--dot) + 4px); bottom: -16px; left: calc(var(--dot) / 2 - 1px); right: auto; width: 2px; height: auto;
  }
}

/* ---------- Huggah: the first application, shown in its own brand colours and type ---------- */
.band--huggah {
  background:
    radial-gradient(55% 70% at 82% 45%, rgba(183, 143, 255, 0.24) 0%, rgba(183, 143, 255, 0) 70%),
    radial-gradient(40% 55% at 6% 100%, rgba(255, 230, 116, 0.3) 0%, rgba(255, 230, 116, 0) 70%),
    var(--huggah-white);
  color: var(--huggah-navy);
}
.band--huggah p { color: var(--huggah-ink); }
.huggah {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.huggah__copy { display: grid; gap: 22px; justify-items: start; }
.huggah__logo { width: 136px; height: auto; color: var(--huggah-lavender); }
.huggah__title {
  font-family: var(--font-huggah);
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: -0.01em;
  line-height: 1.06;
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.35rem);
  color: var(--huggah-navy);
}
.band--huggah .huggah__tagline {
  font-family: var(--font-huggah);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.3;
  color: var(--huggah-lavender-deep);
}
.huggah__pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 2px 0 6px; padding: 0; }
.huggah__pills li {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--huggah-lavender-soft);
  color: var(--huggah-navy);
}
.btn--huggah { background: var(--huggah-lemon); color: var(--huggah-navy); border-radius: 999px; padding-inline: 26px; }
.btn--huggah:hover { background: var(--huggah-lemon-hover); }

.layers { margin: 0; display: grid; gap: 16px; }
.layers__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 28px); align-items: start; }
.layers__col { display: grid; gap: 14px; min-width: 0; }
.stack {
  display: flex;
  flex-direction: column;
  height: clamp(260px, 30vw, 340px);
  border-radius: 22px 22px 8px 8px;
  overflow: hidden;
  background: var(--huggah-white);
  box-shadow: 0 18px 40px -26px rgba(29, 29, 61, 0.45);
}
.layer {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--huggah-navy);
  border-bottom: 1px solid rgba(29, 29, 61, 0.08);
  min-height: 0;
}
.layer:last-child { border-bottom: 0; }
.layer--cover {
  flex: 0 0 36px;
  background-color: var(--huggah-white);
  background-image: radial-gradient(circle at 50% 120%, var(--quilt) 0 34%, transparent 36%);
  background-size: 22px 22px;
}
.stack--huggah .layer--cover { border-bottom: 3px solid var(--huggah-lavender); }
.l1 { flex: 1.5 1 0; background: var(--layer-1); }
.l2 { flex: 1.1 1 0; background: var(--layer-2); }
.l3 { flex: 3 1 0; background: var(--layer-3); }
.layer--zetic {
  flex: 1 1 0;
  align-items: flex-end;
  padding-bottom: 16px;
  color: var(--huggah-navy);
  font-size: 0.95rem;
  font-weight: 700;
  background-color: var(--huggah-lavender);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M5 5Q13 9.5 21 5Q16.5 13 21 21Q13 16.5 5 21Q9.5 13 5 5Z' fill='none' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 26px 26px;
}
.layers__label { font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--huggah-navy); line-height: 1.35; }
.layers__note { font-family: var(--font-display); font-size: 0.85rem; color: var(--huggah-ink); }

@media (max-width: 860px) {
  .huggah { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Applications ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.app {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.app h3 { font-size: 1.375rem; }
.app p { font-size: 1.0625rem; color: var(--muted); }
.app .chip { justify-self: start; margin-top: 8px; }
.app--live h3 { color: var(--blue-ink); }
@media (max-width: 860px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .apps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Company ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.person { display: grid; gap: 4px; min-width: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; margin-bottom: 14px; background: var(--line); }
.person h3 { font-size: 1.125rem; font-stretch: 100%; letter-spacing: -0.005em; }
.person p { font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); }

.recog {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.recog__intro { display: grid; gap: 14px; align-content: start; }
.recog__intro p { font-size: 1.0625rem; color: var(--muted); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
}
.ledger li:first-child { border-top: 1px solid var(--line); }
.ledger__year { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recog { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .ledger li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Partners and investors ---------- */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.duo__item { display: grid; gap: 22px; align-content: start; justify-items: start; padding-block: 8px; padding-right: clamp(24px, 5vw, 72px); }
.duo__item + .duo__item { padding-left: clamp(24px, 5vw, 72px); border-left: 1px solid var(--line-ink); }
.duo__item h2 { color: var(--white); font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); }
@media (max-width: 760px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo__item { padding-right: 0; }
  .duo__item + .duo__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-ink); margin-top: 40px; padding-top: 48px; }
}

/* ---------- News ---------- */
.news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 5vw, 72px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.news__item { display: grid; gap: 10px; align-content: start; padding: 24px 0 28px; border-top: 1px solid var(--line); min-width: 0; }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--font-display); font-size: 0.875rem; color: var(--muted); max-width: none; }
.news__outlet { font-weight: 600; color: var(--text); }
.news__item h3 { font-size: 1.3125rem; font-stretch: 100%; letter-spacing: -0.01em; }
.news__item h3 a { color: var(--text); text-decoration: none; }
.news__item h3 a:hover { color: var(--blue-ink); text-decoration: underline; }
.news__summary { font-size: 1.0625rem; color: var(--muted); }
.link-strong { font-family: var(--font-display); font-weight: 600; font-size: 0.975rem; }
@media (max-width: 760px) {
  .news { grid-template-columns: minmax(0, 1fr); }
  .section-head--row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 24px; justify-items: start; }
.contact h2 { color: var(--white); font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); }
.contact__email { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.email {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  font-stretch: 106%;
  color: var(--white);
  user-select: all;
  overflow-wrap: anywhere;
}

/* ---------- Legal and utility pages (privacy policy, page not found) ---------- */
.legal__inner { display: grid; gap: 18px; justify-items: start; }
.legal__inner > * { max-width: 44rem; }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.5rem); font-stretch: 110%; }
.legal h2 { font-size: 1.5rem; font-stretch: 104%; letter-spacing: -0.01em; margin-top: 22px; }
.legal__meta { font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); }
.legal__lead { font-size: 1.2rem; }
.legal ul { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; }
.legal__details { margin: 4px 0 0; width: 100%; border-top: 1px solid var(--line); }
.legal__details div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.legal__details dt { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.legal__details dd { margin: 0; }
.legal .email { font: inherit; color: var(--text); user-select: text; }
.legal__links { list-style: none; padding-left: 0 !important; }
@media (max-width: 560px) {
  .legal__details div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-ink-soft);
  padding-block: clamp(56px, 7vw, 88px) calc(32px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-ink);
}
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand svg { width: 170px; height: auto; color: var(--white); }
.footer__brand p { color: var(--on-ink-muted); font-size: 0.95rem; max-width: 30ch; }
.footer__col h2 { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; font-stretch: 100%; color: var(--on-ink-muted); margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--on-ink); text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  padding-top: 24px;
  color: var(--on-ink-muted);
  font-size: 0.85rem;
}
.footer__bottom p { max-width: none; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  body { font-size: 1.0625rem; }
  .brand svg { width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
