:root {
  --cream: #efe8e1;
  --cream-2: #e6dcd2;
  --sand: #d9c9b8;
  --wine: #5c0b1d;
  --wine-2: #3d0613;
  --red: #c1121f;
  --blush: #f3b9c6;
  --gold: #7a5a28;
  --ink: #1b1416;
  --muted: #6d5f5f;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--wine); margin: 0; letter-spacing: -.03em; line-height: .98; font-weight: 800; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(40px, 6.2vw, 88px); }
h2 em { color: var(--red); }
::selection { background: var(--wine); color: var(--cream); }

.eyebrow {
  font: 600 13px/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}

/* ---------- buttons ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font: 600 15px/1 var(--body);
  background: var(--bg);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::before { /* fill that rises on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--wine));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn-solid { --bg: var(--blush); color: var(--wine); --fill: var(--wine); }
.btn-solid:hover { color: var(--cream); box-shadow: 0 12px 30px -12px rgba(92, 11, 29, .55); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--wine); color: var(--wine); }
.btn-ghost:hover { color: var(--cream); }
.btn-ghost-light { box-shadow: inset 0 0 0 1.5px rgba(239, 232, 225, .6); color: var(--cream); --fill: var(--cream); }
.btn-ghost-light:hover { color: var(--wine); }
.btn-pill { --bg: var(--blush); color: var(--wine); padding: 11px 20px; font-size: 14px; }
.btn-pill:hover { color: var(--cream); }
.btn-lg { padding: 20px 34px; font-size: 17px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease);
  animation: navIn 1s var(--ease) backwards;
}
.nav.scrolled {
  background: rgba(239, 232, 225, .78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  padding-block: 12px;
  box-shadow: 0 1px 0 rgba(92, 11, 29, .08);
}
.nav.hidden { transform: translateY(-100%); }
@keyframes navIn { from { opacity: 0; transform: translateY(-20px); } }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-name { font: 800 22px/1 var(--display); color: var(--wine); letter-spacing: -.03em; }
.brand-name em { color: var(--red); font-size: 1.12em; }
.nav-links { display: flex; align-items: center; gap: 34px; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: 120px var(--pad) 60px;
  position: relative; isolation: isolate;
}
.hero::before { /* satin backdrop, fades into the page below */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("assets/img/hero-bg.jpg") center right / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
  animation: bgIn 2.4s var(--ease) both;
}
@keyframes bgIn { from { opacity: 0; transform: scale(1.08); } }
.hero-title { font-size: clamp(56px, 8.4vw, 132px); margin-bottom: 30px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.2s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
.hero-title em { color: var(--red); }
@keyframes rise { to { transform: none; } }
.hero-sub { max-width: 46ch; color: var(--muted); font-size: 18px; margin: 0 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.load-in { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) var(--d, 0s) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-media { position: relative; height: min(78vh, 760px); }
.hero-arch {
  margin: 0; position: absolute; inset: 0 6% 0 14%;
  border-radius: 999px 999px 28px 28px; overflow: hidden;
  clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px);
  animation: unclip 1.6s var(--ease) .2s forwards;
  box-shadow: 0 40px 80px -40px rgba(92, 11, 29, .45);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); animation: settle 2.2s var(--ease) .2s forwards; }
