/* =========================================================================
   Helm — Steady hands on your IT.
   Stylesheet v1.0
   Aesthetic: midnight ink + warm parchment + brass accents.
   Type: Fraunces (display, italic emphasis) + Instrument Sans (UI/body).
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dt, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- Tokens ---------- */
:root {
  /* color */
  --ink-950: #07101D;
  --ink-900: #0A1320;
  --ink-850: #0E1828;
  --ink-800: #131E32;
  --ink-700: #1B2942;
  --ink-600: #243553;

  --parchment-50:  #F4ECDB;
  --parchment-100: #ECE2CD;
  --parchment-200: #D6C9AE;
  --parchment-400: #9C9381;
  --parchment-500: #7B7565;

  --brass-300: #E2C684;
  --brass-400: #D4B36A;
  --brass-500: #C8A35A;     /* primary accent */
  --brass-600: #A8854A;
  --brass-700: #7E6336;

  --hairline:        rgba(212, 179, 106, 0.14);
  --hairline-strong: rgba(212, 179, 106, 0.28);
  --ink-overlay:     rgba(7, 16, 29, 0.85);

  --danger: #D67B62;
  --success: #93AE7E;

  /* type */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* layout */
  --container-max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 160px);

  /* radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink-900);
  color: var(--parchment-100);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(200, 163, 90, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(36, 53, 83, 0.4), transparent 60%);
}

/* subtle film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.88  0 0 0 0 0.74  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
}

::selection { background: var(--brass-500); color: var(--ink-900); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brass-500); color: var(--ink-900);
  padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { left: 12px; outline: 2px solid var(--brass-300); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--parchment-50);
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}
h3, h4 { font-variation-settings: "opsz" 36; line-height: 1.2; letter-spacing: -0.01em; }

em {
  font-style: italic;
  color: var(--brass-400);
  font-variation-settings: "opsz" 144;
}

p { color: var(--parchment-200); }
strong { color: var(--parchment-50); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-400);
  font-weight: 500;
  margin-bottom: 22px;
}
.eyebrow__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass-500);
  box-shadow: 0 0 0 4px rgba(200,163,90,.12);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200,163,90,.12); }
  50%      { box-shadow: 0 0 0 8px rgba(200,163,90,.05); }
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 22px;
  max-width: 22ch;
}
.section-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--parchment-200);
  max-width: 60ch;
  line-height: 1.55;
}
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .35s var(--ease-out), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .35s var(--ease-out);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 2px solid var(--brass-300); outline-offset: 3px; }

.btn--primary {
  background: var(--brass-500);
  color: var(--ink-900);
  border: 1px solid var(--brass-500);
  box-shadow: 0 6px 22px -8px rgba(200,163,90,.6), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover {
  background: var(--brass-400);
  border-color: var(--brass-400);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(200,163,90,.7), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--parchment-50);
  border: 1px solid var(--hairline-strong);
  background: rgba(255,255,255,.01);
}
.btn--ghost:hover {
  border-color: var(--brass-500);
  color: var(--brass-300);
  transform: translateY(-1px);
}

.btn--block { width: 100%; }

/* link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brass-400);
  font-weight: 500; font-size: 14.5px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  transition: gap .3s var(--ease-out), color .3s ease, border-color .3s ease;
}
.link-arrow:hover { gap: 14px; color: var(--brass-300); border-color: var(--brass-400); }
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ============================== NAV ============================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding: 12px 0;
  background: rgba(10, 19, 32, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--parchment-50);
}
.brand-mark { color: var(--brass-500); display: inline-flex; }
.brand-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--parchment-50);
  font-variation-settings: "opsz" 36;
}
.nav__links {
  display: flex; align-items: center; justify-content: center;
  gap: 30px;
}
.nav__links a {
  font-size: 14.5px;
  color: var(--parchment-200);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover { color: var(--parchment-50); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { padding: 11px 18px; font-size: 13.5px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
}
.nav__toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--parchment-50);
  transition: transform .3s, opacity .3s;
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(212,179,106,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212,179,106,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero__glow--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(200,163,90,.32), transparent 65%);
  top: -120px; right: -80px;
}
.hero__glow--b {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(36,53,83,.6), transparent 65%);
  bottom: -200px; left: -150px;
}
.hero__wheel {
  position: absolute;
  right: -12vw; top: 50%;
  transform: translateY(-50%);
  width: min(75vw, 880px); height: min(75vw, 880px);
  color: var(--brass-500);
  opacity: 0.13;
  animation: spin 90s linear infinite;
}
.hero__wheel svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero__inner {
  position: relative; z-index: 2;
  max-width: 920px;
}
.hero__title {
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 350;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 32px;
  font-variation-settings: "opsz" 144;
}
.hero__title em {
  font-variation-settings: "opsz" 144;
  font-weight: 350;
}
.hero__sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--parchment-200);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero__ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--parchment-400);
  font-weight: 500;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  max-width: 720px;
}
.hero__trust-sep {
  width: 4px; height: 4px; border-radius: 50%; background: var(--brass-600);
}
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--parchment-400);
}
.hero__scroll-line {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--brass-500), transparent);
  background-size: 100% 200%;
  animation: scroll-line 2.5s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 100%; }
}

/* ============================== MARQUEE ============================== */
.marquee {
  position: relative;
  padding: 28px 0;
  border-block: 1px solid var(--hairline);
  background: rgba(10, 19, 32, 0.6);
  overflow: hidden;
  z-index: 3;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 120px;
  pointer-events: none; z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--ink-900), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--ink-900), transparent); }
