/* Layout concept: an engineer's spec sheet with a marketer's warmth — serif headlines,
   mono "datasheet" labels, one mustard accent, and a single dark process band. */
:root {
  --paper: #FBFAF7;
  --panel: #F3F1EB;
  --ink: #17181C;
  --muted: #5B5D65;
  --line: #E3E0D7;
  --sun: #F2C230;
  --sun-soft: #FCF1CC;
  --sun-ink: #7E5C00;
  --on-sun: #17181C;
  --band: #15171B;
  --band-ink: #EDEBE5;
  --band-muted: #9C9EA5;
  --code-bg: #1B1D22;
  --code-ink: #E6E3DA;
  --code-key: #F2C230;
  --code-str: #9FD3B4;

  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --s-1: 0.8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: 2rem; --s4: 2.75rem; --s5: 3.75rem;
  --wrap: 1180px;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121316; --panel: #1A1C20; --ink: #ECEAE4; --muted: #A3A5AC; --line: #2B2D33;
    --sun: #F2C230; --sun-soft: #2E2814; --sun-ink: #F2C230; --on-sun: #17181C;
    --band: #0B0C0E; --band-ink: #EDEBE5; --band-muted: #9C9EA5;
    --code-bg: #0E0F12; --code-ink: #E6E3DA; --code-key: #F2C230; --code-str: #9FD3B4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121316; --panel: #1A1C20; --ink: #ECEAE4; --muted: #A3A5AC; --line: #2B2D33;
  --sun: #F2C230; --sun-soft: #2E2814; --sun-ink: #F2C230; --on-sun: #17181C;
  --band: #0B0C0E; --band-ink: #EDEBE5; --band-muted: #9C9EA5;
  --code-bg: #0E0F12; --code-ink: #E6E3DA; --code-key: #F2C230; --code-str: #9FD3B4;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, var(--s5)); }
h2 { font-size: clamp(1.8rem, 3.4vw, var(--s4)); }
h3 { font-size: var(--s1); font-family: var(--f-body); font-weight: 650; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--on-sun); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { padding-top: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun-ink); font-weight: 600; }
.lede { font-size: var(--s1); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 650; font-size: 0.95rem; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: var(--on-sun); }
.btn-sun:hover { background: #E8B51C; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.arrow { transition: transform .15s ease; }
a:hover > .arrow { transform: translateX(3px); }
.link { color: var(--sun-ink); font-weight: 650; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-size: 0.92rem; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--f-mono); font-weight: 700; letter-spacing: 0.08em; font-size: 0.86rem; text-decoration: none; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--sun); color: var(--on-sun); display: grid; place-items: center; font-size: 0.8rem; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.93rem; padding: 8px 12px; border-radius: 6px; color: var(--muted); font-weight: 550; }
.nav-links a:hover { color: var(--ink); background: var(--panel); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sun); border-radius: 0; }
.nav-cta { margin-left: 8px; padding: 10px 16px; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: var(--on-sun); background: var(--sun); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 0.88rem var(--f-body); color: var(--ink); cursor: pointer; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sun); }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 em { font-style: italic; color: var(--sun-ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 8px 22px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.hero-proof span::before { content: "✓ "; color: var(--sun-ink); font-weight: 700; }
.portrait { position: relative; justify-self: center; width: min(100%, 420px); }
.portrait-frame { aspect-ratio: 4 / 5; border-radius: 200px 200px 14px 14px; background: linear-gradient(160deg, var(--sun-soft), var(--panel)); overflow: hidden; position: relative; border: 1px solid var(--line); max-width: 100%; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.portrait-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 6rem; color: var(--sun-ink); font-style: italic; }
.portrait-note { position: absolute; right: -6px; top: 18px; font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.05; transform: rotate(-6deg); color: var(--ink); background: var(--paper); padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); z-index: 2; }
.portrait-tag { position: absolute; left: -10px; bottom: 26px; z-index: 2; background: var(--band); color: var(--band-ink); font-family: var(--f-mono); font-size: 0.72rem; padding: 10px 14px; border-radius: 8px; line-height: 1.5; }
.portrait-tag b { color: var(--sun); font-weight: 600; }
.portrait-photo { position: relative; }
.portrait-seal { position: relative; z-index: 3; margin-top: 16px; padding: 8px; }
.portrait-seal img { display: block; width: 100%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 340px); }
  .portrait-note { right: 0; }
  .portrait-tag { left: 0; }
}