@keyframes unclip { to { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); } }
@keyframes settle { to { transform: scale(1.02); } }
.hero-float {
  margin: 0; position: absolute; left: 0; bottom: 8%;
  width: 34%; aspect-ratio: 3/4; border-radius: 20px; overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: 0 30px 60px -25px rgba(27, 20, 22, .45);
  opacity: 0; animation: popIn 1.2s var(--ease) .9s forwards;
}
.hero-float img { width: 100%; height: 100%; object-fit: cover; }
@keyframes popIn { from { opacity: 0; transform: translateY(40px) rotate(-6deg) scale(.9); } to { opacity: 1; transform: rotate(-4deg); } }
.badge {
  position: absolute; right: 0; top: 6%; width: 128px; height: 128px;
  background: var(--wine); color: var(--cream); border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.2s forwards;
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font: 600 10.5px var(--body); letter-spacing: .2em; fill: var(--cream); }
.badge-star { font-size: 26px; color: var(--blush); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marquee ---------- */
.marquee { padding: 30px 0 10px; overflow: hidden; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img {
  width: clamp(200px, 22vw, 300px); aspect-ratio: 3/4; object-fit: cover; border-radius: 18px;
  transition: transform .7s var(--ease), filter .7s var(--ease);
}
.marquee img:hover { transform: translateY(-10px) rotate(-1.5deg); }
@keyframes scroll { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- statement ---------- */
.statement { padding: clamp(100px, 16vw, 200px) var(--pad) clamp(80px, 10vw, 140px); max-width: 1300px; margin: 0 auto; }
.statement-text {
  font: 700 clamp(30px, 4.2vw, 60px)/1.12 var(--display);
  letter-spacing: -.03em; margin: 0; color: var(--wine);
}
.statement-text .w { opacity: .14; transition: opacity .4s linear; }
.statement-text .w.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; border-top: 1px solid rgba(92, 11, 29, .15); padding-top: 36px; }
.stats strong { display: block; font: 800 clamp(48px, 6vw, 84px)/1 var(--display); color: var(--wine); letter-spacing: -.04em; }
.stats sup { font-size: .45em; color: var(--red); }
.stats span { color: var(--muted); font-size: 15px; }

/* ---------- section heads ---------- */
.section-head { text-align: center; max-width: 900px; margin: 0 auto 70px; }
.section-head-split { text-align: left; max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head-split p { color: var(--muted); max-width: 42ch; margin: 0 0 8px; }

/* ---------- services ---------- */
.services { padding: 40px var(--pad) clamp(100px, 12vw, 160px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1300px; margin: 0 auto; }
.card {
  background: var(--cream-2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), background .5s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 40px 60px -35px rgba(92, 11, 29, .45); }
.card-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3.4; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 24px 12px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.card h3 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 22px; max-width: 32ch; flex: 1; }
.card-feature { background: var(--wine); box-shadow: 0 0 0 3px var(--wine-2) inset; }
.card-feature h3 { color: var(--cream); }
.card-feature p { color: rgba(239, 232, 225, .72); }
.card-feature .btn-pill { --fill: var(--cream); }
.card-feature .btn-pill:hover { color: var(--wine); }

/* ---------- gallery ---------- */
.work { padding: 0 var(--pad) clamp(100px, 12vw, 160px); }
.masonry { columns: 4 260px; column-gap: 16px; }
.tile {
  all: unset; cursor: zoom-in; display: block; margin-bottom: 16px; border-radius: 16px; overflow: hidden;
  break-inside: avoid; position: relative;
}
.tile:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.tile img { width: 100%; height: auto; transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.tile::after {
  content: "+"; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 400 24px/1 var(--body);
  background: var(--cream); color: var(--wine);
  transform: scale(0) rotate(-90deg); transition: transform .55s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { transform: scale(1) rotate(0); }

/* ---------- studio ---------- */
.studio {
  background: var(--wine); color: var(--cream);
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 100px); align-items: center;
  padding: clamp(100px, 12vw, 170px) var(--pad);
  border-radius: 40px 40px 0 0;
}
.studio h2 { color: var(--cream); font-size: clamp(40px, 5vw, 72px); margin-bottom: 28px; }
.studio h2 em { color: var(--blush); }
.studio p { color: rgba(239, 232, 225, .75); max-width: 44ch; }
.studio .eyebrow { color: var(--blush); }
.perks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: center; font-weight: 500; }
.perks li::before { content: "✦"; color: var(--blush); font-size: 14px; }
.studio-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, clamp(50px, 6.5vw, 95px)); gap: 16px; }
.studio-grid figure { margin: 0; border-radius: 18px; overflow: hidden; }
.studio-grid img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; transition: transform 1.2s var(--ease); }
.studio-grid figure:hover img { transform: scale(1.06); }
.s1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.s2 { grid-column: 5 / 7; grid-row: 1 / 5; }
.s3 { grid-column: 1 / 4; grid-row: 4 / 7; }
.s4 { grid-column: 4 / 7; grid-row: 5 / 7; }

