/* ============================================================
   STACKVAULT — Managed IT, Cybersecurity & Cloud (Fresno, CA)
   Design system: deep navy + tech-blue / structured "report"
   Fonts: Archivo (display) · Instrument Sans (body) · Spline Sans Mono (labels)
   ============================================================ */

:root {
  /* palette — tech blue + navy ink on cool paper */
  --brand: #1858d6;
  --brand-ink: #0f3fa6;
  --brand-bright: #37a2ff;
  --brand-soft: #e7eefc;
  --ink: #0c1220;
  --ink-2: #131c2e;
  --ink-3: #1f2a40;
  --paper: #f4f6fb;
  --paper-2: #e8edf6;
  --card: #ffffff;
  --line: rgba(12, 18, 32, 0.12);
  --line-2: rgba(12, 18, 32, 0.07);
  --line-dark: rgba(255, 255, 255, 0.13);
  --muted: #55607a;
  --muted-2: #8a93a8;

  --font-display: "Archivo", -apple-system, system-ui, sans-serif;
  --font-body: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  --text-hero: clamp(2.55rem, 1.2rem + 5vw, 5.4rem);
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3.7rem);
  --text-h3: clamp(1.35rem, 1.05rem + 1.1vw, 1.85rem);
  --text-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);

  --container: 1240px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.75rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --dur: 320ms;
  --dur-fast: 160ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px -34px rgba(10, 25, 60, 0.5);
  --shadow-sm: 0 14px 34px -24px rgba(10, 25, 60, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
::selection { background: var(--brand); color: #fff; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 10px 0; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- helpers ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
.eyebrow.on-dark { color: var(--brand-bright); }
.eyebrow.on-dark::before { background: var(--brand-bright); }
.section-head { display: grid; gap: 1.1rem; max-width: 660px; margin-bottom: clamp(2.2rem, 1rem + 4vw, 3.6rem); }
.section-head h2 { font-size: var(--text-h2); }
.section-head p { color: var(--muted); font-size: var(--text-lead); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem;
  padding: 0.9rem 1.5rem; border-radius: 8px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform var(--dur) var(--ease); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translate(3px, -3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { border-color: var(--line-dark); color: #fff; }
.btn-ghost.on-dark:hover { border-color: #fff; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.02rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.brand .mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-weight: 500; font-size: 0.95rem; }
.nav-links a { color: var(--muted); transition: color var(--dur-fast); position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; transition: transform var(--dur); }

/* ---------- hero (full-width statement) ---------- */
.hero { padding-top: clamp(3rem, 2rem + 4vw, 6rem); padding-bottom: 0; }
.hero-top { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: end; }
.hero h1 { font-size: var(--text-hero); letter-spacing: -0.035em; margin-top: 1.5rem; font-weight: 800; }
.hero h1 .accent { color: var(--brand); }
.hero-aside { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 0.4rem; }
.hero-aside p { color: var(--muted); font-size: var(--text-lead); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-metric .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); letter-spacing: -0.03em; }
.hero-metric .lbl { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.hero-metric .num .u { color: var(--brand); }

/* hero image band */
.hero-band { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); position: relative; }
.hero-band-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--paper-2); }
.hero-band-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-band .cred {
  position: absolute; left: clamp(1rem, 0.5rem + 2vw, 2.4rem); bottom: -26px;
  background: var(--card); border-radius: var(--radius-sm); padding: 1rem 1.3rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 1.1rem;
}
.hero-band .cred .c-num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--brand); }
.hero-band .cred .c-txt { font-size: 0.85rem; color: var(--muted); max-width: 22ch; }

/* ---------- logo wall ---------- */
.logos { border-block: 1px solid var(--line); }
.logos-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: 2rem; }
.logos .lead { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); flex: 0 0 auto; }
.logos .row { display: flex; align-items: center; gap: clamp(1.4rem, 0.5rem + 2.5vw, 3rem); flex-wrap: wrap; }
.logos .row span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--muted-2); transition: color var(--dur-fast); }
.logos .row span:hover { color: var(--ink); }

