/* ==========================================================================
   CodaMax | www.codamaxai.com
   Warm paper + ink palette, signal-orange accent, bracket (bounding-box) motif.
   ========================================================================== */

:root {
  --paper: #F4F1EA;
  --paper-2: #ECE7DC;
  --paper-3: #E2DCCD;
  --ink: #101318;
  --ink-2: #2A2F38;
  --text: #3B4049;
  --muted: #676B72;
  --line: rgba(16, 19, 24, 0.12);
  --line-strong: rgba(16, 19, 24, 0.24);
  --accent: #FF5B23;        /* decorative / large text */
  --accent-ink: #B5380C;    /* small text on light backgrounds (AA) */
  --on-dark: #F4F1EA;
  --on-dark-muted: #A9ADB4;

  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { --pad: 24px; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.display-md { font-size: clamp(2.4rem, 5vw, 4rem); }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* Highlighted word framed by bounding-box corners */
.hl {
  position: relative;
  display: inline-block;
  padding: 0 0.12em;
  color: var(--accent-ink);
}
.hl::before, .hl::after {
  content: "";
  position: absolute;
  width: 0.28em; height: 0.28em;
  border: 0.06em solid var(--accent);
}
.hl::before { left: -0.04em; top: 0.08em; border-right: 0; border-bottom: 0; }
.hl::after  { right: -0.04em; bottom: 0.02em; border-left: 0; border-top: 0; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text); max-width: 34em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #ff6f3d; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { 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: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 0.96rem; color: var(--text);
  position: relative; padding: 4px 0;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--ink); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-copy .display { margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 36px; }

.modalities { display: flex; flex-wrap: wrap; gap: 8px; }
.modalities li {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink);
  padding: 6px 12px; border: 1px dashed var(--line-strong); border-radius: 6px;
  background: rgba(255,255,255,0.35);
}

/* Workspace mock */
.workspace {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -30px rgba(16,19,24,.35), 12px 12px 0 var(--ink);
  overflow: hidden;
}
.ws-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted);
}
.ws-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--ink);
}
.ws-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }

.ws-scene { width: 100%; height: auto; aspect-ratio: 560 / 330; }

.anno { --d: 0s; animation: anno-fade 10s var(--d) infinite both; }
.anno-2 { --d: .9s; }
.anno-3 { --d: 1.8s; }
.anno-4 { --d: 2.7s; }
.anno .box {
  fill: rgba(255, 91, 35, 0.10);
  stroke: var(--accent); stroke-width: 2.5;
  stroke-dasharray: 640; stroke-dashoffset: 640;
  animation: draw 10s var(--d) infinite both;
}
.anno .poly { fill: rgba(255, 91, 35, 0.16); stroke-dasharray: 6 0; }
.anno .tag { animation: tag-in 10s var(--d) infinite both; }
.anno .tag rect { fill: var(--accent); }
.anno .tag text { font-family: var(--font-mono); font-size: 12px; font-weight: 500; fill: var(--ink); }

@keyframes draw {
  0% { stroke-dashoffset: 640; }
  12%, 100% { stroke-dashoffset: 0; }
}
@keyframes tag-in {
  0%, 10% { opacity: 0; }
  14%, 100% { opacity: 1; }
}
@keyframes anno-fade {
  0%, 82% { opacity: 1; }
  90%, 100% { opacity: 0; }
}
@keyframes blink { 50% { opacity: .25; } }

