:root {
  --orange: #ff4d0a;
  --orange-soft: #ff6a2a;
  --black: #050505;
  --black-2: #0b0b0d;
  --black-3: #111114;
  --white: #ffffff;
  --text: #d8d8d8;
  --muted: #8f8f96;
  --line: rgba(255, 255, 255, 0.1);
  --font-body: "Inter", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --max-width: 1120px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
}

body.menu-open {
  overflow: hidden;
}

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

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.025) 47% 48%, transparent 48%),
    var(--black);
}

.accent-block {
  position: absolute;
  z-index: 0;
  width: clamp(110px, 24vw, 390px);
  background: var(--orange);
  opacity: 0.82;
  pointer-events: none;
}

.accent-left {
  top: 0;
  left: 0;
  height: 46rem;
}

.accent-right {
  top: 26rem;
  right: 0;
  height: 44rem;
}

.site-header {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 40px), 960px);
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 28px;
  background: rgba(5, 5, 5, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  transition: top 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  top: 18px;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  background: rgba(255, 77, 10, 0.18);
}

.site-nav .nav-cta {
  margin-left: 6px;
  background: var(--orange);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.hero,
.section-grid,
.section-stack,
.stats,
.contact,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 760px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  margin: 0 auto;
  padding: 150px clamp(28px, 4vw, 70px) 90px;
  background: rgba(5, 5, 5, 0.97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 13px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-title {
  margin-bottom: 18px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-text,
.section-heading p,
.about-content p,
.service-card p,
.timeline-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.hero-actions,
.about-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

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

.button-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-outline:hover {
  border-color: var(--orange);
}

.button svg,
.nav-toggle svg,
.service-card svg,
.scroll-cue svg {
  width: 18px;
  height: 18px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 45% 35%, rgba(255, 77, 10, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(13, 13, 15, 0.35), rgba(255, 255, 255, 0.03));
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: min(92%, 520px);
  margin: 0 auto;
  filter: grayscale(1) contrast(1.1);
}

.line-art {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(19deg);
}

.line-one {
  top: 22%;
  right: 12%;
  width: 310px;
  height: 120px;
}

.line-two {
  top: 39%;
  right: 21%;
  width: 270px;
  height: 96px;
  transform: rotate(-18deg);
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 28px;
  z-index: 4;
  display: grid;
  width: 36px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--orange);
  border-radius: 20px;
  color: var(--orange);
}

.section-grid {
  width: min(calc(100% - 40px), 980px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin: 0 auto;
  padding: 80px clamp(24px, 4vw, 54px) 110px;
  background: var(--black);
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.experience-badge {
  position: absolute;
  bottom: -34px;
  left: -34px;
  width: 150px;
  min-height: 132px;
  padding: 18px;
  background: var(--black-3);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.experience-badge::before {
  display: block;
  width: 88px;
  height: 20px;
  margin-bottom: 12px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--white) 0 10px, transparent 10px 18px);
}

.experience-badge span {
  display: block;
  font-size: 2rem;
}

.skill-bars {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.skill-row div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
}

progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.16);
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--orange), #ffd35a);
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--orange), #ffd35a);
}

.section-stack {
  width: min(calc(100% - 40px), 980px);
  margin: 0 auto;
  padding: 90px clamp(20px, 4vw, 48px);
  background: var(--black);
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading .section-kicker {
  margin: 0 auto 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--black-2);
}

.service-card.active {
  background: var(--orange);
}

.service-card.active p,
.service-card.active h3,
.service-card.active svg {
  color: var(--white);
}

.service-card svg {
  margin-bottom: 24px;
  color: var(--orange);
}

.stats {
  width: min(calc(100% - 40px), 760px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 auto;
  padding: 34px clamp(18px, 3vw, 34px);
  background: var(--black);
}

.stat-item {
  display: grid;
  min-height: 108px;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--black-2);
  text-align: center;
}

.stat-item.featured {
  background: var(--orange);
}

.stat-item strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.portfolio-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black-2);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.portfolio-item div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.portfolio-item span,
.portfolio-note span,
.timeline-item span {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-note {
  grid-column: span 3;
  min-height: 190px;
  padding: 34px;
  background: var(--orange);
}

.portfolio-note span {
  color: var(--white);
}

.portfolio-note h3 {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.timeline-item {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--black-2);
}

.contact {
  margin-top: 50px;
  padding: 90px 20px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.84)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-kicker {
  margin: 0 auto 16px;
}

.contact-actions {
  justify-content: center;
}

.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
}

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

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

@media (max-width: 1000px) {
  .site-header {
    top: 24px;
  }

  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 128px;
  }

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

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

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

  .portfolio-note {
    grid-column: auto;
  }

  .experience-badge {
    left: 18px;
  }
}

@media (max-width: 760px) {
  .accent-block {
    opacity: 0.45;
  }

  .accent-left {
    width: 24vw;
    height: 28rem;
  }

  .accent-right {
    top: 34rem;
    width: 22vw;
    height: 28rem;
  }

  .site-header {
    width: calc(100% - 28px);
    min-height: 62px;
    padding: 0 12px 0 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .site-nav a {
    min-height: 44px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero,
  .section-grid,
  .section-stack,
  .stats,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    padding-bottom: 64px;
    padding-right: 20px;
    padding-left: 20px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.7rem);
  }

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

  .line-art {
    display: none;
  }

  .section-grid,
  .section-stack {
    padding: 64px 0;
  }

  .service-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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