/* ==========================================================
   Salman Akhter — portfolio
   Palette: Dhaka (flag green + red) meets Illinois (prairie gold)
   ========================================================== */

:root {
  --paper: #eef1ea;
  --paper-2: #e1e8dd;
  --white: #fbfcf9;
  --ink: #13201b;
  --ink-2: #22332c;
  --muted: #4a5b53;
  --muted-on-ink: #b9c6bf;
  --green: #006a4e;
  --green-deep: #00513b;
  --red: #d62839;
  --red-deep: #b51f2f;
  --gold: #e9a93a;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Pixelify Sans", ui-monospace, monospace;

  --border: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --radius: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: var(--border);
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms;
  touch-action: manipulation;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 0.9rem 1.75rem; font-size: 1.1rem; }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-outline-paper { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 7, 0.96);
  border-bottom: 1.5px solid rgba(238, 241, 234, 0.14);
  color: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(238, 241, 234, 0.6);
  background: var(--ink);
}
.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 85;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.site-nav a:not(.btn) {
  position: relative;
  font-weight: 550;
  text-decoration: none;
  padding: 0.5rem 0;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav a[aria-current="true"] { color: var(--gold); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 2px solid rgba(238, 241, 234, 0.6);
  border-radius: var(--radius);
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--paper);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 200ms var(--ease-out), opacity 150ms;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@keyframes sunrise {
  from { transform: translate(-50%, -15%) scale(0.86); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-7);
  border-top: var(--border);
}
.section-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-4);
}
.section-body { min-width: 0; }
.section-label {
  font-family: var(--font-pixel);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--green);
  padding-top: 0.6rem;
}
.statement {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88, "opsz" 72;
  max-width: 18ch;
  text-wrap: balance;
  margin-bottom: var(--space-5);
}
.subhead {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: var(--space-6) 0 var(--space-3);
}
.prose { display: grid; gap: var(--space-3); max-width: 38rem; font-size: 1.15rem; }

/* Experience (dark section) */
.section-ink {
  background: var(--ink);
  color: var(--paper);
}

.timeline { border-top: 1.5px solid rgba(238, 241, 234, 0.25); }
.job {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-bottom: 1.5px solid rgba(238, 241, 234, 0.25);
}
.job-dates {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--gold);
  padding-top: 0.35rem;
}
.job-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.job-org { margin-top: 0.25rem; color: var(--muted-on-ink); font-weight: 500; }
.job-desc { margin-top: var(--space-2); max-width: 40rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-2); }
.tags li {
  padding: 0.2rem 0.7rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 550;
}

.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.edu {
  padding: var(--space-4);
  background: var(--ink-2);
  border: 2px solid rgba(238, 241, 234, 0.35);
  border-radius: var(--radius);
}
.edu-year { font-family: var(--font-pixel); color: var(--gold); }
.edu-degree { margin-top: var(--space-1); font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.edu-school { margin-top: 0.25rem; color: var(--muted-on-ink); }
.edu-note { margin-top: var(--space-2); }
.cert-list { display: grid; gap: 0.5rem; margin-top: var(--space-2); }
.cert-list li { display: flex; justify-content: space-between; gap: var(--space-2); padding-bottom: 0.5rem; border-bottom: 1.5px solid rgba(238, 241, 234, 0.2); }
.cert-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cert-list span { font-family: var(--font-pixel); color: var(--gold); }

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.project-card {
  position: relative;
  display: block;
  height: 100%;
  padding: var(--space-2) var(--space-2) var(--space-4);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.project-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.35rem;
  aspect-ratio: 16 / 9;
  padding: var(--space-3);
  border: var(--border);
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: var(--space-3);
  background-image: radial-gradient(rgba(19, 32, 27, 0.18) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}
.tone-green .project-cover { background-color: var(--green); color: var(--white); }
.tone-red .project-cover { background-color: var(--red); color: var(--white); }
.tone-gold .project-cover { background-color: var(--gold); color: var(--ink); }
.project-metric {
  font-family: var(--font-pixel);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}
.project-type,
.project-title,
.project-desc { padding-inline: var(--space-1); }
.project-type { font-size: 0.9rem; font-weight: 600; color: var(--green); display: inline-block; margin-left: var(--space-1); padding-inline: 0.25rem; }
.project-title { margin-top: 0.35rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.project-desc { margin: var(--space-1) var(--space-1) 0; color: var(--muted); padding-inline: 0.25rem; }

/* Featured episode */
.feature {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-4);
  align-items: center;
  margin: 0 0 var(--space-6);
}
.feature-video {
  border: 2px solid var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 8px 8px 0 var(--gold);
}
.feature-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.feature-kicker { font-family: var(--font-pixel); color: var(--gold); }
.feature-title {
  margin-top: 0.25rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.feature-desc { margin-top: var(--space-2); color: var(--muted-on-ink); }
.feature-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
}
.feature-stats div {
  padding: var(--space-2);
  border: 2px solid rgba(238, 241, 234, 0.3);
  border-radius: var(--radius);
}
.feature-stats dt { font-size: 0.85rem; color: var(--muted-on-ink); }
.feature-stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-pixel);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.feature-credits {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem var(--space-2);
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
}
.feature-credits div { display: contents; }
.feature-credits dt { color: var(--muted-on-ink); }
.feature-credits dd { margin: 0; font-weight: 600; }
.feature-link { margin-top: var(--space-3); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--paper); }
.btn-gold:hover { box-shadow: 6px 6px 0 var(--paper); }
.btn-gold:active { box-shadow: 1px 1px 0 var(--paper); }

/* Podcast gallery */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}
.gallery-intro { max-width: 34rem; color: var(--muted-on-ink); font-size: 1.1rem; }
.gallery-controls { display: flex; gap: 0.75rem; flex-shrink: 0; }
.gallery-nav,
.lightbox-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 160ms, color 160ms, opacity 160ms;
}
.gallery-nav svg,
.lightbox-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.gallery-nav:hover,
.lightbox-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gallery-nav:disabled { opacity: 0.35; cursor: default; background: transparent; color: var(--paper); border-color: var(--paper); }

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 22vw, 250px);
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px var(--space-3);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  overscroll-behavior-x: contain;
}
.shot { scroll-snap-align: start; }
.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid rgba(238, 241, 234, 0.4);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 180ms var(--ease-out), border-color 180ms, box-shadow 180ms var(--ease-out);
}
.shot-btn img { width: 100%; height: auto; aspect-ratio: 427 / 760; object-fit: cover; }
.shot-btn:hover { transform: translate(-3px, -3px); border-color: var(--gold); box-shadow: 6px 6px 0 var(--gold); }
.shot-caption { margin-top: 0.75rem; font-size: 0.95rem; color: var(--muted-on-ink); line-height: 1.45; }

/* Photo grid (light sections) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.photo-grid .shot-btn {
  border: var(--border);
  box-shadow: var(--shadow-sm);
}
.photo-grid .shot-btn img { aspect-ratio: 4 / 5; object-position: center 30%; }
.photo-grid .shot-btn:hover { border-color: var(--ink); box-shadow: 8px 8px 0 var(--red); }
.photo-grid .shot-caption { color: var(--muted); }

.photo-grid-wide .shot-btn img { aspect-ratio: 3 / 2; object-position: center; }
.photo-grid-wide .shot:first-child .shot-btn img { object-position: 12% center; }
.photo-grid-wide .shot-btn:hover { box-shadow: 8px 8px 0 var(--green); }

/* Brand logo on a project cover */
.project-cover { position: relative; }

/* Photo grid on dark sections */
.section-ink .photo-grid .shot-btn { border-color: rgba(238, 241, 234, 0.45); box-shadow: none; }
.section-ink .photo-grid .shot-btn:hover { border-color: var(--gold); box-shadow: 6px 6px 0 var(--gold); }
.section-ink .photo-grid .shot-caption { color: var(--muted-on-ink); }
.edu-photos { margin-top: var(--space-4); }

/* School logo on the education card */
.edu-logo {
  width: min(100%, 240px);
  height: auto;
  margin-bottom: var(--space-3);
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: calc(var(--radius) - 2px);
}

/* Photo layered over the cover color */
.project-cover { overflow: hidden; isolation: isolate; }
.cover-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(0.35);
}
.tone-gold .cover-img { opacity: 0.28; mix-blend-mode: multiply; filter: grayscale(1); }
.tone-red .cover-img { opacity: 0.3; mix-blend-mode: multiply; filter: grayscale(1); }
.project-cover:has(.cover-img) { background-image: none; }
.project-metric, .project-cover-note { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.tone-gold .project-metric, .tone-gold .project-cover-note { text-shadow: none; }

/* Square: the brand image carries the logo, so it stays clear with a green band for the stat */
.cover-brand .cover-img { opacity: 1; filter: none; mix-blend-mode: normal; }
.cover-brand { justify-content: flex-end; padding: 0; }
.cover-brand .project-metric,
.cover-brand .project-cover-note { background: var(--green); color: var(--white); text-shadow: none; }
.cover-brand .project-metric { padding: 0.5rem var(--space-3) 0; margin-top: auto; }
.cover-brand .project-cover-note { padding: 0.15rem var(--space-3) 0.7rem; }
.cover-brand { gap: 0; align-items: stretch; }

/* Small photo pair inside a timeline entry */
.job-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 150px));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.job-photos .shot-btn { border-color: rgba(238, 241, 234, 0.45); }
.job-photos .shot-btn img { aspect-ratio: 3 / 4; }
.job-photos .shot-btn:hover { border-color: var(--gold); box-shadow: 4px 4px 0 var(--gold); }

