/* Heronify — dark espresso, warm cream text, one mint accent.
   Rounded, bento-style layout. Tokens first, then layout, then components. */

:root {
  --bg: #17120f;
  --bg-2: #1f1814;
  --card: #261e19;
  --line: #3a2f28;
  --text: #f3ece4;
  --soft: #b9aca0;
  --mint: #4fe3b0;
  --mint-deep: #2fb487;
  --on-mint: #0f1a15;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;
  --s9: 104px;

  --r: 22px;
  --r-sm: 12px;
  --pill: 999px;

  --font-head: "Epilogue", "Segoe UI", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0; letter-spacing: -.03em; font-weight: 800; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: var(--s4); top: -64px; background: var(--mint); color: var(--on-mint); padding: var(--s3) var(--s4); border-radius: var(--r-sm); z-index: 30; font-weight: 700; }
.skip:focus { top: var(--s4); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header (floating pill) ---------- */
.topbar { position: sticky; top: 12px; z-index: 20; padding: 0 var(--gutter); }
.pillbar {
  max-width: var(--wrap); margin: 12px auto 0; display: flex; align-items: center; gap: var(--s5);
  background: rgba(31, 24, 20, .88); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 10px 8px 20px;
}
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; font: 800 20px var(--font-head); letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); }
.brand-mark svg { width: 18px; height: 18px; display: block; }
nav { margin-left: auto; display: flex; align-items: center; gap: var(--s5); font-size: 15px; font-weight: 500; }
nav a { text-decoration: none; color: var(--soft); }
nav a:hover { color: var(--mint); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: 700 16px var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--mint); border-radius: var(--pill); padding: 13px 26px;
  background: var(--mint); color: var(--on-mint);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); background: #7aedc7; box-shadow: 0 10px 28px rgba(79, 227, 176, .22); }
.button-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button-ghost:hover { background: var(--card); border-color: var(--mint); box-shadow: none; }
.button-small { padding: 9px 20px; font-size: 14px; }
.button:disabled { cursor: wait; opacity: .7; transform: none; box-shadow: none; }

/* ---------- hero ---------- */
.hero { padding: var(--s9) 0 var(--s8); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s8); align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.hero h1 { margin-top: var(--s4); font-size: clamp(40px, 5vw, 64px); }
.hero h1 em { font-style: normal; color: var(--mint); }
.lede { margin-top: var(--s5); max-width: 520px; font-size: 19px; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s6) 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--pill); padding: 7px 16px; font-size: 14px; font-weight: 600; color: var(--soft); }
.hero-art { background: var(--bg-2); border: 1px solid var(--line); border-radius: 32px; overflow: hidden; aspect-ratio: 1 / 1; }
.hero-art svg { display: block; width: 100%; height: 100%; }

/* ---------- sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding: var(--s9) 0 0; }
.section-head { max-width: 680px; margin-bottom: var(--s7); }
.section-head h2 { font-size: clamp(30px, 3.8vw, 50px); margin-top: var(--s3); }
.section-head p { margin-top: var(--s4); color: var(--soft); font-size: 18px; }

.faq { display: grid; gap: var(--s3); }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5) var(--s6); }
details[open] { border-color: var(--mint-deep); }
summary { cursor: pointer; font: 700 19px var(--font-head); letter-spacing: -.02em; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--mint); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: var(--s3); color: var(--soft); max-width: 720px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s6); }
.tile .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--on-mint); font: 800 15px var(--font-head); margin-bottom: var(--s4); }
.tile h3 { font-size: 22px; margin-bottom: var(--s2); }
.tile p { color: var(--soft); font-size: 16px; }

/* ---------- case studies (ledger rows) ---------- */
.ledger { display: grid; gap: var(--s4); }
.row { display: grid; grid-template-columns: 260px 1fr; gap: var(--s6); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s6); }
.metric .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.metric .v { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); font: 800 clamp(30px, 3.4vw, 40px) var(--font-head); letter-spacing: -.03em; }
.metric .v i { font-style: normal; color: var(--soft); font-size: 22px; font-weight: 500; }
.metric .v b:last-child { color: var(--mint); }
.meta { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: var(--s2); }
.row h3 { font-size: clamp(21px, 2.2vw, 26px); }
.row p { margin-top: var(--s3); color: var(--soft); font-size: 16px; }
.row dl { margin: var(--s4) 0 0; display: grid; gap: var(--s2); }
.row dl div { display: grid; grid-template-columns: 90px 1fr; gap: var(--s3); font-size: 15px; }
.row dt { font-weight: 700; }
.row dd { margin: 0; color: var(--soft); }

