/* ClawOps — ultra-premium static site
   Direction: warm ink + molten amber, editorial Fraunces vs IBM Plex Mono instrumentation.
   Signature: the "response ledger" — the moment a lead is answered in seconds, after hours. */

/* ─────────────── reset ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ─────────────── tokens ─────────────── */
:root {
  --ink:        #0B0A08;
  --ink-2:      #100E0A;
  --ink-3:      #17140E;
  --ink-4:      #1E1A12;
  --line:       #2A251C;
  --line-2:     #3A3326;
  --bone:       #ECE4D4;
  --bone-dim:   #A79E8B;
  --bone-faint: #6E675A;
  --amber:      #E9A44C;
  --amber-bright:#FFC178;
  --amber-deep: #B87A2E;
  --rust:       #B0503A;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ─────────────── base ─────────────── */
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* warm ember atmosphere + faint film grain, fixed */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 82% -10%, rgba(233,164,76,0.10), transparent 55%),
    radial-gradient(90% 60% at -10% 8%, rgba(176,80,58,0.06), transparent 50%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.wrap-tight { max-width: 880px; }

/* ─────────────── type scale ─────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--amber-deep);
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 340; letter-spacing: -0.02em; color: #FAF5EA; }
.display {
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 0.98;
  font-weight: 320;
  letter-spacing: -0.032em;
}
.display em { font-style: italic; color: var(--amber); font-weight: 340; }
h2.head {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.028em;
}
h2.head em { font-style: italic; color: var(--amber); }
h3.sub {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.12;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--bone-dim);
  font-weight: 400;
  max-width: 46ch;
}
.mono-note {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--bone-faint);
}

/* ─────────────── nav ─────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,10,8,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  letter-spacing: 0.02em; text-decoration: none; color: var(--bone);
  display: inline-flex; align-items: center; gap: 10px;
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 0 rgba(233,164,76,0.6);
  animation: beat 2.6s var(--ease) infinite;
}
.brand b { color: var(--amber); font-weight: 600; }
@keyframes beat {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233,164,76,0.55); }
  50% { box-shadow: 0 0 0 6px rgba(233,164,76,0); }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em;
  text-decoration: none; color: var(--bone-dim); transition: color .2s;
}
.nav-links a:hover { color: var(--bone); }
.nav-links .navlink { display: none; }
@media (min-width: 860px) { .nav-links .navlink { display: inline; } }

/* ─────────────── buttons ─────────────── */
.btn {
  --b: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  padding: 15px 26px; border-radius: 2px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--b); transition: transform .18s var(--ease), background .2s, color .2s, box-shadow .3s;
}
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-solid { background: var(--amber); color: #1A1206; box-shadow: 0 14px 40px -14px rgba(233,164,76,0.6); }
.btn-solid:hover { background: var(--amber-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ─────────────── hero ─────────────── */
.hero { padding: 148px 0 96px; position: relative; }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.hero h1 { margin: 26px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.hero-fine { font-family: var(--mono); font-size: 12px; color: var(--bone-faint); letter-spacing: 0.03em; }

/* ─── the response ledger (signature) ─── */
.ledger {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.03);
}
.ledger-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-faint);
}
.ledger-live { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); }
.ledger-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: beat 2.6s var(--ease) infinite; }
.ledger-body { padding: 8px 0; }
.lrow {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: baseline;
  padding: 12px 18px; font-family: var(--mono); font-size: 13px;
  opacity: 0; transform: translateY(6px);
}
.lrow.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.lrow .t { color: var(--bone-faint); font-size: 12px; }
.lrow .msg { color: var(--bone); letter-spacing: -0.01em; }
.lrow .msg .who { color: var(--bone-faint); }
.lrow.inbound .tag,
.lrow.reply .tag {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; white-space: nowrap;
}
.lrow.inbound .tag { color: var(--rust); border: 1px solid rgba(176,80,58,0.4); }
.lrow.reply .tag { color: var(--amber); border: 1px solid rgba(233,164,76,0.4); }
.lrow.reply .msg { color: var(--amber-bright); }
.ledger-foot {
  border-top: 1px solid var(--line); padding: 14px 18px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--bone-faint); letter-spacing: 0.04em;
}
.ledger-foot .delta { color: var(--amber); font-size: 15px; }
.ledger-foot .delta b { font-weight: 600; }

/* ─────────────── section rhythm ─────────────── */
.section { padding: clamp(72px, 11vw, 128px) 0; position: relative; }
.section.bordered { border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head h2 { margin-top: 22px; }
.section-head .lede { margin-top: 22px; max-width: 54ch; }

/* ── the miss (pain) ── */
.miss-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .miss-grid { grid-template-columns: repeat(3, 1fr); } }
.miss {
  border: 1px solid var(--line); border-radius: 4px; padding: 30px 26px 32px;
  background: var(--ink-2); position: relative; overflow: hidden;
}
.miss::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--rust); opacity: .55;
}
.miss .clock { font-family: var(--mono); font-size: 12px; color: var(--rust); letter-spacing: 0.06em; }
.miss h3 { font-size: 21px; margin: 16px 0 10px; line-height: 1.15; }
.miss p { color: var(--bone-dim); font-size: 15.5px; line-height: 1.55; }

