/* =============================================================
   TESSERA — Inventory & asset-management systems for ITAD
   Design system: warm-stone canvas · Geist · clay accent
   No build step. Vanilla CSS.
   ============================================================= */

/* ----- Tokens ------------------------------------------------ */
:root {
  /* Surfaces & ink */
  --stone:        #E9E4D8;   /* page canvas (mid-tone warm) */
  --stone-2:      #E3DDCF;   /* slightly deeper band */
  --bone:         #F4F1E9;   /* raised surfaces / cards */
  --bone-2:       #FBF9F4;   /* lightest surface */
  --ink:          #23211B;   /* primary text / bark-black */
  --ink-soft:     #34312A;
  --steel:        #6B6557;   /* secondary text */
  --steel-2:      #8A8576;   /* tertiary / mono labels */
  --hairline:     #D4CEC0;   /* default rule */
  --hairline-2:   #C7C0AF;   /* stronger rule */

  /* Accent (used sparingly) */
  --clay:         #B5562F;
  --clay-deep:    #8E3F1E;   /* hover / text-on-light-clay */
  --clay-tint:    #F0E2D8;   /* faint clay wash */

  /* Supporting natural tone */
  --moss:         #5A6440;
  --moss-deep:    #404A2D;
  --moss-tint:    #E7E9DB;

  /* Dark anchor sections (warm loden, never black) */
  --loden:        #2C3327;
  --loden-2:      #232A20;
  --loden-line:   rgba(245, 242, 233, 0.10);
  --on-loden:     #ECE7DC;
  --on-loden-dim: #A9AC9C;

  /* Type */
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* Modular scale (fluid) */
  --fs-eyebrow: 0.75rem;
  --fs-small:   0.8125rem;
  --fs-body:    1rem;
  --fs-body-lg: clamp(1.0625rem, 0.96rem + 0.5vw, 1.25rem);
  --fs-h3:      clamp(1.25rem, 1.08rem + 0.7vw, 1.6rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  --fs-display: clamp(2.55rem, 1.6rem + 4.2vw, 4.6rem);
  --fs-hero:    clamp(2.9rem, 1.5rem + 6vw, 6.2rem);

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 18px;
  --section-y: clamp(5.5rem, 9vw, 11rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ----- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--clay); color: var(--bone-2); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bone-2);
  padding: 0.6rem 1rem; font: 500 var(--fs-small)/1 var(--mono);
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

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

/* ----- Layout helpers --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }

.section-head { max-width: 62ch; }
.section-head--wide { max-width: 80ch; }

.rule { height: 1px; background: var(--hairline); border: 0; width: 100%; }

/* Mono eyebrow / section index */
.eyebrow {
  font: 500 var(--fs-eyebrow)/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--clay);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }
.section--loden .eyebrow { color: var(--on-loden-dim); }

.lede {
  font-size: var(--fs-body-lg);
  color: var(--steel);
  line-height: 1.55;
  max-width: 58ch;
}
.section--loden .lede { color: var(--on-loden-dim); }

/* Headings */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); }
.section--loden h1, .section--loden h2, .section--loden h3 { color: var(--on-loden); }

.mono { font-family: var(--mono); }

/* Blueprint grid background */
.blueprint::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.section--loden.blueprint::before {
  background-image:
    linear-gradient(to right, var(--loden-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--loden-line) 1px, transparent 1px);
  opacity: 1;
}
.blueprint > * { position: relative; z-index: 1; }

/* Corner register ticks */
.ticks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ticks span {
  position: absolute; color: var(--hairline-2);
  font: 400 0.9rem/1 var(--mono);
}
.ticks span::before { content: "+"; }
.ticks .tl { top: 10px; left: 12px; }
.ticks .tr { top: 10px; right: 12px; }
.ticks .bl { bottom: 10px; left: 12px; }
.ticks .br { bottom: 10px; right: 12px; }
.section--loden .ticks span { color: var(--loden-line); }

