@font-face{font-family:'Bricolage Grotesque';src:url(assets/fonts/bricolage-grotesque-latin-wght.woff2) format('woff2');font-weight:200 800;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url(assets/fonts/ibm-plex-sans-latin-wght.woff2) format('woff2');font-weight:100 700;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url(assets/fonts/ibm-plex-mono-latin-500.woff2) format('woff2');font-weight:500;font-display:swap}
[hidden]{display:none!important}
:root{
  --bg:#F6F5F1;--surface:#FFFFFF;--ink:#111827;--on-ink:#FFFFFF;--body:#374151;--muted:#4B5563;
  --line:#E5E3DC;--border:#D6D3CB;--chip:#F1F0EB;--soft:#E8EEFD;--soft-ink:#1E3A8A;
  --accent:#1D4ED8;--accent-text:#1D4ED8;--header:rgba(246,245,241,.92);--bar:rgba(255,255,255,.95);--panel:#0B1220;
  --display:'Bricolage Grotesque','Helvetica Neue',Arial,sans-serif;
  --sans:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  color-scheme:light;
  box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0E1116;--surface:#161B22;--ink:#F3F4F6;--on-ink:#0E1116;--body:#D1D5DB;--muted:#A1A8B3;
    --line:#262C36;--border:#3A4150;--chip:#212733;--soft:#16213F;--soft-ink:#BFDBFE;
    --accent-text:#8DAAF0;--header:rgba(14,17,22,.9);--bar:rgba(22,27,34,.95);--panel:#172036;color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0E1116;--surface:#161B22;--ink:#F3F4F6;--on-ink:#0E1116;--body:#D1D5DB;--muted:#A1A8B3;
  --line:#262C36;--border:#3A4150;--chip:#212733;--soft:#16213F;--soft-ink:#BFDBFE;
  --accent-text:#8DAAF0;--header:rgba(14,17,22,.9);--bar:rgba(22,27,34,.95);--panel:#172036;color-scheme:dark;
}
html{scroll-behavior:smooth;scroll-padding-top:calc(76px + env(safe-area-inset-top,0px))}
@media(max-width:959px){html{scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%}
a{color:var(--accent-text)}
:focus-visible{outline:3px solid var(--accent-text);outline-offset:3px;border-radius:6px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 20px}
@media(min-width:900px){.wrap{padding:0 40px}}
.skip-link{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--on-ink);padding:10px 14px;border-radius:8px;z-index:100}
.skip-link:focus{left:12px}
.i{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.b{width:20px;height:20px;fill:currentColor;flex-shrink:0}
.social{display:flex;gap:8px}
.social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--ink);text-decoration:none}
.social a:hover{color:var(--accent-text);border-color:var(--accent-text)}
.tile{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:var(--soft);color:var(--soft-ink);flex-shrink:0}
::selection{background:var(--soft)}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--ink);cursor:pointer}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;border-radius:12px;font-weight:600;font-size:16px;text-decoration:none;border:1px solid transparent;cursor:pointer;font-family:var(--sans)}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{filter:brightness(1.1)}
.btn-ghost{background:var(--surface);color:var(--ink);border-color:var(--border)}
.btn-ghost:hover{border-color:var(--ink)}
.btn-light{background:#fff;color:#0B1220}
.btn-outline-light{border-color:#334155;color:#BFDBFE}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{padding:5px 11px;border-radius:999px;background:var(--chip);font-size:13px;font-weight:500;color:var(--body)}

/* header */
.site-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:var(--header);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
.site-header :is(a,button){scroll-margin-top:-76px}
.brand{display:flex;align-items:center;min-height:44px}
.brand img{display:block;height:40px;width:auto}
.logo-dark{display:none!important}
:root[data-theme="dark"] .logo-light{display:none!important}
:root[data-theme="dark"] .logo-dark{display:block!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .logo-light{display:none!important}:root:not([data-theme="light"]) .logo-dark{display:block!important}}
.nav{display:none;align-items:center;gap:28px;font-size:15px;font-weight:500}
.nav a{color:var(--ink);text-decoration:none}
.nav a:hover{color:var(--accent-text)}
.hdr-actions{display:flex;gap:8px;align-items:center}
.theme-pill{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px 0 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--ink);font:600 14px var(--sans);cursor:pointer}
.theme-pill:hover{border-color:var(--ink)}
.theme-pill .i{width:20px;height:20px;color:var(--accent-text)}
[data-theme-toggle] .sun{display:none}
:root[data-theme="dark"] [data-theme-toggle] .sun{display:block}:root[data-theme="dark"] [data-theme-toggle] .moon{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) [data-theme-toggle] .sun{display:block}:root:not([data-theme="light"]) [data-theme-toggle] .moon{display:none}}
.hdr-cta{display:none;min-height:44px;padding:0 18px;font-size:15px}
.menu-open{display:inline-flex}
@media(min-width:960px){.nav,.hdr-cta{display:inline-flex}.hdr-actions .menu-open{display:none}}