.ws-panels { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ws-panel { padding: 14px 16px 16px; }
.ws-panel + .ws-panel { border-left: 1px solid var(--line); }
.ws-label { display: flex; justify-content: space-between; color: var(--ink); margin-bottom: 10px; }
.ws-val { color: var(--accent-ink); }
.ws-meta { color: var(--muted); font-size: 0.66rem; margin-top: 10px; }

.progress { height: 8px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: inherit;
  transform-origin: left; animation: fill 10s infinite var(--ease); }
@keyframes fill { 0% { transform: scaleX(0.05); } 80%, 100% { transform: scaleX(1); } }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.bars span { flex: 1; height: 40%; background: var(--ink); border-radius: 3px 3px 0 0;
  animation: bar 2.4s infinite alternate ease-in-out; }
.bars span:nth-child(1) { height: 55%; }
.bars span:nth-child(2) { height: 80%; animation-delay: -.4s; }
.bars span:nth-child(3) { height: 45%; animation-delay: -1.1s; background: var(--accent); }
.bars span:nth-child(4) { height: 95%; animation-delay: -.7s; }
.bars span:nth-child(5) { height: 60%; animation-delay: -1.6s; }
.bars span:nth-child(6) { height: 75%; animation-delay: -.2s; background: var(--accent); }
.bars span:nth-child(7) { height: 35%; animation-delay: -1.3s; }
.bars span:nth-child(8) { height: 85%; animation-delay: -.9s; }
@keyframes bar { 0% { height: 25%; } 100% { height: 100%; } }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink); color: var(--on-dark);
  overflow: hidden; border-block: 1px solid var(--ink);
  transform: rotate(-1deg); margin: 0 -2%; width: 104%;
}
.ticker-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.ticker ul { display: flex; flex-shrink: 0; }
.ticker li {
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em;
  padding: 16px 0; white-space: nowrap; display: flex; align-items: center;
}
.ticker li::after { content: ""; width: 9px; height: 9px; background: var(--accent); margin: 0 28px; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .h2 { margin-bottom: 18px; }
.section-intro { font-size: 1.1rem; color: var(--text); max-width: 40em; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 30px 28px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line-strong);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.service-num { color: var(--muted); }
.service-icon { width: 48px; height: 48px; color: var(--ink); }
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.service > p { margin-bottom: 24px; }
.ticks { display: grid; gap: 10px; margin-bottom: 32px; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 26px; font-size: 0.96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px;
  border: 2px solid var(--accent); border-radius: 3px;
}
.ticks li::after {
  content: ""; position: absolute; left: 4px; top: calc(0.42em + 4px); width: 4px; height: 4px; background: var(--accent);
}
.service-foot {
  align-self: flex-start; padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--line-strong); text-transform: uppercase; color: var(--ink);
}

