/* Design tokens: the white and navy palette of Nikita's CV. */
:root {
  color-scheme:light;
  --bg:#fcfcfd;
  --surface:#fff;
  --surface-alt:#f1f4fa;
  --text:#172039;
  --muted:#606b80;
  --navy:#081d63;
  --accent:#173a94;
  --line:#dfe4ee;
  --soft:#e9eef9;
  --green:#347d60;
  --radius:16px;
  --shadow:0 22px 60px -35px #071b6350
}

:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#0d1425;
  --surface:#141e33;
  --surface-alt:#192640;
  --text:#edf2ff;
  --muted:#aebad0;
  --navy:#c1d0ff;
  --accent:#b3c8ff;
  --line:#2d3a53;
  --soft:#22304f;
  --green:#8cd5b0;
  --shadow:0 22px 60px -35px #0009
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:100px
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased
}

a {
  color:inherit;
  text-decoration:none
}

button {
  font:inherit;
  cursor:pointer
}

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

button:focus-visible,a:focus-visible {
  outline:3px solid #698ef0;
  outline-offset:5px
}

img {
  display:block;
  max-width:100%
}

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

h1,h2,h3 {
  color:var(--navy)
}

::selection {
  background:#cad8ff;
  color:#081d63
}

.container {
  width:min(1160px,calc(100% - 80px));
  margin-inline:auto
}

.skip-link {
  position:fixed;
  top:-70px;
  left:16px;
  padding:12px;
  background:var(--surface);
  z-index:100
}

.skip-link:focus {
  top:12px
}

.site-header {
  position:sticky;
  top:0;
  z-index:20;
  background:var(--bg);
  border-bottom:1px solid var(--line)
}

.nav-shell {
  width:min(1280px,calc(100% - 80px));
  height:86px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}

.brand {
  display:inline-flex;
  align-items:baseline;
  font-size:36px;
  font-weight:850;
  letter-spacing:-3px;
  line-height:1;
  color:var(--navy)
}

.brand>span:first-child {
  color:#5374c7
}

.brand-caption {
  font-size:9px;
  letter-spacing:2px;
  font-weight:700;
  margin-left:15px;
  align-self:center;
  color:var(--muted)
}

.main-nav {
  display:flex;
  align-items:center;
  gap:28px
}

.main-nav a {
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  position:relative;
  padding:12px 0
}

.main-nav a:hover,.main-nav a.is-active {
  color:var(--navy)
}

.main-nav a.is-active:after {
  content:"";
  position:absolute;
  bottom:3px;
  left:0;
  width:16px;
  height:2px;
  background:var(--accent)
}

.nav-tools {
  display:flex;
  gap:12px;
  align-items:center
}

.language-toggle,.icon-button {
  border:1px solid var(--line);
  color:var(--navy);
  background:var(--surface);
  height:36px;
  min-width:36px;
  border-radius:50%;
  display:grid;
  place-items:center
}

.language-toggle {
  font-size:10px;
  font-weight:700
}

.icon-button svg {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}

.menu-toggle {
  display:none
}

.hero {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:70px;
  align-items:center;
  padding:78px 0 68px
}

.availability {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--green);
  background:var(--surface);
  border:1px solid var(--line);
  padding:5px 12px;
  border-radius:30px;
  font-size:11px;
  font-weight:600;
  margin-bottom:30px
}

.status-dot {
  width:6px;
  height:6px;
  background:var(--green);
  border-radius:50%;
  box-shadow:0 0 0 3px #347d6010
}

.eyebrow {
  font-size:10px;
  font-weight:750;
  letter-spacing:2.2px;
  color:var(--muted);
  margin-bottom:20px
}

.hero-name {
  font-size:10px;
  margin-bottom:15px
}

.hero h1 {
  font-size:clamp(38px,4.15vw,59px);
  letter-spacing:-2.7px;
  font-weight:750;
  line-height:1.09
}

.hero-role {
  font-size:18px;
  color:var(--navy);
  font-weight:600;
  margin:20px 0 16px;
  letter-spacing:-.4px
}

.hero-role>span {
  color:var(--muted);
  font-weight:400
}

.hero-description {
  font-size:14px;
  color:var(--muted);
  max-width:490px;
  line-height:1.85
}

.hero-actions {
  display:flex;
  gap:12px;
  margin-top:29px;
  flex-wrap:wrap
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:23px;
  min-height:47px;
  padding:11px 20px;
  border-radius:6px;
  font-size:12px;
  font-weight:650;
  transition:transform .2s,box-shadow .2s
}

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

