:root {
  --bg: #050505;
  --ink: #f7f7f2;
  --muted: #b8b8ae;
  --soft: #1a1a18;
  --line: rgba(255, 255, 255, 0.14);
  --green: #9ccf54;
  --wood: #c9a15f;
  --max: 1440px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(0,0,0,.76), rgba(0,0,0,.28) 72%, transparent);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img {
  width: 116px;
  height: auto;
  filter: invert(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(5px); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.84);
}

.nav > a,
.nav .drop-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 27px 0;
  cursor: pointer;
}
.nav a:hover,
.drop:hover .drop-button,
.nav a.active { color: #fff; }

.drop { position: relative; }
.drop-menu {
  position: absolute;
  top: 66px;
  left: -22px;
  width: 228px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(10,10,9,.94);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.drop::after {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  top: 48px;
  height: 34px;
}
.drop:hover .drop-menu,
.drop:focus-within .drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.drop-menu a {
  display: block;
  padding: 12px 14px;
  color: rgba(255,255,255,.78);
  border-radius: 6px;
}
.drop-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #000;
}
.hero.compact { min-height: 78vh; align-items: center; }
.hero-video,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image.contain { object-fit: cover; }
.hero::after,
.video-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.36), rgba(0,0,0,.56)), radial-gradient(circle at 70% 30%, transparent, rgba(0,0,0,.5));
}
.hero-content,
.video-cta-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 150px clamp(22px, 5vw, 78px) 82px;
}
.eyebrow {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  margin: 0 0 18px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  font-size: clamp(52px, 8vw, 116px);
  line-height: .92;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.system-title { font-size: clamp(58px, 9vw, 128px); }
.lead {
  max-width: 720px;
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.35;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  color: #080808;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}
.button.secondary {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.button:hover { transform: translateY(-1px); }

.home-page .hero {
  align-items: center;
  isolation: isolate;
  min-height: 62vh;
}
.home-page .hero-video {
  object-position: center center;
  transform: scale(1.01);
}
.home-page .hero::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.42) 40%, rgba(0,0,0,.2) 72%, rgba(0,0,0,.44) 100%),
    linear-gradient(180deg, rgba(0,0,0,.48) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.58) 100%);
}
.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 58% 46%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 72%, rgba(0,0,0,.82) 100%);
  pointer-events: none;
}
.home-page .hero-content {
  width: min(1180px, 100%);
  padding: 114px clamp(24px, 5vw, 72px) 64px;
}
.home-page .hero .eyebrow {
  color: rgba(220, 239, 164, .92);
  margin-bottom: 18px;
}
.home-page .hero h1 {
  max-width: 620px;
  font-size: clamp(38px, 5.3vw, 70px);
  line-height: 1.08;
  font-weight: 760;
  text-wrap: balance;
  margin-bottom: 18px;
}
.home-page .hero .lead {
  max-width: 430px;
  color: rgba(255,255,255,.78);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.45;
}
.home-page .hero-actions {
  margin-top: 32px;
}
.home-page .hero .button {
  min-height: 44px;
  padding-inline: 20px;
  background: rgba(255,255,255,.92);
}
.home-page .hero .button.secondary {
  color: #fff;
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.42);
}

.statement-band {
  background: #f5f4ed;
  color: #050505;
  padding: clamp(34px, 5vw, 54px) clamp(22px, 6vw, 90px);
}
.statement-band p {
  max-width: 1260px;
  margin: auto;
  font-size: clamp(27px, 3.1vw, 48px);
  line-height: 1.16;
  font-weight: 760;
}

.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(76px, 11vw, 148px) clamp(22px, 5vw, 78px);
}
.home-page .section {
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: clamp(70px, 8vw, 104px);
  padding-bottom: clamp(70px, 8vw, 104px);
}
.home-page .section h2 {
  font-size: clamp(28px, 3.8vw, 54px);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}
.section h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  margin-bottom: 0;
  max-width: 860px;
}
.section-copy {
  color: var(--muted);
  max-width: 660px;
  font-size: 18px;
  line-height: 1.6;
}

.carousel {
  overflow: hidden;
  margin-inline: calc(clamp(22px, 5vw, 78px) * -1);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: move 42s linear infinite;
}
.carousel:hover .carousel-track { animation-play-state: paused; }
@keyframes move { to { transform: translateX(-50%); } }

