:root {
  color-scheme: dark;
  --bg: #111110;
  --panel: #1a1917;
  --line: #393530;
  --text: #f5f1eb;
  --muted: #bdb4a9;
  --accent: #ff8655;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.icon-definitions { position: absolute; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.bar a { text-decoration: none; }
.brand { font: 600 .98rem var(--mono); white-space: nowrap; }
.brand b { margin-right: 8px; color: var(--accent); }
.bar nav { display: flex; justify-content: center; gap: clamp(16px, 3vw, 44px); color: var(--muted); }
.bar nav a { font-size: .94rem; }
.hero { min-height: 510px; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 38px; padding-block: 64px; }
h1 { font-size: clamp(3.3rem, 7vw, 7rem); line-height: 1.03; letter-spacing: -.09em; }
h1 span, .student strong { color: var(--accent); }
.student { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 16px; }
.student strong { font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -.025em; }
.student span { color: var(--text); font-size: 1rem; }
.bio { margin-top: 17px; color: var(--muted); max-width: 28em; line-height: 1.6; font-size: clamp(1rem, 1.8vw, 1.22rem); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; font-size: .875rem; font-weight: 650; transition: background .18s ease, border-color .18s ease; }
.button:not(.primary) .icon { color: var(--accent); }
.button:hover { border-color: var(--accent); }
.primary { background: var(--accent); color: #160b06; border-color: var(--accent); }
.primary:hover { background: #ffad8d; color: #160b06; }
.art { isolation: isolate; position: relative; display: grid; place-items: center; min-width: 0; height: 350px; overflow: hidden; border: 1px solid #4a342a; background-image: radial-gradient(ellipse, #56251466, transparent 72%), linear-gradient(#b66f3d1b 1px, transparent 1px), linear-gradient(90deg, #b66f3d1b 1px, transparent 1px); background-color: #161311; background-size: auto, 26px 26px, 26px 26px; background-position: center; }
.art-corner { position: absolute; color: #c1876a; font: 1rem var(--mono); }
.corner-top { top: 10px; left: 12px; }
.corner-bottom { bottom: 10px; right: 12px; }
.stack { position: absolute; left: 50%; top: 50%; width: min(46%, 185px); aspect-ratio: 1; transform: translate(-50%, -68%); }
.stack span { position: absolute; inset: 0; border: 1px solid #ff8655; background: #ff865508; box-shadow: inset 0 0 25px #ff550c28, 0 0 16px #ff550c24; transform: translateY(calc(var(--layer) * 17px)) rotateX(57deg) rotateZ(45deg); }
.stack span:nth-child(1) { --layer: 5; opacity: .42; }
.stack span:nth-child(2) { --layer: 4; opacity: .54; }
.stack span:nth-child(3) { --layer: 3; opacity: .65; }
.stack span:nth-child(4) { --layer: 2; opacity: .76; }
.stack span:nth-child(5) { --layer: 1; opacity: .88; }
.stack span:nth-child(6) { --layer: 0; background: #3c2018; }
.art-code { position: relative; top: -18px; color: var(--accent); font: 700 clamp(2.3rem, 5vw, 4.75rem) var(--mono); letter-spacing: -.09em; text-shadow: 0 0 27px #ff672683; }
.art-code span { color: #ffd5bd; }
.section { padding-block: 44px 66px; border-top: 1px solid var(--line); scroll-margin-top: 18px; }
.section-heading { margin-bottom: 28px; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.06em; }
.result { color: var(--accent); font: 650 clamp(2.2rem, 4vw, 3.5rem)/.98 var(--mono); letter-spacing: -.08em; }
.result small { font: 500 .9rem var(--mono); letter-spacing: 0; }
h3, h4 { font-size: 1.08rem; line-height: 1.36; }
.records { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; margin: 0; }
.records li { display: flex; flex-direction: column; gap: 13px; min-height: 154px; padding: 18px; background: var(--panel); border: 1px solid var(--line); line-height: 1.5; }
.records .highlight { min-height: 208px; padding: 21px; background: linear-gradient(148deg, #241a16, var(--panel) 72%); border-color: #513a2f; border-top-color: var(--accent); }
.records-highlights + .records { margin-top: 14px; }
.record-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font: .875rem/1.4 var(--mono); }
.record-meta .icon { width: 34px; height: 34px; padding: 6px; border: 1px solid #633d30; background: #2d1d17; color: var(--accent); }
.records a {
  text-decoration-color: #9d7969;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.records a:hover, .records a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.team-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-group-title { margin: 32px 0 14px; font-size: 1.3rem; }
.project { display: block; min-height: 172px; padding: 19px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .18s ease; }
.project:hover { border-color: var(--accent); }
.glyph { display: block; color: var(--accent); font: 600 1.5rem var(--mono); margin-bottom: 15px; }
.project p { color: var(--muted); line-height: 1.45; margin-top: 5px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 56px); }
  .hero { min-height: 0; gap: 20px; }
  .art { height: 290px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .records { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 621px) {
  .records-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .bar { flex-wrap: wrap; column-gap: 10px; row-gap: 12px; padding-block: 12px; }
  .bar nav { order: 1; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; gap: 27px; padding-block: 44px 32px; }
  h1 { font-size: clamp(2.55rem, 13vw, 5rem); }
  .contact-links { margin-top: 20px; }
  .art { height: 218px; }
  .stack { width: min(34%, 130px); }
  .stack span { transform: translateY(calc(var(--layer) * 12px)) rotateX(57deg) rotateZ(45deg); }
  .art-code { top: -12px; }
  .section { padding-block: 33px 43px; }
  .records { grid-template-columns: 1fr; }
  .records li, .records .highlight { min-height: auto; padding: 16px; }
  .project { padding: 14px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
