:root {
  --bg: #090909;
  --ink: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.68);
  --soft: rgba(247, 244, 238, 0.13);
  --line: rgba(247, 244, 238, 0.18);
  --dark-line: rgba(10, 10, 10, 0.12);
  --paper: #ebe7df;
  --paper-ink: #121212;
  --pad: clamp(22px, 4.8vw, 86px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  transition: transform .25s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.grain { display: none !important; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad);
  color: #fff;
  transition: padding .35s var(--ease), background .35s var(--ease), backdrop-filter .35s var(--ease);
}

.site-header.is-scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  position: relative;
  z-index: 104;
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(150px, 13vw, 226px);
  height: auto;
}

.header-actions {
  position: relative;
  z-index: 104;
  display: flex;
  align-items: center;
  gap: 18px;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 12px;
  border-radius: 2px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.84);
  font-size: 12px;
  line-height: 1;
}

.region-pill::before {
  content: "◉";
  font-size: 8px;
  margin-right: 6px;
  opacity: .9;
}

.menu-toggle {
  width: 33px;
  height: 24px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 33px;
  background: #fff;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}

body.menu-open .menu-toggle span:first-child { transform: translateY(5px) rotate(42deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-5px) rotate(-42deg); }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  background: rgba(8, 8, 8, .96);
  backdrop-filter: blur(18px);
  transition: opacity .45s var(--ease);
}

body.menu-open .menu-panel {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel-inner {
  min-height: 100%;
  padding: 120px var(--pad) var(--pad);
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(320px, 840px);
  grid-template-rows: 1fr auto;
  gap: 30px;
}

.menu-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .02em;
}

.menu-links {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
}

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 19px 0 23px;
  font-size: clamp(44px, 7.2vw, 116px);
  line-height: .86;
  letter-spacing: -.065em;
  font-weight: 300;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.menu-links a:hover { transform: translateX(10px); }
.menu-links small { min-width: 28px; font-size: 12px; letter-spacing: 0; color: var(--muted); }

.menu-footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #0c0b0a;
  color: #fff;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block !important;
  background: transparent;
}

.hero-slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background: transparent;
  transition: opacity 900ms var(--ease), visibility 900ms var(--ease);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img,
.hero-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.02);
  animation: heroFloat 16s var(--ease) infinite alternate;
}

.hero-slide video {
  background: transparent;
}






.hero-shade { display: none !important; background: none !important; }

.hero-content {
  position: absolute;
  left: max(var(--pad), 12.2vw);
  bottom: 24.5vh;
  max-width: min(760px, 78vw);
}

.hero-kicker {
  margin: 0 0 16px;
  color: rgba(255,255,255,.74);
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: .01em;
}

.hero-title {
  margin: 0;
  max-width: 820px;
  font-size: clamp(46px, 5.2vw, 86px);
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -.055em;
}

.hero-button {
  margin-top: 32px;
  min-width: 238px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.03);
  font-size: 16px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.hero-button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
  color: #111;
}

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
}

.hero-progress::after {
  content: "";
  display: block;
  width: var(--hero-progress, 0%);
  height: 100%;
  background: rgba(255,255,255,.86);
  transition: width 160ms linear;
}

.hero-meta {
  position: absolute;
  right: var(--pad);
  bottom: 28px;
  display: flex;
  gap: 18px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.section {
  padding: clamp(86px, 12vw, 188px) var(--pad);
}

.intro {
  display: grid;
  grid-template-columns: 72px minmax(280px, 1.15fr) minmax(260px, .85fr);
  gap: clamp(24px, 5vw, 90px);
  align-items: start;
  background: var(--paper);
  color: var(--paper-ink);
}

.section-count,
.section-head span,
.about-copy span,
.contact-copy span {
  color: rgba(18,18,18,.52);
  font-size: 13px;
}

.intro h2,
.contact h2,
.about h2 {
  margin: 0;
  font-size: clamp(34px, 5.3vw, 82px);
  line-height: 1.02;
  letter-spacing: -.06em;
  font-weight: 300;
}

.intro-copy p,
.about-copy p,
.contact-copy p {
  margin: 0 0 22px;
  color: rgba(18,18,18,.68);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.5;
  letter-spacing: -.015em;
}

.work {
  background: #0a0a0a;
  color: var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(24px, 5vw, 90px);
  align-items: baseline;
  margin-bottom: clamp(36px, 6vw, 86px);
}

.work .section-head span,
.systems .section-head span {
  color: rgba(247,244,238,.52);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 96px);
  line-height: .95;
  letter-spacing: -.065em;
  font-weight: 300;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.2vw, 34px);
}