.button-primary {
  background:#081d63;
  color:#fff;
  border:1px solid #081d63
}

.button-secondary {
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--navy)
}

.button>span:last-child {
  font-size:18px;
  font-weight:400
}

.hero-links {
  display:flex;
  gap:22px;
  flex-wrap:wrap;
  font-size:11px;
  margin-top:25px;
  font-weight:600
}

.hero-links>span {
  color:var(--muted);
  font-weight:400;
  margin-left:6px
}

.hero-links a:hover,.project-links a:hover,.footer a:hover {
  text-decoration:underline;
  text-underline-offset:4px
}

.hero-visual {
  position:relative;
  padding:10px 10px 20px 24px
}

.portrait-frame {
  background:#081d63;
  border-radius:14px;
  overflow:hidden;
  transform:rotate(2deg);
  box-shadow:var(--shadow)
}

.portrait-topline {
  display:flex;
  justify-content:space-between;
  padding:18px 22px 0;
  color:#d1ddff;
  font-family:Consolas,monospace;
  font-size:9px;
  letter-spacing:1.7px
}

.portrait-topline>span:last-child {
  font-size:20px;
  line-height:12px
}

.portrait-frame img {
  width:100%;
  height:auto;
  aspect-ratio:1.08;
  object-fit:cover;
  object-position:center 43%
}

.portrait-caption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:17px 22px;
  color:white;
  border-top:1px solid #ffffff25
}

.portrait-caption>span:first-child {
  font-size:13px;
  font-weight:600
}

.portrait-caption>span:last-child {
  font-family:Consolas,monospace;
  font-size:8px;
  letter-spacing:1px
}

.focus-card {
  position:absolute;
  left:-12px;
  bottom:-4px;
  display:flex;
  gap:13px;
  align-items:center;
  padding:17px 23px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:var(--shadow)
}

.check-mark {
  display:grid;
  place-items:center;
  background:var(--soft);
  width:35px;
  height:35px;
  border-radius:50%;
  color:var(--navy);
  font-size:18px
}

.micro-label {
  display:block;
  letter-spacing:1.5px;
  font-size:8px;
  font-weight:650;
  color:var(--muted)
}

.focus-card strong {
  display:block;
  font-size:11px;
  color:var(--navy);
  margin-top:4px
}

.facts-strip {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:28px 0;
  gap:24px
}

.facts-strip>div+div {
  border-left:1px solid var(--line);
  padding-left:32px
}

.facts-strip strong {
  display:flex;
  align-items:baseline;
  gap:8px;
  font-size:23px;
  line-height:1.4;
  color:var(--navy);
  font-weight:650;
  letter-spacing:-.8px
}

.facts-strip strong>span {
  font-size:12px;
  font-weight:500;
  letter-spacing:0
}

.facts-strip p {
  font-size:10px;
  color:var(--muted);
  margin-top:5px
}

.section {
  padding-top:96px
}

.section-heading {
  display:flex;
  justify-content:space-between;
  gap:40px;
  align-items:flex-end;
  margin-bottom:35px
}

.section-heading .eyebrow {
  margin-bottom:15px
}

h2 {
  font-size:35px;
  line-height:1.18;
  letter-spacing:-1.25px;
  font-weight:700
}

.section-intro {
  max-width:310px;
  font-size:13px;
  color:var(--muted);
  line-height:1.8;
  margin-bottom:3px
}

.skills-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px
}

.skill-card {
  position:relative;
  padding:28px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  transition:transform .2s,box-shadow .2s
}

.skill-card:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow)
}

.skill-symbol {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:27px;
  color:var(--navy);
  margin-bottom:30px
}

.card-number {
  position:absolute;
  right:27px;
  top:28px;
  font-size:10px;
  font-family:Consolas,monospace;
  color:var(--muted)
}

.skill-card h3 {
  font-size:18px;
  letter-spacing:-.4px;
  margin-bottom:13px
}

.skill-card p {
  font-size:12px;
  line-height:1.9;
  color:var(--muted)
}

.tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:24px
}

.tags>span {
  font-size:9px;
  background:var(--surface-alt);
  border:1px solid var(--line);
  padding:4px 8px;
  border-radius:4px
}

.skill-card.featured {
  background:#081d63;
  --navy:#fff;
  --muted:#c1cce6;
  --line:#ffffff25;
  --surface-alt:#ffffff0b;
  color:#e4ecff
}

