:root {
  --ink: #111111;
  --paper: #ffffff;
  --mute: #6b6b6b;
  --line: #e6e6e6;
  --alt: #f6f6f4;
  --max: 1160px;
  --soft: #333;
  --nav-bg: rgba(255,255,255,.92);
  --hoverb: #bbb;
  color-scheme: light dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(20px, 5vw, 56px);
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .22em; font-size: 15px; }
.brand-logo { height: 22px; width: auto; display: block; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.nav nav a:hover { opacity: .6; }

/* BUTTONS */
.btn {
  display: inline-block; padding: 16px 30px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 10px 18px; font-size: 11px; }
.btn-small:hover { opacity: 1; }
.btn-light { background: #fff; color: #111; border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }

/* HERO */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 12vw, 140px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.hero-logo { height: clamp(150px, 26vw, 250px); width: auto; margin: 0 auto 28px; display: block; }
.contact-logo { height: 64px; width: auto; margin-bottom: 20px; }
.foot-logo { height: 20px; width: auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); margin-bottom: 20px; }
h1 { font-size: clamp(40px, 8vw, 92px); font-weight: 700; letter-spacing: .08em; line-height: 1.05; }
.tagline-big { font-size: clamp(18px, 2.6vw, 28px); font-weight: 300; letter-spacing: .18em; margin: 18px 0 32px; }
.lead { max-width: 680px; margin: 0 auto 36px; font-size: 18px; color: var(--soft); }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.micro { font-size: 12px; letter-spacing: .4em; color: var(--mute); }

/* SECTIONS */
.section { padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 56px); max-width: var(--max); margin: 0 auto; }
.section.dark, .section.alt { max-width: none; }
.section.dark { background: #111; color: #fff; }
.section.dark .eyebrow { color: #aaa; }
.section.dark .lead { color: #ddd; }
.section.alt { background: var(--alt); }
.section.alt > *, .section.dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section.center { text-align: center; }
.section.center > * { margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 600; line-height: 1.2; margin-bottom: 20px; max-width: 800px; }
.section.center h2 { margin-left: auto; margin-right: auto; }
.section > .lead { margin-left: 0; }
.section.center > .lead { margin-left: auto; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }

/* GRIDS & CARDS */
.grid { display: grid; gap: 24px; margin-top: 40px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.one { grid-template-columns: 1fr; }

.card { padding: 36px 32px; border: 1px solid var(--line); background: var(--paper); }
.num { display: block; font-size: 13px; letter-spacing: .2em; color: var(--mute); margin-bottom: 16px; }
.project-name { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); display: inline-block; }
.for { color: var(--mute); font-size: 15px; margin-bottom: 22px; }
.project ul li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.link { display: inline-block; margin-top: 24px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.link:hover { opacity: .6; }

.card.wide { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.cols { columns: 2; column-gap: 32px; }
.cols li { break-inside: avoid; }

.split {
  display: block; padding: 48px 40px;
  border: 1px solid #444; transition: .25s;
}
.split:hover { background: #fff; color: #111; }
.split h3 { font-size: 26px; }
.split p { font-weight: 300; font-size: 18px; margin-bottom: 28px; }
.arrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.chips span { padding: 14px 22px; border: 1px dashed #aaa; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.chips small { display: block; font-weight: 400; font-size: 12px; letter-spacing: .04em; text-transform: none; color: var(--mute); }

/* FOOTER */
footer { text-align: center; padding: 56px 20px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; justify-content: center; align-items: center; gap: 10px; letter-spacing: .22em; margin-bottom: 12px; }
footer .micro { margin: 14px 0; }
.copy { font-size: 12px; color: var(--mute); }

@media (max-width: 760px) {
  .nav nav a:not(.btn) { display: none; }
  .card.wide { grid-template-columns: 1fr; }
  .cols { columns: 1; }
}

/* ---------- PROJECT PAGES ---------- */
.page-hero { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px) 24px; }
.crumbs { font-size: 12px; letter-spacing: .08em; color: var(--mute); margin-bottom: 36px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-title { font-size: clamp(30px, 5.4vw, 60px); font-weight: 700; letter-spacing: .02em; line-height: 1.1; max-width: 900px; margin-bottom: 18px; }
.tagline-page { font-size: clamp(16px, 2vw, 20px); font-weight: 500; margin-bottom: 20px; max-width: 760px; }
.lead.left { margin-left: 0; margin-right: 0; }
.cta-row.left { justify-content: flex-start; margin-bottom: 0; }
.section.tight { padding-top: 40px; }

.chips-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.chips-nav a { padding: 10px 16px; border: 1px solid var(--ink); font-size: 13px; font-weight: 500; transition: .2s; }
.chips-nav a b { font-weight: 700; margin-right: 6px; color: var(--mute); }
.chips-nav a:hover { background: var(--ink); color: var(--paper); }
.chips-nav a:hover b { color: var(--hoverb); }
.toolbar { display: flex; gap: 12px; margin: 20px 0 32px; flex-wrap: wrap; }
button.btn { font-family: inherit; cursor: pointer; }

.topics { display: grid; gap: 28px; }
.topic { border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); scroll-margin-top: 90px; background: var(--paper); }
.topic header { margin-bottom: 20px; }
.topic h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.diag { font-size: 17px; color: var(--soft); font-weight: 500; }

.checklist { border: 1px solid var(--ink); margin-bottom: 24px; }
.checklist summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.checklist summary::-webkit-details-marker { display: none; }
.checklist summary::after { content: "+"; font-size: 22px; font-weight: 400; margin-left: auto; padding-left: 12px; }
.checklist[open] summary::after { content: "–"; }
.checklist[open] summary { background: var(--ink); color: var(--paper); }
.count { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .75; }
.checklist ul { padding: 8px 20px 4px; }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; cursor: pointer; font-size: 15px; }
.checklist input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.hint { padding: 0 20px 18px; font-size: 12px; color: var(--mute); }

.deliver { background: var(--alt); padding: 24px 28px; border-left: 4px solid var(--ink); }
.deliver h4 { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 10px; }
.deliver p { font-size: 16px; color: var(--soft); }

.flow { list-style: none; margin: 36px 0 36px; counter-reset: s; display: grid; gap: 0; max-width: 900px; }
.flow li { counter-increment: s; display: grid; grid-template-columns: 56px 150px 1fr; gap: 12px; align-items: baseline; padding: 20px 0; border-top: 1px solid #444; }
.flow li::before { content: "0" counter(s); color: #888; font-size: 13px; letter-spacing: .2em; }
.flow strong { letter-spacing: .2em; font-size: 14px; }
.flow span { color: #ddd; }
.closing { font-size: clamp(16px, 2vw, 20px); font-weight: 600; letter-spacing: .02em; border-top: 2px solid #fff; padding-top: 24px; max-width: 900px; }
.split.light { border-color: #ccc; }
.split.light:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 760px) {
  .flow li { grid-template-columns: 40px 1fr; }
  .flow span { grid-column: 2; }
  .deliver { padding: 20px; }
}

/* ---------- CLICKABLE PROJECT CARDS ---------- */
.card.project { position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card.project .link::after { content: ""; position: absolute; inset: 0; }
.card.project:hover { border-color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.09); transform: translateY(-3px); }
.card.project:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.card.project:hover .link { border-bottom-width: 3px; }

/* ---------- CONTACT ---------- */
picture { display: contents; }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin-top: 28px; font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.contact-lines a, .foot-contact a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-lines a:hover, .foot-contact a:hover { border-bottom-color: currentColor; }
.section.dark .contact-lines a { color: #fff; }
.section.center:not(.dark) .contact-lines { margin-top: 24px; }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 18px 0 20px; font-size: 14px; font-weight: 500; letter-spacing: .03em; }

/* ---------- DARK MODE ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f2; --paper: #0d0d0d; --mute: #9b9b9b; --line: #2b2b2b; --alt: #171717;
    --soft: #d4d4d4; --nav-bg: rgba(13,13,13,.92); --hoverb: #555;
  }
  .section.dark { background: #1a1a1a; }
  .split.light { border-color: #333; }
  .card.project:hover { box-shadow: 0 10px 30px rgba(255,255,255,.06); }
  .chips span { border-color: #555; }
}

.hero h1 { margin-bottom: 28px; }

/* =====================================================
   HOME PAGE V2
   ===================================================== */
html { scroll-padding-top: 80px; }

/* hero */
.hero-d { height: clamp(64px, 9vw, 96px); width: auto; margin: 0 auto 28px; display: block; }
.hero h1 { font-size: clamp(32px, 6vw, 68px); letter-spacing: .005em; line-height: 1.08; max-width: 920px; margin: 0 auto 22px; }
.hero .tagline-big { font-size: clamp(20px, 3.2vw, 34px); font-weight: 600; letter-spacing: .16em; margin: 0 0 30px; }
.cta-row { align-items: center; }
.link.talk { margin-top: 0; }

/* problems */
.problems { margin-top: 36px; }
a.problem { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border: 1px solid var(--line); background: var(--paper); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.problem:hover, a.problem:focus-visible { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.09); }
.problem .tag { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.problem .quote { font-size: clamp(19px, 2vw, 22px); font-weight: 600; line-height: 1.35; }
.problem .fix { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* approach */
.steps { margin-top: 36px; }
.step h3 { font-size: 28px; }
.step p { color: var(--soft); }
.step .get { margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.step ul { margin-top: 10px; }
.step ul li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.follow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--ink); }
.follow p { color: var(--soft); }
.follow strong { color: var(--ink); }

/* solutions */
.academy { margin-top: 56px; scroll-margin-top: 90px; }
.academy-name { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 4px; }
.academy-line { color: var(--mute); font-size: 18px; margin-bottom: 4px; }
.academy .grid { margin-top: 24px; }
.project-name { font-size: clamp(17px, 1.7vw, 21px); letter-spacing: .2em; }
.card.project h3 { font-size: clamp(20px, 2vw, 23px); }
.card.project .for { font-size: 16px; }
.teaser { font-size: 13px; letter-spacing: .06em; color: var(--mute); font-weight: 500; }
.page-hero .project-name { font-size: clamp(20px, 2.4vw, 26px); }
.page-title { font-size: clamp(32px, 5.8vw, 66px); }
.split.light h3 { font-size: 28px; }

/* what a client receives */
.recv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.recv-card { background: var(--paper); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; }
.recv-card.span2 { grid-column: span 2; }
.recv-card.span3 { grid-column: 1 / -1; }
.recv-tag { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.recv-sub { color: var(--soft); font-size: 15px; margin-bottom: 18px; }
.badge { font-size: 10px; font-weight: 600; letter-spacing: .12em; padding: 4px 8px; border: 1px dashed var(--mute); color: var(--mute); text-transform: uppercase; }
.badge.real { border-style: solid; border-color: var(--ink); color: var(--ink); }
.checks li { border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks label { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; cursor: pointer; font-size: 15px; }
.checks input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.recv-foot { margin-top: 14px; font-size: 13px; color: var(--mute); }
a.inline { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; }
.outline { padding-left: 22px; }
.outline li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.outline li:last-child { border-bottom: 0; }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
table.mini td { padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--mute); }
.dash { display: grid; gap: 14px; margin-top: 4px; }
.dash div { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--soft); }
.dash i { display: block; height: 14px; width: var(--w); background: var(--ink); opacity: .85; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { padding: 10px 16px; border: 1px solid var(--ink); font-size: 14px; font-weight: 500; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 28px; align-items: start; }
.about-grid .lead { margin-bottom: 24px; }
.placeholder { border: 2px dashed var(--mute); color: var(--mute); padding: 20px 24px; font-size: 15px; }
.about-label { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.principles li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--soft); }
.principles strong { color: var(--ink); }
.process-label { margin-top: 56px; }
.process { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; counter-reset: p; border-top: 2px solid var(--ink); }
.process li { counter-increment: p; padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.process li::before { content: "0" counter(p); font-size: 13px; letter-spacing: .2em; color: var(--mute); }
.process strong { font-size: 18px; }
.process span { color: var(--soft); font-size: 15px; }

@media (max-width: 900px) {
  .recv { grid-template-columns: 1fr; }
  .recv-card.span2, .recv-card.span3 { grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) { .nav nav { gap: 18px; } }

/* responsive fixes */
.recv, .grid { min-width: 0; }
.recv-card { min-width: 0; }
.nav nav a, .nav .btn-small { white-space: nowrap; }
@media (max-width: 900px) { .recv { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 880px) { .nav nav a:not(.btn) { display: none; } }
@media (max-width: 600px) {
  .recv-card { padding: 22px 18px; }
  table.mini { font-size: 13px; }
  table.mini th, table.mini td { padding: 8px 6px; }
}

/* =====================================================
   COLLAPSIBLE DELIVERABLE BOXES
   ===================================================== */
.boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.box { grid-column: span 2; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.box.half { grid-column: span 3; }
.box:hover, .box[open] { border-color: var(--ink); }
.box:hover { box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.box summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 56px 26px 26px; position: relative; }
.box summary::-webkit-details-marker { display: none; }
.box summary::after { content: "+"; position: absolute; right: 22px; top: 20px; font-size: 28px; font-weight: 300; line-height: 1; }
.box[open] summary::after { content: "–"; }
.box summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.box-title { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.box-desc { color: var(--soft); font-size: 15px; }
.box-body { padding: 18px 26px 26px; border-top: 1px solid var(--line); }
.box-body .recv-sub { margin-bottom: 10px; }

/* about profile */
.profile { border: 1px solid var(--ink); padding: clamp(22px, 3vw, 32px); }
.profile-name { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.1; }
.profile-role { font-size: 17px; font-weight: 600; margin: 8px 0 14px; }
.profile-statement { color: var(--soft); margin-bottom: 24px; }
.profile .about-label { margin-top: 18px; }
.pills.small span { padding: 7px 12px; font-size: 13px; }
.creds li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--soft); }
.creds strong { color: var(--ink); }
.process { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .boxes { grid-template-columns: minmax(0, 1fr); }
  .box, .box.half { grid-column: auto; }
  .process { grid-template-columns: minmax(0, 1fr); }
}
