/* ===== Tokens ===== */
:root,
html[data-theme="dark"] {
  --yellow: #f0c419;
  --yellow-soft: #f7d84a;
  --yellow-dim: rgba(240, 196, 25, 0.12);
  --black: #070707;
  --ink: #0c0c0c;
  --charcoal: #141414;
  --gray-900: #222;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #b8b8b8;
  --gray-100: #ececec;
  --gray-50: #f4f4f4;
  --white: #fafafa;
  --line: rgba(240, 196, 25, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --bg: #080808;
  --bg-elevated: rgba(20, 20, 20, 0.72);
  --bg-muted: rgba(18, 18, 18, 0.55);
  --bg-alt: linear-gradient(180deg, rgba(240, 196, 25, 0.03), transparent 40%, rgba(255, 255, 255, 0.02));
  --bg-footer: #050505;
  --bg-header: rgba(8, 8, 8, 0.78);
  --bg-nav-mobile: rgba(8, 8, 8, 0.96);
  --text: #e8e8e8;
  --text-strong: #fafafa;
  --text-muted: #a8a8a8;
  --text-soft: #6e6e6e;
  --circuit-a: rgba(240, 196, 25, 0.14);
  --circuit-b: rgba(120, 120, 120, 0.12);
  --circuit-base: linear-gradient(165deg, #0d0d0d 0%, #080808 45%, #101010 100%);
  --circuit-grid: rgba(240, 196, 25, 0.055);
  --glass: blur(16px) saturate(1.2);
  --radius: 4px;
  --radius-lg: 12px;
  --font-display: "Exo 2", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --max: 1100px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --yellow: #c99200;
  --yellow-soft: #d4a017;
  --yellow-dim: rgba(201, 146, 0, 0.12);
  --black: #111111;
  --ink: #1a1a1a;
  --charcoal: #ffffff;
  --gray-900: #e8e8e8;
  --gray-700: #6b6b6b;
  --gray-500: #6a6a6a;
  --gray-300: #4a4a4a;
  --gray-100: #1f1f1f;
  --gray-50: #f7f7f7;
  --white: #111111;
  --line: rgba(201, 146, 0, 0.28);
  --line-soft: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  --bg: #f0f0f0;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --bg-muted: rgba(255, 255, 255, 0.7);
  --bg-alt: linear-gradient(180deg, #e8e8e8, #f2f2f2);
  --bg-footer: #e4e4e4;
  --bg-header: rgba(240, 240, 240, 0.88);
  --bg-nav-mobile: rgba(255, 255, 255, 0.98);
  --text: #1f1f1f;
  --text-strong: #0f0f0f;
  --text-muted: #4a4a4a;
  --text-soft: #6a6a6a;
  --circuit-a: rgba(201, 146, 0, 0.16);
  --circuit-b: rgba(0, 0, 0, 0.05);
  --circuit-base: linear-gradient(165deg, #f6f6f6 0%, #efefef 45%, #eaeaea 100%);
  --circuit-grid: rgba(0, 0, 0, 0.045);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

/* ===== Futuristic background ===== */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 12% -5%, var(--circuit-a), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 15%, var(--circuit-b), transparent 50%),
    radial-gradient(ellipse 40% 30% at 70% 90%, var(--circuit-a), transparent 60%),
    var(--circuit-base);
}

.circuit-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--circuit-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--circuit-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 15%, transparent 70%);
  animation: grid-drift 40s linear infinite;
}

.circuit-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent 0,
      transparent 80px,
      rgba(240, 196, 25, 0.025) 80px,
      rgba(240, 196, 25, 0.025) 81px
    );
}

.circuit-bg__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(240, 196, 25, 0.04),
    transparent
  );
  animation: scan-move 9s ease-in-out infinite;
}

@keyframes grid-drift {
  to {
    background-position: 56px 56px;
  }
}

@keyframes scan-move {
  0%,
  100% {
    top: -30%;
  }
  50% {
    top: 85%;
  }
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: var(--bg-header);
  backdrop-filter: var(--glass);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  position: relative;
}

.nav__brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.55rem;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  vertical-align: 1px;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color 0.25s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

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

.nav__links a.is-active::after,
.nav__links a:hover::after {
  transform: scaleX(1);
}

.theme-toggle,
.nav__toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: var(--glass);
  color: var(--yellow);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.theme-toggle:hover {
  border-color: var(--yellow);
  transform: translateY(-1px);
}