/* Full-size photo viewer */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-3) 4.5rem;
  border: none;
  background: rgba(10, 18, 15, 0.97);
  color: var(--paper);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: var(--space-2); max-height: 100%; }
.lightbox-img {
  max-width: 100%;
  max-height: calc(100dvh - 7rem);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid rgba(238, 241, 234, 0.3);
}
.lightbox-caption { text-align: center; max-width: 36rem; font-size: 1rem; }
.lightbox-btn { position: fixed; background: rgba(10, 18, 15, 0.6); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: fade-in 200ms ease-out; }
}

/* Skills */
.section-tint { background: var(--paper-2); }

/* Contact */
.contact {
  background: var(--green);
  color: var(--paper);
  border-top: var(--border);
  padding-block: var(--space-7);
  position: relative;
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: 50%;
  width: 22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  border: var(--border);
  transform: translateY(-50%);
}
.contact-inner { position: relative; z-index: 1; }
.contact-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 85, "opsz" 96;
  max-width: 12ch;
  text-wrap: balance;
}
.contact-lead { margin-top: var(--space-3); font-size: 1.2rem; max-width: 32rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--muted-on-ink);
  font-size: 0.95rem;
  border-top: var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .section-grid { grid-template-columns: 1fr; gap: var(--space-2); }
}

@media (max-width: 860px) {
  .photo-grid { gap: var(--space-2); }
  .photo-grid .shot-caption { font-size: 0.875rem; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .feature { grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-5); }
  .gallery-track { grid-auto-columns: min(62vw, 240px); }
  .lightbox { padding: 4.5rem 1rem 5.5rem; }
  .lightbox-img { max-height: calc(100dvh - 12rem); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  :root { --space-7: 4.5rem; --space-6: 3rem; }

  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #050807;
    border-bottom: 1.5px solid rgba(238, 241, 234, 0.14);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-1) 1.25rem var(--space-3);
  }
  .site-nav a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1.5px solid rgba(238, 241, 234, 0.14);
    font-size: 1.15rem;
  }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: var(--space-2); width: 100%; min-height: 48px; }
  .job { grid-template-columns: 1fr; gap: var(--space-1); }
  .edu-grid,
  .work-grid { grid-template-columns: 1fr; }
  .contact::after { width: 14rem; right: -7rem; top: auto; bottom: -5rem; transform: none; }
}

@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
  .container { width: calc(100% - 2rem); }
  .brand-name { font-size: 1.05rem; }
  .menu-toggle-label { display: none; }
  .contact-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Reference links on project cards */
.project-cover-note { font-size: 0.9rem; font-weight: 600; }
.project-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--space-2) var(--space-1) 0; }
.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.85rem;
  border: var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  background: var(--paper);
  transition: background-color 160ms, color 160ms;
}
.project-links a::after { content: ""; width: 0.55em; height: 0.55em; margin-left: 0.45em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(0deg); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.project-links a:hover { background: var(--ink); color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Guest links in the podcast gallery */
.shot-more {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 0.5rem;
  padding: 0.2rem 0.75rem;
  border: 1.5px solid rgba(238, 241, 234, 0.5);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper);
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.shot-more:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gallery-intro p { margin: 0; }
.text-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 650;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--white); }

/* Guests page */
.guests-hero { border-top: none; padding-block: var(--space-6); }
.back-link { margin: 0 0 var(--space-3); }
.guests-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 85, "opsz" 96;
  max-width: 14ch;
  text-wrap: balance;
}
.guests-intro { margin-top: var(--space-3); max-width: 36rem; font-size: 1.15rem; color: var(--muted-on-ink); }
.guests-section { padding-top: var(--space-5); }
.guest-list { display: grid; gap: 0; max-width: 960px; }
.guest {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding-block: var(--space-4);
  border-bottom: 1.5px solid rgba(19, 32, 27, 0.18);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.guest:first-child { padding-top: 0; }
.guest .shot-btn { border: var(--border); box-shadow: var(--shadow-sm); }
.guest .shot-btn:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--red); }
.guest:target .shot-btn { box-shadow: 6px 6px 0 var(--gold); }
.guest-season { font-family: var(--font-pixel); color: var(--green); }
.guest-name { margin-top: 0.25rem; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.guest-role { margin-top: 0.35rem; font-weight: 600; color: var(--muted); }
.guest-desc { margin-top: var(--space-2); max-width: 40rem; }
.guest-stats { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; }
.guest-stats div { padding: 0.6rem 0.9rem; border: var(--border); border-radius: var(--radius); background: var(--white); }
.guest-stats dt { font-size: 0.85rem; color: var(--muted); }
.guest-stats dd { margin: 0.2rem 0 0; font-family: var(--font-pixel); font-size: 1.6rem; line-height: 1; color: var(--red-deep); }
.guest-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-3); }
.guest-links .shot-more { margin-top: 0; color: var(--ink); border: var(--border); background: var(--paper); }
.guest-links .shot-more:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

@media (max-width: 640px) {
  .guest { grid-template-columns: 110px 1fr; gap: var(--space-2); }
  .guest-name { font-size: 1.4rem; }
  .guest-stats dd { font-size: 1.3rem; }
}
.guest-episode { margin-top: var(--space-2); font-weight: 600; font-style: italic; color: var(--green-deep); }

/* By the numbers (podcast analytics) */
.numbers { margin: 0 0 var(--space-6); }
.numbers .subhead { margin-top: 0; }
.numbers-intro { max-width: 36rem; color: var(--muted-on-ink); margin-bottom: var(--space-4); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}
.stat {
  padding: var(--space-3);
  border: 2px solid rgba(238, 241, 234, 0.3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.stat dt { font-size: 0.9rem; color: var(--muted-on-ink); order: 2; margin-top: 0.4rem; }
.stat .stat-value {
  order: 1;
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat .stat-note { order: 3; margin-left: 0; font-size: 0.8rem; color: var(--muted-on-ink); margin-top: 0.15rem; }

.chart-card {
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  border: 2px solid rgba(238, 241, 234, 0.3);
  border-radius: var(--radius);
}
.chart-card figcaption { display: grid; gap: 0.2rem; margin-bottom: var(--space-2); }
.chart-title { font-weight: 700; font-size: 1.1rem; }
.chart-sub { font-size: 0.9rem; color: var(--muted-on-ink); }
.chart { position: relative; height: 240px; outline-offset: 4px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-tip {
  position: absolute;
  top: 0;
  pointer-events: none;
  padding: 0.35rem 0.6rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.3;
  white-space: nowrap;
  transform: translate(-50%, -110%);
  box-shadow: 2px 2px 0 var(--gold);
}
.chart-tip strong { font-variant-numeric: tabular-nums; }
.chart-table { margin-top: var(--space-2); font-size: 0.9rem; }
.chart-table summary { cursor: pointer; color: var(--gold); font-weight: 600; width: fit-content; }
.chart-table table { margin-top: var(--space-1); border-collapse: collapse; }
.chart-table th, .chart-table td { padding: 0.2rem 1.25rem 0.2rem 0; text-align: left; font-variant-numeric: tabular-nums; }
.chart-table th { color: var(--muted-on-ink); font-weight: 600; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: 0 0 var(--space-4); }
.quote { margin: 0; padding: var(--space-3); border-left: 4px solid var(--gold); background: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.quote footer { margin-top: var(--space-1); font-size: 0.9rem; color: var(--muted-on-ink); }

.proof-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); }
.proof-grid .shot-btn { border-color: rgba(238, 241, 234, 0.45); }
.proof-grid .shot-btn img { aspect-ratio: 295 / 640; object-position: top; }
.proof-grid .shot-btn:hover { border-color: var(--gold); box-shadow: 4px 4px 0 var(--gold); }
.proof-grid .shot-caption { font-size: 0.8rem; }

@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .quotes { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: var(--space-2); }
}

/* Analytics page */
.analytics-body { border-top: none; padding-top: 0; }
.analytics-body .subhead { margin-top: var(--space-5); }
.analytics-body .subhead:first-child { margin-top: 0; }
.audience-line { max-width: 40rem; font-size: 1.15rem; }
.numbers .btn-gold { margin-top: var(--space-1); }

/* Topographic contour texture over solid color blocks, kept faint so it reads as detail, not pattern */
.section-ink,
.contact,
.site-footer { position: relative; isolation: isolate; }
.section-ink::before,
.contact::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/texture-topo-tile.webp") center / calc(1950px * var(--tex-zoom, 1)) auto repeat;
  mix-blend-mode: screen;
  opacity: 0.1;
}
.contact::before { opacity: 0.12; }
.site-footer::before { opacity: 0.08; }
@media (prefers-reduced-transparency: reduce) {
  .section-ink::before,
.contact::before,
.site-footer::before { display: none; }
}

/* ==========================================================
   Hero: game title screen (night scene, light beam, player)
   ========================================================== */
.game-screen {
  --gs-font: "Silkscreen", var(--font-pixel);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(640px, calc(100dvh - var(--header-h)), 920px);
  padding: 4.5rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--paper);
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(233, 169, 58, 0.22), transparent 70%),
    linear-gradient(180deg, #050807 0%, #0a1310 55%, #0f1c17 100%);
  border-bottom: var(--border);
}
.game-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("assets/texture-topo-tile.webp") center / calc(2100px * var(--tex-zoom, 1)) auto repeat;
  mix-blend-mode: screen;
  opacity: 0.11;
}
.gs-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: var(--paper); }
.gs-stars .tw { fill: #fff; }
.gs-beam {
  position: absolute;
  z-index: -1;
  top: -5%;
  left: 50%;
  width: min(80vw, 900px);
  height: 110%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(233, 169, 58, 0.30) 0%, rgba(233, 169, 58, 0.10) 55%, rgba(233, 169, 58, 0.02) 100%);
  clip-path: polygon(44% 0, 56% 0, 88% 100%, 12% 100%);
  filter: blur(10px);
}