/* mobile menu */
.menu{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);background:var(--bg);color:var(--ink)}
.menu[open]{display:flex;flex-direction:column}
.menu::backdrop{background:var(--bg)}
html.menu-is-open{overflow:hidden}
.menu-top{display:flex;align-items:center;justify-content:space-between;height:68px;padding:0 20px;border-bottom:1px solid var(--line)}
.menu nav{display:flex;flex-direction:column;padding:8px 20px}
.menu nav a{display:flex;align-items:center;justify-content:space-between;min-height:66px;border-bottom:1px solid var(--line);font-family:var(--display);font-size:26px;font-weight:600;color:var(--ink);text-decoration:none}
.menu nav a span{display:flex;align-items:center;gap:14px}
.theme-row{margin:14px 20px 0;display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:0 16px;border-radius:14px;border:1px solid var(--border);background:var(--surface);color:var(--ink);font:600 16px var(--sans);cursor:pointer}
.theme-row-label{display:flex;align-items:center;gap:12px}
.theme-row-hint{font-size:13px;font-weight:500;color:var(--muted)}
.menu-foot{margin-top:auto;padding:20px}
.menu-foot .btn{width:100%}
.menu-foot p{text-align:center;font-size:13px;color:var(--muted);margin:10px 0 0}

.eyebrow{font:12px/1.5 monospace;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted)}
.button{display:inline-block;background:var(--accent);color:white;font-weight:600;font-size:14px;padding:15px 20px;border-radius:5px;text-decoration:none}
.button:hover{background:#2055d8}
.footer{padding:0 0 30px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
@media(max-width:580px){
.footer span:last-child{display:none}
}

/* hero */
.hero{padding:28px 0 40px}
.hero-grid{display:grid;gap:36px}
@media(min-width:960px){.hero{padding:56px 0 72px}.hero-grid{grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:64px;align-items:center}}
.status{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:13px;font-weight:500;color:var(--body)}
.dot{width:8px;height:8px;border-radius:50%;background:#16A34A}
/* Blinks continuously; reduced-motion users get a solid dot. */
.dot{animation:dot-blink 1.6s ease-in-out infinite}
@keyframes dot-blink{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.dot{animation:none}}
h1,h2,h3{text-wrap:balance}
.home h1{font-family:var(--display);font-weight:700;letter-spacing:-.025em;line-height:1.04;margin:20px 0;font-size:clamp(30px,8.6vw,68px)}
@media(min-width:960px){.home h1{font-size:clamp(44px,5.1vw,68px)}}
.home h1 span{display:block;white-space:nowrap}
@media(max-width:399px){.home h1 span{white-space:normal}}
.home h1 .second{color:var(--accent-text)}
.lede{font-size:clamp(17px,2.2vw,20px);color:var(--body);max-width:36em;margin:0 0 28px}
.ctas{display:flex;flex-direction:column;gap:10px}
@media(min-width:560px){.ctas{flex-direction:row}}
.hero-stack{display:none;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.hero-stack > span{display:block;font-size:13px;color:var(--muted);margin-bottom:10px}
@media(min-width:960px){.hero-stack{display:block}}
.profile{display:block;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:0 24px 48px -24px rgba(17,24,39,.25)}

.profile-top{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.avatar-img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:16px;border:1px solid var(--line)}
.profile-top{flex-direction:column;align-items:stretch;text-align:left;gap:14px}
.profile{overflow:hidden}
@media(max-width:959px){.hero-grid{display:flex;flex-direction:column;gap:0}.hero-text{display:contents}.hero-text .status{align-self:flex-start;order:0}.hero-text h1{order:1}.hero-text .lede{order:2}.hero-text .ctas{order:3}.hero-grid .profile{order:4;margin-top:28px}.hero-text .bio-lede{order:5;margin:24px 0 0}.hero-text .hero-stack{order:6}}
.bio-lede{font-size:16px;color:var(--muted);max-width:38em;margin:-12px 0 28px}
.profile dl{margin-top:18px}
.profile-social{margin-top:16px}
.profile-social a{width:auto;flex:1;gap:8px;padding:0 14px;font-weight:600;font-size:15px}
.profile .avatar-img{width:calc(100% + 56px);max-width:none;margin:-28px -28px 0;border:0;border-radius:0;aspect-ratio:1/1}
@media(max-width:959px){.profile{border-radius:20px;padding:22px}.profile .avatar-img{width:calc(100% + 44px);margin:-22px -22px 0}}
.profile h2{margin:0;font-family:var(--display);font-size:24px}
.profile p{margin:0;color:var(--muted);font-size:14px}
.profile dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.profile dd{font-size:14.5px;line-height:1.35}
.profile dl div{min-width:0}
.profile dl div{background:var(--bg);border-radius:12px;padding:12px 14px}
.profile dt{font-size:12.5px;color:var(--muted)}
.profile dd{margin:2px 0 0;font-weight:600}

/* sections */
.home main section{padding:44px 0}
@media(min-width:960px){.home main section{padding:72px 0}}
.band{background:var(--surface);border-block:1px solid var(--line)}
h2.title{font-family:var(--display);font-weight:700;letter-spacing:-.02em;line-height:1.08;font-size:clamp(28px,4.5vw,48px);margin:0}
.sec-head{display:flex;flex-direction:column;gap:12px;margin-bottom:28px}
@media(min-width:960px){.sec-head{flex-direction:row;justify-content:space-between;align-items:flex-end;margin-bottom:40px}}
.sec-head p{margin:0;color:var(--muted);max-width:30em}

/* services */
.services{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
@media(min-width:960px){.services{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.svc{grid-column:span 2}.svc.ai,.svc:nth-child(4){grid-column:span 3}}
.svc{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;row-gap:4px;align-items:start;padding:18px 20px;border-radius:16px;background:var(--bg);color:var(--ink)}
.svc .tile{grid-row:span 2}
.svc h3{margin:0;font-family:var(--display);font-size:19px;font-weight:600;line-height:1.2}
.svc p{margin:0;font-size:14px;color:var(--muted);line-height:1.45}
.svc.ai{background:var(--soft)}
.svc.ai .tile{background:var(--surface)}

/* process */
.steps{display:grid;gap:20px;list-style:none;margin:0;padding:0}
@media(min-width:900px){.steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}}
.steps li{display:flex;gap:14px}
@media(min-width:900px){.steps li{flex-direction:column;padding-top:20px;border-top:2px solid var(--ink)}}
.steps small{display:block;font-size:13px;font-weight:500;color:var(--muted)}
.steps h3{margin:0 0 2px;font-size:17px;font-family:var(--display);font-weight:600}
.steps p{margin:0;font-size:15px;color:var(--muted)}
.fit{margin-top:32px;padding:20px;border-radius:16px;background:var(--bg)}
.fit h3{margin:0 0 10px;font-family:var(--display);font-size:19px}
.fit ul{margin:0;padding-left:20px;color:var(--body)}
.fit li{margin:6px 0}

/* contact */
.contact{margin:0 12px;padding:36px 22px;border-radius:24px;background:var(--panel);color:#F8FAFC;display:grid;gap:24px}
@media(min-width:960px){.contact{max-width:1120px;margin:0 auto;padding:72px 64px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:48px}}
.contact h2{margin:0 0 12px;font-family:var(--display);font-size:clamp(30px,5vw,56px);line-height:1.04;letter-spacing:-.02em}
.contact p{margin:0;color:#CBD5E1;font-size:17px}
.contact .btns{display:flex;flex-direction:column;gap:10px}
#contact-wrap{padding-bottom:0}
.site-footer{padding:32px 0 calc(40px + env(safe-area-inset-bottom,0px));font-size:13px;color:var(--muted)}
@media(min-width:960px){.site-footer{padding-bottom:40px}}
.site-footer .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.site-footer .wrap{align-items:center}
.site-footer .wrap > span:last-child{font-family:var(--mono)}

/* sticky mobile CTA */
.dock{transition:transform .25s,opacity .25s}
.dock.away{transform:translateY(140%);opacity:0;pointer-events:none}
.dock{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:25;display:flex;gap:8px;padding:8px;border-radius:18px;background:var(--bar);border:1px solid var(--line);box-shadow:0 10px 30px rgba(17,24,39,.18);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.dock .btn{flex-grow:1;min-height:48px}
.dock .icon-btn{width:48px;height:48px}
@media(min-width:960px){.dock{display:none}}
@media(max-width:959px){
  .profile dl div{padding:10px 12px}
  .profile dd{font-size:14px}
  .profile .avatar-img{aspect-ratio:4/3.3;object-position:50% 12%}
  .site-footer .wrap{flex-direction:column;align-items:center;text-align:center;gap:14px}
}

/* blog */
.posts{display:grid;gap:12px}
@media(min-width:900px){.posts{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
.post{display:flex;flex-direction:column;gap:10px;padding:22px;border-radius:18px;background:var(--bg);color:var(--ink);text-decoration:none;border:1px solid transparent}
#blog.is-enhanced:not(.all) .post:nth-child(n+4){display:none}
.posts-foot{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
@media(max-width:559px){.posts-foot .btn{flex:1 1 100%}}
.post:hover{border-color:var(--border)}
.post small{font-size:13px;color:var(--muted)}
.post h3{margin:0;font-family:var(--display);font-size:20px;line-height:1.25;font-weight:600}
.post p{margin:0;font-size:14.5px;color:var(--muted)}

.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}
dialog.booking{border:0;padding:0;background:transparent;max-width:none;max-height:none;width:min(760px,calc(100vw - 32px));height:min(820px,calc(100vh - 32px));margin:auto;color:var(--ink)}
dialog.booking::backdrop{background:rgba(6,11,23,.72)}
.booking-panel{display:flex;flex-direction:column;height:100%;background:var(--bg);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.booking-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid var(--line)}
.booking-head h2{font-size:18px;font-weight:600;letter-spacing:-.3px;margin:0}
.booking-close{flex-shrink:0;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:5px;background:var(--chip);color:var(--ink);font:600 13px var(--sans);cursor:pointer}
.booking-frame{flex:1;min-height:0;background:var(--bg)}
.booking-frame iframe{display:block;width:100%;height:100%;border:0}
.booking-foot{margin:0;padding:10px 20px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.booking-foot a{font-weight:600}
html.booking-open{overflow:hidden}
@media(max-width:580px){dialog.booking{width:100vw;height:100dvh;max-height:100dvh}.booking-panel{border:0;border-radius:0}}
.icon{width:18px;height:18px;flex-shrink:0;vertical-align:-3px}
.icon-line{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon-brand{fill:currentColor}
.article.article-wide{max-width:1000px}
.article-wide>h1{max-width:850px}
.article-copy{max-width:740px;margin:0 auto;overflow-wrap:anywhere}
.article code{font-family:var(--mono);font-size:.92em;background:var(--chip);border:1px solid var(--line);border-radius:4px;padding:1px 5px}
.article pre{margin:26px 0;padding:16px 18px;background:var(--chip);border:1px solid var(--line);border-radius:8px;color:var(--ink);font-family:var(--mono);font-size:15px;line-height:1.7;overflow-x:auto}
.article pre:focus-visible{outline:3px solid var(--accent-text);outline-offset:5px}
.article pre code{display:block;padding:0;border:0;border-radius:0;background:none;font-size:inherit;white-space:pre;overflow-wrap:normal}
.article-copy li{margin-bottom:14px}
.article{max-width:740px;margin:0 auto;padding:65px 0 80px}.article h1{font-family:var(--display);font-size:clamp(36px,5vw,58px);letter-spacing:-2px;line-height:1.12}.article h2{font-family:var(--display);font-size:27px;letter-spacing:-.7px;line-height:1.3;margin:38px 0 14px}.article p,.article li{font-size:18px;line-height:1.8;color:var(--muted)}.article .byline{font-size:14px;margin-bottom:30px}.article .back{display:inline-block;margin-bottom:24px;color:var(--accent-text);font-size:14px;text-decoration:none}.article-end{border-top:1px solid var(--line);padding-top:25px;margin-top:40px}
@media(max-width:580px){.article{padding:38px 0 50px}.article h1{letter-spacing:-1.4px}}

.article-share{max-width:740px;margin:44px auto 0;padding:22px 24px;border:1px solid var(--line);border-radius:8px;background:var(--chip)}
.article-share h2{font-size:18px;letter-spacing:-.3px;line-height:1.3;margin:0 0 6px}
.article-share p{font-size:15px;color:var(--muted);margin:0 0 14px}
.share-links{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.share-links a,.share-links button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:5px;background:var(--bg);color:var(--ink);font:600 14px var(--sans);cursor:pointer;text-decoration:none}
.share-links a:hover,.share-links button:hover{border-color:var(--accent-text);color:var(--accent-text)}
.share-status{margin:10px 0 0;font-size:14px;color:var(--muted);min-height:1.4em}

/* work */
.projects{display:grid;gap:16px;align-items:stretch}
.card-body > details{margin-top:auto}
.card-body > .card-links{margin-top:0}
@media(min-width:900px){.projects{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  /* Each row fits its own cards, so opening one card grows only that card: its row partner
     keeps its closed height instead of stretching to match. */
  .card:nth-child(odd):has(details[open]) + .card,.card:nth-child(odd):has(+ .card details[open]){align-self:start}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column}
.btn.show-all{display:none;width:100%;margin-top:16px}
#work.is-enhanced .btn.show-all{display:flex}
@media(max-width:899px){#work.is-enhanced:not(.expanded) .card.extra{display:none}}
@media(min-width:900px){#work.is-enhanced:not(.expanded) .card:nth-child(n+5){display:none}}
.card-top{display:flex;align-items:center;gap:12px}
.card-kicker{margin:0;font-size:14px;font-weight:500;color:var(--muted)}
.card-body{padding:20px;display:flex;flex-direction:column;gap:12px;flex-grow:1}
@media(min-width:900px){.card-body{padding:28px}}
.card h3{margin:0;font-family:var(--display);font-size:clamp(22px,2.4vw,28px);font-weight:700;line-height:1.15}
.card p{margin:0;color:var(--body)}
.card code{font-family:var(--mono);font-size:.92em;background:var(--chip);border-radius:4px;padding:1px 5px}
.result{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:var(--soft);color:var(--soft-ink)}
.result .i{width:20px;height:20px;margin-top:2px}
.result span{color:var(--ink);font-size:15px}
.card details{border-top:1px solid var(--line)}
.card summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:50px;font-weight:600;cursor:pointer}
.card summary::-webkit-details-marker{display:none}
.card summary .i{transition:transform .2s}
.card details[open] summary .i{transform:rotate(180deg)}
.detail h4{margin:4px 0 2px;font-size:14px}
.detail p{font-size:15px}
.diagram{margin:14px 0 4px;padding:14px;border-radius:14px;background:var(--bg);border:1px solid var(--line);overflow-x:auto}
.diagram svg{display:block;width:100%;max-width:420px;height:auto;margin:0 auto}
.card-links{display:flex;flex-direction:column;gap:8px;margin-top:auto}
@media(min-width:560px){.card-links{flex-direction:row}}
.dg{color:var(--muted);font-family:var(--sans)}
.dg-box{fill:var(--surface);stroke:var(--border)}
.dg-core{fill:#1E3A8A}
.dg-label{fill:var(--ink)}
.dg-core-label{fill:#fff}
.dg-note,.dg-core-note{font-family:var(--mono)}
.dg-note{fill:var(--muted)}
.dg-core-note{fill:#DBEAFE}
