/* Nunatak LLC — site styles. Source: site-src/css/*.css, concatenated by build.py. No external dependencies. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ice: #f2f6f9;
  --ice-deep: #e3ecf2;
  --snow: #ffffff;
  --slate: #142433;
  --slate-2: #1d3346;
  --glacier: #1d5e8c;
  --crevasse: #86cde3;
  --rock: #52616e;
  --line: #cbd8e2;
  --line-dark: #2f4a60;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ice);
  color: var(--slate);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--glacier); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--glacier);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--slate);
  color: var(--snow);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.025em;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  max-width: 38em;
}

.muted { color: var(--rock); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ice) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.98rem;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { border-color: var(--glacier); color: var(--glacier); }
.site-nav a[aria-current="page"] { border-color: var(--slate); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(40px, 7vw, 96px);
}

.hero-copy { padding-bottom: clamp(40px, 6vw, 88px); }

.hero h1 {
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  line-height: 1.02;
  margin-bottom: 0.55em;
}

.hero .lead { margin-bottom: 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 640;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.button-primary { background: var(--slate); color: var(--snow); }
.button-primary:hover { background: var(--glacier); }
.button-quiet { color: var(--slate); box-shadow: inset 0 0 0 2px var(--slate); }
.button-quiet:hover { box-shadow: inset 0 0 0 2px var(--glacier); color: var(--glacier); }

/* The hero range (peak window) lives in 20-hero-brand.css. */

/* The icefield: a full-width line the peak stands on. */
.icefield {
  position: relative;
  height: 3px;
  background: var(--slate);
  transform-origin: 0 50%;
}

.hero-foot {
  background: var(--ice-deep);
  border-bottom: 1px solid var(--line);
}
.hero-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-block: 14px;
  font-size: 0.9rem;
  color: var(--rock);
}
.hero-foot p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .icefield { animation: ice-spread 0.9s cubic-bezier(0.6, 0, 0.2, 1) both; }
}

@keyframes ice-spread {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 128px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.section-head p { max-width: 36em; }

/* Mission */
.mission .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px clamp(24px, 5vw, 80px);
}
.mission h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.mission-body p:first-child {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.45;
  font-weight: 450;
}

