:root {
  --ink: #171714;
  --paper: #f3f0e8;
  --paper-2: #e8e3d7;
  --white: #fffef8;
  --muted: #67665f;
  --line: #b9b4a7;
  --signal: #d7ff3f;
  --violet: #7857ff;
  --cyan: #2ecbd0;
  --amber: #ffac2f;
  --rose: #fb6f83;
  --shadow: 7px 7px 0 var(--ink);
  --radius: 2px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, .button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--ink); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; left: 16px; top: 12px; transform: translateY(-160%); background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { transform: none; }

.site-header { width: min(1180px, calc(100% - 40px)); margin: 18px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--ink); background: var(--white); padding: 10px 12px; position: relative; z-index: 5; }
.identity { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.identity-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: var(--signal); font-size: 12px; font-weight: 900; letter-spacing: -.04em; }
.identity strong, .identity small { display: block; }
.identity strong { font-size: 14px; line-height: 1.1; }
.identity small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { text-decoration: none; padding: 8px 11px; font-size: 13px; font-weight: 750; border: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--ink); background: var(--signal); }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kicker::before { content: ""; width: 24px; height: 3px; background: currentColor; }
.hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 68px; align-items: center; padding-block: 90px 84px; }
.hero h1, .page-header h1, .case-header h1, .sent h1 { margin: 18px 0 0; font-size: clamp(3.3rem, 8.2vw, 7.4rem); line-height: .87; letter-spacing: -.075em; max-width: 9ch; }
.hero-lede { margin: 32px 0 0; max-width: 660px; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.22; font-weight: 750; }
.hero-detail { margin: 22px 0 0; max-width: 650px; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 16px; border: 1px solid var(--ink); text-decoration: none; font-weight: 850; font-size: 14px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.button-primary { background: var(--signal); color: var(--ink); }
.button-quiet { background: var(--white); color: var(--ink); }
.hero-board { border: 1px solid var(--ink); background: var(--ink); color: var(--white); box-shadow: 12px 12px 0 var(--violet); }
.board-line { min-height: 105px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-content: center; border-bottom: 1px solid #4b4b45; padding: 19px 22px; }
.board-line:last-child { border: 0; }
.board-line > span { grid-row: 1 / 3; color: var(--signal); font-family: ui-monospace, monospace; font-size: 12px; }
.board-line strong { font-size: 23px; letter-spacing: -.03em; }
.board-line small { color: #bdbdb3; margin-top: 3px; }
.board-signal { background: var(--signal); color: var(--ink); }
.board-signal > span, .board-signal small { color: var(--ink); }

.section { padding-block: 86px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 70px; align-items: end; margin-bottom: 36px; }
.section-heading .kicker { grid-column: 1 / -1; }
.section-heading h2, .cta h2, .boundary-note h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: .96; letter-spacing: -.06em; max-width: 12ch; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; max-width: 580px; }
.section-heading.compact { display: block; }
.section-heading.compact h2 { margin-top: 16px; }
.project-grid { display: grid; gap: 22px; grid-template-columns: repeat(12, 1fr); }
.project-card { grid-column: span 4; min-height: 310px; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--white); padding: 22px; position: relative; overflow: hidden; }
.project-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 7px; background: var(--signal); }
.project-card.accent-violet::before { background: var(--violet); }
.project-card.accent-cyan::before { background: var(--cyan); }
.project-card.accent-amber::before { background: var(--amber); }
.project-card.accent-rose::before { background: var(--rose); }
.project-card:hover { box-shadow: var(--shadow); transform: translate(-3px, -3px); }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: ui-monospace, monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
.project-card h2, .project-card h3 { font-size: 25px; line-height: 1.05; letter-spacing: -.04em; margin: 28px 0 12px; }
.project-card h2 a, .project-card h3 a { text-decoration: none; }
.project-card h2 a::after, .project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card p { color: var(--muted); margin: 0 0 24px; }
.work-grid .project-card.is-compact { min-height: 260px; }
.project-card .project-boundary { margin-top: -10px; font-size: 12px; line-height: 1.45; }
.project-card .text-link { position: relative; z-index: 1; margin-top: auto; width: fit-content; }
.text-link { font-weight: 850; font-size: 13px; text-decoration-thickness: 1px; }
.section-tail { margin: 30px 0 0; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.principle-grid article { padding: 24px; min-height: 245px; border-right: 1px solid var(--ink); background: var(--white); }
.principle-grid article:last-child { border: 0; }
.principle-grid span { font-family: ui-monospace, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.principle-grid h3 { margin: 42px 0 12px; font-size: 23px; line-height: 1.05; letter-spacing: -.035em; }
.principle-grid p { color: var(--muted); margin: 0; font-size: 14px; }
.practice-section { border-top-color: var(--ink); }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.practice-card { display: block; min-height: 280px; padding: 28px; border: 1px solid var(--ink); text-decoration: none; }
.practice-card.indexlane { background: var(--white); }
.practice-card.wpfixpath { background: var(--signal); }
.practice-card > span { font-family: ui-monospace, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.practice-card h3 { max-width: 13ch; margin: 32px 0 16px; font-size: 30px; line-height: 1; letter-spacing: -.045em; }
.practice-card p { max-width: 600px; color: var(--muted); }
.practice-card strong { display: inline-block; margin-top: 20px; font-size: 13px; text-decoration: underline; }
.practice-card:hover { box-shadow: var(--shadow); transform: translate(-3px, -3px); }
.cta { margin-block: 70px 100px; border: 1px solid var(--ink); background: var(--ink); color: white; padding: clamp(28px, 6vw, 72px); }
.cta h2 { margin-top: 20px; max-width: 18ch; }
.cta .button { margin-top: 32px; }

.page-header { padding-block: 100px 72px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 30px 70px; align-items: end; }
.page-header .kicker { grid-column: 1 / -1; }
.page-header h1 { font-size: clamp(3.4rem, 7vw, 6.6rem); max-width: 11ch; }
.page-header > p { margin: 0; color: var(--muted); font-size: 20px; max-width: 600px; }
.work-browser { padding-bottom: 90px; }
.browser-controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid var(--ink); background: var(--white); }
.filter-button { border: 1px solid var(--line); background: transparent; padding: 9px 12px; cursor: pointer; font-size: 12px; font-weight: 800; }
.filter-button:hover, .filter-button.is-active { color: var(--ink); background: var(--signal); border-color: var(--ink); }
.browser-status { margin: 14px 0 28px; color: var(--muted); font-size: 12px; }
.work-grid .project-card[hidden] { display: none; }
.boundary-note { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 100px; padding: 40px; border: 1px solid var(--ink); background: var(--paper-2); }
.boundary-note h2 { margin-top: 18px; font-size: 42px; }
.boundary-note p { color: var(--muted); font-size: 17px; }

.breadcrumb { display: flex; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: 12px; padding-top: 50px; }
.case-header { margin-top: 28px; padding: clamp(26px, 6vw, 70px); border: 1px solid var(--ink); background: var(--white); position: relative; }
.case-header::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; background: var(--signal); }
.case-header.accent-violet::before { background: var(--violet); }
.case-header.accent-cyan::before { background: var(--cyan); }
.case-header.accent-amber::before { background: var(--amber); }
.case-header.accent-rose::before { background: var(--rose); }
.case-header h1 { font-size: clamp(3.1rem, 7vw, 6.4rem); max-width: 12ch; margin-top: 40px; }
.case-header > p { max-width: 780px; font-size: 21px; color: var(--muted); margin: 28px 0 0; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 70px; padding-block: 70px; }
.case-main section { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 20px; padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.case-main section:last-child { margin: 0; }
.case-main .case-number { grid-column: 1; grid-row: 1 / 4; font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.case-main h2 { grid-column: 2; margin: 0 0 20px; font-size: 36px; letter-spacing: -.045em; }
.case-main p, .case-main ol, .case-main ul { grid-column: 2; margin: 0; }
.case-main p { font-size: 18px; color: var(--muted); }
.decision-list { list-style: none; padding: 0; counter-reset: decision; }
.decision-list li { counter-increment: decision; padding: 15px 0 15px 48px; border-top: 1px solid var(--line); position: relative; }
.decision-list li::before { content: counter(decision, decimal-leading-zero); position: absolute; left: 0; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 800; }
.evidence-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; }
.evidence-list li { padding: 16px; border: 1px solid var(--ink); background: var(--white); font-size: 14px; }
.case-aside { align-self: start; position: sticky; top: 20px; border: 1px solid var(--ink); background: var(--ink); color: white; padding: 24px; }
.stack-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.stack-list li { border: 1px solid #77776e; padding: 6px 8px; font-size: 11px; }
.aside-note { color: #bdbdb3; font-size: 13px; }
.case-aside .button { width: 100%; margin-top: 20px; }
.case-next { border-top: 1px solid var(--ink); padding: 30px 0 100px; display: flex; justify-content: space-between; gap: 20px; font-weight: 800; font-size: 13px; }

.capability-list { border-top: 1px solid var(--ink); margin-bottom: 90px; }
.capability-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) minmax(260px, .7fr); gap: 28px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--ink); }
.capability-index { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.capability-row h2 { margin: 0 0 10px; font-size: 29px; letter-spacing: -.04em; }
.capability-row p { margin: 0; color: var(--muted); max-width: 650px; }
.capability-proof { border-left: 1px solid var(--line); padding-left: 22px; }
.capability-proof strong, .capability-proof span { display: block; }
.capability-proof strong { font-size: 14px; }
.capability-proof span { color: var(--muted); font-size: 12px; margin-top: 8px; }
.routing-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.routing-grid article { background: var(--white); min-height: 240px; padding: 24px; border-right: 1px solid var(--ink); }
.routing-grid article:last-child { border: 0; background: var(--signal); }
.routing-grid span { font: 700 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.routing-grid h3 { margin: 40px 0 12px; font-size: 25px; }
.routing-grid p { color: var(--muted); font-size: 14px; }

.about-header { grid-template-columns: 1fr; }
.about-header h1 { max-width: 13ch; }
.about-header > p { max-width: 850px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 80px; padding-bottom: 100px; }
.about-narrative h2 { font-size: 34px; letter-spacing: -.04em; margin: 0 0 16px; }
.about-narrative h2:not(:first-child) { margin-top: 54px; }
.about-narrative p { color: var(--muted); font-size: 18px; max-width: 760px; }
.about-facts { border: 1px solid var(--ink); background: var(--white); align-self: start; }
.about-facts div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.about-facts div:last-child { border: 0; }
.about-facts span, .about-facts strong { display: block; }
.about-facts span { font: 700 10px ui-monospace, monospace; text-transform: uppercase; color: var(--muted); }
.about-facts strong { margin-top: 8px; font-size: 15px; }

.contact-header { padding-bottom: 52px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; padding-bottom: 100px; }
.contact-form { border: 1px solid var(--ink); background: var(--white); padding: clamp(22px, 4vw, 42px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 19px; }
.contact-form label > span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 12px; font-weight: 850; }
.contact-form label small { color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); padding: 12px 13px; }
.contact-form textarea { resize: vertical; min-height: 165px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--ink); outline: 3px solid var(--signal); outline-offset: 0; }
.contact-form .button { width: 100%; }
.form-note { color: var(--muted); font-size: 11px; margin: 13px 0 0; }
.trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.contact-aside { display: flex; flex-direction: column; gap: 14px; }
.contact-aside > div { border: 1px solid var(--ink); background: var(--paper-2); padding: 22px; }
.contact-aside h2 { margin: 20px 0 14px; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.contact-aside ul { padding-left: 18px; color: var(--muted); font-size: 14px; }
.route-card span, .route-card a { display: block; }
.route-card span { color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.route-card a { font-weight: 850; }
.sent { min-height: 650px; display: flex; flex-direction: column; justify-content: center; padding-block: 80px; }
.sent h1 { font-size: clamp(3.2rem, 8vw, 7rem); max-width: 10ch; }
.sent > p { max-width: 680px; color: var(--muted); font-size: 20px; }

.site-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; border: 1px solid var(--ink); background: var(--white); padding: 30px; }
.footer-intro p { max-width: 660px; color: var(--muted); font-size: 14px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; font-size: 13px; font-weight: 750; }
.footer-meta { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 11px ui-monospace, monospace; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 48px; }
  .hero-board { max-width: 680px; }
  .project-card { grid-column: span 6; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .principle-grid article:nth-child(2) { border-right: 0; }
  .principle-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .page-header { grid-template-columns: 1fr; }
  .case-grid, .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .case-aside { position: static; }
  .contact-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-aside > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .shell, .site-header, .site-footer { width: min(100% - 24px, 1180px); }
  .site-header { align-items: flex-start; gap: 12px; }
  .identity small { display: none; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 7px; font-size: 11px; }
  .hero { padding-block: 64px; }
  .hero h1 { font-size: clamp(3.2rem, 18vw, 5.6rem); }
  .hero-detail { font-size: 16px; }
  .section { padding-block: 64px; }
  .section-heading { grid-template-columns: 1fr; }
  .project-card { grid-column: 1 / -1; min-height: 280px; }
  .principle-grid, .practice-grid, .routing-grid { grid-template-columns: 1fr; }
  .principle-grid article, .routing-grid article { border-right: 0; border-bottom: 1px solid var(--ink); }
  .principle-grid article:last-child, .routing-grid article:last-child { border-bottom: 0; }
  .boundary-note { grid-template-columns: 1fr; padding: 26px; }
  .capability-row { grid-template-columns: 32px 1fr; }
  .capability-proof { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .case-main section { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .evidence-list { grid-template-columns: 1fr; }
  .case-next { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-aside { grid-template-columns: 1fr; }
  .contact-aside > div:first-child { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
