/* ==========================================================================
   Lumina Editorial — dubauskas.de
   Design tokens taken from the Lumina Editorial design system.
   ========================================================================== */

/* To self-host Inter, drop Inter-Regular/Medium/SemiBold/Bold .woff2 into
   assets/fonts/ and uncomment this block. Nothing else needs to change —
   --font already prefers Inter over the system face.

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/assets/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("/assets/fonts/Inter-Bold.woff2") format("woff2"); }
*/

/* --- Tokens ------------------------------------------------------------- */

:root {
  --surface: #fcf8fb;
  --surface-lowest: #ffffff;
  --surface-low: #f6f3f5;
  --surface-container: #f0edef;
  --surface-high: #eae7ea;
  --surface-highest: #e4e2e4;
  --soft-gray: #fbfbfd;

  --on-surface: #1b1b1d;
  --on-surface-variant: #414755;
  --secondary: #5e5e63;
  --graphite: #424245;
  --outline: #717786;
  --outline-variant: #c1c6d7;

  --primary: #0058bc;
  --primary-hover: #0070eb;
  --on-primary: #ffffff;
  --primary-fixed: #d8e2ff;
  --primary-dim: #adc6ff;

  --inverse-surface: #303032;
  --inverse-on-surface: #f3f0f2;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-stroke: rgba(0, 0, 0, 0.08);
  --glass-stroke-strong: rgba(0, 0, 0, 0.14);

  --shadow-ambient: 0 24px 60px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.04), 0 18px 44px rgba(0, 0, 0, 0.07);

  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-full: 9999px;

  --gutter: 32px;
  --margin-inline: 24px;
  --section-gap: 96px;
  --container-max: 1440px;

  /* Inter when the visitor has it (or when the woff2 files are dropped into
     assets/fonts and the @font-face block in this file is uncommented);
     otherwise the platform's own UI face, which is very close in character. */
  --font: "Inter", "Inter var", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;

  color-scheme: light;
}

@media (min-width: 900px) {
  :root {
    --margin-inline: 80px;
    --section-gap: 120px;
  }
}

html[data-theme="dark"] {
  --surface: #131315;
  --surface-lowest: #1b1b1d;
  --surface-low: #17171a;
  --surface-container: #202023;
  --surface-high: #26262a;
  --surface-highest: #2d2d31;
  --soft-gray: #1b1b1d;

  --on-surface: #f3f0f2;
  --on-surface-variant: #c4c7d0;
  --secondary: #9d9da4;
  --graphite: #b6b6bb;
  --outline: #8b909c;
  --outline-variant: #3a3a40;

  --primary: #adc6ff;
  --primary-hover: #d8e2ff;
  --on-primary: #001a41;
  --primary-fixed: #24365c;
  --primary-dim: #adc6ff;

  --inverse-surface: #f3f0f2;
  --inverse-on-surface: #1b1b1d;

  --glass-bg: rgba(24, 24, 27, 0.72);
  --glass-stroke: rgba(255, 255, 255, 0.12);
  --glass-stroke-strong: rgba(255, 255, 255, 0.2);

  --shadow-ambient: 0 24px 60px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 44px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

/* --- Reset -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--surface);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --- Typography --------------------------------------------------------- */

.display {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.h1 {
  font-size: clamp(2.25rem, 5.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--on-surface-variant);
}

.muted {
  color: var(--secondary);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--outline);
}

.label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.small {
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* --- Layout ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-inline);
}

.narrow {
  max-width: 900px;
}

main {
  flex: 1 0 auto;
  padding-top: 128px;
}

.section {
  margin-bottom: var(--section-gap);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* --- Surfaces ----------------------------------------------------------- */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-stroke);
}

.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card {
  background: var(--surface-lowest);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--glass-stroke-strong);
  color: var(--graphite);
}

.btn-ghost:hover {
  background: var(--soft-gray);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

.textlink {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.textlink:hover {
  color: var(--primary-hover);
  gap: 10px;
}

/* --- Chips -------------------------------------------------------------- */

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

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--soft-gray);
  border: 1px solid var(--glass-stroke);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--graphite);
  white-space: nowrap;
}

.chip-status {
  padding: 3px 10px;
  background: var(--surface-high);
  color: var(--graphite);
}

.chip-status.is-present {
  background: var(--primary-fixed);
  color: var(--primary);
  border-color: transparent;
}

/* --- Navigation --------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-stroke);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

/* Stitch marks the active page with a blue underline, not a filled pill. */
.nav-links a[aria-current="page"] {
  color: var(--primary);
  background: transparent;
  border-radius: 0;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}

.nav-links a[aria-current="page"]:hover {
  background: transparent;
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

.nav-cta {
  display: none;
}

/* Language menu */

.lang {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  background: var(--surface-container);
  color: var(--on-surface);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-ambient);
  display: none;
  z-index: 70;
}

.lang-menu[data-open="true"] {
  display: block;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface);
  transition: background-color 0.2s ease;
}