/* Product index */
.products { background: var(--snow); border-block: 1px solid var(--line); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-grid li { background: var(--snow); }
.product-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: clamp(24px, 2.6vw, 36px);
  color: var(--slate);
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.product-tile:hover { background: var(--ice); }
.product-tile:hover .tile-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.product-tile .glyph { width: 44px; height: 44px; color: var(--glacier); margin-bottom: 12px; }
.tile-name {
  font-stretch: 125%;
  font-weight: 780;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.tile-kind { font-weight: 600; color: var(--rock); font-size: 0.95rem; margin-top: -4px; }
.tile-text { margin: 4px 0 14px; }
.product-tile .status { margin-top: auto; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-live { background: #dcecf6; color: #164a6e; }
.status-live::before { background: var(--glacier); }
.status-dev { background: transparent; color: var(--rock); box-shadow: inset 0 0 0 1px var(--line); }
.status-dev::before { box-shadow: inset 0 0 0 2px var(--rock); }

.status-key { margin-top: 20px; font-size: 0.92rem; color: var(--rock); }

/* Product detail */
.product {
  padding-block: clamp(48px, 5.5vw, 80px);
  border-bottom: 1px solid var(--line);
}
.product:last-of-type { border-bottom: 0; }
.product .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 28px clamp(24px, 5vw, 80px);
  align-items: start;
}
.product-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-head .glyph { width: 56px; height: 56px; color: var(--glacier); }
.product-head h3 {
  font-stretch: 125%;
  font-weight: 820;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.product-kind { font-weight: 600; font-size: 1.05rem; color: var(--rock); margin: 0; }

.product-body .lead { margin-bottom: 1.5rem; }

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.features li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
}
.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 14px;
  height: 11px;
  background: var(--glacier);
  clip-path: polygon(0 100%, 45% 0, 62% 35%, 72% 20%, 100% 100%);
}
.features .note { color: var(--rock); }

/* How we build */
.build {
  background: var(--slate);
  color: #e6eef4;
  padding-bottom: clamp(64px, 9vw, 128px);
}
.build-photo {
  position: relative;
  height: clamp(180px, 26vw, 380px);
  overflow: hidden;
}
.build-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.build-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 36, 51, 0.15) 0%, rgba(20, 36, 51, 0.35) 55%, var(--slate) 100%);
}
.build .section-head { margin-top: clamp(-90px, -6vw, -40px); position: relative; z-index: 1; }
.build h2 { color: var(--snow); }
.build .section-head p { color: #c9d7e2; }

.practices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 48px) clamp(24px, 3.5vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.practices li { border-top: 2px solid var(--line-dark); padding-top: 20px; }
.practices h3 {
  color: var(--snow);
  font-size: 1.3rem;
  font-stretch: 112%;
  margin-bottom: 10px;
}
.practices p { color: #c9d7e2; }
.build a { color: var(--crevasse); }

/* Juneau band */
.place {
  position: relative;
  background: var(--slate);
}
.place-photo img {
  width: 100%;
  height: clamp(320px, 42vw, 620px);
  object-fit: cover;
  object-position: 50% 45%;
}
.place-card {
  position: relative;
  margin-top: clamp(-160px, -10vw, -72px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.place-card .card {
  background: var(--ice);
  max-width: 640px;
  padding: clamp(28px, 4vw, 48px);
  border-top: 3px solid var(--slate);
}
.place-card h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-bottom: 0.5em; }
.place-card figcaption { color: #c9d7e2; font-size: 0.875rem; margin-top: 16px; }
.place .actions { margin-top: 1.5rem; }

/* ---------- Inner pages ---------- */

.page-head { padding-top: clamp(48px, 7vw, 96px); }
.page-head h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 0.4em;
}
.page-head .lead { margin-bottom: clamp(32px, 4vw, 56px); }
.page-head + .icefield-static { height: 3px; background: var(--slate); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px clamp(24px, 5vw, 80px);
  padding-block: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.two-col:last-child { border-bottom: 0; }
.two-col h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.two-col .body { max-width: 40em; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts dt, .facts dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-weight: 640; padding-right: 32px; }

.names { margin: 0; padding: 0; list-style: none; }
.names li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.names li:first-child { border-top: 1px solid var(--line); }
.names strong { font-stretch: 118%; font-weight: 760; }

.wide-photo { margin-block: 0; }
.wide-photo img { width: 100%; height: clamp(240px, 34vw, 480px); object-fit: cover; }
.wide-photo figcaption { font-size: 0.875rem; color: var(--rock); padding-top: 10px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-block: clamp(40px, 5vw, 64px);
}
.contact-card { background: var(--snow); padding: clamp(28px, 3.5vw, 44px); }
.contact-card h2 { font-size: 1.5rem; font-stretch: 112%; margin-bottom: 0.6em; }
.contact-card .email {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 680;
  font-stretch: 108%;
  word-break: break-word;
}

/* Legal */
.legal { padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 120px); }
.legal .doc { max-width: 70ch; }
.legal .updated { color: var(--rock); font-weight: 600; margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.45rem;
  font-stretch: 110%;
  margin: 2.4em 0 0.6em;
}
.legal h3 { font-size: 1.1rem; margin: 1.6em 0 0.4em; }
.legal ul { padding-left: 1.25em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal .summary {
  background: var(--snow);
  border-left: 3px solid var(--glacier);
  padding: 20px 24px;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate);
  color: #c9d7e2;
  font-size: 0.95rem;
  border-top: 1px solid var(--line-dark);
}
.site-footer a { color: #e6eef4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: clamp(48px, 6vw, 72px) 40px;
}
.site-footer .brand { color: var(--snow); }
.footer-about p { margin-top: 16px; max-width: 26em; }
.site-footer h2 {
  font-size: 1rem;
  color: var(--snow);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 20px 28px;
  background: linear-gradient(var(--line-dark), var(--line-dark)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
}
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(72px, 12vw, 160px); }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 0.4em; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --header-h: 108px; }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding-block: 12px;
  }
  .site-nav { width: 100%; overflow-x: auto; }
  .site-nav ul { gap: 22px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; gap: 8px; }
  .hero-copy { padding-bottom: 28px; }
  .section-head, .mission .wrap, .product .wrap, .two-col { grid-template-columns: 1fr; }
  .product-head { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .product-grid, .practices { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 2px; }
}

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

@media print {
  .site-header, .site-nav, .hero .peak, .build-photo, .place-photo { display: none; }
  body { background: #fff; }
}

/* ---------- Brand lockup (outlined Archivo wordmark + peak mark) ---------- */
picture { display: contents; }

.brand { --lk-ice: var(--glacier); line-height: 0; }
.brand .lockup { display: block; height: 30px; width: auto; flex: none; overflow: visible; }
.lk-ink { fill: currentColor; }
.lk-ice { fill: var(--lk-ice); }
.site-footer .brand { --lk-ice: var(--crevasse); }
.site-footer .brand .lockup { height: 34px; }

/* ---------- Hero: the Nunatak range ---------- */
.hero .wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.hero h1 { font-size: clamp(2.3rem, 4vw, 3.8rem); }

.peak.range {
  margin: 0 calc(-1 * var(--gutter)) 0 0;
  position: relative;
  align-self: end;
}
.peak-window {
  position: relative;
  aspect-ratio: 1.3 / 1;
  background: var(--ice-deep);
  isolation: isolate;
}
.peak-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.range-facets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.facet { opacity: var(--o); mix-blend-mode: multiply; }

@keyframes facet-rise {
  from { transform: translateY(var(--r)); }
  to { transform: none; }
}
@keyframes facet-clear {
  from { opacity: 0.94; }
  to { opacity: var(--o); }
}
@keyframes peak-settle {
  from { transform: scale(1.12) translateY(4%); }
  to { transform: none; }
}

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .peak.range { margin: 8px calc(-1 * var(--gutter)) 0; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--rock);
}
.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 10px 1px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.crumbs a { color: var(--rock); }
.crumbs a:hover { color: var(--glacier); }
.crumbs [aria-current] { color: var(--slate); font-weight: 600; }

/* ---------- Shared bits ---------- */
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 650;
  text-decoration: none;
}
.more::after {
  content: "";
  width: 18px; height: 10px;
  background: currentColor;
  clip-path: polygon(0 40%, 70% 40%, 70% 0, 100% 50%, 70% 100%, 70% 60%, 0 60%);
  transition: transform 0.2s ease;
}
.more:hover::after { transform: translateX(4px); }
.more:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.tile-more { margin-top: 2px; font-weight: 650; color: var(--glacier); font-size: 0.95rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: 14px;
}

