/* Change the colors here. Dark is the default; the toggle switches to light. */
:root {
  --paper: #060a14;
  --ink: #e8eefc;
  --muted: #93a1bd;
  --line: rgba(140, 165, 220, 0.16);
  --accent: #6c9cff;
  --on-accent: #06101f;
  --rail: clamp(19rem, 32vw, 30rem);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --display: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] {
  --paper: #f6f8fc;
  --ink: #0f1b33;
  --muted: #52617a;
  --line: rgba(15, 40, 100, 0.13);
  --accent: #1f5bff;
  --on-accent: #ffffff;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; }
p { margin: 0 0 0.9rem; color: var(--muted); }
p, li { overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { color: var(--ink); font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1080px, calc(100% - 2.5rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 0.7rem 1rem; border-radius: 4px; }
.skip-link:focus { top: 1rem; }

/* Floating header: sits above the left column only, so the banner on the right stays whole */
.site-header { --nav-ink: var(--ink); --nav-muted: var(--muted); position: fixed; inset: 0 var(--rail) auto 0; z-index: 20; border-bottom: 1px solid transparent; transition: background-color 0.25s, border-color 0.25s; }
.site-header.solid { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 1.4rem; min-height: 3.6rem; }
.brand { white-space: nowrap; margin-right: auto; font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.01em; color: var(--nav-ink); text-decoration: none; }
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a { white-space: nowrap; color: var(--nav-muted); text-decoration: none; font-size: 0.95rem; font-variant-caps: all-small-caps; letter-spacing: 0.1em; font-weight: 500; }
.nav-links a:hover { color: var(--nav-ink); }
.theme-toggle, .menu-toggle { white-space: nowrap; background: transparent; border: 1px solid color-mix(in srgb, var(--nav-muted) 45%, transparent); border-radius: 999px; padding: 0.22rem 0.8rem; font-size: 0.8rem; color: var(--nav-muted); cursor: pointer; }
.theme-toggle:hover, .menu-toggle:hover { color: var(--nav-ink); border-color: var(--accent); }
.menu-toggle { display: none; border-radius: 4px; }

/* Page grid: text on the left, and on the right a banner with a quiet dot grid that stays in view while you scroll */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); grid-template-areas: "intro rail" "content rail" "cta rail"; align-items: start; }
.intro-block { grid-area: intro; justify-self: center; width: min(100%, 66rem); padding: 7.5rem clamp(1.5rem, 4vw, 3.5rem) 2rem; }
.intro-block h1 { font-weight: 300; font-size: clamp(2.8rem, 6.2vw, 4.8rem); letter-spacing: -0.04em; line-height: 1.02; }
.intro-block .role { margin: 1.1rem 0 1.25rem; font-family: var(--display); font-size: 1.25rem; font-weight: 500; font-variant-caps: small-caps; letter-spacing: 0.06em; color: var(--accent); }
.intro-block .intro { max-width: 44rem; font-size: 1.06rem; }
.intro-block .location { font-size: 0.9rem; }
.content { grid-area: content; justify-self: center; width: min(100%, 66rem); min-width: 0; padding: 1rem clamp(1.5rem, 4vw, 3.5rem) 3rem; }
.cta-band { grid-area: cta; align-self: stretch; }

.rail { --ink: #e8eefc; --muted: #a9b6d2; --line: rgba(140, 165, 220, 0.24); --accent: #6c9cff; --h-accent: #6c9cff; --dot: rgba(120, 160, 255, 0.42);
  grid-area: rail; position: sticky; top: 0; height: 100vh; overflow: hidden; background: #060a14; color: var(--ink); border-left: 1px solid rgba(140, 165, 220, 0.16); }
.net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rail-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; overflow-y: auto; padding: 1rem 1.1rem; scrollbar-width: thin; }
.rail-card { margin: auto 0; padding: 1.1rem; background: rgba(6, 10, 20, 0.42); border: 1px solid rgba(140, 165, 220, 0.16); border-radius: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 0; }
.btn { display: inline-block; padding: 0.55rem 1.05rem; font-size: 0.9rem; font-weight: 500; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 4px; background: transparent; transition: border-color 0.2s; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.1); }

