:root {
  color-scheme: dark;
  --ink: #f4f2ee;
  --slate: #14140c;
  --charcoal: #1e2327;
  --ridge: #2f3e46;
  --stone: #b5b2a6;
  --brass: #b08d4e;
  --moss: #4a5a44;
  --line: rgba(181, 178, 166, 0.24);
  --line-light: rgba(244, 242, 238, 0.26);
  --frame: clamp(12px, 1.6vw, 22px);
  --radius: 8px;
  --stage-radius: clamp(16px, 2.2vw, 30px);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--slate);
  color: var(--ink);
  font-family: Montserrat, system-ui, sans-serif;
}

body.home {
  height: 100dvh;
  overflow: hidden;
  background: var(--slate);
}

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

a:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

/* ---------- Interior pages: clean rounded panel ---------- */

.shell {
  min-height: 100dvh;
  padding: var(--frame);
}

.panel {
  min-height: calc(100dvh - (var(--frame) * 2));
  border: 1px solid var(--line);
  border-radius: var(--stage-radius);
  background: var(--charcoal);
  overflow: hidden;
}

/* ---------- Home: nav + video stage + footer ---------- */

.home .shell {
  height: 100dvh;
  padding: var(--frame);
}

/* The video stage fills the frame; ALL content (logo, nav, headline,
   footer) is overlaid on it. The surrounding frame holds no text. */
.stage {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  border-radius: var(--stage-radius);
  overflow: hidden;
  background: var(--slate);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.stage video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.05);
}

/* Gradients keep the overlaid nav, headline, and footer legible while
   leaving the middle of the video clear. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 11, 8, 0.74) 0%, rgba(10, 11, 8, 0.18) 14%, transparent 27%),
    linear-gradient(0deg, rgba(10, 11, 8, 0.88) 0%, rgba(10, 11, 8, 0.42) 22%, rgba(10, 11, 8, 0.06) 46%, transparent 62%),
    linear-gradient(90deg, rgba(10, 11, 8, 0.5) 0%, rgba(10, 11, 8, 0.1) 36%, transparent 62%);
}

.stage > .nav,
.stage-copy,
.stage > .footer {
  position: relative;
  z-index: 2;
}

.stage > .nav,
.stage > .footer {
  border: 0;
  background: transparent;
}

.stage-copy {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1.5rem, 4vw, 3.75rem) clamp(0.5rem, 1.5vw, 1rem);
  max-width: 940px;
}

/* ---------- Shared nav / footer ---------- */

.nav,
.footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  border-color: var(--line);
}

.nav { border-bottom: 1px solid var(--line); }
.footer { border-top: 1px solid var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(176, 141, 78, 0.7);
  color: var(--brass);
}

.nav-links,
.footer-links,
.actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}

.nav-links a,
.footer-links a,
.mini {
  color: rgba(244, 242, 238, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a:hover,
.footer-links a:hover { color: var(--brass); }
.nav-links a[aria-current="page"] { color: var(--brass); }

/* ---------- Hero typography ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(10, 11, 8, 0.35);
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  margin-bottom: clamp(0.9rem, 2vw, 1.4rem);
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #6fce77;
  box-shadow: 0 0 0 4px rgba(111, 206, 119, 0.2);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.55rem, 7.4vw, 6.75rem);
  font-weight: 800;
}

.stage-copy h1 { color: #fff; }

.lead {
  max-width: 640px;
  margin: clamp(1rem, 2.2vw, 1.5rem) 0 0;
  color: rgba(244, 242, 238, 0.7);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.55;
}

.stage-copy .lead { color: rgba(255, 255, 255, 0.86); }

.actions { margin-top: clamp(1.15rem, 2.6vw, 2rem); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.button.primary {
  background: var(--brass);
  color: var(--slate);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.stage-copy .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  backdrop-filter: blur(6px);
}

.stage-copy .button.secondary:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Interior content ---------- */

.page-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.page-kicker {
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title {
  margin-top: 0.75rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
}

.page-lead {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: rgba(244, 242, 238, 0.68);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card,
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.card { padding: clamp(1.25rem, 3vw, 2rem); }

.card h2,
.card h3,
.work-card h2,
.work-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.card p,
.work-card p,
.contact-list {
  color: rgba(244, 242, 238, 0.65);
  line-height: 1.6;
}

.work-card { overflow: hidden; }
.work-card .image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.work-card .copy { padding: 1.25rem; }

.work-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover img { transform: scale(1.04); }

.work-card .image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 20, 12, 0.6));
  pointer-events: none;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: var(--brass);
  font-weight: 800;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .nav,
  .footer {
    min-height: 56px;
    padding-inline: 1rem;
  }

  .nav-links { display: none; }

  .stage-copy { padding: 1.5rem; }

  .grid,
  .grid.two { grid-template-columns: 1fr; }

  .lead,
  h1 { overflow-wrap: break-word; }
}

@media (max-height: 680px) {
  h1 { font-size: clamp(2.1rem, 8vh, 4.8rem); }
  .lead { font-size: 0.98rem; }
  .footer { min-height: 48px; }
}

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