/* ==========================================================================
   Open Source GA — site stylesheet
   Tokens follow the Hyer Aviation reference: white canvas, deep ink type,
   pale sky hero, one clay accent, pill buttons, no drop shadows.
   ========================================================================== */

:root {
  /* Color */
  --ink: #10192b;        /* primary text, filled buttons, footer — pulled from the logo's navy */
  --hull: #172033;       /* dark section band */
  --deck: #1f2a41;       /* elevated panel on dark */
  --sky: #dfe9f3;        /* hero field */
  --sky-deep: #c3d6e8;   /* hero field gradient end */
  --canvas: #ffffff;
  --plate: #f3f5f8;      /* image plate background */
  --ash: #6f7684;        /* secondary text */
  --pebble: #d8dce3;     /* hairlines */
  --clay: #bc7155;       /* the single warm accent — one use per viewport */

  /* Type */
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(64px, 9vw, 112px);
  --radius-pill: 1000px;
  --radius-panel: 45px;   /* hero stage only */
  --radius-md: 28px;      /* every card, panel, and dialog */
  --radius-sm: 20px;      /* image plates and inline notices */

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.61;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
p a, li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, li a:hover { color: var(--clay); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

::selection { background: var(--sky-deep); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.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;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display {
  font-size: clamp(56px, 9.6vw, 131px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.h-xl { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.03em; line-height: 0.95; }
.h-lg { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.03em; line-height: 0.96; }
.h-md { font-size: clamp(28px, 3vw, 40px); }
.h-sm { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.015em; line-height: 1.1; }

.lead {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
}

.measure { max-width: 62ch; }
.muted { color: var(--ash); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.small { font-size: 16px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }

.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--deck); border-color: var(--deck); }

.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: var(--sky); border-color: var(--sky); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

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

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s var(--ease);
}
.link:hover { color: var(--clay); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--pebble); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand img { height: 46px; width: auto; }
.brand span { display: none; }
@media (min-width: 560px) { .brand span { display: inline; } }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 4px; }
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ash);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--plate); }
.nav a[aria-current="page"] { color: #fff; background: var(--ink); }

.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

/* Hamburger */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  position: relative;
}
@media (min-width: 900px) { .menu-btn { display: none; } }
.menu-btn span {
  position: absolute;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn span:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 10vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .14s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .20s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .26s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .32s; }
.mobile-menu nav a[aria-current="page"] { color: var(--sky-deep); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 16px; color: rgba(255,255,255,.7); }
.mobile-menu.is-open .site-header { border-bottom-color: transparent; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--ink); }
body.menu-open .brand, body.menu-open .menu-btn { color: #fff; }
body.menu-open .menu-btn { border-color: rgba(255,255,255,.5); }
body.menu-open .menu-btn span { background: #fff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--dark { background: var(--hull); color: #fff; }
.section--ink { background: var(--ink); color: #fff; }
.section--sky { background: var(--sky); }
.section--dark .muted, .section--ink .muted { color: rgba(255,255,255,.62); }
.section--dark .lead, .section--ink .lead { color: #fff; }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 48px; }
  .section-head > p { margin: 0; }
}

.rule { border: 0; border-top: 1px solid var(--pebble); margin: 0; }
.section--dark .rule, .section--ink .rule { border-color: rgba(255,255,255,.14); }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
.hero__grid {
  display: grid;
  gap: 40px;
  align-items: stretch;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
}
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}
.hero__title .word > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise .9s var(--ease) forwards;
}
.hero__title .word:nth-child(1) > span { animation-delay: .05s; }
.hero__title .word:nth-child(2) > span { animation-delay: .15s; }
.hero__title .word:nth-child(3) > span { animation-delay: .25s; }
@keyframes rise { to { transform: none; } }

.hero__copy .lead, .hero__copy .btn-row {
  opacity: 0;
  animation: fade .8s var(--ease) .55s forwards;
}
@keyframes fade { to { opacity: 1; } }

.hero__stage {
  position: relative;
  border-radius: var(--radius-panel);
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%);
  min-height: 420px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 48px 32px 40px;
  isolation: isolate;
}
@media (min-width: 960px) { .hero__stage { min-height: 560px; } }

