:root {
  color-scheme: dark;
  --bg: #080f15;
  --panel: #131d25;
  --text: #ecf1f2;
  --muted: #a3b3bd;
  --teal: #83d5ce;
  --amber: #eac487;
  --line: rgba(183, 212, 219, .16);
  --soft-line: rgba(183, 212, 219, .09);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 40px; background: var(--bg); }
body { margin: 0; background: radial-gradient(ellipse 900px 650px at 10% 4%, rgba(25, 90, 86, .18), transparent 70%), radial-gradient(ellipse 850px 850px at 100% 1%, rgba(44, 71, 112, .16), transparent 65%), var(--bg); color: var(--text); font: 400 16px/1.75 system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; border-radius: 4px; }
p { margin: 0 0 1.15em; color: var(--muted); }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 550; line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.4vw, 43px); }
h3 { font-size: 29px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 24px; z-index: 20; padding: 12px 18px; background: var(--amber); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(8, 15, 21, .97); border-bottom: 1px solid var(--soft-line); }
.header-inner { width: min(1280px, calc(100% - 96px)); margin-inline: auto; min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 12px; color: var(--text); }
.brand span { font-size: 23px; font-weight: 560; letter-spacing: -.04em; }
.brand img { width: 42px; height: 42px; }
.brand:hover { text-decoration: none; color: var(--teal); }
.site-header nav { display: flex; flex-wrap: wrap; column-gap: 28px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: #bccbd2; font-size: 13px; }
.site-header nav a:last-child { color: var(--teal); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .82fr); gap: clamp(50px, 8vw, 120px); align-items: center; padding-top: 87px; padding-bottom: 90px; }
.hero::before { content: ''; position: absolute; width: 475px; height: 475px; right: -10px; top: 80px; background: url('assets/wizard-hatty-outline.svg') center/contain no-repeat; opacity: .035; max-width: 100%; z-index: 0; pointer-events: none; }
.hero > * { position: relative; z-index: 1; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--amber); font: 400 11px/1.6 ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 23px; }
.eyebrow::before { content: ''; width: 23px; height: 1px; background: currentColor; flex: none; }
h1 { font-size: clamp(40px, 4.8vw, 65px); font-weight: 520; line-height: 1.08; letter-spacing: -.05em; }
h1 span { color: var(--teal); }
.hero-intro { max-width: 570px; margin-top: 26px; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 28px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 18px; border-radius: 9px; border: 1px solid transparent; font-size: 13px; line-height: 1.45; font-weight: 600; text-align: center; }
.button:hover { text-decoration: none; }
.button-primary { color: #0a292a; background: var(--teal); }
.button-primary:hover { background: #b0e9e2; color: #071c1d; }
.button-secondary { color: var(--text); border-color: #35434d; background: rgba(19, 29, 37, .25); }
.button-secondary:hover { background: #1a2831; border-color: var(--teal); }
.index-label { margin-bottom: 10px; color: #c1ced4; font: 11px/1.6 ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.stack-item { display: grid; grid-template-columns: 21px 1fr 15px; column-gap: 16px; align-items: center; min-height: 86px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.stack-item:hover { text-decoration: none; }
.stack-item:hover strong { color: var(--teal); }
.stack-number { color: var(--amber); font: 11px/1.5 ui-monospace, Consolas, monospace; align-self: start; padding-top: 5px; }
.stack-item strong { display: block; font-size: 16px; font-weight: 550; letter-spacing: -.015em; }
.stack-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.stack-arrow { color: var(--teal); }
.index-credit { margin-top: 22px; font-size: 12px; color: var(--muted); }
.index-credit strong { font-weight: 500; color: #c7d2d8; }
.work-section { padding-top: 10px; padding-bottom: 74px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding: 35px 0 33px; border-top: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading > p { max-width: 360px; font-size: 14px; }
.projects { display: grid; gap: 24px; }
.project { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.18fr); gap: 35px; align-items: center; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(24, 36, 45, .77), rgba(13, 22, 30, .85)); border-radius: var(--radius); padding: 37px; scroll-margin-top: 25px; }
.project-copy { min-width: 0; }
.project-category { gap: 10px; font-size: 9px; margin-bottom: 12px; letter-spacing: .095em; }
.project-category::before { display: none; }
.project-number { opacity: .85; padding-right: 8px; border-right: 1px solid #53605e; }
.project h3 { margin-bottom: 21px; font-size: clamp(24px, 2.6vw, 33px); line-height: 1.15; }
.project p { font-size: 14px; line-height: 1.8; }
.project .project-hook { font-size: 16px; line-height: 1.55; color: #d6e2e6; margin-bottom: 14px; }
.project .project-category { font-size: 10px; }
.project-details { margin-top: 19px; border-top: 1px solid var(--line); }
.project-details summary { list-style: none; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; font-size: 12px; color: var(--teal); min-height: 44px; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary:hover { color: #c2f0e9; }
.details-indicator { position: relative; width: 12px; height: 12px; flex: none; }
.details-indicator::before, .details-indicator::after { content: ''; position: absolute; background: currentColor; width: 10px; height: 1px; top: 5px; left: 1px; }
.details-indicator::after { transform: rotate(90deg); }
details[open] .details-indicator::after { display: none; }
.details-body { padding: 7px 0 13px; }
.project .details-body p { font-size: 13px; }
.project .project-note { padding-left: 13px; border-left: 2px solid rgba(234, 196, 135, .45); font-size: 12px; color: #b7c5cc; line-height: 1.75; margin-top: 13px; }
.project-action { margin-top: 20px; }
.text-link { display: inline-flex; align-items: center; min-height: 32px; gap: 14px; font-size: 13px; font-weight: 550; }
.private-label { display: inline-flex; align-items: center; min-height: 32px; gap: 8px; color: var(--amber); font-size: 12px; }
.private-label span { font-size: 22px; line-height: 1; }
.project-media { margin: 0; min-width: 0; }
.image-link { display: block; position: relative; border: 1px solid #34414a; border-radius: 11px; overflow: hidden; background: #0a1017; padding: 8px; }
.image-link:hover { border-color: var(--teal); }
.image-link img { width: 100%; height: auto; border-radius: 6px; }
.image-hint { position: absolute; bottom: 12px; right: 12px; padding: 4px 9px; background: #101b23; border: 1px solid #53616b; border-radius: 5px; color: var(--text); font-size: 10px; opacity: 0; }
.image-link:hover .image-hint, .image-link:focus-visible .image-hint { opacity: 1; }
figcaption { color: #a4b5bf; font-size: 10px; line-height: 1.6; margin-top: 11px; text-align: right; }
.project-2 .project-media, .project-4 .project-media { order: -1; }
.project-2, .project-4 { grid-template-columns: minmax(0, 1.18fr) minmax(0, .95fr); }
.access-note { display: flex; align-items: center; gap: 22px; max-width: 900px; margin: 33px auto 0; padding: 20px 26px; border: 1px solid var(--soft-line); border-radius: 12px; background: rgba(21, 34, 43, .25); }
.access-note img { width: 38px; height: 38px; flex: none; opacity: .8; }
.access-note h3 { font-size: 15px; letter-spacing: -.01em; margin-bottom: 8px; }
.access-note p { font-size: 12px; line-height: 1.85; }
.section-band { background: #0d171f; border-block: 1px solid var(--soft-line); }
.approach-section { padding-block: 77px; }
.approach-grid { display: grid; grid-template-columns: .88fr 1fr; gap: 100px; }
.approach-grid h2 { max-width: 370px; }
.section-lead { margin-top: 24px; font-size: 17px; line-height: 1.8; max-width: 450px; }
.approach-copy { padding-top: 7px; font-size: 14px; }
.approach-copy p:last-of-type { font-size: 12px; color: #b3c1c9; margin-top: 25px; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.stack-legend span { font: 10px/1.6 ui-monospace, Consolas, monospace; border: 1px solid var(--line); color: #b9cbd1; padding: 6px 9px; border-radius: 5px; }
.about-section { display: grid; grid-template-columns: .88fr 1fr; gap: 100px; padding-top: 91px; padding-bottom: 80px; }
.about-section h2 { max-width: 350px; }
.about-copy { font-size: 15px; padding-top: 7px; }
.about-copy p:first-child { color: var(--text); font-size: 18px; line-height: 1.65; }
.contact-section { padding-bottom: 60px; }
.contact-box { display: grid; grid-template-columns: .8fr 1fr; gap: 70px; padding: 53px; border: 1px solid rgba(131, 213, 206, .24); border-radius: var(--radius); background: radial-gradient(ellipse at 0% 0%, rgba(41, 101, 94, .19), transparent 67%), linear-gradient(135deg, #13232b, #111c24); }
.contact-box h2 { max-width: 380px; }
.contact-copy { font-size: 14px; }
.contact-button { margin-top: 7px; }
.email-address { display: block; font-size: 12px; overflow-wrap: anywhere; margin-top: 13px; width: fit-content; }
.site-footer { min-height: 89px; padding-top: 20px; padding-bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); font-size: 11px; }
.site-footer p { margin: 0; }
.site-footer a { padding-block: 10px; white-space: nowrap; }

.project-csm { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); align-items: start; gap: 22px 45px; border-color: rgba(131, 213, 206, .3); }
.project-csm h3 { font-size: clamp(28px, 3vw, 39px); margin-bottom: 12px; }
.project .development-status { display: inline-flex; margin-bottom: 22px; padding: 4px 10px; border: 1px solid rgba(234, 196, 135, .32); border-radius: 5px; background: rgba(234, 196, 135, .04); color: var(--amber); font: 11px/1.6 ui-monospace, Consolas, monospace; }
.csm-overview { padding: 25px 28px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 15, 21, .36); }
.csm-overview h4 { margin: 0 0 8px; font-size: 12px; font-weight: 550; letter-spacing: .03em; color: var(--amber); }
.scan-modes { margin: 0; }
.scan-modes > div { padding: 15px 0; border-bottom: 1px solid var(--soft-line); }
.scan-modes > div:last-child { border: 0; padding-bottom: 0; }
.scan-modes dt { font-size: 15px; font-weight: 550; color: var(--text); }
.scan-modes dd { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.csm-details { grid-column: 1 / -1; margin-top: 0; }
.csm-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 40px; }
.csm-detail-grid h4 { margin: 0 0 10px; color: #d6e2e6; font-size: 15px; font-weight: 550; line-height: 1.5; }
.csm-detail-grid > div { min-width: 0; }
.approach-intro { font-size: 16px; padding-top: 5px; align-self: center; }
.capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 35px; margin-top: 40px; }
.capability { min-width: 0; border-top: 1px solid var(--line); padding: 26px 0 24px; }
.capability h3 { margin-bottom: 15px; font-size: 19px; line-height: 1.4; letter-spacing: -.02em; color: #d9e5e8; }
.capability p { font-size: 14px; line-height: 1.85; }
.process-note { max-width: 850px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.85; }
.contact-box { background: rgba(19, 29, 37, .5); border-color: var(--line); }
.contact-box .eyebrow { color: var(--muted); }

@media (min-width: 1500px) { .hero { padding-top:40px; padding-bottom: 108px; } }
@media (max-width: 1100px) {
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
  .project-csm { gap: 22px 26px; }
  .csm-overview { padding: 22px; }
  .wrap, .header-inner { width: calc(100% - 64px); }
  .hero { gap: 45px; }
  h1 { font-size: 52px; }
  .project { padding: 29px; gap: 26px; }
  .approach-grid, .about-section { gap: 55px; }
  .contact-box { gap: 45px; padding: 40px; }
}
@media (max-width: 840px) {
  .project-csm { grid-template-columns: 1fr; }
  .csm-overview { width: 100%; }
  .csm-detail-grid { gap: 25px; }
  html { scroll-padding-top: 40px; }
  .wrap, .header-inner { width: calc(100% - 44px); }
  .header-inner { gap: 20px; }
  .site-header nav { column-gap: 18px; }
  .hero { grid-template-columns: 1fr; padding-top: 66px; padding-bottom: 65px; }
  .hero-copy { max-width: 620px; }
  .hero::before { right: 0; top: 60px; width: 360px; height: 360px; }
  .stack-index { display: none; }
  h1 { font-size: clamp(43px, 7.6vw, 60px); }
  .section-heading { align-items: start; }
  .section-heading > p { max-width: 270px; }
  .project, .project-2, .project-4 { grid-template-columns: 1fr; gap: 29px; padding: 29px; }
  .project-2 .project-media, .project-4 .project-media { order: 0; }
  .project h3 { font-size: 30px; }
  .project p { font-size: 15px; }
  .project-media { max-width: 100%; }
  .image-hint { opacity: 1; font-size: 9px; }
  .approach-grid, .about-section, .contact-box { grid-template-columns: 1fr; gap: 30px; }
  .approach-grid h2, .about-section h2, .contact-box h2 { max-width: 500px; }
  .section-lead { max-width: 610px; }
  .approach-section { padding-block: 60px; }
  .about-section { padding-top: 65px; padding-bottom: 60px; }
  .contact-box { padding: 35px; }
}
@media (max-width: 600px) {
  .capabilities { grid-template-columns: 1fr; margin-top: 30px; gap: 0; }
  .capability { padding: 23px 0; }
  .capability h3 { font-size: 20px; margin-bottom: 12px; }
  .capability p { font-size: 14px; }
  .csm-detail-grid { grid-template-columns: 1fr; }
  .csm-overview { padding: 20px; }
  .project-csm h3 { font-size: 28px; }
  .approach-intro { font-size: 15px; }
  .process-note { font-size: 12px; }
  html { scroll-padding-top: 30px; }
  .site-header { position: relative; }
  .wrap, .header-inner { width: calc(100% - 36px); }
  .header-inner { flex-direction: column; gap: 0; padding-top: 16px; }
  .brand { align-self: start; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 22px; }
  .site-header nav { width: 100%; justify-content: space-between; column-gap: 13px; padding-top: 9px; }
  .site-header nav a { font-size: 12px; }
  .hero { padding-top: 47px; padding-bottom: 52px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .085em; }
  h1 { font-size: clamp(34px, 8.2vw, 47px); line-height: 1.12; }
  .hero-intro { font-size: 15px; line-height: 1.85; margin-top: 23px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .button { font-size: 12px; padding-inline: 15px; }
  .button-primary { gap: 13px; }
  .section-heading { flex-direction: column; gap: 15px; padding-top: 27px; padding-bottom: 27px; }
  .section-heading > p { max-width: none; font-size: 14px; }
  .section-heading h2 { font-size: 33px; }
  .projects { gap: 20px; }
  .project { padding: 25px 21px; border-radius: 16px; gap: 25px; }
  .project h3 { font-size: 28px; overflow-wrap: anywhere; }
  .project .project-category { font-size: 9px; gap: 8px; }
  .project p { font-size: 14px; }
  .project .project-hook { font-size: 16px; }
  .project .project-note { font-size: 12px; }
  .project .details-body p { font-size: 13px; }
  .project-details summary { font-size: 12px; }
  .image-link { padding: 4px; border-radius: 8px; }
  .image-link img { border-radius: 4px; }
  .image-hint { position: static; display: block; border: 0; padding: 4px; margin-top: 2px; background: transparent; text-align: right; }
  figcaption { font-size: 9px; text-align: left; margin-top: 8px; }
  .access-note { padding: 22px; gap: 0; margin-top: 25px; }
  .access-note img { display: none; }
  .access-note h3 { font-size: 15px; line-height: 1.5; }
  .work-section { padding-bottom: 47px; }
  .approach-section { padding-block: 48px; }
  .approach-grid, .about-section { gap: 22px; }
  h2 { font-size: 32px; }
  .section-lead { font-size: 16px; margin-top: 18px; }
  .about-section { padding-top: 50px; padding-bottom: 46px; }
  .about-copy { font-size: 14px; }
  .about-copy p:first-child { font-size: 17px; }
  .contact-box { padding: 28px 23px; border-radius: 16px; gap: 25px; }
  .contact-box h2 { font-size: 31px; }
  .contact-box .eyebrow { font-size: 10px; }
  .contact-section { padding-bottom: 43px; }
  .contact-button { width: 100%; }
  .email-address { font-size: 11px; }
  .site-footer { align-items: start; flex-direction: column; gap: 8px; font-size: 10px; padding-bottom: 18px; }
}
@media (max-width: 350px) {
  .wrap, .header-inner { width: calc(100% - 28px); }
  h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .project { padding-inline: 18px; }
  .project .project-category { letter-spacing: .035em; }
  .project h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .capabilities { grid-template-columns: 1fr 1fr; }
  .capability { break-inside: avoid; }
  .capability h3, .scan-modes dt, .scan-modes dd, .csm-detail-grid h4, .csm-overview h4, .development-status { color: #111 !important; }
  .csm-overview { background: white; border-color: #aaa; margin: 20px 0; }
  .project-csm { break-inside: auto; }
  :root { color-scheme: light; }
  body { background: white; color: #111; font-size: 11pt; }
  p, .project p, .project-note, .section-lead, .about-copy p:first-child { color: #333 !important; }
  h1, h2, h3, h1 span, a, .eyebrow, .private-label { color: #111 !important; }
  .site-header, .stack-index, .hero-actions, .image-hint, .skip-link, .site-footer > a { display: none; }
  .wrap { width: 100%; }
  .hero, .project, .approach-grid, .about-section, .contact-box { display: block; }
  .hero, .approach-section, .about-section { padding: 22px 0; }
  .project, .section-band, .contact-box { background: white; border-color: #aaa; }
  .project { padding: 24px; break-inside: avoid; }
  .project-media { margin-top: 18px; }
  .project-media img { max-height: 240px; width: auto; margin: auto; }
  details > .details-body { display: block !important; }
  .contact-box { padding: 22px; }
  .button { border: 1px solid #777; background: white; }
  .hero::before { display: none; }
  h1 { font-size: 32pt; }
}