.gs-clocks {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-inline: max(1.25rem, calc((100% - 1200px) / 2));
  font-family: var(--gs-font);
}
.gs-clock { display: flex; align-items: baseline; gap: 0.55rem; }
.gs-clock dt { font-size: 0.7rem; color: var(--muted-on-ink); text-transform: uppercase; letter-spacing: 0.08em; }
.gs-clock dd { margin: 0; font-size: 0.95rem; color: var(--gold); font-variant-numeric: tabular-nums; }

.gs-head { text-align: center; position: relative; z-index: 2; }
.gs-kicker {
  font-family: var(--gs-font);
  font-size: clamp(0.95rem, 1.6vw, 1.4rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.gs-title {
  font-family: var(--gs-font);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 7.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 28px rgba(233, 169, 58, 0.35);
  white-space: nowrap;
}
.gs-sub {
  margin-top: 0.9rem;
  font-family: var(--gs-font);
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.85;
}

.gs-avatar {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50%;
  width: auto;
  height: min(54%, 500px);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 30px rgba(233, 169, 58, 0.25));
}

.gs-facts {
  position: absolute;
  z-index: 2;
  bottom: clamp(9rem, 30%, 15rem);
  display: grid;
  gap: 1rem;
  font-family: var(--gs-font);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.gs-facts-left { left: max(1.25rem, calc((100% - 1200px) / 2)); }
.gs-facts-right { right: max(4.5rem, calc((100% - 1200px) / 2 + 3.25rem)); }
.gs-facts li { display: flex; align-items: center; gap: 0.6rem; }
.gs-star { width: 14px; height: 14px; fill: var(--gold); flex: none; }

.gs-social {
  position: absolute;
  z-index: 2;
  right: max(1rem, calc((100% - 1200px) / 2 - 0.5rem));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0.5rem;
}
.gs-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  transition: color 150ms, transform 150ms;
}
.gs-social svg { width: 26px; height: 26px; fill: currentColor; }
.gs-social a:hover, .gs-social a:focus-visible { color: var(--gold); transform: translateX(-2px); }

.gs-start {
  position: absolute;
  z-index: 3;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0.8rem 2rem;
  font-family: var(--gs-font);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
  transition: background-color 150ms;
  white-space: nowrap;
}
.gs-start:hover { background: #fff; }
.gs-start:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* One boot-up sequence, then the prompt blinks */
@media (prefers-reduced-motion: no-preference) {
  .gs-beam { animation: fade-in 900ms ease-out both; }
  .gs-kicker { animation: fade-in 400ms ease-out 300ms both; }
  .gs-title span { display: inline-block; animation: type-in 520ms steps(6, end) both; }
  .gs-title span:first-child { animation-delay: 450ms; }
  .gs-title span + span { animation-delay: 800ms; }
  .gs-sub { animation: fade-in 400ms ease-out 1200ms both; }
  .gs-avatar { animation: rise-in 700ms var(--ease-out) 900ms both; }
  .gs-facts, .gs-social, .gs-clocks { animation: fade-in 500ms ease-out 1400ms both; }
  .gs-start { animation: start-in 400ms ease-out 1500ms both; }
  .gs-caret { animation: blink 1.1s steps(2, jump-none) 2s infinite; }
}
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes start-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 1100px) {
  .gs-facts { display: none; }
}
@media (max-width: 760px) {
  .game-screen { padding-top: 4rem; min-height: 620px; }
  .gs-title { white-space: normal; font-size: clamp(2.5rem, 14vw, 4.5rem); }
  .gs-title span { display: block; }
  .gs-avatar { height: auto; width: min(92%, 420px); }
  .gs-social { top: auto; transform: none; right: auto; left: 50%; bottom: auto; position: relative; display: flex; translate: -50% 0; margin-top: 0.75rem; left: 0; translate: none; }
  .gs-clock { flex-direction: column; gap: 0; }
  .gs-clock dt { font-size: 0.6rem; }
}

/* Pixel icons beside job titles */
.job-title { display: flex; align-items: center; gap: 0.7rem; }
.pixel-icon { flex: none; width: 32px; height: 32px; image-rendering: pixelated; }

/* Retro overworld map (About) */
.about-stack { display: grid; gap: var(--space-5); }
.world-map {
  margin: 0;
  padding: var(--space-3);
  background: #0e1714;
  color: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.world-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/texture-topo-tile.webp") center / calc(1650px * var(--tex-zoom, 1)) auto repeat;
  mix-blend-mode: screen;
  opacity: 0.09;
}
.wm-hud {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  border-bottom: 1.5px dashed rgba(238, 241, 234, 0.25);
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wm-hud span:last-child { color: var(--gold); }
.wm-svg { width: 100%; height: auto; display: block; }
.wm-land rect { fill: #2c4a3d; }
.wm-steps rect { fill: var(--gold); }
.wm-flag text { font-family: var(--font-pixel); font-size: 1.35px; fill: #fff; font-weight: 700; }
.wm-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.wm-levels li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1.5px solid rgba(238, 241, 234, 0.25);
  border-radius: var(--radius);
}
.wm-levels strong { display: block; font-size: 1.05rem; }
.wm-levels li > span:nth-child(2) { color: var(--muted-on-ink); font-size: 0.9rem; line-height: 1.3; }
.wm-levels strong { color: var(--paper); }
.wm-levels em {
  grid-column: 2;
  font-style: normal;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 0.2rem;
}
.wm-badge {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: #fff;
  border: 2px solid var(--paper);
}
.wm-badge-red { background: var(--red); }
.wm-badge-green { background: #2f9a6e; }
.world-map figcaption {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--muted-on-ink);
}
@media (max-width: 640px) {
  .wm-levels { grid-template-columns: 1fr; }
  .wm-hud { font-size: 0.75rem; }
}

/* ==========================================================
   Display numbers: bold condensed type instead of pixel font
   ========================================================== */
.project-metric,
.stat .stat-value,
.feature-stats dd,
.guest-stats dd {
  font-family: var(--font);
  font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 96;
  letter-spacing: -0.035em;
  line-height: 0.88;
  font-variant-numeric: lining-nums;
}

/* Work covers */
.project-metric { font-size: clamp(3.25rem, 6.2vw, 5rem); text-shadow: none; }
.project-cover-note {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  text-shadow: none;
  max-width: 22ch;
  line-height: 1.25;
}
.tone-red .project-metric, .tone-red .project-cover-note,
.tone-gold .project-metric, .tone-gold .project-cover-note { text-shadow: none; }
.cover-brand .project-metric { font-size: clamp(2.6rem, 5vw, 3.6rem); }

/* Stat tiles */
.stat { position: relative; padding-top: calc(var(--space-3) + 0.4rem); }
.stat::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: var(--space-3);
  width: 8px;
  height: 8px;
  background: var(--gold);
  box-shadow: 10px 0 0 rgba(233, 169, 58, 0.45), 20px 0 0 rgba(233, 169, 58, 0.2);
}
.stat .stat-value { font-size: clamp(2.6rem, 4.6vw, 3.6rem); color: var(--white); margin-top: 0.5rem; }
.stat dt { font-size: 0.95rem; font-weight: 600; color: var(--paper); margin-top: 0.55rem; }
.stat .stat-note { font-size: 0.85rem; color: var(--muted-on-ink); }

.feature-stats dd { font-size: 2.6rem; color: var(--white); margin-top: 0.35rem; }
.feature-stats dt { font-size: 0.85rem; font-weight: 600; color: var(--muted-on-ink); }
.guest-stats dd { font-size: 2rem; color: var(--ink); }
.guest-stats dt { font-weight: 600; }
@media (max-width: 640px) {
  .stat::before { left: var(--space-2); }
}

/* Quest log (About) */
.quest-log {
  padding: var(--space-3);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.quest-title {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  border-bottom: 1.5px dashed rgba(19, 32, 27, 0.3);
}
.quests { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.quest {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  padding: var(--space-2);
  border: 1.5px solid rgba(19, 32, 27, 0.2);
  border-radius: var(--radius);
}
.quest strong { font-size: 1.05rem; line-height: 1.25; }
.quest-state {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.quest-detail { font-size: 0.9rem; color: var(--muted); }
.quest-active { border: 2px solid var(--ink); background: #fff8e8; box-shadow: 3px 3px 0 var(--gold); }
.quest-active .quest-state { color: var(--red-deep); }
.quest-active .quest-state::before { content: "\25B6\00a0"; }
@media (max-width: 760px) { .quests { grid-template-columns: 1fr; } }

/* Skills as a game inventory */
.inventory {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-3);
  background: #0e1714;
  color: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.inventory::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/texture-topo-tile.webp") center / calc(1650px * var(--tex-zoom, 1)) auto repeat;
  mix-blend-mode: screen;
  opacity: 0.09;
}
.inv-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
  border-bottom: 1.5px dashed rgba(238, 241, 234, 0.25);
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.inv-head span:last-child { color: var(--muted-on-ink); font-size: 0.75rem; }
.inv-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-1); margin-bottom: var(--space-3); }
.inv-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 650;
  color: var(--paper);
  text-align: left;
  background: rgba(238, 241, 234, 0.04);
  border: 2px solid rgba(238, 241, 234, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms;
}
.inv-tab:hover { border-color: rgba(233, 169, 58, 0.7); }
.inv-tab[aria-selected="true"] { border-color: var(--gold); background: rgba(233, 169, 58, 0.12); box-shadow: inset 0 -3px 0 var(--gold); }
.inv-tab-icon { width: 28px; height: 28px; }
.inv-count {
  margin-left: auto;
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.8rem;
  color: var(--muted-on-ink);
}
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-2); }
.inv-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(238, 241, 234, 0.05);
  border: 2px solid rgba(238, 241, 234, 0.16);
  border-radius: 4px;
  transition: border-color 150ms, transform 150ms var(--ease-out);
}
.inv-slot:hover { border-color: var(--gold); transform: translateY(-2px); }
.inv-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: "Silkscreen", var(--font-pixel);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  border: 2px solid rgba(238, 241, 234, 0.85);
  box-shadow: 3px 3px 0 #050806;
}
.inv-content { background: var(--red); }
.inv-creative { background: #3b4fb8; }
.inv-analytics { background: #1f7a55; }
.inv-workforce { background: #8a5a12; }
.inv-name { font-weight: 600; line-height: 1.25; }
.inv-langs { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1.5px dashed rgba(238, 241, 234, 0.25); }
.inv-langs-title {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.inv-langs ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.inv-langs li {
  padding: 0.4rem 0.8rem;
  border: 1.5px solid rgba(238, 241, 234, 0.3);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted-on-ink);
}
.inv-langs strong { color: var(--paper); margin-right: 0.3rem; }
@media (max-width: 860px) { .inv-tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .inv-tab { font-size: 0.9rem; padding: 0.5rem; } }

/* Footer: the motto, signed */
.footer-inner { display: block; padding-block: var(--space-6) var(--space-3); }
.motto { margin: 0 auto var(--space-5); max-width: 46rem; text-align: center; }
.motto-label {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.motto-quote { margin: var(--space-2) 0 0; position: relative; }
.motto-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font);
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.motto-quote p {
  font-family: var(--font);
  font-weight: 700;
  font-variation-settings: "wdth" 85, "opsz" 72;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-wrap: balance;
}
.motto-sign {
  margin-top: var(--space-2);
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted-on-ink);
}
.motto-sign::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 0.6rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1.5px solid rgba(238, 241, 234, 0.12);
  font-size: 0.9rem;
}

/* Floating pixel icons that react to the pointer */
.section { position: relative; }
.floaties { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.section > .container { position: relative; z-index: 1; }
.floatie {
  position: absolute;
  display: block;
  width: 40px;
  height: 40px;
  pointer-events: auto;
  opacity: 0.85;
  will-change: transform;
}
.floatie-svg { width: 100%; height: 100%; filter: drop-shadow(3px 3px 0 rgba(19, 32, 27, 0.18)); }
.floatie.is-wiggling .floatie-svg { animation: wiggle 500ms ease-in-out; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-14deg) scale(1.1); }
  60% { transform: rotate(10deg) scale(1.05); }
}
@media (max-width: 1100px) { .floaties { display: none; } }

