:root {
  --paper: #eceef4;
  --mist: #e2e6f0;
  --surface: #f6f7fb;
  --ink: #1a2230;
  --ink-soft: #4a5568;
  --ink-faint: rgba(26, 34, 48, 0.42);
  --sage: #6b8f9c;
  --sage-deep: #3d5a66;
  --sage-mist: rgba(107, 143, 156, 0.2);
  --horizon: #c4a574;
  --horizon-mist: rgba(196, 165, 116, 0.28);
  --world-a: rgba(99, 132, 168, 0.35);
  --world-b: rgba(107, 143, 156, 0.25);
  --world-c: rgba(196, 165, 116, 0.22);
  --slate-mist: rgba(38, 48, 58, 0.09);
  --gold-leaf: rgba(198, 162, 88, 0.18);
  --gold-leaf-deep: rgba(168, 132, 58, 0.12);
  --gold-sheen: rgba(232, 214, 168, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-meta: #3d5a66;
  --logo-filter: brightness(0) saturate(100%) invert(28%) sepia(15%) saturate(680%) hue-rotate(152deg) brightness(94%) contrast(90%);
  --body-base: linear-gradient(168deg, #e4e7ee 0%, var(--paper) 48%, #eef0f5 100%);
  --header-bg: linear-gradient(to bottom, rgba(232, 235, 242, 0.94), rgba(236, 238, 244, 0.76), transparent);
  --footer-bg: linear-gradient(to top, rgba(236, 238, 244, 0.97) 0%, rgba(236, 238, 244, 0.9) 40%, rgba(236, 238, 244, 0.72) 100%);
  --section-jump-bg: rgba(246, 247, 251, 0.82);
  --section-jump-bg-hover: rgba(255, 255, 255, 0.92);
  --section-jump-border: rgba(92, 117, 104, 0.22);
  --panel-bg: rgba(255, 255, 255, 0.44);
  --panel-bg-hover: rgba(255, 255, 255, 0.52);
  --panel-border: rgba(92, 117, 104, 0.14);
  --panel-shadow: rgba(44, 51, 46, 0.06);
  --divider: rgba(26, 34, 48, 0.22);
  --scrollbar-track: rgba(26, 34, 48, 0.07);
  --grain-opacity: 0.52;
  --noise-opacity: 0.042;
  --field-drift-duration: 36s;
  --radius: 20px;
  --nav-h: 4.25rem;
  --developer-marquee-h: clamp(3.25rem, 8vw, 4rem);
  /* Fixed header + stacked section-jump buttons (3 rows) */
  --anchor-offset: calc(var(--nav-h) + 6.35rem);
  /* Space so content clears fixed footer (tall note: long copyright wraps on narrow screens) */
  --footer-fixed-pad: clamp(6.75rem, 22vmin, 9.5rem);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a0a0a;
  --mist: #0e0e0e;
  --surface: #121212;
  --ink: #f4f4f4;
  --ink-soft: #c2c2c2;
  --ink-faint: rgba(244, 244, 244, 0.48);
  --sage: #8ec5d1;
  --sage-deep: #6eb0bf;
  --sage-mist: rgba(110, 176, 191, 0.14);
  --horizon: #d4a574;
  --horizon-mist: rgba(212, 165, 116, 0.1);
  --world-a: rgba(110, 176, 191, 0.08);
  --world-b: rgba(255, 255, 255, 0.03);
  --world-c: rgba(212, 165, 116, 0.06);
  --slate-mist: rgba(0, 0, 0, 0.55);
  --gold-leaf: rgba(255, 255, 255, 0.04);
  --gold-leaf-deep: rgba(0, 0, 0, 0.5);
  --gold-sheen: rgba(255, 255, 255, 0.06);
  --theme-meta: #000000;
  --logo-filter: brightness(0) saturate(100%) invert(94%) sepia(6%) saturate(180%) hue-rotate(180deg) brightness(98%) contrast(94%);
  --body-base: #080808;
  --header-bg: linear-gradient(to bottom, rgba(8, 8, 8, 0.97), rgba(12, 12, 12, 0.88), transparent);
  --footer-bg: linear-gradient(to top, #050505 0%, rgba(10, 10, 10, 0.96) 45%, rgba(12, 12, 12, 0.82) 100%);
  --section-jump-bg: #111111;
  --section-jump-bg-hover: #181818;
  --section-jump-border: rgba(255, 255, 255, 0.08);
  --panel-bg: #111111;
  --panel-bg-hover: #171717;
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-shadow: rgba(0, 0, 0, 0.72);
  --divider: rgba(255, 255, 255, 0.1);
  --scrollbar-track: rgba(255, 255, 255, 0.04);
  --grain-opacity: 0.14;
  --noise-opacity: 0.028;
  --field-drift-duration: 52s;
  --neu-shadow-dark: rgba(0, 0, 0, 0.88);
  --neu-shadow-light: rgba(255, 255, 255, 0.045);
  --neu-raise: 7px 7px 16px var(--neu-shadow-dark), -5px -5px 14px var(--neu-shadow-light);
  --neu-inset: inset 6px 6px 14px var(--neu-shadow-dark), inset -5px -5px 12px var(--neu-shadow-light);
  --neu-flat: #0f0f0f;
}

html {
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: background-color 0.75s var(--ease), color 0.75s var(--ease);
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background 0.75s var(--ease),
    background-color 0.75s var(--ease),
    color 0.75s var(--ease),
    border-color 0.75s var(--ease),
    box-shadow 0.75s var(--ease),
    fill 0.75s var(--ease),
    stroke 0.75s var(--ease),
    opacity 0.75s var(--ease) !important;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 95% 72% at 50% 108%, var(--slate-mist), transparent 52%),
    radial-gradient(ellipse 55% 48% at 4% 92%, rgba(44, 54, 66, 0.07), transparent 46%),
    radial-gradient(ellipse 50% 44% at 96% 8%, rgba(58, 68, 82, 0.06), transparent 44%),
    var(--body-base);
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

/* Gold-leaf warmth + horizons — irregular metallic washes over atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 44% at 14% 78%, var(--gold-leaf), transparent 58%),
    radial-gradient(ellipse 38% 48% at 91% 32%, var(--gold-leaf-deep), transparent 54%),
    radial-gradient(ellipse 30% 36% at 58% 91%, var(--gold-sheen), transparent 50%),
    radial-gradient(ellipse 22% 28% at 72% 18%, rgba(212, 178, 95, 0.14), transparent 46%),
    radial-gradient(circle 42vw at 12% 22%, var(--world-a), transparent 58%),
    radial-gradient(circle 38vw at 92% 18%, var(--world-b), transparent 55%),
    radial-gradient(ellipse 90% 55% at 50% 108%, var(--horizon-mist), transparent 50%),
    radial-gradient(circle 28vw at 78% 78%, var(--world-c), transparent 52%),
    radial-gradient(ellipse 70% 50% at 40% 0%, rgba(99, 132, 168, 0.12), transparent 45%);
  animation: field-drift var(--field-drift-duration) var(--ease) infinite alternate;
}

[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 90% 55% at 50% 108%, rgba(110, 176, 191, 0.05), transparent 52%),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(255, 255, 255, 0.03), transparent 50%),
    linear-gradient(168deg, #0c0c0c 0%, var(--body-base) 48%, #050505 100%);
}

[data-theme="dark"] body::before {
  opacity: 0.22;
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(110, 176, 191, 0.06), transparent 58%),
    radial-gradient(circle 30vw at 88% 12%, rgba(255, 255, 255, 0.02), transparent 55%);
}

/* Slate-like grain + fine cleavage lines (fixed texture, reads as stone) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: soft-light;
  background:
    repeating-linear-gradient(
      92deg,
      transparent 0,
      transparent 3px,
      rgba(35, 44, 54, 0.04) 3px,
      rgba(35, 44, 54, 0.04) 4px
    ),
    repeating-linear-gradient(
      -3deg,
      transparent,
      transparent 11px,
      rgba(28, 36, 46, 0.045) 11px,
      rgba(28, 36, 46, 0.045) 12px
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.032' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: auto, auto, 480px 480px;
}

@keyframes field-drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(1.5%, -2%) scale(1.035) rotate(0.8deg); opacity: 0.93; }
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--sage-deep);
  color: var(--paper);
  z-index: 10000;
}

/* Custom vertical scrollbar: native hidden; thumb is top-anchored fill that grows with scroll */
.scroll-indicator {
  position: fixed;
  top: 0;
  right: 0;
  width: max(10px, 0.55vw);
  height: 100vh;
  height: 100dvh;
  z-index: 10050;
  pointer-events: auto;
  background: var(--scrollbar-track);
  cursor: pointer;
  touch-action: none;
}
.scroll-indicator.is-dragging {
  cursor: grabbing;
}
.scroll-indicator__fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  border-radius: 0 0 0 4px;
  background: linear-gradient(180deg, var(--sage-deep), var(--horizon));
  box-shadow: 0 0 12px rgba(61, 90, 102, 0.35);
  cursor: grab;
  pointer-events: auto;
}
.scroll-indicator.is-dragging .scroll-indicator__fill {
  cursor: grabbing;
}

header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

em {
   
  color: var(--sage-deep);
  
}
.mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
/* Logo tint matches --sage-deep (#3d5a66); img used instead of mask (luminance masks hide dark art; mask URLs can fail on file://) */
.mark-logo {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: var(--logo-filter);
  transition: filter 0.75s var(--ease);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
nav a:hover { color: var(--sage-deep); text-decoration: none; }

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.85rem, 2.2vw, 1.65rem);
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.site-header__divider {
  display: block;
  width: 1px;
  height: 2.35rem;
  flex-shrink: 0;
  align-self: center;
  background: var(--divider);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.35);
}

.nav-chicago-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.25;
  min-width: 0;
  max-width: 14rem;
}

