/* ───────────────────────── Tokens ─────────────────────────
   A cozy game-menu look: one rounded face (Nunito) at several weights,
   chunky cards with a soft "pressed" shadow, pills for labels and buttons. */
:root {
  --sky: #c3ccbe;
  --sky-deep: #a3b0a2;
  --ink: #2e3d2f;
  --ink-soft: #4e5e4f;
  --ink-faint: #7d8a7c;
  --hair: rgba(46, 61, 47, 0.12);
  --paper: #f7f3ea;
  --card: #fffdf7;
  --card-edge: #e4dcc8;
  --moss: #6f8d58;
  --moss-deep: #4f683e;
  --leaf: #e7eedf;
  --leaf-ink: #4d6340;
  --honey: #f0e3c4;
  --honey-ink: #7a5a1f;
  --clay: #b8674a;

  --font: "Nunito", ui-rounded, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: radial-gradient(120% 90% at 50% 42%, #d6ddd0 0%, var(--sky) 48%, var(--sky-deep) 100%);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(111, 141, 88, 0.55); outline-offset: 3px; border-radius: 12px; }
::selection { background: #dfe8cf; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex: none; }
.ornament { display: none; }

/* a small pill that names where you are */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 3px 12px 3px 9px;
  border-radius: 999px;
  background: var(--moss);
  color: var(--card);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.kicker .ico { width: 15px; height: 15px; color: var(--card); }

#garden { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#garden.dragging { cursor: grabbing; }
#garden.hovering { cursor: pointer; }
/* the garden UI is controls, not text: never let a drag turn into a text selection */
#garden, .labels, .dock, .corner, .hint { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.label, .dock button, .player { -webkit-user-drag: none; }
body.dragging-view .labels .label { pointer-events: none; }
body.dragging-view, body.dragging-view .label { cursor: grabbing; }

/* ───────────────────────── Player card ───────────────────────── */
.corner { position: fixed; top: 18px; left: 20px; z-index: 10; }
.player {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 18px 6px 6px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 5px 0 var(--card-edge), 0 16px 26px -18px rgba(46, 61, 47, 0.55);
  text-decoration: none;
  transition: transform 0.3s var(--bounce), box-shadow 0.2s;
}
.player:hover { transform: translateY(-2px); }
.player:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--card-edge); }
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #cfe0bd;
  object-fit: cover;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.player-text { display: grid; gap: 1px; line-height: 1.15; }
.player-text b { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 800; color: var(--moss); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #7fbf5a; box-shadow: 0 0 0 3px rgba(127, 191, 90, 0.25); animation: online 2.4s ease-in-out infinite; }
@keyframes online { 50% { box-shadow: 0 0 0 5px rgba(127, 191, 90, 0.08); } }

/* ───────────────────────── Floating labels ───────────────────────── */
.labels { position: fixed; inset: 0; pointer-events: none; z-index: 5; transition: opacity 0.8s var(--ease); }
body.is-open .labels { opacity: 0; }
body.is-open .labels .label { pointer-events: none; }
.label {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 8px;
  pointer-events: auto;
  border: 0;
  cursor: pointer;
  padding: 6px 14px 7px 8px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-edge), 0 10px 18px -12px rgba(46, 61, 47, 0.5);
  white-space: nowrap;
  text-align: left;
  line-height: 1.1;
  transform: translate(-50%, -100%);
  transition: background 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 4px 0;
  box-shadow: 3px 3px 0 var(--card-edge);
  z-index: -1;
}
.label .ico { grid-row: span 2; width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--leaf); color: var(--moss-deep); }
.label b { font-weight: 900; font-size: 1rem; }
.label span { font-size: 0.72rem; font-weight: 800; color: var(--moss); }
.label.is-hot { background: #fff; box-shadow: 0 5px 0 #d6c9aa, 0 14px 22px -12px rgba(46, 61, 47, 0.55); }

/* ───────────────────────── Dock ───────────────────────── */
.dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 7px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 6px 0 var(--card-edge), 0 18px 34px -20px rgba(46, 61, 47, 0.6);
  max-width: calc(100% - 24px);
  overflow-x: auto;
  scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border: 0;
  background: transparent;
  padding: 7px 14px 6px;
  border-radius: 17px;
  cursor: pointer;
  line-height: 1.15;
  flex: none;
  transition: background 0.25s, transform 0.3s var(--bounce);
}
.dock .ico { width: 22px; height: 22px; color: var(--moss); margin-bottom: 3px; transition: transform 0.35s var(--bounce); }
.dock b { font-weight: 900; font-size: 0.95rem; }
.dock span { font-size: 0.68rem; font-weight: 800; color: var(--ink-faint); }
.dock button:hover, .dock button.is-hot { background: var(--leaf); }
.dock button:hover .ico, .dock button.is-hot .ico { transform: translateY(-3px) rotate(-6deg); }
.dock button:active { transform: translateY(2px); }
.dock button[aria-current="true"] { background: var(--moss); color: var(--card); box-shadow: 0 3px 0 var(--moss-deep); }
.dock button[aria-current="true"] .ico, .dock button[aria-current="true"] span { color: #e7f0dc; }

.hint {
  position: fixed;
  right: 20px;
  top: 26px;
  margin: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-edge);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-soft);
  transition: opacity 0.6s, transform 0.6s var(--ease);
  animation: nudge 3s var(--ease) 1.5s 2;
}
.hint-key { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--leaf); color: var(--moss-deep); }
.hint-key svg { width: 15px; height: 15px; }
@keyframes nudge { 0%, 20%, 100% { transform: none; } 10% { transform: translateY(-4px); } }
body.explored .hint { opacity: 0; transform: translateY(-8px); pointer-events: none; }
body.is-open .hint { opacity: 0; }
@media (max-width: 700px) {
  .hint { display: none; }
  .corner { top: 12px; left: 12px; }
  .player { padding: 5px 14px 5px 5px; border-radius: 18px; gap: 9px; }
  .avatar { width: 38px; height: 38px; border-radius: 13px; }
  .player-text b { font-size: 1.05rem; }
  .status { font-size: 0.72rem; }
  .dock { bottom: 12px; }
  .dock button { padding: 6px 10px 5px; }
  .label { padding: 4px 11px 5px 6px; column-gap: 6px; border-radius: 13px; }
  .label .ico { width: 24px; height: 24px; padding: 5px; border-radius: 8px; }
  .label b { font-size: 0.9rem; }
  .label span { display: none; }
}

