:root {
  --ink: #06141B;
  --ink-soft: #11212D;
  --blue: #253745;
  --blue-mid: #4A5C6A;
  --muted: #66777e;
  --line: #CCD0CF;
  --line-strong: #9BA8AB;
  --paper: #fbfdfe;
  --paper-blue: #f3f8fb;
  --panel: #eef5f8;
  --white: #ffffff;
  --shadow: 0 24px 80px rgb(6 20 27 / 0.14);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --body: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  color-scheme: only light;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(243 248 251 / 0.95), var(--white) 36rem),
    var(--paper);
  font-family: var(--body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: only light;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(74 92 106 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(74 92 106 / 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgb(74 92 106 / 0.28);
  background: rgb(251 253 254 / 0.82);
  backdrop-filter: blur(18px);
}

.header-identity,
.site-nav a,
.micro-label,
.location-line,
.section-bar a,
.project-number,
.process-number,
.contact-links span,
.site-footer {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-identity {
  display: grid;
  gap: 0.1rem;
  color: var(--blue);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  color: var(--blue-mid);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover,
.lang-toggle:hover {
  color: var(--ink);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2rem;
  border: 1px solid rgb(74 92 106 / 0.35);
  border-radius: 999px;
  color: var(--blue);
  background: rgb(255 255 255 / 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lang-toggle:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(74 92 106 / 0.35);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: top 180ms ease, transform 180ms ease;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 24px;
}

.section-panel {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  border-bottom: 1px solid rgb(74 92 106 / 0.3);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(20rem, 0.85fr) minmax(9rem, 0.28fr);
  align-items: end;
  min-height: clamp(720px, 88vh, 900px);
  padding: clamp(5rem, 8vw, 7.5rem) 0 clamp(2rem, 4vw, 4rem);
  overflow: hidden;
}

.poster-word {
  position: absolute;
  top: clamp(5.4rem, 9vw, 7rem);
  left: -0.04em;
  z-index: 0;
  width: 120%;
  color: rgb(37 55 69 / 0.09);
  font-family: var(--display);
  font-size: clamp(6.7rem, 17.3vw, 18.5rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 34rem;
  padding: 5.5rem 0 0;
}

.micro-label {
  color: var(--blue-mid);
}

.hello-line {
  margin: 2.5rem 0 -0.45rem;
  color: var(--blue-mid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
}

h1 {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(5.5rem, 10vw, 9.8rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.role {
  margin-top: 1.2rem;
  max-width: 26rem;
  color: var(--blue);
  font-size: clamp(1.1rem, 1.9vw, 1.65rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero-text {
  max-width: 31rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.07rem);
}

.location-line {
  margin-top: 1.35rem;
  color: var(--blue-mid);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--blue-mid), var(--blue));
}

.button.secondary {
  color: var(--blue);
  background: rgb(255 255 255 / 0.65);
}

.hero-portrait {
  position: relative;
  z-index: 3;
  align-self: end;
  justify-self: center;
  width: min(41vw, 560px);
  min-width: 350px;
  margin: 0;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 14% -11% -2% -14%;
  z-index: -1;
  border: 1px solid rgb(74 92 106 / 0.32);
  border-radius: 42% 42% 1.4rem 1.4rem;
  background:
    radial-gradient(circle at 54% 20%, rgb(204 208 207 / 0.7), transparent 58%),
    linear-gradient(180deg, rgb(243 248 251 / 0.8), rgb(255 255 255 / 0.08));
  box-shadow:
    0 34px 90px rgb(6 20 27 / 0.16),
    inset 0 0 70px rgb(37 55 69 / 0.08);
}

.hero-portrait::after {
  content: "";
  position: absolute;
  right: -2%;
  bottom: -2%;
  left: 15%;
  z-index: -2;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(6 20 27 / 0.18), transparent 68%);
  filter: blur(8px);
}

.hero-portrait img {
  width: 100%;
  max-height: min(78vh, 790px);
  object-fit: contain;
  filter:
    drop-shadow(0 26px 28px rgb(6 20 27 / 0.2))
    drop-shadow(0 56px 70px rgb(6 20 27 / 0.2));
}

.quick-facts {
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  padding-top: 7rem;
}

.fact {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgb(74 92 106 / 0.32);
  text-align: right;
}

.fact:first-child {
  border-top: 1px solid rgb(74 92 106 / 0.32);
}

.fact strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0.85;
}

.fact span {
  color: var(--blue-mid);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgb(74 92 106 / 0.3);
}

.section-bar h2,
.lower-grid h2,
.about h2,
.field-notes h2,
.focus h2,
.technical h2,
.balance h2,
.gaming h2,
.contact h2 {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-bar a {
  color: var(--blue-mid);
  text-decoration: none;
  white-space: nowrap;
}

.section-bar a:hover {
  color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  padding: 1.15rem 0 1.5rem;
}

.project-card {
  min-width: 0;
  border: 1px solid rgb(74 92 106 / 0.32);
  background: rgb(255 255 255 / 0.62);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 18px 42px rgb(6 20 27 / 0.1);
  transform: translateY(-4px);
}

.project-visual {
  position: relative;
  height: clamp(12rem, 18vw, 17rem);
  overflow: hidden;
  border-bottom: 1px solid rgb(74 92 106 / 0.28);
  background:
    linear-gradient(135deg, rgb(37 55 69 / 0.12), rgb(204 208 207 / 0.18)),
    var(--panel);
}

.visual-topline,
.visual-card,
.question-line,
.answer-line {
  position: absolute;
  left: 12%;
  right: 12%;
  display: block;
  border: 1px solid rgb(74 92 106 / 0.3);
  background: rgb(255 255 255 / 0.72);
}

.visual-topline {
  top: 15%;
  height: 0.55rem;
}

.visual-card {
  top: 31%;
  height: 2.5rem;
}

.visual-card.wide {
  top: 48%;
  height: 3.6rem;
}

.visual-card.short {
  top: 73%;
  right: 44%;
  height: 1.25rem;
  background: var(--blue);
}

.terminal-visual {
  padding: 3.1rem 1.4rem 1.4rem;
  background: var(--ink);
  color: var(--line);
}

.terminal-visual span {
  position: absolute;
  top: 1.1rem;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--line);
}

.terminal-visual span:nth-child(1) { left: 1.15rem; }
.terminal-visual span:nth-child(2) { left: 2.1rem; opacity: 0.6; }
.terminal-visual span:nth-child(3) { left: 3.05rem; opacity: 0.38; }

.terminal-visual code {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--line);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 0.78rem;
}

.question-line {
  top: 22%;
  height: 2.7rem;
}

.answer-line {
  top: 48%;
  height: 1.4rem;
}

.answer-line.small {
  top: 61%;
  right: 34%;
}

.score-chip {
  position: absolute;
  right: 12%;
  bottom: 13%;
  padding: 0.55rem 0.7rem;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.project-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.project-number {
  color: var(--blue);
  font-size: 1.65rem;
}

.project-meta h3 {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.project-meta p {
  color: var(--blue-mid);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-arrow {
  font-size: 1.3rem;
  transition: transform 180ms ease;
}

.project-card:hover .project-arrow {
  transform: translateX(4px);
}

.project-description {
  padding: 0 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(18rem, 0.72fr);
  min-height: 36rem;
  border-top: 1px solid rgb(74 92 106 / 0.3);
}

.education-block,
.process-block,
.quote-card {
  padding: clamp(1.2rem, 2.2vw, 2rem);
}

.process-block,
.quote-card {
  border-left: 1px solid rgb(74 92 106 / 0.3);
}

.sub-block {
  margin-top: 1.7rem;
}

.sub-block h3,
.process-list h3,
.compact-grid h3,
.area-grid h3 {
  margin-bottom: 0.65rem;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgb(74 92 106 / 0.18);
  color: var(--ink);
}

.timeline-row strong {
  color: var(--blue-mid);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.skills-list,
.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-list span,
.interest-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid rgb(74 92 106 / 0.32);
  color: var(--blue);
  background: rgb(255 255 255 / 0.66);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.process-list {
  position: relative;
  display: grid;
  gap: 1.2rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 4.7rem;
  width: 1px;
  background: rgb(74 92 106 / 0.3);
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem 3rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.process-number {
  padding-top: 0.55rem;
  color: var(--blue);
  font-size: 1.15rem;
}

.process-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--blue-mid);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
}

.process-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.process-list p,
.compact-grid p,
.area-grid p,
.about-copy,
.balance p,
.contact-title p {
  color: var(--muted);
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 100%;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.96), rgb(243 248 251 / 0.98)),
    var(--paper);
  box-shadow: 0 18px 42px rgb(6 20 27 / 0.08);
}

.quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 0.7;
  color: var(--blue-mid);
}

.quote-card p {
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  font-weight: 900;
  line-height: 1.05;
}

.quote-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
}

.quote-card span:last-child {
  color: var(--blue-mid);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.about,
.field-notes,
.balance {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.about-copy {
  display: grid;
  gap: 1rem;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.about-facts {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-facts span {
  border-bottom: 1px solid rgb(74 92 106 / 0.35);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-bar.compact {
  border-bottom: 0;
  padding-bottom: 0.5rem;
}

.field-notes {
  display: block;
}

.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.85fr));
  gap: 1px;
  padding: 1rem 0 2rem;
  background: rgb(74 92 106 / 0.28);
}

.note-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 23rem;
  padding: 1.15rem;
  background: rgb(255 255 255 / 0.82);
}

.note-card-large {
  min-height: 29rem;
}

.note-visual {
  display: grid;
  place-items: center;
  min-height: 12rem;
  border: 1px solid rgb(74 92 106 / 0.24);
  background:
    linear-gradient(135deg, rgb(243 248 251 / 0.92), rgb(255 255 255 / 0.7)),
    var(--paper-blue);
}

.note-card-large .note-visual {
  min-height: 17rem;
}

.terminal-mock,
.flow-mock,
.checks-mock {
  width: min(78%, 22rem);
}

.terminal-mock {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 3.5rem 2rem 1.7rem;
  border: 4px solid var(--blue);
  border-radius: 0.9rem;
  background: var(--ink);
  box-shadow: 0 18px 42px rgb(6 20 27 / 0.16);
}

.terminal-bar {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 0.45rem;
  width: 100%;
  height: 2.3rem;
  align-items: center;
  padding-left: 1.15rem;
  border-bottom: 3px solid var(--line);
}

.terminal-bar span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--line);
}

.mock-line {
  display: block;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--line);
}

.mock-line.short {
  width: 42%;
}

.mock-line.medium {
  width: 62%;
}

.mock-line.long {
  width: 82%;
}

.terminal-caret {
  position: absolute;
  right: 2rem;
  top: 50%;
  width: 1.4rem;
  height: 1.4rem;
  border-top: 4px solid var(--line);
  border-right: 4px solid var(--line);
  transform: translateY(-30%) rotate(45deg);
}

.flow-mock {
  display: grid;
  grid-template-columns: 4.4rem 1fr 4.4rem 1fr 4.4rem;
  align-items: center;
}

.flow-node {
  position: relative;
  display: block;
  width: 4.4rem;
  aspect-ratio: 1;
  border: 4px solid var(--blue);
  border-radius: 0.7rem;
  background: rgb(255 255 255 / 0.9);
}

.flow-node::before,
.flow-node::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--blue);
}