.nav-chicago-widget__label {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.nav-chicago-widget__weather {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: 0.04em;
}

.nav-chicago-widget__wx-icon {
  font-size: 1.05em;
  line-height: 1;
  filter: grayscale(0.15);
}

.nav-chicago-widget__temp {
  font-variant-numeric: tabular-nums;
}

.nav-chicago-widget__wind {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nav-chicago-widget__clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.06rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.nav-chicago-widget__clock #chi-date {
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-chicago-widget__clock time {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--panel-shadow);
  transition: background 0.75s var(--ease), color 0.75s var(--ease), border-color 0.75s var(--ease), box-shadow 0.75s var(--ease);
}
.theme-toggle:hover {
  color: var(--horizon);
  border-color: rgba(196, 165, 116, 0.35);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}
.theme-toggle__icon {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #f0e6c8, var(--horizon) 42%, var(--sage-deep) 100%);
  box-shadow: 0 0 10px var(--horizon-mist);
  transition: background 0.75s var(--ease), box-shadow 0.75s var(--ease);
}
[data-theme="dark"] .theme-toggle__icon {
  background:
    radial-gradient(circle at 38% 34%, #f2ebe0 0%, #f2ebe0 16%, transparent 18%),
    radial-gradient(circle at 50% 50%, #c49a6c 0%, #8a6848 52%, #2a2030 100%);
  box-shadow:
    0 0 12px rgba(196, 154, 108, 0.32),
    0 0 28px rgba(106, 145, 158, 0.12);
}

@media (max-width: 720px) {
  :root {
    /* Room for wrapped logo + nav + Chicago strip */
    --nav-h: 5.5rem;
    /* One compact row of jump buttons instead of three stacked */
    --section-jump-bar-h: 2.75rem;
    --anchor-offset: calc(var(--nav-h) + var(--section-jump-bar-h) + max(0.35rem, env(safe-area-inset-top, 0px)));
  }

  header.site {
    height: auto;
    min-height: var(--nav-h);
    align-items: center;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.35rem;
  }

  .section-jump {
    flex-direction: row;
    flex-wrap: nowrap;
    border-top: 1px solid rgba(92, 117, 104, 0.22);
  }

  .section-jump-btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.2rem;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid rgba(92, 117, 104, 0.22);
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .section-jump-btn:last-child {
    border-right: none;
  }

  .section-jump-btn:first-child {
    border-top: none;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 6.35rem;
    --section-jump-bar-h: 2.9rem;
    --anchor-offset: calc(var(--nav-h) + var(--section-jump-bar-h) + max(0.35rem, env(safe-area-inset-top, 0px)));
  }
}

@media (max-width: 540px) {
  .nav-chicago-widget {
    font-size: 0.55rem;
    max-width: 11rem;
  }
  .site-header__right {
    gap: 0.65rem;
  }
}

.section-jump {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
.section-jump-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem);
  border-radius: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.2;
  color: var(--ink-soft);
  background: var(--section-jump-bg);
  border: none;
  border-bottom: 1px solid var(--section-jump-border);
  backdrop-filter: blur(10px);
  box-shadow: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.section-jump-btn:first-child {
  border-top: 1px solid var(--section-jump-border);
}
.section-jump-btn:hover {
  color: var(--sage-deep);
  border-color: rgba(61, 90, 102, 0.35);
  background: var(--section-jump-bg-hover);
  text-decoration: none;
}

#top,
#work,
#portfolio,
#about,
#resume,
#journal,
#contact {
  scroll-margin-top: var(--anchor-offset);
}

.hero-orbit {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}
.hero-orbit svg {
  width: 100%;
  height: 100%;
  display: block;
}

main {
  position: relative;
  z-index: 1;
  transition: opacity 0.24s var(--ease);
  padding-bottom: calc(var(--footer-fixed-pad) + env(safe-area-inset-bottom, 0px));
}
main.is-anchor-fading {
  opacity: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

main > section {
  padding: clamp(4rem, 12vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  /* Clear fixed header + stacked section-jump rows (see --anchor-offset) */
  padding-top: calc(var(--anchor-offset) + clamp(0.5rem, 2vw, 1rem));
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-content: center;
  position: relative;
}

.first-device-welcome {
  position: relative;
  isolation: isolate;
  width: min(100%, 34rem);
  margin: 0 0 1.25rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  color: #f7efe8;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(148, 11, 28, 0.48), transparent 34%),
    linear-gradient(145deg, rgba(15, 17, 24, 0.94), rgba(6, 7, 12, 0.92) 48%, rgba(31, 4, 12, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    18px 22px 50px rgba(0, 0, 0, 0.26),
    -12px -12px 32px rgba(255, 255, 255, 0.08),
    inset 10px 10px 22px rgba(0, 0, 0, 0.5),
    inset -8px -8px 20px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.first-device-welcome::before,
.first-device-welcome::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.first-device-welcome::before {
  width: 15rem;
  height: 15rem;
  left: -5rem;
  top: -7rem;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.24), rgba(93, 103, 125, 0.12) 42%, transparent 70%);
  animation: liquid-drift 12s var(--ease) infinite alternate;
}

.first-device-welcome::after {
  width: 18rem;
  height: 18rem;
  right: -7rem;
  bottom: -9rem;
  background: radial-gradient(circle at 45% 40%, rgba(210, 13, 44, 0.52), rgba(88, 0, 14, 0.28) 52%, transparent 74%);
  animation: liquid-drift 15s var(--ease) infinite alternate-reverse;
}

.first-device-welcome__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 226, 219, 0.78);
}

.first-device-welcome__kicker::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #e20f2f;
  box-shadow: 0 0 22px rgba(226, 15, 47, 0.72);
}

.first-device-welcome__intro {
  max-width: 48ch;
  margin: 0;
  font-size: clamp(0.98rem, 2vw, 1.14rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 248, 243, 0.86);
}

.first-device-welcome__intro strong {
  color: #fff;
  font-weight: 600;
}

@keyframes liquid-drift {
  0% { transform: translate3d(0, 0, 0) scale(0.94) rotate(0deg); }
  100% { transform: translate3d(1.4rem, 0.9rem, 0) scale(1.08) rotate(10deg); }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }
}

.hero-visual-wrap {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 0.5;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 300;
  color: #4a6b7a;
}

.hero-copy .role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.25rem;
}