.learning-label {
  display:block;
  font-size:9px;
  margin-top:16px;
  color:#b9caed
}

.learning-label:before {
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  background:#91b3ff;
  border-radius:50%;
  margin-right:6px
}

.timeline {
  border-top:1px solid var(--line)
}

.experience-row {
  display:grid;
  grid-template-columns:160px 1fr 130px;
  gap:30px;
  padding:31px 0;
  border-bottom:1px solid var(--line)
}

.experience-date {
  font-family:Consolas,monospace;
  font-size:11px;
  color:var(--muted);
  padding-top:4px
}

.current-label {
  display:table;
  font:10px "Segoe UI",sans-serif;
  background:var(--soft);
  color:var(--accent);
  padding:3px 10px;
  border-radius:20px;
  margin-top:10px
}

.company {
  font-size:10px;
  letter-spacing:1.1px;
  font-weight:650;
  color:var(--muted);
  margin-bottom:7px
}

.experience-row h3 {
  font-size:18px;
  letter-spacing:-.4px;
  line-height:1.5
}

.experience-row ul {
  padding-left:16px;
  margin:14px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.9
}

.experience-row li+li {
  margin-top:4px
}

.experience-row li::marker {
  color:#7189bf
}

.experience-area {
  justify-self:end;
  font-family:Consolas,monospace;
  font-size:8px;
  letter-spacing:.8px;
  color:var(--muted);
  padding-top:7px
}

.projects-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px
}

.project-card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface)
}

.project-visual {
  height:285px;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:44px 40px 30px;
  overflow:hidden
}

.todo-visual {
  background:#e9eef8
}

.bmi-visual {
  background:#e0e7f3
}

.visual-label {
  position:absolute;
  top:18px;
  left:22px;
  color:#596a8c;
  font-family:Consolas,monospace;
  font-size:8px;
  letter-spacing:1.4px
}

.visual-footnote {
  position:absolute;
  bottom:10px;
  right:17px;
  font-size:8px;
  color:#586982
}

.mock-window {
  width:100%;
  max-width:375px;
  background:#fff;
  border:1px solid #dbe2ef;
  border-radius:8px;
  box-shadow:0 20px 35px -22px #243c8060;
  transform:rotate(-3deg);
  color:#142348
}

.window-bar {
  display:flex;
  gap:4px;
  align-items:center;
  padding:10px 13px;
  border-bottom:1px solid #ebeff6
}

.window-bar i {
  width:4px;
  height:4px;
  background:#c2cada;
  border-radius:50%
}

.window-bar>span {
  font-family:Consolas,monospace;
  font-size:7px;
  margin-left:auto;
  color:#8692a9
}

.todo-body {
  padding:17px 23px 20px
}

.mock-title {
  font-size:17px;
  font-weight:650;
  letter-spacing:-.5px
}

.mock-title>span {
  display:block;
  font-size:6px;
  letter-spacing:1px;
  color:#8996ac;
  margin:3px 0 12px
}

.mock-task {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:8px;
  padding:8px 0;
  border-top:1px solid #edf0f6
}

.mock-task b {
  width:12px;
  height:12px;
  background:#183875;
  color:white;
  display:grid;
  place-items:center;
  border-radius:3px;
  font-size:8px
}

.mock-task em {
  font-style:normal;
  margin-left:auto;
  font-size:6px;
  color:#687792
}

.mock-task.pending b {
  background:white;
  border:1px solid #ccd4e3
}

.bmi-mock {
  width:265px;
  border-radius:12px;
  padding:23px 30px;
  background:#fff;
  color:#10265e;
  transform:rotate(3deg);
  box-shadow:0 20px 35px -22px #243c8060
}

.bmi-mock .micro-label {
  color:#6b7993;
  text-align:center
}

.bmi-value {
  font-size:53px;
  line-height:1.2;
  letter-spacing:-3px;
  text-align:center;
  font-weight:600;
  margin:5px 0 14px
}

.bmi-value>span {
  display:inline;
  font-size:10px;
  letter-spacing:0;
  margin-left:6px;
  color:#7a88a1
}

