@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}
:root {
  --bg: #ffffff;
  --fg: #0f1b3d;
  --body: #3b4666;
  --muted: #7a819b;
  --line: #e4e6ee;
  --glyph: #8a93b5;
  --glow: #2f5bff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1020;
    --fg: #eef0f7;
    --body: #c3c8dc;
    --muted: #8d94b0;
    --line: #232944;
    --glyph: #5f6a99;
    --glow: #7aa2ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
strong { color: var(--fg); font-weight: 600; }
em { font-style: italic; }

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-areas:
    "top   side"
    "intro side"
    "exp   side"
    "foot  foot";
  column-gap: 56px;
}
.top { grid-area: top; display: flex; align-items: center; gap: 24px; }
.intro { grid-area: intro; margin: 36px 0 0; font-size: 1rem; }
.experience { grid-area: exp; margin-top: 56px; }
.side { grid-area: side; border-left: 1px solid var(--line); padding-left: 40px; }
footer { grid-area: foot; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0; }

.photo {
  width: 96px; height: 96px; flex: none;
  border-radius: 22px; object-fit: cover; object-position: 50% 30%;
}
h1 { font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.1; margin: 0; letter-spacing: -0.03em; color: var(--fg); font-weight: 700; }
.role { color: var(--muted); font-size: 1.2rem; margin: 6px 0 0; }
h2 { font-size: 1.5rem; margin: 0 0 24px; letter-spacing: -0.02em; color: var(--fg); font-weight: 700; }
.side section + section { margin-top: 48px; }
.side h2 { font-size: 1.35rem; margin-bottom: 14px; }

.muted { color: var(--muted); }

article { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; margin-bottom: 36px; }
.logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; }
.logo-generic { background: none; }
.award { margin-bottom: 20px; }
.award img { display: block; height: 40px; width: auto; border-radius: 6px; background: #fff; margin-bottom: 8px; }
.award p { margin: 0; }
article:last-child { margin-bottom: 0; }
h3 { font-size: 1rem; margin: 0; font-weight: 600; color: var(--fg); }
h3 span { font-weight: 600; }
.dates { color: var(--muted); margin: 0 0 8px; font-size: 0.95rem; }
article p { margin: 0 0 8px; }
article ul { margin: 6px 0 0; padding-left: 20px; }
article li { margin-bottom: 4px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin-bottom: 6px; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "intro" "exp" "side" "foot";
    padding: 40px 20px 40px;
  }
  .side { border-left: 0; padding-left: 0; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 40px; }
}
@media (max-width: 420px) {
  article { grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; }
  .logo { width: 36px; height: 36px; border-radius: 8px; }
  .top { gap: 16px; }
  .photo { width: 72px; height: 72px; border-radius: 18px; }
}

/* Stage for the ASCII sweep intro. The page scrolls inside it. */
.js:not(.ready) .page { visibility: hidden; }
html.stage-on, html.stage-on body { height: 100%; overflow: hidden; }
.stage { position: fixed; inset: 0; }
