/* Kaffee Werks — site styles */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F2EC;
  --bg-alt: #EFE8DF;
  --surface: #FFFFFF;
  --ink: #16110D;
  --ink-2: #3A302A;
  --muted: #6B5F55;
  --line: #E2D9CD;
  --line-strong: #CFC3B4;
  --accent: #A94E22;
  --accent-ink: #FFFFFF;
  --accent-soft: #F4E3D7;
  --ok: #2F7A4F;

  /* dark sections stay dark in both themes */
  --dark-bg: #16110D;
  --dark-surface: #211A15;
  --dark-line: #3A302A;
  --dark-ink: #F3ECE3;
  --dark-muted: #B5A797;
  --dark-accent: #E08A57;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 17, 13, .05), 0 12px 32px -12px rgba(22, 17, 13, .18);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110D0A;
    --bg-alt: #17120E;
    --surface: #1C1612;
    --ink: #F3ECE3;
    --ink-2: #DCD1C4;
    --muted: #A89A8C;
    --line: #2B231D;
    --line-strong: #3D332B;
    --accent: #E08A57;
    --accent-ink: #1A120C;
    --accent-soft: #2C1D14;
    --ok: #6BC28F;
    --dark-bg: #0B0806;
    --dark-surface: #16110D;
    --dark-line: #2B231D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #110D0A;
  --bg-alt: #17120E;
  --surface: #1C1612;
  --ink: #F3ECE3;
  --ink-2: #DCD1C4;
  --muted: #A89A8C;
  --line: #2B231D;
  --line-strong: #3D332B;
  --accent: #E08A57;
  --accent-ink: #1A120C;
  --accent-soft: #2C1D14;
  --ok: #6BC28F;
  --dark-bg: #0B0806;
  --dark-surface: #16110D;
  --dark-line: #2B231D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h1, h2 { font-family: var(--font-display); font-variation-settings: "opsz" 144; }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[data-d="0"] { --d: 0; }
[data-d="1"] { --d: 1; }
[data-d="2"] { --d: 2; }
[data-d="3"] { --d: 3; }
[data-d="4"] { --d: 4; }
[data-d="5"] { --d: 5; }
.mono { font-family: var(--font-mono); font-size: .8em; letter-spacing: .02em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: flex-end; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 36px; color: var(--ink); }
/* Wordmark cap height = cup body height (Fraunces caps are 0.70em; body is 18px),
   baseline on the bottom of the cup, steam rising above both. */
.brand-name { font: 600 26px/1 var(--font-display); letter-spacing: -0.02em; position: relative; top: .12em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid var(--line-strong);
    border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-cta { margin-top: 16px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--surface);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); margin: 22px 0 22px; font-weight: 560; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; padding-right: .06em; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23A94E22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* console visual */
.hero-visual { position: relative; }
.console {
  background: var(--dark-bg); color: var(--dark-ink);
  border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px var(--dark-line);
  overflow: hidden;
}
.console-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--dark-line); color: var(--dark-muted); font-size: 14px;
}
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--dark-ink); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #E5484D; animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.console-body { padding: 20px 18px 22px; display: grid; gap: 12px; min-height: 380px; align-content: start; }
.msg { max-width: 88%; }
.msg .who { display: block; font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dark-muted); margin-bottom: 6px; }
.msg p { padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.msg-in p { background: var(--dark-surface); border: 1px solid var(--dark-line); border-top-left-radius: 4px; }
.msg-out { justify-self: end; text-align: right; }
.msg-out p { background: var(--dark-accent); color: #1A120C; border-top-right-radius: 4px; text-align: left; }
.events { margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--dark-line); display: grid; gap: 8px; }
.event { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dark-ink); }
.event .t { margin-left: auto; color: var(--dark-muted); }
.check { width: 18px; height: 18px; border-radius: 50%; flex: none; background: #2F7A4F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.visual-caption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console-body { min-height: 0; }
}

