:root {
  --gold: #c89b63;
  --gold-bright: #d4a861;
  --gold-cta: #ffcd6b;
  --welcome: #dc9549;
  --ink: #2b2b2b;
  --muted: #5b5b5b;
  --line: #e8e2d8;
  --paper: #f5f0e8;
  --white: #ffffff;
  --hero: #1a1612;
  --shadow: 0 18px 50px rgba(38, 31, 26, 0.12);
  --radius: 16px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body.is-signed-out [data-auth="signed-in"],
body.is-signed-in [data-auth="signed-out"] {
  display: none !important;
}

.user-chip[hidden],
.auth-hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Figtree, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 201, 184, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(26, 22, 18, 0.62);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px 24px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-lede,
.modal-foot {
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-card h2 {
  margin: 8px 0 10px;
  font-size: 1.6rem;
}

.modal-card form {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.modal-card label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.modal-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  margin-bottom: 8px;
}

.modal-card input:focus {
  outline: 2px solid rgba(200, 155, 99, 0.45);
  border-color: var(--gold);
}

.form-error {
  color: #9b2c2c;
  font-size: 0.88rem;
  margin: 0 0 4px;
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
}

.project-thumb {
  height: 120px;
  background: linear-gradient(160deg, #3a2e22, #1a1612);
}

.project-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.project-meta {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
}

.project-meta span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
}

.projects-empty {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 24px rgba(200, 155, 99, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(212, 168, 97, 0.35), transparent 60%),
    linear-gradient(135deg, #1a1612 0%, #3a2e22 52%, #261f1a 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}

.gold {
  color: var(--gold-bright);
}

.eyebrow-light {
  background: #fce7bb;
  color: #634c00;
  border-color: #e8d5a8;
}

h1,
h2,
h3 {
  font-family: Figtree, Inter, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  margin: 18px 0 16px;
}

.lede {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-frame {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.hero-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

.chrome {
  display: flex;
  gap: 6px;
  padding: 8px 10px 12px;
}

.chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

section {
  padding: 88px 0;
}

.section-kicker {
  color: var(--welcome);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  margin: 10px 0 40px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

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

.video-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b1020;
  aspect-ratio: 16 / 9;
}

.video-card img,
.video-card iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.45));
  color: var(--white);
  cursor: pointer;
}

.play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.play small {
  display: block;
  margin-top: 12px;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  font-size: 1.15rem;
  margin: 12px 0 8px;
}

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

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fce7bb;
  color: #634c00;
  font-weight: 800;
}

.shots {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.shot {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #e8e2d8;
  cursor: zoom-in;
  min-height: 220px;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.shot:first-child {
  grid-row: span 2;
  min-height: 460px;
}

.shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--white);
  font-size: 0.8rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}

.step b {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dest {
  border-radius: 24px;
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dest h3 {
  font-size: 1.7rem;
  margin: 10px 0 8px;
}

.dest p {
  margin: 0 0 24px;
}

.dest-editor {
  background: linear-gradient(160deg, #1a1612, #3a2e22);
  color: var(--white);
}

.dest-gallery {
  background: var(--white);
  border: 1px solid var(--line);
}

.cta-wrap {
  padding-bottom: 88px;
}

.cta {
  text-align: center;
  background: linear-gradient(135deg, #1a1612, #3a2e22);
  color: var(--white);
  border-radius: 28px;
  padding: 64px 24px;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin: 12px auto 28px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 24px;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-height: 86vh;
  max-width: 92vw;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid,
  .section-head,
  .features,
  .shots,
  .steps,
  .split,
  .projects-list {
    grid-template-columns: 1fr;
  }

  .shot:first-child,
  .hero-frame img {
    min-height: 240px;
    height: 240px;
  }

  .hero-grid {
    padding: 48px 0 56px;
  }

  section {
    padding: 64px 0;
  }
}
