/* ==========================================================================
   THE APEX CREW: Editorial edition
   Light, print-inspired. Warm paper, ink, terracotta. Serif display,
   grotesk body, mono labels. Hairlines and rules instead of gradients,
   shadows, or glass. Squared corners. Restraint.
   ========================================================================== */

:root {
  --paper: #f7f7f5;
  --paper-2: #efefec;
  --card: #fcfcfb;
  --ink: #1b1713;
  --ink-soft: #5c554b;
  --faint: #8a8174;
  --line: #e3e3de;
  --line-strong: #cfcfc8;
  --accent: #14c8c9;
  --accent-deep: #078182;
  --accent-ink: #066e6f;
  --font-d: "Fraunces", Georgia, serif;
  --font-b: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-m: "IBM Plex Mono", "Courier New", monospace;
  --radius: 2px;
  --container: 1240px;
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-d);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 480; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
em, .it { font-style: italic; font-weight: 460; }
p { margin: 0 0 1.1em; }

.container { width: min(var(--container), 90%); margin-inline: auto; }

::selection { background: var(--accent); color: var(--ink); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 20px; font-family: var(--font-m); font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* ---------- Editorial primitives ---------- */
.mono {
  font-family: var(--font-m);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.mono.accent { color: var(--accent-deep); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-strong { border-top: 2px solid var(--ink); }

/* ---------- Buttons: squared, solid ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-m); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.1; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform 0.15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-deep); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn-outline-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-light:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-outline-light:hover { border-color: var(--paper); color: var(--paper); }
.btn-sm { padding: 10px 18px; font-size: 0.74rem; }

/* Underline link (editorial) */
.u-link {
  font-family: var(--font-m); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px;
  display: inline-flex; align-items: center; gap: 8px;
}
.u-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.u-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); text-decoration: none; }
.u-link:hover svg { transform: translateX(3px); }

/* ---------- Header: paper, hairline, no glass ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(247, 247, 245, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img, .brand svg { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--font-m); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.16em; line-height: 1.15;
}
.brand-sub { display: block; font-family: var(--font-b); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 15px; color: var(--ink); font-family: var(--font-m); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--accent-deep); text-decoration: none; border-bottom-color: var(--accent-deep); }
.main-nav .nav-cta { margin-left: 14px; }
.main-nav .nav-cta a { border-bottom: 0; padding: 11px 20px; }

/* dropdown */
.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 320px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 10px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  box-shadow: 0 18px 40px -24px rgba(27, 23, 19, 0.25);
}

.has-drop::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.dropdown { z-index: 20; }

.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-bottom: 0;
  color: var(--ink); text-decoration: none;
}
.dropdown a:hover { background: var(--paper-2); color: var(--accent-deep); text-decoration: none; }
.dropdown .d-ic { width: 32px; height: 32px; flex: none; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.dropdown .d-ic svg { width: 16px; height: 16px; }
.dropdown strong { display: block; font-family: var(--font-d); font-size: 1rem; font-weight: 500; }
.dropdown small { display: block; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; font-family: var(--font-b); }
.dropdown .view-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; font-family: var(--font-m); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }

