:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #111114;
  --muted: #5f626c;
  --line: #d9dce3;
  --panel: #ffffff;
  --panel-soft: #eceff4;
  --blue: #0066cc;
  --green: #1b7f5f;
  --red: #c23b3b;
  --gold: #a66f16;
  --shadow: 0 22px 70px rgba(23, 28, 38, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(245, 245, 247, 0.82);
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 58px;
  padding: 10px clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: #111114;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  height: 32px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 32px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(12px, 2vw, 28px);
}

.nav-links a {
  color: rgba(17, 17, 20, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.section-band {
  margin-inline: auto;
  max-width: var(--max);
  padding: clamp(72px, 9vw, 132px) clamp(20px, 4vw, 42px);
  width: 100%;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  min-height: 92svh;
  padding-top: 106px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact h2 {
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.hero h1 {
  font-size: clamp(4.4rem, 11vw, 9.4rem);
  max-width: 850px;
}

.hero-line {
  color: var(--muted);
  font-size: clamp(1.22rem, 2.2vw, 2.2rem);
  font-weight: 650;
  line-height: 1.18;
  margin: 28px 0 0;
  max-width: 710px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  text-decoration: none;
  transition: background 180ms ease, border 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #004f9f;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(17, 17, 20, 0.14);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(17, 17, 20, 0.34);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.icon-link,
.round-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 20, 0.12);
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: border 180ms ease, transform 180ms ease, background 180ms ease;
  width: 44px;
}

.icon-link svg,
.round-button svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.icon-link:hover,
.icon-link:focus-visible,
.round-button:hover,
.round-button:focus-visible {
  background: #fff;
  border-color: rgba(17, 17, 20, 0.3);
  transform: translateY(-1px);
}

.hero-visual {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 239, 244, 0.86)),
    linear-gradient(120deg, rgba(0, 102, 204, 0.12), rgba(27, 127, 95, 0.1));
  border: 1px solid rgba(17, 17, 20, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: clamp(420px, 56vw, 650px);
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  position: relative;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
}

.hero-visual::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(17, 17, 20, 0.08) 0 1px,
    transparent 1px 52px
  );
  inset: 0;
  opacity: 0.45;
}

.hero-visual::after {
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.44), transparent);
  height: 1px;
  left: -20%;
  top: 38%;
  width: 140%;
  animation: scanline 5s ease-in-out infinite;
}

@keyframes scanline {
  0%,
  100% {
    transform: translateY(-64px);
  }
  50% {
    transform: translateY(168px);
  }
}

.signal-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

.signal-grid span {
  aspect-ratio: 1.5;
  background: rgba(17, 17, 20, 0.05);
  border: 1px solid rgba(17, 17, 20, 0.1);
  border-radius: 6px;
}

.signal-grid span:nth-child(3n + 1) {
  background: rgba(0, 102, 204, 0.13);
}

.signal-grid span:nth-child(4n) {
  background: rgba(27, 127, 95, 0.12);
}

.architecture-map {
  align-content: center;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  inset: 22% clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px);
  position: absolute;
  z-index: 2;
}

.map-node {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 17, 20, 0.13);
  border-radius: 8px;
  color: #2c3038;
  display: flex;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 760;
  justify-content: center;
  min-height: 82px;
  padding: 16px;
  text-align: center;
}

.node-primary {
  background: #111114;
  color: #fff;
  grid-column: 1 / -1;
  min-height: 116px;
}

.intro-strip {
  border-bottom: 1px solid rgba(17, 17, 20, 0.1);
  border-top: 1px solid rgba(17, 17, 20, 0.1);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: auto;
  max-width: var(--max);
  padding: 0 clamp(20px, 4vw, 42px);
}

.intro-strip div {
  padding: 26px 0;
}

.intro-strip strong,
.intro-strip span {
  display: block;
}

.intro-strip strong {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  letter-spacing: 0;
  line-height: 1;
}