/* Size cover numbers to the card, not the window */
.project-cover { container-type: inline-size; }
.project-metric { font-size: clamp(2.75rem, 21cqw, 6.5rem); }
.project-cover-note { font-size: clamp(0.85rem, 3.4cqw, 1.05rem); }
.cover-brand .project-metric { font-size: clamp(1.6rem, 9cqw, 2.6rem); padding-top: 0.45rem; }
.cover-brand .project-cover-note { font-size: clamp(0.78rem, 2.8cqw, 0.92rem); max-width: none; padding-bottom: 0.55rem; }

/* Give "1M+" and the other cover numbers a little air between characters */
.project-metric { letter-spacing: 0.015em; }

/* Section labels: pixel nameplates with presence */
.section-label {
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  padding: 0.6rem 1rem 0.55rem 0.85rem;
  font-family: "Silkscreen", var(--font-pixel);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: var(--ink);
  clip-path: polygon(0 5px, 5px 5px, 5px 0, calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px));
  position: relative;
  padding-top: 0.6rem;
}
.section-label::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.section-ink .section-label { color: var(--ink); background: var(--gold); }
/* Trailing pixel dashes, like a level marker */
.section-grid > .section-label + .section-body { position: relative; }
.section-label { box-shadow: none; }
.section-grid { align-items: start; }
@media (min-width: 1025px) {
  .section-label { margin-top: 0.8rem; }
}
.section-label { font-size: clamp(1.15rem, 1.9vw, 1.55rem); padding: 0.75rem 1.2rem 0.7rem 1rem; gap: 0.75rem; }
.section-label::before { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }

/* ==========================================================
   Menu: level select (phone), plain links (desktop)
   ========================================================== */
.lvl-num, .lvl-icon, .lvl-here, .lvl-title, .nav-level-only { display: none; }

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #050807;
    border-bottom: none;
    padding: var(--space-4) 1.25rem var(--space-5);
    isolation: isolate;
  }
  .site-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("assets/texture-topo-tile.webp") center / calc(1650px * var(--tex-zoom, 1)) auto repeat;
    mix-blend-mode: screen;
    opacity: 0.1;
    pointer-events: none;
  }
  .lvl-title {
    display: block;
    margin-bottom: var(--space-3);
    font-family: "Silkscreen", var(--font-pixel);
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .site-nav ul { padding: 0; gap: 0.9rem; }
  .site-nav li { position: relative; }
  /* Dotted path linking the levels */
  .site-nav li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 100%;
    width: 4px;
    height: 0.9rem;
    background-image: linear-gradient(to bottom, rgba(238, 241, 234, 0.45) 50%, transparent 50%);
    background-size: 4px 6px;
  }
  .nav-cta { display: none; }
  .nav-level-only { display: list-item; }
  .site-nav a:not(.btn) {
    display: grid;
    grid-template-columns: 46px 30px 1fr auto;
    align-items: center;
    gap: 0.9rem;
    min-height: 64px;
    padding: 0.5rem 0.9rem 0.5rem 0;
    border: 2px solid rgba(238, 241, 234, 0.14);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--paper);
    transition: transform 150ms var(--ease-out), border-color 150ms, color 150ms;
  }
  .site-nav a:not(.btn)::after { display: none; }
  .lvl-num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    font-family: "Silkscreen", var(--font-pixel);
    font-size: 1.1rem;
    color: var(--paper);
    background: #142019;
    border: 2px solid rgba(238, 241, 234, 0.5);
  }
  .lvl-icon { display: block; width: 30px; height: 30px; }
  .lvl-svg { width: 100%; height: 100%; }
  .lvl-here {
    font-family: "Silkscreen", var(--font-pixel);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .lvl-here::before { content: "\25C0\00a0"; }
  .site-nav a[aria-current="true"] { border-color: var(--gold); color: var(--gold); }
  .site-nav a[aria-current="true"] .lvl-num { background: var(--gold); color: var(--ink); border-color: var(--gold); }
  .site-nav a[aria-current="true"] .lvl-here { display: inline; }
  .site-nav a:not(.btn):hover, .site-nav a:not(.btn):focus-visible { transform: translateX(4px); border-color: var(--gold); }
  html.menu-open { overflow: hidden; }

  @media (prefers-reduced-motion: no-preference) {
    .site-nav.is-open li { animation: level-in 260ms var(--ease-out) both; }
    .site-nav.is-open li:nth-child(2) { animation-delay: 40ms; }
    .site-nav.is-open li:nth-child(3) { animation-delay: 80ms; }
    .site-nav.is-open li:nth-child(4) { animation-delay: 120ms; }
    .site-nav.is-open li:nth-child(5) { animation-delay: 160ms; }
    .site-nav.is-open li:nth-child(6) { animation-delay: 200ms; }
  }
}
@keyframes level-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .site-nav li.nav-level-only::after { display: none; } }