/* hamburger */
.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer; color: var(--ink); padding: 0;
}
.nav-toggle:hover { background: var(--ink); color: var(--paper); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ic-close { display: none; }
body.nav-open .nav-toggle .ic-open { display: none; }
body.nav-open .nav-toggle .ic-close { display: block; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper); padding: 26px 6%; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-nav a.m-link {
  display: block; font-family: var(--font-d); font-size: 1.5rem; font-weight: 480; color: var(--ink);
  padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.mobile-nav a.m-link:hover { color: var(--accent-deep); text-decoration: none; }
.mobile-nav .m-label { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); margin: 24px 2px 6px; }
.mobile-nav .btn { margin-top: 26px; width: 100%; }

/* ---------- Hero: editorial masthead ---------- */
.hero { padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 8vw, 96px); border-bottom: 2px solid var(--ink); }
.hero-inner { display: grid; gap: 48px; align-items: center; }
.dateline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-m); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 26px;
}
.dateline::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.hero h1 { margin-bottom: 0.3em; max-width: 15ch; }
.hero h1 .accent-italic { font-style: italic; color: var(--accent-deep); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 58ch; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; border-top: 1px solid var(--line); padding-top: 20px; max-width: 620px; }
.hero-meta span { font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* ledger panel: print-style table */
.ledger { border: 1px solid var(--ink); background: var(--card); }
.ledger-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--ink); }
.ledger-head .mono { color: var(--ink); }
.ledger-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ledger-row:last-of-type { border-bottom: 0; }
.ledger-row .l-ic { width: 38px; height: 38px; flex: none; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.ledger-row .l-ic svg { width: 18px; height: 18px; }
.ledger-row .l-txt { flex: 1; min-width: 0; }
.ledger-row strong { display: block; font-family: var(--font-d); font-size: 1.02rem; font-weight: 500; }
.ledger-row small { color: var(--ink-soft); font-size: 0.82rem; }
.l-bar { flex: 1; max-width: 130px; height: 8px; background: var(--paper-2); border: 1px solid var(--line); }
.l-bar i { display: block; height: 100%; background: var(--ink); width: 0; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.ledger-row:nth-child(3) .l-bar i, .ledger-row:nth-child(4) .l-bar i { background: var(--accent); }
.ledger-foot { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--ink); font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.ledger-foot .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Statement band (replaces marquee) ---------- */
.statement {
  border-bottom: 2px solid var(--ink); padding: clamp(40px, 6vw, 64px) 0;
  text-align: center; overflow: hidden;
}
.statement .line {
  font-family: var(--font-d); font-style: italic; font-weight: 460;
  font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.15; letter-spacing: -0.01em;
  white-space: nowrap; display: block;
}
.statement .line .t { color: var(--accent-deep); }
.statement .sub { font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); margin-top: 18px; }

/* ---------- Sections: ruled, not colored ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section-paper-2 { background: var(--paper-2); }

.sec-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-tag { display: flex; align-items: center; gap: 14px; font-family: var(--font-m); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 18px; }
.sec-tag::before { content: ""; width: 30px; height: 1px; background: var(--ink); }
.sec-head.center .sec-tag { justify-content: center; }
.sec-head.center .sec-tag::after { content: ""; width: 30px; height: 1px; background: var(--ink); }
.sec-head p { color: var(--ink-soft); font-size: 1.05rem; }
.sec-head h2 em { color: var(--accent-deep); }

/* ---------- Cards: flat, ruled ---------- */
.grid-2 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-4 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); padding: 30px; position: relative; display: flex; flex-direction: column;
  transition: background 0.15s ease;
}
.card:hover { background: #fbf6ee; }
.card-num { font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--accent-deep); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--ink-soft); font-size: 0.96rem; flex: 1; }
.card .check-list { margin-top: 14px; }
.card-link { margin-top: 20px; }

/* ---------- Check list ---------- */
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.check-list svg { width: 16px; height: 16px; flex: none; color: var(--accent); margin-top: 4px; }

/* ---------- Stats: table strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); background: var(--card); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 30px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) { .stat:nth-child(2n) { border-right: 1px solid var(--line); } .stat:nth-child(4n) { border-right: 0; } .stat:nth-child(n+5) { border-bottom: 0; } }
@media (max-width: 899px) { .stat:nth-last-child(-n+2) { border-bottom: 0; } }
.stat-num { font-family: var(--font-d); font-weight: 480; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1; color: var(--accent-deep); }
.stat-label { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Split ---------- */
.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; gap: 70px; } }
.split h2 { margin-bottom: 0.4em; }
.split p { color: var(--ink-soft); }
.split .ledger { margin-top: 10px; }