/* Reading column */
.block { padding: 2.25rem 0; border-top: 1px solid var(--line); }
.block:first-child { padding-top: 0; border-top: 0; }
.block h2 { font-size: 1.55rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 1.1rem; line-height: 1.2; }
.block > h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 2.2rem 0 0.6rem; }
.lede { max-width: 38rem; }
.more { margin-top: 1.5rem; }

.plain li { padding: 0.2rem 0; color: var(--muted); }
.plain.cols { columns: 2; column-gap: 2rem; }
.plain.cols li { break-inside: avoid; }
.plain li::before { content: ""; display: inline-block; width: 0.35rem; height: 0.35rem; margin: 0 0.7rem 0.18rem 0; border-radius: 50%; background: var(--accent); }

/* Outlined pills (tags, focus areas, filters) */
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; }
.pills li { margin: 0; padding: 0.04rem 0.65rem; font-size: 0.78rem; line-height: 1.6; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.1rem 0 0.4rem; }
.chip { padding: 0.12rem 0.8rem; font-size: 0.82rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Rows: experience, education, project group headings */
.rows { margin: 0; }
.row { display: grid; grid-template-columns: 4.9rem minmax(0, 1fr) auto; gap: 0.25rem 1.25rem; align-items: start; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.rows > .row:first-child { border-top: 0; padding-top: 0.2rem; }
.row-main h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.row-main p { margin: 0.25rem 0 0; }
.row-main .org { margin: 0.05rem 0 0.3rem; color: var(--muted); }
.row-main .pills { margin-top: 0.5rem; }
.when-col { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--muted); white-space: nowrap; text-align: right; }
.dur { display: block; margin-top: 0.1rem; font-size: 0.78rem; opacity: 0.85; }

/* Logos: original colors on a small light tile, so every file looks right in both themes */
.logo img { display: block; box-sizing: content-box; width: 3.7rem; height: 1.6rem; object-fit: contain; padding: 0.3rem 0.45rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.logo.missing img { display: none; }
.row > .logo.missing::before { content: attr(data-initials); display: grid; place-items: center; box-sizing: content-box; width: 3.7rem; height: 1.6rem; padding: 0.3rem 0.45rem; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.logos { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin: 0.6rem 0 1.1rem; }
.logos .logo { display: flex; flex-direction: column; gap: 0.35rem; }
.logos .logo span { max-width: 5rem; font-size: 0.72rem; line-height: 1.3; color: var(--muted); }
.logos .logo.missing span { max-width: none; font-size: 0.85rem; color: var(--ink); }
/* Wide banner logos (for example ServiceNow and Accenture together) fill a larger tile so the text stays readable */
.logos .logo.wide img { width: 11rem; height: 3.3rem; padding: 0; object-fit: cover; }
.logos .logo.wide span { max-width: 11rem; }

/* Projects: a quiet list, not cards */
.project-group { margin-top: 2.1rem; }
.project-group:first-child { margin-top: 1.4rem; }
.group-head { border-top: 0; padding: 0 0 0.5rem; align-items: center; }
.group-note { margin: 0 0 0.4rem; max-width: 38rem; font-size: 0.93rem; }
.project { border-top: 1px solid var(--line); }
.project summary { display: flex; align-items: baseline; gap: 0.2rem 1rem; padding: 0.8rem 0; cursor: pointer; list-style: none; }
.project summary::-webkit-details-marker { display: none; }
.p-title { flex: 1 1 auto; font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--ink); transition: color 0.2s; }
.project summary:hover .p-title { color: var(--accent); }
.cat { flex: 0 0 auto; font-size: 0.9rem; font-variant-caps: small-caps; letter-spacing: 0.06em; color: var(--muted); }
.chev { flex: 0 0 auto; position: relative; width: 0.8rem; height: 0.8rem; align-self: center; }
.chev::before, .chev::after { content: ""; position: absolute; background: var(--muted); transition: transform 0.25s ease, background-color 0.2s; }
.chev::before { left: 0; right: 0; top: calc(50% - 0.5px); height: 1px; }
.chev::after { top: 0; bottom: 0; left: calc(50% - 0.5px); width: 1px; }
.project[open] .chev::after { transform: scaleY(0); }
.project summary:hover .chev::before, .project summary:hover .chev::after { background: var(--accent); }
.p-body { padding: 0 0 1.1rem; max-width: 40rem; }
.p-body p { margin-bottom: 0; }
.p-body .text-link { display: inline-block; margin-top: 0.7rem; font-weight: 500; font-size: 0.95rem; }

.sub-label { margin: 1.4rem 0 0.1rem; font-size: 0.92rem; font-variant-caps: small-caps; letter-spacing: 0.08em; color: var(--accent); }


/* Education cards and the lines under Experience and Education */
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 0.8rem 0 0; }
.edu-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--ink) 3%, transparent); }
.edu-card h4 { font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin: 0; }
.edu-card p { margin: 0.2rem 0 0; font-size: 0.93rem; }
.edu-card .edu-meta { font-size: 0.85rem; }
.edu-card > .logo.missing::before { content: attr(data-initials); display: grid; place-items: center; box-sizing: content-box; width: 3.7rem; height: 1.6rem; padding: 0.3rem 0.45rem; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.section-line { margin: 1.6rem 0 0; padding-left: 1rem; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.55; color: var(--ink); max-width: 44rem; }
.pills.certs { margin-top: 0.6rem; }

/* Skills */
.skills { margin: 0; }
.skill { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 0.2rem 1.5rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.skill:first-child { border-top: 0; padding-top: 0; }
.skill dt { font-weight: 500; color: var(--ink); }
.skill dd { margin: 0; }
.skill .pills { margin: 0.1rem 0 0; }

/* Dated facts (hackathons, conferences) */
.facts li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; padding-top: 0.2rem; }
.facts p { margin: 0; }
.when { color: var(--accent); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.block h4 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 0.2rem; }
.text-link { font-weight: 500; }

/* Beyond work: shelves and gallery (shown when you turn them on) */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr)); gap: 1.1rem 0.9rem; margin: 0.6rem 0 0; }
.shelf li { margin: 0; line-height: 1.4; }
.shelf .cover { display: block; margin-bottom: 0.5rem; }
.shelf .cover img { display: block; width: 100%; height: 8.2rem; object-fit: contain; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 4px; }
.shelf .cover.missing { height: 8.2rem; background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 4px; }
.shelf .cover.missing img { display: none; }
.shelf cite { display: block; font-style: normal; font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.shelf .by { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
/* Reading: bigger book covers */
.shelf.big { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 1.5rem 1.1rem; margin-top: 1rem; }
.shelf.big .cover img { height: 12rem; border-radius: 5px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28); }
.shelf.big .cover.missing { height: 12rem; }
.shelf.big cite { font-size: 0.95rem; }
.shelf.big .by { font-size: 0.82rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 10rem)); gap: 0.8rem; margin: 0.6rem 0 0; }
.gallery li { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.gallery .photo.missing { display: none; }

/* Banner contents (photo, links, focus areas, prompts, music) */
.profile { position: relative; width: 100%; height: clamp(10.5rem, 30vh, 24rem); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 3.6rem; font-weight: 300; letter-spacing: -0.04em; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.portrait { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile.has-photo .portrait { display: block; }
.profile.has-photo .initials { display: none; }
.side-text { margin-top: 0.85rem; font-size: 1.02rem; }
.side-name { margin: 0 0 0.25rem; font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.side-text p { margin-bottom: 0.4rem; }
.muted-small { font-size: 0.9rem; }
.copied { font-size: 0.75rem; color: var(--accent); }
.icon-links { display: flex; gap: 0.6rem; margin: 0.7rem 0 0.6rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 50%; text-decoration: none; transition: transform 0.2s, border-color 0.2s, color 0.2s, background-color 0.2s; }
.icon-btn:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); background: rgba(108, 156, 255, 0.12); }
.email-pill { display: inline-flex; align-items: center; justify-content: space-between; gap: 0.5rem; max-width: 100%; margin: 0 0 0.9rem; padding: 0.5rem 0.9rem; font: inherit; font-size: 0.92rem; color: var(--ink); background: rgba(108, 156, 255, 0.1); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.email-pill:hover { background: rgba(108, 156, 255, 0.2); border-color: var(--accent); }
.email-pill svg { flex: 0 0 auto; color: var(--accent); }
.copy-label { white-space: nowrap; text-align: left; }
.email-pill.big { margin: 1.4rem 0 0.4rem; padding: 0.8rem 1.4rem; font-size: 1.15rem; gap: 0.8rem; }
.email-pill.big .copy-label { white-space: normal; text-align: center; }
.side-label { margin: 0 0 0.3rem; font-size: 0.9rem; font-variant-caps: small-caps; letter-spacing: 0.08em; }
.side-text .pills { margin-top: 0; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; margin-top: 0.9rem; }
.iconbtn { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; }
.iconbtn:hover { color: var(--ink); }
.prompt-text { margin: 0.1rem 0 0.2rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: var(--ink); }
.prompt-on { margin: 0; font-size: 0.82rem; color: var(--muted); }
.music { margin-top: 1.2rem; }
.music-row { display: flex; align-items: center; gap: 0.7rem; }
.play-btn { display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.2rem; height: 2.2rem; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); cursor: pointer; }
.play-btn:hover { border-color: var(--accent); color: var(--accent); }
.play-btn .i-pause { display: none; }
.play-btn.playing .i-play { display: none; }
.play-btn.playing .i-pause { display: block; }
.track-title { margin: 0; color: var(--ink); font-size: 0.9rem; line-height: 1.3; }
button.btn { font-family: inherit; cursor: pointer; }

/* Logo tiles that sit beside an entry, in the same spot as the conference photos */
.mark-box { display: grid; place-items: center; width: 9.5rem; aspect-ratio: 3 / 2; padding: 0.7rem; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mark-box img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mark-box.cover { padding: 0; }
.mark-box.cover img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.mark-box.missing { display: none; }

/* Conference cards: a tidy, even grid. Click a photo for the full poster and details */
.event-cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.1rem; }
.event-card { margin: 0; }
.event-card .shot { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border-radius: 10px; }
.event-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.event-text { margin-top: 0.6rem; }
.event-text .when { display: block; font-size: 0.82rem; }
.event-text p { margin: 0.1rem 0 0; font-size: 0.9rem; line-height: 1.45; }
.event-text p.full { margin-top: 0.15rem; font-size: 0.88rem; line-height: 1.55; }

/* Photos under a publication (awards and presenting) */
.pub-body { min-width: 0; }
.pub-photos { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 11rem)); gap: 0.9rem; }
.facts .pub-photos li.pub-photo { display: block; grid-template-columns: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.pub-photo .shot { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border-radius: 8px; }
.pub-photo .shot img { width: 100%; height: 100%; object-fit: contain; }
.pub-photo p { margin: 0.4rem 0 0; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }

/* Event photos next to conference entries, with a larger view on click */
.facts li.has-shot { grid-template-columns: 4.5rem minmax(0, 1fr) 9.5rem; align-items: start; }
.shot { display: block; width: 9.5rem; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; transition: border-color 0.2s; }
.shot:hover { border-color: var(--accent); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lightbox { padding: 1rem; max-width: min(92vw, 60rem); max-height: 94vh; overflow: auto; margin: auto; border: 0; border-radius: 12px; background: #0d1018; color: #e8eefc; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
.lightbox img { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; object-fit: contain; border-radius: 6px; }
.lightbox p { margin: 0.8rem 0 0.2rem; color: #a9b6d2; font-size: 0.9rem; text-align: center; }
#lightbox-detail { max-width: 38rem; margin: 0.3rem auto 0; color: #a9b6d2; font-size: 0.88rem; line-height: 1.5; text-align: center; }
#lightbox-detail:empty { display: none; }
.lb-close { display: block; margin: 0.6rem auto 0; padding: 0.4rem 1.1rem; font-size: 0.9rem; color: #e8eefc; background: transparent; border: 1px solid rgba(160, 180, 230, 0.35); border-radius: 999px; cursor: pointer; }
.lb-close:hover { border-color: #6c9cff; }

/* Closing call to action */
.cta-band { margin-top: 1rem; padding: 5rem 0 4.5rem; text-align: center; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; }
.cta-band p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta-hint { margin: 0 auto; font-size: 0.82rem; opacity: 0.8; }
.icon-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin: 2rem 0 0; }
.icon-card { display: grid; justify-items: center; gap: 0.55rem; min-width: 7.2rem; padding: 1rem 1.2rem; color: var(--ink); font-size: 0.92rem; font-weight: 500; text-decoration: none; background: color-mix(in srgb, var(--ink) 4%, transparent); border: 1px solid var(--line); border-radius: 14px; transition: transform 0.2s, border-color 0.2s, background-color 0.2s; }
.icon-card .ic { display: grid; place-items: center; width: 3rem; height: 3rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 50%; }
.icon-card:hover { transform: translateY(-3px); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.icon-cards li:has(> [hidden]) { display: none; }
.views { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.made { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--muted); }
.heart { display: inline-block; color: #ff5d7a; text-shadow: 0 0 12px rgba(255, 93, 122, 0.45); }
.site-footer .heart { color: #ff5d7a; }
.mini-net { width: 3.6rem; height: 1.5rem; color: var(--accent); }
.mini-net.flip { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .heart { animation: beat 2.2s ease-in-out infinite; }
  .mini-net circle { animation: node-glow 2.8s ease-in-out infinite; }
  .mini-net circle:nth-child(2) { animation-delay: 0.4s; }
  .mini-net circle:nth-child(3) { animation-delay: 0.8s; }
  .mini-net circle:nth-child(4) { animation-delay: 1.2s; }
  .mini-net circle:nth-child(5) { animation-delay: 1.6s; }
  .mini-net circle:nth-child(6) { animation-delay: 2s; }
  @keyframes beat { 0%, 55%, 100% { transform: scale(1); } 12% { transform: scale(1.28); } 26% { transform: scale(1); } 40% { transform: scale(1.18); } }
  @keyframes node-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; font-size: 0.875rem; color: var(--muted); }
.site-footer p, .site-footer span { color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Short screens: drop the Prompts box so the whole banner fits without scrolling */
@media (max-height: 830px) and (min-width: 901px) {
  .prompt-head, .prompt-text, .prompt-on { display: none; }
}

/* Smaller laptops: tighter menu */
@media (max-width: 1440px) {
  .nav { gap: 0.8rem; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.82rem; letter-spacing: 0.05em; }
}

/* Narrow windows: the menu folds into a Menu button */
@media (max-width: 1279px) {
  .nav { flex-wrap: wrap; gap: 0.4rem 0.8rem; padding-block: 0.55rem; }
  .menu-toggle { display: block; }
  .nav-links { order: 5; width: 100%; flex-wrap: wrap; gap: 0.5rem 1.1rem; padding: 0.4rem 0 0.6rem; }
  .js .nav-links { display: none; }
  .js .nav-links.open { display: flex; }
  html { scroll-padding-top: 4rem; }
}

/* Tablet and phone: the banner moves under the intro and stops sticking */
@media (max-width: 900px) {
  :root { --rail: 0px; }
  .site-header { right: 0; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "rail" "content" "cta"; }
  .rail { position: relative; height: auto; margin: 0 clamp(1.25rem, 4vw, 3.5rem) 1.5rem; border: 1px solid rgba(140, 165, 220, 0.2); border-radius: 16px; }
  .rail-inner { height: auto; overflow: visible; padding: 1rem; }
  .rail-card { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: start; margin: 0; }
  .profile { height: auto; aspect-ratio: 1 / 1; }
  .side-text { font-size: 0.95rem; }
  .side-text { margin-top: 0; }
  .intro-block { padding-top: 6.5rem; }
}
@media (max-width: 760px) {
  .row { grid-template-columns: 4.9rem minmax(0, 1fr); }
  .when-col { grid-column: 2; text-align: left; margin: 0.2rem 0 0; order: 3; }
  .skill { grid-template-columns: 1fr; }
  .project summary { flex-wrap: wrap; }
  .p-title { flex-basis: calc(100% - 2rem); }
  .cat { order: 3; flex-basis: 100%; }
  .chev { order: 2; margin-left: auto; }
  .plain.cols { columns: 1; }
  .facts li { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .facts li.has-shot { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .shot { grid-column: 2; width: 100%; max-width: 16rem; }
  .event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.9rem; }
  .pub-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mark-box { grid-column: 2; width: 100%; max-width: 12rem; }
  .intro-block { padding-top: 6.5rem; }
  .rail-card { grid-template-columns: 6rem minmax(0, 1fr); }
  .edu-grid { grid-template-columns: 1fr; }
  .icon-card { min-width: 6.4rem; padding: 0.9rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
