/* ===========================
   ESR Studio — Website Styles
   =========================== */

/* ===========================
   Custom Properties
   =========================== */
:root {
  --pine:         #1A3A2A;
  --deep-pine:    #0D241A;
  --gold:         #C9A84C;
  --antique-gold: #9E7D2E;
  --ivory:        #F7F4EC;
  --mist-green:   #DDE6DD;
  --graphite:     #5F675F;
  --white:        #FFFFFF;

  --font-headline: 'Space Grotesk', Arial, sans-serif;
  --font-body:     'Inter', Arial, sans-serif;
  --font-ui:       'Manrope', Arial, sans-serif;

  --max-width:     1200px;
  --gutter:        clamp(24px, 5vw, 72px);
  --section-gap:   clamp(80px, 10vw, 140px);
  --nav-height:    76px;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.4s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pine);
  background-color: var(--ivory);
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem,   3.5vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw,   1.625rem); }

p {
  color: var(--graphite);
  line-height: 1.72;
}

/* ===========================
   Layout
   =========================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-gap) 0;
}

/* ===========================
   Viewfinder Corner Helper
   =========================== */
.vf-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.vf-corners::before,
.vf-corners::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
}

/* 4-corner trick via box-shadow on a single el */
.vf-corners-el {
  position: absolute;
  inset: 28px;
  pointer-events: none;
  z-index: 1;
}

.vf-corners-el--white {
  background:
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) top    left  / 36px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) top    left  / 1px  36px no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) top    right / 36px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) top    right / 1px  36px no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) bottom left  / 36px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) bottom left  / 1px  36px no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) bottom right / 36px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)) bottom right / 1px  36px no-repeat;
}

.vf-corners-el--pine {
  background:
    linear-gradient(rgba(26,58,42,.15), rgba(26,58,42,.15)) top    left  / 28px 1px  no-repeat,
    linear-gradient(rgba(26,58,42,.15), rgba(26,58,42,.15)) top    left  / 1px  28px no-repeat,
    linear-gradient(rgba(26,58,42,.15), rgba(26,58,42,.15)) top    right / 28px 1px  no-repeat,
    linear-gradient(rgba(26,58,42,.15), rgba(26,58,42,.15)) top    right / 1px  28px no-repeat,
    linear-gradient(rgba(26,58,42,.15), rgba(26,58,42,.15)) bottom left  / 28px 1px  no-repeat,
    linear-gradient(rgba(26,58,42,.15), rgba(26,58,42,.15)) bottom left  / 1px  28px no-repeat,
    linear-gradient(rgba(26,58,42,.15), rgba(26,58,42,.15)) bottom right / 28px 1px  no-repeat,
    linear-gradient(rgba(26,58,42,.15), rgba(26,58,42,.15)) bottom right / 1px  28px no-repeat;
}

/* ===========================
   Gold Dot
   =========================== */
.gold-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #EDD47A, #C9A84C 55%, #8A6A20);
  flex-shrink: 0;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}

/* Primary — dark background version */
.btn--primary {
  background: var(--pine);
  color: var(--white);
  border-color: var(--pine);
}
.btn--primary:hover {
  background: var(--deep-pine);
  border-color: var(--deep-pine);
}
.btn--primary .gold-dot { margin-left: 4px; }

/* Outline on dark bg */
.btn--outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.32);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Outline on light bg */
.btn--outline-dark {
  background: transparent;
  color: var(--pine);
  border-color: rgba(26,58,42,.3);
}
.btn--outline-dark:hover {
  border-color: var(--antique-gold);
  color: var(--antique-gold);
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.nav--transparent { background: transparent; }

.nav--solid {
  background: rgba(13,36,26,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo switching */
.nav__logo-link {
  display: flex;
  align-items: center;
  height: 72px;
  flex-shrink: 0;
}

.nav__logo-link img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo { display: block; }

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.8);
  position: relative;
  transition: color var(--duration) var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration) var(--ease);
}

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__link:hover { color: var(--white); }