/* ---------- Process: numbered ruled list ---------- */
.process { border-top: 2px solid var(--ink); }
.p-step { display: grid; gap: 8px; padding: 26px 6px; border-bottom: 1px solid var(--line); grid-template-columns: 64px 1fr; }
@media (min-width: 900px) { .p-step { grid-template-columns: 120px 220px 1fr; align-items: baseline; } }
.p-num { font-family: var(--font-m); font-size: 0.86rem; letter-spacing: 0.1em; color: var(--accent-deep); }
.p-step h3 { font-size: 1.3rem; }
.p-step p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ---------- Testimonials: pull quotes ---------- */
.t-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial { background: var(--card); padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; }
.t-mark { font-family: var(--font-d); font-size: 3.4rem; line-height: 0.6; color: var(--accent); }
.testimonial blockquote { margin: 0; font-family: var(--font-d); font-size: 1.12rem; line-height: 1.5; font-weight: 430; }
.testimonial footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.t-name { font-family: var(--font-m); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.t-role { font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

/* ---------- CTA band: solid terracotta ---------- */
.cta-band { background: var(--accent); color: var(--ink); padding: clamp(52px, 7vw, 84px) clamp(28px, 5vw, 70px); text-align: center; }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band h2 em { color: var(--accent-ink); }
.cta-band p { color: rgba(27, 23, 19, 0.78); max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- FAQ: ruled rows ---------- */
.faq-list { max-width: 860px; margin-inline: auto; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; font-family: var(--font-d); font-weight: 480; font-size: 1.18rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .f-ic { font-family: var(--font-m); font-size: 1.3rem; color: var(--accent); flex: none; transition: transform 0.2s ease; }
.faq-item[open] summary .f-ic { transform: rotate(45deg); }
.faq-item .f-body { padding: 0 4px 24px; color: var(--ink-soft); max-width: 72ch; }
.faq-item .f-body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 44px; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 70px; } }
.contact-info h2 { margin-bottom: 0.4em; }
.contact-info > p { color: var(--ink-soft); max-width: 420px; }
.c-methods { list-style: none; margin: 30px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.c-methods li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.c-methods .c-ic { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.c-methods .c-ic svg { width: 18px; height: 18px; }
.c-methods strong { display: block; font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; }
.c-methods a, .c-methods span { color: var(--ink-soft); font-size: 0.98rem; text-decoration: none; }
.c-methods a:hover { color: var(--accent-deep); text-decoration: underline; }

.form-card { border: 1px solid var(--ink); background: var(--card); padding: clamp(28px, 4vw, 46px); }
.form-card h3 { margin-bottom: 0.3em; }
.form-row { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { background: var(--card); padding: 14px 16px; }
.field label { display: block; font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 8px 2px;
  transition: border-color 0.15s ease; appearance: none;
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #b3261e; }
.field .err-msg { display: none; color: #b3261e; font-size: 0.8rem; margin-top: 6px; }
.field.has-error .err-msg { display: block; }
.form-note { font-size: 0.84rem; color: var(--faint); margin-top: 16px; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }
.note-box { border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); background: var(--paper-2); padding: 15px 18px; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 22px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(60px, 8vw, 100px) 0 56px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.page-hero-inner { max-width: 860px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 24px; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-deep); text-decoration: underline; }
.breadcrumbs .sep { opacity: 0.5; }
.page-hero h1 { margin-bottom: 0.25em; }
.page-hero h1 .accent-italic { font-style: italic; color: var(--accent-deep); }
.page-hero .lead { color: var(--ink-soft); font-size: 1.13rem; max-width: 62ch; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.ph-meta span { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 8px; }
.ph-meta svg { width: 14px; height: 14px; color: var(--accent); }
.az-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 20px; }
.az-badge svg { width: 14px; height: 14px; }

/* ---------- Service page bits ---------- */
.svc-hero-stats { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: var(--card); margin-top: 34px; max-width: 640px; }
.svc-hero-stats .s { padding: 16px 18px; border-right: 1px solid var(--line); }
.svc-hero-stats .s:last-child { border-right: 0; }
.svc-hero-stats .s strong { display: block; font-family: var(--font-d); font-size: 1.4rem; font-weight: 480; color: var(--accent-deep); }
.svc-hero-stats .s small { font-family: var(--font-m); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); line-height: 1.4; display: block; margin-top: 4px; }

.deliverables { border-top: 2px solid var(--ink); }
.deliverable { display: grid; gap: 12px; grid-template-columns: 46px 1fr; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.deliverable .d-ic { width: 40px; height: 40px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.deliverable .d-ic svg { width: 18px; height: 18px; }
.deliverable strong { display: block; font-family: var(--font-d); font-size: 1.12rem; font-weight: 480; margin-bottom: 2px; }
.deliverable p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; max-width: 62ch; }

/* tiers */
.tiers { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--card); padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.tier.featured { background: var(--ink); color: var(--paper); }
.tier .t-badge { position: absolute; top: 0; right: 0; background: var(--accent); color: var(--ink); font-family: var(--font-m); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px; }
.tier h3 { font-size: 1.2rem; }
.tier .t-price { font-family: var(--font-d); font-size: 1.9rem; font-weight: 480; margin: 8px 0 2px; }
.tier .t-price small { font-size: 0.85rem; color: var(--faint); font-family: var(--font-m); letter-spacing: 0.06em; }
.tier.featured .t-price small { color: rgba(247, 247, 245, 0.6); }
.tier .t-desc { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.tier.featured .t-desc { color: rgba(247, 247, 245, 0.75); }
.tier ul { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 9px; }
.tier li { display: flex; gap: 10px; font-size: 0.92rem; }
.tier li svg { width: 15px; height: 15px; flex: none; color: var(--accent); margin-top: 4px; }
.tier.featured li svg { color: var(--accent); }
.tier .btn { width: 100%; }
.tier.featured .btn { background: var(--accent); color: var(--ink); }
.tier.featured .btn:hover { background: var(--accent-deep); color: var(--ink); }

/* ---------- Service areas ---------- */
.area-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .area-grid { grid-template-columns: repeat(4, 1fr); } }
.area-card { background: var(--card); padding: 22px 16px; text-align: center; transition: background 0.15s ease; }
.area-card:hover { background: #fbf6ee; }
.area-card .pin { width: 34px; height: 34px; margin: 0 auto 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.area-card .pin svg { width: 16px; height: 16px; }
.area-card strong { font-family: var(--font-d); font-weight: 500; display: block; }
.area-card small { font-family: var(--font-m); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ---------- Footer: ruled ---------- */
.site-footer { background: var(--paper); padding: clamp(56px, 7vw, 84px) 0 0; border-top: 2px solid var(--ink); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 44px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 0.94rem; color: var(--ink-soft); max-width: 300px; }
.footer-col h4 { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-soft); font-size: 0.94rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent-deep); text-decoration: underline; }
.footer-col span { color: var(--ink-soft); font-size: 0.94rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.footer-bottom a { color: var(--faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-deep); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background 0.15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }

/* ---------- 404 ---------- */
.error-hero { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.error-code { font-family: var(--font-d); font-weight: 480; font-size: clamp(7rem, 24vw, 14rem); line-height: 1; color: var(--ink); }
.error-code span { color: var(--accent-deep); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 36px; } .mt-4 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.faint { color: var(--faint); }

/* ---------- Responsive header ---------- */
@media (min-width: 1080px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- Reduced motion ---------- */
@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; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Depth & motion pass — tasteful, editorial, reduced-motion safe
   ========================================================================== */

/* ---------- Soft paper shadows ---------- */
.card, .tier, .form-card, .testimonial {
  box-shadow: 0 1px 2px rgba(27, 23, 19, 0.05), 0 10px 26px -22px rgba(27, 23, 19, 0.14);
}
.ledger, .dropdown, .stats, .area-grid, .svc-hero-stats, .tiers, .grid-2, .grid-3, .grid-4, .t-grid {
  box-shadow: 0 14px 34px -26px rgba(27, 23, 19, 0.22);
}
.form-card { box-shadow: 0 22px 50px -30px rgba(27, 23, 19, 0.24); }
.dropdown { box-shadow: 0 24px 50px -24px rgba(27, 23, 19, 0.3); }
.cta-band { box-shadow: 0 32px 64px -36px rgba(20, 200, 201, 0.5); }
.to-top { box-shadow: 0 10px 26px -12px rgba(27, 23, 19, 0.4); }
.btn-accent { box-shadow: 0 12px 28px -16px rgba(20, 200, 201, 0.6); }
.btn-solid, .btn-outline { box-shadow: 0 10px 22px -16px rgba(27, 23, 19, 0.25); }

/* Hero ledger: stacked paper sheets (hard offset shadows, no gradient) */
.hero .ledger {
  box-shadow: 9px 9px 0 -1px var(--paper-2), 9px 9px 0 0 var(--line-strong),
              0 18px 40px -30px rgba(27, 23, 19, 0.25);
}

/* ---------- Hover depth (lift, not bounce) ---------- */
.card, .tier, .area-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
.card:hover, .tier:hover, .area-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(27, 23, 19, 0.05), 0 18px 36px -20px rgba(27, 23, 19, 0.2);
}
.card:hover { background: var(--paper); }
.area-card:hover { background: var(--paper); }
.testimonial { transition: background 0.2s ease; }
.testimonial:hover { background: #fbfbf8; }
.btn { transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.btn:active { transform: translateY(1px); }

/* ---------- Nav underline sweep ---------- */
.main-nav a { border-bottom: 0; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px;
  background: var(--accent-deep); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta a::after { display: none; }

/* ---------- Reveal with soft blur ---------- */
.reveal {
  opacity: 0; transform: translateY(18px); filter: blur(5px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Hero / page-hero entrance cascade ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.hero-anim { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hd-1 { animation-delay: 0.08s; }
.hd-2 { animation-delay: 0.16s; }
.hd-3 { animation-delay: 0.26s; }
.hd-4 { animation-delay: 0.36s; }
.hd-5 { animation-delay: 0.46s; }

/* ---------- Ledger bars stagger ---------- */
.ledger-row:nth-child(2) .l-bar i { transition-delay: 0.1s; }
.ledger-row:nth-child(3) .l-bar i { transition-delay: 0.2s; }
.ledger-row:nth-child(4) .l-bar i { transition-delay: 0.3s; }

/* ---------- FAQ smooth open (grid-rows technique) ---------- */
.faq-item .f-body {
  display: grid; grid-template-rows: 0fr; padding: 0;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item[open] .f-body { grid-template-rows: 1fr; }
.faq-item .f-body p { overflow: hidden; margin: 0; padding: 0 4px 22px; }