.hero-copy .lede {
  max-width: 42ch;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.lobby-rooms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  width: min(100%, 28rem);
  margin: 0.65rem 0 0;
}

@media (min-width: 540px) {
  .lobby-rooms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lobby-room {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-height: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.75s var(--ease);
  box-shadow: 0 8px 24px var(--panel-shadow);
}

.lobby-room:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 165, 116, 0.42);
  box-shadow:
    0 14px 32px rgba(44, 51, 46, 0.1),
    0 0 0 1px rgba(196, 165, 116, 0.18);
  text-decoration: none;
}

.lobby-room__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.lobby-room__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.lobby-room__desc {
  flex: 1;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.42;
  color: var(--ink-soft);
  margin: 0;
}

.lobby-room__enter {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--horizon);
  margin-top: 0.35rem;
}

.lobby-floor-nav {
  width: min(100%, 28rem);
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--panel-border);
}

.lobby-floor-nav__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.45rem;
}

.lobby-floor-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
}

.bento-caption {
  position: relative;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin: 0 0 0.6rem;
}

nav a[aria-current="page"] {
  color: var(--sage-deep);
}

.principles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.principles span {
  opacity: 0.85;
}
.principles .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.55;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), text-decoration-color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--sage-deep);
  color: var(--paper);
  border-color: transparent;
}
.btn-primary:hover { background: #4a6156; }

/* Shared recessed neumorphic surface (welcome CTA + hero focus panel) */
.neu-recessed {
  border-radius: 12px;
  background: linear-gradient(155deg, #e2e5ee 0%, var(--paper) 42%, #e6e8ef 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 5px 6px 12px rgba(26, 34, 48, 0.16),
    inset -4px -5px 12px rgba(255, 255, 255, 0.78),
    inset 1px 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.btn-primary.btn-welcome-flip {
  justify-content: flex-start;
  width: min(100%, 28rem);
  max-width: min(100%, 28rem);
  color: var(--sage-deep);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-primary.btn-welcome-flip:hover {
  transform: translateY(0);
  background: linear-gradient(155deg, #e0e3ec 0%, #eaecf4 42%, #e4e7ee 100%);
  color: var(--sage-deep);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 6px 7px 14px rgba(26, 34, 48, 0.14),
    inset -3px -4px 11px rgba(255, 255, 255, 0.82),
    inset 1px 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary.btn-welcome-flip:active {
  background: linear-gradient(155deg, #dde0ea 0%, #e6e8f0 42%, #e1e4ec 100%);
  box-shadow:
    inset 8px 9px 18px rgba(26, 34, 48, 0.2),
    inset -2px -3px 8px rgba(255, 255, 255, 0.65),
    inset 1px 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-focus-panel {
  width: min(100%, 28rem);
  padding: 1rem 1.2rem 1.15rem;
}
.hero-focus-panel__title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.9rem;
}
.hero-focus-panel__section {
  margin-bottom: 1rem;
}
.hero-focus-panel__section:last-child {
  margin-bottom: 0;
}
.hero-focus-panel__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.45rem;
}
.hero-focus-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.5;
}
.hero-focus-panel__list li {
  position: relative;
  padding-left: 0.75rem;
}
.hero-focus-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.55;
}
.hero-focus-panel__list li + li {
  margin-top: 0.2rem;
}
.hero-focus-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}
.hero-focus-panel__tags span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(92, 117, 104, 0.16);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.55),
    inset -1px -1px 2px rgba(26, 34, 48, 0.06);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  padding: 0.4rem 0;
  border-radius: 0;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(92, 117, 104, 0.5);
}
.btn-ghost:hover {
  color: var(--sage-deep);
  text-decoration: underline;
  text-decoration-color: var(--sage-deep);
  text-decoration-thickness: 2px;
}

.btn-welcome-flip {
  text-transform: none;
}
.btn-welcome-flip__inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.btn-welcome-flip__static {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.btn-welcome-flip__sep {
  opacity: 0.55;
  user-select: none;
}
.btn-welcome-flip__roller {
  display: inline-block;
  perspective: 520px;
  transform-style: preserve-3d;
  min-width: 2.5em;
  vertical-align: baseline;
}
.btn-welcome-flip__face {
  display: inline-block;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transition: transform 0.42s var(--ease), opacity 0.42s var(--ease);
}
.btn-welcome-flip__face.is-flip-out {
  transform: rotateX(-90deg);
  opacity: 0;
}
.btn-welcome-flip__face.is-flip-in {
  animation: welcome-lang-flip-in 0.42s var(--ease) forwards;
}
@keyframes welcome-lang-flip-in {
  from {
    transform: rotateX(88deg);
    opacity: 0;
  }
  to {
    transform: rotateX(0);
    opacity: 1;
  }
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(72px, 8vw, 120px);
  gap: 0.65rem;
  align-items: stretch;
}

@media (min-width: 600px) {
  .bento { gap: 0.85rem; }
}

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(92, 117, 104, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  box-shadow: 0 12px 36px rgba(44, 51, 46, 0.06);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12%;
  filter: drop-shadow(0 10px 24px rgba(44, 51, 46, 0.12));
}

.t-a { grid-column: span 3; grid-row: span 2; background: radial-gradient(ellipse at 25% 15%, var(--sage-mist), transparent 58%), var(--surface); }
.t-b { grid-column: span 3; grid-row: span 2; background: radial-gradient(ellipse at 85% 85%, rgba(214, 206, 188, 0.35), transparent 55%), var(--mist); }
.t-c { grid-column: span 2; grid-row: span 2; min-height: 140px; }
.t-d { grid-column: span 2; grid-row: span 2; min-height: 140px; background: linear-gradient(155deg, #153535, #2d6a6a); }
.t-d img {
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}
.t-e { grid-column: span 2; grid-row: span 2; min-height: 140px; background: var(--surface); }

.tile-dark img {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.bento .mini-portal.compact {
  width: 86%;
  height: min(78%, 168px);
  max-height: 168px;
  padding: 0.5rem 0.55rem;
  gap: 0.35rem;
}
.bento .mini-portal.compact .mp-top { height: 5px; }
.bento .mini-portal.compact .mp-line { height: 5px; }

.qf-bento {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: rgba(240, 235, 227, 0.92);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.flex-canvas {
  width: 100%;
  height: 100%;
  padding: 8%;
}
.flex-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.persist-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
}
.persist-stack .bar {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 132, 168, 0.9), var(--sage-deep));
  opacity: 0.85;
  animation: persist-grow 7s var(--ease) infinite alternate;
}
.persist-stack .bar:nth-child(1) { width: 42%; animation-delay: 0s; }
.persist-stack .bar:nth-child(2) { width: 58%; animation-delay: 0.4s; }
.persist-stack .bar:nth-child(3) { width: 72%; animation-delay: 0.8s; }
.persist-stack .bar:nth-child(4) { width: 88%; animation-delay: 1.2s; }

@keyframes persist-grow {
  0% { transform: scaleX(0.92); opacity: 0.65; }
  100% { transform: scaleX(1); opacity: 1; }
}

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.75rem;
}

.section-head {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 2.5rem;
  max-width: 22ch;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 0.5;
}

#work {
  background: linear-gradient(to bottom, transparent, rgba(194, 200, 218, 0.4) 38%, transparent);
  padding-top: clamp(2.5rem, 7vw, 4rem);
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
}
#work .section-label {
  margin-bottom: 0.45rem;
}
#work .section-head {
  margin-bottom: 1.35rem;
  max-width: 30ch;
}
#work .work-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.2rem);
  max-width: min(100%, 76rem);
  margin-inline: auto;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  #work .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  #work .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.work-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }
  .work-feature {
    grid-column: span 2;
  }
}

