/* ============================================================
   Reset Root Systems — design system
   Confident grotesque · warm off-white · deep forest accent
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --bg:        #F4F0E8;
  --bg-2:      #ECE7DC;
  --panel:     #FBF9F3;
  --ink:       #1B1915;
  --ink-soft:  #423D34;
  --muted:     #6B6C66;
  --line:      rgba(27,25,21,.13);
  --line-2:    rgba(27,25,21,.26);

  --accent:      #2E4034;
  --accent-2:    #3B5446;
  --accent-ink:  #F4F0E8;
  --accent-soft: #E3E8E0;

  --maxw: 1180px;
  --radius: 11px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* accent variants (Tweaks) */
body[data-accent="slate"]      { --accent:#3A4651; --accent-2:#495764; --accent-soft:#E1E5EA; }
body[data-accent="terracotta"] { --accent:#A85C42; --accent-2:#BB6C50; --accent-soft:#F1E2DA; }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---- Grain texture overlay ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-texture="clean"]::after { display: none; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(72px, 10vw, 130px); }
.section--alt { background: var(--bg-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
h2.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 16ch; margin-top: 18px; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; line-height: 1.5; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(27,25,21,.04); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav[data-scrolled="1"] { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom:-5px; height:1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-burger span { width: 16px; height: 1.6px; background: var(--ink); transition: .2s; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 16px 28px 22px;
  }
  .nav-links.open a { padding: 10px 0; font-size: 18px; }
  .nav-burger { display: flex; }
  .nav-cta .btn { display: none; }
}

/* =========================================================
   HERO (shared frame + 3 directions)
   ========================================================= */
.hero { position: relative; }
.hero-dir { display: none; }
body[data-hero="a"] .hero-dir--a,
body[data-hero="b"] .hero-dir--b,
body[data-hero="c"] .hero-dir--c { display: block; }

/* meta spec list (shared look) */
.spec { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--muted); }
.spec dt { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); opacity: .8; }
.spec dd { color: var(--ink); margin-top: 2px; }

/* ---------- Direction A — Plainspoken ---------- */
.hero-dir--a { padding-block: clamp(56px, 9vw, 110px); }
.hero-a-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 56px; align-items: end; }
.hero-a h1 { font-size: clamp(2.7rem, 7.6vw, 6.2rem); font-weight: 800; letter-spacing: -.035em; }
.hero-a h1 em { font-style: normal; color: var(--accent); }
.hero-a .lead { margin-top: 28px; }
.hero-a .hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-a-side { border-left: 1px solid var(--line); padding-left: 26px; display: grid; gap: 22px; padding-bottom: 8px; }
.hero-a-side dl { display: grid; gap: 3px; }

/* ---------- Direction B — Spec sheet + mockup ---------- */
.hero-dir--b { padding-block: clamp(48px, 7vw, 88px); }
.hero-b-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-b-grid h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; }
.hero-b-grid h1 em { font-style: normal; color: var(--accent); }
.hero-b-grid .lead { margin-top: 24px; }
.hero-b-grid .hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-b-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-b-facts > div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-b-facts > div:nth-child(2n) { border-right: 0; }
.hero-b-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.hero-b-facts .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-b-facts .v { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-top: 5px; letter-spacing: -.02em; }

/* browser mockup */
.mock {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(27,25,21,.04), 0 26px 60px -28px rgba(27,25,21,.4);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock-url { margin-left: 12px; flex: 1; height: 22px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.mock-body { aspect-ratio: 4 / 3; }

/* ---------- Direction C — Bold block ---------- */
.hero-dir--c { background: var(--accent); color: var(--accent-ink); padding-block: clamp(70px, 11vw, 150px); }
.hero-c { max-width: 980px; }
.hero-dir--c .eyebrow { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.hero-dir--c .eyebrow::before { background: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.hero-c h1 { color: var(--accent-ink); font-size: clamp(2.8rem, 8.2vw, 7rem); font-weight: 800; letter-spacing: -.035em; margin-top: 20px; }
.hero-c h1 em { font-style: normal; color: color-mix(in srgb, var(--accent-ink) 62%, var(--accent)); }
.hero-c .lead { color: color-mix(in srgb, var(--accent-ink) 85%, transparent); margin-top: 30px; font-size: clamp(1.1rem, 1.9vw, 1.4rem); max-width: 50ch; }
.hero-c .hero-cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-dir--c .btn-primary { background: var(--accent-ink); color: var(--accent); }
.hero-dir--c .btn-primary:hover { background: #fff; }
.hero-dir--c .btn-ghost { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.hero-dir--c .btn-ghost:hover { border-color: var(--accent-ink); background: rgba(255,255,255,.08); }
.hero-c-foot { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 26%, transparent); }
.hero-c-foot .v { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.hero-c-foot .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; margin-top: 3px; }

@media (max-width: 820px) {
  .hero-a-grid, .hero-b-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-a-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 26px; grid-template-columns: 1fr 1fr; display: grid; }
  .hero-b-grid { direction: ltr; }
  .mock { order: -1; }
}

/* =========================================================
   WHAT WE DO
   ========================================================= */
.do-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; margin-top: 8px; }
.do-grid .lead { font-size: clamp(1.25rem, 2.3vw, 1.7rem); color: var(--ink); line-height: 1.4; max-width: none; }
.do-grid .lead strong { color: var(--accent); font-weight: 600; }
.do-detail p { color: var(--ink-soft); margin-bottom: 18px; }
.do-detail p:last-child { margin-bottom: 0; }
.do-points { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.do-points li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; }
.do-points .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; margin-top: 1px; }
@media (max-width: 760px) { .do-grid { grid-template-columns: 1fr; } }

/* =========================================================
   WHY US
   ========================================================= */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 50px; }
.why-card { background: var(--bg); padding: 40px 38px; transition: background .2s var(--ease); }
.section--alt .why-card { background: var(--bg-2); }
.why-card:hover { background: var(--panel); }
.why-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .08em; }
.why-card h3 { font-size: 1.45rem; margin-top: 18px; letter-spacing: -.02em; }
.why-card p { color: var(--ink-soft); margin-top: 12px; font-size: 15.5px; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.work-card { display: block; }
.work-ph {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(27,25,21,.045) 11px 12px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}
.work-card:hover .work-ph { border-color: var(--line-2); transform: translateY(-3px); }
.work-ph span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 6px;
}
.work-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 15px; gap: 12px; }
.work-meta h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.work-meta .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .work-grid { grid-template-columns: 1fr; } }

