@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0f14;
  --bg-elev: #0e131a;
  --surface: #10161e;
  --surface-2: #151c26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eef4;
  --text-muted: #93a1b0;
  --text-dim: #6b7a8a;
  --accent: #22d3ee;
  --accent-soft: #67e8f9;
  --accent-ink: #04181d;
  --accent-dim: rgba(34, 211, 238, 0.08);
  --accent-border: rgba(34, 211, 238, 0.32);
  --ok: #34d399;
  --ok-soft: #6ee7b7;
  --err: #fca5a5;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 14px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

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

::selection {
  background: rgba(34, 211, 238, 0.28);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0.75rem;
  z-index: 300;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

[hidden] {
  display: none !important;
}

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

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 15, 20, 0.88);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-nav a {
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-nav {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.lang-nav a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.lang-nav a + a::before {
  content: "/";
  margin-inline: 0.5rem;
  color: var(--text-dim);
  opacity: 0.45;
}

.lang-nav a:hover {
  color: var(--text);
}

.lang-nav a[aria-current="true"] {
  color: var(--accent);
}

.lang-nav-panel {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}

.nav-toggle span:nth-child(2) {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 20px;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
}

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  left: -200px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.13) 0%, rgba(34, 211, 238, 0) 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 80% at 30% 35%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 30% 35%, #000 25%, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  margin: 0 0 1.5rem;
  padding: 0.38rem 0.85rem;
  line-height: 1.5;
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.07);
  color: var(--ok-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero-role {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-muted);
}

.hero-tags {
  margin: -0.75rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.cta-note {
  max-width: 54ch;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero .cta-note {
  margin: 0 0 1.5rem;
}

.contact-copy .cta-note {
  margin: 1.1rem 0 0;
}

.hero-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hero-photo {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 440px);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 12% -6% -8% -6%;
  background: radial-gradient(ellipse at 65% 60%, rgba(34, 211, 238, 0.14), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-photo picture {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.tick {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--accent);
  opacity: 0.55;
  pointer-events: none;
}

.tick-tl {
  top: -7px;
  left: -7px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.tick-tr {
  top: -7px;
  right: -7px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.tick-bl {
  bottom: -7px;
  left: -7px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.tick-br {
  bottom: -7px;
  right: -7px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 2rem clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--border);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-value {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-value .unit {
  color: var(--accent);
}

.stat-label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

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

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--accent-border);
  border-radius: 11px;
  background: var(--accent-dim);
  color: var(--accent);
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.card-wide .card-icon {
  margin-bottom: 0;
  flex: none;
}

.card-wide-body {
  min-width: 0;
}

.card-wide p {
  max-width: 72ch;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s ease;
}

.card-link svg {
  width: 14px;
  height: 14px;
}

.card-link:hover {
  color: var(--accent-soft);
}

.diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
}

.diagram-panel {
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
  border-radius: var(--radius);
}

.diagram-legacy {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.012);
}

.diagram-modern {
  border: 1px solid var(--accent-border);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(34, 211, 238, 0.01));
  box-shadow: 0 24px 60px -40px rgba(34, 211, 238, 0.55);
}

.panel-label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.diagram-modern .panel-label {
  color: var(--accent);
}

.panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.panel-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.15rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.panel-list li:last-child {
  border-bottom: 0;
}

.diagram-legacy .panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 5px;
  height: 5px;
  border: 1px solid var(--text-dim);
  transform: rotate(45deg);
}

.diagram-modern .panel-list li {
  color: var(--text);
}

.diagram-modern .panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}

.diagram-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding-block: 0.5rem;
}

.flow-line {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #56657a 0%, var(--accent) 100%);
}

.flow-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.flow-dot {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 1px solid currentColor;
}

.flow-dot-a {
  left: 38%;
  color: #56657a;
}

.flow-dot-b {
  left: 74%;
  color: var(--accent);
}

.connector-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