/* ----- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font: 500 0.95rem/1 var(--sans);
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: var(--bone-2); }
.btn--primary:hover { background: var(--clay-deep); }
.btn--ghost { border-color: var(--hairline-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--bone); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn .arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.section--loden .btn--ghost { border-color: var(--loden-line); color: var(--on-loden); }
.section--loden .btn--ghost:hover { border-color: var(--on-loden); background: rgba(255,255,255,0.04); }

/* Inline text link */
.tlink {
  color: var(--clay-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--clay) 35%, transparent);
  transition: border-color .2s var(--ease);
}
.tlink:hover { border-color: var(--clay); }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--stone) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--hairline); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; letter-spacing: -0.02em; }
.brand__mark { width: 22px; height: 22px; flex: none; }
.brand__name { font-weight: 600; font-size: 1.1rem; }
.brand__name .tess-light { color: var(--steel); font-weight: 400; } /* unused hook */

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__link {
  font-size: 0.9rem; color: var(--steel);
  transition: color .2s var(--ease); position: relative;
}
.nav__link:hover { color: var(--ink); }

.menu-toggle { display: none; }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed; inset: 68px 0 auto 0; z-index: 99;
  background: var(--stone);
  border-bottom: 1px solid var(--hairline);
  padding: 1rem var(--gutter) 1.75rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.05rem; color: var(--ink);
}
.mobile-nav .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* =============================================================
   HERO
   ============================================================= */
.hero { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3.5rem, 6vw, 6rem); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: var(--fs-display);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-top: 1.4rem;
  max-width: 16ch;
}
.hero__title em { font-style: normal; color: var(--clay); }
.hero__sub {
  margin-top: 1.5rem;
  font-size: var(--fs-body-lg);
  color: var(--steel);
  max-width: 46ch;
  line-height: 1.55;
}
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__note {
  margin-top: 1.25rem;
  font: 400 var(--fs-small)/1.5 var(--mono);
  color: var(--steel-2);
}

/* Spec strip beneath hero */
.spec-strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.spec-strip__item { padding: 1.25rem 1.25rem 1.25rem 0; }
.spec-strip__item + .spec-strip__item { padding-left: 1.5rem; border-left: 1px solid var(--hairline); }
.spec-strip__k { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-2); }
.spec-strip__v { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink); line-height: 1.35; }

/* =============================================================
   SHOT — screenshot frame (with blueprint schematic placeholder)
   ============================================================= */
.shot {
  background: var(--bone);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(35,33,27,0.04),
              0 18px 40px -24px rgba(35,33,27,0.35);
}
.shot__chrome {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  background: var(--bone-2);
  border-bottom: 1px solid var(--hairline);
}
.shot__chrome .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-2); flex: none; }
.shot__url {
  margin-left: 0.6rem;
  font: 400 0.72rem/1 var(--mono);
  color: var(--steel-2);
  letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot__body { position: relative; background: var(--bone); }
.shot__body img { width: 100%; height: auto; display: block; }
.shot__schematic { width: 100%; height: auto; display: block; }
.shot__tag {
  position: absolute; right: 10px; bottom: 10px;
  font: 500 0.62rem/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel-2);
  background: color-mix(in srgb, var(--bone-2) 80%, transparent);
  border: 1px solid var(--hairline);
  padding: 0.35rem 0.5rem; border-radius: 4px;
}
.shot__caption {
  font: 400 var(--fs-small)/1.4 var(--mono);
  color: var(--steel-2);
  margin-top: 0.85rem;
}
.hero__visual .shot { transform: translateZ(0); }

/* Zoomable shots (active only once real screenshots are added) */
.shot--zoomable { cursor: zoom-in; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.shot--zoomable:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(35,33,27,0.04), 0 26px 50px -26px rgba(35,33,27,0.45); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(20, 18, 14, 0.78);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: grid; }
.lightbox__img {
  max-width: min(1100px, 96vw); max-height: 90vh;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.lightbox__close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.7rem; line-height: 1; color: var(--bone-2);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
}
.lightbox__close:hover { background: rgba(255,255,255,0.16); }

/* =============================================================
   THE PROBLEM — datasheet rows
   ============================================================= */