/* Nav CTA */
.nav__cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease);
}

.nav__cta {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
}
.nav__cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,.85);
  transition: all .3s;
}

/* Mobile full-screen menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--deep-pine);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  overflow: hidden;
}

.nav__mobile.open { display: flex; }

.nav__mobile::before {
  content: '';
  position: absolute;
  inset: 24px;
  background:
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) top    left  / 32px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) top    left  / 1px  32px no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) top    right / 32px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) top    right / 1px  32px no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) bottom left  / 32px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) bottom left  / 1px  32px no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) bottom right / 32px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) bottom right / 1px  32px no-repeat;
  pointer-events: none;
}

.nav__mobile-link {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color .3s;
  position: relative;
  z-index: 1;
}
.nav__mobile-link:hover { color: var(--gold); }

.nav__mobile-close {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 20px;
  cursor: pointer;
  z-index: 201;
  transition: color .3s;
  line-height: 1;
}
.nav__mobile-close:hover { color: var(--white); }

/* ===========================
   Hero Section
   =========================== */
.hero {
  min-height: 100svh;
  background-color: var(--deep-pine);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .45;
  overflow: hidden;
}

.hero__video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 25%, rgba(26,58,42,.7) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(201,168,76,.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-top: var(--nav-height);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.06;
}

.hero__sub {
  font-size: clamp(.95rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,.58);
  max-width: 540px;
  margin-bottom: 52px;
  line-height: 1.72;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: .35;
  transition: opacity .3s;
}
.hero__scroll:hover { opacity: .7; }

.hero__scroll-track {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.6));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.hero__scroll-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1.0) translateY(0); }
  60%       { opacity: .9; transform: scaleY(.85) translateY(4px); }
}

/* ===========================
   Section Labels
   =========================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 16px;
}

.section-label--light {
  color: rgba(255,255,255,.4);
}

.section-label--gold { color: var(--gold); }

/* ===========================
   Values / Process Preview
   =========================== */
.values {
  background: var(--ivory);
}

.values__head {
  margin-bottom: 64px;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(26,58,42,.09);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(26,58,42,.06);
  gap: 1px;
}

.value-card {
  background: var(--white);
  padding: 52px 40px;
  transition: background var(--duration) var(--ease);
}
.value-card:hover { background: var(--mist-green); }

.value-card__num {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.value-card__num::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.value-card h3 {
  color: var(--pine);
  margin-bottom: 14px;
}

.value-card p {
  font-size: .9375rem;
  line-height: 1.68;
}

/* ===========================
   Work Grid
   =========================== */
.work-section { background: var(--mist-green); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 20px;
}

.section-header__left h2 { margin-bottom: 0; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: rgba(13,36,26,.25);
  border-radius: 6px;
  overflow: hidden;
}

.work-grid .work-card:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

/* Full grid on work.html */
.work-grid--full {
  grid-template-columns: repeat(2, 1fr);
}
.work-grid--full .work-card:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: var(--deep-pine);
}

.work-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--pine) 0%, var(--deep-pine) 100%);
  transition: transform .8s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.work-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  display: block;
}
.work-card:hover .work-card__img { transform: scale(1.04); }

.work-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform .8s var(--ease);
}
.work-card:hover .work-card__video { transform: scale(1.04); }
.work-card__video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.work-card--portrait {
  aspect-ratio: 9 / 16;
}

.work-card__placeholder-bg {
  position: absolute;
  inset: 0;
  background: #0d1a13;
  border: 1px dashed rgba(201,168,76,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(201,168,76,.5);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.work-card__play {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .45;
  transition: opacity .4s, transform .4s;
}
.work-card:hover .work-card__play {
  opacity: .9;
  transform: scale(1.08);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,36,26,.92) 0%, rgba(13,36,26,.18) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background .4s;
}
.work-card:hover .work-card__overlay {
  background: linear-gradient(to top, rgba(13,36,26,.96) 0%, rgba(13,36,26,.3) 60%, transparent 100%);
}

.work-card__cat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.work-card__title {
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: 10px;
  line-height: 1.15;
}

.work-card__desc {
  font-size: .825rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
  line-height: 1.55;
  max-width: 420px;
  display: none;
}

.work-card:hover .work-card__desc { display: block; }

.work-card__meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(255,255,255,.38);
}