#work .case {
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  align-content: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
#work .case-visual {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  padding: clamp(0.5rem, 2vw, 0.95rem);
}
#work .case-visual .case-thumb {
  position: relative;
  z-index: 1;
  object-fit: contain;
  padding: 0;
  max-width: 72%;
  max-height: 82%;
  filter: drop-shadow(0 4px 12px rgba(44, 51, 46, 0.08));
}
#work .case-body {
  padding: 0.75rem 0.9rem 0.85rem;
  border-left: none;
  border-top: 1px solid rgba(92, 117, 104, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.2rem;
  min-width: 0;
  min-height: 0;
}
#work .case-body h3 {
  font-size: 0.98rem;
  margin: 0 0 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#work .case-body p {
  font-size: 0.76rem;
  line-height: 1.45;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#work .case-meta {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.15rem;
  flex-shrink: 0;
}

#work .case-visual.slides::after {
  inset: 10% 7%;
}
#work .case-visual.charstar .book-stack {
  height: 62%;
}
#work .case-visual.civic .civic-bars {
  width: min(92%, 7.5rem);
  gap: 0.35rem;
}

.case {
  display: block;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(92, 117, 104, 0.14);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(44, 51, 46, 0.07);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.case:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 117, 104, 0.28);
  box-shadow: 0 22px 50px rgba(44, 51, 46, 0.1);
  text-decoration: none;
}