/* Faint point-cloud grid that fades in behind the scanner */
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16,25,43,.22) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0;
  animation: fade 1.6s var(--ease) 1.2s forwards;
  z-index: 0;
}

.hero__scanner {
  position: relative;
  z-index: 1;
  width: min(92%, 640px);
  transform: translateY(18px) scale(.97);
  opacity: 0;
  animation: settle 1.2s var(--ease) .35s forwards;
}
@keyframes settle { to { transform: none; opacity: 1; } }

/* The signature: a single scan sweep across the product on load */
.scan-line {
  position: absolute;
  left: 0; right: 0;
  top: -12%;
  height: 12%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(188,113,85,0) 0%, rgba(188,113,85,.28) 70%, var(--clay) 100%);
  opacity: 0;
  animation: sweep 2.2s cubic-bezier(.65,.05,.36,1) .9s 1 forwards;
}
@keyframes sweep {
  0%   { top: -12%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero__caption {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  border-top: 1px solid rgba(16,25,43,.18);
  padding-top: 14px;
  margin-top: 24px;
}
.hero__caption strong { font-family: var(--font-display); font-weight: 700; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-hero__grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 56px; }
}
.page-hero .display { font-size: clamp(48px, 8vw, 110px); }
/* A long page title needs a smaller size, or it stacks into five cramped lines. */
.page-hero .display--long { font-size: clamp(38px, 5.4vw, 72px); }

/* --------------------------------------------------------------------------
   Offer cards (three paths)
   -------------------------------------------------------------------------- */
.paths {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) { .paths { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.path {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-md);
  min-height: 360px;
  transition: border-color .25s var(--ease);
}
.path:hover { border-color: var(--ink); }
.path h3 { font-size: 30px; letter-spacing: -0.025em; }
.path p { flex: 1; color: var(--ash); }
.path .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.path .price small { font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--ash); margin-left: 6px; }

/* Featured card: clay, hard edges — per the reference it must not be rounded */
.path--featured {
  background: var(--clay);
  border-color: var(--clay);
  border-radius: 0;
  color: var(--ink);
}
.path--featured:hover { border-color: var(--clay); }
.path--featured p, .path--featured .price small { color: rgba(16,25,43,.78); }

/* --------------------------------------------------------------------------
   Plates (scan renderings)
   -------------------------------------------------------------------------- */
.plates {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .plates { grid-template-columns: repeat(6, 1fr); gap: 28px; }
  .plates > .plate { grid-column: span 2; }
  .plates > .plate--wide { grid-column: span 4; grid-row: span 2; }
  .plates > .plate--wide .plate__img { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
  .plates > .plate--half { grid-column: span 3; }
}

.plate { display: flex; flex-direction: column; min-width: 0; }
.plate__img { flex: 0 0 auto; }
.plate__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--plate);
}
.plate--wide .plate__img { aspect-ratio: 16 / 9; }
.plate__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform .8s var(--ease);
}
a.plate:hover .plate__img img { transform: scale(1.03); }
.plate__cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--pebble);
  font-size: 16px;
  line-height: 1.4;
}
.plate__cap strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; display: block; }
.plate__cap span { color: var(--ash); }
.plate__cap em { font-style: normal; color: var(--ash); white-space: nowrap; }

.section--dark .plate__img { background: #fff; }
.section--dark .plate__cap { border-color: rgba(255,255,255,.16); }
.section--dark .plate__cap span, .section--dark .plate__cap em { color: rgba(255,255,255,.62); }

/* Reveal on scroll — only used on plates and steps, staggered */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .40s; }

