:root {
  --bg: #0b0b0b;
  --bg-soft: #151515;
  --line: #2a2a2a;
  --text: #f3f3f3;
  --muted: #b8b8b8;
  --accent: #f6c90e;
}

body.theme-light {
  --bg: #f6f7f9;
  --bg-soft: #ffffff;
  --line: #d7dbe2;
  --text: #14171c;
  --muted: #4e5663;
  --accent: #c08b00;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Inter, Segoe UI, Roboto, Arial, sans-serif; transition: background .25s ease, color .25s ease; }

.container { width: min(1080px, 92%); margin: 0 auto; }

.experience-list { display: grid; gap: 12px; margin-top: 20px; }
.experience-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.experience-item h3 { margin: 0 0 7px; font-size: 1.08rem; }
.experience-item p { margin: 0; line-height: 1.55; }
.experience-date { color: var(--accent); font-weight: 700; font-size: .93rem; }
@media (max-width: 650px) { .experience-item { grid-template-columns: 1fr; gap: 7px; } }

.hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 85% -10%, #2b2200 0%, #141414 38%, #0b0b0b 68%);
  padding: 80px 0 72px;
}

body.theme-light .hero {
  background: radial-gradient(circle at 85% -10%, #ffe9ad 0%, #ffffff 38%, #f6f7f9 68%);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111;
  background: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 12px;
}

.lang-switch {
  font-size: .9rem;
  color: var(--text);
  white-space: nowrap;
}

.lang-switch a,
.lang-switch strong {
  margin-left: 8px;
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(246,201,14,.28);
  border-radius: 999px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-toggle .ios-switch {
  width: 64px;
  height: 30px;
  border-radius: 999px;
  background: #2a2f37;
  border: 1px solid #434b57;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: .22s ease;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.03);
}

.theme-toggle .ios-switch::before {
  content: "🌙";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 12px;
  opacity: .9;
  transition: .22s ease;
}

.theme-toggle .ios-switch::after {
  content: "☀️";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: .22s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.theme-toggle input:checked + .ios-switch {
  background: #f6c90e;
  border-color: #f6c90e;
}

.theme-toggle input:checked + .ios-switch::before {
  content: "☀️";
  right: 39px;
}

.theme-toggle input:checked + .ios-switch::after {
  content: "🌙";
  transform: translateX(34px);
}

h1 { margin: 0; font-size: clamp(2rem, 4.7vw, 3.6rem); line-height: 1.08; }
h1 span { color: var(--accent); }
.meta { color: #dedede; margin: 14px 0 10px; }
.lead { color: var(--muted); max-width: 900px; line-height: 1.7; }

.role-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.role-chip {
  border: 1px solid rgba(246, 201, 14, .45);
  background: rgba(31, 26, 7, .72);
  color: #f5dd77;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
}
.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.ai-section .card { background: rgba(17, 17, 17, .78); }

body.theme-light .meta,
body.theme-light .lead {
  color: #1c2430;
}

body.theme-light .role-chip {
  background: #fff8d9;
  border-color: #b08a00;
  color: #5f4800;
}

.section { padding: 58px 0; }
.section-dark { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 { color: var(--accent); margin: 0 0 18px; font-size: clamp(1.45rem, 2.7vw, 2.1rem); }
h3 { margin-top: 0; }
p { line-height: 1.7; color: var(--text); }
li { color: var(--text); }

.list { margin: 16px 0; padding-left: 20px; color: #e5e5e5; line-height: 1.8; }
.list li::marker { color: var(--accent); }
.accent { color: #f9db5d; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  border: 1px solid #4b3a00;
  background: #1f1a07;
  color: #f5dd77;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .92rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  background: #111;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
body.theme-light .card {
  background: #ffffff;
}
.card ul { margin: 0; padding-left: 18px; color: var(--text); line-height: 1.75; }
.card li::marker { color: var(--accent); }
.card.full { grid-column: 1 / -1; }

.footer { border-top: 1px solid var(--line); padding: 24px 0 34px; }
.muted { color: var(--muted); }

a { color: #f6d861; text-decoration: none; border-bottom: 1px dashed rgba(246,201,14,.45); }
a:hover { color: #ffe58f; border-bottom-color: rgba(255,229,143,.85); }

body.theme-light a {
  color: #7a4f00;
  border-bottom-color: rgba(122,79,0,.45);
}

body.theme-light a:hover {
  color: #5f3d00;
  border-bottom-color: rgba(95,61,0,.75);
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Print version (A4-optimized) */
@page {
  size: A4;
  margin: 11mm;
}

@media print {
  :root {
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --line: #d8d8d8;
    --text: #000000;
    --muted: #000000;
    --accent: #000000;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
    line-height: 1.35;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body, p, li, span, a, h1, h2, h3, strong, em {
    color: #000 !important;
  }

  .hero {
    background: #fff !important;
    border-bottom: 1px solid #d8d8d8;
    padding: 6mm 0 4mm;
  }

  .badge {
    background: #111 !important;
    color: #fff !important;
    padding: 2px 7px;
    font-size: 8pt;
    margin-bottom: 6px;
  }

  h1 { font-size: 18pt; margin: 0 0 4px; }
  h2 { font-size: 12pt; margin: 0 0 7px; color: #111 !important; }
  h3 { font-size: 10.5pt; margin: 0 0 4px; }

  .meta, .lead { margin: 2px 0; }
  .section { padding: 3.2mm 0; }
  .section-dark {
    background: #fff !important;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .card {
    background: #fff !important;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 7px;
  }

  .card.full { grid-column: 1 / -1; }

  .list {
    margin: 4px 0 0;
    padding-left: 16px;
    line-height: 1.35;
  }

  .list li {
    margin: 0 0 2px;
    orphans: 2;
    widows: 2;
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .chips span {
    background: #f4f4f4 !important;
    border: 1px solid #d4d4d4;
    color: #111 !important;
    padding: 2px 6px;
    font-size: 8.8pt;
  }

  .role-stack {
    gap: 4px;
    margin-top: 5px;
  }

  .role-chip {
    background: #f4f4f4 !important;
    border: 1px solid #d4d4d4;
    color: #111 !important;
    padding: 2px 6px;
    font-size: 8.8pt;
  }

  a {
    color: #111 !important;
    border-bottom: none !important;
    text-decoration: none;
  }

  .footer {
    display: none !important;
  }

  /* Better page breaks */
  section, .card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h2, h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
}

/* Contact form (Anfrage) */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.field .req { color: var(--accent); }
input, textarea, select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246,201,14,.15);
}
textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-submit {
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  transition: filter .2s ease, opacity .2s ease;
}
.btn-submit:hover { filter: brightness(1.08); }
.contact-cta {
  display: inline-block;
  background: var(--accent);
  color: #111;
  border: 0;
  border-radius: 10px;
  padding: 13px 24px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}
.contact-cta:hover {
  color: #111;
  border-bottom: 0;
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-note { font-size: .8rem; color: var(--muted); max-width: 340px; }
.form-status {
  font-size: .92rem;
  padding: 0;
  font-weight: 600;
}
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff7a7a; }
.form-error-msg { color: #ff7a7a; font-size: .78rem; margin-top: -2px; }
section.contact-grid .contact-info p { margin: 10px 0; }
section.contact-grid .contact-info a { color: var(--accent); }
@media (max-width: 860px) {
  .row-2 { grid-template-columns: 1fr; }
}
@media print {
  section.contact-grid { break-inside: avoid; page-break-inside: avoid; }
  .btn-submit, .form-status, .form-note { display: none; }
}

/* Editorial screen layout. Print keeps its compact A4 treatment above. */
@media screen {
  :root {
    --bg: #10151b;
    --bg-soft: #171e26;
    --line: #30404c;
    --text: #f0f3f3;
    --muted: #aab8c0;
    --accent: #d5ad61;
  }
  body.theme-light {
    --bg: #f5f4ef;
    --bg-soft: #eeeae0;
    --line: #d9d5ca;
    --text: #1d2930;
    --muted: #59666d;
    --accent: #9d682c;
  }
  html { scroll-behavior: smooth; }
  body { font-family: "Segoe UI", Inter, Arial, sans-serif; font-size: 16px; letter-spacing: -.01em; }
  .container { width: min(1060px, calc(100% - 48px)); }
  .hero {
    color: #f8f6ef;
    background: linear-gradient(125deg, #15232c 0%, #101923 56%, #29372f 100%);
    border-bottom: 4px solid #d5ad61;
    padding: 34px 0 58px;
  }
  body.theme-light .hero { background: linear-gradient(125deg, #15232c 0%, #101923 56%, #29372f 100%); }
  .hero .container { position: relative; }
  .hero-top { margin-bottom: 46px; }
  .hero h1 { max-width: 880px; font-size: clamp(2.6rem, 5.5vw, 4.7rem); line-height: 1.04; letter-spacing: -.055em; }
  .hero h1 span { display: block; margin-top: 8px; color: #d5ad61; font-size: .48em; letter-spacing: -.025em; }
  .hero .badge { background: transparent; border: 1px solid #8b9b98; color: #dce6e3; border-radius: 4px; padding: 6px 9px; font-size: .68rem; letter-spacing: .13em; margin-bottom: 20px; }
  .hero .meta { display: inline-block; margin: 22px 22px 0 0; color: #c9d4d4; font-size: .91rem; }
  body.theme-light .hero .meta { color: #c9d4d4; }
  .hero .lead { color: #fff; font-size: 1.12rem; line-height: 1.5; margin: 26px 0 16px; }
  body.theme-light .hero .lead { color: #fff; }
  .hero a:not(.contact-cta) { color: #f5dfae; border-color: #9b8051; }
  .hero .contact-cta { background: #d5ad61; color: #18242a; border-radius: 5px; padding: 12px 18px; }
  .hero .contact-cta:hover { color: #18242a; }
  .hero .lead + p { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
  .hero .lead + p a { white-space: nowrap; }
  .hero .role-stack { margin-top: 22px; gap: 7px; }
  .hero .role-chip { background: transparent; border: 1px solid #6c7b7c; color: #cbd8d5; border-radius: 4px; padding: 5px 9px; font-size: .76rem; font-weight: 500; }
  body.theme-light .hero .role-chip { background: transparent; border-color: #6c7b7c; color: #cbd8d5; }
  .hero .lang-switch { margin: 0; color: #dae3e0; font-size: .79rem; }
  .hero .lang-switch a, .hero .lang-switch strong { border-color: #667a79; color: #f4f6f0; border-radius: 4px; }
  .hero .theme-toggle .ios-switch { transform: scale(.85); transform-origin: right center; }
  .hero .theme-toggle { position: relative; }
  .hero .theme-toggle-input { width: 1px; height: 1px; left: 0; top: 0; }
  .hero-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 980px; margin: 30px 0 0; border-top: 1px solid rgba(157, 205, 196, .3); border-bottom: 1px solid rgba(157, 205, 196, .3); }
  .hero-details p { margin: 0; padding: 17px 19px; line-height: 1.35; }
  .hero-details p:first-child { padding-left: 0; }
  .hero-details p + p { border-left: 1px solid rgba(157, 205, 196, .3); }
  .hero-details strong, .hero-details span { display: block; }
  .hero-details strong { color: #f3f7f4; font-size: .94rem; font-weight: 700; }
  .hero-details span { color: #b7cfca; font-size: .82rem; margin-top: 5px; }
  .hero .hero-details + .lead { margin: 24px 0 20px; max-width: 840px; }

  main > .section { padding-top: 48px; padding-bottom: 50px; border-top: 1px solid var(--line); }
  main > .section:first-child { border-top: 0; }
  main > .section-dark { background: var(--bg-soft); border-bottom: 0; }
  main > .section-dark + .section-dark { border-top-color: var(--line); }
  h2 { color: var(--text); font-size: clamp(1.55rem, 2.5vw, 2.15rem); letter-spacing: -.045em; margin-bottom: 18px; }
  h3 { color: var(--text); letter-spacing: -.025em; }
  p { max-width: 82ch; line-height: 1.62; }
  .muted { color: var(--muted); }
  .section-kicker { color: var(--accent); }
  .list { line-height: 1.58; margin: 12px 0 0; }
  .list li { margin-bottom: 6px; padding-left: 2px; }
  .grid-2 { gap: 12px; }
  .card, body.theme-light .card, .ai-section .card { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; }
  .card h3 { margin-bottom: 10px; }
  .card ul { line-height: 1.55; }
  .card li { margin: 0 0 5px; }
  .chips span { border-radius: 4px; background: var(--bg); color: var(--text); border-color: var(--line); }
  a, body.theme-light a { color: var(--accent); border-color: currentColor; }
  a:hover, body.theme-light a:hover { color: var(--text); border-color: currentColor; }

  #experience { scroll-margin-top: 22px; }
  #experience > .muted { font-size: .9rem; margin-top: -5px; }
  .experience-list { display: block; margin-top: 27px; border-top: 1px solid var(--line); }
  .experience-item { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 30px; padding: 18px 0 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  .experience-date { color: var(--accent); font-size: .82rem; font-weight: 700; line-height: 1.4; padding-top: 3px; }
  .experience-item h3 { font-size: 1.08rem; margin: 0 0 6px; }
  .experience-item p { color: var(--muted); font-size: .92rem; line-height: 1.5; }
  .footer { background: #15232c; color: #e9efed; padding: 24px 0; }
  .footer p { color: #e9efed; }
  @media (min-width: 800px) {
    main > .section.container { width: min(1060px, calc(100% - 48px)); }
    main > .section.container > .list { columns: 2; column-gap: 45px; }
    main > .section.container > .list li { break-inside: avoid; }
  }
  @media (max-width: 650px) {
    .container { width: min(1060px, calc(100% - 32px)); }
    .hero { padding: 20px 0 36px; }
    .hero-top { margin-bottom: 30px; }
    .hero .meta { display: block; margin: 8px 0; }
    main > .section { padding-top: 34px; padding-bottom: 36px; }
    .experience-item { grid-template-columns: 1fr; gap: 4px; }
  }
}

/* Resume presentation: high contrast, restrained sections, clear contact action. */
@media screen {
  :root { --bg: #0d1822; --bg-soft: #152532; --line: #2f4350; --text: #eef4f5; --muted: #afc0c8; --accent: #64d5c0; }
  body.theme-light { --bg: #ffffff; --bg-soft: #f0f5f5; --line: #dce7e8; --text: #172c38; --muted: #526875; --accent: #087d75; }
  .hero, body.theme-light .hero { position: relative; overflow: hidden; background: linear-gradient(115deg, #0b1b27 0%, #142e3b 65%, #17443f 100%); border-bottom-color: #64d5c0; }
  .hero > .container { position: relative; z-index: 1; }
  .matrix-rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; mask-image: linear-gradient(90deg, #000 0%, #0009 48%, transparent 86%); }
  .hero .interview-format { max-width: 980px; margin: 22px 0 0; color: #cfe1da; font-size: .84rem; line-height: 1.5; }
  .hero .interview-format strong { color: #77ddc9; }
  .action-scene { --parallax-x: 0px; --parallax-y: 0px; position: absolute; z-index: 0; top: 0; right: 0; width: min(42vw, 640px); height: 100%; pointer-events: none; opacity: .68; transform: translate(var(--parallax-x), var(--parallax-y)); transition: transform .25s ease-out; }
  .elevator-door { position: absolute; right: 10%; top: 16%; width: 52%; height: 75%; border: 3px solid #55d7b759; border-radius: 8px 8px 0 0; background: repeating-linear-gradient(90deg, #0a161d 0 48%, #2c5c5b 49% 50%, #0a161d 51% 100%); box-shadow: 0 0 45px #3be6b233, inset 0 0 35px #000; opacity: .55; }
  .elevator-door::after { content: ''; position: absolute; inset: 12px 50% 12px auto; width: 2px; background: #74ffc3a0; box-shadow: 0 0 18px #6fffc5; }
  .action-figure { position: absolute; bottom: -8%; right: 8%; width: min(32vw, 430px); height: min(43vw, 572px); background: url('assets/cyber-action-sprite.webp') left center / 400% 100% no-repeat; filter: drop-shadow(0 12px 16px #000c); animation: action-move 11s ease-in-out infinite, action-frame 11s step-end infinite; }
  .bullet-trail { position: absolute; right: 0; top: 49%; width: 45%; height: 2px; background: linear-gradient(90deg, #effff700, #eaffc8, #c9ffe300); box-shadow: 0 0 14px #dfffc7; transform: rotate(-12deg); opacity: 0; animation: bullet-flash 11s linear infinite; }
  .bullet-trail-two { top: 58%; transform: rotate(15deg); animation-delay: .15s; }
  @keyframes action-frame { 0%, 13%, 100% { background-position: 0% center; } 14%, 41% { background-position: 33.333% center; } 42%, 65% { background-position: 66.666% center; } 66%, 88% { background-position: 100% center; } 89% { background-position: 0% center; } }
  @keyframes action-move { 0%, 100% { transform: translate(100px, 75px) scale(.8); opacity: 0; } 12% { transform: translate(25px, 10px) scale(.88); opacity: .9; } 29% { transform: translate(-35px, -52px) scale(1); opacity: 1; } 49% { transform: translate(-95px, -26px) scale(1.03); opacity: 1; } 70%, 86% { transform: translate(-65px, 10px) scale(1); opacity: 1; } 93% { transform: translate(-45px, 20px) scale(.94); opacity: 0; } }
  @keyframes bullet-flash { 0%, 66%, 71%, 75%, 100% { opacity: 0; } 68%, 73% { opacity: .85; } }
  @media (max-width: 1050px) { .action-scene { width: 48vw; opacity: .28; } .action-figure { width: 34vw; height: 46vw; } }
  @media (max-width: 760px) { .action-scene { width: 72vw; opacity: .16; } .action-figure { width: 45vw; height: 60vw; } }
  @media (prefers-reduced-motion: reduce) { .matrix-rain, .action-scene { display: none; } }
  .hero h1 span { color: #73dec9; }
  .hero .contact-cta, body.theme-light .hero .contact-cta { background: #73dec9; color: #09292a; }
  .hero .contact-cta:hover, body.theme-light .hero .contact-cta:hover { color: #09292a; }
  .hero a:not(.contact-cta), body.theme-light .hero a:not(.contact-cta) { color: #b8fff0; border-color: #79c9b9; }
  .hero .badge { border-color: #78a9a7; color: #b8e9e3; }
  .hero .role-chip, body.theme-light .hero .role-chip { border-color: #547979; color: #c5e5e0; }
  main > .section { padding-top: 56px; padding-bottom: 58px; }
  main > .section-dark { background: var(--bg-soft); }
  h2 { font-size: clamp(1.7rem, 2.5vw, 2.25rem); }
  .section-kicker { color: var(--accent); }
  .card, body.theme-light .card, .ai-section .card { border-radius: 10px; box-shadow: 0 7px 24px rgba(14,43,52,.04); }
  .experience-list { border-top-width: 2px; }
  .experience-item { padding: 21px 0; }
  .experience-date { color: var(--accent); }
  #beyond-web .card { border: 0; background: var(--bg-soft); padding: 28px; }
  #beyond-web .card h3 { font-size: 1.18rem; }
  main > .section:last-child { background: #0e2633; border-top: 0; color: #f4faf9; }
  main > .section:last-child h2 { color: #f4faf9; }
  main > .section:last-child p { color: #c9dcdd; }
  main > .section:last-child a:not(.contact-cta), body.theme-light main > .section:last-child a:not(.contact-cta) { color: #8debd9; border-color: #8debd9; }
  main > .section:last-child .contact-cta, body.theme-light main > .section:last-child .contact-cta { background: #73dec9; color: #082b30; border: 0; border-radius: 6px; padding: 15px 26px; font-size: 1rem; }
  main > .section:last-child .contact-cta:hover, body.theme-light main > .section:last-child .contact-cta:hover { color: #082b30; }
  .footer { background: #081923; border-top: 1px solid #2c424b; }
  .expertise-group { background: var(--bg-soft); }
  .expertise-group h2 { margin-bottom: 22px; }
  .expertise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .expertise-item { width: auto; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
  .expertise-item > .container { width: auto; margin: 0; }
  .expertise-item h3 { font-size: 1.18rem; margin: 0 0 12px; }
  .expertise-item .list { columns: 1 !important; margin: 0; padding-left: 18px; font-size: .92rem; }
  .expertise-item .list li { margin-bottom: 5px; }
  .project-section { background: var(--bg); }
  .project-section > .container > p.muted { margin-top: -8px; margin-bottom: 25px; }
  .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
  .project-card img { display: block; width: 100%; height: 250px; object-fit: cover; object-position: center 30%; }
  .project-card:nth-child(1) img { object-position: center 42%; }
  .project-card:nth-child(2) img { object-position: center; }
  .project-image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
  .project-image-button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
  .project-lightbox { position: fixed; inset: 0; box-sizing: border-box; width: min(94vw, 1600px); max-width: none; max-height: 94vh; padding: 16px; border: 1px solid #75928e; border-radius: 12px; background: #101b21; color: #f4f7f5; box-shadow: 0 20px 80px #0009; }
  .project-lightbox::backdrop { background: #061017d9; }
  .project-lightbox img { display: block; max-width: 100%; max-height: calc(94vh - 82px); width: auto; height: auto; margin: auto; object-fit: contain; }
  .project-lightbox p { margin: 10px 40px 0 0; font-size: .85rem; color: #d4e1df; }
  .project-lightbox-close { position: absolute; z-index: 1; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #ffffffee; color: #102027; font-size: 1.65rem; line-height: 1; cursor: pointer; }
  .project-card:nth-child(4) img { object-position: center 48%; }
  .project-card:nth-child(5) img { object-position: center 28%; }
  .project-card:nth-child(6) img { object-fit: contain; background: #0b1018; padding: 25px; box-sizing: border-box; }
  .project-card:nth-child(7) img { object-fit: contain; background: #f8faf9; }
  .project-card:nth-child(8) img { object-position: center 42%; }
  .project-card:nth-child(11) img { object-position: center 38%; }
  .project-card:nth-child(12) img { object-fit: contain; background: #fff; }
  .project-card > div { padding: 21px 24px 24px; }
  .project-card > .crypto-preview { box-sizing: border-box; height: 250px; padding: 20px 24px; background: #0b1015; color: #f0f3ed; font-size: .86rem; }
  .crypto-preview strong { display: block; color: #f6f3e8; font-size: 1.12rem; letter-spacing: -.02em; }
  .crypto-preview small { color: #c6fb4b; font-size: .55rem; letter-spacing: .12em; }
  .crypto-preview p { color: #acb5ae !important; margin: 7px 0 14px !important; }
  .crypto-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 13px; }
  .crypto-stats span { display: block; border: 1px solid #26312b; border-radius: 5px; padding: 9px; color: #aeb7ae; font-size: .65rem; letter-spacing: 0; text-transform: none; }
  .crypto-stats b { display: block; margin-top: 3px; color: #c6fb4b; font-size: 1rem; }
  .crypto-task { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #26312b; color: #e5eae3; }
  .crypto-task em { color: #c6fb4b; font-size: .7rem; font-style: normal; white-space: nowrap; }
  .project-card span { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .project-card h3 { font-size: 1.25rem; margin: 7px 0 5px; }
  .project-card p { margin: 0; color: var(--muted); font-size: .92rem; }
  .additional-projects { margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
  #beyond-web .grid-2 { align-items: stretch; }
  #beyond-web .card { overflow: hidden; padding: 0; }
  #beyond-web .card > img { display: block; width: 100%; height: 230px; object-fit: cover; }
  #beyond-web .card > div { padding: 22px 25px; }
  #beyond-web .music-card > img { object-position: center 45%; }
  #beyond-web audio { display: block; width: calc(100% - 50px); margin: 0 25px 25px; }
  .next-track { display: grid; grid-template-columns: 72px 1fr; gap: 12px 16px; align-items: center; margin: 0 25px 25px; padding-top: 18px; border-top: 1px solid var(--line); }
  .next-track > img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 5px; }
  .next-track span { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
  .next-track h4 { margin: 4px 0 0; font-size: 1.13rem; }
  .next-track audio { grid-column: 1 / -1; display: block; width: 100% !important; margin: 0 !important; }
  .music-feature > .next-track { grid-column: 1 / -1; margin: 0; }
  .music-feature { display: grid; grid-template-columns: 220px 1fr 330px; gap: 24px; align-items: center; margin-top: 20px; padding: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
  .music-feature > img { display: block; width: 220px; height: 220px; object-fit: cover; border-radius: 6px; }
  .music-feature h3 { font-size: 1.45rem; margin: 6px 0 10px; }
  .music-feature audio { display: block; width: 100%; }
  @media (max-width: 1050px) { .music-feature { grid-template-columns: 160px 1fr; } .music-feature > img { width: 160px; height: 160px; } .music-feature audio { grid-column: 1 / -1; } }
  @media (max-width: 760px) {
    .expertise-grid, .project-grid { grid-template-columns: 1fr; }
    .project-card img, .project-card > .crypto-preview { height: 210px; }
    .expertise-item { padding: 20px; }
    .music-feature { grid-template-columns: 1fr; }
    .music-feature > img { width: 100%; height: 240px; }
    .music-feature audio { grid-column: 1; }
    .hero-details { grid-template-columns: 1fr; margin-top: 24px; }
    .hero-details p, .hero-details p:first-child { padding: 11px 0; }
    .hero-details p + p { border-left: 0; border-top: 1px solid rgba(157, 205, 196, .3); }
  }
  @media (min-width: 900px) {
    main > .section:last-child .container { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 80px; align-items: start; }
    main > .section:last-child h2 { grid-column: 1; }
    main > .section:last-child .container > p:nth-of-type(1) { grid-column: 1; }
    main > .section:last-child .container > p:nth-of-type(2) { grid-column: 1; }
    main > .section:last-child .container > p:nth-of-type(3) { grid-column: 2; grid-row: 1; }
    main > .section:last-child .container > p:nth-of-type(4) { grid-column: 2; grid-row: 2; }
  }
}