.case-visual {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  position: relative;
}

.case-visual.slides {
  background:
    linear-gradient(135deg, rgba(138, 163, 153, 0.28) 0%, transparent 48%),
    linear-gradient(225deg, rgba(214, 206, 188, 0.45) 0%, transparent 42%),
    var(--mist);
}
.case-visual.slides::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 6px;
  border: 1px solid rgba(92, 117, 104, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.2));
  pointer-events: none;
}

.slide-mock {
  position: relative;
  z-index: 1;
  width: min(72%, 320px);
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: linear-gradient(120deg, #faf8f5 0%, #e6ebe7 100%);
  box-shadow: 0 20px 44px rgba(44, 51, 46, 0.14);
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 500;
  color: var(--sage-deep);
  letter-spacing: -0.02em;
}

.case-visual.mission-qf {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(61, 122, 122, 0.45), transparent 58%),
    linear-gradient(155deg, #153535, #1f4a4a 45%, #2d6a6a);
}
.case-visual.mission-qf .qf-lockup {
  position: relative;
  z-index: 1;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: rgba(240, 235, 227, 0.95);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.case-visual.learning {
  background: linear-gradient(165deg, #ebe6df, #d8d2c8);
}
.case-visual.study-kern {
  background: linear-gradient(165deg, #e2ebe6, #cfdcd4);
}

.mini-portal {
  position: relative;
  z-index: 1;
  width: min(72%, 260px);
  aspect-ratio: 4 / 3;
  background: #f8f6f3;
  border-radius: 8px;
  border: 1px solid rgba(26, 25, 22, 0.08);
  box-shadow: 0 16px 40px rgba(44, 51, 46, 0.12);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}
.mini-portal .mp-top {
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, #b54a2a, #c45d3d);
  opacity: 0.9;
}
.mini-portal.study .mp-top {
  background: linear-gradient(90deg, var(--sage-deep), var(--sage));
}
.mini-portal .mp-line {
  height: 6px;
  border-radius: 2px;
  background: rgba(44, 51, 46, 0.1);
  width: 100%;
}
.mini-portal .mp-line.mid { width: 86%; }
.mini-portal .mp-line.short { width: 54%; }

.case-visual.civic {
  background: linear-gradient(165deg, #0f1419, #152028 50%, #1a2630);
}
.case-visual.civic .civic-bars {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: min(78%, 280px);
}
.case-visual.civic .civic-bars span {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: rgba(232, 237, 244, 0.1);
  border-left: 3px solid #3d9a78;
}
.case-visual.civic .civic-bars span:nth-child(2) { width: 92%; }
.case-visual.civic .civic-bars span:nth-child(3) { width: 76%; }
.case-visual.civic .civic-bars span:nth-child(4) { width: 100%; }

.case-visual.charstar {
  background: linear-gradient(160deg, #e8ebe8 0%, #dce3de 100%);
}
.case-visual.charstar .book-stack {
  display: flex;
  gap: 0.35rem;
  align-items: flex-end;
  height: 55%;
}
.case-visual.charstar .spine {
  width: 1.35rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #6f7a74, #9aa8a0);
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.08);
}
.case-visual.charstar .spine:nth-child(2) { height: 92%; background: linear-gradient(90deg, #5c7568, #8aa399); }
.case-visual.charstar .spine:nth-child(3) { height: 78%; background: linear-gradient(90deg, #4a5c54, #6d8478); }
.case-visual.charstar .spine:nth-child(4) { height: 100%; background: linear-gradient(90deg, #7a7268, #a89888); }

.case-body {
  padding: 1.25rem 1.35rem 1.5rem;
  border-top: 1px solid rgba(92, 117, 104, 0.1);
  background: rgba(255, 255, 255, 0.5);
}
.case-body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.case-body p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 48ch;
}
.case-meta {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

#lens {
  background: transparent;
}

.lens-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.lens-card {
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem;
  background: var(--surface);
  border: 1px solid rgba(92, 117, 104, 0.12);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 10px 30px rgba(44, 51, 46, 0.05);
}
.lens-card strong {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.lens-card span {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.45;
}

.about-contact-band {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  padding: clamp(2.75rem, 8vw, 5.25rem) clamp(1rem, 4vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(210, 216, 232, 0.42) 0%, transparent 52%),
    linear-gradient(125deg, transparent 40%, rgba(99, 132, 168, 0.07) 100%);
}
@media (min-width: 880px) {
  .about-contact-band {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
  }
}
.about-contact-band #about,
.about-contact-band #contact {
  background: none;
  padding: 0;
  margin: 0;
}
.about-contact-band #about .section-label {
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
}
.about-contact-band #about .section-head {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin-bottom: 0.85rem;
  max-width: none;
  line-height: 1.18;
}
.about-contact-band .about-split {
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .about-contact-band .about-split {
    grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr);
    align-items: start;
  }
}
.about-contact-band .about-visual {
  aspect-ratio: 3 / 4;
  max-height: 9.5rem;
  max-width: 5.75rem;
  width: 100%;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(44, 51, 46, 0.07);
}
@media (min-width: 520px) {
  .about-contact-band .about-visual {
    margin-inline: 0;
  }
}
.about-contact-band .about-visual::after {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
}
.about-contact-band .about-visual::before {
  inset: 14% 18%;
}
.about-contact-band .about-text p {
  font-size: 0.8rem;
  line-height: 1.48;
  margin: 0 0 0.6rem;
  max-width: none;
}
.about-contact-band .tools {
  margin-top: 0.55rem;
  gap: 0.18rem;
}
.about-contact-band .tools span {
  font-size: 0.4rem;
  padding: 0.2rem 0.38rem;
  letter-spacing: 0.06em;
}
.about-contact-band .contact-panel {
  min-height: 100%;
  padding: clamp(1.15rem, 3vw, 1.85rem);
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .about-contact-band .contact-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.about-split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 800px) {
  .about-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-visual {
  border-radius: calc(var(--radius) + 6px);
  aspect-ratio: 4 / 5;
  max-height: 520px;
  background:
    radial-gradient(circle at 28% 22%, rgba(99, 132, 168, 0.38), transparent 52%),
    radial-gradient(circle at 82% 78%, var(--horizon-mist), transparent 48%),
    var(--mist);
  border: 1px solid rgba(61, 90, 102, 0.16);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44, 51, 46, 0.08);
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: 16% 20%;
  border-radius: 50%;
  border: 2px solid rgba(99, 132, 168, 0.22);
  box-shadow:
    0 0 0 1px rgba(99, 132, 168, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  animation: calm-breathe 10s var(--ease) infinite alternate;
  z-index: 0;
}
.about-visual::after {
  content: "CH";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  color: rgba(61, 90, 102, 0.14);
  z-index: 1;
  pointer-events: none;
}

@keyframes calm-breathe {
  0% { transform: scale(0.94); opacity: 0.75; }
  100% { transform: scale(1); opacity: 1; }
}

.about-text p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 1.25rem;
}
.about-text p:last-child { margin-bottom: 0; }

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tools span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 117, 104, 0.2);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.45);
}

.contact-panel {
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, rgba(99, 132, 168, 0.18) 0%, var(--horizon-mist) 55%, rgba(246, 247, 251, 0.95) 100%), var(--surface);
  border: 1px solid rgba(61, 90, 102, 0.14);
  display: grid;
  gap: 1.5rem;
  box-shadow: 0 18px 50px rgba(44, 51, 46, 0.08);
}
@media (min-width: 640px) {
  .contact-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.contact-panel h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--ink);
}
.contact-panel .hint {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 36ch;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}
.contact-links a {
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(92, 117, 104, 0.15);
  color: var(--sage-deep);
}
.contact-links a:hover { border-color: var(--sage-deep); color: var(--ink); text-decoration: none; }

#journal {
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1rem, 4vw, 2rem);
  max-width: min(100%, 76rem);
  margin-inline: auto;
}