.bmi-scale {
  height:5px;
  background:linear-gradient(90deg,#cbd8f2 0 25%,#526fbd 25% 65%,#a2b2d6 65% 80%,#dce3f1 80%);
  border-radius:10px;
  position:relative
}

.bmi-scale i {
  position:absolute;
  width:9px;
  height:9px;
  left:43%;
  top:-2px;
  border:2px solid #fff;
  border-radius:50%;
  background:#19346f;
  box-shadow:0 0 0 1px #19346f
}

.bmi-inputs {
  display:flex;
  justify-content:space-between;
  margin-top:20px;
  font-size:6px;
  letter-spacing:1px;
  color:#7a88a1
}

.bmi-inputs strong {
  display:block;
  font-size:15px;
  letter-spacing:0;
  color:#253759;
  font-weight:600;
  margin-top:3px
}

.bmi-inputs small {
  font-size:8px;
  font-weight:400
}

.project-content {
  padding:26px 28px
}

.project-meta {
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-family:Consolas,monospace;
  font-size:8px;
  letter-spacing:1.2px;
  margin-bottom:12px
}

.project-content h3 {
  font-size:24px;
  letter-spacing:-.7px;
  margin-bottom:10px
}

.project-content>p {
  font-size:12px;
  color:var(--muted);
  line-height:1.9;
  min-height:46px
}

.qa-note {
  border-left:2px solid #9bacd2;
  padding-left:13px;
  margin:21px 0
}

.qa-note>span {
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--navy)
}

.qa-note p {
  font-size:11px;
  color:var(--muted);
  line-height:1.8;
  margin-top:5px
}

.project-links {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding-top:18px;
  border-top:1px solid var(--line);
  font-size:11px;
  font-weight:650;
  color:var(--navy)
}

.education-section {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:100px;
  padding-bottom:96px
}

.education-heading>p:last-child {
  font-size:13px;
  color:var(--muted);
  margin-top:20px;
  max-width:280px
}

.education-list article {
  position:relative;
  border-bottom:1px solid var(--line);
  padding:0 0 19px;
  margin-bottom:20px
}

.education-date {
  float:right;
  font-family:Consolas,monospace;
  font-size:9px;
  color:var(--muted);
  margin-top:4px
}

.education-list h3 {
  font-size:17px;
  font-weight:650
}

.education-list p {
  font-size:12px;
  color:var(--muted);
  margin-top:4px
}

.languages {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}

.languages>span {
  font-size:9px;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--muted)
}

.contact-section {
  position:relative;
  background:#081d63;
  color:#c5d0ef;
  border-radius:20px;
  padding:53px 55px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px
}

.contact-text {
  position:relative;
  z-index:1;
  max-width:680px
}

.contact-section .eyebrow {
  color:#a9bce8
}

.contact-section h2 {
  color:#fff;
  font-size:35px;
  line-height:1.3
}

.contact-section p:not(.eyebrow) {
  font-size:13px;
  line-height:1.85;
  margin-top:20px;
  max-width:530px
}

.contact-email {
  display:inline-block;
  font-size:24px;
  color:#fff;
  letter-spacing:-.6px;
  margin-top:25px;
  overflow-wrap:anywhere
}

.contact-email>span {
  margin-left:15px
}

.contact-links {
  display:flex;
  gap:28px;
  font-size:11px;
  margin-top:20px
}

.contact-links a:hover,.contact-email:hover {
  text-decoration:underline;
  text-underline-offset:5px
}

.contact-monogram {
  font-size:200px;
  line-height:1;
  font-weight:850;
  letter-spacing:-18px;
  color:#ffffff09;
  user-select:none;
  align-self:flex-end
}

.contact-monogram>span {
  color:#ffffff18
}

.footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-block:30px 35px;
  gap:25px
}

.footer .brand {
  font-size:30px
}

.footer p {
  font-size:10px;
  color:var(--muted);
  margin-right:auto
}

.footer>div {
  display:flex;
  gap:24px;
  font-size:10px;
  color:var(--muted)
}

@media(min-width:1500px) {
  .hero {
    padding-top:95px;
    padding-bottom:85px
  }
}

@media(max-width:1100px) {
  .hero {
    gap:35px
  }
  .hero h1 {
    font-size:45px
  }
  .brand-caption {
    display:none
  }
  .main-nav {
    gap:22px
  }
  .hero-visual {
    padding-left:10px
  }
  .focus-card {
    left:-5px;
    padding:14px
  }
  .facts-strip strong {
    font-size:20px
  }
  .facts-strip>div+div {
    padding-left:20px
  }
  .skill-card {
    padding:23px
  }
  .experience-row {
    grid-template-columns:135px 1fr 105px;
    gap:20px
  }
  .experience-area {
    font-size:7px
  }
  .contact-monogram {
    font-size:140px
  }
  .education-section {
    gap:50px
  }
}