.service-dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark-muted); }
.service-dark h3, .service-dark .service-icon { color: var(--on-dark); }
.service-dark .service-num { color: var(--on-dark-muted); }
.service-dark .ticks li { color: var(--on-dark); }
.service-dark .service-foot { color: var(--on-dark); border-color: rgba(244,241,234,.3); }
.service-dark:hover { box-shadow: 8px 8px 0 var(--accent); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 28px 0 0; }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px;
  background: repeating-linear-gradient(to right, var(--ink) 0 8px, transparent 8px 14px);
}
.step:last-child::before { right: calc(100% - 56px); }
.step-num {
  position: relative; z-index: 1; display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 28px;
  background: var(--paper); border: 2px solid var(--ink);
  font-family: var(--font-mono); font-weight: 500; color: var(--ink);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.step:hover .step-num { background: var(--accent); transform: rotate(-6deg); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { font-size: 0.98rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.why-copy .h2 { margin-bottom: 18px; }
.points { display: grid; gap: 4px; margin-top: 40px; border-top: 1px solid var(--line-strong); }
.point { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.point-mark { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 7px; background: var(--accent); border-radius: 3px; transform: rotate(45deg); }
.point h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; letter-spacing: -0.01em; }

.hq-card {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: 28px; min-height: 460px;
  display: flex; flex-direction: column;
}
.hq-top { display: flex; justify-content: space-between; color: var(--on-dark-muted); position: relative; z-index: 1; }
.hq-place { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; letter-spacing: -0.03em; margin-top: 12px; position: relative; z-index: 1; }
.hq-clock { position: relative; z-index: 1; margin-top: 6px; }
.hq-label { color: var(--on-dark-muted); margin-right: 10px; }
.hq-time { font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent); }
.hq-orbit { position: absolute; right: -150px; top: 50%; width: 400px; height: 400px; transform: translateY(-45%); }
.hq-orbit circle { fill: none; stroke: rgba(244,241,234,.16); stroke-width: 1; }
.hq-orbit .hq-core { fill: var(--accent); stroke: none; }
.hq-ring { transform-origin: 150px 150px; animation: spin 18s linear infinite; }
.hq-ring circle { fill: var(--on-dark); stroke: none; }
.hq-ring-2 { animation-duration: 26s; }
.hq-ring-2 circle { fill: var(--accent); }
.hq-ring-3 { animation-duration: 36s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hq-note { margin-top: auto; max-width: 15em; color: var(--on-dark-muted); position: relative; z-index: 1; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 8px; font-family: var(--font-mono); font-size: 1.1rem;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); }
.faq details p { padding: 0 48px 24px 0; }

/* Contact */
.contact { background: var(--ink); color: var(--on-dark-muted); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(244,241,234,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,241,234,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 70% at 20% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 50%, #000 20%, transparent 70%);
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact .display { color: var(--on-dark); margin-bottom: 24px; }
.contact .hl { color: var(--accent); }
.eyebrow-light { color: var(--on-dark-muted); }
.lead-light { color: var(--on-dark-muted); }

.contact-form {
  position: relative; overflow: hidden;
  background: var(--paper); color: var(--text);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: 12px 12px 0 var(--accent);
}
.form-body { display: grid; gap: 18px; transition: opacity .4s var(--ease), transform .4s var(--ease), filter .4s; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,91,35,.35); }
.field input[aria-invalid="true"] { border-color: var(--accent-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 500;
  border: 1.5px solid var(--line-strong); color: var(--ink); transition: background-color .2s, border-color .2s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-status { min-height: 1.4em; font-size: 0.92rem; color: var(--ink); }
.form-status.error { color: var(--accent-ink); }

/* Simulated send: button state */
.btn-send { position: relative; overflow: hidden; }
.btn-send:hover .btn-label { transform: none; }
.btn-send .btn-progress, .btn-send:hover .btn-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.contact-form.is-sending .form-body > :not(.btn-send):not(.form-status) { opacity: .45; filter: grayscale(1); pointer-events: none; }
.contact-form.is-sending .btn-send { background: var(--ink); color: var(--paper); cursor: progress; transform: none; }
.contact-form.is-sending .btn-arrow { animation: fly .8s ease-in infinite; }
.contact-form.is-sending .btn-progress { animation: send-progress 1.8s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes fly {
  0% { transform: translateX(0); opacity: 1; }
  60% { transform: translateX(22px); opacity: 0; }
  61% { transform: translateX(-14px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes send-progress { 0% { transform: scaleX(0); } 55% { transform: scaleX(.72); } 100% { transform: scaleX(1); } }

/* Simulated send: success panel */
.contact-form.is-sent .form-body { opacity: 0; transform: translateY(-12px); filter: blur(2px); }
.form-success {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 32px; text-align: center; background: var(--paper); border-radius: inherit;
  animation: success-in .5s var(--ease) both;
}
.form-success[hidden] { display: none; }
.form-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.02em; outline: none; }
.form-success p { max-width: 24em; }
.form-success .btn { margin-top: 8px; }
.success-mark { width: 104px; height: 104px; margin-bottom: 6px; overflow: visible; }
.sm-corner { fill: none; stroke: var(--ink); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw-in .6s .15s var(--ease) forwards; }
.sm-check { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw-in .45s .7s var(--ease) forwards; }
.fs-item { opacity: 0; animation: rise .5s var(--ease) forwards; }
.form-success h3.fs-item { animation-delay: .95s; }
.form-success p.fs-item { animation-delay: 1.05s; }
.form-success .btn.fs-item { animation-delay: 1.15s; }
@keyframes success-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Footer */
.site-footer { background: var(--paper); padding: 72px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; max-width: 22em; color: var(--muted); }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.footer-col a { text-decoration: none; color: var(--ink); font-weight: 500; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  position: relative;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; color: var(--muted); font-size: 0.92rem;
}
.footer-bottom::before {
  content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 640px; }
  .services { grid-template-columns: 1fr; max-width: 640px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(2)::before { right: calc(100% - 56px); }
  .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hq-card { min-height: 380px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .hero { padding: 40px 0 64px; }
  .container { --pad: 20px; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line-strong);
    padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 16px; padding: 14px; }

  .workspace { box-shadow: 0 20px 40px -24px rgba(16,19,24,.35), 6px 6px 0 var(--ink); }
  .ws-panels { grid-template-columns: 1fr; }
  .ws-panel + .ws-panel { border-left: 0; border-top: 1px solid var(--line); }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 36px 80px; min-height: 56px; }
  .step::before { left: 27px; right: auto; top: 56px; bottom: 0; width: 2px; height: auto;
    background: repeating-linear-gradient(to bottom, var(--ink) 0 8px, transparent 8px 14px); }
  .step:nth-child(2)::before { right: auto; }
  .step:last-child::before { display: none; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step h3 { padding-top: 14px; }

  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; box-shadow: 6px 6px 0 var(--accent); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .faq details p { padding-right: 0; }
  .hq-place { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anno, .anno .box, .anno .tag { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .form-success, .form-success * { animation-delay: 0s !important; }
}
