:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --fg: #f2f1ec;
  --muted: #b7b6ae;
  --line: rgba(255, 255, 255, 0.2);
  --paper: #efeee8;
  --ink: #111111;
  --ink-soft: #565656;
  --accent: #d8d3c4;
  --ok: #42c076;
  --image-focal-x: 67%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: none;
}

body {
  font: 400 16px/1.45 "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
}

a {
  color: inherit;
}

.telemetry-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 2px;
  background: #ffffff;
}

.page-wrapper {
  width: 100%;
  margin: 0;
  padding-bottom: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  min-height: 72px;
  padding: 1.1rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(34, 22, 11, 0.54), rgba(34, 22, 11, 0));
  transition: background-color 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(19, 13, 9, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.brand {
  text-decoration: none;
  font: 600 0.84rem/1 "Inconsolata", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.top-nav a {
  text-decoration: none;
  font: 500 0.76rem/1 "Inconsolata", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.top-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  text-decoration: none;
  font: 500 0.76rem/1 "Inconsolata", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  opacity: 0.86;
}

.menu-toggle:hover {
  opacity: 1;
}

.menu-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.menu-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.72);
}

.hamburger-icon {
  display: inline-flex;
  width: 16px;
  height: 14px;
  position: relative;
}

.hamburger-icon span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.6px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}

.hamburger-icon span:nth-child(2) {
  top: 6px;
}

.hamburger-icon span:nth-child(3) {
  top: 12px;
}

.menu-toggle-btn.is-open .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle-btn.is-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.is-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-menu-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 84vw);
  z-index: 180;
  background: rgba(9, 9, 9, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5.8rem 1.1rem 1.2rem;
  transform: translateX(100%);
  transition: transform 210ms ease;
}

.site-menu-panel.is-open {
  transform: translateX(0);
}

.site-menu-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.site-menu-links a {
  display: block;
  text-decoration: none;
  padding: 0.78rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font: 600 0.76rem/1 "Inconsolata", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6f4ee;
}

.site-menu-links a:hover {
  color: #ffffff;
}

.site-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 170;
  border: 0;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.site-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 186, 108, 0.13),
      rgba(114, 73, 34, 0.28) 46%,
      rgba(20, 13, 9, 0.53) 79%,
      rgba(15, 10, 7, 0.6)
    ),
    radial-gradient(80% 90% at 75% 20%, rgba(255, 226, 176, 0.2), transparent 70%);
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--image-focal-x) center;
  filter: brightness(0.78) contrast(1.04) saturate(0.92);
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  width: min(1400px, calc(100% - 8vw));
  margin: 0 auto;
  padding: clamp(6rem, 13vh, 11rem) 0 clamp(2.5rem, 6vh, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.kicker,
.year,
.feed-label,
.widget-label {
  margin: 0;
  font: 600 0.76rem/1 "Inconsolata", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1;
}

h1 {
  margin-top: 1rem;
  max-width: 13ch;
  font-size: clamp(3rem, 9vw, 7.4rem);
  letter-spacing: -0.06em;
}

h1 span {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: #f3ede0;
}

.button,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.84rem 1.12rem;
  font: 600 0.74rem/1 "Inconsolata", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button {
  background: #ffffff;
  border-color: #ffffff;
  color: #101010;
}

.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.section {
  min-height: 100vh;
  padding: clamp(5rem, 12vh, 9rem) 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section h2 {
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  letter-spacing: -0.06em;
}

.projects,
.pattern,
.cta {
  background: var(--bg-soft);
  color: var(--fg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-grid,
.news-grid,
.brief-grid {
  margin-top: 0;
  display: grid;
  gap: 0;
}

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

.projects {
  padding: 0;
}

.projects h2 {
  display: none;
}

.project-card {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: #000;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 190, 113, 0.08) 20%, rgba(17, 11, 8, 0.47) 100%);
  z-index: 1;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-focal-x) center;
  filter: brightness(0.8) contrast(1.04) saturate(0.9);
}

.project-card h3,
.project-card .kicker,
.project-card .card-subline {
  position: relative;
  z-index: 2;
  max-width: 48ch;
  margin-left: clamp(1rem, 3vw, 2.2rem);
  margin-right: clamp(1rem, 3vw, 2.2rem);
  color: #fff;
}

.project-card h3 {
  margin-top: 0.6rem;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 7vw, 6rem);
  letter-spacing: -0.06em;
}

.project-title-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.project-title-link:hover {
  opacity: 0.92;
}

.project-title-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 6px;
}

.project-card .kicker {
  color: rgba(255, 255, 255, 0.78);
}

.project-card .card-subline {
  margin-top: 0.5rem;
  margin-bottom: 0;
  max-width: 34ch;
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.15vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: none;
  color: rgba(243, 237, 224, 0.95);
}

.project-pills {
  position: relative;
  z-index: 2;
  margin: 0 0 0.3rem;
  margin-left: clamp(1rem, 3vw, 2.2rem);
  margin-right: clamp(1rem, 3vw, 2.2rem);
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-pills li {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0.44rem 0.64rem;
  font: 600 0.66rem/1 "Inconsolata", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font: 600 0.72rem/1 "Inconsolata", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.project-card .text-link {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  margin-left: clamp(1rem, 3vw, 2.2rem);
  margin-right: clamp(1rem, 3vw, 2.2rem);
  color: rgba(255, 255, 255, 0.82);
}

.text-link:hover {
  opacity: 1;
}

.site-footer {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid rgba(17, 17, 17, 0.2);
  padding: 1.1rem 5vw;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.status-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 600 0.7rem/1 "Inconsolata", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #242424;
}

.status-live::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(66, 192, 118, 0.65);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.reveal-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-card.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .project-card {
    min-height: 88vh;
  }
}

@media (max-width: 820px) {
  html,
  body {
    scroll-snap-type: none;
  }

  .site-header {
    padding: 0.92rem 1rem;
  }

  .hero-copy {
    width: calc(100% - 2rem);
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  h1 {
    max-width: 12ch;
  }

  .section {
    min-height: auto;
    padding: 4rem 1rem;
  }

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

  .project-card {
    min-height: 84vh;
  }

  .project-card h3 {
    font-size: clamp(1.5rem, 8vw, 2.4rem);
  }

  .project-card .card-subline {
    font-size: clamp(0.95rem, 4.6vw, 1.25rem);
    line-height: 1.16;
  }

  .hero-image-wrap::before {
    background:
      linear-gradient(
        180deg,
        rgba(255, 186, 108, 0.1),
        rgba(108, 69, 33, 0.2) 45%,
        rgba(16, 10, 7, 0.42) 80%,
        rgba(14, 9, 6, 0.46)
      ),
      radial-gradient(80% 90% at 75% 20%, rgba(255, 226, 176, 0.16), transparent 70%);
  }

  .hero-image {
    filter: brightness(0.9) contrast(1.02) saturate(0.98);
  }

  .project-card::before {
    background: linear-gradient(180deg, rgba(255, 190, 113, 0.06) 18%, rgba(15, 10, 7, 0.38) 100%);
  }

  .project-card img {
    filter: brightness(0.92) contrast(1.02) saturate(0.98);
  }

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

  .status-live {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-live::before,
  .reveal-card,
  .button,
  .ghost,
  .project-card {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}