/* ---------- strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 36px 32px 40px; border-left: 1px solid var(--line); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item:last-child { padding-right: 0; }
.strip-item .num { color: var(--accent); }
.strip-item h2 { font-size: 22px; margin: 12px 0 10px; font-family: var(--font-body); letter-spacing: -0.01em; }
.strip-item p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item, .strip-item:first-child, .strip-item:last-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .strip-item:first-child { border-top: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 14px; }
.section h2 { font-size: clamp(34px, 4.4vw, 54px); }
.section-lede { margin-top: 18px; font-size: 19px; color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card ul { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.card li { display: flex; gap: 10px; }
.card li::before { content: ""; width: 6px; height: 6px; margin-top: .6em; flex: none; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- dark section ---------- */
.section-dark { background: var(--dark-bg); color: var(--dark-ink); }
.section-dark .kicker { color: var(--dark-accent); }
.section-dark .section-lede, .section-dark p { color: var(--dark-muted); }
.section-dark h2, .section-dark h3, .section-dark strong { color: var(--dark-ink); }

.pipeline {
  display: flex; align-items: stretch; flex-wrap: wrap; gap: 0;
  padding: 28px; border: 1px solid var(--dark-line); border-radius: 18px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, color-mix(in srgb, var(--dark-accent) 10%, transparent), transparent 70%),
    var(--dark-surface);
}
.node {
  flex: 1 1 0; min-width: 0; display: grid; gap: 4px;
  padding: 18px 16px; border-radius: 12px; border: 1px solid var(--dark-line); background: var(--dark-bg);
}
.node .step { color: var(--dark-accent); }
.node strong { font-size: 17px; }
.node span:last-child { color: var(--dark-muted); font-size: 14px; }
.link { flex: 0 0 28px; align-self: center; height: 2px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--dark-accent) 0 6px, transparent 6px 10px);
  background-size: 20px 2px; animation: flow 1s linear infinite; opacity: .8; }
