:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --panel: #151922;
  --panel-2: #1a1f2a;
  --line: rgba(238, 240, 255, 0.14);
  --line-strong: rgba(238, 240, 255, 0.28);
  --text: #eef0ff;
  --muted: #a7adbf;
  --violet: #a797ff;
  --violet-deep: #6554d9;
  --acid: #d6f36a;
  --coral: #ff8064;
  --blue: #65c8ff;
  --max: 1180px;
  --radius: 4px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; z-index: -2; inset: 0; background: radial-gradient(circle at 8% 0%, rgba(101, 84, 217, 0.17), transparent 32rem), radial-gradient(circle at 92% 40%, rgba(101, 200, 255, 0.07), transparent 30rem); pointer-events: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
img { max-width: 100%; height: auto; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.045em; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 600; }
h2 { font-size: clamp(2.25rem, 4.8vw, 4.4rem); font-weight: 580; }
h3 { font-size: 1.45rem; font-weight: 600; }
h1 em, h2 em { color: var(--violet); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
::selection { background: var(--acid); color: #15180c; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; background: var(--acid); color: #111; font-weight: 700; transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line); background: rgba(11, 13, 18, 0.88); backdrop-filter: blur(18px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line-strong); background: var(--text); color: var(--bg); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: -0.08em; }
.brand-name { letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); font-size: 0.92rem; }
.site-nav a { position: relative; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; top: calc(100% + 10px); left: 0; width: 100%; height: 2px; background: var(--violet); }
.site-nav .nav-external { color: var(--text); }
.nav-toggle { display: none; border: 0; background: none; }

.hero { min-height: calc(100svh - 78px); display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.7fr); align-items: center; gap: clamp(48px, 7vw, 100px); padding-block: clamp(80px, 12vw, 150px); }
.hero-copy { position: relative; }
.hero-copy::after { content: ""; position: absolute; z-index: -1; top: -80px; left: -110px; width: 280px; aspect-ratio: 1; border: 1px solid rgba(167, 151, 255, 0.12); border-radius: 50%; box-shadow: 0 0 0 45px rgba(167, 151, 255, 0.025), 0 0 0 90px rgba(167, 151, 255, 0.02); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow span { color: var(--acid); }
.hero h1 { max-width: 880px; margin-bottom: 30px; }
.hero-role { max-width: 820px; margin: -8px 0 24px; color: var(--acid); font-size: clamp(1.05rem, 2vw, 1.42rem); font-weight: 650; line-height: 1.35; letter-spacing: -0.02em; }
.hero-statement { max-width: 820px; margin-bottom: 22px; font-size: clamp(1.55rem, 2.8vw, 2.5rem); font-weight: 520; line-height: 1.2; letter-spacing: -0.035em; }
.hero-statement em { color: var(--violet); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-intro { max-width: 710px; margin-bottom: 36px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.26rem); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 16px; padding: 12px 20px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 0.9rem; font-weight: 650; transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--violet); background: var(--violet); color: #0f0b22; }
.button-primary:hover { border-color: var(--acid); background: var(--acid); }
.button-quiet:hover { border-color: var(--text); background: rgba(255,255,255,0.05); }
.hero-panel { position: relative; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(155deg, rgba(28, 33, 45, 0.96), rgba(17, 20, 27, 0.96)); box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; right: -70px; bottom: -70px; width: 180px; aspect-ratio: 1; border: 1px solid rgba(214, 243, 106, 0.2); border-radius: 50%; box-shadow: 0 0 0 28px rgba(214, 243, 106, 0.02), 0 0 0 56px rgba(214, 243, 106, 0.015); }
.panel-topline { display: flex; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--acid); }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.focus-list { margin: 0; padding: 8px 22px; list-style: none; }
.focus-list li { display: grid; grid-template-columns: 34px 1fr; padding: 21px 0; border-bottom: 1px solid var(--line); }
.focus-number { grid-row: span 2; color: var(--violet); font-family: var(--font-mono); font-size: 0.7rem; }
.focus-list strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.focus-list small { color: var(--muted); }
.panel-note { padding: 22px; }
.panel-note span { color: var(--acid); font-family: var(--font-mono); font-size: 0.67rem; letter-spacing: 0.09em; text-transform: uppercase; }
.panel-note p { position: relative; z-index: 1; margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }

