/* ============================================================
   SYNHEX — interactive landing page
   Design system: refined neo-brutalism on the brand palette.
   Hard borders, square corners, offset block-shadows, bold blocks.
   General Sans @font-face lives in fonts.css; Space Grotesk +
   JetBrains Mono load from Google Fonts in the page <head>.
   ============================================================ */

/* ----------------------------------------------------------------
   Tokens
   ---------------------------------------------------------------- */
:root {
  --ink: #042f2e;
  --ink-deep: #03201f;
  --ink-soft: #0a3d3b;
  --paper: #f6faf9;
  --paper-2: #eaf2f0;
  --paper-warm: #fbfdfc;

  --line: rgba(4, 47, 46, 0.10);
  --line-strong: rgba(4, 47, 46, 0.18);

  --teal: #0d9488;
  --teal-deep: #0f766e;
  --teal-mid: #14b8a6;
  --glow: #5eead4;
  --sun: #facc15;
  --sun-soft: #fde68a;

  /* baked-in design defaults (sun accent, Space Grotesk display) */
  --accent: #facc15;
  --accent-ink: #042f2e;
  --accent-glow: rgba(250, 204, 21, 0.45);
  --font-display: 'Space Grotesk', 'General Sans', sans-serif;
  --font-body: 'General Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --motion: 1;

  /* neo-brutalist primitives */
  --bd: 3px;
  --bd-thick: 4px;
  --sh-sm: 3px 3px 0 var(--ink);
  --sh: 6px 6px 0 var(--ink);
  --sh-lg: 10px 10px 0 var(--ink);
  --sh-sun: 8px 8px 0 var(--sun);
  --sh-glow: 6px 6px 0 var(--glow);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --press: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);

  --maxw: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }

/* ----------------------------------------------------------------
   Typography
   ---------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01";
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sun);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--sh-sm);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before { display: none; }
.eyebrow.no-rule::before { display: none; }

.section {
  position: relative;
  padding: clamp(64px, 9vw, 132px) 0;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: rgba(4, 47, 46, 0.72);
}

/* ----------------------------------------------------------------
   Buttons — square, bordered, press-on-hover
   ---------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  cursor: pointer;
  border: var(--bd) solid var(--ink);
  border-radius: 0;
  box-shadow: var(--sh-sm);
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: var(--press), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--sun-soft); }

/* on the dark hero / dark sections */
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: 3px 3px 0 var(--glow);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.12); box-shadow: 1px 1px 0 var(--glow); }
.btn-ghost-dark:active { box-shadow: none; }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border-bottom: var(--bd) solid transparent;
}
.header.solid {
  background: var(--paper);
  border-bottom: var(--bd) solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }
.brand .on-light { display: none; }
.brand .on-dark { display: block; }
.header.solid .brand .on-light { display: block; }
.header.solid .brand .on-dark { display: none; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.2s var(--ease-out);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 3px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }
.header.solid .nav-link { color: var(--ink); }