.marquee__track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__group {
  display: flex; align-items: center; gap: 36px;
  padding-right: 36px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment-400);
  font-weight: 500;
}
.marquee__group span:not(.dot):hover { color: var(--parchment-50); transition: color .25s ease; }
.marquee .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass-600);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================== SECTIONS ============================== */
.section {
  padding: var(--section-y) 0;
  position: relative;
  z-index: 2;
}
.section--alt {
  background: linear-gradient(to bottom, var(--ink-900), var(--ink-850), var(--ink-900));
  border-block: 1px solid var(--hairline);
}

/* ============================== SERVICES ============================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}
.service-card {
  background: linear-gradient(180deg, rgba(19,30,50,.4), rgba(10,19,32,.85));
  padding: 36px 32px 40px;
  position: relative;
  transition: background .35s ease;
  display: flex; flex-direction: column;
  min-height: 360px;
}
.service-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--brass-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: linear-gradient(180deg, rgba(27,41,66,.55), rgba(14,24,40,.95)); }
.service-card__num {
  position: absolute; top: 28px; right: 32px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brass-600);
  font-variation-settings: "opsz" 12;
}
.service-card__icon {
  color: var(--brass-400);
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  margin-bottom: 28px;
  background: rgba(200,163,90,.04);
  transition: color .3s, border-color .3s, background .3s;
}
.service-card:hover .service-card__icon {
  color: var(--brass-300);
  border-color: var(--brass-500);
  background: rgba(200,163,90,.08);
}
.service-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
  color: var(--parchment-50);
}
.service-card p {
  font-size: 15.5px;
  color: var(--parchment-200);
  margin-bottom: 22px;
  line-height: 1.6;
}
.service-card__list {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 8px;
}
.service-card__list li {
  font-size: 13.5px;
  color: var(--parchment-400);
  padding-left: 16px;
  position: relative;
}
.service-card__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px; background: var(--brass-500);
}

/* ============================== PLATFORM ============================== */
.platform {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.platform__copy { position: sticky; top: 120px; }
.platform__copy .section-title { margin-bottom: 22px; max-width: 12ch; }
.platform__copy .section-sub { margin-bottom: 32px; }
.platform__cards { display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.platform-card {
  padding: 36px 36px;
  background: linear-gradient(180deg, rgba(19,30,50,.5), rgba(10,19,32,.85));
  position: relative;
  transition: background .35s ease;
}
.platform-card:hover { background: linear-gradient(180deg, rgba(27,41,66,.7), rgba(14,24,40,.95)); }
.platform-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--brass-400);
  margin-bottom: 12px;
  font-variation-settings: "opsz" 36;
}
.platform-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.platform-card p {
  font-size: 16px; line-height: 1.6;
  color: var(--parchment-200);
}

/* ============================== INDUSTRIES ============================== */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.industry-card {
  padding: 28px 28px 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(19,30,50,.3), rgba(10,19,32,.65));
  transition: border-color .35s ease, transform .45s var(--ease-out), background .35s ease;
}
.industry-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(27,41,66,.45), rgba(14,24,40,.85));
}
.industry-card__icon {
  color: var(--brass-400);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.industry-card h3 {
  font-size: 19px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--parchment-50);
  margin-bottom: 6px;
}
.industry-card p {
  font-size: 14.5px;
  color: var(--parchment-400);
  line-height: 1.55;
}