/* ---------- reviews (bento) ---------- */
.bento-v { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.vcard.big { grid-column: 1 / -1; flex-direction: row; }
.vbox { position: relative; background: #0c0907; }
.vbox video { display: block; width: 100%; height: 240px; object-fit: cover; background: #0c0907; }
.vcard.big .vbox { flex: 1.1; min-height: 340px; }
.vcard.big .vbox video { position: absolute; inset: 0; height: 100%; object-position: 50% 15%; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; pointer-events: none; background: var(--mint); color: var(--on-mint); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--pill); }
.vbody { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.vcard.big .vbody { flex: .9; justify-content: center; padding: var(--s6); }
.logo { height: 38px; width: auto; max-width: 140px; object-fit: contain; align-self: flex-start; border-radius: 6px; }
blockquote { margin: 0; font: 600 18px/1.4 var(--font-head); letter-spacing: -.01em; }
.vcard.big blockquote { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.3; }
.who { display: flex; flex-direction: column; font-size: 14px; color: var(--soft); margin-top: auto; }
.who strong { color: var(--text); font-size: 16px; }
.note { border-left: 3px solid var(--mint); padding-left: var(--s3); font-size: 14px; color: var(--soft); }

/* ---------- contact ---------- */
.contact { margin-top: var(--s9); padding: var(--s9) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; }
.contact h2 { margin-top: var(--s3); font-size: clamp(32px, 4.2vw, 54px); }
.contact-copy p { margin-top: var(--s4); color: var(--soft); max-width: 440px; }
form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s6); }
.field { margin-bottom: var(--s4); }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s2); }
.field label span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--soft); }
.field input, .field textarea { width: 100%; font: 17px var(--font-body); color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint); }
.form-status { min-height: 24px; margin: 0 0 var(--s3); font-size: 14px; font-weight: 600; color: #ff9d8a; }
.form-confirmation { background: var(--mint); color: var(--on-mint); border-radius: var(--r-sm); padding: var(--s5); font: 800 22px/1.25 var(--font-head); }
form .button { width: 100%; }

/* ---------- footer and legal ---------- */
.footer { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
.footer p, .footer a { color: var(--soft); font-size: 15px; }
.footer .links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.legal { padding: var(--s8) 0; max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 52px); margin: var(--s3) 0 var(--s4); }
.legal h2 { font-size: 24px; margin: var(--s6) 0 var(--s2); }
.legal p { color: var(--soft); margin-bottom: var(--s3); }

/* ---------- breakpoints ---------- */
@media (max-width: 900px) {
  .hero { padding: var(--s8) 0 var(--s7); }
  .hero .wrap, .contact .wrap, .row { grid-template-columns: 1fr; }
  .hero .wrap { gap: var(--s7); }
  .hero-art { max-width: 440px; }
  .bento { grid-template-columns: 1fr; }
  .section { padding-top: var(--s8); }
  .contact { padding: var(--s8) 0; margin-top: var(--s8); }
  .row { gap: var(--s4); }
  .vcard.big { flex-direction: column; }
  .vcard.big .vbox { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  nav a:not(.button) { display: none; }
  .pillbar { padding-left: 16px; }
  .bento-v { grid-template-columns: 1fr; }
  .row dl div { grid-template-columns: 1fr; gap: 2px; }
  .hero-actions .button { flex: 1 1 100%; }
  details { padding: var(--s4) var(--s5); }
  form { padding: var(--s5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