/* --------------------------------------------------------------------------
   Repository teaser / waitlist
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.split--wide-left { }
@media (min-width: 900px) { .split--wide-left { grid-template-columns: 1.25fr 1fr; } }

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.waitlist > .input { flex: none; width: 100%; }
.input {
  flex: 1 1 240px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--pebble);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  transition: border-color .2s var(--ease);
}
.input::placeholder { color: var(--ash); }
.input:focus { border-color: var(--ink); outline: none; }
.section--dark .input, .section--ink .input {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.section--dark .input::placeholder, .section--ink .input::placeholder { color: rgba(255,255,255,.55); }
.section--dark .input:focus, .section--ink .input:focus { border-color: #fff; }
.form-note { font-size: 15px; color: var(--ash); }
.section--dark .form-note, .section--ink .form-note { color: rgba(255,255,255,.62); }
.form-success {
  display: none;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
}
.form-success.is-visible { display: block; }
.waitlist.is-done .waitlist__row, .waitlist.is-done .form-note, .waitlist.is-done > .input { display: none; }

/* --------------------------------------------------------------------------
   Stat list (definition-style rows, not big-number tiles)
   -------------------------------------------------------------------------- */
.spec-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--pebble);
}
.spec-list li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pebble);
  font-size: 17px;
}
.spec-list li span:first-child { color: var(--ash); }
.spec-list li span:last-child { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.section--dark .spec-list, .section--dark .spec-list li { border-color: rgba(255,255,255,.14); }
.section--dark .spec-list li span:first-child { color: rgba(255,255,255,.62); }

/* Check list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='black'/><path d='M4.5 8.3l2.3 2.3 4.7-4.9' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='black'/><path d='M4.5 8.3l2.3 2.3 4.7-4.9' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

/* --------------------------------------------------------------------------
   Offer panels (services page)
   -------------------------------------------------------------------------- */
.offers { display: grid; gap: 20px; }
@media (min-width: 900px) { .offers { grid-template-columns: 1fr 1fr; gap: 24px; } }

.offer {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-md);
}
.offer--featured { background: var(--clay); border-color: var(--clay); border-radius: 0; }
.offer h2 { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.03em; }
.offer__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.offer__price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 16px; letter-spacing: 0; color: var(--ash); margin-top: 8px; }
.offer--featured .offer__price small, .offer--featured .muted { color: rgba(16,25,43,.75); }
.offer__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------------------------
   Steps (true sequences only)
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--pebble);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--pebble);
}
@media (min-width: 720px) { .steps li { grid-template-columns: 96px 1fr 1.6fr; gap: 32px; } }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ash);
}
.steps h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.steps p { color: var(--ash); grid-column: 2; }
@media (min-width: 720px) { .steps p { grid-column: auto; } }
.section--dark .steps, .section--dark .steps li { border-color: rgba(255,255,255,.14); }
.section--dark .steps li::before { color: rgba(255,255,255,.4); }
.section--dark .steps p { color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------------------
   FAQ (native details, animated)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--pebble); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--pebble); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 12px no-repeat;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq__body { padding: 0 0 24px; color: var(--ash); max-width: 62ch; }