.button-light { background: var(--snow); color: var(--slate); }
.button-light:hover { background: var(--crevasse); color: var(--slate); }
.button-ghost-light { color: var(--snow); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.button-ghost-light:hover { box-shadow: inset 0 0 0 2px var(--crevasse); color: var(--crevasse); }
.button .ext {
  width: 12px; height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  position: relative;
}

/* ---------- Product pages ---------- */
.p-hero { position: relative; overflow: hidden; }
.p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 72px) clamp(48px, 6vw, 88px);
}
.p-id { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.p-id .glyph { width: 48px; height: 48px; color: var(--glacier); }
.p-id .status { align-self: center; }
.p-kind { font-weight: 650; color: var(--rock); }
.p-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; }
.p-tagline {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 650;
  font-stretch: 110%;
  line-height: 1.2;
  margin: 0.45em 0 0.7em;
  color: var(--slate-2);
  max-width: 22em;
}
.p-hero .lead { margin-bottom: 1.8rem; }
.p-site { margin-top: 18px; color: var(--rock); font-size: 0.95rem; }

.p-hero-media { position: relative; padding: 0 0 56px 0; }
.p-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ice-deep);
  box-shadow: 0 30px 60px -30px rgba(20, 36, 51, 0.45);
}
.p-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-mock {
  position: absolute;
  right: -8px;
  bottom: 0;
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

/* Device frames */
.device {
  font-size: 11px;
  line-height: 1.35;
  color: var(--slate);
  text-align: left;
  box-shadow: 0 24px 50px -18px rgba(20, 36, 51, 0.5), 0 0 0 1px rgba(20, 36, 51, 0.08);
}
.phone {
  width: 186px;
  padding: 9px;
  border-radius: 30px;
  background: var(--slate);
}
.phone-screen {
  border-radius: 22px;
  background: var(--ice);
  min-height: 330px;
  padding: 26px 10px 12px;
  position: relative;
  overflow: hidden;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 54px; height: 12px;
  margin-left: -27px;
  border-radius: 8px;
  background: var(--slate);
}
.browser {
  width: 420px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--snow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--ice-deep);
  border-bottom: 1px solid var(--line);
}
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #b9c8d4; }
.url {
  flex: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--snow);
  color: var(--rock);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-screen { padding: 12px; }

