:root {
  --bg: #0b0b0b;
  --black: #111111;
  --paper: #f5f5f3;
  --muted: #b8b8b8;
  --line: #2a2a2a;
  --gold: #d6c7a1;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body::selection {
  background: var(--gold);
  color: var(--bg);
}

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

video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.05), transparent 1px);
  background-size: 4px 4px, 7px 7px;
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--paper);
  transition: background 260ms ease, border-color 260ms ease, padding 260ms ease;
}

.site-header.scrolled {
  padding-block: 14px;
  border-bottom: 1px solid rgba(245, 245, 243, 0.1);
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  width: fit-content;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.34rem;
  line-height: 0.95;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  color: rgba(245, 245, 243, 0.74);
  font-size: 0.79rem;
}

.nav a,
.footer a {
  transition: color 180ms ease;
}

.nav a:hover,
.footer a:hover {
  color: var(--gold);
}

.header-cta {
  justify-self: end;
  color: var(--gold);
  font-size: 0.78rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  place-items: center;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: 0;
  filter: saturate(0.9) contrast(1.05);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.42) 0%, rgba(11, 11, 11, 0.1) 42%, rgba(11, 11, 11, 0.76) 100%),
    linear-gradient(90deg, rgba(11, 11, 11, 0.42), transparent 34%, rgba(11, 11, 11, 0.24));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
  padding-top: 10vh;
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 6.8vw, 6.3rem);
  line-height: 0.9;
}

.hero-copy {
  width: min(500px, 100%);
  margin: 0 auto 28px;
  color: rgba(245, 245, 243, 0.82);
  font-size: clamp(0.98rem, 1.25vw, 1.18rem);
  line-height: 1.55;
}

.hero-actions,
.footer div {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(245, 245, 243, 0.16);
  border-radius: 999px;
  font-size: 0.86rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
}

.button.secondary {
  background: rgba(245, 245, 243, 0.06);
  color: var(--paper);
  backdrop-filter: blur(12px);
}

.scroll-note {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 34px;
  z-index: 3;
  color: rgba(245, 245, 243, 0.5);
  font-size: 0.72rem;
  writing-mode: vertical-rl;
}

.section-pad {
  padding: clamp(72px, 9vw, 132px) clamp(20px, 4vw, 56px);
}

.statement {
  display: grid;
  min-height: 56vh;
  place-items: center;
  background: var(--bg);
}

.statement-inner {
  width: min(840px, 100%);
  margin-inline: auto;
  text-align: left;
}

.statement p {
  color: var(--muted);
  font-size: clamp(1.2rem, 2.4vw, 2.1rem);
  line-height: 1.35;
}

.statement h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.7vw, 4.8rem);
  line-height: 0.96;
}

.pain {
  background: #0d0d0d;
  border-block: 1px solid rgba(245, 245, 243, 0.08);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pain-card {
  min-height: 210px;
  padding: clamp(22px, 2.4vw, 34px);
  background: var(--bg);
}

.pain-card span {
  display: block;
  margin-bottom: 40px;
  color: var(--gold);
  font-size: 0.74rem;
}

.pain-card p {
  margin: 0;
  color: rgba(245, 245, 243, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
}

.section-heading {
  width: min(680px, 100%);
  margin-bottom: clamp(36px, 5vw, 68px);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 4.1rem);
  line-height: 0.98;
}

.solution {
  background: var(--black);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.solution-card,
.step {
  min-height: 250px;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--black);
}

.solution-card span,
.step span,
.service p {
  color: var(--gold);
  font-size: 0.78rem;
}

.solution-card h3,
.step h3,
.service h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.1vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
}

.solution-card p,
.step p,
.service span,
.final-content p {
  color: rgba(245, 245, 243, 0.68);
  line-height: 1.7;
}

.portfolio {
  background: #0d0d0d;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, 26vw);
  gap: 12px;
}

.project-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 243, 0.1);
  background: var(--black);
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.74));
}

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

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

.project-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
}

.project-card p {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.55vw, 2.55rem);
  font-weight: 400;
  line-height: 0.95;
}

.process {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.step {
  border-right: 1px solid var(--line);
  background: transparent;
}

.step:last-child {
  border-right: 0;
}

.services {
  background: var(--black);
}

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

.service {
  display: grid;
  grid-template-columns: 90px minmax(180px, 0.7fr) 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.service h3 {
  margin: 0;
}

.proposal {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
  background: var(--bg);
  border-top: 1px solid rgba(245, 245, 243, 0.08);
}

.proposal-copy {
  position: sticky;
  top: 120px;
}

.proposal-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 0.98;
}

.proposal-copy p:not(.eyebrow) {
  max-width: 460px;
  margin-bottom: 30px;
  color: rgba(245, 245, 243, 0.68);
  line-height: 1.7;
}

.proposal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(245, 245, 243, 0.12);
  background: rgba(17, 17, 17, 0.74);
}

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

.proposal-form .full {
  grid-column: 1 / -1;
}

.proposal-form span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.proposal-form input,
.proposal-form textarea,
.proposal-form select {
  width: 100%;
  border: 1px solid rgba(245, 245, 243, 0.12);
  border-radius: 0;
  background: rgba(11, 11, 11, 0.9);
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  padding: 15px 14px;
  transition: border-color 180ms ease, background 180ms ease;
}

.proposal-form textarea {
  resize: vertical;
  min-height: 120px;
}

.proposal-form input:focus,
.proposal-form textarea:focus,
.proposal-form select:focus {
  border-color: rgba(214, 199, 161, 0.78);
  background: #0b0b0b;
}

.proposal-form button {
  border-radius: 0;
  cursor: pointer;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(245, 245, 243, 0.58);
  font-size: 0.86rem;
  line-height: 1.6;
}

.final-cta {
  position: relative;
  display: grid;
  min-height: 78svh;
  overflow: hidden;
  place-items: center;
  padding: 80px 20px;
}

.final-video,
.final-video::after {
  position: absolute;
  inset: 0;
}

.final-video::after {
  content: "";
  background: rgba(11, 11, 11, 0.72);
}

.final-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  text-align: center;
}

.final-content h2 {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 4.6vw, 4.9rem);
  line-height: 0.96;
}

.final-content p {
  margin-bottom: 32px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: rgba(245, 245, 243, 0.58);
  font-size: 0.82rem;
}

.footer p {
  margin: 0;
}

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

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .solution-grid,
  .pain-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .proposal-copy {
    position: static;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .project-card,
  .project-card.tall,
  .project-card.wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proposal-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 18px;
  }

  .header-cta {
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  .hero-content {
    padding-top: 4vh;
    margin-inline: auto;
    text-align: center;
  }

  .hero-copy {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .scroll-note {
    display: none;
  }

  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