/* ---------- capabilities index (rows) ---------- */
.idx { border-top: 1px solid var(--line); }
.idx-row {
  display: grid;
  grid-template-columns: 68px 1.1fr 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.3rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--dur) var(--ease), padding-inline var(--dur) var(--ease);
}
.idx-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease);
}
.idx-row:hover { background: var(--card); padding-inline: 1.4rem; }
.idx-row:hover::before { transform: scaleY(1); }
.idx-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--brand-ink); }
.idx-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h3); letter-spacing: -0.02em; }
.idx-desc { color: var(--muted); font-size: 0.98rem; max-width: 46ch; }
.idx-go { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background var(--dur), color var(--dur), border-color var(--dur); }
.idx-go svg { width: 18px; height: 18px; transition: transform var(--dur); }
.idx-row:hover .idx-go { background: var(--brand); border-color: var(--brand); color: #fff; }
.idx-row:hover .idx-go svg { transform: translate(2px, -2px); }

/* ---------- method (sticky editorial) ---------- */
.method { background: var(--paper-2); }
.method-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.method-head { position: sticky; top: 100px; }
.method-head h2 { font-size: var(--text-h2); margin-top: 1rem; }
.method-head p { color: var(--muted); margin-top: 1.1rem; font-size: var(--text-lead); }
.method-list { display: grid; gap: 0; }
.method-item { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.method-item:last-child { border-bottom: 1px solid var(--line); }
.method-item .mn { font-family: var(--font-mono); font-size: 0.82rem; color: var(--brand-ink); padding-top: 0.35rem; }
.method-item h3 { font-size: 1.4rem; }
.method-item p { color: var(--muted); margin-top: 0.5rem; font-size: 0.98rem; }

/* ---------- case studies / results ---------- */
.cases-grid { display: grid; gap: 1.3rem; }
.case {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.case:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.case:nth-child(even) .case-media { order: 2; }
.case-media { aspect-ratio: 5 / 4; overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.case-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.case-metric { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); letter-spacing: -0.03em; color: var(--brand); margin: 0.7rem 0 0.2rem; }
.case h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.case p { color: var(--muted); font-size: 0.98rem; }
.case .who { margin-top: 1.3rem; font-size: 0.88rem; font-weight: 600; }

/* ---------- stat band ---------- */
.stats { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.4rem, 1.5rem + 3vw, 4rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-cell { border-left: 2px solid var(--brand-bright); padding-left: 1.2rem; }
.stat-cell .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -0.03em; }
.stat-cell .lbl { color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; margin-top: 0.3rem; }

/* ---------- featured testimonial ---------- */
.quote-feat { display: grid; grid-template-columns: 0.4fr 1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.quote-feat .q-media img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.quote-feat blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1.28; letter-spacing: -0.02em; }
.quote-feat .q-mark { color: var(--brand); font-size: 3rem; font-family: var(--font-display); line-height: 0.5; }
.quote-feat .q-who { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.9rem; }
.quote-feat .q-who .n { font-weight: 600; }
.quote-feat .q-who .r { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.6rem, 1.5rem + 4vw, 5rem); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% -20%, rgba(255,255,255,0.18), transparent 55%); pointer-events: none; }
.cta-band h2 { font-size: var(--text-h2); max-width: 18ch; position: relative; }
.cta-band p { max-width: 46ch; margin-top: 1rem; color: rgba(255,255,255,0.9); font-size: var(--text-lead); position: relative; }
.cta-band .actions { margin-top: 2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding-top: clamp(3.5rem, 2rem + 4vw, 5.5rem); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { color: #fff; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 0.73rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: 0.35rem 0; color: rgba(255,255,255,0.72); transition: color var(--dur-fast); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.8rem; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em; color: var(--muted-2); }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-dark); display: grid; place-items: center; color: #fff; transition: background var(--dur-fast), border-color var(--dur-fast); }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- page hero ---------- */
.page-hero { padding-top: clamp(3rem, 2rem + 3vw, 5rem); padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.page-hero .crumb { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.page-hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.8rem); letter-spacing: -0.035em; max-width: 17ch; font-weight: 800; }
.page-hero p { color: var(--muted); font-size: var(--text-lead); max-width: 54ch; margin-top: 1.3rem; }

/* ---------- values / feature cards ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feat { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feat .fi { width: 48px; height: 48px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 1.3rem; }
.feat .fi svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.2rem; }
.feat p { color: var(--muted); margin-top: 0.5rem; font-size: 0.96rem; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.split h2 { font-size: var(--text-h2); margin-top: 1rem; }
.split p { color: var(--muted); margin-top: 1rem; font-size: var(--text-lead); }
.check-list { display: grid; gap: 1rem; margin-top: 1.8rem; }
.check-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.check-list .ci { width: 24px; height: 24px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: 0 0 auto; margin-top: 3px; }
.check-list .ci svg { width: 14px; height: 14px; }
.check-list strong { font-weight: 600; }
.check-list span.t { color: var(--muted); font-size: 0.94rem; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.member img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: grayscale(0.2); }
.member h4 { font-family: var(--font-display); font-size: 1.1rem; margin-top: 1rem; }
.member p { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brand-ink); letter-spacing: 0.03em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.contact-info .info-item { display: flex; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:first-child { padding-top: 0; }
.contact-info .ii-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: 0 0 auto; }
.contact-info .ii-ico svg { width: 21px; height: 21px; }
.contact-info h4 { font-family: var(--font-display); font-size: 1.05rem; }
.contact-info p, .contact-info a { color: var(--muted); font-size: 0.96rem; }
.contact-info a:hover { color: var(--brand-ink); }
.form-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.82rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 0.96rem; padding: 0.82rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); transition: border-color var(--dur-fast), background var(--dur-fast); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; text-align: center; }
.form-note code { font-family: var(--font-mono); font-size: 0.92em; background: var(--paper-2); padding: 0.05em 0.35em; border-radius: 4px; }
.form-status, .auth-status { margin-top: 0.9rem; font-size: 0.86rem; text-align: center; min-height: 1.2em; }
.form-status:empty, .auth-status:empty { margin: 0; min-height: 0; }
.form-status.ok, .auth-status.ok { color: var(--brand-ink); font-weight: 600; }
.form-status.err, .auth-status.err { color: #b4232a; }

/* faq */
.faq { display: grid; gap: 1rem; max-width: 820px; }
.faq details { padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--muted); margin-top: 0.7rem; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- auth / client portal ---------- */
.auth {
  min-height: 100dvh; display: flex; flex-direction: column;
  background:
    radial-gradient(1100px 520px at 100% -10%, rgba(24, 88, 214, 0.10), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(55, 162, 255, 0.10), transparent 55%),
    var(--paper);
}
.auth-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem var(--gutter); }
.auth-bar .back { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; transition: color var(--dur-fast); }
.auth-bar .back:hover { color: var(--ink); }
.auth-main { flex: 1; display: grid; place-items: center; padding: 2rem var(--gutter) 3rem; }
.auth-card { width: 100%; max-width: 430px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(1.6rem, 1rem + 2vw, 2.6rem); box-shadow: var(--shadow); }
.auth-card .eyebrow { margin-bottom: 1rem; }
.auth-card h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); letter-spacing: -0.03em; }
.auth-card .sub { color: var(--muted); margin-top: 0.5rem; font-size: 0.96rem; }
.auth-form { margin-top: 1.6rem; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.1rem 0 1.2rem; font-size: 0.85rem; }
.auth-row label { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-weight: 500; cursor: pointer; }
.auth-row a { color: var(--brand-ink); font-weight: 600; }
.auth-row a:hover { text-decoration: underline; }
.btn-block { width: 100%; justify-content: center; }
.auth-div { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; color: var(--muted-2); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.auth-div::before, .auth-div::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.btn-sso { width: 100%; justify-content: center; gap: 0.7rem; border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn-sso:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sso svg { width: 18px; height: 18px; }
.auth-note { margin-top: 1.5rem; font-size: 0.82rem; color: var(--muted); text-align: center; line-height: 1.5; }
.auth-note a { color: var(--brand-ink); font-weight: 600; }
.auth-foot { padding: 1.4rem var(--gutter); text-align: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--muted-2); }
.auth-foot a { color: inherit; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero-aside { padding-bottom: 0; }
  .method-grid { grid-template-columns: 1fr; }
  .method-head { position: static; }
  .case, .case:nth-child(even) .case-media { grid-template-columns: 1fr; }
  .case-media, .case:nth-child(even) .case-media { order: 0; aspect-ratio: 16 / 9; }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 480px; }
  .quote-feat { grid-template-columns: 1fr; }
  .quote-feat .q-media { max-width: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .hero-metrics { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .hero-band-img { aspect-ratio: 16 / 11; }
  .idx-row { grid-template-columns: 44px 1fr; gap: 0.4rem 1rem; }
  .idx-desc { grid-column: 2; }
  .idx-go { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .logos-inner { justify-content: flex-start; }

  .nav-links.open { display: flex; position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; z-index: 99; }
  .nav-links.open a { padding: 0.9rem 0; width: 100%; border-bottom: 1px solid var(--line-2); font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
@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; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