/* Map glow */
.wm-land rect { transition: fill 350ms ease-out; }
.wm-glow { opacity: 0; transition: opacity 250ms; pointer-events: none; }
.wm-svg.is-lit .wm-glow { opacity: 1; }
.wm-svg { cursor: crosshair; }

/* Case study page */
.cs-kicker {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
}
.cs-meta dt { font-size: 0.8rem; color: var(--muted-on-ink); text-transform: uppercase; letter-spacing: 0.08em; font-family: "Silkscreen", var(--font-pixel); }
.cs-meta dd { margin: 0.2rem 0 0; font-weight: 650; }
.cs-container { max-width: 760px; }
.cs-article > p { font-size: 1.15rem; margin-bottom: var(--space-3); }
.cs-h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: var(--space-5) 0 var(--space-3);
}
.cs-article > .cs-h2:first-child { margin-top: 0; }
.cs-steps { counter-reset: step; display: grid; gap: var(--space-3); }
.cs-steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3) 4.5rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cs-steps li::before {
  content: counter(step);
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: "Silkscreen", var(--font-pixel);
  font-weight: 700;
  color: var(--gold);
  background: var(--ink);
}
.cs-steps h3 { font-size: 1.25rem; font-weight: 750; margin-bottom: 0.35rem; }
.cs-steps p { color: var(--ink-2); }
.cs-results { border-top: var(--border); }
.cs-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.cs-links .text-link { margin-top: 0; }
.cs-quote {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--paper);
  border-left: 6px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cs-quote p { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.25; }
@media (max-width: 760px) {
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-steps li { padding-left: var(--space-3); padding-top: 4.25rem; }
}

/* Growth chart marks (classes are set by script.js) */
.chart .grid line { stroke: rgba(238, 241, 234, 0.12); stroke-width: 1; }
.chart .axis text { fill: var(--muted-on-ink); font-size: 12px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .end { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.chart .end-label { fill: var(--paper); font-size: 13px; font-weight: 700; font-family: var(--font); }
.chart .cross { stroke: rgba(238, 241, 234, 0.45); stroke-width: 1; }
.chart .focus { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }

/* Nameplates sit above their headline at every width, so long labels never collide */
.section-grid { grid-template-columns: 1fr; gap: var(--space-3); }
.section-label { margin-top: 0; }

/* Give stat digits room: slightly wider letterforms, positive tracking, tabular figures */
.stat .stat-value,
.feature-stats dd,
.guest-stats dd {
  font-variation-settings: "wdth" 88, "opsz" 96;
  letter-spacing: 0.035em;
  font-variant-numeric: tabular-nums lining-nums;
}
.project-metric { font-variation-settings: "wdth" 85, "opsz" 96; letter-spacing: 0.03em; }

/* Bigger, reactive pixel icons, placed just outside the content edge */
.floatie { width: 56px; height: 56px; opacity: 1; cursor: pointer; }
.floatie.fl-l { left: calc(50% - 600px - 92px + var(--dx, 0px)) !important; }
.floatie.fl-r { left: calc(50% + 600px + 36px + var(--dx, 0px)) !important; }
.section-ink .floatie-svg { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45)); }
@media (prefers-reduced-motion: no-preference) {
  .floatie .floatie-svg { animation: bob 3.2s ease-in-out var(--bob-delay, 0s) infinite; }
  .floatie.is-wiggling .floatie-svg { animation: wiggle 500ms ease-in-out; }
  .floatie.is-hopping .floatie-svg { animation: hop-spin 650ms cubic-bezier(0.3, 0.7, 0.3, 1); }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hop-spin {
  0% { transform: translateY(0) rotate(0) scale(1); }
  40% { transform: translateY(-26px) rotate(200deg) scale(1.15); }
  75% { transform: translateY(0) rotate(360deg) scale(0.95); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  pointer-events: none;
  animation: spark 600ms ease-out forwards;
}
.sparkle:nth-child(3n) { background: var(--paper); }
.sparkle:nth-child(3n + 1) { background: var(--red); }
@keyframes spark {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--sx), var(--sy)) scale(0.4); opacity: 0; }
}
@media (max-width: 1360px) { .floaties { display: none; } }

/* Count-up numbers with a pixel XP bar */
.cu-num { display: block; }
.xp { display: flex; gap: 3px; margin-top: 0.7rem; max-width: 220px; }
.xp i { flex: 1; height: 7px; background: rgba(238, 241, 234, 0.14); transition: background-color 120ms; }
.xp i.on { background: var(--gold); box-shadow: 0 0 6px rgba(233, 169, 58, 0.5); }
.guest-stats .xp i { background: rgba(19, 32, 27, 0.12); }
.guest-stats .xp i.on { background: var(--red); box-shadow: none; }
.stat, .feature-stats div { transition: transform 180ms var(--ease-out), border-color 180ms, box-shadow 180ms; }
.stat:hover, .feature-stats div:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(233, 169, 58, 0.18);
}

/* Scroll XP bar along the bottom of the header */
.site-header { position: sticky; }
.scroll-xp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: rgba(238, 241, 234, 0.08);
  -webkit-mask-image: repeating-linear-gradient(to right, #000 0 10px, transparent 10px 12px);
  mask-image: repeating-linear-gradient(to right, #000 0 10px, transparent 10px 12px);
  pointer-events: none;
}
.scroll-xp span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f3c66a);
  transform: scaleX(var(--xp, 0));
  transform-origin: left;
}

/* Email chooser */
.email-pick { position: relative; }
.email-toggle { cursor: pointer; }
.email-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  padding: 0.4rem;
  background: #0e1714;
  border: 2px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.email-menu a,
.email-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--paper);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.email-menu a::before, .email-menu button::before { content: "\25B8"; color: var(--gold); }
.email-menu a:hover, .email-menu a:focus-visible,
.email-menu button:hover, .email-menu button:focus-visible { background: rgba(233, 169, 58, 0.16); color: var(--gold); outline: none; }

/* University website button on the degree card */
.edu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  margin-top: var(--space-2);
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--paper);
  text-decoration: none;
  border: 1.5px solid rgba(238, 241, 234, 0.5);
  border-radius: 999px;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.edu-link::after { content: "\2197"; color: var(--gold); }
.edu-link:hover, .edu-link:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.edu-link:hover::after, .edu-link:focus-visible::after { color: var(--ink); }

/* Quest log: expandable RPG quest entries */
.quests { grid-template-columns: 1fr; gap: var(--space-2); }
.quest { padding: 0; }
.quest > summary {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: var(--space-2) 3.25rem var(--space-2) var(--space-2);
  cursor: pointer;
  list-style: none;
}
.quest > summary::-webkit-details-marker { display: none; }
.quest > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: var(--radius); }
.quest-chevron {
  position: absolute;
  right: var(--space-2);
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 4px;
  color: var(--muted);
  transition: transform 200ms var(--ease-out), color 150ms;
}
.quest-chevron::before {
  content: "";
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}
.quest[open] .quest-chevron { transform: rotate(90deg); color: var(--ink); }
.quest > summary:hover .quest-chevron { color: var(--red-deep); }
.quest-body { padding: 0 var(--space-2) var(--space-3); }
.quest-sub {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: var(--space-2);
  border-top: 1.5px dashed rgba(19, 32, 27, 0.25);
  margin-bottom: 0.6rem;
}
.objectives { display: grid; gap: 0.5rem; }
.obj { display: flex; align-items: flex-start; gap: 0.65rem; line-height: 1.35; }
.obj-box {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  border: 2px solid var(--ink);
  background: var(--white);
}
.obj-done .obj-box { background: #1f7a55; border-color: #1f7a55; }
.obj-done .obj-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.obj-done { color: var(--ink-2); }
.obj-active .obj-box { background: var(--gold); }
.obj-active .obj-box::after { content: ""; position: absolute; inset: 4px; background: var(--ink); }
.obj-todo { color: var(--muted); }
.quest-reward { margin-top: var(--space-2); font-weight: 600; }
.quest-reward span {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--gold);
  padding: 0.2rem 0.45rem;
  margin-right: 0.4rem;
}
.quest-cta { margin-top: var(--space-3); }
@media (prefers-reduced-motion: no-preference) {
  .quest-active { animation: quest-pulse 2.6s ease-in-out infinite; }
  .quest[open] .quest-body { animation: fade-in 220ms ease-out; }
}
@keyframes quest-pulse {
  0%, 100% { box-shadow: 3px 3px 0 var(--gold); }
  50% { box-shadow: 3px 3px 0 var(--gold), 0 0 0 5px rgba(233, 169, 58, 0.25); }
}