.faq details[open] .faq__body { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Catalog (repository page)
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--pebble);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.catalog { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 640px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .catalog { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.catalog .plate { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.catalog .plate.is-hidden { display: none; }
.catalog-empty { display: none; padding: 40px 0; color: var(--ash); }
.catalog-empty.is-visible { display: block; }
.catalog-count { color: var(--ash); font-size: 16px; }

/* Document dropzone (coming soon) */
.dropzone {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px);
  border: 1.5px dashed var(--ash);
  border-radius: var(--radius-md);
  background: var(--plate);
  align-self: stretch;
}
.dropzone__icon { color: var(--ink); margin-bottom: 6px; }
.dropzone p { max-width: 34ch; }
.dropzone .btn-row { margin-top: 8px; }

/* Tiers */
.tiers { display: grid; gap: 16px; }
@media (min-width: 860px) { .tiers { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tier {
  display: flex; flex-direction: column; gap: 20px;
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
}
.tier--featured { background: var(--clay); border-color: var(--clay); border-radius: 0; color: var(--ink); }
.tier h3 { font-size: 28px; letter-spacing: -0.025em; }
.tier__price { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.tier__price small { font-family: var(--font-body); font-weight: 400; font-size: 16px; letter-spacing: 0; opacity: .7; margin-left: 4px; }
.tier .checks { flex: 1; }
.tier--featured .muted { color: rgba(16,25,43,.75); }

/* --------------------------------------------------------------------------
   Video / channel panel
   -------------------------------------------------------------------------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { display: grid; gap: 18px; justify-items: center; }
.video__poster img { width: 120px; height: auto; }
.video__poster p { color: rgba(255,255,255,.7); max-width: 34ch; }
.video.has-video .video__poster { display: none; }

/* --------------------------------------------------------------------------
   About / founder
   -------------------------------------------------------------------------- */
.founder {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-md);
  background: var(--plate);
}
@media (min-width: 800px) { .founder { grid-template-columns: 220px 1fr; gap: 40px; align-items: start; } }
.founder__badge {
  width: 220px; max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 28px;
}
.founder__badge img { width: 100%; height: auto; }

.contact-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.contact-grid h3 { font-size: 20px; margin-bottom: 8px; }
.contact-grid p { color: var(--ash); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 56px; } }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 7vw, 88px) 0 32px;
}
.footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand img { width: 120px; }
.footer__brand p { color: rgba(255,255,255,.7); max-width: 32ch; }
.footer__col h3 { font-size: 17px; margin-bottom: 16px; letter-spacing: -0.01em; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { color: rgba(255,255,255,.75); transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  font-size: 15px;
  color: rgba(255,255,255,.6);
}
.footer__legal { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.5); max-width: 78ch; margin-top: 20px; }

/* --------------------------------------------------------------------------
   Modal (booking fallback until Calendly is connected)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16,25,43,.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
.modal__card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 36px;
  display: grid;
  gap: 18px;
  transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease);
}
.modal.is-open .modal__card { transform: none; }
.modal__close {
  justify-self: end;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  margin: -8px -8px 0 0;
}
.modal__card h2 { font-size: 30px; letter-spacing: -0.025em; }
.modal__card p { color: var(--ash); }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.stack { display: grid; gap: 20px; }
.stack--lg { gap: 32px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.mt-xl { margin-top: clamp(48px, 6vw, 72px); }
.center { text-align: center; }
.text-white { color: #fff; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-delay: 0s !important;
    transition-duration: .001s !important;
  }
  .hero__title .word > span { transform: none; }
  .hero__copy .lead, .hero__copy .btn-row, .hero__scanner { opacity: 1; transform: none; }
  .scan-line { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Video carousel (About page)
   -------------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.vcard {
  flex: 0 0 min(78vw, 360px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.vcard__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard__media:hover img { transform: scale(1.04); }
.vcard__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease);
}
.vcard__play::after {
  content: "";
  margin-left: 5px;
  border-left: 18px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.vcard__media:hover .vcard__play { transform: scale(1.06); }
.vcard__cap {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--pebble);
}
.vcard__cap strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcard__cap span { color: var(--ash); font-size: 15px; }

.vcard--skeleton .vcard__media { background: var(--plate); }
.vcard--skeleton .vcard__cap strong { height: 1.25em; width: 80%; background: var(--plate); border-radius: 6px; }
.vcard--skeleton .vcard__cap span { height: 1em; width: 40%; background: var(--plate); border-radius: 6px; }
.carousel.is-ready .vcard--skeleton { display: none; }

.carousel__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.carousel__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.carousel__btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.carousel__btn:disabled { opacity: .3; cursor: default; }
.carousel__fallback { display: none; }
.carousel.is-empty .carousel__fallback { display: block; }
.carousel.is-empty .carousel__track, .carousel.is-empty .carousel__nav { display: none; }

/* --------------------------------------------------------------------------
   News cards (Repository page)
   -------------------------------------------------------------------------- */
.news { display: grid; gap: 20px; }
@media (min-width: 720px) { .news { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-md);
  transition: border-color .25s var(--ease);
}
.news-card:hover { border-color: var(--ink); }
.news-card time { color: var(--ash); font-size: 15px; }
.news-card h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.news-card p { color: var(--ash); flex: 1; }
.news-card .link { align-self: flex-start; }

/* Article page */
.article { max-width: 72ch; }
.article__meta { color: var(--ash); margin: 20px 0 32px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.article__body { font-size: 19px; line-height: 1.65; }
.article__body p { margin-bottom: 1.3em; max-width: 62ch; }
.article__body h2 { font-size: 30px; letter-spacing: -0.025em; margin: 1.6em 0 .6em; }
.article__body ul { max-width: 62ch; padding-left: 1.2em; }
.article__body li { margin-bottom: .5em; }
.article__body img { border-radius: var(--radius-sm); margin: 1.5em 0; }

/* --------------------------------------------------------------------------
   Shop map (coming soon)
   -------------------------------------------------------------------------- */
.map-panel {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%);
  overflow: hidden;
  isolation: isolate;
}
.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16,25,43,.22) 1px, transparent 1.4px);
  background-size: 18px 18px;
  z-index: 0;
}
.pin {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -100%);
  display: grid;
  justify-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.pin::after {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid rgba(255,255,255,.75);
  box-sizing: content-box;
}
.pin--you { color: var(--clay); }
.pin--you::after { background: var(--clay); }
.map-panel__note {
  position: absolute;
  z-index: 1;
  left: 24px; right: 24px; bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 15px;
  color: var(--ink);
  border-top: 1px solid rgba(16,25,43,.18);
  padding-top: 12px;
}
.map-panel__note strong { font-family: var(--font-display); font-weight: 700; }