.lang-menu a:hover {
  background: var(--surface-container);
}

.lang-menu a[aria-current="true"] {
  color: var(--primary);
  font-weight: 600;
}

/* Mobile drawer */

.nav-panel {
  display: none;
  padding: 8px 0 24px;
  border-top: 1px solid var(--glass-stroke);
}

.nav-panel[data-open="true"] {
  display: block;
}

.nav-panel a:not(.btn) {
  display: block;
  padding: 14px 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  border-bottom: 1px solid var(--glass-stroke);
}

.nav-panel a[aria-current="page"] {
  color: var(--primary);
}

.nav-panel .btn {
  margin-top: 20px;
  width: 100%;
}

@media (min-width: 900px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }
  .nav-burger {
    display: none;
  }
  .nav-panel {
    display: none !important;
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: var(--section-gap);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 280px 1fr;
    gap: 72px;
  }
}

.avatar {
  width: 192px;
  height: 192px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-lift);
  background: var(--surface-container);
}

@media (min-width: 900px) {
  .avatar {
    width: 288px;
    height: 288px;
  }
}

.avatar img,
.avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  font-size: 1.0625rem;
}

.dot-sep::before {
  content: "•";
  margin-right: 10px;
  color: var(--outline-variant);
}

.hero-statement {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--on-surface-variant);
  max-width: 40ch;
}

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

/* --- Bento grid --------------------------------------------------------- */

.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Qualifications composition, matching the Stitch layout: a narrow left
   column of stacked cards beside a two-thirds block. */
.qual {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.qual-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qual-right {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .qual {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .qual-left {
    height: 100%;
  }
  .qual-left > .panel:first-child {
    flex: 1 1 auto;
  }
  .qual-right {
    grid-column: span 2;
    grid-template-columns: repeat(2, 1fr);
  }
  .qual-right > .panel.full {
    grid-column: 1 / -1;
  }
}

.span-2 {
  grid-column: span 1;
}

@media (min-width: 720px) {
  .span-2 {
    grid-column: span 2;
  }
}

.panel h3 {
  margin-bottom: 20px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack-list > li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.stack-list .icon {
  flex: none;
  color: var(--primary);
  margin-top: 2px;
}

.entry-title {
  font-weight: 600;
  color: var(--on-surface);
}

.entry-sub {
  color: var(--secondary);
  font-size: 0.9375rem;
}

/* Language meters */

.meter-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.meter-row .label {
  font-size: 0.875rem;
}

.meter-row .value {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
}

.meter {
  height: 6px;
  width: 100%;
  border-radius: var(--radius-full);
  background: var(--surface-highest);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary);
}

.meter + .meter-row {
  margin-top: 20px;
}

/* --- Project cards ------------------------------------------------------ */

.project-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card .thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-stroke);
  background: var(--surface-low);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.thumb svg,
.thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-card p {
  color: var(--secondary);
  margin-top: 8px;
}

/* --- Timeline ----------------------------------------------------------- */

.timeline {
  position: relative;
  max-width: 1000px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 7px;
  width: 1px;
  background: var(--outline-variant);
}

@media (min-width: 900px) {
  .timeline::before {
    left: 152px;
  }
}

.tl-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .tl-item {
    display: grid;
    grid-template-columns: 152px 1fr;
    gap: 48px;
    padding-left: 0;
    margin-bottom: 48px;
  }
}

.tl-item:last-child {
  margin-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: 0;
  top: 14px;
  width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  background: var(--outline-variant);
  box-shadow: 0 0 0 4px var(--surface);
  transition: transform 0.3s ease;
}

.tl-item.is-present .tl-dot {
  background: var(--primary);
}

.tl-item:hover .tl-dot {
  transform: scale(1.2);
}

@media (min-width: 900px) {
  .tl-dot {
    left: 145px;
  }
}

.tl-when {
  padding-top: 10px;
  margin-bottom: 14px;
}

@media (min-width: 900px) {
  .tl-when {
    text-align: right;
    padding-right: 32px;
    margin-bottom: 0;
  }
}

.tl-when .period {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.tl-body {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-stroke);
  background: var(--surface-lowest);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tl-item:hover .tl-body {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 720px) {
  .tl-body {
    grid-template-columns: 38% 1fr;
  }
}

.tl-media {
  overflow: hidden;
  background: var(--surface-low);
  border-bottom: 1px solid var(--glass-stroke);
}

@media (min-width: 720px) {
  .tl-media {
    border-bottom: 0;
    border-right: 1px solid var(--glass-stroke);
  }
}

.tl-media svg,
.tl-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.tl-text {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.tl-text p {
  color: var(--secondary);
}

/* Experience list (plain timeline, no media) */

.exp-item {
  display: grid;
  gap: 12px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--glass-stroke);
}

.exp-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .exp-item {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }
}

.exp-org {
  color: var(--primary);
  font-size: 1.0625rem;
  margin-top: 4px;
}