/* =========================================================
   PRICING
   ========================================================= */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; margin-top: 8px; }
.price-copy h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 18px; }
.price-copy p { color: var(--ink-soft); margin-top: 20px; max-width: 44ch; }
.price-copy .reassure { display: grid; gap: 12px; margin-top: 28px; list-style: none; }
.price-copy .reassure li { display: flex; gap: 11px; align-items: center; font-weight: 500; font-size: 15.5px; }
.price-copy .reassure .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 11px; }

.price-card {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 42px 40px;
  box-shadow: 0 1px 1px rgba(27,25,21,.04), 0 30px 60px -34px rgba(27,25,21,.4);
  position: relative;
}
.price-card .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.price-amounts { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.price-amount .num { font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; letter-spacing: -.04em; line-height: .9; }
.price-amount .unit { font-size: 14px; color: var(--muted); margin-top: 8px; }
.price-plus { font-family: var(--font-mono); color: var(--muted); padding-bottom: 14px; }
.price-incl { list-style: none; display: grid; gap: 13px; margin-top: 26px; }
.price-incl li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.price-incl .tick { flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 11px; margin-top: 2px; }
.price-card .btn { width: 100%; justify-content: center; margin-top: 32px; }
.price-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
@media (max-width: 820px) { .price-wrap { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 84px); align-items: start; margin-top: 8px; }
.contact-copy h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 18px; }
.contact-copy p { color: var(--ink-soft); margin-top: 20px; max-width: 40ch; }
.contact-direct { margin-top: 34px; display: grid; gap: 18px; }
.contact-direct a, .contact-direct .ci { display: flex; flex-direction: column; gap: 3px; }
.contact-direct .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-direct .v { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.contact-direct a:hover .v { color: var(--accent); }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px, 3vw, 38px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b5462f; }
.field .err { font-size: 12.5px; color: #b5462f; font-weight: 500; display: none; }
.field input[aria-invalid="true"] ~ .err, .field textarea[aria-invalid="true"] ~ .err { display: block; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form.done .form-fields { display: none; }
.form.done .form-success { display: block; }
.form-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 22px; font-size: 26px; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--ink-soft); margin-top: 12px; max-width: 34ch; margin-inline: auto; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 88%, transparent); padding-block: 70px 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; padding-bottom: 44px; border-bottom: 1px solid rgba(244,240,232,.13); }
.footer .brand { color: var(--bg); }
.footer-tag { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: -.02em; color: var(--bg); max-width: 18ch; line-height: 1.1; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 60%, transparent); margin-bottom: 14px; font-weight: 400; }
.footer-col a, .footer-col p { display: block; color: color-mix(in srgb, var(--bg) 82%, transparent); font-size: 15px; margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--bg); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 30px; font-size: 13px; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.footer-bottom .seo { max-width: 60ch; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   BOOKING — Cal.com inline embed
   ========================================================= */
.cal-embed { width: 100%; }
.cal-inline {
  position: relative;
  width: 100%;
  min-height: 560px; /* holds space for the loader; Cal sizes itself after */
}
.cal-inline iframe { border-radius: 16px; }
.cal-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* refined brand mark + wordmark */
.brand-mark{border-radius:8px;}
.brand-mark svg{width:64%;height:64%;display:block;}
.brand-root{color:var(--accent);}
.footer .brand-root{color:inherit;}