#journal .section-head {
  max-width: 28ch;
  margin-bottom: 1.25rem;
}

.journal-lede {
  margin: 0 0 1.75rem;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.journal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.journal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(92, 117, 104, 0.12);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(44, 51, 46, 0.06);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.journal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 90, 102, 0.24);
  box-shadow: 0 16px 40px rgba(44, 51, 46, 0.1);
}

.journal-card__strip {
  height: 4px;
  background: linear-gradient(90deg, var(--sage-deep), var(--horizon));
}

.journal-card__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.journal-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journal-card__tag {
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--sage-mist);
  color: var(--sage-deep);
}

.journal-card__meta time {
  color: var(--ink-faint);
  font-weight: 500;
}

.journal-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.journal-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.journal-card h3 a:hover {
  color: var(--sage-deep);
}

.journal-card p {
  margin: 0 0 0.85rem;
  flex: 1;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.journal-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage-deep);
  text-decoration: none;
}

.journal-card__link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.journal-empty {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px dashed rgba(92, 117, 104, 0.22);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.journal-empty code {
  font-size: 0.85em;
  background: rgba(26, 34, 48, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

[data-theme="dark"] .journal-card {
  background: var(--panel-bg);
  border-color: var(--panel-border);
  box-shadow: 0 12px 32px var(--panel-shadow);
}

/* Resume — tabbed ATS / simple / extended */
#resume {
  padding-top: clamp(2.5rem, 7vw, 4rem);
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
  background: linear-gradient(to bottom, transparent, rgba(194, 200, 218, 0.28) 42%, transparent);
}
#resume .section-head {
  max-width: 34ch;
  margin-bottom: 0.65rem;
}
.resume-lede {
  margin: 0 0 1.35rem;
  max-width: 48ch;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.55;
}
.resume-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}
.resume-tablist li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.resume-tablist button {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 117, 104, 0.28);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.resume-tablist button:hover {
  border-color: rgba(61, 90, 102, 0.42);
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.78);
}
.resume-tablist button[aria-selected="true"] {
  background: var(--sage-deep);
  color: var(--paper);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(61, 90, 102, 0.22);
}
.resume-tablist button:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}
.resume-panels {
  max-width: min(100%, 44rem);
}
.resume-panel {
  border-radius: calc(var(--radius) - 4px);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  background: var(--surface);
  border: 1px solid rgba(92, 117, 104, 0.14);
  box-shadow: 0 14px 40px rgba(44, 51, 46, 0.06);
}
.resume-panel[hidden] {
  display: none !important;
}

