@import url('./portfolio-v11.css');
@import url('./case-studies.css');
@import url('./portfolio-wow-v2.css');

:root {
  --ink: #111318;
  --paper: #f4f1e9;
  --paper-2: #ebe7dd;
  --muted: #6a6e73;
  --line: #c9c4b8;
  --signal: #c9ff3d;
  --signal-ink: #263300;
  --white: #ffffff;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.wrap { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -80px; background: var(--signal); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 800; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }
.nav-wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font-weight: 950; letter-spacing: -0.05em; font-size: 1.15rem; }
.brand span { color: #8d9000; padding: 0 0.12em; }
nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: 0.88rem; font-weight: 750; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero { padding: clamp(72px, 10vw, 128px) 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); gap: clamp(48px, 8vw, 110px); align-items: end; }
.eyebrow { margin: 0 0 18px; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.18em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(3.2rem, 8vw, 7.4rem); line-height: 0.89; letter-spacing: -0.075em; margin: 0; max-width: 840px; }
h1 span { color: #626700; }
.hero-copy { max-width: 760px; margin: 30px 0 0; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; color: #33363a; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; text-decoration: none; border: 1.5px solid var(--ink); font-weight: 850; }
.button.primary { background: var(--ink); color: var(--white); }
.button.secondary { background: transparent; }
.button:hover, .button:focus-visible { transform: translateY(-1px); box-shadow: 4px 4px 0 var(--signal); }
.boundary-note { margin-top: 26px; max-width: 720px; color: var(--muted); font-size: 0.87rem; }
.hero-panel { border: 1.5px solid var(--ink); padding: 24px; background: var(--ink); color: var(--white); box-shadow: 12px 12px 0 var(--signal); }
.panel-label { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; margin: 0 0 18px; color: var(--signal); }
.spine { padding: 0; margin: 0; list-style: none; }
.spine li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid #36383e; font-weight: 800; }
.spine li:last-child { border-bottom: 0; }
.spine span { font: 700 0.68rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--signal); }
.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid div { padding: 24px 20px; border-right: 1px solid var(--line); }
.proof-grid div:first-child { padding-left: 0; }
.proof-grid div:last-child { border-right: 0; }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { font-size: 0.82rem; letter-spacing: 0.11em; }
.proof-grid span { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.section { padding: clamp(78px, 10vw, 130px) 0; }
.section.alt { background: var(--ink); color: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr); gap: 40px; align-items: end; margin-bottom: 46px; }
.section-head.compact { margin-bottom: 36px; }
h2 { font-size: clamp(2.4rem, 5.5vw, 5.2rem); line-height: 0.96; letter-spacing: -0.06em; margin: 0; }
.section-head > p { margin: 0; color: var(--muted); font-size: 1rem; }
.alt .section-head > p { color: #b9bac0; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-card { border: 1.3px solid var(--ink); padding: clamp(22px, 3.2vw, 34px); background: rgba(255,255,255,0.24); min-height: 420px; display: flex; flex-direction: column; }
.case-card.featured { grid-column: span 2; min-height: 390px; }
.case-card.dark-card { background: var(--ink); color: var(--white); box-shadow: 10px 10px 0 var(--signal); margin-bottom: 10px; }
.case-meta { display: flex; justify-content: space-between; gap: 18px; align-items: center; font: 750 0.7rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; }
.status { padding: 5px 8px; border: 1px solid currentColor; text-align: right; }
.case-card h3 { margin: 34px 0 4px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -0.055em; }
.case-sub { font-weight: 800; margin: 4px 0 22px; }
.case-card > p:not(.case-sub):not(.axioms) { color: #4b4e52; max-width: 780px; }
.dark-card > p:not(.case-sub):not(.axioms) { color: #c4c5c8; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: auto 0 20px; list-style: none; }
.tags li { border: 1px solid var(--line); padding: 5px 8px; font-size: 0.78rem; font-weight: 750; }
.dark-card .tags li { border-color: #575a60; }
.case-toggle { align-self: flex-start; border: 0; border-bottom: 2px solid currentColor; background: transparent; padding: 5px 0; cursor: pointer; font-weight: 850; }
.case-toggle:hover, .case-toggle:focus-visible { background: var(--signal); color: var(--ink); outline: 3px solid var(--signal); outline-offset: 2px; }
.case-detail { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.dark-card .case-detail { border-color: #44474c; }
.case-detail h4 { margin: 14px 0 4px; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; }
.case-detail p { margin: 0 0 12px; color: inherit !important; }
.mini-spine { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 24px 0 16px; }
.mini-spine span { border: 1px solid #565960; padding: 6px 8px; font: 700 0.73rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mini-spine b { color: var(--signal); }
.axioms { color: var(--signal); font: 800 0.82rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; margin: 0 0 24px; }
.system-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #42454a; border: 1px solid #42454a; }
.system-column { padding: 28px; background: var(--ink); }
.system-column h3 { color: var(--signal); margin: 0 0 20px; font-size: 1.35rem; }
.system-column p { margin: 0; padding: 10px 0; border-bottom: 1px solid #35383d; color: #dbdce0; }
.system-column p:last-child { border-bottom: 0; }
.method-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.1fr); gap: clamp(40px, 8vw, 110px); }
.large-copy { font-size: 1.1rem; color: var(--muted); margin-top: 24px; max-width: 560px; }
.method-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.method-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.method-list li > span { font: 800 0.7rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #777b40; }
.method-list strong { font-size: 1.05rem; }
.method-list p { margin: 5px 0 0; color: var(--muted); }
.thesis { background: var(--signal); color: var(--signal-ink); }
.thesis-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr); gap: clamp(50px, 8vw, 120px); }
.thesis h2 { max-width: 800px; }
.thesis-grid > div:last-child > p { font-size: 1.05rem; }
.signature { margin-top: 34px; font-weight: 900; }
.signature span { font-weight: 650; }
.site-footer { padding: 28px 0; background: #08090b; color: #c6c7ca; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; font-size: 0.8rem; }
.footer-grid p { margin: 0; }
:focus-visible { outline: 3px solid #8f9700; outline-offset: 4px; }
@media (max-width: 800px) {
  .wrap { width: min(calc(100% - 26px), var(--max)); }
  .nav-wrap { min-height: 58px; }
  nav { gap: 12px; font-size: 0.78rem; }
  nav a:nth-child(2), nav a:nth-child(4) { display: none; }
  .hero { padding-top: 64px; }
  .hero-grid, .section-head, .method-grid, .thesis-grid { grid-template-columns: 1fr; }
  .hero-panel { margin-right: 10px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div { border-right: 0; border-bottom: 1px solid var(--line); padding: 17px 0; }
  .proof-grid div:last-child { border-bottom: 0; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card.featured { grid-column: span 1; }
  .case-card { min-height: 0; }
  .system-columns { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .case-meta { align-items: flex-start; }
  .status { max-width: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
