/* ============================================================
   ELLIOTT — Company Website
   Concept: "The Connecting Dots"
   Experience = scattered dots. Read through context, they connect
   into a growth structure.

   Design language: editorial black & white. White paper, near-black
   ink, a continuous dot-network reading quietly on white. A single
   accent — a vivid, deep blue — used sparingly for connection.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — paper white */
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6f7f9;
  --panel-border: #e6e7ec;
  --panel-border-strong: #d3d5dd;

  /* Ink */
  --text: #101216;
  --text-soft: #4a505b;
  --text-faint: #8a909b;

  /* Accent — vivid, deep blue (the connection) */
  --accent: #1b3fc4;
  --accent-bright: #2f55e6;
  --accent-deep: #16329c;
  --accent-tint: rgba(27, 63, 196, 0.08);
  --accent-line: rgba(27, 63, 196, 0.55);

  /* Lines */
  --line: rgba(16, 18, 22, 0.12);
  --line-soft: rgba(16, 18, 22, 0.07);

  /* Type */
  --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", ui-monospace, "DejaVu Sans Mono",
    Menlo, Consolas, "Courier New", monospace;

  /* Spacing */
  --space-section: clamp(5.5rem, 12vw, 11rem);
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-h: 76px;

  /* Shadows — soft, editorial */
  --shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.05);
  --shadow: 0 1px 3px rgba(16, 18, 22, 0.05), 0 18px 40px -30px rgba(16, 18, 22, 0.32);
  --shadow-lift: 0 2px 6px rgba(16, 18, 22, 0.06), 0 28px 56px -32px rgba(16, 18, 22, 0.4);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  letter-spacing: 0.012em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-break: strict;
  word-break: normal;
}

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--text); color: #fff;
  padding: 0.6rem 1rem; z-index: 300; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Connecting-dots canvas (fixed substrate) ---------- */
.bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 250; transition: width 0.1s linear;
}

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor { display: none; }
body.cursor-on .cursor {
  display: block; position: fixed; top: 0; left: 0; z-index: 280; pointer-events: none;
}
.cursor-dot, .cursor-ring {
  position: absolute; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 32px; height: 32px; border: 1px solid var(--accent);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
body.cursor-on.cursor-hover .cursor-ring { width: 56px; height: 56px; background: var(--accent-tint); }
body.cursor-on.cursor-down .cursor-ring { width: 24px; height: 24px; }
body.cursor-on a, body.cursor-on button, body.cursor-on [data-cursor], body.cursor-on { cursor: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}
.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; margin-inline: auto; }

.section { position: relative; z-index: 1; padding-block: var(--space-section); }
.section + .section { border-top: 1px solid var(--line-soft); }

/* ---------- Section node labels (mono, numbered, connected) ---------- */
main { counter-reset: sec; }
.section-label {
  display: flex; align-items: center; gap: 0.85rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  margin-bottom: var(--space-8);
}
.section-label::before {
  counter-increment: sec; content: "(" counter(sec, decimal-leading-zero) ")";
  color: var(--accent);
}
.section-label .lbl { color: var(--text-faint); }
.section-label::after {
  content: ""; flex: 1; max-width: 220px; height: 1px;
  background: linear-gradient(90deg, var(--line-strong, var(--line)), transparent);
}
.section-label--center { justify-content: center; }
.section-label--center::after { display: none; }

/* ---------- Headings / text ---------- */
.section-title {
  font-weight: 700; line-height: 1.32; letter-spacing: -0.01em;
  font-size: clamp(1.85rem, 5vw, 3.4rem); margin-bottom: var(--space-12); color: var(--text);
}
.lead { font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 2; color: var(--text-soft); }

