/* Aurora presentation layer. Canonical content and routes remain in their source modules. */
:root {
  --bg:#060d1c; --surface:#122238; --surface2:#172c43;
  --text:#edf5ff; --muted:#b4c4d6; --subtle:#92abc0; --accent:#83ebdf;
  --line:#30465c; --max:1360px; --radius:22px;
  --glass:linear-gradient(135deg,#d0e9ff22,#89aecd0c 48%,#6bbab61a);
  --glass-solid:#122237; --edge:#bed9ef38; --edge-bright:#c9efff78;
  --cyan:#6ce8e2; --blue:#7faaff; --green:#5bd7b3;
  --glow:#42dbd0; --shadow:#00081770;
  --aurora-a:#0fae9e70; --aurora-b:#345caa60; --aurora-c:#07987962;
  --primary-bg:#79e6da; --primary-text:#09242c;
  --header:#27374b87; --input:#0a172a; --code:#0b1929;
}
html[data-theme="light"] {
  --bg:#edf5f7; --surface:#f9fdff; --surface2:#e4f1f4;
  --text:#142c40; --muted:#425e73; --subtle:#526c80; --accent:#086b73;
  --line:#aac4d0; --glass:linear-gradient(135deg,#ffffffb8,#f3fbff6e 52%,#b9e7e759);
  --glass-solid:#f3fafc; --edge:#ffffffef; --edge-bright:#74aebba6;
  --cyan:#087c86; --blue:#446fbb; --green:#107c67; --glow:#159f9e;
  --shadow:#496f861b; --aurora-a:#5fddd356; --aurora-b:#9dbbfa4d; --aurora-c:#91dfc854;
  --primary-bg:#116e79; --primary-text:#f2ffff;
  --header:#ffffffa1; --input:#f7fcff; --code:#e3eff3;
}
html {background:var(--bg);scroll-padding-top:130px}
body {background:var(--bg);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;isolation:isolate}
body::before {content:"";position:fixed;z-index:-2;inset:0;pointer-events:none;background:radial-gradient(ellipse 58% 35% at 90% 15%,var(--aurora-c),transparent 75%),radial-gradient(ellipse 70% 32% at 15% 40%,var(--aurora-a),transparent 72%),radial-gradient(ellipse 50% 25% at 65% 4%,var(--aurora-b),transparent 70%);opacity:.72}
body::after {content:"";position:absolute;z-index:-1;top:170px;left:0;right:0;height:1000px;pointer-events:none;background:radial-gradient(ellipse 55% 12% at 79% 22%,var(--aurora-a),transparent 80%),radial-gradient(ellipse 50% 17% at 30% 48%,var(--aurora-b),transparent 80%);transform:skewY(-17deg);opacity:.75}
::selection {background:var(--accent);color:var(--bg)}
.container {width:min(var(--max),calc(100% - 96px))}
h1,h2,h3 {font-weight:620;letter-spacing:-.045em}
h2 {font-size:clamp(30px,3.2vw,45px);line-height:1.16}
p {color:var(--muted)}
.eyebrow {color:var(--accent);font-size:10px;letter-spacing:.16em;font-weight:650}
.mini-label {color:var(--subtle)}
.icon-box {color:var(--accent);border-color:var(--line);background:var(--surface2)}
a,button {touch-action:manipulation}
:focus-visible {outline:3px solid var(--accent);outline-offset:5px}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header {position:sticky;top:20px;margin-top:22px;border:0;background:none;backdrop-filter:none;z-index:30;padding-inline:0}
.header-inner {width:min(1160px,calc(100% - 80px));min-height:70px;padding:0 24px 0 28px;gap:28px;border:1px solid var(--edge-bright);border-radius:50px;background:var(--header);box-shadow:inset 0 1px 0 #ffffff29,0 10px 32px var(--shadow);backdrop-filter:blur(18px)}
.brand {font-size:28px;letter-spacing:-.04em;font-weight:720;gap:0}
.brand .logo-mark {display:none}
.brand-dot {color:var(--accent)}
.main-nav {gap:28px;margin-left:auto}
.main-nav a {font-size:13px;color:var(--muted);font-weight:500;padding:13px 0;position:relative}
.main-nav a:hover,.main-nav a.active {color:var(--text)}
.main-nav a::after {content:"";position:absolute;height:1px;bottom:8px;left:0;right:0;background:var(--accent);transform:scaleX(0);transition:transform .2s}
.main-nav a:hover::after,.main-nav a.active::after {transform:scaleX(1)}
.language-switch {gap:7px;padding-left:22px;border-color:var(--edge);font-size:11px}
.language-switch a {min-width:24px;color:var(--subtle)}
.lang-divider {color:var(--subtle);opacity:.5}
.theme-toggle {display:inline-flex;align-items:center;gap:8px;justify-content:center;min-width:44px;min-height:42px;padding:8px 12px;color:var(--text);border:1px solid var(--edge);border-radius:30px;background:#ffffff08;transition:background .2s,border-color .2s;font-size:11px;white-space:nowrap}
.theme-toggle:hover {background:var(--surface2);border-color:var(--accent)}
.theme-toggle .icon {width:18px;height:18px}
.theme-moon {display:none}
[data-theme="light"] .theme-sun {display:none}
[data-theme="light"] .theme-moon {display:block}
.menu-toggle {background:transparent;border:1px solid var(--edge);border-radius:50%;width:42px;height:42px;padding:12px}
.menu-toggle span {background:var(--text)}
.skip-link {background:var(--accent);color:var(--bg)}
.hero {padding:48px 0 26px;position:relative}
.hero-grid {grid-template-columns:1.02fr 1.15fr;gap:42px;align-items:center;min-height:430px}
.hero-copy {padding:12px 0}
.hero-copy>.eyebrow {margin-bottom:24px;max-width:530px}
.hero-identity {display:flex;align-items:center;gap:22px;margin-bottom:25px}
.hero-wordmark {color:var(--text);font-size:clamp(40px,4vw,58px);font-weight:720;letter-spacing:-.055em;line-height:1.1}
.hero-wordmark span {color:var(--accent)}
.identity-rule {display:block;width:40px;height:2px;background:var(--subtle);opacity:.5}
.hero-name {font-size:20px;font-weight:500;letter-spacing:-.02em;line-height:1.23;margin:0;color:var(--muted)}
.hero h1.hero-statement {font-size:clamp(44px,4.1vw,63px);line-height:1.11;font-weight:620;letter-spacing:-.055em;margin:0;max-width:650px;color:var(--text)}
.hero-statement span {display:block;white-space:normal;color:var(--text)}
.hero-intro {font-size:16px;line-height:1.75;margin-top:23px;max-width:530px;color:var(--muted)}
.hero .button-row {margin-top:29px;gap:12px}
.button {border-radius:30px;font-weight:600;font-size:13px;min-height:48px;padding:12px 20px;transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}
.button.primary {color:var(--primary-text);background:var(--primary-bg);border-color:var(--accent);box-shadow:0 0 26px #54e2d529,inset 0 1px 0 #ffffff4d}
.button.primary:hover {background:var(--primary-bg);box-shadow:0 0 35px #54e2d544;transform:translateY(-2px)}
.button.secondary {border-color:var(--edge-bright);color:var(--text);background:#a1c1d908}
.button.secondary:hover {background:var(--surface2);border-color:var(--accent);box-shadow:0 0 22px #54e2d518}
.text-link {color:var(--accent)}
.muted-link {color:var(--muted)}
.hero-job {font-size:12px;color:var(--muted);margin-top:16px}
.hero-art {position:relative;border:0;border-radius:0;box-shadow:none;background:none;overflow:visible;height:auto;min-width:0;align-self:center}
.hero-art::after {display:none}
.hero-art figcaption {position:static;display:flex;justify-content:space-between;align-items:center;gap:20px;margin:3px 14px 0;padding:15px 0 0;border-top:1px solid var(--edge);color:var(--subtle)}
.hero-art figcaption span {color:var(--subtle);font-size:8px;letter-spacing:.16em;font-weight:600}
.hero-art figcaption strong {color:var(--muted);font-size:10px;font-weight:450;margin:0;letter-spacing:0}
.security-scene {position:relative;min-height:380px}
.scene-placeholder {min-height:420px;display:grid;place-items:center;border:1px solid var(--edge);border-radius:24px;background:var(--glass);box-shadow:0 0 90px #2db8ac24}
.scene-placeholder>.icon {width:120px;height:120px;color:var(--accent)}
.section {padding:74px 0}
.projects-section {padding-top:30px;padding-bottom:64px;background:none;border:0}
.section-heading {grid-template-columns:1.4fr 1fr;gap:64px;align-items:end;margin-bottom:34px}
.section-heading h2 {font-size:clamp(29px,3vw,42px);max-width:760px}
.section-heading .eyebrow {margin-bottom:12px}
.section-heading>div>p:not(.eyebrow),.section-heading>p {font-size:14px;line-height:1.7;color:var(--muted);max-width:430px}
.section-heading .text-link {font-size:12px;margin-top:11px}
.project-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;align-items:stretch}
.project-card {position:relative;isolation:isolate;display:flex;flex-direction:column;grid-column:auto;min-width:0;overflow:hidden;border:1px solid var(--edge);border-radius:20px;background:var(--glass);box-shadow:inset 0 1px 0 #ffffff25,0 12px 30px var(--shadow);transition:transform .35s cubic-bezier(.2,.75,.2,1),box-shadow .35s,border-color .25s;transform-style:preserve-3d}
.project-card::before {content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(ellipse at var(--light-x,50%) var(--light-y,-20%),#92efe31a,transparent 63%);opacity:.75}
.project-card::after {content:"";position:absolute;pointer-events:none;height:1px;top:0;left:14%;right:14%;background:linear-gradient(90deg,transparent,var(--edge-bright),transparent);box-shadow:0 0 18px var(--glow)}
.project-card:hover {border-color:var(--edge-bright)}
.project-card-copy,.diana-card .project-card-copy {height:auto;min-height:0;padding:22px 20px 18px;display:flex;flex-direction:column}
.project-topline {align-items:flex-start;gap:12px}
.project-topline .eyebrow,.diana-card .eyebrow {font-size:8px;line-height:1.6;letter-spacing:.11em;color:var(--accent)}
.project-number {color:var(--subtle);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}
.project-card .project-status {font-size:10px;line-height:1.6;margin-top:13px;color:var(--muted);letter-spacing:0}
.tiny-dot {background:var(--accent)}
.project-card h3 {font-size:25px;line-height:1.18;font-weight:580;margin-top:8px;letter-spacing:-.045em;overflow-wrap:anywhere}
.project-card .project-tagline {font-size:13px;line-height:1.65;color:var(--text);margin-top:13px}
.project-bottom,.diana-card .project-bottom {padding:0 20px 22px;margin-top:auto}
.project-bottom .project-summary {font-size:12px;line-height:1.8;color:var(--muted);margin:0}
.tags {gap:6px;margin-top:20px}
.tags li,.project-bottom .tags li {border:1px solid var(--edge);background:#8dc6d509;color:var(--muted);font-size:10px;padding:4px 9px;border-radius:20px}
.project-bottom .tags {margin-top:16px}
.project-links {flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;padding-top:22px}
.project-links .button {border-radius:24px;min-height:41px;padding:9px 12px;font-size:11px;gap:8px}
.project-links .muted-link {font-size:10px;gap:6px}
.project-links .icon {width:15px;height:15px}
.diana-card .diana-preview {order:-1;display:block;padding:0;margin:13px 13px 0;grid-column:auto;grid-row:auto;overflow:hidden;border:1px solid var(--edge);border-radius:12px}
.diana-preview img {display:block;width:100%;height:177px;object-fit:cover;object-position:top;border-radius:0;box-shadow:none;transition:transform .6s}
.real-proof {order:-1;margin:13px 13px 0;border:1px solid var(--edge);border-radius:12px;background:var(--code)}
.proof-crop .proof-image-link {height:177px;overflow:hidden}
.proof-crop img {object-position:center 24%;transition:transform .6s}
.real-proof figcaption,.proof-crop figcaption {padding:11px 12px;min-height:0;border-color:var(--line);font-size:10px;line-height:1.65;color:var(--muted)}
.real-proof figcaption .text-link {font-size:10px;min-height:26px;margin-top:3px;gap:6px}
.proof-showcase .project-card-copy {min-height:0}
.parser-proof {margin:0 16px 20px;padding:16px;background:var(--code);border:1px solid var(--edge);border-radius:12px}
.proof-showcase .parser-proof {min-height:0}
.fixture-case {padding-bottom:13px;margin-bottom:13px;border-color:var(--line)}
.fixture-case .mini-label {font-size:10px;color:var(--muted)}
.fixture-case code {font-size:10px;color:var(--text)}
.fixture-case .code-result {color:var(--accent)}
.fixture-case .result-boundary {color:var(--blue)}
.code-label {font-size:9px;color:var(--subtle)}
.fixture-caption {font-size:10px;line-height:1.7;color:var(--muted)}
.card-abstract {order:-1;position:relative;display:grid;place-items:center;margin:13px 13px 0;height:155px;flex:none;border:1px solid var(--edge);border-radius:12px;overflow:hidden;background:radial-gradient(ellipse at 50% 60%,#167b7938,transparent 65%),linear-gradient(135deg,#121d3d40,#10203520)}
.card-abstract::before {content:"";position:absolute;inset:0;background-image:linear-gradient(var(--edge) 1px,transparent 1px),linear-gradient(90deg,var(--edge) 1px,transparent 1px);background-size:24px 24px;opacity:.18;mask-image:radial-gradient(ellipse,#000,transparent 80%)}
.abstract-node {display:grid;place-items:center;width:60px;height:60px;border:1px solid var(--edge-bright);border-radius:17px;color:var(--accent);background:var(--surface2);box-shadow:0 0 28px #55d9d32e;transform:rotate(-8deg)}
.abstract-node>.icon {width:30px;height:30px}
.abstract-orbit {position:absolute;width:160px;height:85px;border:1px solid var(--edge-bright);border-radius:50%;transform:rotate(-25deg);opacity:.6}
.orbit-two {transform:rotate(35deg);width:140px;height:98px;border-color:var(--cyan);opacity:.35}
.card-abstract>i {position:absolute;width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 13px var(--glow);left:22%;top:43%}
.card-abstract>i:nth-last-child(2) {left:auto;right:20%;top:64%;background:var(--blue)}
.card-abstract>i:last-child {left:53%;top:20%;width:4px;height:4px}
.abstract-search {background:radial-gradient(ellipse at 50% 60%,#5257b235,transparent 70%)}
.evidence-footnote {font-size:11px;color:var(--subtle);line-height:1.8;margin-top:26px;max-width:880px}
.evidence-footnote .icon {color:var(--accent)}
/* Content panels follow the selected paired-panel reference. */
.content-pair {display:grid;grid-template-columns:.95fr 1.05fr;gap:26px;align-items:start;padding-block:28px 44px}
.content-pair>.section {position:relative;min-width:0;padding:30px;border:1px solid var(--edge);border-radius:22px;background:var(--glass);box-shadow:inset 0 1px 0 #ffffff22,0 12px 40px var(--shadow)}
.content-pair>.section::after,.lower-pair>section::after {content:"";position:absolute;height:1px;bottom:-1px;left:20%;right:20%;background:linear-gradient(90deg,transparent,var(--cyan),transparent);box-shadow:0 0 16px var(--glow);opacity:.65}
.content-pair .container,.lower-pair .container {width:100%}
.content-pair .section-heading {display:block;margin-bottom:25px}
.content-pair .section-heading h2 {font-size:29px;max-width:none}
.content-pair .section-heading>div>p:not(.eyebrow),.content-pair .section-heading>p {font-size:13px;line-height:1.75;margin-top:15px}
.content-pair .section-heading .text-link {font-size:12px;margin-top:8px}
.latest-grid {display:block;position:relative;padding-left:22px;border-left:1px dotted var(--line)}
.latest-grid .writing-card {display:block;position:relative;min-height:0;padding:0 0 26px;background:none;border:0;border-radius:0;box-shadow:none;margin:0 0 26px;border-bottom:1px solid var(--edge)}
.latest-grid .writing-card:last-child {border-bottom:0;margin-bottom:0;padding-bottom:0}
.latest-grid .writing-card::before {content:"";position:absolute;left:-27px;top:5px;width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 14px #6fe8df66}
.latest-grid .writing-topline {display:flex;gap:12px;align-items:center;margin-bottom:10px}
.writing-language {font-size:10px;color:var(--subtle)}
.latest-grid .writing-card h3 {font-size:20px;line-height:1.4;font-weight:540;letter-spacing:-.035em}
.latest-grid .writing-card>p {font-size:12px;line-height:1.8;margin-top:10px;color:var(--muted)}
.latest-grid .writing-card .tags {margin-top:13px}
.latest-grid .writing-card-bottom {display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;margin-top:0;font-size:10px;line-height:1.7;color:var(--subtle)}
.latest-grid .writing-card-bottom .text-link {font-size:11px;gap:5px}
.services-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:stretch}
.scoped-service {position:relative;display:flex;flex-direction:column;gap:13px;padding:20px 18px;border:1px solid var(--edge);border-radius:16px;background:linear-gradient(145deg,#b2ddfa10,#76bdcf06);box-shadow:inset 0 1px 0 #ffffff15;min-width:0}
.scoped-service .service-icon {display:block;color:var(--accent);margin:0;padding:0}
.scoped-service .service-icon>.icon {width:25px;height:25px}
.scoped-service>div {height:100%}
.scoped-service h3 {font-size:18px;line-height:1.4;letter-spacing:-.025em;margin-bottom:15px;font-weight:550}
.service-scope {padding-bottom:18px}
.service-scope dt {color:var(--subtle);font-size:9px;line-height:1.6}
.service-scope dd {font-size:11px;line-height:1.8;color:var(--muted)}
.service-proof {border-color:var(--edge);padding:13px 0 15px}
.service-proof .mini-label {font-size:9px;color:var(--subtle);line-height:1.6}
.service-proof>span:last-child {font-size:10px;line-height:1.65;color:var(--accent)}
.scoped-service .button {font-size:10px;min-height:40px;padding:8px 12px;gap:6px;border-radius:22px;width:100%}
.lower-pair {display:grid;grid-template-columns:1.35fr 1fr;gap:26px;align-items:start;padding:0 0 68px}
.lower-pair>section {position:relative;min-width:0;padding:30px;border:1px solid var(--edge);border-radius:22px;background:var(--glass);box-shadow:inset 0 1px 0 #ffffff22,0 12px 40px var(--shadow)}
.lower-pair .about-grid {display:block}
.about-heading h2 {font-size:32px;max-width:590px}
.education {margin-top:25px;padding-left:17px;border-color:var(--accent)}
.education h3 {font-size:18px;color:var(--text)}
.education p:not(.mini-label) {font-size:12px;line-height:1.7}
.about-copy {margin-top:26px}
.bio {font-size:14px;line-height:1.95;color:var(--muted)}
.about-note {gap:18px;margin-top:23px;padding-top:22px;border-color:var(--edge)}
.about-note-number {display:grid;place-items:center;width:43px;height:43px;border:1px solid var(--edge);background:var(--surface2);border-radius:11px;font-size:20px;color:var(--accent);flex:none;padding:0}
.about-note h3 {font-size:17px;line-height:1.5;margin-bottom:6px;font-weight:550}
.about-note p {font-size:12px;line-height:1.85;color:var(--muted)}
.lower-pair .contact-box {display:block;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.contact-copy h2 {font-size:34px;line-height:1.15;margin-top:14px}
.contact-copy>p:not(.eyebrow):not(.mail-hint) {font-size:13px;line-height:1.8;max-width:none}
.contact-box .button-row {margin-top:23px;gap:10px}
.contact-box .button {font-size:11px;gap:8px;padding:11px 15px}
.contact-copy .mail-hint {font-size:10px;line-height:1.8;margin-top:17px;color:var(--subtle)}
.contact-direct {border-color:var(--edge);color:var(--text)}
.lower-pair .contact-direct {padding:24px 0 0;margin-top:26px;border-left:0;border-top:1px solid var(--edge);display:block}
.contact-icon {color:var(--accent);margin-bottom:15px}
.contact-direct>.mini-label {font-size:11px;color:var(--subtle)}
.email-address {font-size:13px;color:var(--text);overflow-wrap:anywhere}
.copy-email {font-size:12px;margin-top:12px;padding:5px 0;color:var(--accent)}
.copy-status {color:var(--accent);font-size:11px;line-height:1.8}
.profile-link,.instagram-link {font-size:11px}
.manual-copy input {background:var(--input);color:var(--text);border-color:var(--line)}
.site-footer {border-color:var(--edge);padding:34px 0;background:#07101b0a}
.site-footer .brand {font-size:24px}
.site-footer p {font-size:11px;color:var(--subtle);line-height:1.8}
.site-footer p>span {color:var(--subtle)}
.site-footer .text-link {font-size:11px;color:var(--muted)}
/* Project and writing pages use the same material, with a quiet reading surface. */
.detail-hero {padding:50px 0 48px;border-color:var(--edge);background:none}
.detail-hero-grid {gap:50px}
.detail-hero h1 {font-size:clamp(40px,5vw,65px);font-weight:600;line-height:1.13}
.detail-tagline {font-size:24px;color:var(--text)}
.detail-summary {font-size:15px;color:var(--muted);line-height:1.9}
.evidence-summary {background:var(--glass);border:1px solid var(--edge);border-radius:22px;box-shadow:inset 0 1px 0 #ffffff22,0 12px 35px var(--shadow);padding:28px}
.evidence-summary .metric-note,.evidence-summary .project-status {border-color:var(--edge)}
.metric,.output-title {color:var(--text)}
.output-summary,.role-note {color:var(--muted)}
.detail-layout {gap:65px;padding-block:48px 65px}
.detail-nav {top:130px}
.detail-nav a {color:var(--muted)}
.detail-nav a>span,.detail-nav .mini-label {color:var(--subtle)}
.detail-content>section {border-color:var(--edge);padding-bottom:36px;margin-bottom:36px}
.detail-content>section>.eyebrow {color:var(--accent)}
.detail-content h2 {font-size:29px}
.detail-proof .real-proof,.detail-proof .parser-proof {margin:25px 0 0}
.detail-proof .real-proof img {height:auto;object-fit:contain}
.detail-proof .real-proof figcaption {font-size:12px}
.detail-proof .fixture-case code {font-size:14px}
.detail-proof .fixture-caption {font-size:12px}
.observed-result>div,.limits-section {background:var(--glass);border-color:var(--edge)!important;border-radius:14px}
.observed-result dt {color:var(--subtle)}
.observed-result dd {color:var(--text)}
.approach-list li>span {border-color:var(--edge);background:var(--surface2);color:var(--accent)}
.project-visual {background:var(--glass);border-color:var(--edge)}
.visual-label,.visual-note,.flow-number {color:var(--subtle)}
.flow {border-color:var(--edge)}
.flow li {color:var(--muted)}
.matrix {background:var(--surface2);border-color:var(--line)}
.matrix i {background:var(--surface);border-color:var(--accent)}
.matrix i:after {border-color:var(--accent)}
.matrix .deny {background:var(--surface2);border-color:var(--line)}
.matrix .deny:after {border-color:var(--subtle)}
.dns-visual span,.dns-visual div,.search-core,.search-visual span,.parser-visual i {background:var(--surface2);border-color:var(--accent);color:var(--accent)}
.dns-visual:after {border-color:var(--line)}
.parser-visual>span {color:var(--accent)}
.contact-box {border-color:var(--edge);background:var(--glass);border-radius:22px;box-shadow:inset 0 1px 0 #ffffff25,0 12px 40px var(--shadow)}
.contact-compact {padding-bottom:65px}
.diana-wide {border-color:var(--edge);background:var(--surface);border-radius:18px}
.diana-case h2 {font-size:30px}
.diana-case p,.diana-work li {color:var(--muted)}
.diana-work {background:var(--glass);border-color:var(--edge);border-radius:18px}
.diana-cta {border-color:var(--edge)}
.writing-hero,.article-hero {padding-top:48px;padding-bottom:38px}
.writing-hero h1,.article-hero h1 {font-size:clamp(38px,4.8vw,62px);font-weight:600;line-height:1.16}
.writing-deck {color:var(--muted);font-size:17px;line-height:1.85}
.writing-tabs {border-color:var(--edge)}
.writing-tabs a {color:var(--muted)}
.writing-tabs a[aria-current] {color:var(--accent);border-color:var(--accent)}
.writing-filters {background:var(--glass);border-color:var(--edge);border-radius:18px}
.writing-filters label,.writing-count {color:var(--muted)}
.writing-filters input,.writing-filters select {background:var(--input);border-color:var(--line);color:var(--text);border-radius:10px;color-scheme:inherit}
.writing-filters input::placeholder {color:var(--subtle)}
.writing-grid:not(.latest-grid) {gap:22px}
.writing-grid:not(.latest-grid) .writing-card {padding:27px;background:var(--glass);border:1px solid var(--edge);border-radius:18px;box-shadow:inset 0 1px 0 #ffffff22,0 12px 30px var(--shadow)}
.writing-card h2,.writing-card h3 {font-weight:550;line-height:1.4}
.writing-card>p,.writing-card-bottom,.writing-card .writing-language {color:var(--muted)}
.writing-card-bottom {border-color:var(--edge)}
.translation-notice,.writing-empty {background:var(--glass);border-color:var(--line);color:var(--muted)}
.article-layout,.writing-end {border-color:var(--edge)}
.article-meta,.article-toc>.mini-label {color:var(--subtle)}
.article-toc a {color:var(--muted)}
.article-prose>p,.article-prose ul,.article-prose ol {color:var(--muted)}
.article-prose h2,.article-prose h3 {font-weight:600;color:var(--text)}
.article-prose code {color:var(--text);background:var(--surface2)}
.code-block {background:var(--code);border-color:var(--line);border-radius:14px}
.code-toolbar {background:var(--surface2);border-color:var(--line)}
.code-toolbar>span {color:var(--muted)}
.code-toolbar button {color:var(--accent);border-color:var(--line)}
.code-block pre code {color:var(--text);background:transparent}
.code-status {color:var(--accent);border-color:var(--line)}
/* Progressive motion: content is visible unless an observer is successfully installed. */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .project-card:hover {transform:perspective(900px) translateY(-7px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));box-shadow:inset 0 1px 0 #ffffff30,0 20px 45px var(--shadow),0 0 24px #56daca13}
  .project-card:hover .diana-preview img,.project-card:hover .proof-image-link img {transform:scale(1.035)}
  .scoped-service {transition:transform .25s,border-color .25s,background .25s}
  .scoped-service:hover {transform:translateY(-4px);border-color:var(--edge-bright);background:var(--glass)}
}
@media(prefers-reduced-motion:no-preference) {
  .reveal-ready .reveal {transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1);transition-delay:var(--reveal-delay,0ms)}
  .reveal-ready .reveal:not(.is-visible) {opacity:0;transform:translateY(24px)}
  .reveal-ready .reveal.is-visible {opacity:1}
  .js .hero-copy {animation:hero-arrive .8s both}
  @keyframes hero-arrive {from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
}
@media(min-width:1600px) {.hero {padding-top:74px}.hero-grid {gap:64px;min-height:510px}.hero h1.hero-statement {font-size:66px}}
@media(max-width:1359px) {
  .project-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .project-card h3 {font-size:31px}
  .project-topline .eyebrow,.diana-card .eyebrow {font-size:10px}
  .project-card .project-status {font-size:11px}
  .project-card .project-tagline {font-size:16px}
  .project-bottom .project-summary {font-size:13px}
  .project-card-copy,.diana-card .project-card-copy {padding:25px 25px 20px}
  .project-bottom,.diana-card .project-bottom {padding:0 25px 25px}
  .diana-preview img,.proof-crop .proof-image-link {height:235px}
  .project-links .button {font-size:12px}
  .project-links .muted-link {font-size:12px}
  .real-proof figcaption,.proof-crop figcaption,.fixture-caption {font-size:11px}
  .fixture-case code {font-size:12px}
  .card-abstract {height:200px}
}
@media(max-width:1100px) {
  .container {width:calc(100% - 64px)}
  .header-inner {width:calc(100% - 64px);gap:20px;padding-inline:22px}
  .main-nav {gap:20px}.main-nav a {font-size:12px}
  .language-switch {padding-left:15px}.theme-label {display:none}.theme-toggle {padding:10px}
  .hero {padding:40px 0 25px}.hero-grid {gap:25px;grid-template-columns:1fr 1fr;min-height:420px}
  .hero h1.hero-statement {font-size:46px}.hero-wordmark {font-size:44px}.hero-name {font-size:17px}
  .hero-identity {gap:16px}.identity-rule {width:25px}.hero-intro {font-size:14px}
  .hero .button {font-size:12px;padding:12px 16px}.hero-job {font-size:11px}
  .security-scene {min-height:340px}
  .content-pair {gap:22px;grid-template-columns:1fr 1fr}
  .content-pair>.section,.lower-pair>section {padding:25px}
  .content-pair .section-heading h2 {font-size:26px}
  .services-grid {grid-template-columns:1fr}
  .scoped-service {display:grid;grid-template-columns:28px 1fr;gap:14px}
  .scoped-service h3 {font-size:18px}.service-scope dd {font-size:12px}
  .service-scope {display:block}
  .service-proof {margin-top:0;padding-top:0;border-top:0}
  .scoped-service .button {width:auto;align-self:flex-start}
  .lower-pair {grid-template-columns:1.1fr 1fr;gap:22px}
  .about-heading h2,.contact-copy h2 {font-size:30px}
  .detail-layout {gap:40px}.detail-hero-grid {gap:35px}
}
@media(max-width:900px) {
  .container {width:calc(100% - 48px)}
  .header-inner {width:calc(100% - 48px);gap:15px;padding-inline:20px;min-height:65px}
  .brand {font-size:25px}.main-nav {gap:14px}.main-nav a {font-size:11px}.language-switch {font-size:10px;padding-left:12px;gap:5px}
  .theme-toggle {min-width:40px;min-height:40px;padding:9px}
  .hero-grid {grid-template-columns:1fr 1fr;gap:20px;min-height:410px}
  .hero h1.hero-statement {font-size:39px}.hero-wordmark {font-size:39px}.hero-name {font-size:16px}
  .hero-identity {gap:14px}.identity-rule {width:20px}.hero-intro {font-size:14px;line-height:1.8}
  .hero-copy>.eyebrow {font-size:8px;letter-spacing:.13em;margin-bottom:21px}
  .hero .button-row {flex-direction:column;align-items:flex-start;gap:10px;margin-top:22px}.hero .button {font-size:11px;padding:10px 15px;min-height:43px}
  .hero-art figcaption {display:block;margin-inline:4px}.hero-art figcaption strong {margin-top:7px}
  .section-heading {gap:32px}.section-heading h2 {font-size:32px}
  .section-heading>div>p:not(.eyebrow),.section-heading>p {font-size:13px}
  .content-pair {gap:18px}.content-pair>.section,.lower-pair>section {padding:23px}
  .content-pair .section-heading h2 {font-size:25px}.latest-grid .writing-card h3 {font-size:18px}
  .latest-grid .writing-card-bottom {display:block}.latest-grid .writing-card-bottom .text-link {margin-top:5px}
  .lower-pair {gap:18px}.about-note {gap:13px}.about-note-number {width:36px;height:36px;font-size:17px}
  .contact-copy h2 {font-size:29px}.contact-box .button-row {flex-direction:column;align-items:stretch}
  .contact-box .button {font-size:11px;justify-content:space-between}
  .contact-direct>.email-address {font-size:12px}.contact-direct {padding-left:22px}
  .detail-layout {grid-template-columns:minmax(0,1fr)}
  .detail-nav {position:static;flex-direction:row;flex-wrap:wrap;gap:4px 19px;border-bottom:1px solid var(--edge);padding-bottom:22px}
  .detail-nav>p {flex-basis:100%;margin-bottom:4px}.detail-nav a {font-size:12px}
  .article-layout {grid-template-columns:1fr}.article-toc {position:static;border-color:var(--edge);max-height:none}
}
@media(max-width:760px) {
  .site-header {top:12px;margin-top:14px}.header-inner {width:calc(100% - 32px);min-height:64px;padding:9px 11px 9px 19px;gap:12px;position:relative;flex-wrap:wrap}
  .brand {font-size:27px;margin-right:auto}.language-switch {margin-left:auto;padding-left:0;border:0;gap:5px;font-size:10px}
  .language-switch a {padding:9px 1px;min-width:23px}.theme-toggle {min-width:40px;min-height:40px}.theme-toggle .icon {width:17px;height:17px}
  .menu-toggle {display:flex;flex-direction:column;justify-content:center;gap:5px;flex:none;margin:0;width:40px;height:40px;border:1px solid var(--edge);padding:11px}
  .menu-toggle span {display:block;width:16px;height:1.5px;background:var(--text);transition:transform .2s}
  .menu-toggle[aria-expanded="true"] span:first-child {transform:translateY(3.25px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] span:last-child {transform:translateY(-3.25px) rotate(-45deg)}
  .main-nav {margin:0;flex-direction:column;align-items:stretch;gap:0;order:5;width:100%;padding:15px 0 5px}
  .main-nav a {font-size:14px;min-height:44px;padding:12px;color:var(--text)}
  .main-nav a::after {display:none}
  .js .main-nav {display:none;position:absolute;top:calc(100% + 10px);left:0;right:0;width:auto;padding:12px;border:1px solid var(--edge);border-radius:23px;background:var(--glass-solid);box-shadow:0 15px 35px var(--shadow);backdrop-filter:blur(18px)}
  .js .main-nav.is-open {display:flex}
  .container {width:calc(100% - 40px)}
  .hero {padding:38px 0 37px}
  .hero-grid {grid-template-columns:1fr;gap:32px;min-height:0}
  .hero-copy {padding:0}.hero-copy>.eyebrow {font-size:9px;margin-bottom:22px}
  .hero-identity {gap:18px;margin-bottom:23px}.hero-wordmark {font-size:44px}.hero-name {font-size:17px}.identity-rule {width:29px}
  .hero h1.hero-statement {font-size:clamp(38px,7.5vw,55px);line-height:1.12;max-width:620px;letter-spacing:-.055em}
  .hero-intro {font-size:15px;line-height:1.8;max-width:550px;margin-top:21px}
  .hero .button-row {flex-direction:row;align-items:center;margin-top:25px;gap:10px}
  .hero .button {min-height:46px;padding:11px 17px;font-size:12px}.hero-job {font-size:12px;margin-top:15px}
  .hero-art {width:100%;height:auto}.security-scene {min-height:0}
  .hero-art figcaption {display:flex;margin-inline:5px;padding-top:12px}.hero-art figcaption span {font-size:8px}.hero-art figcaption strong {font-size:9px;margin:0}
  .scene-placeholder {min-height:300px}
  .projects-section {padding-top:26px;padding-bottom:38px}.section-heading {grid-template-columns:1fr;gap:17px;margin-bottom:25px}
  .section-heading h2 {font-size:32px;max-width:560px}.section-heading .eyebrow {font-size:9px;margin-bottom:10px}
  .section-heading>div>p:not(.eyebrow),.section-heading>p {font-size:13px}.section-heading .text-link {margin-top:9px}
  .project-grid {grid-template-columns:1fr;gap:22px}.project-card {border-radius:19px}
  .project-card-copy,.diana-card .project-card-copy {padding:24px 23px 19px}.project-bottom,.diana-card .project-bottom {padding:0 23px 24px}
  .project-card h3 {font-size:30px}.project-card .project-tagline {font-size:15px;line-height:1.7}.project-bottom .project-summary {font-size:13px;line-height:1.85}
  .project-topline .eyebrow,.diana-card .eyebrow {font-size:9px}.project-card .project-status {font-size:11px}
  .diana-card .diana-preview,.real-proof {margin:12px 12px 0}.diana-preview img,.proof-crop .proof-image-link {height:210px}
  .real-proof figcaption {font-size:11px;padding:12px 14px}.real-proof figcaption .text-link {font-size:11px}
  .project-links .button {font-size:12px;min-height:43px}.project-links .muted-link {font-size:12px}
  .card-abstract {height:170px;margin:12px 12px 0}.parser-proof {margin:0 20px 22px;padding:18px}.fixture-case code {font-size:12px}.fixture-caption {font-size:11px}
  .evidence-footnote {font-size:10px;margin-top:21px}
  .content-pair,.lower-pair {display:grid;grid-template-columns:1fr;gap:22px;padding-top:20px;padding-bottom:28px}
  .content-pair>.section,.lower-pair>section {padding:25px 23px;border-radius:20px}
  .content-pair .section-heading h2 {font-size:28px}.content-pair .section-heading>div>p:not(.eyebrow),.content-pair .section-heading>p {font-size:13px}
  .latest-grid .writing-card h3 {font-size:20px}.latest-grid .writing-card>p {font-size:13px}.latest-grid .writing-card-bottom {display:flex}.latest-grid .writing-card-bottom .text-link {margin:0;font-size:11px}
  .services-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.scoped-service {display:flex;padding:18px 16px;gap:13px}
  .scoped-service h3 {font-size:17px;margin-bottom:14px}.service-scope {display:block}.service-scope dd {font-size:11px}.service-scope dt {font-size:8px}
  .service-proof {padding-top:13px;border-top:1px solid var(--edge)}.scoped-service .button {width:100%;font-size:10px;padding:9px 11px}
  .lower-pair {padding-top:0;padding-bottom:45px}.about-heading h2 {font-size:30px}.bio {font-size:14px}.about-note h3 {font-size:18px}.about-note p {font-size:13px}
  .contact-copy h2 {font-size:32px}.contact-copy>p:not(.eyebrow):not(.mail-hint) {font-size:14px}.contact-box .button {font-size:12px;padding:12px 17px}
  .contact-copy .mail-hint {font-size:11px}.contact-direct>.email-address {font-size:13px}.contact-direct>.mini-label {font-size:11px}.copy-email {font-size:12px}
  .lower-pair .contact-direct {padding-top:24px}.contact-direct .instagram-link {margin-top:12px}.site-footer {padding:28px 0}
  .footer-inner {display:flex;align-items:flex-start}.site-footer p {font-size:10px;max-width:280px}.site-footer .text-link {font-size:10px;margin-top:7px}
  .detail-hero {padding:35px 0 37px}.detail-hero-grid {grid-template-columns:1fr;gap:28px}.detail-hero h1 {font-size:40px;max-width:650px}
  .detail-tagline {font-size:22px}.detail-summary {font-size:14px}.detail-hero .button {font-size:11px}.back-link {margin-bottom:25px}
  .evidence-summary {padding:24px;display:block}.evidence-summary>.eyebrow {margin-top:0}.evidence-summary .icon-box {display:none}
  .evidence-summary .metric.output-title {font-size:25px}.evidence-summary .metric-note {margin-top:17px}
  .detail-layout {padding-top:30px;padding-bottom:40px;gap:30px}.detail-nav {padding-bottom:20px}.detail-nav a {font-size:11px}
  .detail-content h2 {font-size:27px}.detail-content>section>p:not(.eyebrow):not(.role-note):not(.project-status) {font-size:15px}
  .detail-content .tags li {font-size:11px;padding:6px 10px}.role-note {font-size:12px}
  .contact-compact {padding:0 0 45px}.contact-box {padding:28px 24px;grid-template-columns:1fr;gap:26px}.contact-direct {padding:24px 0 0;border-left:0;border-top:1px solid var(--edge);display:block}
  .observed-result {grid-template-columns:1fr 1fr}.observed-result>div:last-child {grid-column:1/-1}
  .diana-case h2 {font-size:27px}.diana-wide figcaption {font-size:12px}.diana-work {padding:23px}.diana-case-grid {gap:28px;margin:35px 0}
  .writing-hero,.article-hero {padding-top:34px}.writing-hero h1,.article-hero h1 {font-size:37px}.writing-deck {font-size:15px;line-height:1.85}
  .article-prose {font-size:16px}.writing-grid:not(.latest-grid) .writing-card {padding:24px}.writing-card h2,.writing-card h3 {font-size:24px}
}
@media(max-width:500px) {
  .hero .button-row {flex-wrap:wrap}.hero .button {font-size:11px;padding:11px 15px;gap:9px}
  .hero-identity {gap:15px}.hero-wordmark {font-size:39px}.hero-name {font-size:16px}.identity-rule {width:24px}
  .hero h1.hero-statement {font-size:40px;line-height:1.13}.hero-intro {font-size:14px}
  .services-grid {grid-template-columns:1fr}.scoped-service {display:grid;grid-template-columns:28px minmax(0,1fr);gap:15px;padding:21px}
  .scoped-service h3 {font-size:19px}.service-scope dd {font-size:12px}.service-scope dt {font-size:9px}.service-proof .mini-label {font-size:10px}.service-proof>span:last-child {font-size:11px}
  .scoped-service .button {font-size:11px;min-height:42px;width:auto;align-self:flex-start}.latest-grid .writing-card-bottom {align-items:flex-start;flex-direction:column;gap:6px}
  .content-pair>.section,.lower-pair>section {padding:24px 21px}.content-pair .section-heading h2 {font-size:27px}
  .footer-inner {display:block}.site-footer p {max-width:none}.site-footer .text-link {margin-top:17px}
  .writing-filters {padding:21px}.writing-hero h1,.article-hero h1 {font-size:33px}.article-toc ol {grid-template-columns:1fr}
}
@media(max-width:350px) {
  .container {width:calc(100% - 32px)}.header-inner {width:calc(100% - 24px);padding-left:15px;gap:7px}.brand {font-size:24px}
  .hero h1.hero-statement {font-size:36px}.hero-wordmark {font-size:36px}.hero-name {font-size:14px}
  .hero .button-row {flex-direction:column;align-items:stretch}.hero .button {justify-content:space-between;font-size:12px}
  .project-card h3 {font-size:27px}.project-links {align-items:flex-start;gap:13px}.content-pair>.section,.lower-pair>section {padding:23px 19px}
  .hero-art figcaption {gap:14px}.hero-art figcaption span {font-size:7px}.hero-art figcaption strong {font-size:8px}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}
  *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .project-card:hover,.scoped-service:hover,.button:hover {transform:none!important}
  .reveal-ready .reveal {opacity:1!important;transform:none!important}
}
html:not(.js) .theme-toggle {display:none}

@media(min-width:761px){.project-card{backdrop-filter:blur(8px)}.content-pair>.section,.lower-pair>section{backdrop-filter:blur(10px)}}
html[data-theme="dark"] .security-scene{--scene-cyan:#7bf4e8;--scene-green:#a7f9d1;--scene-node-top:#426b78;--scene-core-light:#baf4e5}
html[data-theme="dark"] .security-scene .security-scene__routes path{stroke-opacity:.55}
html[data-theme="dark"] .security-scene .security-scene__rim{stroke-opacity:.55}

@media(max-width:760px){.language-switch{order:2}.theme-toggle{order:3}.menu-toggle{order:4}}
.reveal-ready .project-card.is-visible{transition-delay:0ms}
/* Keep dated metadata readable on both dark and light glass surfaces. */
.writing-card-bottom > span {color:var(--subtle)}