/* 404 page: lost off the map */
.lost-screen { min-height: calc(100dvh - var(--header-h)); justify-content: center; padding-bottom: var(--space-6); }
.lost-inner { position: relative; z-index: 2; max-width: 46rem; text-align: center; display: grid; justify-items: center; }
.lost-title {
  font-family: "Silkscreen", var(--font-pixel);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 24px rgba(233, 169, 58, 0.35);
  text-wrap: balance;
}
.lost-copy { margin-top: var(--space-3); max-width: 34rem; font-size: 1.15rem; color: var(--muted-on-ink); }
.lost-player { position: relative; width: min(240px, 60vw); margin-top: var(--space-4); }
.lost-player img { width: 100%; height: auto; filter: drop-shadow(0 0 24px rgba(233, 169, 58, 0.3)); }
.lost-bubble {
  position: absolute;
  top: -10px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-family: "Silkscreen", var(--font-pixel);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid #050806;
  box-shadow: 4px 4px 0 var(--gold);
}
.lost-start { position: static; transform: none; margin-top: calc(var(--space-2) * -1); }
.lost-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1.1rem; margin-top: var(--space-4); }
.lost-links span { font-family: "Silkscreen", var(--font-pixel); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-ink); }
.lost-links a { color: var(--gold); font-weight: 650; text-underline-offset: 4px; }
.lost-links a:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .lost-bubble { animation: bob 2.4s ease-in-out infinite; }
  .lost-start { animation: none; }
}
.lost-code {
  font-family: "Silkscreen", var(--font-pixel);
  font-weight: 700;
  font-size: clamp(5.5rem, 16vw, 10rem);
  line-height: 0.9;
  color: var(--gold);
  text-shadow: 6px 6px 0 var(--red), 12px 12px 0 #050806;
  margin: 0.2rem 0 var(--space-3);
}

/* ==========================================================
   Experience: career level map
   ========================================================== */
.level-map {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: var(--space-5);
  align-items: start;
}
.lm-path { display: grid; gap: 1.1rem; }
.lm-step { position: relative; }
.lm-step:nth-child(even) { margin-left: 40px; }
.lm-step:nth-child(odd) { margin-right: 40px; }
/* Dashed elbow connectors between levels */
.lm-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100%;
  height: 1.1rem;
  width: 40px;
  border-bottom: 2px dashed rgba(233, 169, 58, 0.55);
  pointer-events: none;
}
.lm-step:nth-child(odd):not(:last-child)::after { left: 36px; border-left: 2px dashed rgba(233, 169, 58, 0.55); }
.lm-step:nth-child(even):not(:last-child)::after { left: -4px; border-right: 2px dashed rgba(233, 169, 58, 0.55); }

.lm-node {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  font: inherit;
  color: var(--paper);
  text-align: left;
  background: rgba(238, 241, 234, 0.04);
  border: 2px solid rgba(238, 241, 234, 0.16);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms, transform 150ms var(--ease-out);
}
.lm-node:hover { border-color: rgba(233, 169, 58, 0.7); transform: translateX(3px); }
.lm-node:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lm-node[aria-selected="true"] {
  border-color: var(--gold);
  background: rgba(233, 169, 58, 0.12);
  box-shadow: 4px 4px 0 rgba(233, 169, 58, 0.35);
}
.lm-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #142019;
  border: 2px solid rgba(238, 241, 234, 0.45);
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
.lm-badge .lm-svg { width: 34px; height: 34px; }
.lm-node.is-ongoing .lm-badge { border-color: var(--gold); background: #1d2a18; }
.lm-text { display: grid; gap: 0.1rem; min-width: 0; }
.lm-lvl, .lm-state, .lm-you, .lm-panel-kicker {
  font-family: "Silkscreen", var(--font-pixel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lm-lvl { font-size: 0.7rem; color: var(--muted-on-ink); }
.lm-name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.lm-state { font-size: 0.68rem; color: #6fd19c; }
.lm-node.is-ongoing .lm-state { color: var(--gold); }
.lm-you {
  font-size: 0.65rem;
  color: var(--ink);
  background: var(--gold);
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
}

.lm-panels { min-width: 0; }
.lm-panel.job {
  display: block;
  padding: var(--space-4);
  background: rgba(238, 241, 234, 0.04);
  border: 2px solid rgba(238, 241, 234, 0.2);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}
.lm-panel:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lm-panel-kicker { font-size: 0.75rem; color: var(--gold); margin-bottom: var(--space-2); }
.lm-panel .job-dates { padding-top: 0; margin-bottom: 0.4rem; }
.lm-panel .job-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (prefers-reduced-motion: no-preference) {
  .lm-panel:not([hidden]) { animation: panel-in 260ms var(--ease-out); }
  .lm-node.is-ongoing .lm-badge { animation: ongoing-pulse 2.4s ease-in-out infinite; }
}
@keyframes panel-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes ongoing-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(233, 169, 58, 0); } 50% { box-shadow: 0 0 14px 2px rgba(233, 169, 58, 0.45); } }
@media (max-width: 900px) {
  .level-map { grid-template-columns: 1fr; gap: var(--space-4); }
  .lm-panel.job { padding: var(--space-3); }
}
.lm-panel[hidden] { display: none !important; }

/* Detailed role breakdown inside a level panel */
.role-facts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.role-facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.2rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid rgba(238, 241, 234, 0.25);
  border-radius: var(--radius);
}
.role-facts dt { font-size: 0.8rem; color: var(--muted-on-ink); }
.role-facts dd {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  font-variation-settings: "wdth" 88;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--gold);
}
.role-duties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-3); margin-bottom: var(--space-2); }
.role-duties section { padding-top: 0.6rem; border-top: 1.5px dashed rgba(238, 241, 234, 0.2); }
.role-duties h4 {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.role-duties ul { display: grid; gap: 0.3rem; }
.role-duties li { position: relative; padding-left: 1rem; font-size: 0.92rem; line-height: 1.4; color: var(--paper); }
.role-duties li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; background: var(--gold); }
@media (max-width: 640px) { .role-duties { grid-template-columns: 1fr; } }