.section { padding-block: clamp(80px, 11vw, 150px); }
.section-heading { display: grid; grid-template-columns: 1.45fr 0.55fr; align-items: end; gap: 60px; margin-bottom: 56px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 8px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project-card { min-height: 600px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); transition: transform 220ms ease, border-color 220ms ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(238, 240, 255, 0.46); }
.project-card-top { display: flex; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.project-index { color: var(--muted); }
.project-status { color: var(--acid); }
.project-glyph { height: 240px; margin: 22px; }
.voice-glyph { display: flex; align-items: center; justify-content: center; gap: clamp(9px, 2vw, 20px); background: radial-gradient(circle, rgba(101, 200, 255, 0.18), transparent 62%), repeating-linear-gradient(90deg, transparent 0 44px, rgba(255,255,255,0.035) 44px 45px); }
.voice-glyph i { display: block; width: 6px; height: 26%; border-radius: 999px; background: var(--blue); box-shadow: 0 0 18px rgba(101, 200, 255, 0.32); }
.voice-glyph i:nth-child(2), .voice-glyph i:nth-child(6) { height: 48%; }
.voice-glyph i:nth-child(3), .voice-glyph i:nth-child(5) { height: 72%; }
.voice-glyph i:nth-child(4) { height: 92%; background: var(--violet); }
.proof-glyph { display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 10px 20px; padding: 30px; background: linear-gradient(135deg, rgba(214, 243, 106, 0.1), transparent 60%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.045) 39px 40px); }
.proof-glyph span { align-self: center; color: var(--acid); font-family: var(--font-mono); font-size: 0.72rem; }
.proof-glyph b { font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 400; letter-spacing: -0.04em; }
.project-card-body { margin-top: auto; padding: 0 28px 30px; }
.project-kicker { margin-bottom: 10px; color: var(--violet); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.project-card h3 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.5rem); }
.project-card-body > p:not(.project-kicker) { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 650; text-decoration-color: var(--violet); }
.text-link:hover { color: var(--acid); text-decoration-color: currentColor; }

.principles-section { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(50px, 10vw, 140px); border-top: 1px solid var(--line); }
.principles-lead h2 { position: sticky; top: 120px; }
.principle-list article { display: grid; grid-template-columns: 62px 1fr; gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.principle-list article:first-child { border-top: 1px solid var(--line); }
.principle-list article > span { color: var(--violet); font-family: var(--font-mono); font-size: 0.74rem; }
.principle-list h3 { margin-bottom: 9px; }
.principle-list p { margin: 0; color: var(--muted); }
.contact-band { padding-block: 80px; border-block: 1px solid var(--line); background: var(--text); color: var(--bg); }
.contact-band .eyebrow { color: #5d6170; }
.contact-band .eyebrow span { color: var(--violet-deep); }
.contact-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 60px; }
.contact-inner h2 { max-width: 640px; margin: 0; font-size: clamp(2.25rem, 5vw, 4.5rem); }
.social-links { display: flex; flex-direction: column; min-width: 220px; }
.social-links a { display: flex; justify-content: space-between; gap: 40px; padding: 13px 0; border-bottom: 1px solid rgba(11, 13, 18, 0.25); font-weight: 650; text-decoration: none; }
.social-links a:hover { color: var(--violet-deep); }
.site-footer { padding-block: 28px; color: var(--muted); font-size: 0.82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 24px; }

.page-hero { padding-top: clamp(90px, 13vw, 170px); padding-bottom: clamp(70px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); align-items: end; gap: clamp(40px, 8vw, 110px); }
.page-hero h1 { margin: 0; font-size: clamp(3.4rem, 8vw, 7.4rem); }
.page-hero-grid > p { margin-bottom: 10px; color: var(--muted); font-size: 1.1rem; }
.about-story { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: clamp(50px, 10vw, 150px); }
.coordinate-card { position: relative; overflow: hidden; width: min(100%, 330px); aspect-ratio: 1; margin-top: 50px; border: 1px solid var(--line-strong); background: repeating-linear-gradient(0deg, transparent 0 32px, rgba(255,255,255,0.05) 32px 33px), repeating-linear-gradient(90deg, transparent 0 32px, rgba(255,255,255,0.05) 32px 33px); }
.coordinate-card::before, .coordinate-card::after { content: ""; position: absolute; background: var(--muted); opacity: 0.5; }
.coordinate-card::before { top: 50%; right: 0; left: 0; height: 1px; }
.coordinate-card::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.coordinate-card span { position: absolute; z-index: 2; color: var(--muted); font-family: var(--font-mono); font-size: 0.7rem; }
.coordinate-card span:first-child { right: 8px; top: calc(50% + 6px); }
.coordinate-card span:nth-child(2) { left: calc(50% + 6px); top: 8px; }
.coordinate-card i { position: absolute; z-index: 1; width: 145%; height: 110px; left: -25%; top: 39%; border-top: 3px solid var(--violet); border-radius: 50%; transform: rotate(-28deg); }
.coordinate-card b { position: absolute; z-index: 3; width: 10px; aspect-ratio: 1; left: 66%; top: 31%; border-radius: 50%; background: var(--acid); box-shadow: 0 0 18px var(--acid); }
.story-copy h2 { max-width: 820px; }
.story-copy p { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.23rem); }
.compact-heading { margin-bottom: 44px; }
.timeline { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.timeline li { display: grid; grid-template-columns: 0.38fr 1.62fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--violet); font-family: var(--font-mono); font-size: 0.77rem; text-transform: uppercase; }
.timeline h3 { margin-bottom: 8px; }
.timeline p { max-width: 720px; margin: 0; color: var(--muted); }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.practice-grid article { min-height: 300px; padding: 30px; border-right: 1px solid var(--line); }
.practice-grid article:last-child { border-right: 0; }
.practice-symbol { display: block; min-height: 100px; color: var(--acid); font-family: var(--font-mono); font-size: 2rem; }
.practice-grid p { color: var(--muted); }