.work-card__meta span { margin-left: 12px; }
.work-card__meta span:first-child { margin-left: 0; }
.work-card__meta span + span::before {
  content: '·';
  margin-right: 12px;
}

/* ===========================
   CTA Banner
   =========================== */
.cta-banner {
  background: var(--pine);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 24px;
  background:
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) top    left  / 40px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) top    left  / 1px  40px no-repeat,
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) top    right / 40px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) top    right / 1px  40px no-repeat,
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) bottom left  / 40px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) bottom left  / 1px  40px no-repeat,
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) bottom right / 40px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) bottom right / 1px  40px no-repeat;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  margin: 0 auto 20px;
  max-width: 620px;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,.55);
  max-width: 460px;
  margin: 0 auto 52px;
  font-size: 1rem;
  position: relative;
}

.cta-banner .btn { position: relative; }

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--deep-pine);
  padding: 64px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 52px;
}

.footer__brand-logo {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.footer__tagline {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.footer__nav-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  letter-spacing: .03em;
  transition: color .3s;
}
.footer__nav-link:hover { color: var(--gold); }

.footer__divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin-bottom: 28px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__copy {
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(255,255,255,.25);
  letter-spacing: .03em;
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
}

.footer__instagram:hover {
  color: var(--gold);
}

/* Legal pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 3.5rem 0 1rem;
  color: var(--deep-pine);
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.legal-content p {
  color: rgba(10,24,16,.7);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.legal-content ul li {
  color: rgba(10,24,16,.7);
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

/* ===========================
   Page Hero (interior pages)
   =========================== */
.page-hero {
  background: var(--deep-pine);
  padding: calc(var(--nav-height) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .02;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 24px;
  background:
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) top    left  / 32px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) top    left  / 1px  32px no-repeat,
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) top    right / 32px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) top    right / 1px  32px no-repeat,
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) bottom left  / 32px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) bottom left  / 1px  32px no-repeat,
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) bottom right / 32px 1px  no-repeat,
    linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.09)) bottom right / 1px  32px no-repeat;
  pointer-events: none;
}

.page-hero__content { position: relative; z-index: 2; }

.page-hero h1 {
  color: var(--white);
  max-width: 720px;
  margin-bottom: 20px;
}

.page-hero p {
  color: rgba(255,255,255,.55);
  font-size: clamp(.95rem, 1.5vw, 1.125rem);
  max-width: 520px;
  line-height: 1.72;
}

/* ===========================
   About Page
   =========================== */