.exp-item p.desc {
  color: var(--on-surface-variant);
  margin-top: 12px;
  max-width: 62ch;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--secondary);
  font-size: 0.9375rem;
}

.mini-list .when {
  flex: none;
  width: 84px;
  color: var(--outline);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* --- Project detail ----------------------------------------------------- */

.detail-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-lift);
  background: var(--surface-low);
}

.detail-media svg,
.detail-media img {
  width: 100%;
  height: auto;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-stroke);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 900px) {
  .meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.meta-grid dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.meta-grid dd {
  margin: 0;
  font-weight: 500;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1000px) {
  .split {
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
  }
}

.split-text {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--surface-low);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-soft);
}

.challenge-block {
  max-width: 940px;
  margin-inline: auto;
}

.challenge-block p {
  max-width: 68ch;
}

.split-text p + p {
  margin-top: 20px;
}

.split-text p {
  color: var(--secondary);
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-soft);
  min-height: 340px;
  background: var(--surface-low);
}

.split-media svg,
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .solution-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solution-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface-lowest);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.solution-card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary-fixed);
  color: var(--primary);
  margin-bottom: 28px;
}

.solution-card p {
  color: var(--secondary);
  margin-top: 12px;
}

/* A deliberate dark slab: it stays dark in both themes, like the device
   screens in the artwork, so the white labels always have contrast. */
.facts-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  background: #141821;
  color: #f3f0f2;
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 900px) {
  .facts-band {
    padding: 72px 64px;
  }
}

.facts-band::before,
.facts-band::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  filter: blur(90px);
}

.facts-band::before {
  width: 460px;
  height: 460px;
  top: -220px;
  right: -120px;
  background: rgba(0, 112, 235, 0.28);
}

.facts-band::after {
  width: 380px;
  height: 380px;
  bottom: -200px;
  left: -100px;
  background: rgba(173, 198, 255, 0.14);
}

.facts-band h2 {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 48px;
  color: #ffffff;
}

.facts-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 800px) {
  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts-grid > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.facts-grid > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 32px;
}

@media (min-width: 800px) {
  .facts-grid > div + div {
    border-top: 0;
    padding-top: 0;
  }
}

.fact-value {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #adc6ff;
  margin-bottom: 14px;
}

.fact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--glass-stroke);
}

/* --- Skills page -------------------------------------------------------- */

.skill-bento {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .skill-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .skill-bento {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skill-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-lowest);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.skill-card > * {
  position: relative;
  z-index: 1;
}

.skill-card .ghost-icon {
  position: absolute;
  right: -28px;
  bottom: -36px;
  z-index: 0;
  color: var(--on-surface);
  opacity: 0.05;
  transition: opacity 0.3s ease;
}

.skill-card:hover .ghost-icon {
  opacity: 0.09;
}

.skill-card p {
  color: var(--secondary);
  margin-top: 10px;
  max-width: 44ch;
}

.skill-card .chips {
  margin-top: 22px;
}

@media (min-width: 720px) {
  .skill-wide {
    grid-column: span 2;
  }
}

@media (min-width: 1080px) {
  .skill-tall {
    grid-row: span 2;
  }
}

.level-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

/* --- Contact ------------------------------------------------------------ */

.contact {
  padding-block: var(--section-gap);
  background: var(--surface-low);
  border-top: 1px solid var(--glass-stroke);
}

.contact-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.contact-head p {
  margin-top: 16px;
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: 320px 1fr;
  }
}

.contact-cards {
  display: grid;
  gap: 16px;
  align-content: start;
}

.contact-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-lowest);
  border: 1px solid var(--glass-stroke);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-card .icon {
  color: var(--primary);
  flex: none;
}

.contact-card .k {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}

.contact-card .v {
  font-weight: 600;
  word-break: break-word;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  padding-inline: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-stroke);
  background: var(--surface-lowest);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 88, 188, 0.1);
}

.form-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

form .field + .field,
form .form-row + .field,
form .field + .form-row {
  margin-top: 20px;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--secondary);
  max-width: 46ch;
}

/* --- Prose (legal pages) ------------------------------------------------ */

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.prose h3 {
  margin-top: 32px;
  margin-bottom: 10px;
}

.prose p,
.prose ul {
  color: var(--on-surface-variant);
}

.prose p + p {
  margin-top: 16px;
}

.prose ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-left: 20px;
  list-style: disc;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  flex: none;
  padding-block: 56px;
  background: var(--surface);
  border-top: 1px solid var(--glass-stroke);
}

.footer-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--outline);
}

@media (min-width: 900px) {
  .footer-copy {
    text-align: right;
  }
}

/* --- Reveal on scroll --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Utilities ---------------------------------------------------------- */

.stack-8 > * + * {
  margin-top: 8px;
}
.stack-16 > * + * {
  margin-top: 16px;
}
.stack-24 > * + * {
  margin-top: 24px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-48 {
  margin-bottom: 48px;
}
.center {
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