.problems { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--hairline); }
.problem {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.problem__no { font: 500 0.78rem/1.4 var(--mono); color: var(--clay); letter-spacing: 0.05em; }
.problem__title { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.problem__body { color: var(--steel); max-width: 60ch; }
@media (min-width: 880px) {
  .problem { grid-template-columns: 4.5rem 22ch 1fr; align-items: baseline; }
}

/* =============================================================
   THE SYSTEM — capability blocks
   ============================================================= */
.caps { display: grid; gap: clamp(3.5rem, 7vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.cap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
.cap--reverse .cap__media { order: 2; }
.cap__label { color: var(--clay); margin-bottom: 1rem; }
.cap__title { margin-bottom: 0.9rem; }
.cap__body { color: var(--steel); max-width: 50ch; }
.cap__list { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.cap__list li {
  display: flex; gap: 0.7rem; align-items: baseline;
  font-size: 0.95rem; color: var(--ink-soft);
}
.cap__list li::before {
  content: ""; flex: none;
  width: 6px; height: 6px; margin-top: 0.45rem;
  background: var(--moss); border-radius: 1px;
}

/* =============================================================
   PROOF / CASE STUDY
   ============================================================= */
.case__lead { font-size: var(--fs-body-lg); color: var(--ink-soft); max-width: 64ch; margin-top: 1.4rem; line-height: 1.5; }
.case__cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.case__col { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.case__col h3 { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 0.9rem; }
.case__col p { color: var(--steel); font-size: 0.97rem; }

/* Video / demo slot */
.video {
  position: relative; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline-2);
  background: var(--loden);
  aspect-ratio: 16 / 9;
}
.video__schematic { position: absolute; inset: 0; width: 100%; height: 100%; }
.video__play {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--clay); color: var(--bone-2);
  display: grid; place-items: center;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.video__play svg { margin-left: 4px; }
.video__play:hover { transform: scale(1.06); background: var(--clay-deep); }
.video__label {
  position: absolute; left: 16px; bottom: 14px;
  font: 500 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-loden-dim);
}

/* Stat row */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.stat { background: var(--bone); padding: 1.5rem 1.4rem; }
.stat__num { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 500; letter-spacing: -0.03em; }
.stat__num .u { color: var(--clay); }
.stat__label { margin-top: 0.45rem; font: 400 0.78rem/1.4 var(--mono); color: var(--steel-2); text-transform: uppercase; letter-spacing: 0.06em; }
.section--loden .stat { background: var(--loden-2); }
.section--loden .stat-row { background: var(--loden-line); border-color: var(--loden-line); }
.section--loden .stat__num { color: var(--on-loden); }
.section--loden .stat__label { color: var(--on-loden-dim); }

/* =============================================================
   HOW IT WORKS — steps
   ============================================================= */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  counter-reset: step;
}
.step { border-top: 1px solid var(--hairline-2); padding-top: 1.25rem; }
.step__no { font: 500 0.78rem/1 var(--mono); color: var(--clay); letter-spacing: 0.08em; }
.step__title { font-size: var(--fs-h3); margin: 1rem 0 0.7rem; }
.step__body { color: var(--steel); font-size: 0.97rem; }

/* =============================================================
   BUILT FOR SCALE (loden band)
   ============================================================= */
.section--loden { background: var(--loden); color: var(--on-loden); }
.scale__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.scale__body { color: var(--on-loden-dim); max-width: 52ch; margin-top: 1.4rem; }
.scale__body p + p { margin-top: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.chip {
  font: 500 0.74rem/1 var(--mono); letter-spacing: 0.04em;
  color: var(--on-loden); border: 1px solid var(--loden-line);
  padding: 0.55rem 0.75rem; border-radius: 4px;
  background: rgba(255,255,255,0.02);
}
.compliance { margin-top: 2rem; display: grid; gap: 0.9rem; }
.compliance li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--on-loden-dim); font-size: 0.95rem; }
.compliance li b { color: var(--on-loden); font-weight: 500; }
.compliance li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.45rem; background: var(--clay); border-radius: 1px; }

/* =============================================================
   PRICING PHILOSOPHY
   ============================================================= */
.pricing__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.points { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.point { padding: 1.4rem 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: 1.4rem 1fr; gap: 1rem; align-items: start; }
.point__mark { color: var(--clay); font: 500 0.9rem/1.5 var(--mono); }
.point__title { font-weight: 500; margin-bottom: 0.35rem; }
.point__body { color: var(--steel); font-size: 0.95rem; }
.pricing__cta { margin-top: 2rem; }

/* =============================================================
   ABOUT
   ============================================================= */
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__text p { color: var(--steel); max-width: 60ch; }
.about__text p + p { margin-top: 1.1rem; }
.about__sig { margin-top: 1.75rem; font: 500 0.82rem/1.5 var(--mono); color: var(--ink); }
.about__sig span { display: block; color: var(--steel-2); font-weight: 400; }

/* =============================================================
   FINAL CTA + CONTACT
   ============================================================= */
.cta { text-align: left; }
.cta__title { font-size: var(--fs-h2); max-width: 18ch; margin: 1.2rem 0 1.6rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.contact-lines { margin-top: 2.5rem; border-top: 1px solid var(--loden-line); display: grid; grid-template-columns: repeat(3, 1fr); }
.contact-lines a, .contact-lines div { padding: 1.4rem 1.25rem 0 0; }
.contact-lines .ck { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-loden-dim); }
.contact-lines .cv { margin-top: 0.5rem; color: var(--on-loden); font-size: 0.97rem; }
.contact-lines a:hover .cv { color: var(--clay); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--loden-2); color: var(--on-loden-dim); padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--on-loden); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.88rem; }
.footer__links a:hover { color: var(--on-loden); }
.footer__meta { width: 100%; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--loden-line);
  font: 400 0.74rem/1.6 var(--mono); color: var(--on-loden-dim); letter-spacing: 0.02em; max-width: 70ch; }

