/* Hallmark · 2026-11-06 · custom · atmospheric
 * Idea: the original sculpture opens a portfolio set as a record of projects.
 * Dark ink and warm paper · Manrope and Wanted Sans · accent: warm orange.
 * The work leads with one centered object. Projects are indexed by name and role. */
@font-face {
  font-family: OrangeSans;
  src: url("assets/manrope-variable-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: OrangeKorean;
  src: url("assets/wanted-sans-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --surface: #fffdf9;
  --surface-raised: #ede9e0;
  --ink: #1c1916;
  --muted: #58524a;
  --faint: #70665b;
  --line: #d7cfc3;
  --accent: #a74321;
  --accent-fill: #ff996d;
  --accent-hover: #ffb491;
  --on-accent: #21130e;
  --button: var(--ink);
  --on-button: var(--bg);
  --input-bg: #f9f6f0;
  --input-border: #8c8274;
  --error: #a23529;
  --success: #356839;
  --warning-bg: #fae9dd;
  --warning-line: #c68e73;
  --warning-ink: #77381f;
  --visual-bg: #0d0c0b;
  --visual-lines: #bdb3a6;
  --scrim: #000a;
  --shadow: 0 24px 70px #0003;
  --font-body: OrangeKorean, OrangeSans, sans-serif;
  --font-display: OrangeSans, OrangeKorean, sans-serif;
  --radius-panel: 12px;
  --radius-control: 8px;
  --radius-round: 50%;
  --gutter: clamp(16px, 5vw, 90px);
  --header-height: 72px;
  --section-space: clamp(78px, 10vw, 148px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.22, 1.34, .36, 1);
  --move: 180ms var(--ease);
}

:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #000;
  --surface: #100f0e;
  --surface-raised: #1b1815;
  --ink: #f7f2e9;
  --muted: #b6ada1;
  --faint: #918579;
  --line: #302a25;
  --accent: #ff9c70;
  --input-bg: #080706;
  --input-border: #6c6155;
  --error: #ffa798;
  --success: #a9d3a1;
  --warning-bg: #2c1c15;
  --warning-line: #754c38;
  --warning-ink: #ffc4a7;
  --shadow: 0 24px 70px #0008;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--header-height) + 28px); scrollbar-gutter: stable; }
html[data-motion=on] { scroll-behavior: smooth; }
body {
  margin: 0;
  isolation: isolate;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: -.015em;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, p { word-break: keep-all; overflow-wrap: break-word; }
p { line-height: 1.75; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent-fill); color: var(--on-accent); }

.shell { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.skip {
  position: fixed;
  z-index: 100;
  inset: 12px auto auto 16px;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }
.scroll-progress {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.ring-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .34;
  transition: opacity 650ms var(--ease);
}
.ring-background[data-state=unavailable] { display: none; }
html[data-scene=content] .ring-background { opacity: 0; }
main, .footer { position: relative; z-index: 1; }

.header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 760 25px/1 var(--font-display);
  letter-spacing: -.04em;
}
.desktop-nav, .header-actions { display: flex; align-items: center; gap: 21px; }
.header-actions { justify-self: end; gap: 8px; }
.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 540;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--move);
}
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--ink); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current]::after { transform: scaleX(1); }