/* About: short and scannable, with highlighted keywords */
.prose-tight { max-width: 46rem; gap: var(--space-2); }
.prose-tight p { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; }
.kw {
  background: linear-gradient(transparent 58%, rgba(233, 169, 58, 0.45) 58%);
  color: var(--ink);
  font-weight: 700;
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.prose-next {
  padding: var(--space-2) var(--space-3);
  border-left: 4px solid var(--red);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose-next .kw { background: linear-gradient(transparent 58%, rgba(214, 40, 57, 0.25) 58%); }

/* Back to top */
.to-top {
  position: fixed;
  z-index: 40;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid #050806;
  box-shadow: 3px 3px 0 #050806;
  transition: transform 150ms var(--ease-out), opacity 200ms;
}
.to-top:hover { transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.to-top[hidden] { display: none; }

/* Contrast fix: darker green behind white map badge text */
.wm-badge-green { background: #1f7a55; }

/* Photo sets tucked behind "See photos" */
.photo-drawer { margin-top: var(--space-2); }
.photo-drawer > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
  border: var(--border);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms var(--ease-out);
}
.photo-drawer > summary::-webkit-details-marker { display: none; }
.photo-drawer > summary:hover { transform: translateY(-2px); }
.photo-drawer > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.pd-icon { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform 200ms var(--ease-out); }
.photo-drawer[open] .pd-icon { transform: rotate(90deg); }
.pd-count { color: var(--muted); font-weight: 500; }
.photo-drawer[open] > .photo-grid { margin-top: var(--space-3); }
.section-ink .photo-drawer > summary { background: transparent; color: var(--paper); border-color: rgba(238, 241, 234, 0.5); box-shadow: none; }
.section-ink .pd-count { color: var(--muted-on-ink); }
.edu-photos { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .photo-drawer[open] > .photo-grid { animation: fade-in 250ms ease-out; }
}

/* Quick view for recruiters */
.quick-view { padding-block: var(--space-5) 0; }
.qv-card {
  padding: var(--space-4);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.qv-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1.5px dashed rgba(19, 32, 27, 0.3); }
.qv-title {
  font-family: "Silkscreen", var(--font-pixel);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.qv-time {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--gold);
  padding: 0.25rem 0.5rem;
}
.qv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.qv-item dt {
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.qv-item dd { margin: 0; font-size: 0.95rem; color: var(--ink-2); line-height: 1.45; }
.qv-item dd strong { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.15rem; }
.qv-available dt { color: var(--red-deep); }
.qv-available dt::before { content: "\25CF\00a0"; color: #1f7a55; }
.qv-wins { display: grid; gap: 0.3rem; }
.qv-wins b { font-weight: 800; font-variation-settings: "wdth" 88; color: var(--ink); }
.qv-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.qv-tags span { padding: 0.15rem 0.55rem; border: 1.5px solid rgba(19, 32, 27, 0.3); border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.qv-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
@media (max-width: 1024px) { .qv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .qv-grid { grid-template-columns: 1fr; } .qv-card { padding: var(--space-3); } }

/* Header tools: text size and language */
.hdr-tools { display: flex; gap: 0.4rem; margin-left: auto; margin-right: var(--space-2); }
.tool-btn {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 40px;
  padding: 0 0.6rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--paper);
  background: transparent;
  border: 2px solid rgba(238, 241, 234, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 150ms, color 150ms;
}
.tool-btn:hover { border-color: var(--gold); color: var(--gold); }
.tool-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.text-size[data-level="1"] { font-size: 1.1rem; border-color: var(--gold); }
.text-size[data-level="2"] { font-size: 1.25rem; border-color: var(--gold); color: var(--gold); }
.lang-toggle { font-family: "Noto Sans Bengali", var(--font); }
html[data-text="1"] { font-size: 112.5%; }
html[data-text="2"] { font-size: 125%; }
@media (min-width: 861px) { .hdr-tools { order: 2; margin-left: var(--space-3); margin-right: 0; } .site-nav { order: 1; margin-left: auto; } }

/* Bangla: a Bengali-capable font, no pixel letter-spacing or uppercase */
html.lang-bn [data-i18n],
html.lang-bn [data-i18n] * {
  font-family: "Noto Sans Bengali", var(--font) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
html.lang-bn .statement[data-i18n], html.lang-bn .contact-title[data-i18n] { line-height: 1.3; }
@media (max-width: 420px) { .brand-name { white-space: nowrap; font-size: 0.98rem; } .brand { gap: 0.55rem; } .brand img { width: 38px; height: 38px; } }

/* Internship documents */
.doc-grid { grid-template-columns: repeat(2, minmax(0, 170px)) !important; gap: var(--space-2); }
.doc-grid .shot-btn img { aspect-ratio: 367 / 520; object-fit: cover; object-position: top; background: #fff; }
.doc-drawer { margin-bottom: var(--space-2); }

/* About: text beside the world map */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-5);
}
.about-text .statement { margin-bottom: var(--space-3); }
.about-intro .world-map { align-self: center; }
@media (max-width: 1024px) {
  .about-intro { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Work: 2 x 2 grid now that there are four projects */
.work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tone-ink .project-cover { background-color: var(--ink); color: var(--paper); }
.tone-ink .cover-img { opacity: 0.35; mix-blend-mode: screen; filter: grayscale(1); }
.role-more { display: inline-block; margin-top: var(--space-2); }

/* Role spotlight: the full ISU breakdown, as a dark panel inside Work */
.role-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--ink);
  color: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.role-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/texture-topo-tile.webp") center / 1500px auto repeat;
  mix-blend-mode: screen;
  opacity: 0.09;
}
.rs-kicker { font-family: "Silkscreen", var(--font-pixel); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.rs-title { margin-top: 0.4rem; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; font-variation-settings: "wdth" 85; letter-spacing: -0.015em; line-height: 1.1; }
.rs-sub { margin-top: 0.35rem; color: var(--muted-on-ink); }
.rs-intro { margin-top: var(--space-2); max-width: 52rem; font-size: 1.05rem; }
.role-spotlight .role-duties { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .role-spotlight .role-duties { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .role-spotlight { padding: var(--space-3); } .role-spotlight .role-duties { grid-template-columns: 1fr; } }

/* ==========================================================
   Student hiring page
   ========================================================== */
.sh-lead { margin-top: var(--space-3); max-width: 46rem; font-size: 1.1rem; }
.sh-hero .stat-grid { margin-top: var(--space-4); }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sh-copy { max-width: 42rem; margin: calc(var(--space-4) * -1) 0 var(--space-4); color: var(--ink-2); }
.sh-copy-ink { color: var(--muted-on-ink); }

/* Shift board */
.board-wrap { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-3); }
.board { display: grid; grid-template-columns: 130px repeat(7, minmax(0, 1fr)); gap: 4px; overflow-x: auto; }
.board .bh { font-family: "Silkscreen", var(--font-pixel); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0.3rem; text-align: center; }
.board .bv { font-weight: 700; font-size: 0.9rem; padding: 0.5rem 0.4rem; display: flex; align-items: center; }
.board .cell { position: relative; min-height: 64px; background: var(--paper); border-radius: 4px; display: grid; gap: 3px; padding: 3px; align-content: start; }
.shift {
  display: block;
  width: 100%;
  min-height: 24px;
  padding: 0.15rem 0.3rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: left;
  color: #fff;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transform-origin: left;
}
.shift:hover, .shift:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.shift[data-v="0"] { background: #1f7a55; }
.shift[data-v="1"] { background: #8a5a12; }
.shift[data-v="2"] { background: #b51f2f; }
.shift[data-v="3"] { background: #3b4fb8; }
.shift[data-v="4"] { background: #13201b; }
@media (prefers-reduced-motion: no-preference) {
  .board.is-filling .shift { animation: shift-in 380ms var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
}
@keyframes shift-in { from { opacity: 0; transform: scaleX(0.2); } to { opacity: 1; transform: none; } }
.board-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.board-count { font-weight: 650; }
.board-count span { font-family: var(--font); font-weight: 800; font-size: 1.5rem; color: var(--red-deep); }
.board-tip { margin-top: var(--space-1); font-size: 0.9rem; color: var(--muted); min-height: 1.4em; }

/* Discipline meter */
.meter-card { max-width: 760px; padding: var(--space-4); border: 2px solid rgba(238, 241, 234, 0.25); border-radius: var(--radius); background: rgba(238, 241, 234, 0.04); }
.meter-steps { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 0.6rem; }
.meter-steps span { font-family: "Silkscreen", var(--font-pixel); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-on-ink); transition: color 200ms; }
.meter-steps small { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 0.8rem; }
.meter-steps span.on { color: var(--gold); }
.meter-steps span.on[data-step="3"] { color: #ff6b78; }
.meter-track { position: relative; height: 28px; background: rgba(238, 241, 234, 0.1); border: 2px solid rgba(238, 241, 234, 0.5); overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, var(--gold) 0 12px, #d99620 12px 14px); transition: width 400ms var(--ease-out), background 300ms; }
.meter-track.is-danger .meter-fill { background: repeating-linear-gradient(90deg, var(--red) 0 12px, #a71828 12px 14px); }
.meter-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(238, 241, 234, 0.6); }
.meter-status { margin-top: var(--space-2); font-weight: 700; font-size: 1.1rem; min-height: 1.6em; }
.meter-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.meter-note { margin-top: var(--space-2); font-size: 0.85rem; color: var(--muted-on-ink); }
@media (prefers-reduced-motion: no-preference) { .meter-card.shake { animation: shake 400ms; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* Duty flip cards */
.duty-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.dc { perspective: 1000px; }
.dc-inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 230px;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out);
}
.dc-inner[aria-expanded="true"] { transform: rotateY(180deg); }
.dc-inner:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }
.dc-front, .dc-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--space-3);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.dc-front { background: var(--white); }
.dc-back { background: var(--ink); color: var(--paper); transform: rotateY(180deg); }
.dc-num { font-family: "Silkscreen", var(--font-pixel); font-size: 0.8rem; color: var(--muted); }
.dc-svg { width: 48px; height: 48px; }
.dc-title { font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.dc-hint { margin-top: auto; font-family: "Silkscreen", var(--font-pixel); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-deep); }
.dc-back .dc-title { color: var(--gold); font-size: 1rem; }
.dc-back ul { display: grid; gap: 0.5rem; }
.dc-back li { position: relative; padding-left: 1rem; font-size: 0.95rem; line-height: 1.4; }
.dc-back li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; background: var(--gold); }
.dc-inner:hover .dc-front { box-shadow: 6px 6px 0 var(--red); }
@media (prefers-reduced-motion: reduce) {
  .dc-inner { transition: none; }
}

/* Bridge diagram */
.bridge { position: relative; height: 360px; max-width: 760px; margin-bottom: var(--space-4); }
.bridge-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.bridge-lines line { stroke: var(--gold); stroke-width: 0.5; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) { .bridge-lines line { animation: flow 1.2s linear infinite; } }
@keyframes flow { to { stroke-dashoffset: -8; } }
.node {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 0.15rem;
  min-width: 150px;
  padding: 0.7rem 0.9rem;
  text-align: center;
  font-weight: 800;
  background: #142019;
  border: 2px solid rgba(238, 241, 234, 0.5);
  border-radius: var(--radius);
}
.node small { font-weight: 500; font-size: 0.8rem; color: var(--muted-on-ink); }
.node-me { left: 50%; top: 50%; background: var(--gold); color: var(--ink); border-color: var(--gold); font-size: 1.2rem; box-shadow: 0 0 30px rgba(233, 169, 58, 0.35); }
.node-me small { color: var(--ink-2); }
.n1 { left: 16%; top: 16%; } .n2 { left: 84%; top: 16%; } .n3 { left: 16%; top: 84%; } .n4 { left: 84%; top: 84%; }

@media (max-width: 900px) {
  .duty-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .duty-cards { grid-template-columns: 1fr; }
  .board { grid-template-columns: 96px repeat(7, 58px); }
  .bridge { height: auto; display: grid; gap: var(--space-2); }
  .bridge-lines { display: none; }
  .node { position: static; transform: none; min-width: 0; }
  .node-me { order: -1; }
}

/* Teaser for the student hiring page */
.role-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); padding: var(--space-3); background: var(--ink); color: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.role-teaser p { max-width: 44rem; }
.role-teaser strong { color: var(--gold); }

/* Resume link on the title screen */
.gs-resume {
  position: absolute;
  z-index: 3;
  right: max(1.25rem, calc((100% - 1200px) / 2));
  bottom: 2.4rem;
  font-family: "Silkscreen", var(--font-pixel);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0.5rem 0.2rem;
  text-underline-offset: 5px;
}
.gs-resume::before { content: "\2193\00a0"; color: var(--gold); }
.gs-resume:hover { color: var(--gold); }
@media (max-width: 760px) { .gs-resume { position: relative; right: auto; bottom: auto; margin-top: auto; order: 9; margin-bottom: 6.5rem; } }

/* Teaser: clearly the current ISU role */
.role-teaser { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); }
.rt-logo { width: 150px; height: auto; padding: 0.4rem 0.6rem; background: #fff; border-radius: 4px; }
.rt-kicker { display: flex; align-items: center; gap: 0.5rem; font-family: "Silkscreen", var(--font-pixel); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.rt-live { width: 9px; height: 9px; background: #4cd28a; box-shadow: 0 0 0 3px rgba(76, 210, 138, 0.25); }
@media (prefers-reduced-motion: no-preference) { .rt-live { animation: live 1.6s ease-in-out infinite; } }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(76, 210, 138, 0); } }
.rt-title { margin-top: 0.3rem; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; font-variation-settings: "wdth" 88; line-height: 1.2; color: #fff; }
.rt-copy { margin-top: 0.4rem; color: var(--muted-on-ink); max-width: 46rem; }
.role-teaser strong { color: inherit; }
@media (max-width: 860px) { .role-teaser { grid-template-columns: 1fr; gap: var(--space-2); } .rt-btn { justify-self: start; } }

/* Photo albums: fanned polaroids */
.albums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.album {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.album-cover { position: relative; height: 190px; padding: 0; background: none; border: 0; cursor: zoom-in; }
.album-cover:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }
.al-stack { position: absolute; inset: 0; }
.al-pic {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  padding: 6px 6px 22px;
  background: #fff;
  border: 1.5px solid rgba(19, 32, 27, 0.25);
  box-shadow: 3px 4px 0 rgba(19, 32, 27, 0.18);
  transition: transform 300ms var(--ease-out);
}
.al-pic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; }
.al-pic-1 { transform: translate(-80%, -50%) rotate(-10deg); z-index: 1; }
.al-pic-2 { transform: translate(-20%, -50%) rotate(9deg); z-index: 2; }
.al-pic-3 { transform: translate(-50%, -46%) rotate(-2deg); z-index: 3; }
.album:hover .al-pic-1, .album-cover:focus-visible .al-pic-1 { transform: translate(-105%, -52%) rotate(-16deg); }
.album:hover .al-pic-2, .album-cover:focus-visible .al-pic-2 { transform: translate(5%, -52%) rotate(15deg); }
.album:hover .al-pic-3, .album-cover:focus-visible .al-pic-3 { transform: translate(-50%, -54%) rotate(0deg) scale(1.06); }
.album-red .al-pic-3 { border-bottom: 6px solid var(--red); }
.album-green .al-pic-3 { border-bottom: 6px solid #1f7a55; }
.al-kicker { font-family: "Silkscreen", var(--font-pixel); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.al-title { margin-top: 0.3rem; font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.al-caption { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.al-open {
  margin-top: var(--space-2);
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 150ms var(--ease-out);
}
.album-green .al-open { background: #bfe6cf; }
.al-open:hover { transform: translate(-1px, -1px); }
.al-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 1100px) { .albums { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .album { grid-template-columns: 1fr; } .album-cover { height: 180px; } }
@media (prefers-reduced-motion: reduce) { .al-pic { transition: none; } }

/* ==========================================================
   Phones: readable pixel labels and a calmer layout
   ========================================================== */
@media (max-width: 760px) {
  /* Small labels switch from Silkscreen to the rounder, more legible Pixelify Sans */
  .lm-lvl, .lm-state, .lm-you, .lm-panel-kicker,
  .qv-item dt, .qv-time, .qv-title,
  .quest-title, .quest-state, .quest-sub, .quest-reward span,
  .al-kicker, .rt-kicker, .gs-kicker, .gs-sub, .gs-resume,
  .gs-clock dt, .gs-clock dd,
  .inv-head, .inv-count, .inv-langs-title, .inv-badge,
  .wm-hud, .role-duties h4, .rs-kicker, .cs-kicker, .cs-meta dt,
  .motto-label, .motto-sign, .to-top, .lost-links span,
  .stat::after, .lvl-title, .lvl-here, .lvl-num,
  .feature-kicker, .job-dates, .edu-year, .numbers-intro {
    font-family: "Pixelify Sans", var(--font) !important;
    font-weight: 600;
    letter-spacing: 0.03em !important;
  }
  .lm-lvl, .lm-state, .lm-you, .qv-item dt, .qv-time, .quest-state, .quest-sub,
  .al-kicker, .rt-kicker, .role-duties h4, .rs-kicker, .cs-kicker, .inv-count,
  .gs-clock dt, .lvl-here { font-size: 0.85rem !important; }
  .qv-title, .quest-title, .gs-kicker, .motto-label, .lm-panel-kicker, .inv-head, .wm-hud { font-size: 1rem !important; }
  .gs-sub { font-size: 1rem !important; letter-spacing: 0.02em !important; }
  .section-label { letter-spacing: 0.08em; }

  /* Breathing room */
  body { line-height: 1.65; }
  .section { padding-block: 3.75rem; }
  .statement { margin-bottom: var(--space-4); }
  .qv-grid { gap: var(--space-4); }
  .qv-actions .btn { flex: 1 1 100%; }
  .role-duties li, .quest-detail, .al-caption { line-height: 1.55; }

  /* Level map: a straight path, full width cards */
  .lm-step:nth-child(even), .lm-step:nth-child(odd) { margin: 0; }
  .lm-step:not(:last-child)::after {
    left: 34px !important;
    width: 0;
    border-bottom: 0 !important;
    border-right: 0 !important;
    border-left: 2px dashed rgba(233, 169, 58, 0.55) !important;
  }

  /* Back-to-top shrinks to a small square that stays out of the way */
  .to-top { right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); min-height: 44px; width: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .to-top span { font-size: 1rem; }

  /* Photo albums: smaller fan */
  .album-cover { height: 160px; }
  .al-pic { width: 100px; }
}

/* Header tools move into the menu on small phones */
@media (max-width: 520px) {
  .site-header .header-inner > .hdr-tools { display: none; }
  .site-nav .hdr-tools {
    display: flex;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1.5px solid rgba(238, 241, 234, 0.14);
  }
  .site-nav .hdr-tools::before {
    content: "Display";
    align-self: center;
    margin-right: auto;
    font-family: "Pixelify Sans", var(--font);
    font-weight: 600;
    color: var(--muted-on-ink);
  }
  .site-nav .tool-btn { min-width: 52px; height: 44px; }
}
@media (max-width: 760px) { .lvl-here { white-space: nowrap; font-size: 0.75rem !important; } .site-nav a:not(.btn) { font-size: 1.2rem; gap: 0.7rem; } }

/* Header monogram: SA in pixel type */
.brand-name {
  font-family: "Silkscreen", var(--font-pixel);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  font-variation-settings: normal;
  color: var(--gold);
}
@media (max-width: 420px) { .brand-name { font-size: 1.15rem; } }