/* ATS-oriented: linear, plain type, easy copy/paste */
.resume-panel--ats {
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #141820;
  background: #fafbfd;
}
.resume-panel--ats h3 {
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.35rem;
  letter-spacing: 0;
  text-transform: none;
  color: #141820;
}
.resume-panel--ats h3:first-child {
  margin-top: 0;
}
.resume-panel--ats .resume-ats-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.resume-panel--ats .resume-ats-contact {
  margin: 0 0 1rem;
  white-space: pre-line;
}
.resume-panel--ats p {
  margin: 0 0 0.65rem;
}
.resume-panel--ats ul {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
}
.resume-panel--ats li {
  margin-bottom: 0.35rem;
}
.resume-panel--ats .resume-job-head {
  font-weight: 700;
  margin: 0.85rem 0 0.2rem;
}
.resume-panel--ats .resume-job-meta {
  margin: 0 0 0.35rem;
  font-style: italic;
  color: #3d4656;
}
.resume-ats-hint {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26, 34, 48, 0.12);
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-family: "Outfit", system-ui, sans-serif;
}

/* Simple client-facing */
.resume-panel--simple .resume-simple-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.35rem;
}
.resume-panel--simple .resume-simple-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.resume-panel--simple .resume-simple-one {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.52;
  max-width: 42ch;
}
.resume-panel--simple ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.resume-panel--simple li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.resume-panel--simple li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.65;
}

/* Extended + read more */
.resume-panel--extended .resume-ext-summary {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--ink-soft);
  font-weight: 300;
}
.resume-panel--extended .resume-ext-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 560px) {
  .resume-panel--extended .resume-ext-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.resume-panel--extended .resume-ext-block h4 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.45rem;
}
.resume-panel--extended .resume-ext-block ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.48;
}
.resume-panel--extended .resume-ext-block li + li {
  margin-top: 0.35rem;
}
.resume-readmore {
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(92, 117, 104, 0.18);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.resume-readmore summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  user-select: none;
}
.resume-readmore summary::-webkit-details-marker {
  display: none;
}
.resume-readmore summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  opacity: 0.55;
}
.resume-readmore[open] summary::after {
  content: "−";
}
.resume-readmore summary:hover {
  background: rgba(99, 132, 168, 0.08);
}
.resume-full-body {
  padding: 0 1rem 1.15rem;
  border-top: 1px solid rgba(92, 117, 104, 0.12);
  font-size: 0.82rem;
  line-height: 1.52;
  color: var(--ink-soft);
}
.resume-full-body h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  margin: 1rem 0 0.35rem;
}
.resume-full-body h4:first-child {
  margin-top: 0.35rem;
}
.resume-full-body .resume-role-line {
  font-weight: 600;
  color: var(--ink);
  margin: 0.65rem 0 0.15rem;
  font-size: 0.84rem;
}
.resume-full-body .resume-role-when {
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin: 0 0 0.4rem;
}
.resume-full-body ul {
  margin: 0 0 0.65rem;
  padding-left: 1rem;
}
.resume-full-body li + li {
  margin-top: 0.28rem;
}
.resume-full-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(92, 117, 104, 0.12);
  font-size: 0.78rem;
}

