:root {
  --black: #070707;
  --ink: #121212;
  --muted: #5f646c;
  --line: rgba(18, 18, 18, 0.12);
  --paper: #f7f7f5;
  --white: #ffffff;
  --cyan: #24d1c7;
  --amber: #f2b84b;
  --coral: #e05a4f;
  --green: #78b971;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--coral));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(7, 7, 7, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--black);
  background: var(--white);
  border-radius: 8px;
  font-size: 13px;
}

.brand-text {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a {
  padding: 10px 0;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.language-switch button {
  width: 44px;
  height: 34px;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.language-switch button.is-active {
  color: var(--black);
  background: var(--white);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-height: calc(88svh - 72px);
  padding: clamp(46px, 7vw, 86px) clamp(18px, 6vw, 84px) clamp(34px, 4vw, 56px);
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    image-set(
      url("assets/hero-command-center.webp") type("image/webp"),
      url("assets/hero-command-center.png") type("image/png")
    ) right center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.7) 38%, rgba(7, 7, 7, 0.2) 76%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.18) 0%, rgba(7, 7, 7, 0.92) 100%);
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero-title-row {
  display: block;
}

.hero-portrait-inline {
  display: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--black);
  background: var(--white);
}

.button.primary svg {
  width: 18px;
  height: 18px;
  margin-left: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 40px;
}

.hero-proof div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-proof strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1;
}

.hero-proof span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 13px;
}

.hero-visual {
  display: grid;
  gap: 14px;
  align-self: end;
}

.hero-portrait {
  position: relative;
  display: block;
  overflow: hidden;
  max-width: 360px;
  justify-self: end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 56%, rgba(7, 7, 7, 0.62) 100%),
    linear-gradient(90deg, rgba(7, 7, 7, 0.1), transparent 42%);
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.hero-panel {
  max-width: 430px;
  justify-self: end;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(120, 185, 113, 0.16);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 8, 8, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  font-size: 13px;
}

.brand-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.brand-chip img.mono-icon,
.contact-link img.mono-icon {
  filter: invert(1);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 6vw, 84px);
}

.intro-strip {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.about-copy h2,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.about-copy p,
.section-heading p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.about-copy p {
  max-width: 720px;
  margin-top: 28px;
}

.work-snapshot {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  color: var(--white);
  background: var(--black);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

.work-snapshot img,
.work-snapshot-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-snapshot img {
  object-fit: cover;
  object-position: 56% center;
}

.work-snapshot-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.08) 0%, rgba(7, 7, 7, 0.82) 100%),
    linear-gradient(90deg, rgba(7, 7, 7, 0.58), rgba(7, 7, 7, 0.16));
}

.work-snapshot-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.work-snapshot-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.work-snapshot-copy strong {
  display: block;
  max-width: 330px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.08;
}

.work-snapshot-copy p {
  max-width: 350px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.feature {
  min-height: 320px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--paper);
}

.feature-index {
  display: inline-flex;
  margin-bottom: 64px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.feature h3 {
  max-width: 420px;
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.feature p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.dark-section {
  color: var(--white);
  background: var(--black);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(24px, 6vw, 78px);
  align-items: end;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.section-heading.compact {
  align-items: start;
}

.dark-section .section-heading p {
  color: rgba(255, 255, 255, 0.62);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.project-tag {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-toggle {
  min-width: 96px;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.project-card h3 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.08;
}

.project-card p,
.project-details {
  color: rgba(255, 255, 255, 0.66);
}

.project-card p {
  margin: 0;
}

.project-details {
  margin-top: 18px;
}

.project-details ul {
  margin: 0;
  padding-left: 18px;
}

.project-details li + li {
  margin-top: 8px;
}

.project-result {
  margin-top: auto;
  padding-top: 28px;
}

.project-result span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-result strong {
  display: block;
  font-size: 15px;
}

.skills-section {
  background: var(--white);
}

.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.skill-tabs button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.skill-tabs button.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 750;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.skill-cloud span.is-dimmed {
  opacity: 0.22;
  transform: scale(0.98);
}

.timeline-section {
  background: var(--paper);
}

.timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 64px);
  padding: clamp(28px, 5vw, 52px);
  background: var(--white);
}

.timeline-date {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-content h3 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.role {
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 850;
}

.timeline-content p:last-child {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(36, 209, 199, 0.18), transparent 32%),
    linear-gradient(315deg, rgba(242, 184, 75, 0.15), transparent 34%),
    var(--black);
}

.contact-copy p {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.64);
}

.contact-panel {
  display: grid;
  gap: 10px;
}

.contact-link,
.copy-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  width: 100%;
  padding: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.contact-link img,
.copy-button svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.copy-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-link span,
.copy-button span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.contact-link small {
  display: block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.58);
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

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

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

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

@media (max-width: 1060px) {
  .hero,
  .section-heading,
  .contact-section,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 520px;
  }

  .hero-portrait,
  .hero-panel {
    max-width: 520px;
    justify-self: start;
  }

  .project-grid,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: auto;
  }

  .feature-index {
    margin-bottom: 32px;
  }

  .skill-tabs {
    justify-content: flex-start;
  }

  .work-snapshot {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 66px;
    padding: 10px 14px;
  }

  .brand-text {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding: 48px 18px 32px;
  }

  .hero-visual {
    display: none;
  }

  .hero-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 14px;
    align-items: end;
  }

  .hero-portrait-inline {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-portrait-inline img {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.25rem);
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 7, 7, 0.93), rgba(7, 7, 7, 0.72)),
      linear-gradient(180deg, rgba(7, 7, 7, 0.12), rgba(7, 7, 7, 0.95));
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
  }

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

  .section {
    padding: 58px 18px;
  }

  .work-snapshot {
    min-height: 300px;
  }

  .work-snapshot-copy {
    min-height: 300px;
    padding: 18px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .project-card {
    min-height: 0;
  }

  .project-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding-bottom: 44px;
  }
}

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