/* =============================================================
   MOTION — scroll reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }

.draw { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.draw.is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .draw { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .video__play, .nav__link { transition: none; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .scale__grid, .pricing__grid, .about__grid { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip__item:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 860px) {
  .nav__links, .nav > .btn { display: none; }
  .menu-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; border: 1px solid var(--hairline-2); border-radius: var(--radius);
  }
  .cap, .case__cols, .steps, .stat-row, .contact-lines { grid-template-columns: 1fr; }
  .cap--reverse .cap__media { order: 0; }
  .case__col { border-top-width: 1px; }
  .stat-row { gap: 1px; }
  .stat { padding: 1.25rem; }
  .contact-lines { border-top: 0; }
  .contact-lines a, .contact-lines div { padding: 1.2rem 0; border-top: 1px solid var(--loden-line); }
}

@media (max-width: 520px) {
  .spec-strip { grid-template-columns: 1fr; }
  .spec-strip__item + .spec-strip__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); }
  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
  .problem { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* =============================================================
   APPLE-SCALE ADDITIONS (v2)
   ============================================================= */
.container--wide { max-width: var(--container-wide); }
.section--center { text-align: center; }
.section--center .section-head { margin-inline: auto; }
.section--center .eyebrow { justify-content: center; }
.section--center .lede { margin-inline: auto; }

/* ----- Centered hero with product stage ----- */
.hero--center { text-align: center; padding-top: clamp(7rem, 13vh, 12rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.hero--center .eyebrow { justify-content: center; }
.hero--center .eyebrow::after { content: ""; width: 1.6rem; height: 1px; background: var(--clay); display: inline-block; }
.hero--center .hero__title {
  font-size: var(--fs-hero);
  line-height: 0.98; letter-spacing: -0.035em;
  max-width: 17ch; margin: 1.4rem auto 0;
}
.hero--center .hero__sub { margin: 1.6rem auto 0; max-width: 50ch; font-size: var(--fs-body-lg); }
.hero--center .hero__actions { justify-content: center; }
.hero--center .hero__note { text-align: center; }
.hero__edge {
  margin: 1.6rem auto 0; max-width: 47ch;
  font-size: var(--fs-body-lg); font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}
.hero__edge b { color: var(--clay); font-weight: 500; }
.hero__stage { margin-top: clamp(3rem, 6vw, 5.5rem); }
.hero__stage .shot { max-width: var(--container-wide); margin-inline: auto; }
.shot--xl { border-radius: var(--radius-xl); box-shadow: 0 1px 0 rgba(35,33,27,0.04), 0 40px 90px -40px rgba(35,33,27,0.45); }
.shot--xl .shot__chrome { padding: 0.85rem 1.1rem; }

/* "What we track" strip */
.tracks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; max-width: 60ch; margin: clamp(2.5rem,5vw,3.5rem) auto 0; }
.tracks span { font: 500 var(--fs-small)/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); display: inline-flex; align-items: center; gap: 1.4rem; }
.tracks span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--clay); opacity: 0.65; }
.tracks span:last-child::after { display: none; }