@media(max-width:900px) {
  .container,.nav-shell {
    width:calc(100% - 48px)
  }
  .nav-shell {
    height:72px
  }
  .menu-toggle {
    display:grid
  }
  .main-nav {
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:72px;
    background:var(--surface);
    padding:20px 24px;
    border-bottom:1px solid var(--line);
    box-shadow:var(--shadow)
  }
  .main-nav.is-open {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0
  }
  .main-nav a {
    font-size:14px;
    padding:13px
  }
  .main-nav a.is-active:after {
    display:none
  }
  .hero {
    gap:28px;
    padding-top:50px;
    grid-template-columns:1.2fr 1fr
  }
  .hero h1 {
    font-size:38px;
    letter-spacing:-1.8px
  }
  .hero-role {
    font-size:15px
  }
  .hero-description {
    font-size:12px
  }
  .button {
    padding:10px 14px;
    font-size:11px;
    gap:12px
  }
  .hero-links {
    gap:15px
  }
  .hero-links>span {
    margin-left:0
  }
  .portrait-caption {
    padding:13px
  }
  .portrait-caption>span:last-child {
    font-size:6px
  }
  .focus-card strong {
    font-size:9px
  }
  .focus-card {
    gap:9px
  }
  .check-mark {
    width:27px;
    height:27px;
    font-size:14px
  }
  .facts-strip {
    grid-template-columns:repeat(2,1fr);
    gap:24px 32px
  }
  .facts-strip>div+div {
    border-left:0;
    padding-left:0
  }
  .facts-strip>div:nth-child(even) {
    border-left:1px solid var(--line);
    padding-left:32px
  }
  .skills-grid {
    gap:12px
  }
  .skill-card {
    padding:19px
  }
  .skill-card h3 {
    font-size:16px
  }
  .skill-card p {
    font-size:11px
  }
  .section {
    padding-top:70px
  }
  .section-heading {
    gap:30px
  }
  h2 {
    font-size:30px
  }
  .section-intro {
    max-width:260px;
    font-size:12px
  }
  .experience-row {
    grid-template-columns:125px 1fr
  }
  .experience-area {
    display:none
  }
  .project-visual {
    height:240px;
    padding-inline:22px
  }
  .project-content {
    padding:22px
  }
  .education-section {
    padding-bottom:70px;
    gap:35px
  }
  .education-date {
    float:none;
    display:block;
    margin-bottom:5px
  }
  .contact-section {
    padding:36px
  }
  .contact-monogram {
    display:none
  }
  .contact-section h2 {
    font-size:30px
  }
}

