:root {
  --ink: #101216;
  --muted: #5d6470;
  --line: #dce0e6;
  --paper: #f4f1ec;
  --panel: #ffffff;
  --accent: #d13f2f;
  --accent-dark: #9c2c22;
  --steel: #2f3a44;
  --track: #171b20;
  --shadow: 0 24px 60px rgba(16, 18, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(244, 241, 236, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(16, 18, 22, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 8px;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(209, 63, 47, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 132px clamp(20px, 5vw, 76px) 54px;
  overflow: hidden;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, var(--paper), rgba(244, 241, 236, 0));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--track);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 18, 22, 0.82), rgba(16, 18, 22, 0.26) 52%, rgba(16, 18, 22, 0.72)),
    linear-gradient(180deg, rgba(16, 18, 22, 0.45), rgba(16, 18, 22, 0.18) 42%, rgba(16, 18, 22, 0.64));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(4rem, 10vw, 9.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.34rem);
}

.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 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.44);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 5vw, 76px);
  bottom: 58px;
  display: grid;
  gap: 4px;
  width: min(330px, calc(100% - 40px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(16, 18, 22, 0.55);
  backdrop-filter: blur(18px);
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-panel strong {
  margin-bottom: 12px;
  color: #fff;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.intro {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.intro > p,
.split p,
.contact p {
  margin: 0;
  font-size: 1.05rem;
}

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

.stats article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.stats strong {
  display: block;
  color: var(--steel);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 750;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.project-showcase {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 84px max(20px, calc((100% - 1160px) / 2));
  color: var(--ink);
  background: #ebe7df;
}

.project-showcase::before {
  content: none;
}

.project-showcase .section-kicker,
.project-showcase h2,
.project-showcase .section-heading {
  position: relative;
  z-index: 1;
}

.project-heading {
  align-items: start;
}

.project-heading p:last-child {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.project-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
}

.project-card::before {
  content: none;
}

.project-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  width: auto;
  height: 3px;
  border: 0;
  background: var(--accent);
  transform: none;
}

.project-link-card {
  cursor: pointer;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.project-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 63, 47, 0.34);
  box-shadow: 0 18px 40px rgba(16, 18, 22, 0.1);
}

.project-card.featured {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.project-card.featured::after {
  width: auto;
}

.project-card.featured p,
.project-card.featured .project-meta,
.project-card p,
.project-card .project-meta {
  color: var(--muted);
}

.project-number {
  position: absolute;
  top: 40px;
  right: 24px;
  color: rgba(16, 18, 22, 0.08);
  font-size: clamp(3.8rem, 7vw, 6.4rem);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: 0;
}

.project-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-meta span {
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.project-card h3,
.skill-item h3,
.timeline h3 {
  position: relative;
  z-index: 1;
  margin: 20px 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.project-card p,
.skill-item p,
.timeline p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.image-gallery .section-heading p:last-child {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.larp-slider {
  display: grid;
  gap: 18px;
}

.larp-stage {
  position: relative;
  min-height: clamp(280px, 58vw, 680px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--track);
  box-shadow: var(--shadow);
}

.larp-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
}

.larp-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.larp-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111418;
}

.larp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
}

.slider-btn:hover {
  border-color: rgba(209, 63, 47, 0.42);
  color: var(--accent);
}

.slider-count {
  min-width: 74px;
  text-align: center;
  color: var(--muted);
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 5vw, 70px);
}

.split > div:first-child {
  position: sticky;
  top: 110px;
  align-self: start;
}

.split > div:first-child p:last-child {
  margin-top: 18px;
}

.skill-list {
  display: grid;
  gap: 12px;
}

.skill-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.skill-item > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.process {
  width: 100%;
  padding: 76px max(20px, calc((100% - 1160px) / 2));
  background: var(--track);
  color: #fff;
}

.process h2,
.process h3 {
  color: #fff;
}

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

.timeline article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 900;
}

.timeline p {
  color: rgba(255, 255, 255, 0.7);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact > div {
  max-width: 720px;
}

.contact p {
  margin-top: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

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

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

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(244, 241, 236, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: 94vh;
    padding-top: 116px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .intro,
  .split,
  .contact {
    grid-template-columns: 1fr;
    display: grid;
  }

  .split > div:first-child {
    position: static;
  }

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

  .project-grid {
    grid-template-rows: none;
  }

  .project-card.featured {
    grid-column: auto;
    grid-row: auto;
  }

  .section-heading,
  .contact,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    display: none;
  }

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

  .section {
    width: min(100% - 28px, 1160px);
    padding: 56px 0;
  }

  .stats article,
  .project-card,
  .skill-item,
  .timeline article {
    padding: 18px;
  }

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