/* Finnley Everett — site styles */
:root {
  /* Fog palette */
  --bg: #eef0f1;
  --bg-rgb: 238 240 241;
  --bg-2: #e6e9eb;
  --surface: #f6f7f8;
  --line: #d6dadd;
  --line-2: #bcc2c7;
  --text: #1a1f24;
  --muted: #5d666e;
  --dim: #8b939a;
  --mark: #1a1f24;
  --signal: #3e5671;      /* accent: slate navy */
  --signal-rgb: 62 86 113;
  --signal-ink: #ffffff;
  --signal-hover: #2f445c;
  --cta-bg: linear-gradient(135deg, #e1e6ea 0%, #eceff1 100%);
  --cta-border: #cfd6dc;
  --cta-text: #46505a;
  --radius: 14px;
  --max: 1180px;
  /* Type: Sora / Inter */
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h-weight: 600;
  --h-track: -0.035em;
  --h-scale: .98;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--signal-ink); }

.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--signal-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: var(--h-weight, 600); letter-spacing: var(--h-track, -0.025em); line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: calc(clamp(2.7rem, 6.4vw, 5.4rem) * var(--h-scale, 1)); }
h2 { font-size: calc(clamp(2rem, 4vw, 3.2rem) * var(--h-scale, 1)); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hl { color: var(--signal); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem/1 var(--display); text-decoration: none;
  padding: 16px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: var(--signal-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--bg-rgb) / .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font: 600 1.18rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand-name span { color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); padding: 10px 14px; border-radius: 8px; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.nav .btn { margin-left: 10px; padding: 12px 18px; color: var(--signal-ink); }
.nav .btn:hover { color: var(--signal-ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 28px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s ease;
  }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1.15rem; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--signal); }
  .nav .btn { margin: 18px 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 13ch; }
.hero-sm h1 { max-width: 18ch; font-size: calc(clamp(2.4rem, 5.2vw, 4.4rem) * var(--h-scale, 1)); }
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-bg::before { /* grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 75% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-bg::after { /* glow */
  content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgb(var(--signal-rgb) / .16), transparent 62%);
}
.hero-chart { position: absolute; right: 0; bottom: 0; width: min(62vw, 820px); height: auto; opacity: .9; }
.hero-chart .line { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.6s .3s cubic-bezier(.6,.1,.2,1) forwards; }
.hero-chart .area { opacity: 0; animation: fade 1.4s 1.6s ease forwards; }
.hero-chart .pt { opacity: 0; animation: fade .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (max-width: 700px) { .hero-chart { width: 120vw; opacity: .45; } }

.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.3); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 15%, rgb(var(--bg-rgb) / .6) 60%, rgb(var(--bg-rgb) / .35)); }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 10vw, 130px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 18px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards.four { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; }
.card .num { font: 500 .8rem/1 var(--display); letter-spacing: .14em; color: var(--signal); display: block; margin-bottom: 26px; }
.card-link { text-decoration: none; display: flex; flex-direction: column; }
.card-link .more { margin-top: 24px; font: 600 .95rem/1 var(--display); color: var(--signal); }

.svc-card { padding: 0; overflow: hidden; }
.svc-card .img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.svc-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .img img { transform: scale(1.05); }
.svc-card .body { padding: 28px 30px 32px; }

/* Icon chip */
.chip { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--signal-rgb) / .1); border: 1px solid rgb(var(--signal-rgb) / .25); margin-bottom: 22px; }
.chip svg { width: 22px; height: 22px; stroke: var(--signal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 30px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 1rem/1.6 var(--display); color: var(--signal); }
.step h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .step { grid-template-columns: 1fr; gap: 10px; } }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }
.ticks strong { color: var(--text); font-weight: 600; }

/* Service detail rows */
.svc-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; padding: 50px 0; }
.svc-row + .svc-row { border-top: 1px solid var(--line); }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } .svc-row:nth-child(even) .svc-media { order: 0; } }

/* Big statement */
.statement { font: 500 clamp(1.6rem, 3.4vw, 2.7rem)/1.25 var(--display); letter-spacing: -0.02em; max-width: 26ch; margin: 0; }
.statement .muted { color: var(--dim); }

/* Stat-ish pillars (no numbers invented) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillars > div { padding: 34px 30px; }
.pillars > div + div { border-left: 1px solid var(--line); }
.pillars b { display: block; font: 600 1.5rem/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 10px; }
.pillars span { color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillars > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Photo band */
.band { position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 10%, rgb(var(--bg-rgb) / .55)); }
.band .wrap { position: relative; z-index: 2; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(44px, 7vw, 90px);
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
}
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; bottom: -260px; background: radial-gradient(circle, rgb(var(--signal-rgb) / .28), transparent 65%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 16ch; }
.cta p { color: var(--cta-text); max-width: 36em; }

/* Contact */
.email-big { font: 600 clamp(1.5rem, 4.2vw, 3rem)/1.1 var(--display); letter-spacing: -0.02em; color: var(--signal); text-decoration: none; word-break: break-word; border-bottom: 2px solid rgb(var(--signal-rgb) / .35); transition: border-color .2s; }
.email-big:hover { border-color: var(--signal); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.panel h3 { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font: 500 .78rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--text); opacity: .85; }
.footer-grid a:hover { opacity: 1; color: var(--signal); }
.footer-grid p { color: var(--muted); max-width: 30em; margin-top: 18px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chart .line { animation: none; stroke-dashoffset: 0; }
  .hero-chart .area, .hero-chart .pt { animation: none; opacity: 1; }
  .btn, .card, .svc-card .img img { transition: none; }
}

/* Stacked pillars (used inside split columns) */
.pillars.stack { grid-template-columns: 1fr; }
.pillars.stack > div + div { border-left: 0; border-top: 1px solid var(--line); }
.pillars.stack > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 26px 30px; }
.pillars.stack b { margin: 0; }

/* Theme-driven SVG colors */
.brand svg rect { fill: var(--mark); }
.brand svg rect:last-child { fill: var(--signal); }
.hero-chart .line, .hero-chart g { stroke: var(--signal); }
.hero-chart g { fill: var(--bg); }
.hero-chart stop { stop-color: var(--signal); }
