:root {
  color-scheme: dark;
  --background: #111315;
  --surface: #191d20;
  --text: #f4f4f0;
  --muted: #b7b9b9;
  --line: #34383b;
  --accent: #f2c66d;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; font-size: 1rem; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
p, h1, h2, h3 { margin: 0; word-break: keep-all; overflow-wrap: break-word; }
::selection { background: var(--accent); color: var(--background); }
.wrap { width: min(calc(100% - 5rem), 75rem); margin-inline: auto; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--accent); color: var(--background); }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.7rem; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.65rem; font-weight: 750; letter-spacing: -.06em; line-height: 1.2; }
.wordmark span { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 2rem; }
.language-switch { display: flex; gap: .2rem; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.language-switch button { padding: .35rem .45rem; color: var(--muted); background: transparent; border: 0; font: inherit; font-size: .875rem; cursor: pointer; white-space: nowrap; }
.language-switch button[aria-pressed="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: .35rem; }
.language-switch button:hover { color: var(--text); }
.site-header nav { display: flex; gap: 2rem; font-size: .875rem; }
.site-header nav a { color: var(--muted); transition: color .15s ease; }
.site-header nav a:hover { color: var(--accent); }
.eyebrow { font-family: "Cascadia Code", Consolas, monospace; font-size: .875rem; line-height: 1.5; letter-spacing: .05em; color: var(--muted); }
.hero { position: relative; padding-top: 4.2rem; }
.hero > .eyebrow { margin-bottom: 2rem; color: var(--accent); }
.hero-brand { font-size: clamp(3.5rem, 12vw, 10.5rem); font-weight: 750; letter-spacing: -.075em; line-height: 1.05; }
.hero-brand span { color: var(--accent); }
.hero-tagline { margin-top: 2rem; max-width: 32ch; font-size: clamp(1.75rem, 3.8vw, 3rem); font-weight: 550; letter-spacing: -.04em; line-height: 1.4; }
.hero-tagline span { color: var(--accent); }
.mobile-break { display: none; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 3rem; padding-block: 2.6rem 3.6rem; }
.hero-bottom p { color: var(--muted); font-size: 1.0625rem; }
.text-link { flex-shrink: 0; font-size: .9375rem; border-bottom: 1px solid var(--accent); padding-block: .4rem; }
.text-link:hover { color: var(--accent); }
.hero-note { display: flex; gap: 2rem; padding-block: 1rem; border-block: 1px solid var(--line); color: var(--muted); font: .8125rem/1.5 "Cascadia Code", Consolas, monospace; letter-spacing: .14em; }
.hero-note span + span::before { content: "/"; margin-right: 2rem; color: #72787c; }
.section { padding-block: 6.5rem; }
h2 { margin-top: 1rem; font-size: clamp(1.875rem, 3.3vw, 2.75rem); line-height: 1.4; font-weight: 600; letter-spacing: -.045em; }
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; border-bottom: 1px solid var(--line); }
.about-content { max-width: 40rem; }
.about-content .lead { margin-bottom: 2rem; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.55; letter-spacing: -.025em; color: var(--text); }
.about-content > p { color: var(--muted); }
.about-content > p + p { margin-top: 1.1rem; }
.about-content strong { color: var(--text); font-weight: 500; }
.name-origin { display: flex; align-items: center; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.name-origin > div { display: flex; flex-direction: column; }
.origin-word { font-size: 2.2rem; line-height: 1.3; font-weight: 500; letter-spacing: -.045em; color: var(--accent); }
.origin-meaning { margin-top: .3rem; font-size: .875rem; color: var(--muted); }
.origin-plus { color: #72787c; font-size: 1.5rem; }
.projects { border-bottom: 1px solid var(--line); }
.section-intro { margin-top: 1.2rem; color: var(--muted); }
.featured-project { display: grid; grid-template-columns: 1.2fr 1fr; margin-top: 3rem; border: 1px solid var(--line); background: var(--surface); }
.project-info { padding: 3rem; }
.status { display: inline-block; width: fit-content; padding: .25rem .65rem; border: 1px solid #60666a; border-radius: 3px; color: #d8dadb; font-size: .875rem; line-height: 1.5; }
.status-research { color: var(--accent); border-color: #857049; }
.project-genre { margin-top: 1.4rem; font-size: .875rem; color: var(--muted); }
h3 { margin-top: .8rem; font-size: 1.875rem; line-height: 1.4; font-weight: 550; letter-spacing: -.045em; }
.featured-project h3 { font-size: clamp(2rem, 3vw, 2.5rem); }
.project-description { margin-top: 1.5rem; color: var(--muted); }
.project-description + .project-description { margin-top: 1rem; }
.companion-theme { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; min-height: 100%; margin: .8rem; padding: 2.5rem; background: #293431; }
.theme-caption { font-size: .875rem; color: #c1d1c9; }
.companion-theme p { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.65; letter-spacing: -.045em; }
.companion-theme p span { color: var(--accent); }
.theme-footer { color: #c1d1c9; font: .8125rem/1.6 "Cascadia Code", Consolas, monospace; letter-spacing: .04em; }
.story-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.story-project { display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--line); }
.story-project + .story-project { border-left: 0; }
.project-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.project-number { color: #9ca2a5; font: .875rem/1.5 "Cascadia Code", Consolas, monospace; }
.story-project .project-genre { margin-top: 2rem; }
.story-project .project-description { flex: 1; }
.project-theme { padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.development-note { margin-top: 1.5rem; color: var(--muted); font-size: .875rem; }
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; }
.contact-content { padding-top: .2rem; }
.contact-content > p { color: var(--muted); }
.email-link { display: inline-block; max-width: 100%; margin-top: 1.3rem; font-size: clamp(1.1rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--accent); padding-bottom: .35rem; overflow-wrap: anywhere; letter-spacing: -.03em; }
.email-link:hover { color: var(--accent); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 1.35rem; }
.site-footer p { margin-left: auto; color: var(--muted); font-size: .875rem; }
.site-footer small { color: var(--muted); font-size: .875rem; }
@media (min-width: 1600px) { .hero { padding-top: 5rem; } }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { padding-top: 3.5rem; }
  .about, .contact { gap: 3rem; }
  .featured-project { grid-template-columns: 1fr 1fr; }
  .project-info { padding: 2rem; }
  .companion-theme { padding: 1.8rem; }
  .story-project { padding: 1.5rem; }
  .story-project h3 { font-size: 1.6rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { padding-block: 1.3rem; gap: 1rem; }
  .wordmark { font-size: 1.4rem; }
  .site-header nav { gap: 1rem; }
  .header-actions { gap: .7rem; }
  .language-switch { padding-left: .5rem; }
  .site-header nav a:first-child { display: none; }
  .hero { padding-top: 2.8rem; }
  .hero > .eyebrow { font-size: .8125rem; margin-bottom: 1.7rem; }
  .hero-brand { font-size: clamp(3.15rem, 14vw, 6rem); }
  .hero-tagline { font-size: clamp(1.5rem, 5.8vw, 2.1rem); margin-top: 1.5rem; }
  .mobile-break { display: initial; }
  .hero-bottom { flex-direction: column; align-items: start; gap: 1.5rem; padding-block: 2rem 2.5rem; }
  .hero-bottom p { font-size: 1rem; }
  .hero-bottom br { display: none; }
  .hero-note { gap: 1rem; font-size: .75rem; letter-spacing: .08em; }
  .hero-note span + span::before { margin-right: 1rem; }
  .section { padding-block: 4rem; }
  .about, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .about-content .lead { font-size: 1.5rem; }
  .name-origin { gap: 2rem; }
  .featured-project { grid-template-columns: 1fr; margin-top: 2rem; }
  .project-info { padding: 1.5rem; }
  .featured-project h3 { font-size: 2rem; }
  .companion-theme { padding: 1.5rem; gap: 2rem; }
  .companion-theme p { font-size: 1.875rem; }
  .story-projects { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .story-project { padding: 1.5rem; }
  .story-project + .story-project { border-left: 1px solid var(--line); border-top: 0; }
  .story-project h3 { font-size: 1.875rem; }
  .story-project h3 br { display: none; }
  .story-project .project-genre { margin-top: 1.5rem; }
  .project-theme { margin-top: 1.5rem; padding-top: 1rem; }
  .site-footer { align-items: start; flex-direction: column; gap: .65rem; }
  .site-footer p { margin-left: 0; }
}
@media (max-width: 420px) {
  .site-header { flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
