:root {
  --ink: #080808;
  --ink-soft: #111110;
  --paper: #f2eadf;
  --muted: #b9b0a5;
  --gold: #d4a64c;
  --gold-light: #f0ce81;
  --line: rgba(212, 166, 76, 0.28);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #000;
  background: var(--gold-light);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 94px;
  padding: 1.1rem clamp(1.2rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent);
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.brand small { margin-top: 0.25rem; color: var(--gold-light); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.5rem); }
.primary-nav a { position: relative; font-size: 0.76rem; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }
.primary-nav a:not(.nav-cta)::after { position: absolute; right: 0; bottom: -0.45rem; left: 0; height: 1px; content: ""; background: var(--gold); transform: scaleX(0); transition: transform 180ms ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta { padding: 0.72rem 1.1rem; border: 1px solid var(--gold); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  padding: 10.5rem clamp(1.2rem, 7vw, 7.5rem) 6rem;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 34%, rgba(0,0,0,.16) 66%, rgba(0,0,0,.02) 100%), url("Images/bailey-studio-background.png");
  background-position: center;
  background-size: cover;
}
.hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 180px; content: ""; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; width: min(680px, 53vw); }
.eyebrow { margin: 0 0 1.25rem; color: var(--gold-light); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; }
h1 { font-size: clamp(3.1rem, 6vw, 6.6rem); }
h1 em, h2 em { color: var(--gold-light); font-weight: 400; }
.hero-copy { max-width: 590px; margin: 2rem 0 2.4rem; color: #d8d1c7; font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.hero-actions, .contact-actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 50px; padding: 0.82rem 1.45rem; align-items: center; justify-content: center; border: 1px solid transparent; font-size: 0.73rem; font-weight: 800; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: #080808; background: linear-gradient(135deg, var(--gold-light), #bd812b); box-shadow: 0 12px 30px rgba(212, 166, 76, 0.15); }
.button-outline { border-color: var(--gold); color: var(--gold-light); }
.button-outline:hover { color: #080808; background: var(--gold-light); }
.text-link { color: var(--paper); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-underline-offset: 0.45rem; text-transform: uppercase; }
.text-link span { color: var(--gold); }
.hero-note { position: absolute; z-index: 2; right: clamp(1.5rem, 5vw, 5rem); bottom: 2rem; display: flex; gap: 0.8rem; align-items: center; color: #d9d2c8; font-family: var(--serif); font-size: 0.88rem; line-height: 1.35; }
.paw { color: var(--gold); font-size: 1.8rem; }

.trust-strip { padding: 1.15rem clamp(1.2rem, 5vw, 5rem); display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); color: #c8c0b6; background: #0a0a09; font-size: 0.66rem; letter-spacing: 0.16em; text-align: center; text-transform: uppercase; }
.trust-strip span + span { border-left: 1px solid var(--line); }

.section { padding: clamp(5.5rem, 10vw, 9rem) clamp(1.2rem, 7vw, 7.5rem); }
.section h2 { font-size: clamp(2.8rem, 5.2vw, 5.4rem); }
.section-heading { max-width: 920px; margin-bottom: clamp(3rem, 7vw, 6rem); }
.story { background: radial-gradient(circle at 10% 20%, rgba(129, 66, 28, 0.12), transparent 35%), var(--ink); }
.story-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(3rem, 7vw, 7rem); align-items: end; }
.story-copy { padding-bottom: 2rem; color: var(--muted); }
.story-copy .lead { color: var(--paper); font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.5; }
.story-copy .text-link { display: inline-block; margin-top: 1.5rem; }
.story-image { margin: 0; }
.story-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); }
.story-image figcaption { padding: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.story-image figcaption span { color: var(--gold-light); }

.process { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(400px, 1fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; background: var(--paper); color: #15130f; }
.process .eyebrow { color: #9c6d22; }
.process-photo { position: relative; }
.process-photo::before { position: absolute; z-index: 0; top: -1.2rem; left: -1.2rem; width: 62%; height: 52%; content: ""; border: 1px solid #b48438; }
.process-photo img { position: relative; z-index: 1; width: 100%; max-height: 790px; object-fit: cover; }
.steps { margin: 2.5rem 0 2.7rem; padding: 0; list-style: none; }
.steps li { padding: 1.45rem 0; display: grid; grid-template-columns: 56px 1fr; gap: 1rem; border-bottom: 1px solid rgba(76, 56, 27, 0.18); }
.steps li > span { color: #a7772c; font-family: var(--serif); font-size: 1.15rem; }
.steps h3 { margin: 0 0 0.25rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.steps p { margin: 0; color: #5e584e; font-size: 0.94rem; }
.process .button-outline { color: #17130c; }
.process .button-outline:hover { color: #17130c; }

.portfolio { background: linear-gradient(160deg, #0d0c0b, #060606 55%, #120a0d); }
.portfolio-heading { margin-bottom: 3.5rem; display: grid; grid-template-columns: 1.45fr .55fr; gap: 4rem; align-items: end; }
.portfolio-heading > p { max-width: 440px; margin: 0 0 0.5rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.gallery-card { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); background: #0a0a09; }
.gallery-card img { width: 100%; aspect-ratio: 1.25/1; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 3rem 1.4rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; align-items: end; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.gallery-card strong { color: var(--gold-light); font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.gallery-card span { color: #c9c1b6; font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; }

.film { padding-top: 0; background: linear-gradient(160deg, #0d0c0b, #060606); }
.film-copy { max-width: 900px; margin-bottom: 3.5rem; display: grid; grid-template-columns: 1.3fr .7fr; column-gap: 5rem; align-items: end; }
.film-copy .eyebrow { grid-column: 1/-1; }
.film-copy p:last-child { margin: 0 0 .5rem; color: var(--muted); }
.film-frame { overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.film-frame video { width: 100%; aspect-ratio: 16/9; background: #000; }

.contact { position: relative; overflow: hidden; text-align: center; background-image: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.88)), url("Images/Forever%20Bailey%20Facebook%20header.jpg"); background-position: center; background-size: cover; }
.contact::before { position: absolute; inset: 1.2rem; content: ""; border: 1px solid var(--line); pointer-events: none; }
.contact-inner { position: relative; z-index: 1; max-width: 850px; margin: auto; }
.contact-logo { width: 104px; height: 104px; margin: 0 auto 1.8rem; border-radius: 50%; }
.contact h2 { margin-bottom: 1.6rem; }
.contact p:not(.eyebrow) { max-width: 680px; margin: 0 auto 2.2rem; color: #c9c1b7; }
.contact-actions { justify-content: center; }
.social-handle { color: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; }

.site-footer { padding: 2rem clamp(1.2rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; border-top: 1px solid var(--line); color: #827c74; font-size: 0.66rem; letter-spacing: .09em; text-transform: uppercase; }
.site-footer p:last-child { text-align: right; }
.footer-brand { color: var(--paper); font-family: var(--serif); font-size: 1.1rem; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.footer-brand em { color: var(--gold-light); text-transform: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { min-height: 76px; }
  .brand img { width: 50px; height: 50px; }
  .brand strong { font-size: .95rem; }
  .menu-toggle { position: relative; z-index: 12; width: 44px; height: 44px; padding: 10px; display: grid; align-content: center; gap: 5px; border: 0; color: white; background: transparent; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 100%; height: 1px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav { position: fixed; z-index: 11; inset: 0; padding: 7rem 2rem 3rem; display: none; flex-direction: column; justify-content: center; gap: 2rem; background: rgba(5,5,5,.98); }
  .primary-nav.open { display: flex; }
  .primary-nav a { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .06em; text-transform: none; }
  .nav-cta { margin-top: 1rem; font-family: var(--sans) !important; font-size: .75rem !important; text-transform: uppercase !important; }
  .hero { min-height: 850px; align-items: flex-end; padding-bottom: 8rem; background-image: linear-gradient(0deg, rgba(0,0,0,.98) 0%, rgba(0,0,0,.78) 38%, rgba(0,0,0,.05) 78%), url("Images/bailey-studio-background.png"); background-position: 68% center; }
  .hero-content { width: 100%; }
  .hero-note { display: none; }
  .trust-strip { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .trust-strip span:nth-child(3) { border-left: 0; }
  .story-grid, .process, .portfolio-heading, .film-copy { grid-template-columns: 1fr; }
  .process { gap: 4rem; }
  .process-photo img { max-height: 600px; }
  .portfolio-heading, .film-copy { gap: 1.5rem; }
  .gallery { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer p { margin: 0; }
  .site-footer p:last-child { text-align: center; }
}

@media (max-width: 560px) {
  .brand small { display: none; }
  .hero { min-height: 780px; padding-top: 8rem; }
  h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip span + span { padding-top: 1rem; border-top: 1px solid var(--line); border-left: 0; }
  .section { padding-block: 5rem; }
  .section h2 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .story-grid { gap: 2rem; }
  .story-image figcaption, .gallery-card figcaption { align-items: flex-start; flex-direction: column; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .process-photo::before { display: none; }
  .steps li { grid-template-columns: 42px 1fr; }
  .gallery-card img { aspect-ratio: 1/1; }
  .contact::before { inset: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
