@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Lora:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f3f4f2;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-light: #e7f0f8;
  --surface-soft: #eef4f9;
  --text: #2c3740;
  --muted: #55677d;
  --accent: #8498a7;
  --accent-strong: #55677d;
  --accent-soft: rgba(132, 152, 167, .14);
  --border: #c7d3de;
  --max-width: 1160px;
  --ui-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 5%, rgba(183, 205, 222, .45), transparent 24rem),
    linear-gradient(180deg, rgba(231, 240, 248, .76), transparent 20rem),
    var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .75rem 1rem;
  color: #f8fbfd;
  background: var(--accent-strong);
  border-radius: .35rem;
}
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
main, .site-nav, .site-footer {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
}
main { min-height: calc(100vh - 174px); padding: 3rem 0 6rem; }
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .75rem; font-size: .98rem; font-weight: 700; }
.brand-mark {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
  border-radius: 50%;
}
.nav-links, .footer-links, .hero-actions, .project-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 600; }
.nav-links a:hover, .nav-links [aria-current="page"] { color: var(--text); }
.nav-links [aria-current="page"]::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: .2rem;
  background: var(--accent);
  content: "";
}
.hero {
  display: block;
  min-height: 0;
  padding: 4rem 0 5.5rem;
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .5rem;
  background: var(--accent-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 .3rem var(--accent-soft);
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 600;
}
h1 { max-width: 10ch; margin-bottom: 1.2rem; font-size: clamp(3.35rem, 7vw, 6.1rem); }
h2 { margin-bottom: .7rem; font-size: clamp(2rem, 4vw, 3rem); }
h3 { margin-bottom: .8rem; font-size: 1.6rem; }
p { color: var(--muted); }
.hero-copy {
  display: grid;
  gap: 1.35rem;
  max-width: 46rem;
  align-content: start;
}
.hero-intro {
  max-width: 34rem;
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.75;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--ui-font);
  letter-spacing: 0;
}
.button.primary {
  color: #f8fbfd;
  background: var(--accent-strong);
  box-shadow: 0 14px 36px rgba(85, 103, 125, .18);
}
.button.primary:hover { color: #f8fbfd; background: #4a5a6d; }
.button.secondary { background: rgba(255, 255, 255, .68); }
.button.secondary:hover { color: var(--text); border-color: var(--accent); background: rgba(255, 255, 255, .9); }
.hero-actions {
  gap: .9rem;
}
.hero-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  max-width: 42rem;
}
.summary-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(231,240,248,.92));
  box-shadow: 0 .9rem 2rem rgba(68, 87, 109, .08);
}
.summary-card strong {
  display: block;
  margin-bottom: .3rem;
  color: var(--text);
  font-family: var(--ui-font);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}