/* JP line-break control */
.np { white-space: nowrap; }
.hero-title, .section-title, .value-heading { text-wrap: balance; }
.hero-lead, .lead, .philosophy-body p, .hgi-def, .hgi-note,
.why-item, .card-body, .value-list li, .footer-message { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 2rem; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.03em;
  border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color 0.3s ease,
    color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.btn--primary { background: var(--text); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 34px -16px rgba(27, 63, 196, 0.6); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--panel-border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--solid { background: var(--accent); color: #fff; padding: 1.05rem 2.7rem; box-shadow: 0 16px 40px -18px rgba(27, 63, 196, 0.55); }
.btn--lg { padding: 1.15rem 3rem; font-size: 1rem; }
.btn.is-disabled, .btn[aria-disabled="true"] {
  opacity: 1; cursor: not-allowed; pointer-events: none;
  background: transparent; border: 1px dashed var(--panel-border-strong); color: var(--text-faint);
  letter-spacing: 0.18em; box-shadow: none;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 200;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: background-color 0.4s ease, border-color 0.4s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand-mark { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--accent); position: relative; transition: transform 0.4s var(--ease); }
.brand-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.brand:hover .brand-mark { transform: scale(1.18); }
.brand-logo { display: block; height: 19px; width: auto; }
@media (max-width: 720px) { .brand-logo { height: 17px; } }

.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }
.nav-list { display: flex; gap: clamp(1.2rem, 2.6vw, 2.2rem); font-size: 0.9rem; font-family: var(--font-mono); letter-spacing: 0.04em; }
.nav-list a { position: relative; padding-block: 0.4rem; color: var(--text-soft); transition: color 0.3s ease; }
.nav-list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--accent); transition: width 0.35s var(--ease); }
.nav-list a:hover { color: var(--text); }
.nav-list a:hover::after { width: 100%; }
.nav-cta { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--text-faint); border: 1px dashed var(--panel-border-strong); padding: 0.45rem 0.95rem; border-radius: var(--radius-pill); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; color: var(--text); }
.nav-toggle-bar { display: block; width: 24px; height: 1.5px; margin-inline: auto; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; z-index: 1; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; padding-top: var(--header-h);
}
.hero-veil {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0) 70%, rgba(255,255,255,0.6) 100%);
}
.hero-inner { padding-block: clamp(3rem, 8vh, 6rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-8);
}
.eyebrow-node { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero-title {
  font-weight: 700; font-size: clamp(2.4rem, 8vw, 5.6rem); line-height: 1.12;
  letter-spacing: -0.02em; margin-bottom: var(--space-8); color: var(--text);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line-inner { display: inline-block; }

.hero-lead { max-width: 660px; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 2.05; color: var(--text-soft); margin-bottom: var(--space-12); }
.hero-lead em { color: var(--text); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint);
}
.scroll-hint-line { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.3; }
}

/* ============================================================
   Card base — clean editorial panels
   ============================================================ */
.flow-step, .card, .value-col, .tag-grid li, .constellation {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Philosophy + constellation
   ============================================================ */
.philosophy-body p { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 2.15; color: var(--text-soft); margin-bottom: var(--space-8); }
.philosophy-closing {
  color: var(--text) !important; font-weight: 600;
  border-left: 2px solid var(--accent); padding-left: var(--space-6); margin-top: var(--space-12);
}

.constellation { margin-top: var(--space-16); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.8rem); }
.constellation figcaption { margin-bottom: var(--space-8); color: var(--text-soft); font-size: 0.95rem; }
.constellation-kicker {
  display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}
.constellation svg { width: 100%; height: auto; overflow: visible; }

.cs-path {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.9s var(--ease-out);
}
.cs-dot {
  fill: #fff; stroke: var(--accent); stroke-width: 2;
  opacity: 0; transform: scale(0.4); transform-origin: center; transform-box: fill-box;
  transition: opacity 0.5s var(--ease) calc(var(--d) * 0.22s + 0.5s),
    transform 0.5s var(--ease) calc(var(--d) * 0.22s + 0.5s);
}
.cs-labels text { fill: var(--text-faint); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; opacity: 0; transition: opacity 0.5s ease 0.9s; }
.constellation.is-drawn .cs-path { stroke-dashoffset: 0; }
.constellation.is-drawn .cs-dot { opacity: 1; transform: scale(1); }
.constellation.is-drawn .cs-labels text { opacity: 1; }

/* ============================================================
   What We Do — flow
   ============================================================ */
.whatwedo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-bottom: var(--space-16); }
.flow { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.85rem; }
.flow-step {
  flex: 1 1 180px; border-radius: var(--radius-sm); padding: 1.6rem 1.4rem; font-size: 0.95rem; line-height: 1.7; color: var(--text);
  transition: transform 0.45s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.flow-step:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 0.9rem; }
.flow-arrow { align-self: center; width: 26px; height: 1.5px; background: var(--line); position: relative; flex: 0 0 auto; }
.flow-arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 8px; height: 8px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg); }

/* ============================================================
   HGI — Input/Interpret/Output nodes
   ============================================================ */
.hgi-def { margin-bottom: var(--space-6); color: var(--text); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 2; }
.hgi-note { color: var(--text-soft); margin-bottom: var(--space-16); font-size: 0.98rem; line-height: 2; }

.card-grid { display: grid; gap: 1.4rem; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hgi-flow { position: relative; }
.hgi-flow::before {
  content: ""; position: absolute; top: 50%; left: 8%; right: 8%; height: 1.5px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 14%, var(--accent) 86%, transparent); opacity: 0.4;
}
.hgi-flow::after {
  content: ""; position: absolute; top: 50%; left: 8%; width: 7px; height: 7px; border-radius: 50%; z-index: 0;
  background: var(--accent); margin-top: -3.5px; animation: flowDot 5s var(--ease) infinite;
}
@keyframes flowDot {
  0% { left: 8%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 92%; opacity: 0; }
}
.card {
  position: relative; z-index: 1; border-radius: var(--radius); padding: 2.3rem 2rem;
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-stage { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-tint); background: var(--accent-tint); border-radius: var(--radius-pill); padding: 0.32rem 0.85rem; margin-bottom: 1.3rem; }
.card-title { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; margin: 0 0 0.85rem; color: var(--text); }
.card-body { font-size: 0.94rem; line-height: 1.95; color: var(--text-soft); }