/* ───────────────────────── Section pages ───────────────────────── */
.page {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
.page[hidden] { display: flex; visibility: hidden; }
/* wait for the camera to reach the building, then rise over it */
body.is-open .page { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0.55s; }

.page-bar {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 22px 16px;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--hair);
}
.back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: var(--card);
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 4px 0 var(--card-edge);
  transition: transform 0.2s, box-shadow 0.2s;
}
.back:hover { transform: translateY(-1px); }
.back:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--card-edge); }
/* a tiny island as the way home */
.back-map {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, #a3ba88 0 42%, transparent 43%),
    radial-gradient(circle at 50% 58%, #b08b66 0 44%, transparent 45%),
    #dfe5d6;
  transition: transform 0.5s var(--bounce);
}
.back:hover .back-map { transform: rotate(-14deg) scale(1.08); }
.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-edge);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s;
}
.tabs .ico { width: 17px; height: 17px; color: var(--moss); }
.tabs button:hover { background: var(--leaf); color: var(--ink); }
.tabs button[aria-current="true"] { background: var(--moss); color: var(--card); box-shadow: 0 3px 0 var(--moss-deep); }
.tabs button[aria-current="true"] .ico { color: #e7f0dc; }

.page-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(111, 141, 88, 0.4) transparent; }
/* page header: a slice of garden sky with the building turning on its own little island */
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vh, 56px) max(40px, calc((100% - 1120px) / 2)) 150px;
  background:
    radial-gradient(60% 80% at 75% 40%, rgba(255, 255, 255, 0.45), transparent 70%),
    linear-gradient(180deg, #cdd6c7 0%, #d9dfd0 55%, #e6e6d6 100%);
  overflow: hidden;
}
/* soft grassy edge where the hedge stands */
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: linear-gradient(180deg, #a9bf8e, #9db585);
  border-radius: 50% 50% 0 0 / 10px 10px 0 0;
}
.hero-text { position: relative; z-index: 2; }
.page-hero h2 {
  margin: 2px 0 10px;
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-lede {
  margin: 0;
  max-width: 28em;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-soft);
}
.hero-lede:empty { display: none; }
.hero-diorama { position: relative; z-index: 1; height: clamp(260px, 42vh, 400px); }
#vignette { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#vignette.dragging { cursor: grabbing; }
.diorama-hint {
  position: absolute;
  right: 6%;
  bottom: -4px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-faint);
}
.hedge { position: absolute; left: 0; right: 0; bottom: 20px; height: 160px; pointer-events: none; z-index: 0; }
.hedge-item { position: absolute; bottom: 0; height: auto; transform: translateX(-50%); filter: drop-shadow(0 4px 3px rgba(60, 80, 50, 0.2)); }
.keepsake { display: block; height: auto; user-select: none; -webkit-user-drag: none; }
section > .lede { display: none; }
@media (max-width: 860px) {
  .page-hero { grid-template-columns: 1fr; padding: 24px 20px 120px; gap: 0; text-align: center; }
  .hero-text { order: 2; }
  .hero-lede { margin-inline: auto; }
  .hero-diorama { height: 240px; margin-bottom: 6px; }
  .diorama-hint { display: none; }
  .hedge { height: 110px; }
  .hedge-item { max-width: 88px; }
}