/* ============================== STATS ============================== */
.stats {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  border-block: 1px solid var(--hairline);
  background: linear-gradient(to right, var(--ink-850), var(--ink-900), var(--ink-850));
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(200,163,90,.07), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(200,163,90,.07), transparent 40%);
  pointer-events: none;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  position: relative;
}
.stat {
  text-align: left;
  padding-left: 24px;
  border-left: 1px solid var(--hairline-strong);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 350;
  letter-spacing: -0.04em;
  color: var(--parchment-50);
  line-height: 1;
  margin-bottom: 14px;
  font-variation-settings: "opsz" 144;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat__sep { color: var(--brass-500); padding-inline: 2px; }
.stat__label {
  font-size: 14px;
  color: var(--parchment-400);
  line-height: 1.5;
  max-width: 26ch;
}

/* ============================== PRICING ============================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  padding: 40px 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(19,30,50,.45), rgba(10,19,32,.85));
  display: flex; flex-direction: column;
  transition: border-color .35s ease, transform .45s var(--ease-out);
}
.pricing-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }

.pricing-card--featured {
  border-color: var(--brass-500);
  background:
    linear-gradient(180deg, rgba(200,163,90,.07), rgba(10,19,32,.95));
  box-shadow:
    0 30px 80px -40px rgba(200,163,90,.4),
    0 1px 0 rgba(200,163,90,.25) inset;
  transform: translateY(-12px);
}
.pricing-card--featured:hover { transform: translateY(-14px); }

.pricing-card__badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--brass-500);
  color: var(--ink-900);
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
}
.pricing-card__head { margin-bottom: 24px; }
.pricing-card__head h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.pricing-card__tag {
  font-size: 14px;
  color: var(--parchment-400);
  line-height: 1.45;
}
.pricing-card__price {
  display: flex; align-items: baseline; gap: 10px;
  padding-block: 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 28px;
}
.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: -0.03em;
  color: var(--parchment-50);
  font-variation-settings: "opsz" 144;
  line-height: 1;
}
.pricing-card__per {
  font-size: 13px;
  color: var(--parchment-400);
  letter-spacing: 0.02em;
}
.pricing-card__list {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}
.pricing-card__list li {
  font-size: 14.5px;
  color: var(--parchment-200);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.pricing-card__list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--brass-500);
  border-bottom: 1.5px solid var(--brass-500);
  transform: rotate(-45deg);
}
.pricing__note {
  text-align: center;
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--parchment-400);
  max-width: 60ch;
  margin-inline: auto;
}

/* ============================== TESTIMONIALS ============================== */
.section--testimonials {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  padding: 36px 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: rgba(19,30,50,.4);
  position: relative;
  transition: border-color .35s ease, transform .45s var(--ease-out);
}
.testimonial:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.testimonial::before {
  content: "\201C";
  position: absolute; top: 12px; left: 22px;
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--brass-600);
  line-height: 1;
  font-variation-settings: "opsz" 144;
  opacity: 0.6;
}
.testimonial blockquote {
  padding-top: 36px;
  margin-bottom: 24px;
}
.testimonial blockquote p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--parchment-100);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.005em;
}
.testimonial figcaption {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.testimonial__name {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--parchment-50);
}
.testimonial__role {
  font-size: 13px;
  color: var(--parchment-400);
}

/* ============================== ABOUT ============================== */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about__copy p {
  font-size: 17px;
  color: var(--parchment-200);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 56ch;
}
.about__facts {
  padding: 36px 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(19,30,50,.5), rgba(10,19,32,.85));
  position: relative;
}
.about__facts::before {
  content: "";
  position: absolute; left: 0; top: 0;
  height: 100%; width: 2px;
  background: var(--brass-500);
}
.facts__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.facts__row:last-child { border-bottom: 0; }
.facts dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment-400);
  font-weight: 500;
  align-self: center;
}
.facts dd {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--parchment-50);
  text-align: right;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.005em;
}

/* ============================== CONTACT ============================== */
.section--contact {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(200,163,90,.08), transparent 70%),
    var(--ink-850);
  border-top: 1px solid var(--hairline);
}
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__copy .section-title { margin-bottom: 22px; max-width: 14ch; }
.contact__copy p {
  font-size: 17px;
  color: var(--parchment-200);
  margin-bottom: 36px;
  max-width: 50ch;
  line-height: 1.6;
}
.contact__details {
  display: flex; flex-direction: column; gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.contact__details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: baseline;
}
.contact__details a {
  color: var(--parchment-50);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
  font-size: 16.5px;
}
.contact__details a:hover { color: var(--brass-300); border-color: var(--brass-500); }
.contact__details address {
  font-style: normal;
  color: var(--parchment-50);
  font-size: 16.5px;
  line-height: 1.45;
}
.contact__label {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parchment-400);
  font-weight: 500;
}