.header-contact, .primary-button, .quiet-button, .project-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 12px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 620;
  transition: background-color var(--move), color var(--move), border-color var(--move), transform var(--move);
}
.header-contact {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--bg);
}
.header-contact:hover { border-color: var(--accent); }
.theme-toggle, .menu-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-round);
  background: transparent;
}
.theme-toggle:hover, .menu-toggle:hover { background: var(--surface-raised); }
.theme-label, .theme-icon-sun { display: none; }
html[data-theme=dark] .theme-icon-sun { display: block; }
html[data-theme=dark] .theme-icon-moon { display: none; }
.menu-toggle { align-content: center; gap: 5px; }
.menu-toggle span { width: 19px; height: 1px; background: var(--ink); }
.mobile-nav {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.mobile-nav a:last-child { border: 0; }
.mobile-nav a > span { color: var(--accent); }

.intro {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(17px, 3svh, 34px) 0 clamp(35px, 5svh, 54px);
  text-align: center;
}
.intro-layout { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hero-art {
  display: grid;
  justify-items: center;
  width: 100%;
  height: clamp(216px, 37svh, 365px);
}
.hero-object { position: relative; width: min(650px, 100%); height: 100%; }
.hero-object model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  cursor: grab;
}
.hero-object model-viewer:active { cursor: grabbing; }
.hero-object:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-panel); }
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  mix-blend-mode: screen;
  pointer-events: none;
}
html:not([data-theme=dark]) .hero-poster { filter: grayscale(1) invert(1); mix-blend-mode: multiply; }
html:not([data-theme=dark]) .hero-object model-viewer { filter: invert(1); }
.hero-art[data-model-state=ready] .hero-poster,
.hero-art:not([data-model-state=ready]) model-viewer { visibility: hidden; }