/* garnishes inside the pages */
.group-prop { width: 64px; margin: 14px 0 0 2px; }
.h3-prop { width: 30px; margin: -8px 0 -6px 0; }
.contact-letter { width: 110px; margin: 0 auto 26px; }
.foot-garnish { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: -96px auto 22px; height: 96px; pointer-events: none; }
.foot-flowers { width: 84px; margin-right: -10px; }
.foot-cat { width: 62px; }
.foot-pot { width: 50px; margin-left: 4px; }
@media (max-width: 760px) {
  .group-prop { width: 58px; float: right; margin: -44px 0 0; }
}

.page-body { max-width: 1120px; margin: 0 auto; padding: 50px 40px 20px; }
.page-body > section { display: none; }
.page-body > section.is-active { display: block; animation: pop-in 0.6s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px); } }
.page-body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.page-body p { margin: 0 0 12px; }
.lede { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.quiet { color: var(--ink-faint); font-size: 0.94rem; font-weight: 700; }
.link {
  display: inline-flex;
  align-items: center;
  margin: 8px 8px 0 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--leaf-ink);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--bounce);
}
.link:hover { background: var(--moss); color: var(--card); transform: translateY(-2px); }

.page-foot {
  max-width: 1120px;
  margin: 150px auto 0;
  padding: 44px 40px 56px;
  border-top: 2px dashed var(--hair);
  text-align: center;
}
.next {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.next .kicker { margin: 0; }
.next b {
  padding: 10px 26px 12px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 5px 0 var(--card-edge);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  transition: transform 0.3s var(--bounce), box-shadow 0.2s;
}
.next:hover b { transform: translateY(-3px); }
.next:active b { transform: translateY(4px); box-shadow: 0 1px 0 var(--card-edge); }
.page-foot p { margin: 30px 0 0; font-size: 0.88rem; font-weight: 700; color: var(--ink-faint); }

@media (max-width: 760px) {
  .page-bar { grid-template-columns: auto 1fr; padding: 10px 12px 12px; gap: 10px; }
  .back { padding: 4px; }
  .back > span:last-child { display: none; }
  .tabs button { padding: 7px 11px; font-size: 0.9rem; }
  .page-body { padding: 30px 18px 0; }
  .page-foot { padding: 40px 18px 50px; }
}

/* shared chunky card */
.role, .work, .school, .plain-list, .play-list, .contact-links a, .polaroid {
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--card-edge), 0 18px 30px -26px rgba(46, 61, 47, 0.6);
}