/* ----- Industries selector (tablist) ----- */
.ind__tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.ind__tab {
  padding: 0.7rem 1.15rem; border: 1px solid var(--hairline-2); border-radius: 100px;
  font-size: 0.95rem; color: var(--steel); background: transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.ind__tab:hover { color: var(--ink); border-color: var(--ink); }
.ind__tab[aria-selected="true"] { background: var(--ink); color: var(--bone-2); border-color: var(--ink); }

.ind__panel { display: none; }
.ind__panel.is-active { display: block; animation: indfade .45s var(--ease); }
@keyframes indfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ind__grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.ind__grid--reverse .ind__media { order: 2; }
.ind__kicker { color: var(--clay); margin-bottom: 1rem; }
.ind__title { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); letter-spacing: -0.025em; margin-bottom: 1rem; max-width: 16ch; }
.ind__body { color: var(--steel); max-width: 48ch; font-size: var(--fs-body-lg); }

/* ----- Value pillars (the edge) ----- */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.pillar { background: var(--bone); padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.4rem, 2vw, 1.75rem); }
.pillar__no { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; color: var(--clay); }
.pillar__title { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; margin: 0.9rem 0 0.55rem; }
.pillar__body { color: var(--steel); font-size: 0.94rem; line-height: 1.55; }

/* ----- Integrations grid ----- */
.integ {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.integ__cell { background: var(--bone); padding: 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.integ__k { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-2); }
.integ__name { font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.55rem; }
.integ__name::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--moss); flex: none; }
.integ__note { margin-top: 1.5rem; color: var(--steel); font-size: 0.95rem; max-width: 62ch; }
.integ__note b { color: var(--ink); font-weight: 500; }

/* ----- Process timeline (how it works) ----- */
.process { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 840px; }
.pstep { display: grid; grid-template-columns: 50px 1fr; gap: clamp(1rem, 3vw, 1.6rem); align-items: start; position: relative; padding-bottom: clamp(1rem, 2vw, 1.4rem); }
.pstep:last-child { padding-bottom: 0; }
.pstep:not(:last-child)::before { content: ""; position: absolute; left: 24px; top: 56px; bottom: -2px; width: 2px; background: var(--hairline); border-radius: 2px; }
.pstep__num {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--hairline-2); background: var(--bone-2);
  display: grid; place-items: center;
  font: 500 1.1rem/1 var(--mono); color: var(--ink);
  position: relative; z-index: 1;
}
.pstep__body {
  background: var(--bone); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.05rem, 2.2vw, 1.45rem) clamp(1.2rem, 2.4vw, 1.6rem);
}
.pstep__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap; }
.pstep__title { font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.4rem); letter-spacing: -0.02em; margin: 0; }
.pstep__meta {
  flex: none; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel-2); background: var(--stone); border: 1px solid var(--hairline);
  padding: 0.4rem 0.6rem; border-radius: 100px; white-space: nowrap;
}
.pstep__text { color: var(--steel); margin-top: 0.65rem; max-width: 62ch; }
.pstep__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 0.7rem;
}
.pstep__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.pstep--key .pstep__num { background: var(--clay); border-color: var(--clay); color: var(--bone-2); }
.pstep--key .pstep__body { border-color: var(--clay); background: var(--bone-2); }
.pstep--key .pstep__text { color: var(--ink-soft); }

/* Case study on loden */
.section--loden .case__lead { color: var(--on-loden-dim); }
.section--loden .case__col { border-top-color: var(--on-loden); }
.section--loden .case__col h3 { color: var(--on-loden-dim); }
.section--loden .case__col p { color: var(--on-loden-dim); }

/* ----- Big statement (closing / section openers) ----- */
.bigstatement { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -0.03em; line-height: 1.04; max-width: 20ch; }
.section--center .bigstatement { margin-inline: auto; }
.closing__sub { font-size: var(--fs-body-lg); color: var(--on-loden-dim); max-width: 48ch; margin: 1.5rem auto 2rem; }
.section--loden.section--center .closing__sub { color: var(--on-loden-dim); }

/* ----- Media reveal (scale-in) ----- */
.reveal-media { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-media.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-media { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ind__panel.is-active { animation: none; }
}

/* ----- Section dividers between scenes ----- */
.scene + .scene { border-top: 1px solid var(--hairline); }

@media (max-width: 860px) {
  .ind__grid, .ind__grid--reverse { grid-template-columns: 1fr; }
  .ind__grid--reverse .ind__media { order: 0; }
  .ind__media { margin-bottom: 0.5rem; }
  .ind__tablist { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ind__tablist::-webkit-scrollbar { display: none; }
  .ind__tab { flex: none; }
}