/* --------------------------------------------------------------------------
   Inline Calendly scheduler (Consultation page)
   -------------------------------------------------------------------------- */
.calendly-inline {
  height: 1080px;                 /* phones: Calendly stacks details above the calendar */
  border: 1px solid var(--pebble);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
@media (min-width: 720px) { .calendly-inline { height: 760px; } }
.calendly-inline iframe { display: block; width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Shop
   -------------------------------------------------------------------------- */
.products { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.product:hover { border-color: var(--ink); }
.product.is-hidden { display: none; }
.product__img {
  aspect-ratio: 16 / 9;
  background: var(--plate);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.product__img img.is-logo { width: 45%; height: auto; object-fit: contain; mix-blend-mode: normal; }
.product__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.product__type {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--ash);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}
.product h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.product__desc { color: var(--ash); font-size: 16px; flex: 1; }
.product__includes { font-size: 15px; color: var(--ash); }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.product__price { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.product--soon .product__price { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--ash); }

/* --------------------------------------------------------------------------
   3D scan viewers (services page)
   -------------------------------------------------------------------------- */
.viewers { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 900px) { .viewers { gap: 28px; } }
.viewer { display: flex; flex-direction: column; }
.viewer__canvas {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%);
  touch-action: none;
  cursor: grab;
}
.viewer__canvas:active { cursor: grabbing; }
.viewer__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer__canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16,25,43,.18) 1px, transparent 1.4px);
  background-size: 18px 18px;
  pointer-events: none;
}
.viewer__status[hidden] { display: none; }
.viewer__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  pointer-events: none;
}
.viewer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--pebble);
}
.viewer__bar strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; display: block; }
.viewer__bar span { color: var(--ash); font-size: 15px; }
.viewer__tools { display: flex; gap: 8px; }
.viewer__tools .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.viewer-hint { color: var(--ash); font-size: 15px; margin-top: 16px; }

/* --------------------------------------------------------------------------
   Multi-field forms (quote request)
   -------------------------------------------------------------------------- */
.field-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } .field-grid__full { grid-column: 1 / -1; } }
.field-grid label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.field-grid .input { width: 100%; flex: none; }
.input--area { min-height: 110px; padding: 14px 22px; border-radius: var(--radius-sm); resize: vertical; line-height: 1.5; }
.quote-form.is-done .field-grid { display: none; }
.section--sky .form-success { background: rgba(255,255,255,.7); border-color: rgba(16,25,43,.15); }


/* Feedback when an email address is copied, since mailto may go nowhere. */
.copied-note {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--clay);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}
.site-footer .copied-note { background: rgba(255,255,255,.16); color: #fff; }