/* form */
.contact__form-wrap {
  position: relative;
  padding: 40px clamp(28px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(27,41,66,.5), rgba(10,19,32,.95));
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.6);
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment-400);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(7,16,29,.6);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--parchment-50);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--parchment-500); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(212,179,106,.42); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-500);
  background: rgba(7,16,29,.85);
  box-shadow: 0 0 0 3px rgba(200,163,90,.18);
}
.field input:invalid:not(:placeholder-shown):not(:focus) { border-color: rgba(214,123,98,.4); }

.select-wrap { position: relative; }
.select-wrap svg {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--parchment-400);
  pointer-events: none;
}
.select-wrap select { padding-right: 40px; }

/* chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.chip {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(7,16,29,.5);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--parchment-200);
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--brass-600); color: var(--parchment-50); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) {
  background: rgba(200,163,90,.14);
  border-color: var(--brass-500);
  color: var(--brass-300);
}
.chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(200,163,90,.22); }

.field__error {
  font-size: 12.5px;
  color: var(--danger);
  min-height: 0;
  opacity: 0;
  transition: opacity .25s ease;
  letter-spacing: 0.01em;
}
.field.has-error .field__error { opacity: 1; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .chips { box-shadow: 0 0 0 1px rgba(214,123,98,.5); border-radius: 999px; padding: 4px; margin: -4px; }

.contact-form__submit {
  display: flex; align-items: center; gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.contact-form__fineprint {
  font-size: 12.5px;
  color: var(--parchment-500);
  flex: 1;
  min-width: 220px;
}

/* success state */
.contact-success {
  text-align: center;
  padding: 12px 8px;
}
.contact-success__mark {
  width: 72px; height: 72px;
  margin: 8px auto 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brass-400);
  background: rgba(200,163,90,.08);
  border: 1px solid var(--brass-600);
  animation: success-pop .6s var(--ease-out);
}
@keyframes success-pop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.contact-success h3 {
  font-size: 32px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.contact-success p {
  font-size: 16px;
  color: var(--parchment-200);
  max-width: 48ch;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.contact-success__meta {
  display: flex; justify-content: center; gap: 32px;
  padding: 22px 0;
  margin-bottom: 28px;
  border-block: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.contact-success__meta dt {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parchment-400);
  margin-bottom: 6px;
}
.contact-success__meta dd {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--parchment-50);
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.005em;
}

/* ============================== FOOTER ============================== */
.footer {
  background: var(--ink-950);
  padding: 80px 0 40px;
  border-top: 1px solid var(--hairline);
  position: relative;
  z-index: 2;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--hairline);
}
.footer__brand .nav__brand { margin-bottom: 18px; }
.footer__tagline {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--parchment-100);
  font-style: italic;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 36;
}
.footer__address {
  font-size: 14px;
  color: var(--parchment-400);
  line-height: 1.6;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-400);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--parchment-200);
  transition: color .25s ease;
}
.footer__col a:hover { color: var(--brass-300); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 12.5px;
  color: var(--parchment-500);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__fine { letter-spacing: 0.05em; }

/* ============================== REVEAL ============================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; gap: 20px; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-2px); }
  .testimonials { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .platform { grid-template-columns: 1fr; }
  .platform__copy { position: static; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-900);
    padding: 22px var(--gutter) 28px;
    gap: 18px;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    align-items: flex-start;
  }
  .nav.is-open .nav__cta {
    display: inline-flex;
    margin-top: 4px;
  }
  .nav__inner {
    grid-template-columns: 1fr auto;
    position: relative;
  }

  .hero { min-height: auto; padding-top: 140px; padding-bottom: 100px; }
  .hero__wheel { right: -40vw; opacity: 0.08; }
  .hero__title { font-size: clamp(48px, 13vw, 80px); }
  .hero__scroll { display: none; }

  .services { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .contact-form { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 28px 22px; }

  .contact__details li { grid-template-columns: 1fr; gap: 4px; }

  .testimonial blockquote p { font-size: 17px; }
  .section-title { font-size: clamp(32px, 8vw, 44px); }

  .marquee__group { gap: 24px; padding-right: 24px; font-size: 12px; }
}

/* ---------- Reduced motion ---------- */
@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; }
}