/* Service strip */
.strip { margin-top: clamp(40px, 6vw, 72px); background: var(--sun-soft); border-block: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding-block: 22px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.strip li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 0.85rem; font-weight: 600; }
.strip svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .strip ul { grid-template-columns: repeat(4, 1fr); row-gap: 20px; } }
@media (max-width: 480px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.pillar { padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); min-width: 0; }
.pillar:last-child { border-right: 0; }
.pillar .code { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }
.pillar p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillar:nth-child(2) { border-right: 0; } .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: 0; border-bottom: 1px solid var(--line); } .pillar:last-child { border-bottom: 0; } }

/* Case cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; }
.card-body p { color: var(--muted); font-size: 0.93rem; }
.card-body .link { margin-top: auto; padding-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--f-mono); font-size: 0.7rem; padding: 4px 8px; border-radius: 5px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }

/* Code thumbnails (the "datasheet" visual) */
.thumb { background: var(--code-bg); color: var(--code-ink); font-family: var(--f-mono); font-size: 0.72rem; line-height: 1.7; padding: 18px 18px 16px; min-height: 172px; overflow: hidden; position: relative; }
.thumb .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.thumb .dots i { width: 8px; height: 8px; border-radius: 50%; background: #3A3D44; display: block; }
.thumb .dots i:first-child { background: var(--sun); }
.thumb pre { margin: 0; white-space: pre; overflow: hidden; }
.thumb .k { color: var(--code-key); }
.thumb .s { color: var(--code-str); }
.thumb .c { color: #7D8088; }
.thumb .serp-title { color: #9DB8F5; font-family: var(--f-body); font-size: 0.95rem; }
.thumb .serp-url { color: var(--code-str); }
.thumb .bar { height: 7px; border-radius: 4px; background: var(--sun); display: block; margin-top: 4px; }

/* Process band */
.band { background: var(--band); color: var(--band-ink); padding-block: clamp(56px, 8vw, 96px); }
.band h2 { color: var(--band-ink); }
.band .eyebrow { color: var(--sun); }
.band .lede { color: var(--band-muted); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid #2E3138; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); color: var(--sun); font-size: 0.8rem; font-weight: 600; }
.steps h3 { color: var(--band-ink); }
.steps p { color: var(--band-muted); font-size: 0.9rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Tools */
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool { font-size: 0.88rem; font-weight: 600; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.tool small { font-family: var(--f-mono); font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 0.7rem; }

/* Quote */
.quote { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: clamp(28px, 4vw, 44px); background: var(--panel); border-radius: var(--radius); }
.quote .mark { font-family: var(--f-display); font-size: 5rem; line-height: 0.7; color: var(--sun-ink); }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
@media (max-width: 560px) { .quote { grid-template-columns: 1fr; gap: 8px; } }

/* CTA */
.cta { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, var(--sun-soft), var(--paper) 70%); }
.cta > div { display: flex; flex-direction: column; gap: 10px; max-width: 56ch; }

/* Page header (inner pages) */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.crumbs { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Filter */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter { font: 600 0.85rem var(--f-body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Case study page */
.case-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.case-hero > * { min-width: 0; }
@media (max-width: 860px) { .case-hero { grid-template-columns: 1fr; } }
.specs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs .specs-title { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 18px; background: var(--panel); border-bottom: 1px solid var(--line); color: var(--muted); }
.specs dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.specs dt, .specs dd { padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 0.9rem; margin: 0; }
.specs dt { color: var(--muted); font-family: var(--f-mono); font-size: 0.76rem; padding-top: 13px; }
.specs dd { font-weight: 600; }
.specs dt:nth-last-of-type(1), .specs dd:last-of-type { border-bottom: 0; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 20px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--sun-ink); }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; } }
.work-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.work-col ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; display: flex; flex-direction: column; gap: 5px; }
.work-col li::marker { color: var(--sun-ink); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; margin: 0 -1px -1px 0; }
.metric b { font-family: var(--f-display); font-size: 2.2rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.metric span { font-size: 0.82rem; color: var(--muted); }
.note { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); border-left: 3px solid var(--sun); padding: 6px 0 6px 14px; max-width: 90ch; }
.next-case { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }

/* Expertise */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .exp-grid { grid-template-columns: 1fr; } }
.exp { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.exp-icon { width: 42px; height: 42px; border-radius: 9px; background: var(--sun-soft); display: grid; place-items: center; }
.exp-icon svg { width: 22px; height: 22px; stroke: var(--sun-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.exp p { color: var(--muted); font-size: 0.93rem; }
.exp ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 0.9rem; }
.exp li::marker { color: var(--sun-ink); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--sun-ink); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.about-grid > * { min-width: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.timeline li { padding-left: 20px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid var(--paper); }
.timeline .when { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); }
.timeline p { color: var(--muted); font-size: 0.93rem; }

/* Insights */
.post .thumb { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.post .thumb .big { font-family: var(--f-display); font-size: 1.6rem; color: var(--code-ink); line-height: 1.15; font-style: italic; white-space: normal; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 38px; height: 38px; flex: none; border-radius: 8px; background: var(--sun-soft); display: grid; place-items: center; }
.contact-list svg { width: 18px; height: 18px; stroke: var(--sun-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }
.contact-list a, .contact-list span.v { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
form.contact { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--paper); }
form.contact .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.contact { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 650; }
.field input, .field select, .field textarea { font: inherit; font-size: 0.95rem; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun-ink); box-shadow: 0 0 0 3px var(--sun-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status.ok { color: var(--sun-ink); font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; margin-top: clamp(56px, 8vw, 96px); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { color: var(--muted); font-size: 0.92rem; max-width: 36ch; margin-top: 10px; }
.legal { margin-top: 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* Work groups */
.work-group { display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; scroll-margin-top: 90px; }
.work-group:last-child { margin-bottom: 0; }
.group-label { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun-ink); font-weight: 600; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-4 { grid-template-columns: 1fr; } }

/* Design cards: image slot over a drawn placeholder tile */
.dthumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); max-width: 100%; }
.dthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dtile { position: absolute; inset: 0; display: flex; flex-direction: column; }
.dtile.t1 { background: var(--sun-soft); } .dtile.t2 { background: var(--panel); }
.dtile.t3 { background: color-mix(in srgb, var(--sun) 28%, var(--paper)); } .dtile.t4 { background: color-mix(in srgb, var(--ink) 8%, var(--paper)); }
.dtile.web { padding: 18px 18px 0; }
.chrome { display: flex; align-items: center; gap: 5px; background: var(--paper); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 7px 10px; }
.chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.chrome span { margin-left: 8px; font-family: var(--f-mono); font-size: 0.65rem; color: var(--muted); background: var(--panel); padding: 2px 8px; border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock { flex: 1; background: var(--paper); border: 1px solid var(--line); border-bottom: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mock b { height: 14px; width: 62%; background: var(--ink); border-radius: 3px; opacity: .85; }
.mock em { height: 7px; width: 85%; background: var(--line); border-radius: 3px; }
.mock em + em { width: 70%; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; flex: 1; }
.mock-row s { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; min-height: 34px; }
.mock-row s:first-child { background: var(--sun); border-color: transparent; }
.dtile.gfx { justify-content: flex-end; padding: 20px; gap: 4px; }
.gfx-kind { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; font-style: italic; color: var(--ink); }
.gfx-client { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }
.dcard { cursor: default; }
.dcard:hover { transform: none; box-shadow: none; }

/* Home email split */
.email-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.email-split > * { min-width: 0; }
@media (max-width: 860px) { .email-split { grid-template-columns: 1fr; gap: 28px; } }
.flowmini { background: var(--band); color: var(--band-ink); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 0; font-family: var(--f-mono); font-size: 0.8rem; }
.fm-row { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 12px 0 12px 18px; border-left: 2px solid #2E3138; position: relative; }
.fm-row::before { content: ""; position: absolute; left: -6px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.fm-row b { font-weight: 600; color: var(--sun); }
.fm-row span { color: var(--band-muted); }
@media (max-width: 480px) { .fm-row { grid-template-columns: 1fr; gap: 2px; } }

/* Flow map table */
.table-scroll { overflow-x: auto; }
.flowmap { min-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow-head, .flow-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr 1.6fr; }
.flow-head span { padding: 12px 18px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line); }
.flow-row + .flow-row { border-top: 1px solid var(--line); }
.flow-name { padding: 16px 18px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.flow-name::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sun); flex: none; }
.flow-cell { padding: 16px 18px; font-size: 0.92rem; color: var(--muted); border-left: 1px solid var(--line); }
.flow-cell small { display: none; }

.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .cards-2 { grid-template-columns: 1fr; } }

/* Real design thumbnails (buttons that open the lightbox) */
button.dthumb { display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--panel); cursor: zoom-in; font: inherit; color: inherit; }
.dthumb.tall { aspect-ratio: 3 / 4; }
.dthumb .zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: var(--band); color: var(--band-ink); font-family: var(--f-mono); font-size: 0.7rem; padding: 5px 9px; border-radius: 6px; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.dthumb:hover .zoom, .dthumb:focus-visible .zoom { opacity: 1; transform: none; }
.dthumb img { transition: transform .4s ease; }
.dthumb:hover img { transform: scale(1.03); }
.group-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.flowshot { margin: 28px 0 0; display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); }
.flowshot > * { min-width: 0; }
.flowshot button.dthumb.flow { position: relative; aspect-ratio: auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-height: 380px; background: #fff; }
.flowshot .dthumb.flow img { position: static; width: 100%; height: auto; }
.flowshot figcaption { display: flex; flex-direction: column; gap: 10px; max-width: 56ch; }
@media (max-width: 680px) { .flowshot { grid-template-columns: 1fr; } .flowshot button.dthumb.flow { max-width: 260px; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1040px, 100vw - 32px); width: 100%; max-height: calc(100vh - 32px); }
.lightbox::backdrop { background: rgba(10, 11, 13, .82); }
.lb-scroll { max-height: calc(100vh - 90px); overflow: auto; border-radius: 10px; background: var(--paper); }
.lb-scroll img { width: 100%; height: auto; display: block; }
.lb-close { display: block; margin: 0 0 10px auto; background: var(--sun); color: var(--on-sun); border: 0; border-radius: 8px; padding: 8px 14px; font: 650 0.88rem var(--f-body); cursor: pointer; }

/* Testimonials + design disclaimer */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
figure.quote { margin: 0; }
.quote figcaption { margin-top: 16px; }
.quote figcaption cite { margin-top: 0; }
.disclaimer { margin-top: 24px; margin-bottom: 52px; font-size: 0.85rem; color: var(--muted); max-width: 90ch; border: 1px dashed var(--line); border-radius: 8px; padding: 12px 16px; background: var(--panel); }
.disclaimer strong { color: var(--ink); }
.cards-pair { grid-template-columns: repeat(2, minmax(0, 300px)); }
@media (max-width: 520px) { .cards-pair { grid-template-columns: 1fr; } }
.page-head .disclaimer { margin: 4px 0 0; }
.dthumb.post { aspect-ratio: 4 / 5; }
.vthumb { aspect-ratio: 9 / 16; background: #0B0C0E; border-bottom: 1px solid var(--line); max-width: 100%; }
.vthumb video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0B0C0E; }
.proof { margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.proof-img { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in; display: block; width: 100%; }
.proof-img img { width: 100%; height: auto; display: block; }
.proof figcaption { font-size: 0.85rem; color: var(--muted); max-width: 80ch; }

/* Blog posts */
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.byline a { color: var(--ink); }
.prose.article { font-size: 1.08rem; line-height: 1.75; gap: 20px; }
.prose.article h2 { margin-top: 18px; }
.prose.article a { color: var(--sun-ink); }

/* BIR registration */
.bir { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.bir > * { min-width: 0; }
.bir h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.bir a { color: var(--sun-ink); }
.bir-seal { margin: 0; background: #ffffff; border-radius: 8px; padding: 10px; border: 1px solid var(--line); max-width: 100%; }
.bir-seal img { width: 632px; max-width: 100%; height: auto; image-rendering: auto; }
@media (max-width: 960px) { .bir { grid-template-columns: 1fr; } }
.section-head + .disclaimer { margin-top: -12px; margin-bottom: 28px; }

/* Tool logo grid */
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.tool-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 22px 10px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-width: 0; color: var(--ink); transition: background .15s ease; }
.tool-tile:hover { background: var(--panel); }
.tool-tile svg { width: 36px; height: 36px; }
.tool-tile .mono { width: 36px; height: 36px; border-radius: 8px; color: #fff; display: grid; place-items: center; font: 700 0.9rem var(--f-body); letter-spacing: 0.02em; }
.tool-name { font-size: 0.84rem; font-weight: 650; line-height: 1.25; }
.tool-tile small { font-family: var(--f-mono); font-size: 0.66rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
.tool-tile .mono { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

/* External article list */
.ext-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; counter-reset: ext; }
.ext-list li { break-inside: avoid; border-top: 1px solid var(--line); counter-increment: ext; }
.ext-list a { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 8px; align-items: baseline; padding: 13px 4px; text-decoration: none; font-size: 0.95rem; line-height: 1.45; }
.ext-list a::before { content: counter(ext, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }
.ext-list a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; color: var(--sun-ink); }
.ext-list .ext { color: var(--sun-ink); font-size: 0.85rem; }
@media (max-width: 760px) { .ext-list { columns: 1; } }
.quotes { align-items: start; }
.quote blockquote { font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.quote blockquote strong { font-weight: 600; background: linear-gradient(transparent 62%, var(--sun-soft) 62%); }
.quotes { align-items: stretch; }
.quote-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.quote blockquote { font-family: var(--f-body); font-size: 0.98rem; line-height: 1.65; color: var(--muted); display: flex; flex-direction: column; gap: 12px; }
.quote blockquote p { margin: 0; }
.quote blockquote .pull { font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.38; color: var(--ink); }
.quote blockquote strong { color: var(--ink); }
.quote figcaption { margin-top: auto; padding-top: 6px; }
figure.quote { align-items: stretch; } figure.quote .mark { align-self: start; }

/* Contact form states */
.form-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.field .opt { font-weight: 400; color: var(--muted); }
.field-error { font-size: 0.8rem; color: #B42318; min-height: 1em; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.form-status.err { color: #B42318; }
:root[data-theme="dark"] .field-error, :root[data-theme="dark"] .form-status.err { color: #F97066; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field-error, :root:not([data-theme="light"]) .form-status.err { color: #F97066; } }
#f-submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-done { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; background: var(--sun-soft); }
.form-done:focus { outline: none; }
.form-done a { color: var(--sun-ink); }

/* Let's Chat! floating button + quick options */
.chat { position: fixed; z-index: 40; left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.chat-panel { max-height: calc(100vh - 110px); overflow-y: auto; }
.chat-fab { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border: 0; border-radius: 999px; background: var(--band); color: var(--band-ink); font: 650 1rem var(--f-body); cursor: pointer; box-shadow: 0 10px 28px -10px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); transition: transform .15s ease, box-shadow .15s ease; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; fill: var(--sun); }
.chat-fab .chat-lines { fill: none; stroke: var(--band); stroke-width: 1.8; stroke-linecap: round; }
.chat-fab[aria-expanded="true"] { background: var(--sun); color: var(--on-sun); }
.chat-fab[aria-expanded="true"] svg { fill: var(--on-sun); }
.chat-fab[aria-expanded="true"] .chat-lines { stroke: var(--sun); }
.chat-panel { width: min(340px, calc(100vw - 40px)); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.4); overflow: hidden; transform-origin: bottom left; animation: chatIn .18s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; background: var(--band); color: var(--band-ink); }
.chat-title { margin: 0; font-family: var(--f-display); font-size: 1.25rem; }
.chat-sub { margin: 4px 0 0; font-size: 0.85rem; color: var(--band-muted); line-height: 1.45; }
.chat-x { background: transparent; border: 0; color: var(--band-muted); font-size: 1rem; cursor: pointer; align-self: flex-start; padding: 2px 4px; border-radius: 6px; }
.chat-x:hover { color: var(--band-ink); }
.chat-list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.chat-opt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
a.chat-opt:hover, .chat-mail:hover { background: var(--panel); }
.chat-opt b { display: block; font-size: 0.93rem; font-weight: 650; }
.chat-opt small { display: block; font-size: 0.78rem; color: var(--muted); word-break: break-word; }
.chat-opt > span:nth-child(2), .chat-mail > span:nth-child(2) { flex: 1; min-width: 0; }
.chat-ic { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--sun-soft); display: grid; place-items: center; }
.chat-ic svg { width: 18px; height: 18px; stroke: var(--sun-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-go { color: var(--sun-ink); font-size: 0.9rem; }
.chat-email { padding: 0; gap: 6px; }
.chat-mail { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); flex: 1; min-width: 0; }
.chat-copy { flex: none; margin-right: 6px; font: 650 0.78rem var(--f-body); padding: 7px 11px; border-radius: 7px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.chat-copy:hover { background: var(--panel); }
@media (max-width: 520px) { .chat-fab span { display: none; } .chat-fab { padding: 15px; } }
@media print { .chat { display: none; } }
