@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; src: url('/assets/fonts/poppins-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; src: url('/assets/fonts/poppins-600.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; src: url('/assets/fonts/poppins-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 900; font-style: normal; src: url('/assets/fonts/poppins-900.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Zeyada'; font-weight: 400; font-style: normal; src: url('/assets/fonts/zeyada-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Ubuntu Mono'; font-weight: 400; font-style: normal; src: url('/assets/fonts/ubuntumono-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Ubuntu Mono'; font-weight: 700; font-style: normal; src: url('/assets/fonts/ubuntumono-700.woff2') format('woff2'); font-display: swap; }

:root {
  --ink: #0D0D0D;
  --paper: #FAF9F5;
  --surface: #FFFFFF;
  --text: #17160F;
  --text-muted: #6F6D63;
  --line: #DEDACF;
  --accent: #F61B16;
  --accent-text: #FFFFFF;
  --hero-bg: #0D0D0D;
  --hero-text: #FAF9F5;
  --hero-muted: #A9A79C;
  --hero-line: #2A2A28;
  --shadow: 0 1px 0 rgba(13,13,13,0.06);
  --radius: 3px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131311;
    --surface: #1B1B18;
    --text: #F2F0E8;
    --text-muted: #9A988C;
    --line: #33322C;
    --accent: #FF4A38;
    --accent-text: #0D0D0D;
  }
}
:root[data-theme="dark"] {
  --paper: #131311;
  --surface: #1B1B18;
  --text: #F2F0E8;
  --text-muted: #9A988C;
  --line: #33322C;
  --accent: #FF4A38;
  --accent-text: #0D0D0D;
}
:root[data-theme="light"] {
  --paper: #FAF9F5;
  --surface: #FFFFFF;
  --text: #17160F;
  --text-muted: #6F6D63;
  --line: #DEDACF;
  --accent: #F61B16;
  --accent-text: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 32px); }
section { position: relative; }

.eyebrow {
  font-family: 'Ubuntu Mono', monospace;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow--track::before { content: ''; width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }

h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 900; text-wrap: balance; }
.script { font-family: 'Zeyada', cursive; font-weight: 400; color: var(--accent); font-size: 1.5em; line-height: 1; padding-inline: 0.05em; }

.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-ghost-dark { border-color: var(--hero-line); color: var(--hero-text); background: transparent; }
.btn-ghost-light { border-color: var(--line); color: var(--text); background: transparent; }