.about-intro { background: var(--ivory); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.about-text h2 { margin-bottom: 28px; }

.about-text p {
  margin-bottom: 22px;
  font-size: .9375rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-visual {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

.about-frame {
  aspect-ratio: 4 / 5;
  background: var(--mist-green);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.about-frame::before {
  content: '';
  position: absolute;
  inset: 16px;
  background:
    linear-gradient(rgba(26,58,42,.18), rgba(26,58,42,.18)) top    left  / 28px 1px  no-repeat,
    linear-gradient(rgba(26,58,42,.18), rgba(26,58,42,.18)) top    left  / 1px  28px no-repeat,
    linear-gradient(rgba(26,58,42,.18), rgba(26,58,42,.18)) top    right / 28px 1px  no-repeat,
    linear-gradient(rgba(26,58,42,.18), rgba(26,58,42,.18)) top    right / 1px  28px no-repeat,
    linear-gradient(rgba(26,58,42,.18), rgba(26,58,42,.18)) bottom left  / 28px 1px  no-repeat,
    linear-gradient(rgba(26,58,42,.18), rgba(26,58,42,.18)) bottom left  / 1px  28px no-repeat,
    linear-gradient(rgba(26,58,42,.18), rgba(26,58,42,.18)) bottom right / 28px 1px  no-repeat,
    linear-gradient(rgba(26,58,42,.18), rgba(26,58,42,.18)) bottom right / 1px  28px no-repeat;
  pointer-events: none;
  z-index: 1;
}

.about-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Process Section */
.process-section { background: var(--pine); }

.process-section__head {
  margin-bottom: 64px;
}

.process-section__head h2 { color: var(--white); margin-bottom: 14px; }
.process-section__head p  { color: rgba(255,255,255,.5); max-width: 460px; font-size: .9375rem; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  overflow: hidden;
}

.process-card {
  background: rgba(255,255,255,.04);
  padding: 52px 36px;
  transition: background .3s;
}
.process-card:hover { background: rgba(255,255,255,.09); }

.process-card__step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.process-card__num {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.process-card__step-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.process-card h3 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 1.375rem;
}

.process-card p {
  color: rgba(255,255,255,.5);
  font-size: .9375rem;
  line-height: 1.68;
}

/* ===========================
   Contact Page
   =========================== */
.contact-section { background: var(--ivory); }

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.contact-info__head {
  margin-bottom: 16px;
}

.contact-info h2 {
  margin-bottom: 24px;
  line-height: 1.1;
}

.contact-info > p {
  margin-bottom: 48px;
  font-size: .9375rem;
  line-height: 1.72;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-top: 1px solid rgba(26,58,42,.1);
  padding-top: 36px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-detail__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.contact-detail__value {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--pine);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 6px;
  padding: 52px;
  border: 1px solid rgba(26,58,42,.08);
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.contact-form-wrap h3 {
  color: var(--pine);
  margin-bottom: 36px;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(26,58,42,.14);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--pine);
  background: var(--ivory);
  transition: border-color .3s, box-shadow .3s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(95,103,95,.45);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(26,58,42,.07);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit { margin-top: 8px; }

.btn--form {
  width: 100%;
  justify-content: center;
  background: var(--pine);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background .3s;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.btn--form:hover { background: var(--deep-pine); }
.btn--form:disabled { opacity: .6; cursor: not-allowed; }

.form-field-error {
  display: block;
  font-size: 11px;
  color: #b94040;
  margin-top: 5px;
  min-height: 16px;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #b94040;
}

.form-error-global {
  background: rgba(185,64,64,.08);
  border: 1px solid rgba(185,64,64,.25);
  color: #b94040;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
}

.form-success__icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.form-success h3 {
  color: var(--pine);
  margin-bottom: 12px;
}

.form-success p {
  font-size: .9375rem;
  color: var(--graphite);
}

/* Checkbox */
.form-group--checkbox {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid rgba(10,24,16,.25);
  border-radius: 3px;
  background: transparent;
  transition: border-color .2s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.checkbox-text {
  font-size: .8125rem;
  color: rgba(10,24,16,.6);
  line-height: 1.6;
}

.checkbox-text a {
  color: var(--gold);
  text-decoration: underline;
}

.form-error {
  display: none;
  font-size: .75rem;
  color: #c0392b;
  margin-top: 6px;
  padding-left: 30px;
}

.form-error.visible {
  display: block;
}

/* ===========================
   Video Section
   =========================== */
.video-section { background: var(--deep-pine); }
.video-section h2 { color: var(--white); }
.video-section .section-label { color: rgba(255,255,255,.4); }
.video-section .section-label--gold { color: var(--gold); }

/* Equal work grid — no wide first card */
.work-grid--equal .work-card:first-child {
  grid-column: auto;
  aspect-ratio: 16 / 10;
}
.work-grid--equal .work-card--portrait:first-child {
  aspect-ratio: 9 / 16;
}

/* ===========================
   Photo Grid
   =========================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: rgba(26,58,42,.1);
  border-radius: 6px;
  overflow: hidden;
}

.photo-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--deep-pine);
  cursor: pointer;
}

.photo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .8s var(--ease);
}

.photo-card:hover .photo-card__img { transform: scale(1.05); }

.photo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,36,26,.82) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  opacity: 0;
  transition: opacity .35s;
}

.photo-card:hover .photo-card__overlay { opacity: 1; }

.photo-card__cat {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.photo-card__title {
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1.2;
}

/* ===========================
   Scroll Reveal
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .17s; }
.reveal-d3 { transition-delay: .26s; }
.reveal-d4 { transition-delay: .35s; }

/* Hero entrance */
.hero-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: heroEnter .9s var(--ease) forwards;
}
.hero-enter-d1 { animation-delay: .2s; }
.hero-enter-d2 { animation-delay: .38s; }
.hero-enter-d3 { animation-delay: .55s; }
.hero-enter-d4 { animation-delay: .72s; }

@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .about-visual {
    position: static;
    max-width: 440px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .contact-form-wrap { position: static; }

  /* Tighter nav gap on tablet */
  .nav__links { gap: 28px; }

  /* Process grid 2-col on iPad to avoid cramping at mid-range widths */
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-gap: clamp(56px, 8vw, 96px);
  }

  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  /* Smaller logo on mobile */
  .nav__logo-link { height: 48px; }

  .values__grid { grid-template-columns: 1fr; }
  .value-card { padding: 40px 28px; }

  /* Hero spacing */
  .hero__eyebrow { margin-bottom: 20px; }
  .hero h1 { margin-bottom: 18px; }
  .hero__sub { margin-bottom: 36px; }

  .work-grid { grid-template-columns: 1fr; }

  /* Portrait video cards: shorter when stacked single-column */
  .work-card--portrait { aspect-ratio: 4 / 5; }

  /* Scroll-activated video card */
  .work-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
  .work-card--active {
    transform: scale(1.04);
    z-index: 2;
    box-shadow: 0 0 0 2px rgba(201,168,76,.55), 0 16px 48px rgba(0,0,0,.55);
  }
  .work-card--active .work-card__video { transform: scale(1.06); }
  .work-card--active .work-card__overlay {
    background: linear-gradient(to top, rgba(13,36,26,.9) 0%, rgba(13,36,26,.2) 55%, transparent 100%);
  }

  /* Photo overlays always visible — no hover on touch devices */
  .photo-card__overlay { opacity: 1; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid .work-card:not(.work-card--portrait):first-child,
  .work-grid--full .work-card:not(.work-card--portrait):first-child {
    grid-column: auto;
    aspect-ratio: 16 / 9;
  }
  .work-grid--equal .work-card--portrait:first-child { aspect-ratio: 4 / 5; }
  .work-grid--full { grid-template-columns: 1fr; }
  .work-card__desc { display: none !important; }
  .work-card__overlay { padding: 22px; }

  .process-grid { grid-template-columns: 1fr; }
  .process-card { padding: 40px 28px; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
  }

  /* Section head spacing reductions */
  .values__head { margin-bottom: 40px; }
  .process-section__head { margin-bottom: 40px; }
  .about-grid { gap: 40px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 24px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .contact-form-wrap { padding: 36px 24px; }
  .contact-info > p { margin-bottom: 36px; }
  .form-row { grid-template-columns: 1fr; }

  .hero__cta { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }

  /* CTA banner */
  .cta-banner p { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .hero__content { padding-top: 16px; }
  .work-card__overlay { padding: 16px; }
  .photo-grid { grid-template-columns: 1fr; }

  /* Even smaller logo on very small phones */
  .nav__logo-link { height: 40px; }

  /* Full-width CTA buttons — better tap targets */
  .hero__cta { gap: 10px; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  /* Tighter card padding */
  .value-card { padding: 32px 18px; }
  .process-card { padding: 32px 20px; }

  /* Contact form */
  .contact-form-wrap { padding: 24px 16px; }
}

/* ===========================
   Reduced Motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.in-view {
    opacity: 1;
    transform: none;
  }
  .hero-enter {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hero__scroll-track { animation: none; }
  .work-card__img,
  .work-card__placeholder,
  .work-card__video,
  .photo-card__img { transition: none; }
}