.flow-node::before {
  top: 1.35rem;
}

.flow-node::after {
  top: 2.35rem;
  right: 1.45rem;
}

.flow-node.active {
  background: var(--ink);
}

.flow-node.active::before,
.flow-node.active::after {
  background: var(--line);
}

.flow-line {
  display: block;
  height: 4px;
  background: var(--blue);
}

.checks-mock {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  border: 4px solid var(--blue);
  border-radius: 0.9rem;
  background: rgb(255 255 255 / 0.9);
}

.checks-mock span {
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.checks-mock i {
  width: 1.3rem;
  aspect-ratio: 1;
  border: 3px solid var(--blue);
  border-radius: 0.25rem;
}

.checks-mock span:first-child i,
.checks-mock span:last-child i {
  background:
    linear-gradient(135deg, transparent 46%, var(--line) 47% 55%, transparent 56%),
    var(--blue);
}

.checks-mock b {
  display: block;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--blue);
}

.checks-mock span:nth-child(2) b {
  width: 68%;
}

.note-index {
  color: var(--line-strong);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.note-card h3 {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.note-card p {
  color: var(--muted);
}

.compact-grid,
.area-grid {
  display: grid;
  gap: 1px;
  padding: 1rem 0 2rem;
  background: rgb(74 92 106 / 0.28);
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.area-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-grid article,
.area-grid article {
  min-height: 12rem;
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.8);
}

.area-grid span {
  display: inline-block;
  margin-top: 1rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balance,
.gaming {
  align-items: center;
}

.balance p,
.gaming-copy p {
  max-width: 56rem;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.interest-list {
  grid-column: 2;
}

.gaming {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.98), rgb(243 248 251 / 0.96)),
    var(--paper);
  box-shadow: 0 18px 42px rgb(6 20 27 / 0.08);
}

.gaming h2,
.gaming .micro-label {
  color: var(--ink);
}

.gaming-copy {
  display: grid;
  gap: 1.2rem;
}

.gaming-copy p {
  color: var(--muted);
}

.game-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.game-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.75rem;
  border: 1px solid rgb(74 92 106 / 0.22);
  color: var(--blue);
  background: rgb(255 255 255 / 0.8);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(22rem, 1fr) minmax(15rem, 0.55fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.contact h2 {
  max-width: 7ch;
  font-size: clamp(3.1rem, 6vw, 6.4rem);
  line-height: 0.88;
}

html[lang="fr"] .contact h2 {
  max-width: 8ch;
  font-size: clamp(2.6rem, 4.9vw, 5.1rem);
  line-height: 0.9;
}

.contact-title p {
  max-width: 27rem;
  margin-top: 1rem;
}

.contact-links {
  display: grid;
  border-top: 1px solid rgb(74 92 106 / 0.28);
}

.contact-links a {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(74 92 106 / 0.28);
  text-decoration: none;
}

.contact-links span {
  color: var(--blue-mid);
}

.contact-links strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.95rem;
}

.contact-links a:hover strong {
  color: var(--blue);
}

.system-card {
  display: grid;
  align-content: space-between;
  min-height: 20rem;
  padding: 1.35rem;
  border: 1px solid rgb(74 92 106 / 0.35);
  color: var(--muted);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.98), rgb(243 248 251 / 0.94));
  box-shadow: 0 18px 42px rgb(6 20 27 / 0.08);
}