.summary-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
}
.summary-label {
  display: inline-block;
  margin-bottom: .55rem;
  color: var(--accent);
  font: .68rem "DM Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.code-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: rgba(255,255,255,.72);
  box-shadow: 0 1.5rem 5rem rgba(68, 87, 109, .16);
}
.window-bar { display: flex; gap: .4rem; padding: .8rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.84); }
.window-bar span { width: .55rem; height: .55rem; background: #a7b4c0; border-radius: 50%; }
.window-bar span:first-child { background: var(--accent-strong); }
pre { margin: 0; padding: clamp(1.25rem, 3vw, 2.5rem); color: #4a5a6d; font: clamp(.72rem, 1.4vw, .88rem)/1.9 "DM Mono", monospace; }
.code-muted { color: #8498a7; }
.code-accent { color: var(--accent); }
.welcome-summary {
  max-width: 700px;
  margin-bottom: 2.5rem;
}
.welcome-summary h2 {
  margin-bottom: .7rem;
}
.welcome-summary > p:last-child {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.section-heading-compact { margin-bottom: 1.2rem; }
.text-link { color: var(--accent); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.project-card:hover { transform: none; border-color: transparent; box-shadow: none; }
.project-card-playable { cursor: pointer; }
.project-preview {
  position: relative;
  overflow: hidden;
  height: 128px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: #f5f8fb;
}
.project-links { flex-wrap: wrap; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.project-links a { color: var(--muted); font-size: .76rem; font-weight: 700; }
.project-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-preview.has-image::before,
.project-preview.has-image::after,
.project-preview.has-image span,
.project-preview-apollo.has-image::before,
.project-preview-apollo.has-image::after {
  display: none !important;
  content: none !important;
}
.project-preview::before,
.project-preview::after,
.project-preview span {
  position: absolute;
  display: block;
  content: "";
}
.project-preview-apollo {
  background:
    radial-gradient(circle at 18% 22%, #f2f4f7 0 .08rem, transparent .1rem),
    radial-gradient(circle at 78% 20%, #f2f4f7 0 .08rem, transparent .1rem),
    linear-gradient(180deg, #0b1220 0%, #111419 62%, #383c42 63%, #12151a 100%);
}
.project-preview-apollo::before {
  right: 1.4rem;
  bottom: 1.2rem;
  width: 5.5rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #6b7280;
  transform: rotate(-5deg);
}
.project-preview-apollo::after {
  left: 45%;
  top: 34%;
  width: 1.9rem;
  height: 2.4rem;
  clip-path: polygon(50% 0, 88% 72%, 70% 100%, 30% 100%, 12% 72%);
  background: #d9dee5;
}
.project-preview-apollo span:first-child {
  left: calc(45% + .7rem);
  top: 64%;
  width: .55rem;
  height: 1.5rem;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: #ffb84d;
}
.project-preview-artillery {
  background:
    linear-gradient(165deg, transparent 0 52%, #2d5d45 53% 64%, #141812 65%),
    linear-gradient(180deg, #172033, #101318);
}
.project-preview-artillery::before {
  left: 1.5rem;
  bottom: 2.1rem;
  width: 3.8rem;
  height: .8rem;
  border-radius: 999px;
  background: #9da6b3;
  transform: rotate(-24deg);
  transform-origin: left center;
}
.project-preview-artillery::after {
  left: 1.3rem;
  bottom: 1.2rem;
  width: 2.4rem;
  height: 1.2rem;
  border-radius: .3rem .3rem .15rem .15rem;
  background: #55606d;
}
.project-preview-artillery span:first-child {
  right: 2.2rem;
  top: 1.8rem;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: -2rem 1.2rem 0 -.18rem rgba(181, 244, 74, .55), -4rem 2.6rem 0 -.28rem rgba(181, 244, 74, .35);
}
.project-preview-chess {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(4, 1fr);
  background:
    conic-gradient(from 90deg, #d9dee5 25%, #2f3742 0 50%, #d9dee5 0 75%, #2f3742 0) 0 0 / 25% 50%;
}
.project-preview-chess.has-image {
  display: block;
  background: none;
}
.project-preview-chess::before {
  left: 18%;
  bottom: 18%;
  width: 1.3rem;
  height: 3.4rem;
  border-radius: .75rem .75rem .2rem .2rem;
  background: #101318;
  box-shadow: 4.5rem -1.25rem 0 -.1rem #f2f4f7, 8.3rem .25rem 0 -.2rem #101318;
}
.project-preview-chess::after {
  left: calc(18% - .35rem);
  bottom: 13%;
  width: 2rem;
  height: .55rem;
  border-radius: .15rem;
  background: #101318;
  box-shadow: 4.5rem -1.25rem 0 .02rem #f2f4f7, 8.3rem .25rem 0 -.08rem #101318;
}
.project-card p { font-size: .9rem; }
.experience-shell {
  margin-top: 0;
}
.experience-list {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 2.2rem;
}
.experience-list::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: 1px;
  background: rgba(132, 152, 167, 0.42);
}
.experience-entry {
  position: relative;
  padding: .4rem 0 1.5rem .65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.experience-entry::before {
  content: "";
  position: absolute;
  left: -1.12rem;
  top: .95rem;
  width: .68rem;
  height: .68rem;
  border: 1px solid rgba(132, 152, 167, .62);
  border-radius: 50%;
  background: #f8fbfd;
  box-shadow: 0 0 0 .22rem rgba(183, 205, 222, .3);
}
.experience-entry:last-child {
  padding-bottom: .2rem;
}
.experience-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: .8rem;
}
.experience-header h3 {
  margin: 0;
  font-size: 1.5rem;
}
.experience-header p {
  margin: 0;
  color: var(--accent-strong);
  font: .78rem "DM Mono", monospace;
  text-transform: uppercase;
}
.experience-summary {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}
.experience-summary-muted {
  color: #75889a;
  font-style: italic;
}
.website-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
}
.website-card {
  display: grid;
  gap: 1rem;
  padding: 0 0 0.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.website-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #75889a;
  font: .72rem "DM Mono", monospace;
  text-transform: uppercase;
}
.website-topline a {
  color: var(--accent-strong);
}
.website-card h3 {
  margin-bottom: .55rem;
}
.website-card p {
  max-width: 860px;
  margin: 0;
}
.website-link-row {
  padding-top: 0;
  border-top: 0;
}
.website-link-row a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.page { padding-top: 5rem; }
.page-header { max-width: 920px; margin-bottom: 5rem; }
.page-header h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.page-header > p:last-child { max-width: 620px; font-size: 1.05rem; }
.about-page { display: grid; gap: 4rem; }
.about-hero {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  gap: 2.25rem;
  align-items: center;
}
.about-hero-media img,
.about-story-media img,
.about-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero-media img {
  object-position: center top;
}
.about-hero-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: rgba(255,255,255,.7);
  box-shadow: 0 1rem 2.5rem rgba(68, 87, 109, .08);
}
.about-hero-copy {
  max-width: 700px;
}
.about-hero-copy h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5.2rem);
}
.about-hero-copy p {
  max-width: 42rem;
}
.about-section-intro {
  max-width: 760px;
  margin-bottom: -2.5rem;
  text-align: center;
  justify-self: center;
}
.about-section-intro h2 {
  margin-bottom: 0;
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-pillar {
  padding: .25rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.about-pillar h3 {
  margin-bottom: .6rem;
  font-size: 1.45rem;
}
.about-pillar p {
  margin: 0;
  font-size: .92rem;
}
.about-story {
  display: grid;
  grid-template-columns: .95fr .95fr .7fr;
  gap: 1.2rem;
  align-items: stretch;
}
.content-block, .contact-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(231,240,248,.94));
  box-shadow: 0 1rem 2.5rem rgba(68, 87, 109, .08);
}
.about-story-copy,
.about-story-notes {
  padding: .2rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.about-story-media {
  overflow: hidden;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  box-shadow: none;
}
.about-story-media img {
  aspect-ratio: 4 / 5;
}
.about-signoff {
  margin-top: 2rem;
  color: var(--accent-strong);
  font-family: "Lora", Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
}
.prose p { max-width: 690px; }
.skill-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.skill-list li { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.skill-list span { display: block; margin-bottom: .2rem; color: var(--text); font-weight: 700; }
.story-note + .story-note {
  margin-top: 1.25rem;
}
.story-note strong {
  display: block;
  margin-bottom: .3rem;
  color: var(--text);
  font-family: var(--ui-font);
  font-size: .98rem;
  font-weight: 700;
}
.story-note p {
  margin: 0;
}
.about-journey {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 2.2rem;
}
.about-journey::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: 1px;
  background: rgba(132, 152, 167, .42);
}
.journey-step {
  position: relative;
  padding: .4rem 0 1.35rem .65rem;
}
.journey-step::before {
  content: "";
  position: absolute;
  left: -1.12rem;
  top: .92rem;
  width: .68rem;
  height: .68rem;
  border: 1px solid rgba(132, 152, 167, .62);
  border-radius: 50%;
  background: #f8fbfd;
  box-shadow: 0 0 0 .22rem rgba(183, 205, 222, .3);
}
.journey-step strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.journey-step span {
  display: block;
  max-width: 760px;
  color: var(--muted);
  font-size: .92rem;
}
.about-gallery {
  display: grid;
  grid-template-columns: 1.2fr .7fr .85fr;
  gap: 1rem;
  align-items: stretch;
}
.about-gallery-item {
  overflow: hidden;
  margin: 0;
  height: clamp(25rem, 42vw, 31rem);
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: rgba(255,255,255,.7);
  box-shadow: 0 1rem 2.5rem rgba(68, 87, 109, .08);
}
.about-gallery-item.hunting-shot {
  grid-column: 1 / -1;
  height: clamp(30rem, 58vw, 46rem);
}
.about-gallery-item.hunting-shot img {
  object-position: center bottom;
}
.about-gallery-item.wide {
  aspect-ratio: auto;
}
.about-gallery-item.catalina-shot img {
  object-position: 72% 48%;
}
.about-gallery-item.tall {
  aspect-ratio: auto;
}
.about-gallery-item.engine-shot {
  aspect-ratio: auto;
}
.about-gallery-item.engine-shot img {
  object-position: 22% 84%;
}
.contact-page { padding-top: clamp(3rem, 7vw, 5rem); }
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: stretch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.contact-hero > div:first-child { display: flex; align-items: center; }
.contact-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: .98;
}
.contact-intro > p { max-width: 34rem; margin: 0 0 2rem; font-size: 1.05rem; }
.contact-details { margin: 0; border-top: 1px solid var(--border); }
.contact-details div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-details dt { color: var(--muted); font: 700 .68rem/1.4 "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.contact-details dd { margin: 0; }
.contact-methods {
  border-top: 1px solid var(--border);
}
.contact-method {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 0;
  padding: 1.15rem .4rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  transition: color .2s ease, background .2s ease, padding .2s ease;
}
.contact-method:hover { padding-right: .8rem; padding-left: .8rem; background: rgba(231,240,248,.72); }
.contact-method-featured { min-height: 0; }
.contact-method-featured:hover { background: rgba(231,240,248,.72); }
.contact-method-compact { grid-template-columns: 8rem 1fr; }
.contact-method-compact > span:last-child { justify-self: end; }
.contact-method-label { color: var(--muted); font: 700 .7rem/1.2 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.contact-method strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; overflow-wrap: anywhere; }
.contact-method > span:last-child { color: var(--accent); font-size: .82rem; font-weight: 700; }
.contact-method-actions { display: flex; gap: 1.25rem; justify-content: flex-end; }
.contact-method-actions a { color: var(--accent); font-size: .82rem; font-weight: 700; }
.contact-method-actions a:hover { color: var(--accent-strong); }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: .75rem;
}
.site-footer p { margin: 0; }
.footer-links a { color: var(--muted); }
.game-page { padding-top: 3rem; }
.game-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.game-header h1 { margin-bottom: .8rem; font-size: clamp(2.4rem, 5vw, 4.8rem); }
.game-header p:last-child { max-width: 720px; margin-bottom: 0; }
.game-frame-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: rgba(255,255,255,.66);
  box-shadow: 0 1rem 2.4rem rgba(68, 87, 109, .1);
}
.game-frame-shell-chess {
  width: min(100% + 5rem, calc(var(--max-width) + 4rem));
  margin-left: 50%;
  transform: translateX(-50%);
}
.game-frame {
  display: block;
  width: 100%;
  height: min(82vh, 760px);
  min-height: 520px;
  border: 0;
}
.game-controls-panel {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(231,240,248,.94));
  color: var(--muted);
  font-size: .82rem;
}
.game-controls-panel kbd {
  display: inline-flex;
  min-width: 1.65rem;
  height: 1.65rem;
  margin-right: .22rem;
  align-items: center;
  justify-content: center;
  padding: 0 .32rem;
  border: 1px solid rgba(44, 55, 64, .14);
  border-bottom-color: rgba(44, 55, 64, .24);
  border-radius: .3rem;
  background: rgba(255, 255, 255, .84);
  color: var(--text);
  font: .8rem "DM Mono", monospace;
  font-weight: 600;
}

@media (max-width: 850px) {
  .hero, .about-hero, .about-story { grid-template-columns: 1fr; }
  .contact-hero { grid-template-columns: 1fr; align-items: start; }
  .about-pillars { grid-template-columns: 1fr 1fr; }
  .about-gallery { grid-template-columns: 1fr; }
  .about-gallery-item.hunting-shot { grid-column: auto; height: clamp(26rem, 82vw, 38rem); }
  .hero { min-height: auto; padding-bottom: 5rem; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .game-header { align-items: stretch; flex-direction: column; }
}
@media (min-width: 851px) and (max-width: 1050px) {
  .project-grid-all { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  main, .site-nav, .site-footer { width: min(100% - 1.5rem, var(--max-width)); }
  main { padding-top: 2rem; }
  .site-nav { align-items: flex-start; }
  .brand > span:last-child { display: none; }
  .nav-links { gap: .8rem; }
  .hero { gap: 2rem; padding-top: 2rem; }
  h1 { font-size: 3.2rem; }
  .hero-actions, .section-heading, .site-footer { align-items: stretch; flex-direction: column; }
  .hero-summary { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-hero-copy h1 { font-size: 3.1rem; }
  .button { justify-content: center; }
  .project-grid, .contact-links { grid-template-columns: 1fr; }
  .contact-method { grid-template-columns: 1fr; gap: .3rem; align-items: start; padding: 1rem .25rem; }
  .contact-method-compact > span:last-child { justify-self: start; }
  .contact-method > span:last-child { margin-top: .25rem; }
  .contact-method-actions { justify-content: flex-start; }
  .contact-details div { grid-template-columns: 1fr; gap: .25rem; }
  .project-card { min-height: 340px; }
  .game-frame-shell-chess {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  .game-frame { height: 70vh; min-height: 420px; }
  .game-controls-panel { font-size: .76rem; }
  .site-footer { gap: .75rem; }
}