.projects-hero { position: relative; overflow: hidden; }
.projects-hero::after { content: "02"; position: absolute; z-index: -1; right: 0; bottom: -0.32em; color: rgba(255,255,255,0.025); font-size: 22rem; font-weight: 800; line-height: 1; }
.project-list { padding-top: 40px; }
.project-row { display: grid; grid-template-columns: 0.42fr 0.75fr 0.83fr; gap: clamp(30px, 6vw, 80px); padding: clamp(55px, 8vw, 90px) 0; border-bottom: 1px solid var(--line); }
.project-row-meta { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; }
.project-row-meta span:first-child { color: var(--violet); font-size: 3rem; line-height: 1; }
.project-row-title p { color: var(--acid); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.project-row-title h2 { margin: 0; font-size: clamp(2.7rem, 5.5vw, 5.4rem); }
.project-row-copy > p { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; padding: 0; list-style: none; }
.tag-list li { padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 0.67rem; text-transform: uppercase; }
.project-row-voice .project-row-meta span:first-child { color: var(--blue); }
.project-row-hujja .project-row-meta span:first-child { color: var(--acid); }
.scope-note { display: grid; grid-template-columns: 0.42fr 1.58fr; gap: 60px; }
.scope-note > div { max-width: 760px; }
.scope-note h2 { margin-bottom: 18px; }
.scope-note p { color: var(--muted); }

.case-hero { overflow: hidden; padding-block: 62px 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.back-link { display: inline-flex; gap: 10px; margin-bottom: 60px; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; text-decoration: none; text-transform: uppercase; }
.back-link:hover { color: var(--acid); }
.case-title-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: end; gap: clamp(50px, 10vw, 140px); }
.case-title-grid h1 { margin: 0; font-size: clamp(4.2rem, 11vw, 10rem); }
.case-summary { padding-bottom: 18px; }
.case-summary p { margin: 18px 0 26px; color: var(--muted); font-size: 1.05rem; }
.case-status { display: inline-block; color: var(--acid); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.signal-stage { height: 190px; display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.5vw, 18px); margin-top: 55px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(101, 200, 255, 0.04), transparent); }
.signal-stage i { display: block; width: 3px; height: 15%; background: var(--blue); }
.signal-stage i:nth-child(3n) { height: 46%; }
.signal-stage i:nth-child(4n) { height: 74%; background: var(--violet); }
.signal-stage i:nth-child(7), .signal-stage i:nth-child(11) { height: 92%; background: var(--acid); }
.proof-stage { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 60px; padding: 45px 0; border-top: 1px solid var(--line); }
.proof-stage div { padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.proof-stage span { display: block; color: var(--acid); font-family: var(--font-mono); font-size: 0.67rem; }
.proof-stage b { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 400; }
.proof-stage > i { color: var(--violet); font-family: Georgia, serif; font-size: 2rem; font-style: normal; }
.case-section { display: grid; grid-template-columns: 0.36fr 1.64fr; gap: clamp(40px, 9vw, 130px); padding-block: clamp(80px, 11vw, 140px); border-bottom: 1px solid var(--line); }
.case-label { display: flex; align-items: baseline; gap: 14px; color: var(--muted); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.case-label span { color: var(--violet); }
.case-label p { margin: 0; }
.case-content h2 { max-width: 850px; margin-bottom: 45px; }
.two-column-copy { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 6vw, 70px); }
.two-column-copy p, .large-copy { color: var(--muted); font-size: 1.05rem; }
.architecture { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 12px; }
.architecture div { min-width: 130px; padding: 18px; border: 1px solid var(--line-strong); background: var(--panel); }
.architecture span, .architecture small, .flow-input small, .flow-engine small, .flow-output small { display: block; }
.architecture span { margin-bottom: 18px; color: var(--violet); font-family: var(--font-mono); font-size: 0.65rem; }
.architecture strong { display: block; font-size: 0.96rem; }
.architecture small { margin-top: 4px; color: var(--muted); }
.architecture > b, .verdict-flow > b { color: var(--acid); font-weight: 400; }
.architecture-note { margin: 28px 0 0; padding-left: 18px; border-left: 2px solid var(--violet); color: var(--muted); }
.check-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.check-list li { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.check-list li > span { color: var(--acid); font-family: var(--font-mono); }
.check-list strong { font-size: 1.07rem; }
.check-list p { margin: 3px 0 0; color: var(--muted); }
.limit-box { position: relative; overflow: hidden; padding: clamp(30px, 6vw, 70px); border: 1px solid rgba(255, 128, 100, 0.45); background: linear-gradient(145deg, rgba(255, 128, 100, 0.09), rgba(21, 25, 34, 0.6)); }
.limit-box::after { content: "!"; position: absolute; right: 20px; bottom: -0.35em; color: rgba(255, 128, 100, 0.06); font-family: Georgia, serif; font-size: 16rem; line-height: 1; }
.limit-box h2 { position: relative; z-index: 1; margin-bottom: 24px; }
.limit-box > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 800px; color: var(--muted); }
.hujja-disclaimer { border-color: rgba(214, 243, 106, 0.45); background: linear-gradient(145deg, rgba(214, 243, 106, 0.08), rgba(21, 25, 34, 0.6)); }
.hujja-disclaimer::after { color: rgba(214, 243, 106, 0.06); }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.stack-grid li { min-height: 130px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack-grid strong, .stack-grid span { display: block; }
.stack-grid span { margin-top: 5px; color: var(--muted); font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; }
.verdict-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; }
.verdict-flow > div { padding: 24px; border: 1px solid var(--line-strong); background: var(--panel); }
.verdict-flow span { display: block; font-weight: 650; }
.verdict-flow small { color: var(--muted); }
.flow-engine { box-shadow: inset 3px 0 var(--violet); }
.flow-output { box-shadow: inset 3px 0 var(--acid); }
.verdict-key { display: flex; flex-wrap: wrap; gap: 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-family: var(--font-mono); font-size: 0.69rem; text-transform: uppercase; }
.verdict-key li { display: flex; align-items: center; gap: 8px; }
.verdict-key span { width: 8px; height: 8px; border-radius: 50%; }
.key-compliant { background: var(--acid); }.key-noncompliant { background: var(--coral); }.key-doubtful { background: var(--violet); }
.state-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.state-grid article { padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.state-grid span { color: var(--acid); font-family: var(--font-mono); font-size: 0.67rem; letter-spacing: 0.06em; text-transform: uppercase; }
.state-grid h3 { margin: 20px 0 10px; }
.state-grid p { margin: 0; color: var(--muted); }
.numbered-principles { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.numbered-principles li { display: grid; grid-template-columns: 55px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.numbered-principles li > span { color: var(--violet); font-family: var(--font-mono); font-size: 0.72rem; }
.numbered-principles h3 { margin-bottom: 7px; }
.numbered-principles p { margin: 0; color: var(--muted); }
.next-project { display: grid; grid-template-columns: 0.36fr 1.64fr; gap: clamp(40px, 9vw, 130px); padding-block: 70px; }
.next-project > span { color: var(--muted); font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; }
.next-project a { display: flex; flex-direction: column; text-decoration: none; }
.next-project small { color: var(--violet); font-family: var(--font-mono); text-transform: uppercase; }
.next-project strong { margin-top: 8px; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; }
.next-project a:hover strong { color: var(--acid); }

.error-page { display: flex; min-height: 100svh; flex-direction: column; }
.error-main { flex: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 60px; padding-block: 70px; }
.error-code { margin: 0; color: rgba(167,151,255,0.14); font-family: var(--font-mono); font-size: clamp(8rem, 24vw, 20rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.1em; }
.error-main h1 { font-size: clamp(3rem, 7vw, 6rem); }
.error-main > div > p:not(.eyebrow) { max-width: 580px; margin-bottom: 30px; color: var(--muted); }

@media (max-width: 920px) {
  .hero, .page-hero-grid, .case-title-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-panel { max-width: 620px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .principles-section, .about-story { grid-template-columns: 1fr; }
  .principles-lead h2 { position: static; }
  .coordinate-card { margin-top: 20px; }
  .project-row { grid-template-columns: 0.28fr 0.72fr; }
  .project-row-copy { grid-column: 2; }
  .project-row-meta { grid-row: span 2; }
  .case-title-grid { gap: 30px; }
  .case-summary { max-width: 650px; }
  .architecture { grid-template-columns: 1fr; }
  .architecture > b { transform: rotate(90deg); text-align: center; }
  .proof-stage { grid-template-columns: 1fr; }
  .proof-stage > i { text-align: center; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand-name { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 8px; cursor: pointer; }
  .nav-toggle-mark, .nav-toggle-mark::before { display: block; width: 18px; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .nav-toggle-mark { position: relative; }
  .nav-toggle-mark::before { content: ""; position: absolute; top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-mark { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-mark::before { transform: translateY(-5px) rotate(-90deg); }
  .site-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 12px 14px 20px; border-bottom: 1px solid var(--line-strong); background: #10131a; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: 13px; }
  .site-nav a[aria-current="page"]::after { top: auto; right: 13px; bottom: 11px; left: 13px; width: auto; }
  .hero { grid-template-columns: 1fr; padding-block: 74px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
  .hero-copy::after { left: -180px; }
  .project-grid, .practice-grid, .contact-inner, .two-column-copy, .state-grid, .error-main { grid-template-columns: 1fr; }
  .project-card { min-height: 560px; }
  .practice-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .practice-grid article:last-child { border-bottom: 0; }
  .contact-inner { align-items: start; }
  .social-links { width: 100%; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .timeline li, .scope-note { grid-template-columns: 1fr; gap: 12px; }
  .project-row { grid-template-columns: 1fr; gap: 26px; }
  .project-row-meta { min-height: 60px; flex-direction: row; grid-row: auto; }
  .project-row-copy { grid-column: auto; }
  .case-section, .next-project { grid-template-columns: 1fr; gap: 30px; }
  .case-label { position: static; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .verdict-flow { grid-template-columns: 1fr; }
  .verdict-flow > b { transform: rotate(90deg); text-align: center; }
  .proof-stage { margin-top: 44px; }
  .signal-stage { height: 135px; }
  .error-main { gap: 20px; }
  .error-code { font-size: 9rem; }
}

@media (max-width: 440px) {
  .button-row .button { width: 100%; }
  .project-glyph { height: 190px; margin: 14px; }
  .project-card-body { padding-inline: 20px; }
  .stack-grid { grid-template-columns: 1fr; }
  .case-content h2 { margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  body::before, .site-header, .site-footer, .contact-band, .button-row, .next-project { display: none; }
  .shell { width: 100%; }
  a { color: #111; }
  .project-card, .practice-grid, .practice-grid article, .case-section, .timeline li { break-inside: avoid; border-color: #bbb; background: #fff; }
  .muted, p, .project-card-body > p { color: #333; }
}