/* Timeline infographic — presence across school & roles */
.resume-panels:has(.resume-panel--timeline:not([hidden])) {
  max-width: min(100%, 52rem);
}
.resume-tab--infographic {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.resume-tab__glyph {
  position: relative;
  flex: 0 0 0.72rem;
  width: 0.72rem;
  height: 0.95rem;
}
.resume-tab__glyph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.12rem;
  bottom: 0.12rem;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--horizon), var(--sage-deep));
  opacity: 0.85;
}
.resume-tab__glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.1rem;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--horizon);
  box-shadow: 0 0.42rem 0 var(--sage), 0 0.84rem 0 var(--sage-deep);
}
.resume-tablist button[aria-selected="true"] .resume-tab__glyph::before {
  background: linear-gradient(to bottom, var(--gold-sheen), rgba(255, 255, 255, 0.65));
}
.resume-tablist button[aria-selected="true"] .resume-tab__glyph::after {
  background: var(--paper);
  box-shadow: 0 0.42rem 0 rgba(255, 255, 255, 0.72), 0 0.84rem 0 rgba(255, 255, 255, 0.45);
}
.resume-panel--timeline {
  font-family: "Outfit", system-ui, sans-serif;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.42) 0%, transparent 42%),
    linear-gradient(320deg, var(--horizon-mist) 0%, transparent 38%),
    var(--surface);
}
.resume-timeline-lede {
  margin: 0 0 1rem;
  max-width: 42ch;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.55;
}
.resume-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
}
.resume-timeline-legend__item {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
}
.resume-timeline-legend__item--school {
  color: var(--horizon);
  background: var(--horizon-mist);
  border-color: rgba(196, 165, 116, 0.35);
}
.resume-timeline-legend__item--role {
  color: var(--sage-deep);
  background: var(--sage-mist);
  border-color: rgba(107, 143, 156, 0.28);
}
.resume-timeline {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
}
.resume-timeline__item {
  display: grid;
  grid-template-columns: minmax(4.8rem, 5.6rem) 1.35rem minmax(0, 1fr);
  gap: 0 0.85rem;
  align-items: start;
  padding-bottom: 1.1rem;
}
.resume-timeline__item:last-child {
  padding-bottom: 0;
}
.resume-timeline__when {
  margin: 0.45rem 0 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  line-height: 1.35;
}
.resume-timeline__marker {
  position: relative;
  width: 100%;
  min-height: 100%;
}
.resume-timeline__marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -1.1rem;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, rgba(107, 143, 156, 0.18), rgba(107, 143, 156, 0.42));
  border-radius: 2px;
}
.resume-timeline__item:last-child .resume-timeline__marker::before {
  bottom: 0.55rem;
}
.resume-timeline__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(92, 117, 104, 0.22);
  z-index: 1;
}
.resume-timeline__item--school .resume-timeline__marker::after {
  background: var(--horizon);
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.45), 0 4px 12px rgba(196, 165, 116, 0.28);
}
.resume-timeline__item--role .resume-timeline__marker::after {
  background: var(--sage-deep);
  box-shadow: 0 0 0 1px rgba(61, 90, 102, 0.35), 0 4px 12px rgba(61, 90, 102, 0.18);
}
.resume-timeline__card {
  margin: 0;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: calc(var(--radius) - 8px);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 24px var(--panel-shadow);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.resume-timeline__item:hover .resume-timeline__card,
.resume-timeline__item:focus-within .resume-timeline__card {
  background: var(--panel-bg-hover);
  transform: translateY(-1px);
}
.resume-timeline__kind {
  margin: 0 0 0.3rem;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.resume-timeline__item--school .resume-timeline__kind {
  color: var(--horizon);
}
.resume-timeline__item--role .resume-timeline__kind {
  color: var(--sage-deep);
}
.resume-timeline__title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.resume-timeline__place {
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sage-deep);
}
.resume-timeline__detail {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 520px) {
  .resume-timeline__item {
    grid-template-columns: minmax(3.6rem, 4.2rem) 1.15rem minmax(0, 1fr);
    gap: 0 0.55rem;
  }
  .resume-timeline__when {
    font-size: 0.52rem;
  }
}
[data-theme="dark"] .resume-panel--timeline {
  background:
    linear-gradient(155deg, rgba(196, 154, 108, 0.06) 0%, transparent 40%),
    linear-gradient(320deg, rgba(58, 72, 130, 0.18) 0%, transparent 45%),
    var(--surface);
}
[data-theme="dark"] .resume-timeline__marker::before {
  background: linear-gradient(to bottom, rgba(122, 157, 168, 0.12), rgba(122, 157, 168, 0.38));
}
[data-theme="dark"] .resume-timeline__item--school .resume-timeline__marker::after {
  box-shadow: 0 0 0 1px rgba(196, 154, 108, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .resume-timeline__item--role .resume-timeline__marker::after {
  box-shadow: 0 0 0 1px rgba(122, 157, 168, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.resume-full-footer a {
  font-weight: 600;
  color: var(--sage-deep);
}

[data-theme="dark"] .neu-recessed,
[data-theme="dark"] .btn-primary.btn-welcome-flip,
[data-theme="dark"] .btn-primary.btn-welcome-flip:hover,
[data-theme="dark"] .btn-primary.btn-welcome-flip:active {
  background: linear-gradient(155deg, #141414 0%, #0c0c0c 42%, #111111 100%);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--sage);
  box-shadow: var(--neu-inset);
}

[data-theme="dark"] .contact-panel {
  background: linear-gradient(135deg, #101010 0%, #141414 55%, #0a0a0a 100%), var(--surface);
  border-color: var(--panel-border);
  box-shadow: var(--neu-raise);
}

[data-theme="dark"] .tools span,
[data-theme="dark"] .resume-tablist button {
  background: var(--panel-bg);
  border-color: var(--panel-border);
}

[data-theme="dark"] .resume-tablist button:hover {
  background: var(--panel-bg-hover);
}

[data-theme="dark"] .resume-panel {
  box-shadow: 0 14px 40px var(--panel-shadow);
}

[data-theme="dark"] .case {
  background: var(--panel-bg);
  border-color: var(--panel-border);
  box-shadow: 0 12px 36px var(--panel-shadow);
}

@media print {
  header.site,
  .section-jump,
  .scroll-indicator,
  .noise,
  .developer-marquee,
  footer.site-foot {
    display: none !important;
  }
  .resume-tablist {
    display: none !important;
  }
  .resume-panel[hidden] {
    display: none !important;
  }
  #resume .resume-panel--ats {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

footer.site-foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 130;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem) calc(1.1rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--section-jump-border);
  background: var(--footer-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: bottom 0.45s var(--ease);
}

html.developer-marquee-ready main {
  padding-bottom: calc(var(--footer-fixed-pad) + var(--developer-marquee-h) + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.theme-transition,
  html.theme-transition *,
  html.theme-transition *::before,
  html.theme-transition *::after { transition: none !important; }
  .case:hover, .btn:hover { transform: none; transition: none; }
  .btn-welcome-flip__face { transition: none; }
  .btn-welcome-flip__face.is-flip-in { animation: none; }
  body::before { animation: none; transform: none; }
  .persist-stack .bar { animation: none; }
  .about-visual::before { animation: none; }
  main { transition: none; }
  .lobby-room { transition: none; }
  .lobby-room:hover { transform: none; }
  .first-device-welcome::before,
  .first-device-welcome::after { animation: none; }
}

/* Sync with site-mobile-shell.css smartphone layout */
@media (max-width: 768px) {
  :root {
    --nav-h: calc(3.15rem + env(safe-area-inset-top, 0px));
    --footer-fixed-pad: calc(3.85rem + env(safe-area-inset-bottom, 0px));
    --section-jump-bar-h: 2.65rem;
    --anchor-offset: calc(var(--nav-h) + var(--section-jump-bar-h) + 0.25rem);
  }

  header.site {
    height: var(--nav-h);
    min-height: var(--nav-h);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 0;
  }

  main {
    padding-bottom: calc(var(--footer-fixed-pad) + env(safe-area-inset-bottom, 0px));
  }

  html.developer-marquee-ready main {
    padding-bottom: calc(var(--footer-fixed-pad) + var(--developer-marquee-h) + env(safe-area-inset-bottom, 0px));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 0.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1.12;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.85rem;
  }

  .lobby-rooms {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  #work .work-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .about-contact-band {
    grid-template-columns: 1fr;
  }

  .about-contact-band .about-split,
  .about-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-contact-band .contact-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .resume-panel--extended .resume-ext-grid {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding-inline: max(0.85rem, env(safe-area-inset-left, 0px)) max(0.85rem, env(safe-area-inset-right, 0px));
  }
}
