/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #131315;
  --bg-elevated-2: #1a1a1d;
  --text: #f5f3ef;
  --text-muted: #a8a6a1;
  --text-dim: #88857f;
  --accent: #c9a24b;
  --accent-hover: #e0bb63;
  --line: rgba(245, 243, 239, 0.12);
  --line-strong: rgba(245, 243, 239, 0.22);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head-flush {
  margin-bottom: 0;
}

.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-top: 18px;
}

.section-head p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 52ch;
}

section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #14120a;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 26px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 16px 0;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
}

.logo span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-top: 3px;
}

.main-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 98px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 44px;
  transition: height 0.4s var(--ease);
}

@media (min-width: 901px) {
  body.is-scrolled .main-nav {
    height: 78px;
  }
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-phone {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(100svh, 680px);
  display: flex;
  align-items: flex-end;
  padding: 130px 0 clamp(60px, 9vw, 120px);
  background: #050506 url("../img/scene-horse.webp") center 30% / cover no-repeat;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 7, 0.55) 0%, rgba(6, 6, 7, 0.35) 35%, rgba(6, 6, 7, 0.55) 68%, #0a0a0b 100%),
    linear-gradient(90deg, rgba(6, 6, 7, 0.55) 0%, rgba(6, 6, 7, 0.05) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content .eyebrow {
  margin-bottom: 22px;
}

.hero-content h1 {
  font-size: clamp(40px, 7.4vw, 96px);
  max-width: 16ch;
  color: var(--text);
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
}

.hero-cta {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--accent), transparent);
}


/* ==========================================================================
   About
   ========================================================================== */
.about .container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 54ch;
}

.about-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.about-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.about-list li span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.about-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}

.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.about-frame:hover img {
  transform: scale(1.05);
}

.about-frame-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px;
  background: linear-gradient(0deg, rgba(6, 6, 7, 0.85), transparent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
  }

  .about-frame {
    order: -1;
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   Work / Gallery
   ========================================================================== */
.work {
  background: var(--bg-elevated);
}

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.work-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  grid-column: span 3;
  aspect-ratio: 4 / 3;
}

.work-item.is-tall {
  grid-column: span 2;
  aspect-ratio: 3 / 4;
}

.work-item.is-wide {
  grid-column: span 4;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.work-item:hover img {
  transform: scale(1.06);
}

.work-item-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.work-item-video.is-active {
  opacity: 1;
}

.work-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(0deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.1) 55%, transparent 100%);
  opacity: 0.88;
  transition: opacity 0.4s var(--ease);
}

.work-item:hover .work-item-overlay {
  opacity: 1;
}

.work-item-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.work-item-title {
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.work-item-expand {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.work-item:hover .work-item-expand {
  opacity: 1;
  transform: none;
}

.work-item-expand svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item,
  .work-item.is-tall,
  .work-item.is-wide {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 560px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

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

.process-step {
  background: var(--bg);
  padding: 40px 32px;
}

.process-step .num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.process-step h3 {
  margin-top: 22px;
  font-size: 19px;
}

.process-step p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.14), transparent 70%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
}

.contact h2 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 12ch;
}

.contact-lead {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 42ch;
}

.contact-cta {
  margin-top: 36px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: start;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.contact-row:first-child {
  border-top: 1px solid var(--line);
}

.contact-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  color: var(--text-muted);
}

.contact-row-icon svg {
  width: 17px;
  height: 17px;
}

.contact-row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-row-text span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-row-text strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.contact-row a.contact-row-text-link,
a.contact-row {
  cursor: pointer;
}

a.contact-row:hover {
  border-color: var(--accent);
}

a.contact-row:hover .contact-row-icon {
  border-color: var(--accent);
  color: var(--accent);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 30px;
  width: auto;
  display: block;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   Mobile nav
   ========================================================================== */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0;
    height: auto;
    left: 0;
    transform: translateX(100%);
    z-index: 99;
    background: #08080a;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 0 var(--gutter);
    transition: transform 0.5s var(--ease);
  }

  .nav-open .main-nav {
    transform: translateX(0);
  }

  .main-nav a {
    font-family: var(--font-display);
    font-size: 34px;
    text-transform: uppercase;
    color: var(--text);
  }

  .header-phone {
    display: none;
  }

  .header-actions > .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 6, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: var(--gutter);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  color: var(--text);
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-nav svg {
  width: 18px;
  height: 18px;
}

.lightbox-prev {
  left: var(--gutter);
}

.lightbox-next {
  right: var(--gutter);
}

@media (max-width: 640px) {
  .lightbox {
    padding: 20px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 300;
  padding: 16px 26px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