@media(max-width:640px) {
  html {
    scroll-padding-top:85px
  }
  .container,.nav-shell {
    width:calc(100% - 40px)
  }
  .hero {
    grid-template-columns:1fr;
    padding:36px 0 35px;
    gap:36px
  }
  .hero h1 {
    font-size:clamp(37px,9.5vw,55px);
    letter-spacing:-1.8px
  }
  .availability {
    margin-bottom:26px
  }
  .hero-name {
    font-size:9px
  }
  .hero-role {
    font-size:18px
  }
  .hero-description {
    font-size:14px;
    max-width:100%
  }
  .hero-actions {
    gap:10px;
    margin-top:23px
  }
  .button {
    font-size:12px;
    padding:11px 16px;
    gap:17px
  }
  .hero-links {
    font-size:11px;
    gap:20px;
    margin-top:22px
  }
  .hero-visual {
    width:min(350px,90%);
    margin:auto;
    padding:0 0 23px
  }
  .portrait-frame img {
    aspect-ratio:1.22;
    object-position:center 38%
  }
  .portrait-topline {
    padding:15px 18px 0
  }
  .portrait-caption {
    padding:14px 18px
  }
  .portrait-caption>span:last-child {
    font-size:7px
  }
  .focus-card {
    left:-15px;
    bottom:0;
    padding:13px 17px
  }
  .focus-card strong {
    font-size:10px
  }
  .facts-strip {
    gap:23px 18px;
    padding-block:25px
  }
  .facts-strip>div:nth-child(even) {
    padding-left:18px
  }
  .facts-strip strong {
    font-size:20px;
    flex-wrap:wrap;
    gap:3px 6px;
    line-height:1.3
  }
  .facts-strip strong>span {
    font-size:10px
  }
  .facts-strip p {
    font-size:9px
  }
  .section {
    padding-top:58px
  }
  .section-heading {
    display:block;
    margin-bottom:25px
  }
  .section-intro {
    max-width:100%;
    margin-top:18px;
    font-size:13px
  }
  h2 {
    font-size:31px;
    letter-spacing:-1px
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:1.8px
  }
  .skills-grid {
    grid-template-columns:1fr;
    gap:15px
  }
  .skill-card {
    padding:26px
  }
  .skill-symbol {
    margin-bottom:23px
  }
  .skill-card h3 {
    font-size:20px
  }
  .skill-card p {
    font-size:13px
  }
  .tags>span {
    font-size:10px
  }
  .learning-label {
    font-size:10px
  }
  .experience-row {
    grid-template-columns:1fr;
    gap:14px;
    padding:25px 0
  }
  .experience-date {
    display:flex;
    align-items:center;
    gap:13px
  }
  .current-label {
    margin:0
  }
  .experience-row h3 {
    font-size:18px
  }
  .experience-row ul {
    font-size:13px
  }
  .projects-grid {
    grid-template-columns:1fr;
    gap:23px
  }
  .project-visual {
    height:255px;
    padding-inline:32px
  }
  .project-content {
    padding:25px
  }
  .project-content>p {
    font-size:13px;
    min-height:0
  }
  .qa-note p {
    font-size:12px
  }
  .project-links {
    font-size:11px
  }
  .education-section {
    grid-template-columns:1fr;
    gap:26px;
    padding-bottom:58px
  }
  .education-heading>p:last-child {
    max-width:100%;
    margin-top:15px
  }
  .education-date {
    float:right
  }
  .education-list h3 {
    font-size:16px
  }
  .languages>span {
    font-size:10px
  }
  .contact-section {
    padding:30px 24px;
    border-radius:14px
  }
  .contact-section h2 {
    font-size:28px;
    letter-spacing:-.8px
  }
  .contact-section p:not(.eyebrow) {
    font-size:13px
  }
  .contact-email {
    font-size:19px;
    letter-spacing:-.5px
  }
  .contact-email>span {
    margin-left:3px
  }
  .contact-links {
    gap:23px;
    font-size:11px
  }
  .footer {
    flex-wrap:wrap;
    gap:18px;
    padding-top:25px
  }
  .footer>div {
    width:100%;
    justify-content:space-between;
    padding-top:14px;
    border-top:1px solid var(--line);
    font-size:11px
  }
  .footer p {
    font-size:11px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    transition:none!important
  }
}

@media print {
  .site-header,.hero-actions,.hero-links,.focus-card,.project-visual,.contact-monogram,.footer,.skip-link {
    display:none
  }
  .container {
    width:100%
  }
  body {
    background:white;
    color:#172039
  }
  .hero {
    padding:15px 0;
    gap:25px
  }
  .hero h1 {
    font-size:32px
  }
  .hero-visual {
    max-width:230px
  }
  .section {
    padding-top:25px
  }
  .section-heading {
    margin-bottom:15px
  }
  h2 {
    font-size:25px
  }
  .skill-card,.project-card,.experience-row,.education-list article {
    break-inside:avoid
  }
  .contact-section {
    margin-top:20px
  }
  .education-section {
    padding-bottom:25px
  }
}


/* Three explicit, keyboard-accessible language versions. */
.language-switch { display:flex; align-items:center; gap:5px; flex-shrink:0; }
.language-switch a { text-decoration:none; }
.language-switch a[aria-current="page"] { color:var(--surface); background:var(--navy); border-color:var(--navy); }
.language-switch a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
html[lang="de"] .button { white-space:normal; text-align:center; }
html[lang="de"] h1, html[lang="de"] h2, html[lang="de"] h3 { overflow-wrap:break-word; }
@media(min-width:901px) and (max-width:1150px) { .main-nav { gap:14px; } .brand-caption { display:none; } .nav-shell { gap:14px; } }
@media(max-width:480px) { .nav-tools { gap:6px; } .language-switch { gap:3px; } .language-switch .language-toggle { min-width:32px; width:32px; height:32px; } }
@media(max-width:640px) { .brand-caption { display:none; } .nav-shell { gap:10px; } }

/* Keep language links on one row inside the header at every viewport width. */
.site-header .nav-tools > .language-switch {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  height: 36px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.site-header .language-switch > .language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  box-sizing: border-box;
  padding: 0;
  line-height: 1;
}
@media (max-width: 480px) {
  .site-header .nav-tools > .language-switch { gap: 3px; height: 32px; }
  .site-header .language-switch > .language-toggle {
    flex-basis: 32px; width: 32px; min-width: 32px; height: 32px;
  }
}