/* Services dropdown (desktop nav) */
.nav-group { position: relative; }
.nav-trigger {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-trigger::after { display: none; }
.nav-caret { transition: transform 0.22s var(--ease-out-strong); opacity: 0.65; }
.nav-group:hover .nav-caret, .nav-group:focus-within .nav-caret { transform: rotate(180deg); }
.nav-menu-pop {
  position: absolute; top: 100%; left: 50%; padding-top: 16px; transform: translateX(-50%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s var(--ease-out-strong); z-index: 95;
}
.nav-group:hover .nav-menu-pop, .nav-group:focus-within .nav-menu-pop { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-menu-inner {
  min-width: 236px; background: var(--paper); border: var(--bd) solid var(--ink); border-radius: 0;
  padding: 8px; box-shadow: var(--sh);
  transform: translateY(8px); transition: transform 0.2s var(--ease-out-strong);
}
.nav-group:hover .nav-menu-inner, .nav-group:focus-within .nav-menu-inner { transform: translateY(0); }
.nav-menu-inner a {
  display: block; padding: 10px 12px; border-radius: 0; font-size: 0.88rem; font-weight: 600;
  font-family: var(--font-display); color: var(--ink); white-space: nowrap;
  border: 2px solid transparent;
  transition: background-color 0.14s var(--ease-out-strong), color 0.14s var(--ease-out-strong), border-color 0.14s var(--ease-out-strong);
}
.nav-menu-inner a::after { display: none; }
.nav-menu-inner a:hover { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.nav-menu-sep { height: 2px; margin: 6px 4px; background: var(--ink); }

.burger {
  display: none;
  background: transparent;
  border: var(--bd) solid #fff;
  border-radius: 0;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
}
.header.solid .burger { color: var(--ink); border-color: var(--ink); }

.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.mobile-sheet.open { display: block; }
.mobile-backdrop { position: absolute; inset: 0; background: rgba(3,32,31,0.6); }
.mobile-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86%, 360px);
  background: var(--paper);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: var(--bd-thick) solid var(--ink);
  overflow-y: auto;
}
.mobile-panel .m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-panel a {
  padding: 14px 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--ink);
}
.mobile-panel a:hover { color: var(--teal-deep); }
.mobile-panel a.m-sub {
  font-family: var(--font-mono); font-size: 0.92rem; font-weight: 500;
  padding: 11px 12px 11px 24px; color: rgba(4,47,46,0.66); border-bottom: 2px solid var(--line-strong);
}
.mobile-panel a.m-cta { border-bottom: 0; }

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  color: #fff;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-bottom: var(--bd-thick) solid var(--ink);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% 15%, rgba(94,234,212,0.16) 0%, transparent 55%),
    linear-gradient(100deg, rgba(3,32,31,0.85) 0%, rgba(3,32,31,0.35) 52%, rgba(3,32,31,0) 78%),
    linear-gradient(180deg, rgba(3,32,31,0.1) 0%, rgba(3,32,31,0.55) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: 100%;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  margin-top: 26px;
}
.hero h1 .mark {
  position: relative;
  color: var(--accent-ink);
  white-space: nowrap;
}
.hero h1 .mark > span { position: relative; z-index: 1; padding: 0 0.12em; }
.hero h1 .mark::before {
  content: "";
  position: absolute;
  inset: 0.04em -0.02em 0.06em;
  background: var(--accent);
  border-radius: 0;
  z-index: 0;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.35);
  transform: scaleX(var(--mark-w, 1));
  transform-origin: left;
}
.hero p.sub {
  margin-top: 26px;
  max-width: 50ch;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.6);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta .tick { width: 7px; height: 7px; background: var(--glow); border-radius: 0; }

.chip-live {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 12px;
  border-radius: 0;
  background: var(--ink);
  border: var(--bd) solid var(--glow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 0; background: var(--glow);
}

/* Hero side panel — live apps */
.live-panel {
  position: relative;
  border-radius: 0;
  padding: 22px;
  background: var(--ink);
  border: var(--bd) solid var(--paper);
  box-shadow: var(--sh-sun);
}
.live-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 2px solid rgba(255,255,255,0.18);
}
.live-panel-head .l { display: inline-flex; align-items: center; gap: 9px; color: var(--glow); }
.live-panel-head .r { color: rgba(255,255,255,0.55); }
.app-row {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 10px;
  border-radius: 0;
  border: 2px solid transparent;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.app-row:hover { background: rgba(94,234,212,0.1); border-color: var(--glow); }
.app-row img { width: 42px; height: 42px; border-radius: 0; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); }
.app-row .nm { flex: 1; min-width: 0; }
.app-row .nm b { display: block; font-weight: 600; font-size: 0.95rem; color: #fff; }
.app-row .nm span { font-family: var(--font-mono); font-size: 0.74rem; color: rgba(255,255,255,0.5); display: inline-flex; align-items: center; gap: 5px; }
.app-row .dl { font-family: var(--font-mono); font-weight: 600; color: var(--glow); font-size: 0.92rem; }
.live-panel-foot {
  margin-top: 16px; padding-top: 18px;
  border-top: 2px solid rgba(255,255,255,0.18);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.bignum {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 3.4vw, 3rem); letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bignum em { color: var(--glow); font-style: normal; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .bar { width: 2px; height: 34px; background: var(--glow); animation: scrolldrop 2s var(--ease-out) infinite; }
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ----------------------------------------------------------------
   Section header pattern
   ---------------------------------------------------------------- */
.sec-head { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.0;
  font-size: clamp(2rem, 4.6vw, 3.4rem); margin-top: 18px; color: var(--ink);
}

/* ----------------------------------------------------------------
   Services — interactive accordion
   ---------------------------------------------------------------- */
.svc-list { border-top: var(--bd) solid var(--ink); }
.svc {
  border-bottom: var(--bd) solid var(--ink);
  transition: background-color 0.3s var(--ease-out);
}
.svc.open { background: var(--paper-warm); }
.svc-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 3vw, 34px) 0;
  cursor: pointer;
  width: 100%;
  background: none; border: 0; text-align: left;
  color: var(--ink);
}
.svc-num { font-family: var(--font-mono); font-size: 0.9rem; color: var(--teal-deep); font-weight: 700; }
.svc-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  transition: color 0.25s var(--ease-out);
}
.svc:hover .svc-title { color: var(--teal-deep); }
.svc.open .svc-title { color: var(--ink); }
.svc-plus {
  width: 42px; height: 42px; border-radius: 0;
  border: var(--bd) solid var(--ink);
  background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform 0.4s var(--ease-out-strong), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  flex-shrink: 0;
}
.svc.open .svc-plus { transform: rotate(135deg); background: var(--sun); color: var(--ink); }
.svc-body-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.svc.open .svc-body-wrap { grid-template-rows: 1fr; }
.svc-body { overflow: hidden; }
.svc-body-inner {
  display: grid; grid-template-columns: 64px 1fr 0.8fr; gap: 20px;
  padding: 4px 0 clamp(24px, 3vw, 40px);
}
.svc-body-inner .desc { color: rgba(4,47,46,0.78); font-size: 1.02rem; line-height: 1.6; }
.svc-body-inner .desc a { color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.svc-stack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.svc-stack .lbl { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(4,47,46,0.55); margin-bottom: 2px; }
.tag {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  padding: 5px 11px; border-radius: 0;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink);
}

