:root {
  color-scheme: dark;
  --bg: #080807;
  --panel: #10100e;
  --ink: #f1eee7;
  --muted: #a7a094;
  --soft: #6d665b;
  --line: rgba(241, 238, 231, 0.12);
  --gold: #c7a76a;
  --warm: #9f7448;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 52% 12%, rgba(159, 116, 72, 0.14), transparent 26rem),
    linear-gradient(180deg, #0c0b0a 0%, var(--bg) 42%, #050504 100%);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 25vw 100%;
  opacity: 0.18;
  z-index: -2;
}

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

img,
video {
  display: block;
  width: 100%;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  background: #070706;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.86), rgba(8, 8, 7, 0));
}

.brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

nav {
  display: flex;
  gap: clamp(18px, 2.8vw, 38px);
  color: var(--muted);
  font-size: 0.78rem;
}

nav a {
  transition: color 350ms ease;
}

nav a:hover {
  color: var(--ink);
}

.section {
  position: relative;
  padding: clamp(92px, 14vw, 180px) clamp(20px, 5vw, 72px);
}

.hero {
  min-height: 96vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: clamp(36px, 7vw, 112px);
  padding-top: 140px;
  padding-bottom: clamp(46px, 7vw, 82px);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}

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

.hero-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(5rem, 17vw, 16rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  max-width: 960px;
  margin-top: clamp(26px, 4vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-copy h2,
.section-heading h2,
.about-copy h2,
.contact-section h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 5.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy p {
  max-width: 330px;
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 34px;
  padding: 0 22px;
  border: 1px solid rgba(199, 167, 106, 0.44);
  color: var(--ink);
  background: rgba(199, 167, 106, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 400ms ease,
    border-color 400ms ease,
    background 400ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 167, 106, 0.82);
  background: rgba(199, 167, 106, 0.12);
}

.hero-object {
  position: absolute;
  inset: auto clamp(20px, 5vw, 72px) 8vh auto;
  z-index: 1;
  width: min(34vw, 430px);
  height: min(22vw, 280px);
  opacity: 0.42;
  pointer-events: none;
}

.monolith {
  display: none;
}

.orbital {
  position: absolute;
  border: 1px solid rgba(199, 167, 106, 0.18);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbital-one {
  right: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 1.6;
  animation: drift 16s ease-in-out infinite;
}

.orbital-two {
  right: 18%;
  bottom: 28%;
  width: 70%;
  aspect-ratio: 1.7;
  border-color: rgba(255, 255, 255, 0.1);
  animation: drift 19s ease-in-out infinite reverse;
}

.section-heading {
  max-width: 980px;
  margin-bottom: clamp(42px, 6vw, 82px);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.work-card {
  position: relative;
  grid-column: span 6;
  min-height: 420px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.work-card-large {
  grid-column: span 8;
  min-height: 640px;
}

.work-card-wide {
  grid-column: span 12;
  min-height: 560px;
}

.work-card img,
.work-card video {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05) brightness(0.82);
  transform: scale(1.01);
  transition:
    transform 900ms ease,
    filter 900ms ease;
}

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

.work-card:hover img,
.work-card:hover video {
  filter: saturate(0.92) contrast(1.08) brightness(0.92);
  transform: scale(1.045);
}

.work-meta {
  position: absolute;
  left: clamp(18px, 2.3vw, 32px);
  right: clamp(18px, 2.3vw, 32px);
  bottom: clamp(18px, 2.3vw, 32px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.work-meta span:last-child {
  color: var(--muted);
}

.capabilities-section {
  padding-top: clamp(96px, 12vw, 160px);
}

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

.capability {
  display: grid;
  grid-template-columns: 72px minmax(220px, 0.9fr) minmax(260px, 1fr);
  gap: clamp(20px, 4vw, 72px);
  padding: clamp(28px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line);
}

.capability span {
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.capability h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
}

.capability p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.capability.quiet {
  opacity: 0.68;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(120px, 0.46fr) minmax(280px, 1fr);
  gap: clamp(34px, 8vw, 128px);
  align-items: start;
}

.about-rule {
  height: 1px;
  margin-top: 18px;
  background: var(--line);
}

.about-copy {
  max-width: 980px;
}

.about-copy > p:last-child {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.9;
}

.contact-section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 960px;
}

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

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

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(-5deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }
  50% {
    transform: translate3d(-12px, 10px, 0) rotate(-14deg);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-object {
    display: none;
  }

  .hero-copy {
    display: block;
  }

  .hero-copy p {
    margin-top: 22px;
  }

  .work-card,
  .work-card-large,
  .work-card-wide {
    grid-column: span 12;
    min-height: 420px;
  }

  .capability {
    grid-template-columns: 48px 1fr;
  }

  .capability p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 18px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    width: 100%;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 168px;
    overflow: visible;
  }

  .hero-inner,
  .hero-copy,
  .hero-copy h2 {
    max-width: 100%;
    min-width: 0;
  }

  .hero-title {
    max-width: 100%;
    font-size: 11.5vw;
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  .hero-copy h2,
  .section-heading h2,
  .about-copy h2,
  .contact-section h2 {
    font-size: 7.5vw;
    line-height: 1.08;
  }

  .work-grid {
    gap: 18px;
  }

  .work-card,
  .work-card-large,
  .work-card-wide {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .work-card-wide {
    aspect-ratio: 4 / 3;
  }

  .work-card img,
  .work-card video {
    min-height: 0;
  }

  .work-meta {
    display: grid;
    gap: 10px;
    font-size: 0.68rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }

  .capability {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .capability p {
    grid-column: 1;
  }

  .about-section {
    grid-template-columns: 1fr;
  }
}

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