:root {
  --bg: #F3F4F1;
  --ink: #101418;
  --soft: #353B42;
  --muted: #555B62;
  --rule: #C9CDC6;
  --blue: #2140E8;
  --blue-tint: #E1E6FF;
  --green: #0A7A4B;
  --green-tint: #D9F0E3;
  --white: #FFFFFF;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
a:hover { color: #1228A8; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { left: 8px; z-index: 10; }
.green { color: var(--green); }

/* header */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(90deg, var(--blue) 50%, var(--green) 50%); }
.top nav { display: flex; gap: 26px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 12px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { border-bottom-color: var(--green); }

/* hero */
.hero { padding-top: 52px; padding-bottom: 44px; }
.hero h1, .contact h1 { margin: 0; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; max-width: 900px; text-wrap: balance; }
.intro { margin: 26px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--soft); max-width: 620px; }

/* work: map + card */
.work { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 72px; }
.axis-row { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 8px 0; }
.axis-x { color: var(--ink); border-top: 1px solid var(--ink); padding-top: 10px; margin-top: 12px; }
.axis-x span:first-child { color: var(--blue); }
.axis-x span:last-child { color: var(--green); }

.map { position: relative; width: 100%; aspect-ratio: 1 / 0.8; border: 1px solid var(--ink); background: var(--white); overflow: hidden; }
.half { position: absolute; top: 0; bottom: 0; width: 50%; }
.half-left { left: 0; background: var(--blue-tint); }
.half-right { right: 0; background: var(--green-tint); }
.cross-v { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--white); }
.cross-h { position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid var(--white); }
.cluster { position: absolute; left: 3%; top: 4%; width: 44%; height: 49%; border: 1.5px dashed var(--blue); border-radius: 22px; }
.cluster span { position: absolute; right: 14px; top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }

.dot { position: absolute; display: flex; align-items: center; gap: 0; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; white-space: nowrap; transform: translate(-22px, -50%); color: var(--ink); }
.dot.flip { flex-direction: row-reverse; transform: translate(calc(-100% + 22px), -50%); }
.dot .pin { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; }
.dot .num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 2px solid var(--c); color: var(--c); font-family: var(--mono); font-size: 12px; font-weight: 500; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.dot .lbl { font-size: 15px; font-weight: 500; padding: 2px 6px; border-radius: 4px; transition: background .18s ease, color .18s ease; }
.dot:hover .num { transform: scale(1.12); }
.dot[aria-pressed="true"] .num { background: var(--c); color: var(--white); transform: scale(1.25); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 18%, transparent); }
.dot[aria-pressed="true"] .lbl { background: var(--c); color: var(--white); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 20px; border: 1px solid var(--rule); background: var(--white); cursor: pointer; font-size: 14px; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.chip .n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: var(--white); font-family: var(--mono); font-size: 11px; }
.chip:hover { border-color: var(--c); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--white); }
.chip[aria-pressed="true"] .n { background: var(--white); color: var(--c); }

/* card */
.card { background: var(--white); border: 1px solid var(--ink); border-top: 8px solid var(--c, var(--blue)); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.card.swap { animation: rise .28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.card-meta .org { color: var(--c); }
.card h2 { margin: 2px 0 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.06; font-weight: 500; letter-spacing: -0.025em; }
.card .role { margin: 0; color: var(--soft); font-size: 16px; }

.flow { list-style: none; margin: 10px 0 0; padding: 0; }
.flow li { position: relative; padding: 0 0 18px 30px; }
.flow li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c); background: var(--white); }
.flow li::after { content: ""; position: absolute; left: 8px; top: 22px; bottom: 0; border-left: 2px solid var(--rule); }
.flow li:last-child { padding-bottom: 4px; }
.flow li:last-child::after { display: none; }
.flow li.built::before { background: color-mix(in srgb, var(--c) 35%, var(--white)); }
.flow li.outcome::before { background: var(--c); }
.flow .step { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.flow p { margin: 0; font-size: 16px; line-height: 1.45; color: #1D2228; }
.flow .big { display: block; font-size: clamp(44px, 5vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--c); margin: 2px 0 4px; }
.callouts { margin: 0; padding: 0; list-style: none; }
.callouts li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; color: #1D2228; }

.pager { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--rule); }
.pager button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: var(--white); cursor: pointer; font-size: 17px; transition: background .15s ease, color .15s ease; }
.pager button:hover { background: var(--ink); color: var(--white); }
.pager span { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: auto; }

/* band */
.band { background: var(--blue); color: var(--white); padding: 44px 0 48px; }
.band-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #DCE1FF; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.stat .big { font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.stat .lab { margin-top: 10px; font-size: 15px; line-height: 1.4; color: #E6E9FF; max-width: 230px; }

/* cta + footer */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding-top: 72px; padding-bottom: 72px; }
.cta h2 { margin: 0; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; max-width: 640px; text-wrap: balance; }
.button { display: inline-flex; align-items: center; min-height: 54px; padding: 0 30px; border-radius: 27px; background: var(--green); color: var(--white); text-decoration: none; font-size: 16px; font-weight: 600; transition: background .15s ease, transform .15s ease; }
.button:hover { background: #075C38; color: var(--white); transform: translateY(-1px); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 36px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* contact page */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 88px; min-height: 62vh; }
.eyebrow { margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.contact h1 { font-size: clamp(34px, 5vw, 62px); }
.email { display: inline-block; margin-top: 30px; font-size: clamp(22px, 3vw, 34px); font-weight: 500; letter-spacing: -0.02em; color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.copy { display: block; margin-top: 16px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--ink); background: var(--white); cursor: pointer; font-size: 14px; }
.copy:hover { background: var(--ink); color: var(--white); }
.where { margin: 26px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mini { position: relative; aspect-ratio: 1 / 0.9; border: 1px solid var(--ink); background: var(--white); overflow: hidden; }
.mini-dot { position: absolute; left: 76%; top: 34%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(10, 122, 75, .35); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 26px rgba(10, 122, 75, 0); } }
.mini-you { position: absolute; left: 76%; top: 34%; transform: translate(-50%, -260%); font-size: 15px; font-weight: 600; color: var(--green); white-space: nowrap; }
.mini-x { position: absolute; right: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }

/* small screens */
@media (max-width: 900px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .card { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .mini { max-width: 420px; }
}
@media (max-width: 620px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 28px; padding-bottom: 32px; }
  .dot .lbl { display: none; }
  .dot, .dot.flip { transform: translate(-22px, -50%); }
  .cluster span { font-size: 10px; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
