:root {
  color-scheme: dark;
  --bg: #101412;
  --bg-elevated: #161d19;
  --bg-soft: #1d2621;
  --surface: rgba(14, 19, 16, 0.84);
  --surface-strong: rgba(8, 11, 9, 0.88);
  --text: #f2f6f3;
  --text-soft: #d0ddd6;
  --text-muted: #98aca1;
  --line: rgba(151, 190, 169, 0.18);
  --accent: #5fd39e;
  --accent-strong: #ef9c5d;
  --accent-soft: #8fd8bf;
  --danger: #d85f65;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  --radius: 8px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top, rgba(95, 211, 158, 0.05), transparent 28%),
    linear-gradient(180deg, #101412 0%, #111612 48%, #0d100e 100%);
  color: var(--text);
}

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

a {
  color: inherit;
}

p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

ul {
  padding-left: 1.2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #06100b;
  border-radius: var(--radius);
  z-index: 30;
  text-decoration: none;
}

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

.inner {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 12, 0.76);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font: inherit;
}

.hero,
.project-hero {
  position: relative;
  min-height: min(78vh, 48rem);
  display: flex;
  align-items: end;
  isolation: isolate;
  overflow: clip;
}

.hero::before,
.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 10, 0.86) 0%, rgba(8, 12, 10, 0.58) 50%, rgba(8, 12, 10, 0.8) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.03);
  z-index: -2;
}

.hero::after,
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 18, 0.15) 0%, rgba(16, 20, 18, 0.84) 100%);
  z-index: -1;
}

.hero-content,
.project-hero-inner {
  padding: clamp(5rem, 10vw, 7.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero-content {
  max-width: 44rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1,
.project-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.hero-copy {
  max-width: 42rem;
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-soft);
}

.site-note {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(143, 216, 191, 0.26);
  background: rgba(7, 11, 9, 0.54);
  color: var(--accent-soft);
  font-size: 0.95rem;
}

.hero-actions,
.contact-links,
.stacked-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.button-primary {
  background: var(--accent);
  color: #07100b;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #7ce0b3;
}

.button-secondary {
  background: rgba(12, 17, 14, 0.62);
  color: var(--text);
  border-color: rgba(143, 216, 191, 0.28);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(143, 216, 191, 0.48);
  background: rgba(16, 23, 18, 0.86);
}

.section {
  padding: clamp(3.8rem, 6vw, 6rem) 0;
}

.section-contrast {
  background: rgba(8, 11, 9, 0.42);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.about-copy h2,
.contact-layout h2,
.content-block h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 20ch;
}

.intro-strip {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.proof-grid,
.skill-groups,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

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

.proof-grid article,
.skill-group,
.content-block,
.project-card-link {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-grid article,
.skill-group,
.content-block {
  padding: 1.4rem;
}

.proof-grid h2 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.proof-grid p,
.skill-group p,
.about-copy p,
.content-block p,
.content-block li,
.project-summary,
.project-copy li,
.meta-grid span,
.gallery-grid figcaption {
  color: var(--text-soft);
}

.proof-kicker,
.project-label,
.meta-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.project-card {
  min-height: 100%;
}

.project-card-featured {
  grid-column: span 2;
}

.project-card-link {
  height: 100%;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  padding: 0;
}

.project-card-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-copy {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.project-copy h3 {
  font-size: 1.55rem;
}

.project-points,
.detail-list {
  display: grid;
  gap: 0.7rem;
}

.project-points li::marker,
.detail-list li::marker {
  color: var(--accent-strong);
}

.text-link {
  width: fit-content;
  padding: 0;
  min-height: auto;
  color: var(--accent-soft);
}

.skill-groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-group h3,
.content-block h2,
.content-block h3 {
  margin-bottom: 0.85rem;
}

.about-layout,
.contact-layout,
.project-layout {
  display: grid;
  gap: 1rem;
}

.about-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 1fr);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: end;
}

.site-footer {
  padding: 1.5rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.project-page .section {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 60rem;
}

.meta-grid div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.05rem;
}

.project-layout {
  grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 0.95fr);
  align-items: start;
}

.project-main {
  display: grid;
  gap: 1rem;
}

.project-side {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}

.project-reel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-reel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: reel-cycle 12s infinite;
}

.project-reel img:nth-child(1) {
  animation-delay: 0s;
}

.project-reel img:nth-child(2) {
  animation-delay: 4s;
}

.project-reel img:nth-child(3) {
  animation-delay: 8s;
}

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

.gallery-grid figure {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.gallery-grid figcaption {
  font-size: 0.95rem;
}

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

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

@keyframes reel-cycle {
  0%,
  28% {
    opacity: 1;
    transform: scale(1);
  }

  33%,
  95% {
    opacity: 0;
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .proof-grid,
  .project-grid,
  .skill-groups,
  .gallery-grid,
  .meta-grid,
  .about-layout,
  .contact-layout,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: span 1;
  }

  .project-side {
    position: static;
  }
}

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  .site-header .inner {
    min-height: 4rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.25rem 0 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .project-hero {
    min-height: 34rem;
  }

  .hero h1,
  .project-hero h1 {
    max-width: 11ch;
  }

  .hero-content,
  .project-hero-inner {
    padding-top: 4.5rem;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .hero-actions,
  .contact-links,
  .stacked-links {
    flex-direction: column;
  }

  .project-copy {
    padding: 1.1rem;
  }
}

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

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