/* app mini-grid inside first service */
.app-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 4px; }
.app-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 0;
  border: var(--bd) solid var(--ink); background: var(--paper-warm);
  box-shadow: var(--sh-sm);
  transition: var(--press);
}
.app-mini:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.app-mini img { width: 40px; height: 40px; border-radius: 0; border: 2px solid var(--ink); }
.app-mini b { font-size: 0.9rem; font-weight: 600; }
.app-mini span { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(4,47,46,0.6); }

/* ----------------------------------------------------------------
   Work — filterable grid
   ---------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 9px 16px; border-radius: 0;
  border: var(--bd) solid var(--ink); background: var(--paper); color: var(--ink);
  cursor: pointer; transition: var(--press), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
  box-shadow: var(--sh-sm);
}
.filter-btn:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.filter-btn.on { background: var(--ink); color: #fff; }
.filter-btn .n { opacity: 0.6; margin-left: 6px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--paper);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--sh);
  display: flex; flex-direction: column;
  transition: var(--press), opacity 0.4s var(--ease-out);
}
.tile:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.tile-img { position: relative; overflow: hidden; background: var(--paper-2); height: clamp(260px, 24vw, 340px); border-bottom: var(--bd) solid var(--ink); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease-out); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-img.app-tile { display: flex; align-items: center; justify-content: center; min-height: 150px; }
.tile-img.app-tile img { width: 76px; height: 76px; border-radius: 0; object-fit: contain; border: var(--bd) solid var(--ink); }
.tile:hover .tile-img.app-tile img { transform: none; }
.tile-view {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 0;
  background: var(--sun); border: var(--bd) solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  opacity: 0; transform: translate(6px,-6px);
  transition: all 0.3s var(--ease-out);
}
.tile:hover .tile-view { opacity: 1; transform: translate(0,0); }
.tile-body { padding: 18px 20px 22px; background: var(--paper); }
.tile-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: var(--glow);
  border: 2px solid var(--ink); padding: 3px 8px;
}
.tile-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; margin-top: 12px; font-size: 1.35rem; }
.tile-desc { margin-top: 6px; font-size: 0.9rem; line-height: 1.5; color: rgba(4,47,46,0.7); min-height: 2.7em; }
.tile.hide { display: none; }

/* marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-row { display: flex; gap: 56px; align-items: center; }
.marquee-item { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.marquee-item img { width: 50px; height: 50px; border-radius: 0; border: 2px solid var(--ink); }
.marquee-item b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.marquee-item span { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(4,47,46,0.6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------
   Process
   ---------------------------------------------------------------- */
.proc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.proc-card {
  position: relative;
  padding: 28px;
  border-radius: 0;
  border: var(--bd) solid var(--ink);
  background: var(--paper-warm);
  box-shadow: var(--sh);
  transition: var(--press);
  overflow: hidden;
}
.proc-card:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.proc-num {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--teal-deep); letter-spacing: 0.1em;
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 56px;
}
.proc-num .hex {
  width: 38px; height: 38px;
  background: var(--accent); color: var(--accent-ink);
  border: var(--bd) solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
  clip-path: none;
}
.proc-card.alt .proc-num .hex { background: var(--ink); color: #fff; }
.proc-card h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: 1.5rem; }
.proc-card .when { font-family: var(--font-mono); font-size: 0.74rem; color: var(--teal-deep); margin-top: 6px; }
.proc-card p { margin-top: 14px; font-size: 0.96rem; line-height: 1.55; color: rgba(4,47,46,0.72); }