.diagram-note {
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  padding: 1.35rem clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 78ch;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(34, 211, 238, 0.04);
  color: var(--text-muted);
  font-size: 1rem;
}

.diagram-note strong {
  color: var(--text);
  font-weight: 600;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 2.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  opacity: 0.75;
  transform: rotate(45deg);
}

.callout {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(34, 211, 238, 0.015));
}

.callout-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.callout p:last-child {
  margin: 0;
  max-width: 70ch;
  color: var(--text-muted);
}

.timeline {
  position: relative;
  margin-left: 5px;
  padding-left: clamp(1.5rem, 3vw, 2.25rem);
  border-left: 1px solid var(--border);
}

.job {
  position: relative;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.job:last-child {
  padding-bottom: 0;
}

.job::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.5rem, 3vw, 2.25rem) * -1 - 5px);
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.job-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-company {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.job-dates {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.job-role {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.95rem;
  color: var(--accent);
}

.job-summary {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.job-points {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.job-points li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.job-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--text-dim);
}

.job-tags {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.cv-cta {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.tech-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.85rem;
  color: var(--text);
}

.chips-legacy li {
  border-style: dashed;
  background: transparent;
  color: var(--text-muted);
}

.tech-note {
  margin: 1.35rem 0 0;
  max-width: 46ch;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.about-lead {
  margin: 0 0 1.1rem;
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  color: var(--text);
}

.about-copy p:not(.about-lead) {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
}

.about-facts {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-facts dl {
  margin: 0;
}

.about-facts div {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.about-facts div:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.about-facts dt {
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-facts dd {
  margin: 0;
  font-size: 0.95rem;
}

.about-facts .available {
  color: var(--ok-soft);
}

.quiz {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.quiz-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.quiz-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.quiz-item:first-child {
  padding-top: 0;
}

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

.quiz-question {
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.quiz-options {
  display: flex;
  gap: 0.55rem;
}

.quiz-options label {
  position: relative;
  display: inline-flex;
}

.quiz-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.quiz-options span {
  display: inline-flex;
  justify-content: center;
  min-width: 68px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quiz-options label:hover span {
  border-color: var(--accent-border);
  color: var(--text);
}

.quiz-options input:checked + span {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-soft);
}

.quiz-options input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.quiz-result {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.quiz-result.is-engaged {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.05), var(--surface));
}

.quiz-result-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.quiz-result-text {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.quiz-result.is-engaged .quiz-result-text {
  color: var(--text);
}

.quiz-result .btn {
  margin-top: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-links {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-links li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-links .mono {
  min-width: 86px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-links a {
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-location {
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.contact-form {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.03);
}

.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.9rem 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-status.is-ok {
  color: var(--ok-soft);
}

.form-status.is-err {
  color: var(--err);
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: start;
}

.footer-brand {
  margin: 0 0 0.2rem;
  font-weight: 600;
}

.footer-role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav a {
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

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

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }

  .about-grid,
  .quiz,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quiz-result {
    position: static;
  }

  .about-facts {
    max-width: 480px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .lang-nav-header {
    display: none;
  }

  .lang-nav-panel {
    display: flex;
    padding-top: 1rem;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 1.5rem 1.25rem;
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .diagram {
    grid-template-columns: minmax(0, 1fr);
  }

  .diagram-connector {
    gap: 0.75rem;
    padding: 0.5rem 0;
  }

  .flow-line {
    width: 1px;
    height: 84px;
    background: linear-gradient(180deg, #56657a 0%, var(--accent) 100%);
  }

  .flow-line::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--accent);
    border-bottom: 0;
  }

  .flow-dot {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .flow-dot-a {
    top: 38%;
  }

  .flow-dot-b {
    top: 74%;
  }

}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-photo {
    justify-self: start;
    width: min(100%, 380px);
  }

  .cards,
  .tech-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .problem-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-pill .dot {
    animation: none;
  }

  .btn,
  .card,
  .site-nav,
  .nav-toggle span {
    transition: none;
  }
}