.system-card span {
  color: var(--blue-mid);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.system-card strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0.9;
}

.system-card code {
  color: var(--blue-mid);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 0.76rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
  color: var(--blue-mid);
}

.archive-hero {
  min-height: 44rem;
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(3rem, 7vw, 5rem);
}

.archive-hero h1 {
  max-width: 11ch;
  margin-top: 1.4rem;
  font-size: clamp(4.4rem, 12vw, 12rem);
}

.archive-hero p:not(.micro-label) {
  max-width: 48rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.archive-hero .button {
  margin-top: 1.8rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1.2rem 0 2rem;
  background: rgb(74 92 106 / 0.28);
}

.archive-grid article {
  display: grid;
  align-content: start;
  min-height: 18rem;
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.82);
}

.archive-grid span {
  color: var(--line-strong);
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
}

.archive-grid h3 {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.archive-grid p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.archive-grid strong {
  margin-top: 1.1rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.72fr);
  }

  .quick-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding-top: 1.5rem;
    background: rgb(74 92 106 / 0.25);
  }

  .fact {
    padding: 1rem;
    border: 0;
    background: rgb(255 255 255 / 0.72);
    text-align: left;
  }

  .fact:first-child {
    border-top: 0;
  }

  .lower-grid,
  .contact {
    grid-template-columns: 1fr 1fr;
  }

  .quote-card,
  .system-card {
    grid-column: 1 / -1;
  }

  .process-block,
  .quote-card {
    border-left: 0;
  }

  .process-block {
    border-left: 1px solid rgb(74 92 106 / 0.3);
  }

  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .note-card,
  .note-card-large {
    min-height: auto;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --display: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  }

  .site-header,
  .section-panel,
  .site-footer {
    width: min(100% - 28px, 1440px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 70px 14px auto;
    display: none;
    padding: 1rem;
    border: 1px solid rgb(74 92 106 / 0.3);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  body.nav-open .menu-toggle span:first-child {
    opacity: 0;
  }

  body.nav-open .menu-toggle span:last-child {
    opacity: 0;
  }

  body.nav-open .menu-toggle::before {
    content: "x";
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .poster-word {
    display: none;
  }

  .hero-copy {
    max-width: none;
    padding-top: 1rem;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .hero-portrait {
    width: min(92vw, 430px);
    min-width: 0;
    margin-top: 1rem;
  }

  .quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .lower-grid,
  .about,
  .field-notes,
  .balance,
  .gaming,
  .contact,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .process-block {
    border-left: 0;
    border-top: 1px solid rgb(74 92 106 / 0.3);
  }

  .about-facts,
  .interest-list {
    grid-column: auto;
  }

  .gaming {
    padding: clamp(1.3rem, 5vw, 2rem);
  }

  .quote-card,
  .gaming,
  .system-card {
    background: linear-gradient(180deg, rgb(255 255 255 / 0.98), rgb(245 249 251 / 0.94));
  }

  .contact-links a {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .archive-hero {
    min-height: auto;
    padding-top: 4.5rem;
  }
}

@media (max-width: 460px) {
  .site-header,
  .section-panel,
  .site-footer {
    width: min(100% - 22px, 1440px);
  }

  .header-identity {
    font-size: 0.64rem;
  }

  .hero-actions,
  .quick-facts,
  .compact-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hello-line {
    margin-top: 1.5rem;
    font-size: 1.25rem;
  }

  h1 {
    font-size: clamp(3rem, 21vw, 4.8rem);
  }

  .role {
    max-width: 15ch;
    font-size: 0.95rem;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-portrait {
    width: min(100%, 380px);
  }

  .quick-facts {
    margin-top: 0.5rem;
  }

  .fact {
    min-height: 6rem;
    padding: 0.95rem;
  }

  .section-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-hero h1 {
    font-size: clamp(2.8rem, 18vw, 4.8rem);
  }

  .archive-hero p:not(.micro-label) {
    font-size: 0.98rem;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .timeline-row strong {
    text-align: left;
  }

  .process-list::before {
    left: 3.82rem;
  }

  .process-list li {
    grid-template-columns: 1.7rem 2.8rem minmax(0, 1fr);
  }
}