.app-bar { display: flex; flex-direction: column; margin: 2px 2px 10px; }
.ab-title { font-weight: 800; font-size: 13px; font-stretch: 112%; }
.ab-sub { color: var(--rock); }
.m-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 9px;
  margin-bottom: 7px;
}
.m-card b { font-size: 12px; }
.m-when { color: var(--rock); font-size: 10px; font-weight: 600; }
.m-sub { color: var(--rock); }
.m-chip {
  align-self: flex-start;
  margin-top: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: var(--ice-deep);
  color: var(--slate-2);
}
.m-chip.ok { background: #d8efe6; color: #1c5a44; }
.m-chip.warn { background: #fbe9d2; color: #7a4a12; }
.m-note {
  display: flex; flex-direction: column; gap: 2px;
  border-radius: 10px;
  padding: 8px 9px;
  background: var(--slate);
  color: var(--snow);
  margin-bottom: 7px;
}
.m-note.ok { background: #1c5a44; }
.m-note span { color: #d5e3ec; }
.bar { height: 6px; border-radius: 999px; background: var(--ice-deep); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: var(--p); background: var(--glacier); border-radius: inherit; transform-origin: 0 50%; }

/* Rookery */
.m-scoreline { display: grid; grid-template-columns: 1fr auto auto 1fr; gap: 6px; align-items: center; margin: 4px 0; }
.m-scoreline span:last-child { text-align: right; }
.m-scoreline b { font-size: 18px; font-stretch: 120%; background: var(--slate); color: var(--snow); border-radius: 6px; padding: 0 7px; }
.m-hype { display: flex; gap: 6px; }
.m-hype span { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 4px; border-radius: 999px; background: var(--ice); font-weight: 700; }
.m-hype svg { width: 14px; height: 14px; }
.m-passport { background: linear-gradient(135deg, #1d5e8c, #142433); color: var(--snow); border: 0; }
.m-passport .m-when, .m-passport .m-sub { color: #cfe3ef; }

/* Kittiwake */
.kw { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 10px; }
.kw-nav { background: var(--ice); border-radius: 8px; padding: 8px; }
.kw-nav b { display: block; margin-bottom: 6px; font-size: 11.5px; }
.kw-nav ol { margin: 0; padding: 0; list-style: none; }
.kw-nav li { padding: 4px 0 4px 16px; position: relative; color: var(--rock); }
.kw-nav li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rock); }
.kw-nav .done::before { background: var(--glacier); box-shadow: none; }
.kw-nav .now { color: var(--slate); font-weight: 700; }
.kw-nav .now::before { box-shadow: inset 0 0 0 3px var(--glacier); }
.kw-nav .lock::before { border-radius: 2px; }
.kw-main b { display: block; font-size: 12px; }
.kw-q { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.kw-q span { color: var(--rock); font-size: 10px; }
.kw-q p { margin: 3px 0 6px; font-weight: 650; }
.kw-q ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.kw-q li { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); }
.kw-q li.pick { border-color: var(--glacier); background: #e2f0f8; font-weight: 700; }
.p-kittiwake .p-mock { right: -8px; }
.kw-p { margin-bottom: -28px; }

/* Gangway */
.tk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: var(--snow); border-radius: 12px; padding: 10px 8px 12px; border: 1px solid var(--line); }
.tk b { font-size: 13px; line-height: 1.2; }
.tk-qr { width: 128px; height: 128px; margin: 6px 0 2px; }
.tk .m-chip { align-self: center; }
.gw-scan .phone-screen { background: #0f1c28; color: var(--snow); }
.scanview { position: relative; height: 150px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #33506a, #0f1c28 70%); margin-bottom: 8px; overflow: hidden; }
.sv-frame { position: absolute; inset: 26px 34px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(134, 205, 227, 0.9); }
.sv-line { position: absolute; left: 34px; right: 34px; top: 30px; height: 2px; background: var(--crevasse); box-shadow: 0 0 10px var(--crevasse); }
.gw-scan .m-card { background: #182c3d; border-color: #2f4a60; color: var(--snow); }
.gw-scan .m-when, .gw-scan .m-sub { color: #b8cbd8; }
.gw-wallet { margin-bottom: -28px; }

/* Cairn */
.cn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cn-help { background: linear-gradient(160deg, var(--slate), #1d5e8c); color: var(--snow); border-radius: 8px; padding: 10px; }
.cn-status { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; background: rgba(255,255,255,0.14); padding: 2px 8px; border-radius: 999px; }
.cn-status i { width: 7px; height: 7px; border-radius: 50%; background: #6fd3a6; }
.cn-h { display: block; margin: 10px 0 6px; font-size: 14px; font-stretch: 115%; }
.cn-search { background: var(--snow); color: var(--rock); border-radius: 6px; padding: 5px 8px; }
.cn-arts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.cn-arts li { padding: 4px 6px; border-radius: 5px; background: rgba(255,255,255,0.1); }
.cn-inbox { border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
.cn-msg { margin: 6px 0; padding: 6px 8px; border-radius: 8px; background: var(--ice); }
.cn-ai { border-left: 3px solid var(--glacier); padding-left: 8px; }
.cn-ai p { margin: 4px 0 6px; }
.cn-btns { display: flex; gap: 6px; }
.cn-btns span { padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 10px; }
.cn-btns .b1 { background: var(--slate); color: var(--snow); }
.cn-btns .b2 { box-shadow: inset 0 0 0 1px var(--slate); }

/* Icefield */
.ic-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ic-head b { font-size: 13px; }
.ic-list { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.ic-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ic-list .m-chip { margin: 0; }
.ic-bk { color: var(--rock); font-size: 10px; }
.ic-site { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-tt { background: var(--ice); border-radius: 8px; padding: 8px 10px; }
.tt-line { position: relative; display: flex; justify-content: space-between; margin: 10px 4px 8px; }
.tt-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); }
.tt-line i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--snow); box-shadow: inset 0 0 0 2px var(--glacier); }
.tt-line i.sel { background: var(--glacier); box-shadow: 0 0 0 4px rgba(29, 94, 140, 0.2); }

/* IceCap */
.cp-move b { display: block; font-size: 13px; }
.cp-chart { margin-top: 12px; }
.cp-bars { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.cp-bars li { display: grid; grid-template-columns: 30px 1fr; gap: 6px; align-items: center; }
.cp-bars .yr { color: var(--rock); font-size: 10px; }
.cp-bars .st { display: flex; height: 9px; border-radius: 3px; overflow: hidden; background: var(--ice-deep); }
.cp-bars .st i:first-child { width: var(--a); background: #9db0c0; }
.cp-bars .st i:last-child { width: var(--b); background: var(--glacier); }
.cp-key { display: inline-flex; align-items: center; gap: 6px; color: var(--rock); font-size: 10px; }
.cp-key i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.cp-key .k1 { background: #9db0c0; }
.cp-key .k2 { background: var(--glacier); margin-left: 6px; }
.cp-toggle { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 650; }
.tg { width: 30px; height: 17px; border-radius: 999px; background: var(--glacier); position: relative; }
.tg i { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--snow); }

@media (prefers-reduced-motion: no-preference) {
  .sv-line { animation: scan 2.4s ease-in-out infinite alternate; }
  .bar.live i { animation: fill 6s cubic-bezier(0.3, 0.6, 0.3, 1) infinite; }
  .tt-line i.sel { animation: pulse 2.2s ease-in-out infinite; }
}
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(92px); } }
@keyframes fill { 0% { transform: scaleX(0.55); } 70%, 100% { transform: scaleX(1.25); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(29, 94, 140, 0.12); } }

/* How it works */
.p-how { background: var(--snow); border-bottom: 1px solid var(--line); }
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.flow-step { position: relative; padding-top: 4px; }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 85px;
  left: calc(100% - 26px);
  width: calc(clamp(20px, 3vw, 44px) + 52px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--glacier) 0 6px, transparent 6px 12px);
  opacity: 0.6;
}
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 81px;
  left: calc(100% - 26px);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--glacier);
  z-index: 1;
}
.flow-n {
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--slate);
  color: var(--snow);
  font-weight: 800;
  font-size: 0.9rem;
}
.step-illo {
  display: block;
  width: 100%;
  height: 170px;
  margin: 0 0 18px;
  padding: 14px 20px 10px;
  background: var(--ice);
  border-radius: 16px;
}
.step-illo .ln { fill: none; stroke: var(--slate); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fa { fill: var(--ice-deep); }
.fb { fill: var(--crevasse); }
.fc { fill: var(--glacier); }
.fd { fill: var(--snow); }
.fe { fill: var(--slate); }
.fy { fill: #f2c14e; }
.fb-stroke { stroke: var(--glacier); }
.qr { fill: var(--slate); stroke: none; }
.svg-t { font: 800 15px var(--font); stroke: none; }
.flow-step h3 { font-size: 1.3rem; font-stretch: 112%; margin-bottom: 8px; }
.flow-step p { color: var(--slate-2); max-width: 30em; }

@media (prefers-reduced-motion: no-preference) {
  .flow-step:not(:last-child)::before { animation: travel 2.6s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
  .step-illo .scan-line { animation: scanline 1.8s ease-in-out infinite alternate; }
  .step-illo .node { animation: blink 2.4s ease-in-out var(--nd) infinite; }
  .step-illo .sig { animation: blink 1.6s ease-in-out infinite; }
}
@keyframes travel {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(calc(clamp(20px, 3vw, 44px) + 42px)); opacity: 0; }
}
@keyframes scanline { from { transform: translateY(-12px); } to { transform: translateY(14px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Feature groups */
.fgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.fgroup h3 { font-size: 1.3rem; font-stretch: 112%; margin-bottom: 14px; }
.fgroup .features li { padding-block: 12px; }
.fgroup .features li::before { top: 19px; }
.features li.is-note { padding-left: 0; color: var(--rock); font-size: 0.95rem; }
.features li.is-note::before { display: none; }
.flow-n { z-index: 2; }
.flow-step:not(:last-child)::after { z-index: 1; }

/* Who it's for */
.p-aud { background: var(--ice-deep); border-block: 1px solid var(--line); }
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.aud li { background: var(--snow); padding: clamp(22px, 2.6vw, 34px); }
.aud h3 { font-size: 1.2rem; font-stretch: 110%; margin-bottom: 8px; }
.aud p { color: var(--slate-2); }

/* Name origin band */
.p-origin { position: relative; background: var(--slate); }
.p-origin-photo { margin: 0; }
.p-origin-photo img { width: 100%; height: clamp(300px, 38vw, 560px); object-fit: cover; }
.p-origin .wrap { position: relative; margin-top: clamp(-150px, -9vw, -64px); padding-bottom: clamp(48px, 6vw, 80px); }
.p-origin-card { background: var(--ice); max-width: 560px; padding: clamp(24px, 3.5vw, 40px); border-top: 3px solid var(--slate); }
.p-origin-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 0.5em; }
.p-origin-card p { font-size: 1.1rem; }
.p-origin-card .cap { font-size: 0.875rem; color: var(--rock); margin-top: 14px; }

/* CTA band */
.p-cta { background: var(--slate); color: #e6eef4; overflow: hidden; border-top: 1px solid var(--line-dark); }
.p-cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: end; padding-top: clamp(56px, 7vw, 96px); }
.p-cta h2 { color: var(--snow); font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 0.4em; }
.p-cta p { color: #c9d7e2; max-width: 34em; margin-bottom: 1.6rem; }
.p-cta .actions { padding-bottom: clamp(56px, 7vw, 96px); }
.range-mini {
  aspect-ratio: 1.3 / 1;
  background: linear-gradient(170deg, #86cde3 0%, #1d5e8c 55%, #1d3346 100%);
  opacity: 0.9;
}

/* Other products */
.p-others h2 { font-size: 1.5rem; font-stretch: 112%; margin-bottom: 22px; }
.others { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.other {
  display: flex; gap: 12px; align-items: center;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--snow);
  color: var(--slate);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.other:hover { border-color: var(--glacier); transform: translateY(-2px); }
.other .glyph { width: 34px; height: 34px; flex: none; color: var(--glacier); }
.other b { display: block; font-stretch: 115%; }
.other span span { display: block; font-size: 0.85rem; color: var(--rock); line-height: 1.3; }

/* Products index */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.pcard {
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--slate);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(20, 36, 51, 0.45); }
.pcard:hover .tile-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.pcard-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ice-deep); }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pcard:hover .pcard-photo img { transform: scale(1.04); }
.pcard-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.pcard .glyph { width: 40px; height: 40px; color: var(--glacier); margin-top: -46px; padding: 6px; background: var(--snow); border-radius: 10px; box-sizing: content-box; }
.pcard .status { margin-top: auto; }
.pcard .tile-text { margin: 2px 0 12px; }

@media (max-width: 1024px) {
  .others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgroups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .p-hero-grid { grid-template-columns: 1fr; }
  .p-hero-media { padding-bottom: 40px; }
  .p-mock { right: 0; }
  .phone { width: 164px; }
  .phone-screen { min-height: 290px; }
  .flow, .aud, .fgroups { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after, .flow-step:not(:last-child)::before { display: none; }
  .p-cta-grid { grid-template-columns: 1fr; }
  .range-mini { display: none; }
}
@media (max-width: 600px) {
  .others, .pcards { grid-template-columns: 1fr; }
  .p-mock { position: relative; right: auto; margin-top: -90px; justify-content: center; }
  .p-hero-media { padding-bottom: 0; }
  .browser { width: 100%; }
  .kw-p, .gw-scan { display: none; }
  .gw-wallet { margin-bottom: 0; }
}

/* ---------- Contact page ---------- */
.c-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px);
}
.c-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; margin-bottom: 0.5em; }
.c-hero .lead { margin-bottom: 1.8rem; }
.c-hero-media { position: relative; }
.c-photo { margin: 0; }
.c-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(20, 36, 51, 0.55);
}
.c-photo figcaption { font-size: 0.85rem; color: var(--rock); margin-top: 10px; }
.c-float {
  position: absolute;
  left: -28px;
  bottom: 64px;
  width: clamp(150px, 16vw, 210px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(20, 36, 51, 0.6);
  border: 4px solid var(--snow);
}

/* Scenes (illustrations) */
.scene { display: block; width: 100%; height: auto; }
.scene .ln { fill: none; stroke: var(--slate); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scene .sky-day { fill: #dcecf6; stroke: none; }
.scene .sky-dusk { fill: #f3dccb; stroke: none; }
.scene .sky-night { fill: #0f1c28; stroke: none; }
.scene-aurora .ln { stroke: #0f1c28; }
.scene .aur path { fill: none; stroke-width: 9; stroke-linecap: round; mix-blend-mode: screen; }
.scene .aur .a1 { stroke: #6fd3a6; opacity: 0.75; }
.scene .aur .a2 { stroke: #86cde3; opacity: 0.6; }
.scene .aur .a3 { stroke: #8f9fe8; opacity: 0.5; }
.scene .crev path { stroke: var(--crevasse); stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .scene-kittiwake .bird { animation: glide 6s ease-in-out infinite; transform-box: fill-box; }
  .scene-kittiwake .wing-l { animation: flap-l 1.6s ease-in-out infinite; transform-origin: 120px 72px; }
  .scene-kittiwake .wing-r { animation: flap-r 1.6s ease-in-out infinite; transform-origin: 120px 72px; }
  .scene-gangway .dock { animation: bob 4s ease-in-out infinite; }
  .scene-gangway .wave { animation: drift 7s linear infinite; }
  .scene-aurora .a1 { animation: shimmer 6s ease-in-out infinite; }
  .scene-aurora .a2 { animation: shimmer 8s ease-in-out -2s infinite reverse; }
  .scene-aurora .a3 { animation: shimmer 7s ease-in-out -4s infinite; }
  .scene-icefield .crev { animation: glint 5s ease-in-out infinite; }
  .done-cairn .st { animation: stack 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  .done-cairn .st2 { animation-delay: 0.15s; }
  .done-cairn .st3 { animation-delay: 0.3s; }
  .done-cairn .st4 { animation-delay: 0.45s; }
}
@keyframes glide { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, -6px); } }
@keyframes flap-l { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }
@keyframes flap-r { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@keyframes shimmer { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 0.85; transform: translateY(-5px); } }
@keyframes glint { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes stack { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.scene-gangway .wave { transform-box: view-box; }

/* Layout */
.c-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px);
}

/* Form */
.c-form, .c-done {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3.4vw, 44px);
}
.c-form-head h2, .c-done h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-stretch: 112%; margin-bottom: 6px; }
.c-form-head p { color: var(--rock); font-size: 0.95rem; }
.req { color: #b4232c; font-weight: 700; }
.opt { color: var(--rock); font-weight: 450; font-size: 0.9em; }

.f-set { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.f-set legend {
  padding: 0;
  margin-bottom: 14px;
  font-weight: 760;
  font-stretch: 112%;
  font-size: 1.15rem;
}
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.f-wide { grid-column: 1 / -1; }
.f-field label { display: block; font-weight: 640; margin-bottom: 6px; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%;
  font: inherit;
  color: var(--slate);
  background: var(--ice);
  border: 1.5px solid #9fb2c1;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.f-field textarea { resize: vertical; min-height: 150px; }
.f-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.f-field input:hover, .f-field select:hover, .f-field textarea:hover { border-color: var(--glacier); }
.f-field input:focus-visible, .f-field select:focus-visible, .f-field textarea:focus-visible {
  outline: 3px solid var(--glacier);
  outline-offset: 1px;
  background: var(--snow);
  border-color: var(--glacier);
}
[aria-invalid="true"] { border-color: #b4232c !important; background: #fff6f6 !important; }
.f-err { color: #a3141d; font-weight: 600; font-size: 0.92rem; margin: 6px 0 0; }
.f-err::before { content: "! "; font-weight: 800; }
.f-hint { color: var(--rock); font-size: 0.9rem; margin: 6px 0 0; }
.f-alert {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ice-deep);
  font-weight: 600;
}
.f-alert.bad { background: #fdecec; color: #8a1018; box-shadow: inset 4px 0 0 #b4232c; }
.f-alert:focus { outline: 3px solid var(--glacier); outline-offset: 2px; }

/* Product picker: radio inputs styled as cards */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 12px; }
.pk { position: relative; display: block; cursor: pointer; }
.pk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; width: 100%; height: 100%; }
.pk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: var(--ice);
  border: 1.5px solid var(--line);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pk-card .glyph { width: 36px; height: 36px; color: var(--glacier); margin-bottom: 8px; transition: transform 0.3s ease; }
.pk-name { font-weight: 780; font-stretch: 115%; font-size: 1.08rem; }
.pk-kind { color: var(--rock); font-size: 0.86rem; line-height: 1.35; }
.pk-st { align-self: flex-start; margin-top: 8px; font-size: 0.74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pk-st.live { background: #dcecf6; color: #164a6e; }
.pk-st.dev { box-shadow: inset 0 0 0 1px #9fb2c1; color: var(--rock); }
.pk-tick {
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #9fb2c1;
  background: var(--snow);
}
.pk:hover .pk-card { border-color: var(--glacier); transform: translateY(-2px); }
.pk input:checked + .pk-card {
  border-color: var(--slate);
  background: var(--snow);
  box-shadow: 0 0 0 1.5px var(--slate), 0 16px 30px -18px rgba(20, 36, 51, 0.5);
}
.pk input:checked + .pk-card .glyph { transform: translateY(-2px) scale(1.08); }
.pk input:checked + .pk-card .pk-tick {
  background: var(--slate);
  box-shadow: none;
}
.pk input:checked + .pk-card .pk-tick::after {
  content: "";
  position: absolute;
  left: 7px; top: 4px;
  width: 6px; height: 11px;
  border-right: 2.5px solid var(--snow);
  border-bottom: 2.5px solid var(--snow);
  transform: rotate(45deg);
}
.pk input:focus-visible + .pk-card { outline: 3px solid var(--glacier); outline-offset: 3px; }

/* Interest chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; width: 100%; height: 100%; }
.chip span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid #9fb2c1;
  background: var(--ice);
  font-weight: 620;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover span { border-color: var(--glacier); }
.chip input:checked + span { background: var(--slate); border-color: var(--slate); color: var(--snow); }
.chip input:focus-visible + span { outline: 3px solid var(--glacier); outline-offset: 3px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.f-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.f-submit p { margin: 0; color: var(--rock); font-size: 0.92rem; max-width: 28em; }
.f-submit .button { border: 0; cursor: pointer; font-family: inherit; padding: 16px 30px; font-size: 1.05rem; }
.f-submit .button:disabled { opacity: 0.7; cursor: progress; }

.c-done { text-align: left; }
.c-done .scene { max-width: 240px; height: 160px; border-radius: 14px; margin-bottom: 18px; }
.c-done:focus { outline: 3px solid var(--glacier); outline-offset: 3px; }
.c-done .actions { margin-top: 22px; }

/* Sidebar */
.c-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.c-card { background: var(--snow); border: 1px solid var(--line); border-radius: 18px; padding: 24px; overflow: hidden; }
.c-card h2 { font-size: 1.3rem; font-stretch: 112%; margin-bottom: 10px; }
.c-card .scene { margin: -24px -24px 18px; width: calc(100% + 48px); max-width: none; height: 160px; }
.scene .fr { fill: #3d5266; }
.c-float .scene { height: auto; aspect-ratio: 3 / 2; }
.c-support { background: var(--slate); color: #d7e3ec; border-color: var(--slate); }
.c-support h2 { color: var(--snow); }
.c-links { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.c-links a { color: var(--snow); font-weight: 680; font-size: 1.08rem; }
.c-links a:hover { color: var(--crevasse); }
.c-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.c-steps li { counter-increment: s; position: relative; padding: 0 0 12px 38px; }
.c-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ice-deep);
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.85rem;
}
.c-direct .facts { grid-template-columns: max-content 1fr; }
.c-direct .facts dd { word-break: break-word; }

/* Photo + illustration mosaic */
.c-strip { padding-bottom: clamp(56px, 7vw, 96px); }
.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mosaic li { position: relative; border-radius: 16px; overflow: hidden; background: var(--ice-deep); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.m-a { grid-row: 1 / 3; }
.m-illo .scene { width: 100%; height: 100%; object-fit: cover; }
.m-illo svg.scene { height: 100%; }
.m-illo span {
  position: absolute;
  left: 12px; bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}
.m-d span { background: rgba(15, 28, 40, 0.75); color: var(--snow); }
.m-cap { margin-top: 12px; font-size: 0.875rem; color: var(--rock); }

@media (max-width: 1024px) {
  .c-main { grid-template-columns: 1fr; }
  .c-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 820px) {
  .c-hero-grid { grid-template-columns: 1fr; }
  .c-float { left: 12px; bottom: 76px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
  .m-a { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .f-grid { grid-template-columns: 1fr; }
  .picker { grid-template-columns: 1fr 1fr; }
  .pk-card { padding: 12px; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
}

/* ---------- Hero range (generated by build.py from shapes.py) ---------- */
.peak-window { clip-path: polygon(0% 100%, 10.77% 70%, 14.88% 78.02%, 30.77% 38%, 36.63% 56.16%, 39.97% 53%, 54.76% 4%, 60.68% 0%, 66.6% 15%, 73.25% 34%, 78.77% 44.78%, 83.08% 28%, 100% 100%); }
.range-mini { clip-path: polygon(0% 100%, 10.77% 70%, 14.88% 78.02%, 30.77% 38%, 36.63% 56.16%, 39.97% 53%, 54.76% 4%, 60.68% 0%, 66.6% 15%, 73.25% 34%, 78.77% 44.78%, 83.08% 28%, 100% 100%); }
@media (prefers-reduced-motion: no-preference) {
  .range .peak-window { animation: range-rise 1.8s cubic-bezier(0.22, 0.8, 0.12, 1) 0.45s both; }
  .range .peak-window img { animation: peak-settle 2.6s cubic-bezier(0.22, 0.8, 0.12, 1) 0.45s both; }
  .range .facet {
    animation:
      facet-rise 1.9s cubic-bezier(0.22, 0.8, 0.12, 1) calc(0.45s + var(--d)) both,
      facet-clear 1.3s ease calc(1.85s + var(--d)) both;
  }
}
@keyframes range-rise {
  from { clip-path: polygon(0% 100%, 10.77% 100%, 14.88% 100%, 30.77% 100%, 36.63% 100%, 39.97% 100%, 54.76% 100%, 60.68% 100%, 66.6% 100%, 73.25% 100%, 78.77% 100%, 83.08% 100%, 100% 100%); }
  to { clip-path: polygon(0% 100%, 10.77% 70%, 14.88% 78.02%, 30.77% 38%, 36.63% 56.16%, 39.97% 53%, 54.76% 4%, 60.68% 0%, 66.6% 15%, 73.25% 34%, 78.77% 44.78%, 83.08% 28%, 100% 100%); }
}