.video-card {
  width: clamp(220px, 28vw, 390px);
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}
.home-page .carousel {
  margin-top: 34px;
  mask-image: none;
}
.home-page .video-card {
  width: clamp(260px, 29vw, 390px);
  background: #f5f4ed;
  border: 8px solid rgba(82,72,66,.72);
}
.video-card video { width: 100%; height: 100%; object-fit: cover; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split h2 { margin-bottom: 24px; }
.process-img {
  width: 100%;
  background: #f6f2e9;
  border-radius: 8px;
  padding: clamp(14px, 2vw, 28px);
}
.home-page .split {
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(30px, 5vw, 70px);
}
.home-page .process-img {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.home-page .quad-videos .video-card {
  width: auto;
  border-width: 4px;
}
.home-page .white-card {
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}
.home-page .white-card img {
  background: #f6f4ee;
  padding: 18px;
}
.white-card {
  background: #f6f4ee;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
}

.quad-videos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.video-cta {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #000;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0;
  max-width: 920px;
}
.step {
  border-top: 1px solid rgba(255,255,255,.32);
  padding-top: 16px;
  color: rgba(255,255,255,.84);
}
.step strong { color: var(--green); display: block; margin-bottom: 8px; }

.page-intro {
  padding: 160px clamp(22px, 5vw, 78px) 44px;
  width: min(var(--max), 100%);
  margin: auto;
}
.gallery-page .site-header {
  background: rgba(0,0,0,.9);
}
.gallery-page .reference-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  padding: 0;
}
.reference-masonry {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 148px 0 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.reference-masonry .tile {
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: #00f28d;
}
.reference-masonry .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reference-masonry .tile-tall { height: 430px; }
.reference-masonry .tile-mid { height: 310px; }
.reference-masonry .tile-overlay {
  border-radius: 14px;
  padding: 24px;
}
.page-intro h1 {
  font-size: clamp(52px, 8vw, 116px);
  margin-bottom: 18px;
}
.page-intro p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.masonry {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 58px) 110px;
  columns: 4 250px;
  column-gap: 18px;
}
.tile {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
  overflow: hidden;
  background: #121210;
  border: 1px solid rgba(255,255,255,.08);
}
.tile img {
  width: 100%;
  height: auto;
  transition: transform .45s ease, filter .45s ease;
}
.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  opacity: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0,0,0,.86));
  transition: opacity .25s ease;
}
.tile:hover img { transform: scale(1.035); filter: brightness(.72); }
.tile:hover .tile-overlay { opacity: 1; }
.tile h3 { margin: 0 0 6px; font-size: 22px; }
.tile p { margin: 0; color: rgba(255,255,255,.74); line-height: 1.4; }

.system-detail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.system-detail a,
.system-detail div {
  min-height: 220px;
  padding: 26px;
  background: #080808;
}
.system-detail h3 { margin-bottom: 14px; color: var(--green); }
.system-detail p { color: var(--muted); line-height: 1.55; }

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.1);
}

.coming-soon {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 22px;
  background:
    linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.82)),
    url("assets/images/linework-02.webp") center / cover;
}
.coming-soon h1 { margin-inline: auto; font-size: clamp(48px, 7vw, 96px); }
.coming-soon p { max-width: 700px; color: var(--muted); font-size: 20px; line-height: 1.55; }

.about-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.64), rgba(0,0,0,.64)),
    url("assets/images/linework-05.webp") center / cover fixed;
}
.about-reference {
  min-height: 100vh;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 152px clamp(34px, 6vw, 110px) 42px;
  display: grid;
  grid-template-rows: 1fr auto;
}
.about-statement {
  max-width: 1320px;
  color: rgba(255,255,255,.92);
  font-size: clamp(19px, 1.75vw, 27px);
  line-height: 1.48;
  font-weight: 700;
}
.about-statement p {
  margin-bottom: clamp(20px, 2.4vw, 34px);
}
.about-contact-block {
  align-self: end;
  justify-self: center;
  text-align: center;
  color: rgba(255,255,255,.96);
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.28;
  font-weight: 700;
}
.about-contact-block p { margin-bottom: 6px; }

.system-page .system-hero {
  min-height: 100vh;
  align-items: center;
}
.system-page .hero-video {
  object-fit: cover;
}
.system-page .hero::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.38), rgba(0,0,0,.64)),
    linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.62));
}
.system-page .hero-content {
  padding-bottom: 86px;
}
.system-page .section {
  max-width: 980px;
  padding-top: 72px;
  padding-bottom: 82px;
}
.system-page .section-copy {
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.35;
  max-width: 900px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(22px, 5vw, 78px);
  color: rgba(255,255,255,.58);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 900px) {
  .site-header { height: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 68px 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 22px 40px;
    background: rgba(0,0,0,.96);
    font-size: 22px;
  }
  body.nav-open .nav { display: flex; }
  .nav > a,
  .nav .drop-button { padding: 16px 0; text-align: left; }
  .drop-menu {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    padding: 0 0 6px 12px;
  }
  .hero-content, .video-cta-content { padding-bottom: 54px; }
  .section-header, .split, .split.reverse, .about-grid { grid-template-columns: 1fr; display: grid; }
  .quad-videos, .steps, .system-detail, .gallery-strip { grid-template-columns: 1fr 1fr; }
  .section-header { align-items: start; }
  .reference-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 36px); }
  .reference-masonry .tile-tall,
  .reference-masonry .tile-mid { height: 320px; }
  .about-reference { padding-top: 130px; }
}

@media (max-width: 620px) {
  .brand img { width: 92px; }
  h1 { font-size: 48px; }
  .statement-band p { font-size: 34px; line-height: 1.05; }
  .quad-videos, .steps, .system-detail, .gallery-strip { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .reference-masonry { grid-template-columns: 1fr; }
  .reference-masonry .tile-tall,
  .reference-masonry .tile-mid { height: 360px; }
  .site-footer { display: block; }
  .hero { min-height: 92vh; }
  .home-page .hero { min-height: 78vh; }
}
