:root {
  color-scheme: light;
  /* Pantone 2026: Cloud Dancer ground, Light & Shadow harmony */
  --bg: #f0eee9;
  --text: #171b2b;
  --muted: #4e5467;
  --line: #cbc7be;
  --panel: #e7e4dd;
  --card: #ffffff;
  --accent: #2b3f9e;
  --violet: #5f4b8b;
  --soft: color-mix(in oklab, #2b3f9e 10%, #f0eee9);
  --violet-soft: color-mix(in oklab, #5f4b8b 10%, #f0eee9);
  --glow: color-mix(in oklab, #2b3f9e 16%, transparent);
  --button: #2b3f9e;
  --button-text: #f0eee9;
  --shadow: 0 1px 2px rgba(23, 27, 43, 0.04), 0 16px 40px -20px rgba(23, 27, 43, 0.22);
  --display: "Bricolage Grotesque", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12152a;
  --text: #f0eee9;
  --muted: #aeb2c6;
  --line: #333a5c;
  --panel: #1a1e36;
  --card: #1f2440;
  --accent: color-mix(in oklab, #2b3f9e 50%, #f0eee9);
  --violet: color-mix(in oklab, #5f4b8b 55%, #f0eee9);
  --soft: color-mix(in oklab, #2b3f9e 24%, #12152a);
  --violet-soft: color-mix(in oklab, #5f4b8b 24%, #12152a);
  --glow: color-mix(in oklab, #2b3f9e 34%, transparent);
  --button: #f0eee9;
  --button-text: #12152a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "IBM Plex Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition:
    background 0.25s,
    color 0.25s;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a:hover {
  color: var(--accent);
}
button:disabled {
  cursor: default;
}
button:disabled:focus-visible {
  outline-offset: -4px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
.shell {
  position: relative;
  max-width: 1192px;
  padding: 0 48px;
  margin: auto;
}
.shell::before,
.shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.shell::before {
  top: -200px;
  right: -120px;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.shell::after {
  top: 420px;
  left: -260px;
  width: 520px;
  height: 520px;
  opacity: 0.7;
  background: radial-gradient(closest-side, var(--violet-soft), transparent);
}
.header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
}
.identity {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.monogram {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border-radius: 14px;
  padding-bottom: 3px;
  color: var(--button-text);
  background: var(--button);
}
nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
}
nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.16s;
}
nav a:hover {
  background: var(--panel);
  color: var(--text);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 44px;
  border: 1px solid var(--button);
  background: var(--button);
  color: var(--button-text);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.theme-toggle .theme-icon {
  font-size: 16px;
  line-height: 1;
}
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.hero {
  padding: 72px 0 64px;
}
.eyebrow,
.mono,
.section-number,
.small-meta,
.service-index,
.step,
.badge {
  font-family: var(--mono);
  font-weight: 400;
}
.eyebrow,
.section-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
}
h1 {
  font-size: clamp(46px, 5.9vw, 76px);
  font-weight: 700;
  letter-spacing: -3.4px;
  line-height: 1;
  margin: 30px 0 32px;
}
h1 span {
  color: var(--accent);
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: stretch;
}
.hero-bottom > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.hero-copy {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: -0.2px;
}
.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 14px 22px 14px 24px;
  background: var(--button);
  color: var(--button-text);
  border: 1px solid var(--button);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  color: var(--button-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.text-link {
  font-size: 12.5px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-underline-offset: 5px;
}
.text-link:hover {
  text-decoration: underline;
  color: var(--accent);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}
.stat-chip strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -1.2px;
  line-height: 1;
  color: var(--text);
}
.experience-stamp {
  border-left: 1px solid var(--line);
  padding: 8px 0 8px 30px;
  min-width: 208px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.big-number {
  display: block;
  font-family: var(--display);
  font-size: 47px;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}
.big-number span {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.platforms {
  margin-top: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.platforms > span:not(:first-child) {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.mono {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.platforms small {
  font-size: 9px;
  font-family: var(--mono);
  font-weight: 400;
  background: var(--soft);
  color: var(--accent);
  padding: 5px 7px;
  margin-left: 7px;
  border-radius: 3px;
  letter-spacing: 0;
}
.section {
  padding: 96px 0 0;
}
.split-section {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 40px 64px;
}
.section-number {
  color: var(--accent);
  margin-bottom: 22px;
}
h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.section-intro > p {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 20px;
  max-width: 320px;
}
.section-intro > .text-link {
  margin-top: 26px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service {
  display: flex;
  gap: 18px;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.service:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.service-index {
  font-size: 10px;
  color: var(--accent);
  padding-top: 6px;
}
.service h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.service p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.75;
}
.small-meta {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.service-symbol {
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}
.section-heading > p {
  font-size: 13px;
  color: var(--muted);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 43px;
}
.step {
  font-size: 10px;
  color: var(--accent);
  display: flex;
  gap: 17px;
  margin-bottom: 17px;
}
.step span {
  color: var(--line);
  letter-spacing: 1px;
}
.process-grid h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.process-grid p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.confidentiality {
  font-size: 11px;
  color: var(--muted);
  margin-top: 38px;
}
.confidentiality span {
  margin-right: 10px;
  color: var(--accent);
}
.garden-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.lab-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px 28px;
}
.lab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.badge {
  font-size: 9px;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--soft);
}
.lab-content {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 28px;
  align-items: center;
}
.lab-content h3 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.7px;
}
.lab-content p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 17px;
  line-height: 1.8;
}
.lab-content .small-meta {
  margin-top: 21px;
}
.game {
  text-align: center;
}
.game #game-status {
  font-family: var(--mono);
  font-size: 9px;
  margin: 0 0 10px;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.cell {
  height: 54px;
  background: var(--bg);
  border: 0;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
  padding: 0;
}
.cell[data-mark="O"] {
  color: var(--muted);
}
.cell:not(:disabled):hover {
  background: var(--panel);
}
.game > .text-link {
  font-size: 10px;
  margin-top: 12px;
}
.garden-note {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 30px;
  align-items: end;
  padding: 0 6px 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.garden-note .mono {
  display: block;
  margin-bottom: 14px;
}
.garden-note h3 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  font-weight: 600;
}
.garden-note > p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.garden-note .note-foot {
  font-size: 10px;
  text-align: right;
}
.interests {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 26px;
  font-size: 11px;
  color: var(--muted);
}
.interests > span:not(:first-child)::before {
  content: "↗";
  margin-right: 9px;
  color: var(--accent);
}
.contact-section {
  margin-top: 96px;
  padding: 56px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: center;
}
.contact-section .section-number {
  background: var(--bg);
}
.contact-section h2 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
}
.contact-section p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
  max-width: 480px;
}
.contact-section .button {
  margin-top: 28px;
  gap: 56px;
}
.contact-details {
  flex: 0 1 320px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.contact-details > .mono {
  display: block;
  margin-bottom: 13px;
}
.contact-details > a {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 500;
  display: block;
  word-break: break-all;
}
.contact-details > a span {
  margin-left: 10px;
  color: var(--accent);
}
.contact-details > button {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 11px;
}
.contact-details > p {
  font-size: 12px;
  margin-top: 22px;
}
.contact-details #copy-status {
  min-height: 15px;
  margin-top: 5px;
  text-transform: none;
}
footer {
  display: flex;
  gap: 22px;
  padding: 36px 6px 40px;
  font-size: 11px;
  color: var(--muted);
}
footer > span:nth-child(2) {
  margin-right: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  background: var(--button);
  color: var(--button-text);
  padding: 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 15px;
}
.cv-main {
  max-width: 820px;
  margin: 60px auto 90px;
}
.cv-main h1 {
  font-size: 56px;
  letter-spacing: -2.5px;
}
.cv-intro {
  max-width: 630px;
  color: var(--muted);
  font-size: 18px;
}
.cv-section {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 30px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.cv-section h2 {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--accent);
}
.cv-section h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.cv-section p {
  color: var(--muted);
  margin-top: 9px;
  font-size: 14px;
}
.cv-section ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.cv-section li {
  padding-bottom: 7px;
}
.cv-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 30px 0 45px;
}
.cv-skills {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cv-skills span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
  border-radius: 999px;
}
.experience-section .section-heading > p {
  max-width: 340px;
  font-size: 13.5px;
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.experience-grid article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.experience-grid article .mono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.experience-grid article .mono::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.experience-grid article:nth-child(even) .mono::before {
  background: var(--violet);
}
.experience-grid h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0;
}
.experience-grid p,
.experience-foot p {
  font-size: 13.5px;
  color: var(--muted);
}
.experience-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 0 6px;
}
.hero-actions {
  flex-wrap: wrap;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  letter-spacing: -3.4px;
  text-wrap: balance;
  max-width: 14ch;
}
@media (min-width: 1400px) {
  .hero {
    padding-top: 86px;
    padding-bottom: 65px;
  }
}
@media (max-width: 1000px) {
  .shell {
    padding: 0 32px;
  }
  .split-section {
    gap: 35px;
  }
  .platforms {
    flex-wrap: wrap;
  }
  .platforms small {
    display: none;
  }
  .garden-grid {
    gap: 22px;
  }
  .garden-note {
    gap: 22px;
    padding-bottom: 22px;
    margin-bottom: 22px;
  }
  .lab-card {
    padding: 20px;
  }
  .lab-content {
    grid-template-columns: 1fr 160px;
    gap: 18px;
  }
  .cell {
    height: 46px;
  }
  .process-grid {
    gap: 26px;
  }
  .section-heading > p br {
    display: none;
  }
  .section-heading > p {
    max-width: 230px;
  }
  .contact-section {
    padding: 40px;
  }
  .desktop-break {
    display: none;
  }
  .contact-details > a {
    font-size: 14px;
  }
  .contact-details > a span {
    margin-left: 4px;
  }
}
@media (max-width: 720px) {
  .shell {
    padding: 0 23px;
  }
  .header {
    padding: 18px 0 10px;
    gap: 10px 17px;
    flex-wrap: wrap;
  }
  .identity {
    font-size: 11px;
    gap: 8px;
  }
  .monogram {
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    font-size: 11px;
  }
  nav a {
    padding: 8px 10px;
  }
  .theme-toggle {
    margin-left: auto;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
  .hero {
    padding: 47px 0 38px;
  }
  .eyebrow {
    font-size: 9px;
    gap: 6px;
  }
  h1 {
    font-size: 49px;
    letter-spacing: -2.6px;
    margin: 23px 0;
  }
  .hero-copy {
    font-size: 16px;
  }
  .hero-bottom {
    display: block;
  }
  .hero-bottom > div:first-child {
    gap: 24px;
  }
  .experience-stamp {
    margin-top: 31px;
    border-left: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 10px;
  }
  .big-number {
    font-size: 33px;
    margin: 0;
  }
  .big-number span {
    font-size: 13px;
  }
  .hero-actions {
    gap: 20px;
  }
  .button {
    font-size: 11px;
    padding: 12px 18px;
    gap: 20px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .platforms {
    justify-content: flex-start;
    gap: 18px;
    padding: 19px 0 0;
  }
  .platforms .mono {
    width: 100%;
    font-size: 9px;
  }
  .platforms > span:not(:first-child) {
    font-size: 16px;
  }
  .section {
    padding: 56px 0 0;
  }
  .split-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-intro > p {
    max-width: 430px;
  }
  .section-number {
    margin-bottom: 14px;
    font-size: 9px;
  }
  h2 {
    font-size: 29px;
  }
  .section-intro h2 br {
    display: none;
  }
  .service {
    padding: 20px;
  }
  .service h3 {
    font-size: 17px;
  }
  .service p {
    font-size: 13px;
  }
  .section-heading {
    display: block;
    margin-bottom: 26px;
  }
  .section-heading > p {
    margin-top: 15px;
    max-width: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 28px;
  }
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .experience-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .step {
    margin-bottom: 8px;
  }
  .process-grid h3 {
    margin-bottom: 6px;
  }
  .confidentiality {
    margin-top: 26px;
  }
  .garden-grid {
    grid-template-columns: 1fr;
  }
  .lab-content {
    grid-template-columns: 1fr 150px;
    gap: 15px;
  }
  .lab-content h3 {
    font-size: 21px;
  }
  .lab-content p {
    font-size: 11px;
  }
  .lab-content .small-meta {
    font-size: 8px;
  }
  .cell {
    height: 45px;
  }
  .lab-top {
    margin-bottom: 23px;
  }
  .garden-note {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 0 22px;
  }
  .garden-note .mono {
    margin-bottom: 12px;
  }
  .garden-note .note-foot {
    font-size: 11px;
    text-align: left;
  }
  .interests {
    flex-wrap: wrap;
    gap: 12px 19px;
    margin-top: 27px;
  }
  .interests > .mono {
    width: 100%;
  }
  .contact-section {
    margin-top: 56px;
    padding: 28px 22px;
    display: block;
  }
  .contact-section h2 {
    font-size: 36px;
  }
  .contact-details {
    margin-top: 28px;
    padding: 20px;
  }
  .contact-details > a {
    font-size: 15px;
  }
  .contact-details > p {
    margin-top: 15px;
  }
  .desktop-break {
    display: none;
  }
  footer {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 10px 22px;
    padding: 28px 0 32px;
  }
  footer > span:first-child {
    width: 100%;
  }
  footer > span:nth-child(2) {
    width: 100%;
    margin-bottom: 8px;
  }
  .cv-main {
    margin-top: 40px;
  }
  .cv-main h1 {
    font-size: 42px;
  }
  .cv-intro {
    font-size: 16px;
  }
  .cv-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .cv-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .shell {
    padding: 0 17px;
  }
  .header {
    gap: 10px;
  }
  nav {
    gap: 2px;
  }
  nav a {
    padding: 8px 8px;
  }
  .identity {
    font-size: 10px;
  }
  h1 {
    font-size: 42px;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 18px;
  }
  .lab-content {
    grid-template-columns: 1fr;
  }
  .game {
    max-width: 190px;
    width: 100%;
    margin: 8px auto 0;
  }
  .cell {
    height: 54px;
  }
  .contact-details > a {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media print {
  .header nav,
  .theme-toggle,
  .cv-actions,
  footer,
  .skip-link,
  .shell::before,
  .shell::after {
    display: none;
  }
  .shell {
    padding: 0;
    max-width: 100%;
  }
  body {
    background: #fff;
    color: #111;
  }
  .header {
    padding: 20px 0;
  }
  .cv-main {
    margin: 25px 0;
  }
  .cv-main h1 {
    font-size: 36px;
  }
  .cv-section {
    padding: 15px 0;
    break-inside: avoid;
  }
  .cv-intro {
    font-size: 14px;
  }
  .cv-section p,
  .cv-section li {
    font-size: 12px;
  }
  .cv-section h2,
  .cv-section p,
  .cv-section ul {
    color: #333;
  }
}

/* Solver card */
.lab-card--solver {
  margin-top: 30px;
}
.lab-card--solver .lab-content {
  grid-template-columns: 1fr 220px;
}
.lab-card--solver .lab-content p:last-child {
  margin-top: 22px;
}
.solver-preview {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.solver-preview img {
  display: block;
  width: 100%;
  height: auto;
}
:root[data-theme="dark"] .solver-preview {
  background: #eef0fb;
}
.solver-preview:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .lab-card--solver .lab-content {
    grid-template-columns: 1fr;
  }
  .solver-preview {
    max-width: 260px;
    margin: 0 auto;
  }
}