/* ----------------------------------------------------------------
   Testimonials
   ---------------------------------------------------------------- */
.t-feature {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.18;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  color: var(--ink); max-width: 20ch;
}
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.t-card { padding: 28px; border-radius: 0; border: var(--bd) solid var(--ink); background: var(--paper-warm); box-shadow: var(--sh); transition: var(--press); }
.t-card:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.t-stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--sun); }
.t-card blockquote { font-size: 1rem; line-height: 1.6; color: var(--ink); margin: 0; }
.t-card figcaption { margin-top: 18px; font-family: var(--font-mono); font-size: 0.78rem; }
.t-card figcaption b { color: var(--ink); }
.t-card figcaption span { color: rgba(4,47,46,0.6); }
.t-avatar { width: 46px; height: 46px; border-radius: 0; border: var(--bd) solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--ink); background: var(--sun); }
.t-lead {
  display: flex; gap: 24px; align-items: flex-start;
  padding: clamp(24px, 3vw, 38px);
  border: var(--bd) solid var(--ink); background: var(--paper); box-shadow: var(--sh-lg);
}
.t-lead > svg { flex-shrink: 0; }

/* ----------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: var(--bd) solid var(--ink); background: var(--paper); box-shadow: var(--sh-sm); }
.faq-item.open { box-shadow: var(--sh); }
.faq-q {
  display: flex; align-items: center; gap: 20px;
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  padding: 22px; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  transition: color 0.2s var(--ease-out);
}
.faq-item:hover .faq-q { color: var(--teal-deep); }
.faq-plus { flex-shrink: 0; width: 26px; height: 26px; color: var(--ink); transition: transform 0.4s var(--ease-out-strong); margin-left: auto; }
.faq-item.open .faq-plus { transform: rotate(135deg); color: var(--teal-deep); }
.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 22px 24px; max-width: 70ch; color: rgba(4,47,46,0.78); font-size: 1rem; line-height: 1.6; }

/* ----------------------------------------------------------------
   Contact
   ---------------------------------------------------------------- */
.contact { background: var(--ink-deep); color: #fff; position: relative; overflow: hidden; border-top: var(--bd-thick) solid var(--ink); }
.contact .hexfield { position: absolute; inset: 0; opacity: 0.45; pointer-events: none; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
.contact .eyebrow { background: var(--glow); border-color: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,0.4); }
.contact h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.0; font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 18px; }
.contact-info { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.cinfo { display: flex; gap: 14px; align-items: flex-start; }
.cinfo .ic { width: 44px; height: 44px; border-radius: 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); border: var(--bd) solid var(--glow); color: var(--glow); }
.cinfo .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; }
.cinfo .v { font-weight: 500; color: #fff; display: block; }
.cinfo:hover .v { color: var(--glow); }

.form-card { background: var(--ink); border: var(--bd) solid var(--glow); border-radius: 0; padding: clamp(22px, 3vw, 36px); box-shadow: 8px 8px 0 rgba(0,0,0,0.4); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.field {
  width: 100%; background: var(--ink-deep); border: 2px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: 0; padding: 13px 15px; font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field::placeholder { color: rgba(255,255,255,0.42); }
.field:focus { outline: none; border-color: var(--glow); box-shadow: 4px 4px 0 var(--glow); }
select.field option { color: #042f2e; }

.form-success { padding: 40px 8px; text-align: center; }
.form-success .ok-ring { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 0; background: var(--ink-deep); border: var(--bd) solid var(--glow); display: flex; align-items: center; justify-content: center; color: var(--glow); }
.form-success h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; }
.form-success p { color: rgba(255,255,255,0.7); margin-top: 10px; font-size: 0.95rem; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.footer { background: var(--ink-deep); color: rgba(255,255,255,0.7); padding: clamp(48px, 6vw, 80px) 0 36px; border-top: var(--bd-thick) solid var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 2px solid rgba(255,255,255,0.18); }
.footer h5 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sun); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 0.92rem; transition: color 0.2s var(--ease-out); }
.footer ul a:hover { color: var(--glow); }
.footer .brand-blurb { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 34ch; margin-top: 18px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 2px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.8); transition: var(--press), color 0.2s var(--ease-out), background-color 0.2s var(--ease-out); }
.socials a:hover { color: var(--ink); background: var(--glow); border-color: var(--glow); }
.footer-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-family: var(--font-mono); font-size: 0.74rem; color: rgba(255,255,255,0.5); }
.footer-bot a { color: rgba(255,255,255,0.8); }
.footer-bot a:hover { color: var(--glow); }