.project-card {
  grid-column: span 6;
  min-height: 440px;
}

.project-card.tall { grid-row: span 2; }
.project-card:nth-child(3) { grid-column: 7 / span 3; }
.project-card:nth-child(4) { grid-column: span 3; }

.project-card a {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #151515;
}

.project-card figure {
  margin: 0;
  min-height: 330px;
  overflow: hidden;
  background: #111;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;opacity: 1;
  transition: transform .75s var(--ease), opacity .45s var(--ease);
}

.project-card a:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.project-card div {
  padding: 24px 0 8px;
}

.project-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.project-card h3 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(25px, 2.35vw, 42px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 300;
}

.systems {
  background: #0f0f0f;
}

.system-list {
  border-top: 1px solid var(--line);
}

.system-row {
  display: grid;
  grid-template-columns: 72px minmax(260px, .9fr) minmax(300px, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: baseline;
  padding: clamp(22px, 3vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}

.system-row span {
  color: var(--muted);
  font-size: 13px;
}

.system-row h3 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 58px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.055em;
}

.system-row p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(16px, 1.28vw, 21px);
  line-height: 1.5;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
  gap: clamp(26px, 5vw, 86px);
  background: var(--paper);
  color: var(--paper-ink);
  align-items: stretch;
}

.about-media {
  min-height: 520px;
  overflow: hidden;
  background: #d8d0c4;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
}

.about-copy {
  align-self: end;
}

.about-copy h2 {
  margin: 18px 0 30px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 98px);
  background: #0a0a0a;
  color: var(--ink);
}

.contact-copy h2 { margin: 18px 0 28px; color: var(--ink); }
.contact-copy p { color: var(--muted); }
.contact-copy span { color: var(--muted); }
.contact-copy a { display: inline-block; margin-top: 8px; font-size: clamp(22px, 2.2vw, 38px); letter-spacing: -.04em; }

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form span {
  color: var(--muted);
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: rgba(247,244,238,.72);
}

.contact-form button {
  justify-self: start;
  margin-top: 12px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid rgba(247,244,238,.78);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}

.contact-form button:hover {
  background: var(--ink);
  color: var(--bg);
}

.hidden { display: none; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--pad);
  background: #0a0a0a;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-footer > a {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 24px;
  letter-spacing: -.055em;
  color: var(--ink);
}

.site-footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFloat {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -.8%, 0); }
}

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

@media (max-width: 980px) {
  .hero-content {
    left: var(--pad);
    bottom: 20vh;
    max-width: 84vw;
  }

  .hero-title { font-size: clamp(46px, 11vw, 78px); }

  .intro,
  .section-head,
  .system-row,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-count,
  .section-head span,
  .system-row span { margin-bottom: 4px; }

  .project-grid { grid-template-columns: 1fr; }
  .project-card,
  .project-card:nth-child(3),
  .project-card:nth-child(4) { grid-column: auto; min-height: auto; }

  .menu-panel-inner { grid-template-columns: 1fr; }
  .menu-footer { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .site-header { padding-top: 19px; }
  .region-pill { display: none; }

  .brand img { width: 150px; }

  .hero-content {
    bottom: 18vh;
  }

  .hero-kicker { margin-bottom: 12px; }
  .hero-title {
    font-size: clamp(45px, 13vw, 64px);
    line-height: 1.02;
  }

  .hero-button {
    min-width: 196px;
    min-height: 48px;
    font-size: 15px;
    margin-top: 26px;
  }

  .hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
}

  .hero-meta {
    left: var(--pad);
    right: auto;
    bottom: 22px;
    flex-direction: column;
    gap: 5px;
  }

  .section { padding-top: 78px; padding-bottom: 78px; }
  .about-media { min-height: 360px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