/* ── process (audit → install → operate) — a real sequence ── */
.steps { display: grid; gap: 0; grid-template-columns: 1fr; }
.step {
  display: grid; gap: 8px 34px; grid-template-columns: 1fr;
  padding: 40px 0; border-top: 1px solid var(--line);
}
@media (min-width: 800px) { .step { grid-template-columns: 220px 1fr; align-items: start; } }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .idx {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
  display: flex; align-items: baseline; gap: 14px;
}
.step .idx .n { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--bone-faint); font-weight: 340; }
.step h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.step p { color: var(--bone-dim); max-width: 58ch; font-size: 16px; }
.step .kv { margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--bone-faint); letter-spacing: 0.02em; }
.step .kv span { color: var(--amber-deep); }

/* ── capabilities / what you get ── */
.cap-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
.cap-grid.trio { grid-template-columns: 1fr; }
@media (min-width: 820px) { .cap-grid.trio { grid-template-columns: repeat(3, 1fr); } }
.cap { background: var(--ink-2); padding: 32px 30px; transition: background .3s var(--ease); }
.cap:hover { background: var(--ink-3); }
.cap .n { font-family: var(--mono); font-size: 12px; color: var(--amber-deep); letter-spacing: 0.1em; }
.cap h3 { font-size: 20px; margin: 14px 0 9px; line-height: 1.2; }
.cap p { color: var(--bone-dim); font-size: 15px; line-height: 1.55; }

/* ── operator credibility ── */
.operator { display: grid; gap: clamp(32px, 5vw, 60px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .operator { grid-template-columns: 0.9fr 1.1fr; } }
.operator .card {
  border: 1px solid var(--line); border-radius: 4px; padding: 38px 34px; background: var(--ink-2);
}
.operator .quote { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 30px); line-height: 1.25; color: #FAF5EA; font-weight: 340; letter-spacing: -0.02em; }
.operator .quote em { color: var(--amber); font-style: italic; }
.operator .sig { margin-top: 24px; font-family: var(--mono); font-size: 12.5px; color: var(--bone-dim); letter-spacing: 0.03em; }
.operator .sig b { color: var(--bone); font-weight: 600; }
.operator ul { list-style: none; display: grid; gap: 14px; }
.operator li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; font-size: 16px; color: var(--bone-dim); }
.operator li .m { color: var(--amber); font-family: var(--mono); font-size: 13px; line-height: 1.5; }

/* ── FAQ ── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative;
  font-family: var(--serif); font-size: clamp(19px, 2.2vw, 25px); color: #FAF5EA; font-weight: 340; letter-spacing: -0.015em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 24px; font-family: var(--mono);
  font-size: 24px; color: var(--amber); transition: transform .25s var(--ease); font-weight: 400;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--amber); }
.faq .a { padding: 0 40px 28px 0; color: var(--bone-dim); font-size: 16px; line-height: 1.6; max-width: 66ch; }

/* ── CTA band ── */
.cta-band { text-align: center; }
.cta-band h2 { margin: 0 auto 22px; max-width: 20ch; }
.cta-band .lede { margin: 0 auto 34px; }

/* ─────────────── form ─────────────── */
.form-wrap {
  border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2);
  padding: clamp(30px, 4vw, 48px); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
}
.form-wrap .eyebrow { margin-bottom: 18px; }
.form-wrap h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.form-wrap .lede { margin-bottom: 32px; max-width: 52ch; }
form.intake { display: grid; gap: 16px; }
.frow { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .frow.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-faint); }
.field .req { color: var(--amber); }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 13px 14px; font-size: 15px; font-family: var(--sans); color: var(--bone);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A79E8B' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--bone-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(233,164,76,0.14);
}
.submit {
  margin-top: 6px; width: 100%; justify-content: center; border: none;
  background: var(--amber); color: #1A1206; font-family: var(--mono); font-weight: 600;
  font-size: 13.5px; letter-spacing: 0.03em; padding: 17px; border-radius: 3px; cursor: pointer;
  transition: background .2s, transform .18s var(--ease); display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 14px 40px -16px rgba(233,164,76,0.7);
}
.submit:hover { background: var(--amber-bright); transform: translateY(-1px); }
.submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.form-note { font-family: var(--mono); font-size: 11.5px; color: var(--bone-faint); text-align: center; letter-spacing: 0.02em; margin-top: 4px; }
.form-msg { padding: 13px 15px; border-radius: 3px; font-size: 14px; display: none; }
.form-msg.err { display: block; background: rgba(176,80,58,0.12); border: 1px solid rgba(176,80,58,0.4); color: #E8A491; }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form-ok .ic { font-family: var(--serif); font-style: italic; font-size: 52px; color: var(--amber); line-height: 1; }
.form-ok h3 { font-size: 28px; margin: 14px 0 8px; }
.form-ok p { color: var(--bone-dim); }

/* ─────────────── footer ─────────────── */
.footer { border-top: 1px solid var(--line); padding: 56px 0 44px; position: relative; z-index: 1; }
.footer-in { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand { margin-bottom: 16px; }
.footer p.desc { color: var(--bone-faint); font-size: 14.5px; max-width: 34ch; line-height: 1.55; }
.footer .col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 16px; font-weight: 500; }
.footer .col a { display: block; text-decoration: none; color: var(--bone-dim); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.footer .col a:hover { color: var(--amber); }
.footer-base {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; color: var(--bone-faint); letter-spacing: 0.03em;
}

/* ─────────────── reveal + motion ─────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

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