/* ----------------------------------------------------------------
   Sub-page layout (service + content pages)
   ---------------------------------------------------------------- */
.subhero {
  position: relative;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border-bottom: var(--bd-thick) solid var(--ink);
  padding: clamp(124px, 16vw, 184px) 0 clamp(56px, 8vw, 92px);
}
.subhero .hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(94, 234, 212, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, rgba(3, 32, 31, 0.2) 0%, rgba(3, 32, 31, 0.55) 100%);
}
.subhero .wrap { position: relative; z-index: 1; }
.subhero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.0;
  font-size: clamp(2.25rem, 5.6vw, 4.25rem); margin-top: 22px; max-width: 18ch;
}
.subhero h1 .mark { position: relative; color: var(--accent-ink); white-space: nowrap; }
.subhero h1 .mark > span { position: relative; z-index: 1; padding: 0 0.12em; }
.subhero h1 .mark::before {
  content: ""; position: absolute; inset: 0.04em -0.02em 0.06em;
  background: var(--accent); z-index: 0; box-shadow: 5px 5px 0 rgba(0,0,0,0.35);
}
.subhero .sub { margin-top: 24px; max-width: 56ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.6; color: rgba(255,255,255,0.84); }
.subhero .eyebrow { background: var(--glow); border-color: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,0.4); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { padding: 0 8px; opacity: 0.5; }
.subhero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.subhero-meta { margin-top: 28px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.6); }

/* generic section heading */
.sub-head { max-width: 64ch; }
.sub-head h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; font-size: clamp(1.75rem, 3.6vw, 2.75rem); margin-top: 16px; color: var(--ink); }

/* generic prose lead */
.prose-block { max-width: 64ch; }
.prose-block p { margin-top: 16px; color: rgba(4,47,46,0.8); font-size: 1.05rem; line-height: 1.65; }
.prose-block p:first-child { margin-top: 0; }
.prose-block a { color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* bordered card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
.nb-card {
  background: var(--paper); border: var(--bd) solid var(--ink); box-shadow: var(--sh);
  padding: 26px; transition: var(--press);
}
.nb-card:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.nb-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nb-card p { margin-top: 10px; font-size: 0.95rem; line-height: 1.55; color: rgba(4,47,46,0.72); }
.nb-card a { color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* benefits row */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
.benefit h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.benefit p { margin-top: 12px; font-size: 0.97rem; line-height: 1.6; color: rgba(4,47,46,0.72); }

/* dark CTA block */
.cta-dark { background: var(--ink-deep); color: #fff; border-top: var(--bd-thick) solid var(--ink); }
.cta-dark h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.0; font-size: clamp(2rem, 4.4vw, 3.25rem); }
.cta-dark p { margin-top: 20px; max-width: 56ch; color: rgba(255,255,255,0.84); font-size: 1.05rem; line-height: 1.6; }
.cta-dark .sub-note { margin-top: 26px; font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* content / legal pages */
.legal { padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(2rem, 4.4vw, 3rem); }
.legal .updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-deep); margin-top: 12px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.5rem; margin-top: 44px; padding-top: 22px; border-top: var(--bd) solid var(--ink); }
.legal h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-top: 26px; }
.legal p, .legal li { color: rgba(4,47,46,0.82); line-height: 1.7; }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin-top: 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 20px; border: var(--bd) solid var(--ink); box-shadow: var(--sh-sm); }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--ink); font-size: 0.95rem; }
.legal th { background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal tr:last-child td { border-bottom: 0; }
.legal td { color: rgba(4,47,46,0.82); }
.legal strong { color: var(--ink); }

@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
}

@media print {
  .header, .mobile-sheet, .subhero, .footer, .scroll-hint { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .legal { padding: 0 !important; }
  .legal h2 { border-top: 0; padding-top: 0; margin-top: 16pt; }
  .legal table { box-shadow: none; }
}

/* ----------------------------------------------------------------
   Reveal animations
   ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
.reveal.d4 { transition-delay: 0.28s; }

.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.motion-off .marquee-track, .motion-off .scroll-hint .bar { animation: none !important; }

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

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .live-panel { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .proc { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-body-inner { grid-template-columns: 1fr; }
  .svc-head { grid-template-columns: 44px 1fr auto; }
}
@media (max-width: 720px) {
  .nav, .header .btn-desktop { display: none; }
  .burger { display: inline-flex; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.6rem); }
  .field-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .app-mini-grid { grid-template-columns: 1fr; }
}