.intro-copy { width: 100%; margin-top: 12px; }
.wordmark {
  min-width: 0;
  font: 725 clamp(75px, 11.8vw, 166px)/.88 var(--font-display);
  letter-spacing: -.04em;
  white-space: nowrap;
}
.wordmark > span { display: inline-flex; }
.wordmark-letter, .wordmark-letter > span { display: inline-block; transform-origin: center bottom; }
.wordmark-letter > span { transition: transform 560ms var(--spring), color 200ms var(--ease); }
.name-dot { color: var(--accent); }
.intro-identity {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
.intro-identity strong { color: var(--ink); font-weight: 650; }
.intro-identity > span { padding-inline-start: 11px; border-inline-start: 1px solid var(--line); }
.intro-details { margin-top: 15px; }
.intro-title { font-size: clamp(22px, 2.4vw, 33px); font-weight: 650; letter-spacing: -.037em; line-height: 1.36; text-wrap: balance; }
.intro-title span { white-space: nowrap; }
.intro-description { max-width: 51ch; margin: 9px auto 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.intro-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
.primary-button { min-height: 49px; padding: 10px 16px; border: 1px solid var(--accent-fill); border-radius: var(--radius-control); background: var(--accent-fill); color: var(--on-accent); }
.primary-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-arrow, .quiet-button > span, .project-end > span { font-size: 18px; line-height: 1; }
.quiet-button { padding: 8px 11px; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--ink); }
.quiet-button:hover { border-color: var(--line); background: var(--surface-raised); }

.section { margin-top: var(--section-space); }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 42px;
  margin-bottom: clamp(25px, 4vw, 50px);
}
.section-heading h2, .profile-copy h2, .contact h2 {
  min-width: 0;
  font-size: clamp(37px, 5.1vw, 70px);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.section-heading > p { color: var(--muted); font-size: 16px; }
#work { margin-top: 0; padding-top: clamp(44px, 5.6vw, 80px); border-top: 1px solid var(--line); }

.project-list { border-top: 1px solid var(--line); }
.project-row {
  display: grid;
  grid-template-columns: 35px minmax(0, 1.2fr) minmax(0, 1fr) minmax(120px, auto);
  grid-template-areas: "index name detail action";
  align-items: center;
  column-gap: clamp(15px, 3.1vw, 44px);
  min-height: 157px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}
a.project-row { transition: background-color var(--move); }
a.project-row:hover, a.project-row:focus-visible { background: var(--surface); }
.project-number { grid-area: index; align-self: start; margin-top: 6px; color: var(--accent); font: 650 13px/1.4 var(--font-display); font-variant-numeric: tabular-nums; }
.project-content { grid-area: name; min-width: 0; }
.project-content h3 {
  font: 660 clamp(29px, 3.8vw, 55px)/1.04 var(--font-display);
  letter-spacing: -.038em;
}
.project-content h3 > span { display: block; }
.project-category { margin-top: 9px; color: var(--muted); font-size: 14px; }
.project-detail { grid-area: detail; min-width: 0; }
.project-state { color: var(--accent); font-size: 14px; font-weight: 650; }
.project-detail p { max-width: 34ch; margin-top: 5px; color: var(--muted); font-size: 16px; }
.project-action { grid-area: action; justify-self: end; }
.project-end {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.project-end > span { color: var(--accent); transition: transform var(--move); }
.project-end:hover, .project-row:hover .project-end { border-color: var(--accent); }

.profile-layout { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center; gap: clamp(26px, 8vw, 112px); }
.profile-picture { position: relative; min-width: 0; max-width: 430px; margin: 0; border-radius: var(--radius-panel); overflow: clip; background: var(--surface-raised); }
.profile-picture img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 500ms var(--ease); }
.profile-copy h2 { font-size: clamp(34px, 4.5vw, 59px); }
.profile-copy p { max-width: 44ch; margin-top: 13px; color: var(--muted); font-size: 16px; }
.skill-area { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.skill-area h3 { font-size: 14px; font-weight: 650; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px 15px; margin: 12px 0 0; padding: 0; list-style: none; }
.tech-stack li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 560 14px/1.4 var(--font-display); }
.tech-stack img { flex: none; width: 20px; height: 20px; object-fit: contain; }

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: clip;
}
.stat-tile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 7px 16px;
  min-height: 137px;
  padding: 22px 47px 22px 24px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition: background-color var(--move);
}
.stat-tile:hover { background: var(--surface-raised); }
.stat-tile:focus-visible { outline-offset: -4px; }
.stat-tile + .stat-tile + .stat-tile { border-top: 1px solid var(--line); }
.stat-feature {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 54px);
  border-inline-end: 1px solid var(--line);
  background: var(--surface-raised);
}
.stat-feature:hover { background: var(--surface); }
.stat-label { grid-column: 1; grid-row: 1; font-size: 16px; font-weight: 650; }
.stat-caption { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 14px; line-height: 1.5; }
.stat-tile > strong {
  grid-column: 2;
  grid-row: 1 / 3;
  font: 610 clamp(44px, 6vw, 84px)/.95 var(--font-display);
  letter-spacing: -.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-feature > strong { font-size: clamp(72px, 10vw, 146px); }
.stat-unit { margin-inline-start: 7px; color: var(--muted); font: 540 15px/1 var(--font-body); letter-spacing: 0; }
.stat-arrow { position: absolute; top: 20px; right: 16px; color: var(--accent); font-size: 18px; transition: transform var(--move); }
.stat-feature .stat-arrow { top: 22px; right: 24px; }

#guestbook .section-heading { padding-top: 24px; border-top: 1px solid var(--line); }

.note-list { border-top: 1px solid var(--line); }
.note-entry { border-bottom: 1px solid var(--line); }
.note-entry > summary {
  display: grid;
  grid-template-columns: minmax(105px, .24fr) minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px 24px;
  min-height: 116px;
  padding: 19px 12px;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--move);
}
.note-entry > summary::-webkit-details-marker { display: none; }
.note-entry > summary:hover, .note-entry[open] > summary { background: var(--surface); }
.note-entry > summary:focus-visible { outline-offset: -2px; }
.note-topic { color: var(--accent); font-size: 14px; font-weight: 630; }
.note-intro { display: grid; gap: 7px; min-width: 0; }
.note-title { font-size: clamp(21px, 2.55vw, 34px); font-weight: 650; line-height: 1.27; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
.note-deck { color: var(--muted); font-size: 15px; line-height: 1.5; word-break: keep-all; }
.note-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-round);
  color: var(--accent);
}
.note-toggle::before, .note-toggle::after { content: ""; position: absolute; width: 13px; height: 1px; background: currentColor; }
.note-toggle::after { transform: rotate(90deg); }
html[data-motion=on] .note-toggle::after { transition: transform var(--move); }
.note-entry[open] .note-toggle::after { transform: rotate(0); }
.note-body {
  display: grid;
  gap: 12px;
  padding: 0 clamp(18px, 5.5vw, 84px) 27px max(20px, 20%);
  background: var(--surface);
  color: var(--muted);
}
.note-body p { max-width: 56ch; font-size: 16px; }

