/* Sumana Kasturi — minimal + maximal modes. One DOM, two looks. */

:root {
  color-scheme: light;
  --canvas: 250 250 247;
  --ink: 26 26 26;
  --muted: 107 107 107;
  --line: 230 228 221;
  --accent: 107 91 255;
  --accent-soft: 239 236 255;
  --f-display: "Bricolage Grotesque", Geist, system-ui, sans-serif;
  --f-sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
.dark {
  color-scheme: dark;
  --canvas: 14 14 16;
  --ink: 240 239 234;
  --muted: 160 158 152;
  --line: 40 40 44;
  --accent: 138 124 255;
  --accent-soft: 38 32 70;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgb(var(--canvas));
  color: rgb(var(--ink));
  font: 400 16px/1.5 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, dl, dd, figure, blockquote, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgb(var(--accent)); color: rgb(var(--canvas)); }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .75rem 1rem; background: rgb(var(--ink)); color: rgb(var(--canvas)); }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: 100%; max-width: 84rem; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 640px) { .shell { padding-inline: 2rem; } }
@media (min-width: 1024px) { .shell { padding-inline: 3rem; } }

.eyebrow { font: 400 11px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .18em; color: rgb(var(--muted)); }
.mono-label { font: 400 10px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: rgb(var(--muted)); }
.display { font-family: var(--f-display); font-optical-sizing: auto; letter-spacing: -.02em; font-weight: 600; }
.chip { display: inline-block; border-radius: 999px; background: rgb(var(--accent-soft)); color: rgb(var(--accent)); padding: .25rem .625rem; font: 400 10px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgb(var(--line));
  background: rgb(var(--canvas) / .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .375rem; background: rgb(var(--ink)); color: rgb(var(--canvas)); font-weight: 700; font-size: .875rem; letter-spacing: -.025em; }
.brand-name { font-family: var(--f-display); font-size: 1.125rem; line-height: 1; letter-spacing: -.02em; }
.nav-pill { display: none; }
@media (min-width: 900px) {
  .nav-pill { display: flex; align-items: center; border: 1px solid rgb(var(--ink) / .9); border-radius: 999px; padding: .25rem; background: rgb(var(--canvas)); }
}
.nav-pill a { display: block; padding: .375rem 1rem; border-radius: 999px; font-size: .875rem; color: rgb(var(--muted)); transition: color .15s, background-color .2s; }
.nav-pill a:hover { color: rgb(var(--ink)); }
.nav-pill a[aria-current="page"] { background: rgb(var(--ink)); color: rgb(var(--canvas)); }
.actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid rgb(var(--line)); color: rgb(var(--ink)); transition: border-color .15s, transform .3s; }
.icon-btn:hover { border-color: rgb(var(--ink)); }
.icon-btn svg { width: 17px; height: 17px; }
.when-max, .when-dark { display: none; }
html[data-mode="max"] .when-max, .dark .when-dark { display: contents; }
html[data-mode="max"] .when-min, .dark .when-light { display: none; }
.when-min, .when-light, .when-max, .when-dark { line-height: 0; }
.menu-btn { display: grid; }
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-nav { border-top: 1px solid rgb(var(--line)); background: rgb(var(--canvas)); }
.mobile-nav ul { padding-block: .5rem; }
.mobile-nav a { display: block; padding: .75rem 0; border-bottom: 1px solid rgb(var(--line)); font-size: 1rem; }
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { color: rgb(var(--accent)); }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* Fun-mode launcher: a tiny orbit that spins up on hover */
.fun-wrap { position: relative; display: inline-flex; }
.fun-btn { position: relative; isolation: isolate; transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s; }
.fun-btn .orbit { transform-origin: 12px 12px; transition: transform .6s; }
.fun-btn:hover, .fun-btn:focus-visible { border-color: transparent; transform: scale(1.08); }
.fun-btn:hover .orbit, .fun-btn:focus-visible .orbit { animation: orbit-spin 1.4s linear infinite; }
.fun-btn::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 999px; background: conic-gradient(from 0deg, #f6c177, #e8833a, #2b2d42, #8fb8de, #f6c177); opacity: 0; transition: opacity .25s;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.fun-btn:hover::before, .fun-btn:focus-visible::before { opacity: 1; animation: orbit-spin 2s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.fun-tip { pointer-events: none; position: absolute; top: calc(100% + 12px); left: 50%; z-index: 60; padding: 8px 14px 9px; border-radius: 12px; background: #0b0d12; color: #e9e4d8; white-space: nowrap; opacity: 0; transform: translate(-50%, -6px) scale(.9); transition: opacity .2s, transform .3s cubic-bezier(.34,1.56,.64,1); text-align: center; box-shadow: 0 8px 30px rgb(0 0 0 / .25); }
.fun-tip::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; background: #0b0d12; transform: translateX(-50%) rotate(45deg); }
.fun-wrap:hover .fun-tip, .fun-wrap:focus-within .fun-tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
.fun-tip b { display: block; font: 600 13px/1.3 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; background: linear-gradient(90deg, #f6c177, #e8833a, #8fb8de, #f6c177); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tip-hue 3s linear infinite; }
.fun-tip small { display: block; margin-top: 2px; font: 400 9.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #9aa3ad; }
@keyframes tip-hue { to { background-position: 300% 0; } }
@media (max-width: 899px) { .fun-tip { display: none; } }

/* ---------- Page scaffolding ---------- */
main { flex: 1; }
.page { animation: page-in .38s cubic-bezier(.22,1,.36,1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section { border-top: 1px solid rgb(var(--line)); }
.section > .shell { padding-block: 4rem; }
@media (min-width: 640px) { .section > .shell { padding-block: 6rem; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: 1.875rem; line-height: 1.15; }
@media (min-width: 640px) { .section-head h2 { font-size: 2.25rem; } }
.more-link { font: 400 .75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--muted)); white-space: nowrap; transition: color .15s; }
.more-link:hover { color: rgb(var(--ink)); }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid rgb(var(--line)); padding-bottom: .75rem; margin-bottom: 2rem; }
.sub-head h2 { font-size: 1.5rem; line-height: 1.2; }
@media (min-width: 640px) { .sub-head h2 { font-size: 1.875rem; } }
.sub-head .mono-label { font-size: .75rem; letter-spacing: .1em; text-align: right; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .75rem 1.25rem; font-size: .875rem; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 16px; height: 16px; }
.btn-solid { background: rgb(var(--ink)); color: rgb(var(--canvas)); }
.btn-solid:hover { background: rgb(var(--accent)); }
.btn-line { border: 1px solid rgb(var(--line)); color: rgb(var(--ink)); }
.btn-line:hover { border-color: rgb(var(--ink)); }

/* ---------- Home hero ---------- */
.hero { padding-block: 4rem; }
@media (min-width: 640px) { .hero { padding-block: 7rem 6rem; } }
.hero h1 { margin-top: 2rem; font-size: 3rem; line-height: .98; }
@media (min-width: 640px) { .hero h1 { font-size: 4.5rem; } }
@media (min-width: 1280px) { .hero h1 { font-size: 6rem; } }
.hero h1 span { display: block; color: rgb(var(--muted)); }
.hero-row { margin-top: 3rem; display: grid; gap: 2rem; }
.hero-row p { font-size: 1.125rem; line-height: 1.65; color: rgb(var(--ink) / .8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 1024px) {
  .hero-row { grid-template-columns: repeat(12, minmax(0,1fr)); align-items: end; gap: 4rem; }
  .hero-row p { grid-column: span 6; }
  .hero-ctas { grid-column: 8 / span 5; justify-content: flex-end; }
}
@media (min-width: 1280px) { .hero-row p { font-size: 1.25rem; } }
.facts { margin-top: 4rem; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem 2rem; border-top: 1px solid rgb(var(--line)); padding-top: 2rem; font-size: .875rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.facts dd { margin-top: .25rem; }

/* ---------- Metrics ---------- */
.metrics { display: grid; gap: 1px; background: rgb(var(--line)); border: 1px solid rgb(var(--line)); border-radius: .75rem; overflow: hidden; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 1024px) { .metrics { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.metric { background: rgb(var(--canvas)); padding: 1.5rem; }
.metric:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 1024px) { .metric:last-child:nth-child(odd) { grid-column: auto; } }
.metric b { display: block; font-family: var(--f-display); font-size: 2.25rem; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.metric span { display: block; margin-top: .75rem; font-size: .875rem; line-height: 1.45; color: rgb(var(--muted)); }

/* ---------- Work cards ---------- */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.card { display: flex; flex-direction: column; border: 1px solid rgb(var(--line)); border-radius: .75rem; padding: 1.75rem; transition: border-color .15s; }
.card:hover { border-color: rgb(var(--ink) / .4); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.card h3 { margin-top: 1rem; font-size: 1.5rem; line-height: 1.2; }
.card .kicker { margin-top: .5rem; font-family: var(--f-display); font-size: 1.125rem; line-height: 1.35; color: rgb(var(--accent)); }
.card .summary { margin-top: 1rem; font-size: 15px; line-height: 1.65; color: rgb(var(--ink) / .8); }
.dots { margin-top: 1.5rem; display: grid; gap: .5rem; font-size: .875rem; color: rgb(var(--muted)); }
.dots li { display: flex; gap: .75rem; line-height: 1.5; }
.dots li::before { content: ""; flex: none; margin-top: .55rem; width: .25rem; height: .25rem; border-radius: 999px; background: rgb(var(--accent)); }
.stats { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; border-top: 1px solid rgb(var(--line)); padding-top: 1.25rem; }
.stats b { display: block; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.stats span { display: block; margin-top: .25rem; font: 400 10px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--muted)); }
.chips { margin-top: auto; padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.card-compact .summary { margin-top: .75rem; }

/* ---------- Principles / steps ---------- */
.trio { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .trio { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }
.trio-item { border-top: 1px solid rgb(var(--ink)); padding-top: 1.25rem; }
.trio-item .n { font: 400 10px/1.5rem var(--f-mono); letter-spacing: .1em; color: rgb(var(--accent)); }
.trio-item h3 { margin-top: .5rem; font-size: 1.25rem; line-height: 1.3; }
.trio-item p { margin-top: .75rem; font-size: .875rem; line-height: 1.65; color: rgb(var(--muted)); }

/* ---------- CTA band ---------- */
.cta-band .shell { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-block: 4rem; }
@media (min-width: 640px) { .cta-band .shell { flex-direction: row; align-items: center; } }
.cta-band p { max-width: 42rem; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.35; font-weight: 500; letter-spacing: -.02em; }
@media (min-width: 640px) { .cta-band p { font-size: 1.875rem; } }
.cta-band .btn { flex: none; }

/* ---------- Inner page header ---------- */
.page-head { padding-block: 4rem 0; }
@media (min-width: 640px) { .page-head { padding-top: 6rem; } }
.page-head-grid { display: grid; gap: 2.5rem; border-bottom: 1px solid rgb(var(--line)); padding-bottom: 3rem; }
.page-head h1 { margin-top: 1.5rem; font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 640px) { .page-head h1 { font-size: 3.75rem; } }
.page-head .lede { margin-top: 1.5rem; max-width: 68ch; font-size: 1.125rem; line-height: 1.65; color: rgb(var(--muted)); }
.page-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem 2rem; border-top: 1px solid rgb(var(--line)); padding-top: 1.5rem; font-size: .875rem; }
.page-meta dd { margin-top: .25rem; }
@media (min-width: 1024px) {
  .page-head-grid { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 4rem; }
  .page-head-grid > div:first-child { grid-column: span 8; }
  .page-meta { grid-column: 9 / span 4; align-self: end; grid-template-columns: 1fr; gap: 1.25rem; }
}
.page-body { padding-block: 3.5rem 5rem; }
@media (min-width: 640px) { .page-body { padding-block: 4rem 7rem; } }
.stack-lg > * + * { margin-top: 4rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 4rem; } .about-grid .prose { grid-column: span 7; } .about-grid aside { grid-column: 9 / span 4; } }
.prose { font-size: 15px; line-height: 1.7; color: rgb(var(--ink) / .85); }
.prose > * + * { margin-top: 1.5rem; }
.portrait { overflow: hidden; border: 1px solid rgb(var(--line)); border-radius: .75rem; aspect-ratio: 3 / 4; max-width: 22rem; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait-cap { margin-top: .75rem; }
.list-rows li { display: flex; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid rgb(var(--line)); padding-block: 1rem; }
.list-rows li:last-child { border-bottom: 0; }
.list-rows .t { font-family: var(--f-display); font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.list-rows .o { margin-top: .25rem; font-size: .875rem; color: rgb(var(--muted)); }
.list-rows .p { flex: none; text-align: right; }
.two-col { display: grid; gap: 3.5rem 3rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- Experience ---------- */
.roles > li { display: grid; gap: 1rem; border-top: 1px solid rgb(var(--line)); padding-block: 2.5rem; }
.roles > li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) { .roles > li { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 4rem; } .roles .when { grid-column: span 4; } .roles .what { grid-column: span 8; } }
.roles h3 { font-size: 1.5rem; line-height: 1.2; }
.roles .org { margin-top: .375rem; font-family: var(--f-display); font-size: 1.125rem; color: rgb(var(--accent)); }
.roles .ctx { margin-top: .75rem; font-size: .875rem; color: rgb(var(--muted)); }
.roles .dots { margin-top: 0; font-size: 15px; color: rgb(var(--ink) / .85); gap: .75rem; }

/* ---------- Skills ---------- */
.skill-grid { display: grid; gap: 1px; background: rgb(var(--line)); border: 1px solid rgb(var(--line)); border-radius: .75rem; overflow: hidden; }
@media (min-width: 640px) { .skill-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .skill-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.skill { background: rgb(var(--canvas)); padding: 1.5rem; }
.skill h3 { font-size: 1.125rem; line-height: 1.35; }
.skill p { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: rgb(var(--muted)); }
.tool-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tool { border: 1px solid rgb(var(--line)); border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 4rem; } .contact-grid form { grid-column: span 7; } .contact-grid aside { grid-column: 9 / span 4; } }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: block; }
.field + .field, .form-row + .field, .field + .form-row { margin-top: 1rem; }
.field span { display: block; margin-bottom: .5rem; }
.field input, .field textarea { width: 100%; border: 1px solid rgb(var(--line)); border-radius: .5rem; background: rgb(var(--canvas)); color: rgb(var(--ink)); padding: .75rem 1rem; font: inherit; font-size: .875rem; }
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgb(var(--ink)); box-shadow: 0 0 0 3px rgb(var(--accent) / .25); }
.form-foot { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { font-size: .8125rem; color: rgb(var(--muted)); }
.detail-list > div { border-top: 1px solid rgb(var(--line)); padding-block: 1rem; }
.detail-list dd { margin-top: .25rem; font-size: .9375rem; word-break: break-word; }
.detail-list a { border-bottom: 1px solid rgb(var(--ink) / .2); transition: border-color .15s; }
.detail-list a:hover { border-color: rgb(var(--ink)); }

/* ---------- Résumé sheet ---------- */
.resume-wrap { padding-block: 3rem 6rem; }
.resume-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.resume-sheet { max-width: 820px; margin-inline: auto; background: #fff; color: #111; padding: 2.5rem; border: 1px solid rgb(var(--line)); border-radius: .5rem; font-size: 12.5px; line-height: 1.5; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.resume-sheet header { border-bottom: 1px solid #111; padding-bottom: 1rem; }
.resume-sheet h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.resume-sheet .rs-sub { margin-top: .25rem; font-size: 13px; font-weight: 500; }
.resume-sheet .rs-contact { margin-top: .35rem; color: #444; }
.resume-sheet .rs-contact a { color: inherit; }
.resume-sheet section { margin-top: 1.1rem; }
.resume-sheet h2 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #999; padding-bottom: .2rem; margin-bottom: .5rem; }
.resume-sheet h3 { font-size: 13px; font-weight: 700; }
.resume-sheet .rs-row { display: flex; justify-content: space-between; gap: 1rem; }
.resume-sheet .rs-ctx { font-style: italic; color: #444; }
.resume-sheet ul.rs-bullets { list-style: disc; padding-left: 1.1rem; margin-top: .25rem; }
.resume-sheet ul.rs-bullets li + li { margin-top: .15rem; }
.resume-sheet .rs-item + .rs-item { margin-top: .7rem; }
.resume-sheet p + p { margin-top: .3rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgb(var(--line)); }
.foot-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.foot-grid .fname { font-family: var(--f-display); font-size: 1.125rem; font-weight: 600; }
.foot-grid .fblurb { margin-top: .5rem; max-width: 20rem; font-size: .875rem; line-height: 1.6; color: rgb(var(--muted)); }
.foot-grid ul { margin-top: 1rem; display: grid; gap: .5rem; font-size: .875rem; }
.foot-grid ul a { color: rgb(var(--muted)); transition: color .15s; }
.foot-grid ul a:hover { color: rgb(var(--ink)); }
.foot-base { display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid rgb(var(--line)); padding-block: 1.5rem; font-size: .875rem; color: rgb(var(--muted)); }
@media (min-width: 640px) { .foot-base { flex-direction: row; justify-content: space-between; align-items: center; } }
.foot-credit { font-size: .75rem; }

.float-actions { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: flex; gap: .5rem; }
.float-actions a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: rgb(var(--ink)); color: rgb(var(--canvas)); box-shadow: 0 4px 14px rgb(0 0 0 / .15); transition: background-color .15s; }
.float-actions a:hover { background: rgb(var(--accent)); }
.float-actions svg { width: 18px; height: 18px; }

/* Max-only decorations are hidden in minimal */
.mx-ticker, .mx-grain, .mx-sticker { display: none; }

/* ---------- 404 ---------- */
.notfound { padding-block: 8rem; text-align: center; }
.notfound h1 { font-size: 4rem; }
.notfound p { margin-top: 1rem; color: rgb(var(--muted)); }
.notfound .btn { margin-top: 2rem; }

/* =====================================================================
   MAXIMAL MODE — same content, loud editorial poster treatment.
   Palette borrowed from cobalt ink, magenta block-print and marigold.
   ===================================================================== */
html[data-mode="max"] {
  --mx-cobalt: #2340d9;
  --mx-magenta: #e5266b;
  --mx-marigold: #f5b700;
  --mx-block: #141414;
  --mx-block-fg: #f4efe6;
  --canvas: 244 239 230;
  --ink: 20 20 20;
  --muted: 84 80 72;
  --line: 20 20 20;
  --accent: 229 38 107;
  --accent-soft: 252 222 232;
}
html[data-mode="max"].dark {
  --mx-block: #f1ece2;
  --mx-block-fg: #0f0f10;
  --mx-cobalt: #5b74ff;
  --mx-magenta: #ff4f8b;
  --mx-marigold: #ffc933;
  --canvas: 15 15 16;
  --ink: 241 236 226;
  --muted: 165 158 146;
  --line: 241 236 226;
  --accent: 255 79 139;
  --accent-soft: 60 20 36;
}
html[data-mode="max"] ::selection { background: var(--mx-marigold); color: #141414; }
html[data-mode="max"] .shell { max-width: 96rem; }
html[data-mode="max"] .display { font-weight: 800; letter-spacing: -.045em; }
html[data-mode="max"] .hero h1 { font-size: clamp(3.25rem, 11vw, 10rem); line-height: .86; letter-spacing: -.055em; text-transform: uppercase; text-wrap: balance; }
html[data-mode="max"] .hero h1 span { color: var(--mx-magenta); }
html[data-mode="max"] .page-head h1 { font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: .9; text-transform: uppercase; letter-spacing: -.05em; }
html[data-mode="max"] .section-head h2, html[data-mode="max"] .sub-head h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: .94; text-transform: uppercase; letter-spacing: -.04em; }
html[data-mode="max"] .card h3, html[data-mode="max"] .roles h3 { font-size: 1.75rem; line-height: 1.02; text-transform: uppercase; letter-spacing: -.035em; }
html[data-mode="max"] .eyebrow { display: inline-block; border-bottom: 4px solid var(--mx-magenta); padding-bottom: .3rem; color: rgb(var(--ink)); font-weight: 600; letter-spacing: .28em; }
html[data-mode="max"] .mono-label { font-weight: 600; letter-spacing: .22em; }
html[data-mode="max"] .section { border-top-width: 6px; }
html[data-mode="max"] .page-head-grid { border-bottom-width: 6px; position: relative; }
html[data-mode="max"] .page-head-grid::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 3px; background: var(--mx-magenta); }
html[data-mode="max"] .sub-head { border-bottom-width: 3px; }
html[data-mode="max"] .facts { border-top-width: 6px; }
html[data-mode="max"] .facts dt, html[data-mode="max"] .page-meta dt { color: var(--mx-magenta); border-top: 2px solid rgb(var(--ink)); padding-top: .4rem; }
html[data-mode="max"] .facts dd, html[data-mode="max"] .page-meta dd { font-weight: 700; letter-spacing: -.01em; }
html[data-mode="max"] .hero-row p { font-size: 1.35rem; font-weight: 500; color: rgb(var(--ink)); }

html[data-mode="max"] .btn { border-radius: 0; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; border: 2px solid rgb(var(--ink)); }
html[data-mode="max"] .btn-solid { background: var(--mx-magenta); border-color: var(--mx-magenta); color: #fff; }
html[data-mode="max"] .btn-solid:hover { background: transparent; color: rgb(var(--ink)); border-color: rgb(var(--ink)); }
html[data-mode="max"] .btn-line:hover { background: var(--mx-marigold); color: #141414; border-color: var(--mx-marigold); }
html[data-mode="max"] .chip { border-radius: 0; border: 1.5px solid currentColor; background: transparent; color: inherit; font-weight: 600; }

html[data-mode="max"] .metrics { border-radius: 0; border: 3px solid rgb(var(--ink)); gap: 3px; background: rgb(var(--ink)); }
html[data-mode="max"] .metric:nth-child(5n+1) { background: var(--mx-cobalt); color: #fff; }
html[data-mode="max"] .metric:nth-child(5n+3) { background: var(--mx-magenta); color: #fff; }
html[data-mode="max"] .metric:nth-child(5n+5) { background: var(--mx-marigold); color: #141414; }
html[data-mode="max"] .metric:nth-child(5n+1) span, html[data-mode="max"] .metric:nth-child(5n+3) span, html[data-mode="max"] .metric:nth-child(5n+5) span { color: inherit; opacity: .9; }
html[data-mode="max"] .metric b { font-size: clamp(2rem, 3.4vw, 3.4rem); font-weight: 800; letter-spacing: -.05em; overflow-wrap: anywhere; }

html[data-mode="max"] .card { border-radius: 0; border: 3px solid rgb(var(--ink)); box-shadow: 8px 8px 0 rgb(var(--ink)); transition: transform .2s, box-shadow .2s; }
html[data-mode="max"] .card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 rgb(var(--ink)); }
html[data-mode="max"] .card:nth-child(4n+1) { background: var(--mx-cobalt); color: #fff; border-color: var(--mx-cobalt); }
html[data-mode="max"] .card:nth-child(4n+2) { background: var(--mx-marigold); color: #141414; }
html[data-mode="max"] .card:nth-child(4n+3) { background: var(--mx-magenta); color: #fff; border-color: var(--mx-magenta); }
html[data-mode="max"] .card:nth-child(4n+2) { border-color: var(--mx-marigold); }
html[data-mode="max"] .card:nth-child(-n+3) :where(.kicker, .summary, .dots, .mono-label, .stats span) { color: inherit; }
html[data-mode="max"] .card:nth-child(4n+1) .dots li::before, html[data-mode="max"] .card:nth-child(4n+2) .dots li::before, html[data-mode="max"] .card:nth-child(4n+3) .dots li::before { background: currentColor; border-radius: 0; }
html[data-mode="max"] .card:nth-child(4n+1) .stats, html[data-mode="max"] .card:nth-child(4n+2) .stats, html[data-mode="max"] .card:nth-child(4n+3) .stats { border-top-color: currentColor; }
html[data-mode="max"] .card .kicker { font-weight: 700; }
html[data-mode="max"] .stats { border-top-width: 2px; }
html[data-mode="max"] .stats b { font-size: 2rem; font-weight: 800; }

html[data-mode="max"] .trio-item { border-top-width: 6px; }
html[data-mode="max"] .trio-item:nth-child(1) { border-color: var(--mx-cobalt); }
html[data-mode="max"] .trio-item:nth-child(2) { border-color: var(--mx-magenta); }
html[data-mode="max"] .trio-item:nth-child(3) { border-color: var(--mx-marigold); }
html[data-mode="max"] .trio-item .n { font-size: 2.5rem; line-height: 1; font-family: var(--f-display); font-weight: 800; color: rgb(var(--ink)); letter-spacing: -.04em; }
html[data-mode="max"] .trio-item h3 { text-transform: uppercase; font-size: 1.4rem; letter-spacing: -.03em; }

html[data-mode="max"] .skill-grid { border-radius: 0; border: 3px solid rgb(var(--ink)); gap: 3px; background: rgb(var(--ink)); }
html[data-mode="max"] .skill:nth-child(6n+2) { background: var(--mx-cobalt); color: #fff; }
html[data-mode="max"] .skill:nth-child(6n+4) { background: var(--mx-marigold); color: #141414; }
html[data-mode="max"] .skill:nth-child(6n+6) { background: var(--mx-magenta); color: #fff; }
html[data-mode="max"] .skill:nth-child(6n+2) p, html[data-mode="max"] .skill:nth-child(6n+4) p, html[data-mode="max"] .skill:nth-child(6n+6) p { color: inherit; opacity: .9; }
html[data-mode="max"] .skill h3 { text-transform: uppercase; letter-spacing: -.02em; }
html[data-mode="max"] .tool { border-radius: 0; border: 2px solid rgb(var(--ink)); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
html[data-mode="max"] .tool:nth-child(3n+1) { background: var(--mx-marigold); color: #141414; border-color: var(--mx-marigold); }

html[data-mode="max"] .roles > li { border-top-width: 3px; }
html[data-mode="max"] .roles .org { font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
html[data-mode="max"] .roles .dots li::before { border-radius: 0; width: .5rem; height: .5rem; margin-top: .45rem; background: var(--mx-magenta); }
html[data-mode="max"] .list-rows li { border-bottom-width: 2px; }
html[data-mode="max"] .portrait { border-radius: 0; border: 3px solid rgb(var(--ink)); box-shadow: 12px 12px 0 var(--mx-magenta); filter: saturate(1.15) contrast(1.05); }
html[data-mode="max"] .field input, html[data-mode="max"] .field textarea { border-radius: 0; border: 2px solid rgb(var(--ink)); }
html[data-mode="max"] .detail-list > div { border-top-width: 2px; }

html[data-mode="max"] .site-header { background: var(--mx-block); color: var(--mx-block-fg); border-bottom: 0; }
html[data-mode="max"] .site-header .brand-mark { border-radius: 0; background: var(--mx-magenta); color: #fff; }
html[data-mode="max"] .site-header .brand-name { font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
html[data-mode="max"] .nav-pill { border-radius: 0; border: 2px solid var(--mx-block-fg); background: transparent; }
html[data-mode="max"] .nav-pill a { border-radius: 0; color: var(--mx-block-fg); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; }
html[data-mode="max"] .nav-pill a[aria-current="page"] { background: var(--mx-marigold); color: #141414; }
html[data-mode="max"] .site-header .icon-btn { border-color: var(--mx-block-fg); color: var(--mx-block-fg); border-radius: 0; }
html[data-mode="max"] .mobile-nav { background: var(--mx-block); }
html[data-mode="max"] .mobile-nav a { border-bottom-color: color-mix(in srgb, var(--mx-block-fg) 22%, transparent); text-transform: uppercase; letter-spacing: .08em; }
html[data-mode="max"] .mobile-nav a[aria-current="page"] { color: var(--mx-marigold); }

html[data-mode="max"] .cta-band { background: var(--mx-magenta); color: #fff; border-top: 0; }
html[data-mode="max"] .cta-band p { font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; }
html[data-mode="max"] .cta-band .btn-solid { background: #141414; border-color: #141414; color: #fff; }
html[data-mode="max"] .cta-band .btn-solid:hover { background: #fff; color: #141414; border-color: #fff; }

html[data-mode="max"] .site-footer { background: var(--mx-block); color: var(--mx-block-fg); border-top: 0; }
html[data-mode="max"] .site-footer :where(.fblurb, ul a, .foot-base, .eyebrow) { color: var(--mx-block-fg); }
html[data-mode="max"] .site-footer .eyebrow { border-bottom-color: var(--mx-marigold); }
html[data-mode="max"] .site-footer ul a:hover { color: var(--mx-marigold); }
html[data-mode="max"] .foot-base { border-top: 2px solid var(--mx-block-fg); }
html[data-mode="max"] .float-actions a { border-radius: 0; background: var(--mx-magenta); color: #fff; }

html[data-mode="max"] .mx-ticker { display: block; overflow: hidden; background: var(--mx-marigold); color: #141414; border-block: 2px solid #141414; }
.mx-ticker__track { display: flex; width: max-content; animation: mx-scroll 50s linear infinite; }
.mx-ticker__run { display: flex; flex: none; align-items: center; }
.mx-ticker__item { display: inline-flex; align-items: center; gap: 1.1rem; padding: .45rem 1.1rem .45rem 0; font: 700 11px/1.2 var(--f-mono); letter-spacing: .25em; text-transform: uppercase; white-space: nowrap; }
.mx-ticker__item i { font-style: normal; opacity: .5; }
@keyframes mx-scroll { to { transform: translateX(-50%); } }
html[data-mode="max"] .mx-grain { display: block; position: fixed; inset: 0; z-index: 25; pointer-events: none; opacity: .12; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
html[data-mode="max"].dark .mx-grain { mix-blend-mode: screen; opacity: .06; }
html[data-mode="max"] .mx-sticker { display: inline-grid; place-items: center; position: absolute; right: 1.5rem; top: 1.5rem; width: 8.5rem; height: 8.5rem; border-radius: 999px; background: var(--mx-marigold); color: #141414; font: 800 12px/1.15 var(--f-sans); text-transform: uppercase; letter-spacing: .08em; text-align: center; padding: 1rem; transform: rotate(-12deg); border: 3px solid #141414; animation: sticker-wobble 6s ease-in-out infinite; }
@keyframes sticker-wobble { 50% { transform: rotate(-4deg) scale(1.04); } }
html[data-mode="max"] .hero { position: relative; }
@media (max-width: 767px) { html[data-mode="max"] .mx-sticker { width: 6rem; height: 6rem; font-size: 9px; right: 1rem; top: 1rem; } }
@media (max-width: 639px) { html[data-mode="max"] .mx-sticker { display: none; } }

/* Fun mode hides the site chrome; the mission renders into #fun-root */
html[data-mode="fun"] body > :not(#fun-root):not(script) { display: none !important; }
html:not([data-mode="fun"]) #fun-root { display: none; }
html[data-mode="fun"] body { background: #05060a; color: #e9e4d8; }

/* ---------- Print: the résumé page prints clean ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; color: #000 !important; }
  .site-header, .site-footer, .float-actions, .mx-ticker, .mx-grain, .no-print, #fun-root { display: none !important; }
  .resume-wrap { padding: 0 !important; }
  .resume-sheet { border: 0 !important; box-shadow: none !important; padding: 0 !important; max-width: none; }
  .resume-sheet a { text-decoration: none; color: #000 !important; }
}

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