/* ==========================================================================
   LoopWork Labs — shared design system
   Single stylesheet, no build step. Loaded by every page.
   Motif: the loom. Warp (vertical) + weft (horizontal) threads, interlaced.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Light surfaces */
  --paper:    #ffffff;
  --paper-2:  #f6f6fb;
  --paper-3:  #ecedf5;
  --line:     #e1e2ee;
  --line-2:   #cdcede;

  /* Ink surfaces */
  --ink:      #08080f;
  --ink-2:    #101020;
  --ink-3:    #1a1a2e;
  --ink-4:    #26263f;

  /* Text on light */
  --text:     #12121c;
  --text-2:   #474760;
  --text-3:   #6b6b86;

  /* Text on ink */
  --on-ink:   #ffffff;
  --on-ink-2: #bcbcd4;
  --on-ink-3: #8c8caa;

  /* Brand threads */
  --indigo:   #4f46e5;
  --indigo-d: #4338ca;
  --indigo-l: #a5b4fc;
  --violet:   #7c3aed;
  --violet-l: #c4b5fd;
  --cyan:     #06b6d4;
  --cyan-l:   #67e8f9;
  --amber:    #f59e0b;
  --amber-l:  #fcd34d;
  --rose:     #e11d78;
  --rose-l:   #f9a8d4;
  --green:    #059669;

  /* Semantic */
  --link:        var(--indigo-d);
  --link-on-ink: var(--indigo-l);
  --focus:       #6366f1;
  --danger:      #c2183b;

  /* Gradients */
  --grad-warp:  linear-gradient(90deg, var(--indigo), var(--violet) 48%, var(--cyan));
  --grad-deep:  radial-gradient(120% 90% at 12% 0%, #241a6b 0%, transparent 60%),
                radial-gradient(100% 80% at 88% 10%, #10366b 0%, transparent 58%),
                radial-gradient(90% 90% at 50% 110%, #3a1560 0%, transparent 62%),
                linear-gradient(175deg, var(--ink-2), var(--ink));

  /* Woven lattice overlay — warp + weft hairlines */
  --lattice: repeating-linear-gradient(90deg,  rgba(255,255,255,.055) 0 1px, transparent 1px 34px),
             repeating-linear-gradient(0deg,   rgba(255,255,255,.045) 0 1px, transparent 1px 34px);
  --lattice-dark: repeating-linear-gradient(90deg, rgba(18,18,28,.055) 0 1px, transparent 1px 34px),
                  repeating-linear-gradient(0deg,  rgba(18,18,28,.045) 0 1px, transparent 1px 34px);

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii — squared / luxe, no pills */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(12,12,28,.06), 0 2px 6px rgba(12,12,28,.04);
  --sh-md: 0 2px 4px rgba(12,12,28,.05), 0 10px 24px rgba(12,12,28,.07);
  --sh-lg: 0 4px 8px rgba(12,12,28,.06), 0 24px 56px rgba(12,12,28,.12);
  --sh-ink: 0 20px 60px rgba(0,0,0,.45);

  /* Chrome heights */
  --h-util: 34px;
  --h-nav:  64px;
  --h-sub:  52px;

  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky chrome */
  scroll-padding-top: calc(var(--h-nav) + var(--h-sub) + 8px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Ink surfaces need a light ring */
.on-ink :focus-visible, .site-head :focus-visible, .site-foot :focus-visible {
  outline-color: var(--indigo-l);
}

::selection { background: var(--indigo); color: #fff; }

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

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  border-radius: var(--r-sm); font-weight: 600; font-size: .875rem;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.25rem, 1.35rem + 3.9vw, 4.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.04em;
}
.display-sm {
  font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.h2 { font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.5rem); }
.h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); letter-spacing: -.025em; }
.h4 { font-size: 1.0625rem; letter-spacing: -.02em; font-weight: 600; }

.display em, .display-sm em, .h2 em {
  font-style: normal;
  background: var(--grad-warp);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.on-ink .lede { color: var(--on-ink-2); }

.prose p { color: var(--text-2); text-wrap: pretty; }
.prose p + p { margin-top: var(--sp-4); }
.prose strong { color: var(--text); font-weight: 600; }
.on-ink.prose p, .on-ink .prose p { color: var(--on-ink-2); }
.on-ink.prose strong, .on-ink .prose strong { color: #fff; }

/* Eyebrow — small caps label with a woven tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px;
  background: var(--grad-warp); border-radius: 2px;
  flex: none;
}
.on-ink .eyebrow { color: var(--on-ink-3); }

.muted   { color: var(--text-3); }
.on-ink .muted { color: var(--on-ink-3); }
.center  { text-align: center; }
.center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.wrap-mid { max-width: 960px; }

section { position: relative; }
.band       { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.band-tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.band-tall  { padding-block: clamp(4.5rem, 2.5rem + 8vw, 8rem); }

.bg-paper-2 { background: var(--paper-2); }
.bg-paper-3 { background: var(--paper-3); }
.bg-grad-light { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 55%, var(--paper-3) 100%); }

/* Ink band — deep gradient + lattice */
.on-ink {
  background: var(--grad-deep);
  color: var(--on-ink);
  isolation: isolate;
  overflow: hidden;
}
.on-ink::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--lattice);
  z-index: -1; pointer-events: none;
}
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: #fff; }
.on-ink a { color: var(--link-on-ink); }

/* Section head: title left, supporting copy right */
.sec-head { display: grid; gap: var(--sp-6); }
.sec-head > .eyebrow { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .sec-head-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }
}

/* Generic grids */
.grid { display: grid; gap: var(--sp-6); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.stack   { display: grid; gap: var(--sp-4); }
.stack-6 { display: grid; gap: var(--sp-6); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }

/* --------------------------------------------------------------------------
   5. Brand lockup
   -------------------------------------------------------------------------- */
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: inherit; text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; color: currentColor; }
.brand-word { display: grid; gap: 1px; line-height: 1; }
.brand-word b {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 700;
  letter-spacing: -.035em; color: currentColor;
}
/* "Work" reads lighter than "Loom", per the wordmark */
.brand-word b span { opacity: .58; font-weight: 600; }
.brand-lab {
  display: flex; align-items: center; gap: .3rem;
  font-size: .5rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  opacity: .62; padding-left: .06em;
}
.brand-lab::before, .brand-lab::after {
  content: ""; height: 1px; flex: 1; min-width: 6px;
  background: currentColor; opacity: .5;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  font-family: var(--font-body);
  font-size: .9375rem; font-weight: 600; letter-spacing: -.01em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .18s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn-primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 1px 2px rgba(79,70,229,.3), 0 8px 20px rgba(79,70,229,.24);
}
.btn-primary:hover { background: var(--indigo-d); }

.btn-line {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn-line:hover { border-color: var(--text); background: var(--paper-2); }

.btn-ghost { background: transparent; color: var(--text-2); padding-inline: .75rem; }
.btn-ghost:hover { color: var(--text); background: var(--paper-2); }

/* On ink */
.on-ink .btn-line, .hero .btn-line {
  color: #fff; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.05);
}
.on-ink .btn-line:hover, .hero .btn-line:hover {
  border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12);
}
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--paper-3); }