.contact {
  margin-top: var(--section-space);
  padding: clamp(40px, 6.5vw, 86px) 0;
  border-top: 1px solid var(--line);
}
.contact h2 > span { color: var(--accent); }
.contact-invite { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.contact-invite > p { color: var(--muted); font-size: 16px; }
.contact-orbit {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--accent-fill);
  border-radius: var(--radius-round);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: 27px;
  transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px));
  transition: background-color var(--move);
}
.contact-orbit:hover { background: var(--accent-hover); }
.contact-channels { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.contact-channels a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 620 14px/1.4 var(--font-display); }
.contact-channels a > span { color: var(--muted); font-size: 13px; font-weight: 480; }
.contact-channels a:hover > span { color: var(--accent); }
html[data-theme=light] .discord-icon img, html[data-theme=light] .contact-channels img { filter: brightness(0); }

.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 19px 25px; border-top: 1px solid var(--line); }
.footer > span, .footer-actions { color: var(--muted); font-size: 13px; }
.footer .art-credit { display: flex; gap: 9px; flex-wrap: wrap; }
.footer-actions { display: flex; align-items: center; gap: 15px; }
.footer-actions button, .footer-actions a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: transparent; }
.footer a:hover, .footer button:hover { color: var(--accent); }

.contact-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: min(88svh, 800px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.contact-dialog::backdrop { background: var(--scrim); }
.contact-dialog-panel { padding: clamp(20px, 4vw, 32px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
#contact-dialog .dialog-top { justify-content: flex-end; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-control); background: transparent; font-size: 22px; }
.dialog-close:hover { background: var(--surface-raised); }
.contact-dialog h2 { margin-top: 21px; font-size: clamp(24px, 4vw, 34px); font-weight: 650; line-height: 1.26; letter-spacing: -.039em; }
.contact-dialog-panel > p { margin: 9px 0 18px; color: var(--muted); font-size: 15px; }
.contact-intro-visual { position: relative; display: grid; place-items: center; height: 160px; margin: 12px 0 0; overflow: clip; border-radius: var(--radius-control); background: var(--visual-bg); isolation: isolate; }
.contact-intro-visual img { display: block; width: 235px; height: 140px; object-fit: contain; filter: grayscale(1); mix-blend-mode: screen; }
.contact-signal-grid { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--visual-lines); opacity: .24; pointer-events: none; }
.dialog-instagram, .dialog-discord { display: flex; align-items: center; gap: 12px; min-height: 58px; margin-top: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--input-bg); transition: border-color var(--move); }
.dialog-instagram:hover, .dialog-discord:hover { border-color: var(--accent); }
.channel-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; }
.channel-label { display: grid; flex: 1; gap: 3px; min-width: 0; }
.channel-label strong { font: 660 15px/1.4 var(--font-display); }
.channel-label > span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.channel-arrow { color: var(--accent); font-size: 21px; }
.dialog-signature { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

.brand, .wordmark, .intro-title, .section-heading h2, .project-content h3, .profile-picture, .stat-tile > strong { user-select: none; }
.profile-picture img, .tech-stack img, .contact-channels img { -webkit-user-drag: none; }
html[data-motion=on] .reveal { transition: opacity 440ms var(--ease), transform 560ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
html[data-motion=on] .reveal.is-pending { opacity: 0; transform: translateY(10px); }
html[data-motion=on] .contact-dialog[open] { animation: dialog-in 380ms var(--ease) both; }
html[data-motion=on] .contact-dialog.is-closing { animation: dialog-out 180ms ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(15px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(9px) scale(.99); } }

@media (hover: hover) and (pointer: fine) {
  html[data-motion=on] .wordmark-letter:hover > span { color: var(--accent); transform: translateY(5px) scaleY(.82); transition-duration: 120ms; }
  html[data-motion=on] .primary-button:hover { transform: translateY(-2px); }
  html[data-motion=on] .project-row:hover .project-end > span, html[data-motion=on] .stat-tile:hover .stat-arrow { transform: translate(2px, -2px); }
  html[data-motion=on] .profile-picture:hover img { transform: scale(1.025); }
}
html[data-motion=on] .primary-button:active, html[data-motion=on] .quiet-button:active, html[data-motion=on] .header-contact:active { transform: translateY(1px) scale(.985); }

@media (max-width: 940px) {
  .project-row { grid-template-columns: 27px minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "index name detail" ". name action"; row-gap: 12px; }
  .project-action { justify-self: start; }
}

@media (max-width: 720px) {
  :root { --header-height: 61px; }
  .header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .header .header-contact, .header.has-menu .desktop-nav { display: none; }
  .header:not(.has-menu) .desktop-nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; gap: 6px 12px; }
  .desktop-nav a { font-size: 13px; }
  .brand { font-size: 23px; }
  .header-actions { gap: 3px; }
  .intro { padding: 22px 0 40px; }
  .hero-art { height: clamp(204px, 64vw, 300px); }
  .wordmark { font-size: clamp(60px, 19vw, 124px); }
  .intro-copy { margin-top: 11px; }
  .intro-identity { margin-top: 12px; }
  .intro-title { font-size: clamp(22px, 5.8vw, 28px); }
  .intro-description { max-width: 34ch; font-size: 14px; }
  .intro-actions { gap: 8px; }
  .primary-button, .quiet-button { font-size: 13px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .section-heading > p br { display: none; }
  .note-entry > summary {
    grid-template-columns: minmax(0, 1fr) 38px;
    min-height: 0;
    gap: 7px 11px;
    padding: 17px 8px;
  }
  .note-topic, .note-intro { grid-column: 1; }
  .note-toggle { grid-column: 2; grid-row: 1 / 3; width: 38px; height: 38px; }
  .note-body { padding: 0 12px 21px; }
  .note-body p, .note-deck { font-size: 14px; }
  .project-row {
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-areas: "index name" ". detail" ". action";
    gap: 10px 12px;
    min-height: 0;
    padding-block: 20px;
  }
  .project-content h3 { font-size: clamp(29px, 8.3vw, 46px); }
  .project-content h3 > span { display: inline; }
  .project-category { margin-top: 5px; }
  .project-detail p, .profile-copy p, .contact-invite > p { font-size: 15px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-picture { width: 100%; max-width: 410px; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-tile { min-height: 112px; padding: 17px 41px 17px 17px; }
  .stat-feature { grid-row: auto; align-items: flex-start; padding: 21px 21px 24px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .stat-feature > strong { font-size: clamp(62px, 16vw, 94px); }
  .stat-arrow, .stat-feature .stat-arrow { top: 16px; right: 13px; }
  .contact-orbit { width: 49px; height: 49px; font-size: 22px; }
  .contact-channels { flex-direction: column; gap: 4px; }
  .footer .art-credit { width: 100%; }
  .footer-actions { margin-inline-start: auto; }
}

@media (max-width: 375px) {
  .intro-description { max-width: 31ch; }
  .project-content h3 { font-size: 29px; }
  .stat-tile:not(.stat-feature) > strong { font-size: 42px; }
  .contact-dialog-panel { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring-background { transition: none; }
  html:not([data-motion=on]) .wordmark-letter > span { transition: none; }
}