/* ============================================================
   Why It Matters
   ============================================================ */
.why-list { display: grid; gap: 0; max-width: 920px; }
.why-item {
  position: relative; font-size: clamp(1rem, 1.9vw, 1.2rem); line-height: 1.9;
  padding: 1.5rem 0 1.5rem 3rem; border-bottom: 1px solid var(--line); color: var(--text);
  transition: padding-left 0.4s var(--ease);
}
.why-item::before { content: ""; position: absolute; left: 0; top: 2rem; width: 14px; height: 14px; border: 1.5px solid var(--accent); border-radius: 50%; transition: background-color 0.3s ease; }
.why-item:first-child { border-top: 1px solid var(--line); }
.why-item:hover { padding-left: 3.4rem; }
.why-item:hover::before { background: var(--accent); }

/* ============================================================
   Value
   ============================================================ */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); }
.value-col {
  border-radius: var(--radius); padding: clamp(1.9rem, 3.5vw, 2.9rem);
  transition: transform 0.45s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.value-col:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.value-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-tint); background: var(--accent-tint); border-radius: var(--radius-pill); padding: 0.35rem 0.9rem; margin-bottom: var(--space-6); }
.value-heading { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.55; font-weight: 700; margin-bottom: var(--space-8); color: var(--text); }
.value-list { display: grid; gap: 0.95rem; }
.value-list li { position: relative; padding-left: 1.7rem; font-size: 0.96rem; line-height: 1.8; color: var(--text-soft); }
.value-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.value-guard { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 0.86rem; line-height: 1.85; color: var(--text-faint); }

/* ============================================================
   Business Domain — tags
   ============================================================ */
.tag-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: var(--space-12); }
.tag-grid li {
  border-radius: var(--radius-pill); padding: 0.75rem 1.5rem; font-size: 0.9rem; letter-spacing: 0.02em; color: var(--text-soft);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease), box-shadow 0.3s ease;
}
.tag-grid li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ============================================================
   Diagnosis / Contact
   ============================================================ */
.diagnosis .lead, .contact .lead { margin-bottom: var(--space-12); }
.diagnosis-cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.diagnosis-note { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.03em; }

/* ============================================================
   Footer — oversized wordmark
   ============================================================ */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-top: var(--space-16); overflow: hidden; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); padding-bottom: var(--space-16); }
.footer-tagline { color: var(--accent); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: var(--space-6); }
.footer-message { color: var(--text-soft); font-size: 1.05rem; max-width: 380px; }
.footer-nav ul { display: grid; gap: 0.9rem; font-size: 0.9rem; font-family: var(--font-mono); }
.footer-nav a { color: var(--text-soft); transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--accent); }

.footer-wordmark {
  display: block; width: 100%; height: clamp(72px, 13vw, 188px);
  margin-block: var(--space-8) var(--space-12); user-select: none;
}
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; border-top: 1px solid var(--line); padding-block: var(--space-8); }
.copyright { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); letter-spacing: 0.04em; }

/* ============================================================
   Scroll reveal
   The hidden state is gated on `html.js-reveal`, which is added by
   script.js only when it actually runs. If the script ever fails to
   load (e.g. iCloud renames the file), the class is never added and
   all content stays fully visible — the page can never white out.
   ============================================================ */
.reveal-line { display: inline-block; }

html.js-reveal .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
html.js-reveal .reveal-line {
  transform: translateY(115%);
  transition: transform 1s var(--ease-out);
  will-change: transform;
}
html.js-reveal .reveal.is-visible,
html.js-reveal .reveal-line.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .card-grid--3 { grid-template-columns: 1fr; }
  .hgi-flow::before, .hgi-flow::after { display: none; }
  .whatwedo-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 0; max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .site-nav.is-open { max-height: 84vh; visibility: visible; transition: max-height 0.45s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; width: 100%; gap: 0; padding: 0.5rem clamp(1.25rem, 5vw, 3rem); }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 1.15rem 0; font-size: 1.05rem; color: var(--text); }
  .nav-list a::after { display: none; }
  .nav-cta { margin: 1rem clamp(1.25rem, 5vw, 3rem) 1.6rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .flow-arrow { display: none; }
  .scroll-hint { display: none; }
  .section-label::after { max-width: 80px; }
  .footer-bottom { flex-direction: column; }
  body { font-size: 15px; }
  .section-title { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  .hero-title { font-size: clamp(2.1rem, 11vw, 3rem); }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-line,
  html.js-reveal .reveal, html.js-reveal .reveal-line { opacity: 1 !important; transform: none !important; }
  .scroll-hint-line { animation: none; }
  .cs-path { stroke-dashoffset: 0; }
  .cs-dot { opacity: 1; transform: scale(1); }
  .cs-labels text { opacity: 1; }
}