.intro-strip span {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.story-scroll {
  height: calc((var(--slide-count) + 1) * 100svh);
  position: relative;
}

.story-sticky {
  align-content: center;
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  height: 100svh;
  margin-inline: auto;
  max-width: var(--max);
  padding: 88px clamp(20px, 4vw, 42px) 42px;
  position: sticky;
  top: 0;
}

.section-heading {
  max-width: 860px;
}

.section-heading.narrow {
  max-width: 720px;
}

.section-heading h2,
.contact h2 {
  font-size: clamp(2.7rem, 6.4vw, 6.8rem);
}

.story-sticky .section-heading h2 {
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  max-width: 940px;
}

.story-window {
  overflow: hidden;
  width: 100%;
}

.story-track {
  display: flex;
  transition: transform 120ms linear;
  will-change: transform;
}

.journey-slide {
  align-items: stretch;
  background: var(--panel);
  border: 1px solid rgba(17, 17, 20, 0.11);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  flex: 0 0 100%;
  gap: clamp(20px, 5vw, 62px);
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  min-height: clamp(300px, 34vh, 380px);
  padding: clamp(22px, 4vw, 46px);
}

.company-logo {
  align-items: center;
  align-self: center;
  background: #f7f7f8;
  border: 1px solid rgba(17, 17, 20, 0.1);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.company-logo::after {
  color: var(--ink);
  content: attr(data-fallback);
  display: none;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.company-logo img {
  max-height: 60%;
  max-width: 68%;
  object-fit: contain;
}

.company-logo.is-fallback img {
  display: none;
}

.company-logo.is-fallback::after {
  display: block;
}

.slide-body {
  align-self: center;
}

.slide-step {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.journey-slide h3 {
  font-size: clamp(1.9rem, 3.7vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.slide-meta {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 700;
  margin: 18px 0;
}

.slide-body p:last-child,
.education-panel p:last-child {
  color: #30333a;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  margin: 0;
  max-width: 760px;
}

.story-controls {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(120px, 1fr) auto 44px;
}

.round-button {
  cursor: pointer;
  padding: 0;
}

.progress-shell {
  background: rgba(17, 17, 20, 0.12);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.progress-shell span {
  background: var(--ink);
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0.2);
  width: 100%;
}

.slide-counter {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
}

.credentials {
  border-top: 1px solid rgba(17, 17, 20, 0.1);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.chip-grid span {
  background: var(--panel);
  border: 1px solid rgba(17, 17, 20, 0.12);
  border-radius: 999px;
  color: #2e333b;
  font-size: clamp(0.96rem, 1.4vw, 1.15rem);
  font-weight: 720;
  padding: 12px 18px;
}

.skills {
  background: #111114;
  color: #fff;
  max-width: none;
}

.skills > * {
  margin-inline: auto;
  max-width: var(--max);
}

.skills .eyebrow {
  color: #9fd0ff;
}

.skills .section-heading h2 {
  color: #fff;
}

.skills-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
}

.skill-card {
  background: #1b1d22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-height: 280px;
  padding: 24px;
}

.skill-card:nth-child(2) {
  border-top: 4px solid var(--blue);
}

.skill-card:nth-child(3) {
  border-top: 4px solid var(--green);
}

.skill-card:nth-child(4) {
  border-top: 4px solid var(--gold);
}

.skill-card h3 {
  font-size: 1.25rem;
  margin: 0 0 18px;
}

.skill-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.education-panel {
  background: var(--panel);
  border: 1px solid rgba(17, 17, 20, 0.11);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  margin-top: 36px;
  max-width: 900px;
  padding: clamp(24px, 4vw, 42px);
}

.education-panel h3 {
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.08;
  margin: 0;
}

.contact {
  align-items: end;
  border-top: 1px solid rgba(17, 17, 20, 0.1);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  .intro-strip,
  .skills-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    gap: 12px;
  }

  .skill-card {
    min-height: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 56px;
  }

  .nav-links {
    display: none;
  }

  .section-band {
    padding-inline: 18px;
  }

  .hero {
    gap: 22px;
    min-height: auto;
    padding-bottom: 26px;
    padding-top: 84px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.8rem);
  }

  .hero-visual {
    min-height: 248px;
    padding: 16px;
  }

  .architecture-map {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    inset: 32% 16px 16px;
  }

  .map-node {
    font-size: 0.78rem;
    min-height: 42px;
    padding: 10px;
  }

  .node-primary {
    min-height: 56px;
  }

  .hero-line {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .social-row {
    margin-top: 18px;
  }

  .signal-grid {
    gap: 6px;
  }

  .intro-strip {
    padding-inline: 18px;
  }

  .story-scroll {
    height: auto;
  }

  .story-sticky {
    height: auto;
    padding: 74px 18px 48px;
    position: relative;
  }

  .story-window {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .story-track {
    transform: none !important;
  }

  .journey-slide {
    grid-template-columns: 1fr;
    min-height: auto;
    scroll-snap-align: start;
  }

  .company-logo {
    min-height: 160px;
  }

  .journey-slide h3,
  .section-heading h2,
  .contact h2 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .story-controls {
    display: none;
  }
}

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