:root {
  --bg: #171615;
  --bg-deep: #0f0e0d;
  --panel: #211f1d;
  --panel-soft: #2a2724;
  --ink: #f4efe7;
  --muted: #b8aea2;
  --faint: #81776d;
  --ember: #b85f2d;
  --ember-deep: #7f351c;
  --bronze: #b98b55;
  --bone: #d9c8ad;
  --line: rgba(244, 239, 231, 0.14);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --display:
    "Libre Caslon Text", "Fraunces", "Cormorant Garamond", Georgia, serif;
  --body: "Aptos", "Optima", "Avenir Next", system-ui, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(184, 95, 45, 0.16),
      transparent 34rem
    ),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

button,
summary {
  font: inherit;
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 14, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: 0.02em;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid rgba(184, 95, 45, 0.55);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(184, 95, 45, 0.95),
    rgba(127, 53, 28, 0.92)
  );
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(184, 95, 45, 0.2);
  border-radius: 14px;
}

.button.secondary {
  background: rgba(244, 239, 231, 0.05);
  border-color: var(--line);
  box-shadow: none;
  color: var(--bone);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 86vh;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 4vw, 4rem);
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12rem -22rem auto;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(184, 95, 45, 0.22), transparent 67%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--bronze);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7.5rem);
  letter-spacing: -0.075em;
}

h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  letter-spacing: -0.055em;
}

h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.025em;
}

.lede {
  max-width: 43rem;
  margin: 1.4rem 0 0;
  color: var(--bone);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-note {
  max-width: 34rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 200, 173, 0.18);
  border-radius: 2rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 44%, rgba(15, 14, 13, 0.72)),
    radial-gradient(
      circle at 65% 20%,
      rgba(184, 95, 45, 0.15),
      transparent 28rem
    );
  pointer-events: none;
}

.video-shell video {
  width: 100%;
  height: min(62vh, 44rem);
  object-fit: cover;
}

.video-caption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.62fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.proof-item {
  min-height: 11rem;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  margin-bottom: 1rem;
  color: var(--bronze);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proof-item span {
  display: block;
  max-width: 16rem;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1.05;
}

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

.process-card {
  min-height: 18rem;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(244, 239, 231, 0.045), transparent),
    var(--panel);
}

.process-card .num {
  color: var(--ember);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.process-card h3 {
  margin-top: 4.2rem;
}

.process-card p {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.gallery-main,
.gallery-side img,
.artifact-image img {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
}

.gallery-main {
  position: relative;
  min-height: 42rem;
  background: var(--panel);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  min-height: 42rem;
  object-fit: cover;
}

.gallery-main figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(244, 239, 231, 0.16);
  border-radius: 1rem;
  background: rgba(15, 14, 13, 0.78);
  backdrop-filter: blur(16px);
  color: var(--bone);
}

.gallery-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-side img {
  width: 100%;
  height: 20.5rem;
  object-fit: cover;
}

.artifact-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.artifact-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.68rem 0.95rem;
  background: rgba(244, 239, 231, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.artifact-tabs button.active {
  border-color: rgba(184, 95, 45, 0.72);
  background: rgba(184, 95, 45, 0.18);
  color: var(--ink);
}

.artifact-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.46fr);
  gap: 1rem;
}

.model-card {
  overflow: hidden;
  min-height: 42rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(
      circle at 50% 36%,
      rgba(184, 95, 45, 0.16),
      transparent 24rem
    ),
    linear-gradient(180deg, rgba(244, 239, 231, 0.04), transparent),
    var(--bg-deep);
}

model-viewer {
  width: 100%;
  height: 42rem;
  --poster-color: transparent;
}

.artifact-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.artifact-copy p {
  color: var(--muted);
}

.artifact-image {
  margin: 0;
}

.artifact-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.artifact-image img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.faq-copy {
  position: sticky;
  top: 7rem;
  align-self: start;
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  color: var(--bone);
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--ember);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 0 1.4rem;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form-shell {
  min-height: 44rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-shell iframe {
  display: block;
  width: 100%;
  height: 44rem;
  border: 0 !important;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

.direction-guild {
  --bg: #141514;
  --panel: #1f211d;
  --ember: #c2632c;
  --bronze: #c49a62;
}

.direction-guild .hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  padding-top: 4rem;
}

.direction-guild h1 {
  max-width: 78rem;
}

.direction-guild .video-shell {
  border-radius: 0.8rem 2.2rem 0.8rem 2.2rem;
}

.direction-gallery {
  --bg: #1c1a18;
  --bg-deep: #12100f;
  --panel: #26221f;
  --ember: #a84f25;
  --bronze: #c19a6b;
}

.direction-gallery .hero {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
}

.direction-gallery .video-shell,
.direction-gallery .gallery-main,
.direction-gallery .model-card,
.direction-gallery .form-shell {
  border-radius: 0.35rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.overview-card {
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(244, 239, 231, 0.05), transparent),
    var(--panel);
  text-decoration: none;
}

.overview-card p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .section-head,
  .gallery,
  .artifact-stage,
  .faq-grid,
  .contact,
  .direction-gallery .hero {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .process-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    position: static;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .proof-strip,
  .process-grid,
  .overview-grid,
  .gallery-side {
    grid-template-columns: 1fr;
  }

  .video-shell video,
  .gallery-main,
  .gallery-main img,
  model-viewer,
  .model-card {
    min-height: 27rem;
    height: 27rem;
  }

  .footer {
    flex-direction: column;
  }
}