/* blueprint grid backdrop */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  opacity: 0.55;
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, black 70%, transparent 100%);
}
.hero .grid-bg {
  background-image:
    linear-gradient(var(--hero-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
}

.tick { position: absolute; width: 14px; height: 14px; }
.tick::before, .tick::after { content: ''; position: absolute; background: currentColor; }
.tick::before { width: 100%; height: 1.5px; top: 0; left: 0; }
.tick::after { width: 1.5px; height: 100%; top: 0; left: 0; }
.tick.tr { right: 0; top: 0; transform: scaleX(-1); }
.tick.bl { left: 0; bottom: 0; transform: scaleY(-1); }
.tick.br { right: 0; bottom: 0; transform: scale(-1, -1); }

/* NAV */
header.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  backdrop-filter: blur(3px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; gap: 24px; }
.logo-mark { height: 44px; }
.light-logo { display: block; }
.dark-logo { display: none; }
.nav-links { display: flex; gap: 28px; font-size: 0.9rem; font-weight: 600; list-style: none; }
.nav-links a { opacity: 0.82; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-cta { font-family: 'Ubuntu Mono', monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; border: 1.5px solid var(--text); padding: 9px 16px; border-radius: var(--radius); }
.nav-toggle { display: none; }
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
}

/* HERO — deliberately fixed to the brand's ink-black "cover slide" regardless of viewer theme */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding-block: clamp(64px, 12vw, 128px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.06; margin-block: 20px 22px; }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--hero-muted); max-width: 46ch; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.scroll-hint { font-family: 'Ubuntu Mono', monospace; font-size: 0.78rem; color: var(--hero-muted); }

/* connector: hero -> services, a schematic wire that draws itself once */
.connector-wrap { display: flex; justify-content: center; background: var(--hero-bg); }
.connector { width: 2px; height: 64px; }
.connector path { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 64; stroke-dashoffset: 64; animation: draw 900ms ease-out 300ms forwards; }
@media (prefers-reduced-motion: reduce) { .connector path { animation: none; stroke-dashoffset: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* SERVICES */
.services { background: var(--paper); padding-block: clamp(56px, 9vw, 96px); position: relative; overflow: hidden; }
.services > .container { position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* liquid-ambient backdrop — soft blurred colour drift, on-brand palette, no JS/WebGL needed */
.liquid-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.liquid-bg span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.28; will-change: transform;
}
.liquid-bg span:nth-child(1) {
  width: 480px; height: 480px; left: -140px; top: -160px;
  background: var(--accent);
  animation: liquid-drift-a 24s ease-in-out infinite alternate;
}
.liquid-bg span:nth-child(2) {
  width: 380px; height: 380px; right: -100px; top: 40px;
  background: #C97A2E;
  animation: liquid-drift-b 30s ease-in-out infinite alternate;
}
.liquid-bg span:nth-child(3) {
  width: 420px; height: 420px; left: 30%; bottom: -220px;
  background: #7A1410;
  animation: liquid-drift-c 27s ease-in-out infinite alternate;
}
@keyframes liquid-drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 50px) scale(1.12); } }
@keyframes liquid-drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 70px) scale(0.94); } }
@keyframes liquid-drift-c { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -40px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .liquid-bg span { animation: none; }
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 35;
  --color-sensitivity: 55;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* cursor-tracking edge glow, adapted from a mouse-tracked border effect — red/amber on-brand, no React/three.js needed */
.card::before, .card .edge-light {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; transition: opacity 0.3s ease-out; z-index: 2;
}
.card:not(:hover)::before, .card:not(:hover) .edge-light { opacity: 0; transition: opacity 0.5s ease-in; }
.card::before {
  border: 1.5px solid transparent;
  background: conic-gradient(from var(--cursor-angle) at center, var(--accent), #C97A2E 35%, transparent 60%, transparent 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
}
.card .edge-light {
  inset: -14px;
  mask-image: conic-gradient(from var(--cursor-angle) at center, black 4%, transparent 14%, transparent 86%, black 96%);
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}
.card .edge-light::before {
  content: ''; position: absolute; inset: 14px; border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--accent),
    inset 0 0 10px 0 color-mix(in srgb, var(--accent) 45%, transparent),
    0 0 18px 2px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 32px 4px color-mix(in srgb, #C97A2E 25%, transparent);
}
.card-icon { width: 34px; height: 34px; color: var(--accent); position: relative; z-index: 1; }
.card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.card p.desc { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }
.price-ladder { display: flex; flex-direction: column; gap: 6px; font-family: 'Ubuntu Mono', monospace; font-size: 0.76rem; letter-spacing: 0.02em; border-top: 1px solid var(--line); padding-top: 14px; }
.price-ladder .row { display: flex; justify-content: space-between; gap: 12px; }
.price-ladder .row span:first-child { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.price-ladder .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.card-link { font-family: 'Ubuntu Mono', monospace; font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { color: var(--accent); }

/* WHY ME — second fixed-dark section, alternating rhythm */
.why-me { background: var(--hero-bg); color: var(--hero-text); padding-block: clamp(56px, 9vw, 96px); }
.why-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }
.headshot-frame { border: 1px solid var(--hero-line); padding: 10px; width: 200px; }
.headshot-frame img { filter: grayscale(1) contrast(1.05); }
.headshot-cap { font-family: 'Ubuntu Mono', monospace; font-size: 0.72rem; color: var(--hero-muted); margin-top: 10px; letter-spacing: 0.04em; }
.why-copy p { max-width: 62ch; margin-bottom: 18px; color: var(--hero-text); }
.why-copy p.thesis { font-size: 1.2rem; font-weight: 600; line-height: 1.5; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 22px; font-size: 0.95rem; color: var(--hero-muted); }
.why-list li { display: flex; gap: 10px; }
.why-list li::before { content: ''; width: 6px; height: 6px; margin-top: 8px; flex-shrink: 0; background: var(--accent); }

/* PROOF */
.proof { background: var(--paper); padding-block: clamp(56px, 9vw, 96px); }
.proof-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-quiet .eyebrow { color: var(--text-muted); }
.proof-quiet .eyebrow--track::before { background: var(--text-muted); }
.proof-quiet p.note { color: var(--text-muted); font-size: 0.9rem; max-width: 40ch; margin-block: 12px 20px; }
.stat-list { display: flex; flex-direction: column; gap: 14px; }
.stat-row { display: flex; gap: 14px; align-items: baseline; padding-block: 10px; border-top: 1px solid var(--line); }
.stat-row:first-child { border-top: none; }
.stat-num { font-family: 'Ubuntu Mono', monospace; font-size: 0.85rem; color: var(--text-muted); flex-shrink: 0; width: 36px; }
.stat-text { font-size: 0.95rem; color: var(--text-muted); }

.case-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.browser-chrome { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser-chrome .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.browser-chrome .url { font-family: 'Ubuntu Mono', monospace; font-size: 0.72rem; color: var(--text-muted); margin-left: 8px; }
.case-shot { border-bottom: 1px solid var(--line); }
.case-body { padding: 22px 24px; }
.case-body blockquote { font-size: 1.05rem; font-weight: 600; line-height: 1.45; margin-bottom: 14px; }
.case-link { font-family: 'Ubuntu Mono', monospace; font-size: 0.82rem; font-weight: 700; }
.case-link:hover { color: var(--accent); }

/* FAQ */
.faq { background: var(--paper); padding-block: clamp(56px, 9vw, 96px); border-top: 1px solid var(--line); }
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding-block: 20px;
  font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-family: 'Ubuntu Mono', monospace; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.faq-item[open] summary .plus { transform: rotate(45deg); display: inline-block; }
.faq-item .a { padding-bottom: 20px; color: var(--text-muted); max-width: 62ch; font-size: 0.96rem; }

/* CONTACT */
.contact { background: var(--surface); padding-block: clamp(56px, 9vw, 96px); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: 'Ubuntu Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.field input, .field textarea {
  font-family: 'Poppins', sans-serif; font-size: 0.95rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; }
.form-note { font-family: 'Ubuntu Mono', monospace; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.form-banner { font-family: 'Ubuntu Mono', monospace; font-size: 0.8rem; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.form-banner.success { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid var(--accent); color: var(--text); }
.form-banner.error { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid var(--line); color: var(--text-muted); }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.contact-details .lede { max-width: 40ch; color: var(--text-muted); }
.detail-row { display: flex; flex-direction: column; gap: 4px; }
.detail-row .label { font-family: 'Ubuntu Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.detail-row .value { font-size: 1.1rem; font-weight: 600; }
.detail-row .value:hover { color: var(--accent); }
.socials { display: flex; gap: 16px; margin-top: 6px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }

/* FOOTER */
footer { background: var(--hero-bg); color: var(--hero-muted); padding-block: 40px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 22px; list-style: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--hero-text); }
.footer-legal { font-family: 'Ubuntu Mono', monospace; font-size: 0.72rem; margin-top: 20px; opacity: 0.7; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