/* about */
.about-grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.polaroid {
  margin: 4px 0 0;
  padding: 10px 10px 0;
  transform: rotate(-2deg);
  transition: transform 0.6s var(--bounce);
}
.polaroid:hover { transform: rotate(0) translateY(-3px); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.polaroid figcaption { font-weight: 800; font-size: 0.95rem; text-align: center; padding: 10px 0 12px; color: var(--ink-soft); }
.about-grid .lede { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.15; }
.about-grid > div > p:nth-of-type(2) { font-size: 1.1rem; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; margin: 24px 0 34px; }
.facts dt, .skills dt { font-size: 0.85rem; font-weight: 800; color: var(--moss); }
.facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-weight: 700; color: var(--ink-faint); }
.facts a { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--leaf); color: var(--leaf-ink); font-weight: 800; text-decoration: none; transition: background 0.25s, color 0.25s; }
.facts dd:first-of-type a { background: var(--honey); color: var(--honey-ink); }
.facts a:hover { background: var(--moss); color: var(--card); }
.skills { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.skills dd { margin: 0; color: var(--ink-soft); }
.links-row { margin-top: 26px !important; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .polaroid { max-width: 240px; margin: 0 auto; }
  .skills, .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .skills dd, .facts dd { margin-bottom: 10px; }
}

/* experience: a group label beside a stack of cards */
.xp-group { display: grid; grid-template-columns: 190px 1fr; gap: 40px; padding: 30px 0; }
.xp-group:first-child { padding-top: 0; }
.xp-group > h3 {
  display: block;
  position: sticky;
  top: 24px;
  align-self: start;
  margin: 6px 0 0;
  font-size: 1.55rem;
  color: var(--moss-deep);
}
.xp-roles { display: grid; gap: 22px; }
.role { padding: 20px 24px 20px; }
.role summary {
  list-style: none;
  cursor: default;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  margin-bottom: 8px;
}
.role summary::-webkit-details-marker { display: none; }
.org { grid-column: 1; grid-row: 1; font-size: 1.45rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.when { grid-column: 2; grid-row: 1; justify-self: end; padding: 3px 11px; border-radius: 999px; background: var(--honey); color: var(--honey-ink); font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.title { grid-column: 1 / -1; font-size: 0.98rem; font-weight: 700; color: var(--moss); line-height: 1.35; }
.body { max-width: 780px; }
.body ul { margin: 0 0 6px; padding: 0; list-style: none; }
.body li { position: relative; margin: 8px 0; padding-left: 24px; color: var(--ink-soft); }
.body li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: #a9c38f; transform: rotate(45deg); }
.body p { color: var(--ink-soft); }
.cite { font-size: 0.97rem; }
@media (max-width: 760px) {
  .xp-group { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .xp-group > h3 { position: static; }
  .role { padding: 16px 18px; }
  .org { font-size: 1.3rem; }
}

/* projects */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 30px 26px; }
.work {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--card-edge), 0 18px 30px -26px rgba(46, 61, 47, 0.6);
  transition: transform 0.35s var(--bounce), box-shadow 0.25s;
}
.work:hover, .work:focus-visible { transform: translateY(-5px); box-shadow: 0 11px 0 var(--card-edge), 0 24px 34px -26px rgba(46, 61, 47, 0.7); }
.work:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--card-edge); }
.work:focus-visible { outline: 3px solid rgba(111, 141, 88, 0.55); outline-offset: 3px; }
.work-img { display: block; aspect-ratio: 16 / 10; background: #efe8d9; overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work-img img.contain { object-fit: contain; padding: 10px 0; }
.work:hover .work-img img { transform: scale(1.04); }
.work-meta { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.work-meta > span { display: block; }
.work-fmt { font-size: 0.78rem; font-weight: 800; color: var(--moss); }
.work-title { font-size: 1.4rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; margin-top: 3px; }
.work-award { align-self: flex-start; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: var(--honey); color: var(--honey-ink); font-size: 0.8rem; font-weight: 800; }
.work-meta > .work-desc { margin-top: 8px; font-size: 0.97rem; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-by { margin-top: 8px; font-size: 0.85rem; font-weight: 700; color: var(--ink-faint); }
.work-by { margin-bottom: 14px; }
.work-meta > .work-more {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 16px;
  border-radius: 14px;
  background: var(--moss);
  color: var(--card);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--moss-deep);
}

/* education */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.two-col > div { display: grid; gap: 18px; align-content: start; }
.two-col > div > h3 { margin-bottom: -4px; }
.school { display: flex; gap: 16px; padding: 18px 20px; }
.school img { width: 46px; height: 46px; object-fit: contain; flex: none; margin-top: 2px; }
.school-name { font-size: 1.25rem; font-weight: 900; line-height: 1.2; margin-bottom: 6px !important; }
.school-name span { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: var(--honey); color: var(--honey-ink); font-size: 0.78rem; vertical-align: 3px; }
.school p { color: var(--ink-soft); }
.plain-list { list-style: none; margin: 0; padding: 6px 20px; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-top: 2px dashed var(--hair); }
.plain-list li:first-child { border-top: 0; }
.plain-list a { text-decoration: none; line-height: 1.35; font-weight: 700; transition: color 0.25s; }
.plain-list a:hover { color: var(--moss-deep); }
.plain-list span { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--leaf); color: var(--leaf-ink); font-size: 0.75rem; font-weight: 800; }

/* play */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 36px); align-items: start; }
@media (max-width: 900px) { .three-col, .two-col { grid-template-columns: 1fr; } }
.play-list { list-style: none; margin: 0; padding: 8px 16px; counter-reset: p; }
.play-list li { counter-increment: p; border-top: 2px dashed var(--hair); }
.play-list li:first-child { border-top: 0; }
.play-item {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 2px;
  border-radius: 12px;
}
.play-item::before {
  content: counter(p);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--leaf);
  color: var(--leaf-ink);
  font-size: 0.85rem;
  font-weight: 900;
}
.play-item b { display: block; font-weight: 900; font-size: 1.05rem; line-height: 1.25; transition: color 0.25s; }
.play-item small { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-faint); }
.play-item .go { padding: 3px 10px; border-radius: 999px; background: var(--moss); color: var(--card); font-size: 0.75rem; font-weight: 800; opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.3s var(--bounce); }
.play-item:hover b, .play-item:focus-visible b { color: var(--moss-deep); }
.play-item:hover::before, .play-item:focus-visible::before { background: var(--moss); color: var(--card); }
.play-item:hover .go, .play-item:focus-visible .go { opacity: 1; transform: none; }