.theme-toggle__icon {
  font-size: 1.15rem;
  position: absolute;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

html[data-theme="dark"] .theme-toggle__icon--moon,
html[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
  pointer-events: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun,
html[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--yellow);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  position: relative;
}

.hero__glow {
  position: absolute;
  width: min(560px, 85vw);
  height: min(560px, 85vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 25, 0.16), transparent 68%);
  top: 14%;
  left: 42%;
  transform: translateX(-50%);
  pointer-events: none;
  transition: transform 0.4s var(--ease);
}

.hero__content {
  max-width: var(--max);
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__photo-wrap {
  position: relative;
  width: clamp(190px, 28vw, 270px);
  aspect-ratio: 1;
  padding: 14px;
}

.hero__photo-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(
    12% 0%,
    88% 0%,
    100% 12%,
    100% 88%,
    88% 100%,
    12% 100%,
    0% 88%,
    0% 12%
  );
  border: 2px solid var(--yellow);
  background: var(--charcoal);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}

.hero__photo-wrap:hover .hero__photo {
  filter: grayscale(0) contrast(1.08);
  transform: scale(1.04);
}

.hero__photo-ring {
  position: absolute;
  inset: 2px;
  border: 1px dashed rgba(240, 196, 25, 0.4);
  clip-path: polygon(
    12% 0%,
    88% 0%,
    100% 12%,
    100% 88%,
    88% 100%,
    12% 100%,
    0% 88%,
    0% 12%
  );
  animation: spin-slow 24s linear infinite;
  pointer-events: none;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.hero__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--yellow);
  border-style: solid;
  pointer-events: none;
}

.hero__corner--tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.hero__corner--tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.hero__corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.hero__corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.hero__role {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--yellow-dim);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.hero__status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(240, 196, 25, 0.5);
  animation: status-pulse 2.2s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 196, 25, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(240, 196, 25, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 196, 25, 0);
  }
}

.hero__name {
  font-size: clamp(2.8rem, 7.5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 0.85rem;
  background: linear-gradient(120deg, var(--text-strong) 40%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .hero__name {
  background: linear-gradient(120deg, #111 35%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 600;
  color: var(--yellow-soft);
  margin-bottom: 1rem;
  min-height: 1.5em;
  border-left: 3px solid var(--yellow);
  padding-left: 0.9rem;
}

.hero__tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--yellow);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__lead {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.15rem;
}

.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  margin-bottom: 1.75rem;
}

.hero__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.25s;
}

.hero__contacts a:hover {
  color: var(--yellow);
}

.hero__contacts i {
  font-size: 1.15rem;
  color: var(--yellow);
}

.btn-show-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--black);
  background: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.25s, transform 0.25s var(--ease), color 0.25s;
}

.btn-show-all:hover {
  background: var(--yellow-soft);
  transform: translateY(-1px);
}

.btn-show-all[aria-pressed="true"] {
  background: transparent;
  color: var(--yellow);
}

.btn-show-all i {
  color: inherit;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

.btn--ghost {
  border: 1px solid rgba(240, 196, 25, 0.4);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--yellow-dim);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--yellow);
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== Sections ===== */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 1.5rem;
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 42rem;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--yellow);
}

.section__toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.section__toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 6px;
}

.section__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.section__title-row .section__title {
  margin-bottom: 0;
}

.section__caret {
  font-size: 1.35rem;
  color: var(--yellow);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}

.accordion.is-open .section__caret {
  transform: rotate(180deg);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 0.65rem;
}

.section__desc {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ===== Accordion cascade ===== */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.55s var(--ease),
    opacity 0.35s var(--ease),
    visibility 0.35s;
  transition-delay: 0.2s, 0.2s, 0.2s;
}

.accordion.is-open .accordion-panel {
  max-height: 6000px;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0s, 0s;
}

.accordion-panel__inner {
  min-height: 0;
  padding-bottom: 0.25rem;
}