/* ---------- voices ---------- */
.voices { background: var(--wine); padding: 40px 0 clamp(100px, 12vw, 160px); }
.voices h2 { color: var(--cream); }
.voices h2 em { color: var(--blush); }
.voices .eyebrow { color: var(--blush); }
.voices-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.voices-row { display: flex; gap: 20px; width: max-content; animation: scroll 50s linear infinite; }
.voices-track:hover .voices-row { animation-play-state: paused; }
.voices blockquote {
  margin: 0; width: clamp(280px, 30vw, 400px); padding: 34px; border-radius: var(--radius);
  background: var(--wine-2); border: 1px solid rgba(243, 185, 198, .14);
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.voices blockquote p { margin: 0; font: 400 24px/1.3 var(--serif); font-style: italic; color: var(--cream); }
.voices cite::before { content: "— "; }
.voices cite { font-style: normal; font-size: 14px; color: var(--blush); }

/* ---------- CTA ---------- */
.cta { background: var(--wine); padding: 0 var(--pad) 40px; }
.cta-inner {
  position: relative; text-align: center; background: var(--ink); border-radius: 36px;
  padding: clamp(90px, 12vw, 160px) var(--pad); overflow: hidden;
}
.cta h2 { color: var(--cream); font-size: clamp(40px, 6vw, 92px); position: relative; z-index: 1; }
.cta h2 em { color: var(--blush); }
.cta .eyebrow { color: var(--blush); position: relative; z-index: 1; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; position: relative; z-index: 1; }
.cta-btns .btn-solid { --fill: var(--cream); }
.cta-btns .btn-solid:hover { color: var(--wine); }
.cta-img { position: absolute; width: clamp(120px, 15vw, 210px); aspect-ratio: 3/4; object-fit: cover; border-radius: 18px; opacity: .55; }
.cta-img-l { left: 4%; top: 14%; rotate: -8deg; }
.cta-img-r { right: 4%; bottom: 10%; rotate: 7deg; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: clamp(100px, 12vw, 160px) var(--pad); align-items: stretch; }
.visit h2 { margin-bottom: 50px; }
.visit-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; justify-content: start; }
.visit .label { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.visit p { margin: 0 0 14px; }
.visit p a, .link { transition: color .3s; }
.visit p a:hover, .link:hover { color: var(--red); }
.link { font-weight: 600; color: var(--wine); }
.visit-map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--cream-2); }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.4) sepia(.15); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 60px var(--pad) 30px; overflow: hidden; }
.footer-big {
  font: 800 clamp(64px, 17vw, 280px)/.85 var(--display); letter-spacing: -.06em; color: var(--wine);
  white-space: nowrap; text-align: center; margin-bottom: 40px;
}
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 14px; color: rgba(239, 232, 225, .6); }
.footer-row a:hover { color: var(--blush); }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  place-items: center;
}
.lightbox[open] { display: grid; animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox::backdrop { background: rgba(27, 20, 22, .88); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(88vw, 900px); max-height: 86vh; border-radius: 16px; object-fit: contain; transition: opacity .25s; }
.lightbox[open] img { animation: popIn2 .6s var(--ease); }
@keyframes popIn2 { from { transform: scale(.92) translateY(20px); } }
.lightbox button {
  position: absolute; border: 0; background: var(--cream); color: var(--wine); width: 52px; height: 52px; border-radius: 50%;
  font-size: 20px; cursor: pointer; transition: transform .4s var(--ease), background .3s;
}
.lightbox button:hover { transform: scale(1.1); background: var(--blush); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.tile[data-reveal] { transform: translateY(60px) scale(.96); }
.tile[data-reveal].in { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 50px; }
  .hero-media { height: 72vh; max-height: 620px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .section-head-split { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--wine); cursor: pointer; z-index: 2;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .5s var(--ease); }
  .nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    /* explicit size: .nav's backdrop-filter makes it the containing block */
    position: fixed; top: 0; left: 0; width: 100vw; height: 100svh; background: var(--cream); flex-direction: column; justify-content: center; gap: 26px;
    font: 800 40px/1 var(--display); color: var(--wine); letter-spacing: -.03em;
    clip-path: circle(0 at calc(100% - 45px) 40px); transition: clip-path .8s var(--ease);
  }
  .nav.open .nav-links { clip-path: circle(150% at calc(100% - 45px) 40px); }
  .nav-links .btn { font-size: 18px; padding: 16px 28px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .visit-cols { grid-template-columns: 1fr 1fr; }
  .badge { width: 100px; height: 100px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; }
  .cta-img { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track, .voices-row { animation: none; }
}