/* contact */
.contact-links { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; display: grid; gap: 16px; }
.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  text-decoration: none;
  transition: transform 0.3s var(--bounce), box-shadow 0.2s;
}
.contact-links b { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 900; line-height: 1; }
.contact-links span { padding: 3px 11px; border-radius: 999px; background: var(--leaf); color: var(--leaf-ink); font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.contact-links a:hover { transform: translateY(-3px); }
.contact-links a:hover span { background: var(--moss); color: var(--card); }
.contact-links a:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--card-edge); }

/* ───────────────────────── Modal ───────────────────────── */
.modal {
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100svh - 40px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--card);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 8px 0 var(--card-edge), 0 40px 90px -30px rgba(20, 30, 20, 0.6);
}
.modal::backdrop { background: rgba(46, 61, 47, 0.4); backdrop-filter: blur(4px); }
.modal[open] { animation: pop-up 0.45s var(--bounce); }
@keyframes pop-up { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 0;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-edge);
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.3s var(--bounce);
}
.modal-close:hover { transform: rotate(90deg); }
.modal-media { background: #1f2620; }
.modal-media:empty { display: none; }
.modal-media video, .modal-media iframe.video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 62svh; border: 0; background: #000; }
.modal-media iframe.audio { display: block; width: 100%; height: 166px; border: 0; }
.modal-media img { width: 100%; max-height: 52svh; object-fit: contain; background: #efe8d9; }
.modal-body { padding: 24px clamp(22px, 5vw, 40px) 32px; }
.modal-body .kicker { padding-right: 12px; margin-right: 50px; }
.modal-body .kicker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.modal h3 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.modal-feat { font-size: 1rem; font-weight: 700; margin: 6px 0 0; color: var(--moss); }
.modal-award { display: inline-block; margin: 10px 0 0; padding: 3px 12px; border-radius: 999px; background: var(--honey); color: var(--honey-ink); font-size: 0.88rem; font-weight: 800; }
.modal-feat:empty, .modal-award:empty, .modal-skills:empty, .modal-desc:empty, .modal-links:empty { display: none; }
.modal-desc { margin-top: 16px; color: var(--ink-soft); }
.modal-desc p { margin: 0 0 10px; }
.modal-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.modal-skills span { padding: 3px 11px; border-radius: 999px; background: var(--leaf); color: var(--leaf-ink); font-size: 0.8rem; font-weight: 800; }
.modal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.modal-links .link { margin: 0; background: var(--moss); color: var(--card); box-shadow: 0 4px 0 var(--moss-deep); padding: 7px 16px; border-radius: 14px; }
.modal-links .link:hover { transform: translateY(-2px); }