.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-lg { padding: .9rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.center .btn-row { justify-content: center; }

/* Text link with arrow */
.link-arw {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .9375rem;
  color: var(--link); text-decoration: none;
}
.link-arw:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arw .arw { transition: transform .18s var(--ease); }
.link-arw:hover .arw { transform: translateX(3px); }
.on-ink .link-arw { color: var(--link-on-ink); }

/* --------------------------------------------------------------------------
   7. Header — utility bar / main nav / mega menu / mobile drawer
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  color: var(--on-ink);
}
.site-head a { color: inherit; }
.site-head a:hover { text-decoration: none; }

/* Utility bar */
.util {
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.35);
  font-size: .75rem;
}
.util-in {
  height: var(--h-util);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.util-tag { color: var(--on-ink-3); letter-spacing: .01em; }
.util-nav { display: flex; align-items: center; gap: var(--sp-5); }
.util-nav a { color: var(--on-ink-2); }
.util-nav a:hover { color: #fff; }
@media (max-width: 719px) { .util { display: none; } }

/* Main nav bar */
.nav-bar { position: relative; }
.nav-in {
  height: var(--h-nav);
  display: flex; align-items: center; gap: var(--sp-6);
}
.nav-main { display: none; align-items: center; gap: var(--sp-1); margin-right: auto; }
.nav-tools { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
@media (min-width: 1000px) {
  .nav-main { display: flex; }
  .nav-tools { margin-left: 0; }
}

.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem;
  font-size: .9375rem; font-weight: 500;
  color: var(--on-ink-2);
  border-radius: var(--r-sm);
  position: relative;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -2px;
  height: 2px; background: var(--grad-warp); border-radius: 2px;
}

/* Icon buttons in nav */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  color: var(--on-ink-2);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

.kbd {
  display: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .6875rem; color: var(--on-ink-3);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px; padding: .1rem .3rem;
}
@media (min-width: 1100px) { .kbd { display: inline-block; } }

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

.burger { display: inline-flex; }
@media (min-width: 1000px) { .burger { display: none; } }
.burger-ic { position: relative; width: 18px; height: 12px; }
.burger-ic i {
  position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s var(--ease), opacity .16s var(--ease);
}
.burger-ic i:nth-child(1) { top: 0; }
.burger-ic i:nth-child(2) { top: 5px; }
.burger-ic i:nth-child(3) { top: 10px; }
.burger[aria-expanded="true"] .burger-ic i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-ic i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-ic i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: calc(var(--h-nav)) 0 0 0;
  background: var(--ink);
  z-index: 99;
  overflow-y: auto;
  padding: var(--sp-6) 0 var(--sp-16);
  transform: translateY(-8px); opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.drawer[data-open] { transform: translateY(0); opacity: 1; visibility: visible; }
@media (min-width: 1000px) { .drawer { display: none; } }
.drawer-group { border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer-top {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem .25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em;
  color: #fff; text-align: left;
}
.drawer-foot { padding-top: var(--sp-6); display: grid; gap: var(--sp-3); }

/* Search overlay */
.search-ov {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(6,6,14,.72);
  backdrop-filter: blur(6px);
  display: grid; align-items: start; justify-items: center;
  padding: clamp(1rem, 8vh, 6rem) var(--sp-4) var(--sp-4);
  opacity: 0; visibility: hidden;
  transition: opacity .18s var(--ease), visibility .18s;
}
.search-ov[data-open] { opacity: 1; visibility: visible; }
.search-box {
  width: 100%; max-width: 620px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform .2s var(--ease);
}
.search-ov[data-open] .search-box { transform: translateY(0); }
.search-field { display: flex; align-items: center; gap: .75rem; padding: 0 1rem; border-bottom: 1px solid var(--line); }
.search-field svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.search-field input {
  flex: 1; border: 0; outline: 0; background: none;
  padding: 1.05rem 0; font-size: 1rem;
}
.search-results { max-height: min(52vh, 420px); overflow-y: auto; padding: .4rem; }
.search-results li + li { margin-top: 2px; }
.search-results a {
  display: grid; gap: .1rem; padding: .65rem .75rem;
  border-radius: var(--r-md); color: var(--text);
}
.search-results a:hover, .search-results a:focus-visible { background: var(--paper-2); text-decoration: none; }
.search-results b { font-size: .9375rem; font-weight: 600; }
.search-results span { font-size: .8125rem; color: var(--text-3); }
.search-empty { padding: 1.5rem .75rem; text-align: center; color: var(--text-3); font-size: .9375rem; }
.search-foot {
  padding: .6rem 1rem; border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-size: .75rem; color: var(--text-3);
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.search-foot kbd {
  font-family: ui-monospace, monospace; font-size: .6875rem;
  border: 1px solid var(--line-2); border-radius: 3px;
  padding: .05rem .3rem; background: #fff;
}

body[data-locked] { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Sub nav (in-page anchors, sticky under header)
   -------------------------------------------------------------------------- */
.subnav {
  position: sticky; top: var(--h-nav); z-index: 90;
  background: linear-gradient(90deg, var(--indigo-d), var(--violet) 55%, #1c48b4);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, var(--sh-sm);
}
.subnav-in {
  height: var(--h-sub);
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center;
  padding: 0 1.05rem;
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.76);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.subnav a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.subnav a.is-active { color: #fff; border-bottom-color: #fff; background: rgba(255,255,255,.08); }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem);
  background: var(--grad-deep);
  color: var(--on-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--lattice);
  z-index: -2;
}
/* Woven light sweep */
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 60vw; aspect-ratio: 1;
  right: -14vw; top: -22vw;
  background: radial-gradient(circle, rgba(99,102,241,.3), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero h1 { color: #fff; }
.hero-grid { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: end; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.hero-side { display: grid; gap: var(--sp-6); }
.hero-tall { padding-block: clamp(4.5rem, 2.5rem + 11vw, 10rem); }

/* Decorative loom SVG in hero corner */
.hero-loom {
  position: absolute; z-index: -1;
  right: -6%; bottom: -12%;
  width: min(46%, 520px);
  opacity: .5;
  pointer-events: none;
  color: var(--indigo-l);
}
@media (max-width: 899px) { .hero-loom { opacity: .22; width: 78%; right: -18%; } }

/* Small breadcrumb-ish page label */
.crumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: var(--on-ink-3);
  margin-bottom: var(--sp-5);
}
.crumb a { color: var(--on-ink-3); }
.crumb a:hover { color: #fff; }
.crumb .sep { opacity: .5; }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card-hover:hover { border-color: var(--line-2); box-shadow: var(--sh-md); transform: translateY(-3px); }
.card h3, .card h4 { color: var(--text); }
.card p { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }

/* Accent rule across the card top on hover */
.card-accent::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-warp);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  opacity: 0; transition: opacity .2s var(--ease);
}
.card-accent:hover::before { opacity: 1; }

/* Icon chip */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(79,70,229,.14), rgba(6,182,212,.12));
  border: 1px solid rgba(79,70,229,.2);
  color: var(--indigo-d);
}
.chip svg { width: 20px; height: 20px; }

/* Numbered step */
.step-n {
  font-family: var(--font-display);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .1em;
  color: var(--indigo-d);
}
.on-ink .step-n { color: var(--indigo-l); }

/* Stat tile */
.stat { display: grid; gap: .35rem; }
.stat-n {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 300; line-height: 1;
  letter-spacing: -.045em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-n .unit { font-size: .5em; font-weight: 500; letter-spacing: -.02em; }
.on-ink .stat-n { color: #fff; }
.stat-k { font-size: .9375rem; color: var(--text-2); line-height: 1.5; }
.on-ink .stat-k { color: var(--on-ink-2); }
.stat-row { display: grid; gap: var(--sp-8); }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* divider between stats, loom-thread style */
@media (min-width: 720px) {
  .stat-row.divided > * + * { border-left: 1px solid var(--line); padding-left: var(--sp-8); }
  .on-ink .stat-row.divided > * + * { border-left-color: rgba(255,255,255,.15); }
}

/* Product card — colour-identity tiles (the reference's ATC row) */
.prod {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 260px;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  color: #fff;
  background: var(--ink-3);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  isolation: isolate;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--sh-ink); text-decoration: none; }
.prod::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--tile, linear-gradient(155deg, #4f46e5, #7c3aed));
}
.prod::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--lattice);
  opacity: .8;
}
.prod-tag {
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.prod h3 { color: #fff; font-size: 1.25rem; margin-top: .5rem; }
.prod p { color: rgba(255,255,255,.84); font-size: .875rem; margin-top: .5rem; }
.prod .prod-go {
  margin-top: auto; padding-top: var(--sp-5);
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 600; color: #fff;
}
.prod:hover .prod-go .arw { transform: translateX(4px); }
.prod .arw { transition: transform .18s var(--ease); }

.tile-indigo { --tile: linear-gradient(155deg, #4f46e5, #312e81 92%); }
.tile-cyan   { --tile: linear-gradient(155deg, #0891b2, #164e7a 92%); }
.tile-violet { --tile: linear-gradient(155deg, #7c3aed, #4c1d95 92%); }
.tile-amber  { --tile: linear-gradient(155deg, #d97706, #7c2d12 92%); }
.tile-rose   { --tile: linear-gradient(155deg, #db2777, #831843 92%); }
.tile-slate  { --tile: linear-gradient(155deg, #334155, #0f172a 92%); }

/* Quote */
.quote {
  display: grid; gap: var(--sp-5);
  max-width: 900px; margin-inline: auto;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  font-weight: 300; line-height: 1.4;
  letter-spacing: -.025em;
  color: var(--text);
  text-wrap: pretty;
}
.on-ink .quote blockquote { color: #fff; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem; line-height: .8; font-weight: 700;
  background: var(--grad-warp);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quote-by { display: flex; align-items: center; gap: .85rem; }
.avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-warp);
  color: #fff;
  font-family: var(--font-display);
  font-size: .875rem; font-weight: 600;
  letter-spacing: -.02em;
}
.quote-by cite { font-style: normal; display: grid; gap: .05rem; }
.quote-by b { font-size: .9375rem; font-weight: 600; }
.quote-by span { font-size: .8125rem; color: var(--text-3); }
.on-ink .quote-by span { color: var(--on-ink-3); }

/* Featured band — the reference's "Better together" panel */
.feat { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.feat-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(150deg, #1e1b4b, #0c2a4d 55%, #3b0764);
}
.feat-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Values */
.value {
  display: grid; gap: .5rem;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
}
.on-ink .value { border-top-color: rgba(255,255,255,.16); }
.value .vn {
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  color: var(--indigo-d);
}
.on-ink .value .vn { color: var(--indigo-l); }
.value h4 { font-size: 1.0625rem; }
.value p { font-size: .9375rem; color: var(--text-2); }
.on-ink .value p { color: var(--on-ink-2); }

/* Pillar (vision / mission / values triptych) */
.pillar {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(3px);
  display: grid; gap: .6rem;
}
.pillar h3 { font-size: 1.0625rem; letter-spacing: .02em; text-transform: uppercase; font-size: .8125rem; color: var(--indigo-l); font-weight: 700; }
.pillar p { color: #fff; font-size: 1.0625rem; line-height: 1.5; font-family: var(--font-display); font-weight: 300; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   11. Stack / partner marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: clamp(2rem, 5vw, 4rem);
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.logo-word {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.marquee:hover .logo-word { color: var(--text-2); }

/* --------------------------------------------------------------------------
   12. FAQ (native <details> — works with JS off)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--indigo-d); }
.faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.faq summary .pm::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq summary .pm::after  { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq details[open] summary .pm::after { transform: scaleY(0); opacity: 0; }
.faq details > div { padding-bottom: 1.3rem; max-width: 68ch; }
.faq details > div p { color: var(--text-2); font-size: .9375rem; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 600; }
.field .req { color: var(--danger); }
.field .hint { font-size: .8125rem; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .85rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79,70,229,.16);
}
.field .err { font-size: .8125rem; color: var(--danger); font-weight: 500; display: none; }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea {
  border-color: var(--danger);
}
.field[data-invalid] input:focus, .field[data-invalid] textarea:focus {
  box-shadow: 0 0 0 3px rgba(194,24,59,.15);
}
.field[data-invalid] .err { display: block; }
.field-row { display: grid; gap: var(--sp-5); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; color: var(--text-2); }
.check input { width: auto; margin-top: .2rem; accent-color: var(--indigo); }

.form-note { font-size: .8125rem; color: var(--text-3); }

.form-ok {
  display: none;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border: 1px solid rgba(5,150,105,.32);
  background: rgba(5,150,105,.07);
  border-radius: var(--r-lg);
  text-align: center;
  justify-items: center;
}
.form-ok[data-show] { display: grid; }
.form-ok svg { width: 40px; height: 40px; color: var(--green); }
.form-ok h3 { font-size: 1.25rem; }
.form-ok p { color: var(--text-2); font-size: .9375rem; }

/* Contact side panel */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }

.copy-row {
  display: flex; align-items: center; gap: var(--sp-2);
  flex-wrap: wrap;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem;
  font-size: .8125rem; font-weight: 600;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}
.copy-btn:hover { color: var(--text); border-color: var(--text-3); background: var(--paper-2); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn[data-copied] { color: var(--green); border-color: rgba(5,150,105,.4); background: rgba(5,150,105,.07); }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--lattice);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-foot {
  background: var(--ink);
  color: var(--on-ink-2);
  padding-block: var(--sp-16) var(--sp-8);
  position: relative;
}
.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--grad-warp); opacity: .8;
}
.foot-top {
  display: grid; gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,.11);
}
@media (min-width: 900px) {
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(2rem, 6vw, 5rem); }
}
.foot-brand { display: grid; gap: var(--sp-4); align-content: start; color: #fff; }
.foot-brand p { font-size: .875rem; color: var(--on-ink-3); max-width: 34ch; }
.foot-cols { display: grid; gap: var(--sp-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.foot-col h4 {
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-ink-3);
  margin-bottom: var(--sp-4);
}
.foot-col ul { display: grid; gap: .55rem; }
.foot-col a { font-size: .875rem; color: var(--on-ink-2); }
.foot-col a:hover { color: #fff; }
.foot-bot {
  padding-top: var(--sp-6);
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6);
  align-items: center; justify-content: space-between;
  font-size: .8125rem; color: var(--on-ink-3);
}
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.foot-legal a { color: var(--on-ink-3); }
.foot-legal a:hover { color: #fff; }
.socials { display: flex; gap: var(--sp-2); }
.socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm);
  color: var(--on-ink-2);
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.socials a:hover { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.socials svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   17. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 80;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s, background-color .16s var(--ease);
}
.to-top[data-show] { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--indigo); }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   18. Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .07s; }
[data-reveal][data-d="2"] { transition-delay: .14s; }
[data-reveal][data-d="3"] { transition-delay: .21s; }
[data-reveal][data-d="4"] { transition-delay: .28s; }
[data-reveal][data-d="5"] { transition-delay: .35s; }

/* No-JS: never hide content */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-head, .subnav, .to-top, .search-ov, .drawer, .cta-band { display: none !important; }
  .on-ink, .hero { background: #fff !important; color: #000 !important; }
  .on-ink *, .hero * { color: #000 !important; }
}