.cascade-item {
  opacity: 0;
  transform: translateY(-22px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.45s var(--ease);
  transition-delay: 0s;
}

.accordion.is-open .cascade-item {
  opacity: 1;
  transform: translateY(0);
}

.accordion.is-open .cascade-item:nth-child(1) { transition-delay: 0.04s; }
.accordion.is-open .cascade-item:nth-child(2) { transition-delay: 0.1s; }
.accordion.is-open .cascade-item:nth-child(3) { transition-delay: 0.16s; }
.accordion.is-open .cascade-item:nth-child(4) { transition-delay: 0.22s; }
.accordion.is-open .cascade-item:nth-child(5) { transition-delay: 0.28s; }
.accordion.is-open .cascade-item:nth-child(6) { transition-delay: 0.34s; }
.accordion.is-open .cascade-item:nth-child(7) { transition-delay: 0.4s; }
.accordion.is-open .cascade-item:nth-child(8) { transition-delay: 0.46s; }

.accordion:not(.is-open) .cascade-item:nth-child(1) { transition-delay: 0.42s; }
.accordion:not(.is-open) .cascade-item:nth-child(2) { transition-delay: 0.36s; }
.accordion:not(.is-open) .cascade-item:nth-child(3) { transition-delay: 0.3s; }
.accordion:not(.is-open) .cascade-item:nth-child(4) { transition-delay: 0.24s; }
.accordion:not(.is-open) .cascade-item:nth-child(5) { transition-delay: 0.18s; }
.accordion:not(.is-open) .cascade-item:nth-child(6) { transition-delay: 0.12s; }
.accordion:not(.is-open) .cascade-item:nth-child(7) { transition-delay: 0.06s; }
.accordion:not(.is-open) .cascade-item:nth-child(8) { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .accordion-panel,
  .cascade-item,
  .section__caret {
    transition: none !important;
  }

  .cascade-item {
    opacity: 1;
    transform: none;
  }
}

/* ===== Timeline ===== */
.timeline {
  display: grid;
  gap: 1.35rem;
  position: relative;
  padding-left: 0.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--yellow),
    rgba(240, 196, 25, 0.35),
    rgba(240, 196, 25, 0.08)
  );
}

.timeline__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.timeline__marker {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  backdrop-filter: var(--glass);
  border: 1px solid rgba(240, 196, 25, 0.4);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  transition: background 0.3s, transform 0.3s var(--ease), color 0.3s;
}

.timeline__item:hover .timeline__marker {
  background: var(--yellow);
  color: var(--black);
  transform: scale(1.08) rotate(8deg);
}

.timeline__card {
  position: relative;
  background: var(--bg-elevated);
  backdrop-filter: var(--glass);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--yellow);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.timeline__card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, transparent 50%, rgba(240, 196, 25, 0.35) 50%);
}

.timeline__item:hover .timeline__card {
  border-color: rgba(240, 196, 25, 0.35);
  transform: translateX(6px);
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.4rem;
}

.timeline__meta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-strong);
}

.timeline__meta time,
.edu__period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--yellow);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.timeline__org {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.timeline__text {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--yellow-dim);
  border: 1px solid rgba(240, 196, 25, 0.25);
  padding: 0.3rem 0.6rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* ===== Education ===== */
.education {
  display: grid;
  gap: 0.9rem;
}

.edu {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line-soft);
  background: var(--bg-muted);
  backdrop-filter: var(--glass);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.edu:hover {
  border-color: rgba(240, 196, 25, 0.45);
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.edu__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--black);
  background: var(--yellow);
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
}

.edu__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.25rem;
}

.edu__top h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-strong);
}

.edu__school {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.edu__detail {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  background: var(--yellow);
  padding: 0.35rem 0.7rem;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

/* ===== Projects ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.project {
  position: relative;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
  backdrop-filter: var(--glass);
  cursor: default;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240, 196, 25, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.project::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: 0.75;
}

.project:hover,
.project:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(240, 196, 25, 0.45);
  box-shadow: var(--shadow);
  outline: none;
}

.project:hover::before,
.project:focus-visible::before {
  opacity: 1;
}

.project__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--yellow);
  background: var(--yellow-dim);
  margin-bottom: 1rem;
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.project:hover .project__icon {
  background: var(--yellow);
  color: var(--black);
  transform: rotate(-8deg);
}

.project h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.65rem;
}

.project p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  background: var(--bg-footer);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), transparent);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer__info {
  display: grid;
  gap: 0.65rem;
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer__contacts a:hover {
  color: var(--yellow);
}

.footer strong {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s;
}

.footer__top:hover {
  color: var(--yellow);
}

.accordion .section__header.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__contacts {
    justify-content: center;
  }

  .hero__role {
    justify-content: center;
  }

  .hero__tagline {
    border-left: none;
    padding-left: 0;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 0.65rem;
    display: inline-block;
  }

  .section__header {
    padding-left: 0.85rem;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-nav-mobile);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    display: block;
    padding: 1rem 1.5rem;
  }

  .nav__links a::after {
    display: none;
  }

  .edu {
    grid-template-columns: 1fr;
  }

  .edu__icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .timeline__item {
    grid-template-columns: 40px 1fr;
    gap: 0.9rem;
  }

  .timeline__marker {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .timeline::before {
    left: 19px;
  }
}

@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;
  }

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

  .circuit-bg__scan {
    display: none;
  }
}