@keyframes flow { to { background-position: 20px 0; } }
@media (prefers-reduced-motion: reduce) { .link { animation: none; } }
.actions { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--dark-line); }
.actions .mono { color: var(--dark-muted); margin-right: 4px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 14px; border: 1px solid var(--dark-line); color: var(--dark-ink); background: var(--dark-bg); }
@media (max-width: 860px) {
  .pipeline { flex-direction: column; padding: 18px; }
  .link { flex: 0 0 22px; width: 2px; height: auto; align-self: flex-start; margin-left: 28px;
    background: repeating-linear-gradient(180deg, var(--dark-accent) 0 6px, transparent 6px 10px); animation: none; }
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.fact { padding: 24px; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark-surface); }
.fact { color: var(--dark-ink); }
.fact strong { color: var(--dark-ink); display: block; font: 600 clamp(30px, 3.4vw, 40px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.fact span { display: block; margin-top: 8px; color: var(--dark-muted); font-size: 15px; }
.fine { margin-top: 28px; font-size: 15px; max-width: 60em; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step-card { position: relative; padding: 28px 24px 30px; border-top: 2px solid var(--ink); }
.step-card::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.step-num { color: var(--muted); }
.step-card h3 { font-size: 22px; margin: 10px 0 10px; font-family: var(--font-display); }
.step-card p { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.principles-intro p:not(.kicker) { margin-top: 20px; color: var(--ink-2); font-size: 18px; }
.text-link { display: inline-flex; gap: 8px; margin-top: 26px; color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle { background: var(--surface); padding: 28px 26px; }
.principle h3 { font-size: 19px; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .principle-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section-head { margin-bottom: 8px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-copy > p:not(.kicker) { margin-top: 20px; font-size: 18px; }
.contact-details { margin: 36px 0 0; display: grid; gap: 18px; }
.contact-details div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--dark-line); }
.contact-details dt { font: 500 12px/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dark-muted); }
.contact-details dd { margin: 0; color: var(--dark-ink); }
.contact-details a { color: var(--dark-accent); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.form { background: var(--dark-surface); border: 1px solid var(--dark-line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--dark-ink); }
.opt { font-weight: 400; color: var(--dark-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--dark-ink);
  background: var(--dark-bg); border: 1px solid var(--dark-line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23B5A797' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--dark-muted) 70%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dark-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dark-accent) 25%, transparent); }
.field [aria-invalid="true"] { border-color: #E5484D; }
.form .btn-primary { background: var(--dark-accent); color: #1A120C; margin-top: 4px; }
.form .btn-primary:hover { background: #EA9B6B; }
.form :focus-visible { outline-color: var(--dark-accent); }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: #6BC28F; }
.form-status.err { color: #FF8A8A; }
.form-status a { color: inherit; }
.form-note { font-size: 13px; }
.form-note a { color: var(--dark-ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.footer-contact a { color: var(--ink-2); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols nav { display: grid; gap: 10px; align-content: start; }
.footer-cols h2 { font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.footer-cols a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.footer-cols a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- simple pages (privacy, 404) ---------- */
.page { padding: clamp(56px, 8vw, 104px) 0; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 12px; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.prose h2 { font-family: var(--font-body); font-size: 21px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--accent); }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 20px; }
.notfound .code { font: 500 14px var(--font-mono); color: var(--accent); letter-spacing: .12em; }
.notfound h1 { font-size: clamp(40px, 6vw, 64px); }
.notfound p { color: var(--muted); }
.notfound .btn { justify-self: center; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- inner pages ---------- */
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .5;
  mask-image: radial-gradient(ellipse 60% 80% at 90% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 90% 20%, #000 10%, transparent 70%);
}
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 16em; margin-bottom: 22px; font-weight: 560; }
.answer { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 44em; }
.crumbs ol { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.section-dark .crumbs, .section-dark .crumbs a { color: var(--dark-muted); }

.split { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.prose-block h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.prose-block p { color: var(--ink-2); font-size: 18px; }
.prose-block p + p { margin-top: 16px; }
.prose-block a, .feature a, .faq a, .answer a { color: var(--accent); }
.section-dark .prose-block p { color: var(--dark-muted); }
.fit-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.fit-box h3 { font-size: 19px; margin-bottom: 16px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: .2em; flex: none; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23A94E22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.fit-industries { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.fit-industries a { color: var(--accent); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 28px 26px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 16px; }
.feature a { display: inline-block; margin-top: 6px; font-weight: 600; text-decoration: none; }
.feature a::after { content: " \2192"; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.works-with { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.works-with .mono { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-right: 10px; }

.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-grid-lg { grid-template-columns: repeat(2, 1fr); }
.link-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.link-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.link-card h3 { font-size: 20px; }
.link-card p { color: var(--muted); font-size: 16px; flex: 1; }
.more { color: var(--accent); font-weight: 600; font-size: 15px; }
@media (max-width: 960px) { .link-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .link-grid, .link-grid-lg { grid-template-columns: 1fr; } }

/* service cards on the homepage link through */
.card { position: relative; display: flex; flex-direction: column; }
.card ul { flex: 1; align-content: start; }
.card-title { color: inherit; text-decoration: none; }
.card-title::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .more { margin-top: 20px; }
.card:hover .card-title { color: var(--accent); }
.text-link-dark { color: var(--dark-accent); }

.timeline { list-style: none; margin: 0; padding: 8px 0 0; display: grid; border-left: 2px solid var(--dark-line); }
.timeline li { position: relative; padding: 0 0 22px 26px; color: var(--dark-ink); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--dark-accent); }
.timeline .mono { display: block; color: var(--dark-muted); margin-bottom: 2px; }

.cta-band { background: var(--accent); color: var(--accent-ink); padding: clamp(48px, 6vw, 72px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); color: inherit; }
.cta-band p { margin-top: 10px; max-width: 40em; opacity: .9; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-primary:hover { background: var(--bg); }

/* about */
.about-hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait-wrap { margin: 0; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.portrait-fallback { display: grid; place-items: center; background: var(--dark-bg); color: var(--dark-accent);
  font: 500 clamp(56px, 8vw, 96px) var(--font-display); letter-spacing: -0.02em; }
.portrait-wrap figcaption { display: grid; margin-top: 14px; }
.portrait-wrap figcaption span { color: var(--muted); font-size: 15px; }
.facts-list { margin: 0; display: grid; gap: 14px; }
.facts-list div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts-list dt { font: 500 12px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts-list dd { margin: 0; color: var(--ink-2); }
.facts-list a { color: var(--accent); }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } .portrait-wrap { max-width: 360px; } }

/* article (case study) */
.article { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.toc { position: sticky; top: 96px; font-size: 15px; }
.toc .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-left: 1px solid var(--line); }
.toc a { display: block; padding-left: 14px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.article .prose { max-width: 720px; }
.article .prose h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); margin: 48px 0 16px; scroll-margin-top: 90px; }
.article .prose h2:first-child { margin-top: 0; }
.article .prose p, .article .prose li { font-size: 18px; }
.article .prose ol, .article .prose ul { padding-left: 22px; display: grid; gap: 10px; margin: 16px 0; }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; } .toc { position: static; } }

.contact-page h1 { font-size: clamp(38px, 5vw, 56px); color: var(--dark-ink); }
.contact-page .contact-copy > p:not(.kicker) { margin-top: 20px; font-size: 18px; }

/* =====================================================================
   Motion. Everything below is decoration: the page reads the same without
   it, and prefers-reduced-motion turns it off.
   ===================================================================== */

/* live call panel (JS drives the sequence; without JS everything shows) */
.timer { color: var(--dark-muted); margin-left: 4px; font-weight: 400; }
.console-body { position: relative; }
.typing { position: absolute; right: 18px; top: 0; display: none; gap: 5px; align-items: center; width: max-content; padding: 12px 14px;
  border-radius: 12px; border-top-right-radius: 4px; background: color-mix(in srgb, var(--dark-accent) 22%, var(--dark-surface)); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--dark-accent); animation: blink 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.console.seq .msg, .console.seq .event { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.console.seq .msg.on, .console.seq .event.on { opacity: 1; transform: none; }
.console.seq .typing.on { display: flex; animation: rise .3s ease both; }
.console.seq .event.on .check { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.console.seq .console-body { transition: opacity .5s ease; }
.console.seq.fading .console-body { opacity: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* scroll progress line under the header (pure CSS where supported) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
      background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #F2B27A));
      transform-origin: left; transform: scaleX(0);
      animation: progress linear both; animation-timeline: scroll(root);
    }
    @keyframes progress { to { transform: scaleX(1); } }
  }
}

/* "works with" ribbon */
.marquee { padding: 34px 0 38px; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-label { text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.marquee-viewport { overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-list { list-style: none; margin: 0; padding: 0 12px 0 0; display: flex; gap: 12px; }
.marquee-list li { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 15px; font-weight: 500; }
.marquee-list li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }

/* pipeline signal */
.node { transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease; }
.node.active { border-color: var(--dark-accent); transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--dark-accent), 0 10px 30px -10px color-mix(in srgb, var(--dark-accent) 60%, transparent); }
.node.active .step { color: #F2B27A; }

/* timeline steps draw in (industry pages) */
.js .timeline.reveal li { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .5s ease; }
.js .timeline.reveal.in li { opacity: 1; transform: none; }
.js .timeline.reveal.in li:nth-child(2) { transition-delay: .15s; }
.js .timeline.reveal.in li:nth-child(3) { transition-delay: .3s; }
.js .timeline.reveal.in li:nth-child(4) { transition-delay: .45s; }
.js .timeline.reveal.in li:nth-child(5) { transition-delay: .6s; }

/* cursor spotlight on cards (mouse only) */
@media (hover: hover) and (pointer: fine) {
  .card:hover, .link-card:hover, .feature:hover, .principle:hover, .fit-box:hover {
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--surface);
  }
  .fact:hover, .node:hover {
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--dark-accent) 14%, transparent), transparent 70%), var(--dark-surface);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* steaming logo */
  .steam polyline { transform-box: fill-box; transform-origin: center; animation: steam 3.6s ease-in-out infinite; }
  .steam polyline:nth-child(2) { animation-delay: .5s; }
  .steam polyline:nth-child(3) { animation-delay: 1s; }
  @keyframes steam {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 1; }
    50% { transform: translateY(-26px) scaleY(1.06); opacity: .45; }
  }

  /* hero headline: words rise in, then "engineered" gets underlined */
  .rise .w { display: inline-block; animation: wordup .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise .w:nth-child(2) { animation-delay: .08s; }
  .rise .w:nth-child(3) { animation-delay: .16s; }
  .rise .w:nth-child(4) { animation-delay: .24s; }
  .rise .w:nth-child(5) { animation-delay: .32s; }
  .rise .w:nth-child(6) { animation-delay: .40s; }
  .rise .w:nth-child(7) { animation-delay: .48s; }
  .rise .w:nth-child(8) { animation-delay: .56s; }
  .rise .w:nth-child(9) { animation-delay: .64s; }
  @keyframes wordup { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  .hero h1 em { position: relative; }
  .hero h1 em::after {
    content: ""; position: absolute; left: .02em; right: .12em; bottom: .02em; height: .07em; border-radius: 1em;
    background: currentColor; opacity: .55; transform: scaleX(0); transform-origin: left;
    animation: underline .8s cubic-bezier(.6, 0, .2, 1) 1.3s forwards;
  }
  @keyframes underline { to { transform: scaleX(1); } }
  .intro { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .intro-1 { animation-delay: 0s; }
  .intro-2 { animation-delay: .45s; }
  .intro-3 { animation-delay: .6s; }
  .intro-4 { animation-delay: .75s; }
  .hero-visual { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .3s both; }

  /* slow drifting grid behind hero and page headers */
  .hero::before, .page-hero::before { animation: drift 24s linear infinite; }
  @keyframes drift { to { background-position: 48px 48px, 48px 48px; } }

  /* ribbon scroll; pauses on hover */
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* primary button shine */
  .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
  .btn-primary::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s ease;
  }
  .btn-primary:hover::after { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; }
  .marquee-list { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-viewport { mask-image: none; -webkit-mask-image: none; }
}

/* =====================================================================
   Websites + tap-to-call (added 2026-09-30)
   ===================================================================== */

/* phone number in the header (desktop) and a round call button (mobile) */
.nav a.header-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.header-phone svg, .header-call svg, .btn-call svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.header-phone svg { width: 17px; height: 17px; color: var(--accent); }
.nav a.header-phone:hover { color: var(--accent); }
.header-call { display: none; }
.btn-call:hover svg { transform: none; }
.brand-name, .nav-cta { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 861px) { .nav { gap: 20px; } }
@media (max-width: 960px) and (min-width: 861px) {
  .nav { gap: 15px; }
  .nav a:not(.btn) { font-size: 14px; }
  .nav-cta { padding: 0 14px; }
}
@media (max-width: 1160px) and (min-width: 861px) {
  .nav a.header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 860px) {
  .header-call {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: 10px;
    border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  }
  .header-call svg { width: 20px; height: 20px; }
  .nav a.header-phone { font-size: 17px; }
}

/* mobile call bar: slides up after the first screen (site.js); always visible without JS */
.call-bar { display: none; }
@media (max-width: 860px) {
  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line);
  }
  .call-bar .btn { min-height: 46px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
  .call-bar .btn-ghost { background: var(--surface); }
  html:not(.js) body { padding-bottom: 72px; }
  .js .call-bar { transform: translateY(110%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s .35s; }
  .js .call-bar.show { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
}
@media (prefers-reduced-motion: reduce) { .js .call-bar, .js .call-bar.show { transition: none; } }

/* call buttons next to the primary CTA */
.btn-call { white-space: nowrap; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 55%, transparent); }
.cta-band .btn-ghost:hover { border-color: var(--accent-ink); }
.contact-page .contact-call { margin-top: 28px; background: var(--dark-accent); color: #1A120C; }
.contact-page .contact-call:hover { background: #EA9B6B; }
.contact-details address, .footer-contact { font-style: normal; }

/* footer contact block */
.footer-brand .footer-contact { display: grid; gap: 3px; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.footer-contact strong { color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.footer-contact a { color: var(--ink-2); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); text-decoration: underline; }
.footer-contact a[href^="tel:"] { font-weight: 600; color: var(--ink); }

/* services hub: websites card spans the row */
.link-card-wide { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.link-card-wide h3 { font-size: 24px; }

/* about: when there's no photo yet, the caption becomes a name card */
.portrait-meta { margin-top: 4px; }
.portrait-meta a { color: var(--accent); text-decoration: none; font-weight: 600; }
.portrait-wrap.no-photo .portrait { display: none; }
.portrait-wrap.no-photo figcaption {
  margin-top: 0; padding: 30px 28px; border-radius: 18px; gap: 4px;
  background: var(--dark-bg); color: var(--dark-ink); box-shadow: var(--shadow);
  border-top: 4px solid var(--dark-accent);
}
.portrait-wrap.no-photo figcaption strong { font: 600 clamp(28px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.portrait-wrap.no-photo figcaption span { color: var(--dark-muted); }
.portrait-wrap.no-photo .portrait-meta a { color: var(--dark-accent); }

/* ---------- websites section ---------- */
.web-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .web-grid { grid-template-columns: 1fr; } }

.demo {
  margin: 0; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    var(--surface);
}
.demo-badge {
  display: inline-block; padding: 5px 12px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 999px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: 12px;
}
.demo-phones { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(8px, 2vw, 20px); margin-top: 20px; align-items: start; }
.demo-col { min-width: 0; }
.demo-label { text-align: center; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; font-size: 12px; }
.demo-after .demo-label { color: var(--accent); }
.demo-arrow { align-self: center; margin-top: 24px; color: var(--accent); }
.demo-arrow svg { width: clamp(20px, 3vw, 30px); height: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.phone {
  max-width: 230px; margin: 0 auto; aspect-ratio: 9 / 18; padding: 7px; border-radius: 26px; container-type: inline-size;
  background: #16110D; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
}
.screen {
  height: 100%; border-radius: 19px; overflow: hidden;
  display: flex; flex-direction: column; gap: 3.5cqw; padding: 5cqw;
}
/* "before": a desktop-era site squeezed onto a phone */
.screen.old { background: #FFFFFF; color: #333; font-family: "Times New Roman", Times, serif; gap: 3cqw; }
.old-banner { background: #1F3FB8; color: #FFE45C; font-weight: 700; font-size: 5cqw; line-height: 1.2; text-align: center; padding: 3cqw 2cqw; }
.old-nav { color: #1A0DAB; text-decoration: underline; font-size: 3.2cqw; line-height: 1.3; }
.old-img { aspect-ratio: 16 / 9; background: repeating-linear-gradient(45deg, #E4E4E4 0 4cqw, #D6D6D6 4cqw 8cqw); }
.old-lines { display: grid; gap: 2cqw; }
.old-lines i { display: block; height: 2cqw; background: #D9D9D9; }
.old-lines i:nth-child(2n) { width: 86%; }
.old-lines i:nth-child(3n) { width: 64%; }
.old-phone { font-size: 3cqw; color: #666; }
.old-foot { margin-top: auto; font-size: 2.8cqw; color: #999; text-align: center; }
/* "after": what we'd build (fixed colors: it's a picture of someone else's site) */
.screen.new { background: #FBF8F4; color: #16110D; font-family: var(--font-body); }
.new-top { display: grid; gap: .5cqw; padding-bottom: 3cqw; border-bottom: 1px solid #E2D9CD; }
.new-top b { font: 600 7cqw/1.1 var(--font-display); letter-spacing: -0.02em; }
.new-top span { font-size: 3.6cqw; color: #6B5F55; }
.new-call {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 2cqw;
  padding: 4.2cqw 3cqw; border-radius: 999px; background: #A94E22; color: #FFFFFF; font-weight: 700; font-size: 5.2cqw; white-space: nowrap;
}
.new-call svg { width: 5.4cqw; height: 5.4cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.new-hours { display: flex; align-items: center; gap: 2cqw; font-size: 3.8cqw; font-weight: 600; }
.open-dot { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #2F7A4F; }
.new-services { display: flex; flex-wrap: wrap; gap: 1.8cqw; }
.new-services span { font-size: 3.4cqw; padding: 1.2cqw 2.8cqw; border-radius: 999px; background: #FFFFFF; border: 1px solid #E2D9CD; }
.new-photo {
  flex: 1; min-height: 16cqw; border-radius: 4cqw; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #6B5F55, #16110D 75%);
}
.new-photo::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 22%; height: 26%; border-radius: 3cqw 3cqw 1cqw 1cqw; border: .8cqw solid rgba(243, 236, 227, .35); border-bottom: 0; }
.new-photo span { position: absolute; left: 3cqw; bottom: 2.6cqw; font: 500 3cqw/1 var(--font-mono); color: #F3ECE3; letter-spacing: .04em; }
.new-dir { text-align: center; font-size: 3.8cqw; font-weight: 600; padding: 2.8cqw; border: 1.5px solid #16110D; border-radius: 999px; }

.demo-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.demo-notes li { display: flex; gap: 8px; }
.demo-notes li::before { content: ""; width: 15px; height: 15px; margin-top: .1em; flex: none; border-radius: 50%; }
.demo-notes-bad li::before {
  background: color-mix(in srgb, #C2410C 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5.5 5.5 5 5m0-5-5 5' fill='none' stroke='%23C2410C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.demo-notes-good li::before {
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23A94E22' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.demo figcaption { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: 14px; }
@media (max-width: 480px) {
  .demo-notes { font-size: 13px; }
  .demo-arrow { margin-top: 20px; }
}

/* audit list: what we check on every site */
.audit-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 30px); }
.audit-box h3 { font-size: 20px; margin-bottom: 8px; }
.audit { list-style: none; margin: 0; padding: 0; display: grid; }
.audit li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.audit li:first-child { border-top: 0; }
.audit-tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.audit-tick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.audit h4 { margin: 0; font: 600 16px/1.3 var(--font-body); }
.audit p { margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* how a redesign works */
.web-how { margin-top: clamp(48px, 6vw, 80px); }
.web-how-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 30px; }
.web-how-head h3 { font: 600 clamp(26px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.web-how-head p { color: var(--muted); }
.web-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(36px, 4vw, 52px); }
.web-actions .text-link { margin-top: 0; }

/* steps whose top rule draws in, one after another */
.steps-draw .step-card { border-top-color: var(--line-strong); }
.steps-draw .step-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--accent); transform-origin: left;
}
.js .steps-draw .step-card.reveal::after { transform: scaleX(0); transition: transform .8s cubic-bezier(.6, 0, .2, 1) .25s; }
.js .steps-draw .step-card.reveal.in::after { transform: scaleX(1); }
.js .steps-draw .step-card.reveal:nth-child(2)::after { transition-delay: .55s; }
.js .steps-draw .step-card.reveal:nth-child(3)::after { transition-delay: .85s; }
.js .steps-draw .step-card.reveal:nth-child(4)::after { transition-delay: 1.15s; }

/* demo + audit animate in when scrolled to */
.js .demo.reveal .screen.new > * { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.js .demo.reveal.in .screen.new > * { opacity: 1; transform: none; }
.js .demo.reveal.in .screen.new > :nth-child(1) { transition-delay: .5s; }
.js .demo.reveal.in .screen.new > :nth-child(2) { transition-delay: .7s; }
.js .demo.reveal.in .screen.new > :nth-child(3) { transition-delay: .85s; }
.js .demo.reveal.in .screen.new > :nth-child(4) { transition-delay: 1s; }
.js .demo.reveal.in .screen.new > :nth-child(5) { transition-delay: 1.15s; }
.js .demo.reveal.in .screen.new > :nth-child(6) { transition-delay: 1.3s; }
.js .demo.reveal .demo-arrow { opacity: 0; transform: translateX(-8px); transition: opacity .4s ease .35s, transform .4s ease .35s; }
.js .demo.reveal.in .demo-arrow { opacity: 1; transform: none; }
.js .audit-box.reveal .audit-tick path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s ease; }
.js .audit-box.reveal.in .audit-tick path { stroke-dashoffset: 0; }
.js .audit-box.reveal.in li:nth-child(1) path { transition-delay: .3s; }
.js .audit-box.reveal.in li:nth-child(2) path { transition-delay: .42s; }
.js .audit-box.reveal.in li:nth-child(3) path { transition-delay: .54s; }
.js .audit-box.reveal.in li:nth-child(4) path { transition-delay: .66s; }
.js .audit-box.reveal.in li:nth-child(5) path { transition-delay: .78s; }
.js .audit-box.reveal.in li:nth-child(6) path { transition-delay: .9s; }
.js .audit-box.reveal.in li:nth-child(7) path { transition-delay: 1.02s; }
@media (prefers-reduced-motion: no-preference) {
  /* the demo's call button pings a few times once it's on screen */
  .new-call::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #A94E22; opacity: 0; }
  .demo.in .new-call::after, .demo:not(.reveal) .new-call::after { animation: callping 1.8s ease-out 1.6s 3; }
  @keyframes callping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.18, 1.5); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .js .steps-draw .step-card.reveal::after { transform: none; transition: none; }
  .js .demo.reveal .screen.new > *, .js .demo.reveal .demo-arrow { opacity: 1; transform: none; transition: none; }
  .js .audit-box.reveal .audit-tick path { stroke-dashoffset: 0; transition: none; }
}
