/* ==========================================================================
   SSR SABARI INTERIORS — DESIGN TOKENS & ARCHITECTURAL HERO STYLES
   Font: Outfit (Google Fonts)
   Palette: Warm Off-White (#F5F2EB / #FAF8F4), Charcoal (#161513), Soft Gold (#C8A46B)
   ========================================================================== */

:root {
  /* --- Color Palette (Warm Neutrals + Soft Gold) --- */
  --color-canvas: #F5F2EB;
  --color-charcoal: #161513;
  --color-charcoal-soft: #24221E;
  --color-off-white: #FAF8F4;
  --color-off-white-muted: rgba(250, 248, 244, 0.84);
  --color-gold: #C8A46B;
  --color-gold-bright: #DFBE86;
  --color-border-subtle: rgba(250, 248, 244, 0.30);
  --color-border-dark: rgba(22, 21, 19, 0.12);

  /* --- Navbar & Glass Tokens --- */
  --nav-glass-bg: rgba(22, 21, 19, 0.74);
  --nav-glass-border: rgba(200, 164, 107, 0.24);
  --btn-glass-bg: rgba(22, 21, 19, 0.36);
  --btn-glass-bg-hover: rgba(22, 21, 19, 0.54);

  /* --- Typography --- */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Hero Framing & Radii --- */
  --hero-margin: 12px;
  --hero-radius: 22px;

  /* --- Slideshow & Motion Durations --- */
  --slide-duration: 6000ms;
  --crossfade-duration: 1.6s;
  --kenburns-duration: 7.6s; /* slide-duration + crossfade-duration for seamless tail */
  --kb-scale: 1.08;
  --ease-architectural: cubic-bezier(0.22, 1, 0.36, 1);

  /* --- Intro Hero Reveal Durations --- */
  --reveal-image-duration: 1.6s;
  --reveal-frame-duration: 1.4s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* --- Per-Frame Background Crop Positions (Desktop / Tablet) ---
     Adjust any frame's crop here (e.g. "center 40%" or "60% 50%") */
  --bg-pos-default: center 55%;
  --frame-1-pos: center 55%;
  --frame-2-pos: center 55%;
  --frame-3-pos: center 55%;
  --frame-4-pos: center 55%;

  /* --- Per-Frame Background Crop Positions (Mobile <= 767px) --- */
  --frame-1-pos-mobile: center center;
  --frame-2-pos-mobile: center center;
  --frame-3-pos-mobile: center center;
  --frame-4-pos-mobile: center center;
}

/* ==========================================================================
   BASE RESET & ACCESSIBILITY
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-canvas);
  color: var(--color-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-canvas);
  color: var(--color-charcoal);
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 999;
  background: var(--color-charcoal);
  color: var(--color-off-white);
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--color-gold-bright);
  outline-offset: 3px;
}

a,
button {
  font-family: inherit;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(var(--hero-margin) + 18px) clamp(24px, 4vw, 54px) 18px;
  transition:
    padding 0.35s var(--ease-architectural),
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

/* Frosted glass state when page scrolls */
.site-header.is-scrolled {
  padding: 14px clamp(24px, 4vw, 54px);
  background-color: var(--nav-glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--nav-glass-border);
  box-shadow: 0 12px 34px rgba(14, 13, 11, 0.22);
}

.navbar {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* Brand Logo (Left) */
.brand-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-off-white);
  text-decoration: none;
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.9;
}

.brand-mark {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--color-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-architectural);
}

.brand-logo:hover .brand-mark {
  transform: rotate(135deg);
}

/* Centered Links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: rgba(250, 248, 244, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease-architectural);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--color-off-white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* Right Actions */
.nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   PILL BUTTONS (SHARED)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease-architectural),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.btn-pill {
  border-radius: 9999px;
  padding: 11px 22px;
  min-height: 44px;
}

.btn-white {
  background-color: var(--color-off-white);
  color: var(--color-charcoal);
  box-shadow: 0 4px 18px rgba(14, 13, 11, 0.18);
}

.btn-white:hover {
  background-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(14, 13, 11, 0.28);
}

.btn-white:active {
  transform: translateY(0);
}

.btn-glass {
  background-color: var(--btn-glass-bg);
  color: var(--color-off-white);
  border-color: var(--color-border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-glass:hover {
  background-color: var(--btn-glass-bg-hover);
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(14, 13, 11, 0.28);
}

.btn-glass:active {
  transform: translateY(0);
}

.btn-arrow {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-architectural);
}

.btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   HAMBURGER & MOBILE FULL-SCREEN DRAWER
   ========================================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(22, 21, 19, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hamburger:hover {
  background-color: rgba(22, 21, 19, 0.65);
  border-color: var(--color-gold);
}

.hamburger-line {
  width: 18px;
  height: 1.5px;
  background-color: var(--color-off-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-architectural), opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] .hamburger-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background-color: rgba(20, 19, 17, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 28px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s var(--ease-architectural), visibility 0.38s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: 540px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  color: var(--color-off-white);
  text-decoration: none;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(250, 248, 244, 0.1);
  opacity: 0;
  transform: translateY(16px);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.4s var(--ease-architectural),
    transform 0.4s var(--ease-architectural);
}

.mobile-drawer.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-drawer.is-open li:nth-child(1) .mobile-nav-link { transition-delay: 0.06s; }
.mobile-drawer.is-open li:nth-child(2) .mobile-nav-link { transition-delay: 0.11s; }
.mobile-drawer.is-open li:nth-child(3) .mobile-nav-link { transition-delay: 0.16s; }
.mobile-drawer.is-open li:nth-child(4) .mobile-nav-link { transition-delay: 0.21s; }
.mobile-drawer.is-open li:nth-child(5) .mobile-nav-link { transition-delay: 0.26s; }

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
}

.mobile-cta {
  width: 100%;
  min-height: 50px;
}

.mobile-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.56);
  text-align: center;
}

/* ==========================================================================
   HERO FRAME & CINEMATIC SLIDESHOW
   ========================================================================== */
.hero-frame-wrapper {
  padding: var(--hero-margin);
  background-color: var(--color-canvas);
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  height: calc(100svh - (var(--hero-margin) * 2));
  min-height: 560px;
  border-radius: var(--hero-radius);
  overflow: hidden;
  background-color: var(--color-charcoal);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 96px clamp(20px, 5vw, 64px) 28px;
  isolation: isolate;
}

/* Slides Container */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity var(--crossfade-duration) cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide.is-exiting {
  opacity: 1;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--bg-pos-default);
  transform-origin: center center;
}

/* Hero Reveal Orchestration States (body.is-pre-reveal -> body.is-revealing -> body.is-loaded) */
body.is-pre-reveal .site-header {
  opacity: 0;
  transform: translateY(-20px);
}

body.is-revealing .site-header,
body.is-loaded .site-header {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.75s var(--reveal-ease) 0.08s,
    transform 0.75s var(--reveal-ease) 0.08s,
    padding 0.35s var(--ease-architectural),
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

body.is-pre-reveal .hero {
  transform: scale(0.955);
  border-radius: calc(var(--hero-radius) + 14px);
}

body.is-revealing .hero,
body.is-loaded .hero {
  transform: scale(1);
  border-radius: var(--hero-radius);
  transition:
    transform var(--reveal-frame-duration) var(--reveal-ease),
    border-radius var(--reveal-frame-duration) var(--reveal-ease);
}

body.is-pre-reveal .hero-slide[data-frame-index="0"] .hero-slide-media {
  transform: scale(1.15);
  filter: brightness(0.76);
}

body.is-revealing .hero-slide[data-frame-index="0"] .hero-slide-media {
  transform: scale(1);
  filter: brightness(1);
  transition:
    transform var(--reveal-image-duration) ease-out,
    filter var(--reveal-image-duration) ease-out;
  will-change: transform;
}

/* Ken Burns & autoplay begin only after hero reveal completes (body.is-loaded) */
body.is-loaded .hero-slide.is-active[data-pan="1"] .hero-slide-media,
body.is-loaded .hero-slide.is-exiting[data-pan="1"] .hero-slide-media {
  animation: kbPan1 var(--kenburns-duration) linear forwards;
  will-change: transform;
}

body.is-loaded .hero-slide.is-active[data-pan="2"] .hero-slide-media,
body.is-loaded .hero-slide.is-exiting[data-pan="2"] .hero-slide-media {
  animation: kbPan2 var(--kenburns-duration) linear forwards;
  will-change: transform;
}

body.is-loaded .hero-slide.is-active[data-pan="3"] .hero-slide-media,
body.is-loaded .hero-slide.is-exiting[data-pan="3"] .hero-slide-media {
  animation: kbPan3 var(--kenburns-duration) linear forwards;
  will-change: transform;
}

body.is-loaded .hero-slide.is-active[data-pan="4"] .hero-slide-media,
body.is-loaded .hero-slide.is-exiting[data-pan="4"] .hero-slide-media {
  animation: kbPan4 var(--kenburns-duration) linear forwards;
  will-change: transform;
}

/* Per-frame background crop positions (Desktop / Tablet) */
.hero-slide[data-frame-index="0"] .hero-slide-media { background-position: var(--frame-1-pos); }
.hero-slide[data-frame-index="1"] .hero-slide-media { background-position: var(--frame-2-pos); }
.hero-slide[data-frame-index="2"] .hero-slide-media { background-position: var(--frame-3-pos); }
.hero-slide[data-frame-index="3"] .hero-slide-media { background-position: var(--frame-4-pos); }

.hero.is-paused .hero-slide-media,
.hero.is-paused .progress-fill {
  animation-play-state: paused !important;
}

@keyframes kbPan1 {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(var(--kb-scale)) translate3d(-1.6%, -1.1%, 0); }
}

@keyframes kbPan2 {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(var(--kb-scale)) translate3d(1.6%, -1.0%, 0); }
}

@keyframes kbPan3 {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(var(--kb-scale)) translate3d(-1.4%, 1.1%, 0); }
}

@keyframes kbPan4 {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(var(--kb-scale)) translate3d(1.4%, 1.0%, 0); }
}

/* Dark Architectural Gradient Overlay (Heavier Top & Bottom) */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(18, 16, 14, 0.34) 0%, rgba(18, 16, 14, 0.56) 100%),
    linear-gradient(
      180deg,
      rgba(16, 15, 13, 0.72) 0%,
      rgba(16, 15, 13, 0.28) 34%,
      rgba(16, 15, 13, 0.38) 64%,
      rgba(16, 15, 13, 0.80) 100%
    );
}

/* ==========================================================================
   HERO CENTER CONTENT & STAGGERED TEXT REVEAL
   ========================================================================== */
.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.hero-headline {
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--color-off-white);
  text-shadow: 0 4px 28px rgba(14, 13, 11, 0.35);
  transition: transform 1.2s var(--ease-architectural);
  will-change: transform;
}

.headline-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.headline-line-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
}

body.is-revealing .headline-line-inner,
body.is-loaded .headline-line-inner {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s var(--reveal-ease),
    transform 0.85s var(--reveal-ease);
}

body.is-revealing .headline-line:nth-child(1) .headline-line-inner,
body.is-loaded .headline-line:nth-child(1) .headline-line-inner {
  transition-delay: 0.12s;
}

body.is-revealing .headline-line:nth-child(2) .headline-line-inner,
body.is-loaded .headline-line:nth-child(2) .headline-line-inner {
  transition-delay: 0.21s; /* 90ms stagger */
}

.hero-subtext {
  font-size: clamp(0.98rem, 1.3vw, 1.18rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-off-white-muted);
  max-width: 52ch;
  text-shadow: 0 2px 16px rgba(14, 13, 11, 0.45);
  opacity: 0;
  transform: translateY(18px);
}

body.is-revealing .hero-subtext,
body.is-loaded .hero-subtext {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s var(--reveal-ease) 0.41s,
    transform 0.8s var(--reveal-ease) 0.41s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.hero-actions .btn-pill {
  padding: 13px 28px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(18px);
}

body.is-revealing .hero-actions .btn-pill,
body.is-loaded .hero-actions .btn-pill {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.75s var(--reveal-ease),
    transform 0.75s var(--reveal-ease),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

body.is-revealing .hero-actions .btn-pill:nth-child(1),
body.is-loaded .hero-actions .btn-pill:nth-child(1) {
  transition-delay: 0.56s, 0.56s, 0s, 0s, 0s, 0s;
}

body.is-revealing .hero-actions .btn-pill:nth-child(2),
body.is-loaded .hero-actions .btn-pill:nth-child(2) {
  transition-delay: 0.66s, 0.66s, 0s, 0s, 0s, 0s; /* 100ms stagger */
}

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

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

/* ==========================================================================
   HERO BOTTOM: SCROLL INDICATOR + 4 PROGRESS BARS
   ========================================================================== */
.hero-bottom {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
}

body.is-revealing .hero-bottom,
body.is-loaded .hero-bottom {
  opacity: 1;
  transition: opacity 0.75s ease 0.8s;
}

@keyframes fadeInSimple {
  to { opacity: 1; }
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(250, 248, 244, 0.78);
  padding: 4px 12px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.scroll-indicator:hover {
  color: var(--color-gold-bright);
  transform: translateY(2px);
}

.scroll-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-track {
  position: relative;
  width: 1px;
  height: 22px;
  background-color: rgba(250, 248, 244, 0.24);
  overflow: hidden;
}

.scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: var(--color-gold);
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(120%); }
  100% { transform: translateY(240%); }
}

/* 4 Thin Progress Bars */
.hero-progress-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: min(360px, 84vw);
}

.progress-bar-btn {
  background: transparent;
  border: 0;
  padding: 10px 0;
  min-height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 2.5px;
  border-radius: 9999px;
  background-color: rgba(250, 248, 244, 0.26);
  overflow: hidden;
  transition: background-color 0.25s ease, height 0.2s ease;
}

.progress-bar-btn:hover .progress-track {
  background-color: rgba(250, 248, 244, 0.45);
  height: 3.5px;
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-off-white) 0%, var(--color-gold-bright) 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

body.is-loaded .progress-bar-btn.is-active .progress-fill {
  animation: progressFill var(--slide-duration) linear forwards;
}

@keyframes progressFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ==========================================================================
   ARCHITECTURAL CONTINUATION BANDS (FOR SCROLL TESTING & ANCHORS)
   ========================================================================== */
.studio-anchor-band {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 64px);
  background-color: var(--color-canvas);
}

.studio-anchor-band--bordered {
  border-top: 1px solid var(--color-border-dark);
}

.studio-container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8A6832;
  margin-bottom: 14px;
}

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

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--color-charcoal);
  max-width: 24ch;
}

.section-title--light {
  color: var(--color-off-white);
}

.section-copy {
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 300;
  color: #4A463F;
  max-width: 56ch;
}

.studio-footer {
  background-color: var(--color-charcoal);
  padding: clamp(64px, 8vw, 96px) clamp(24px, 5vw, 64px);
}

.studio-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   Tested for: 1920x1080, 1440x900, 1024x768, 768x1024, 390x844
   ========================================================================== */

/* Tablet Landscape & Portrait (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --hero-margin: 10px;
    --hero-radius: 18px;
  }

  .site-header {
    padding: calc(var(--hero-margin) + 14px) 28px 14px;
  }

  .site-header.is-scrolled {
    padding: 12px 28px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .btn-pill {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

/* Tablet Portrait tight safeguard (768px - 960px) */
@media (max-width: 960px) and (min-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .brand-logo {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    gap: 8px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-link {
    font-size: 0.82rem;
  }
}

/* Mobile (<= 767px) — e.g. 390x844 */
@media (max-width: 767px) {
  :root {
    --hero-margin: 0px;
    --hero-radius: 0px;
    --kb-scale: 1.04;
  }

  .site-header {
    padding: 16px 20px;
  }

  .site-header.is-scrolled {
    padding: 12px 20px;
  }

  .navbar {
    grid-template-columns: 1fr auto;
  }

  .brand-logo {
    font-size: clamp(0.72rem, 3.1vw, 0.86rem);
    letter-spacing: 0.12em;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .hero {
    height: 100svh;
    min-height: 560px;
    padding: 88px 20px 24px;
  }

  /* Mobile crop defaults: center center with per-frame overrides */
  .hero-slide[data-frame-index="0"] .hero-slide-media {
    background-position: var(--frame-1-pos-mobile);
  }
  .hero-slide[data-frame-index="1"] .hero-slide-media {
    background-position: var(--frame-2-pos-mobile);
  }
  .hero-slide[data-frame-index="2"] .hero-slide-media {
    background-position: var(--frame-3-pos-mobile);
  }
  .hero-slide[data-frame-index="3"] .hero-slide-media {
    background-position: var(--frame-4-pos-mobile);
  }

  /* Reduced Ken Burns pan amplitude for mobile 1.04 scale */
  @keyframes kbPan1 {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(var(--kb-scale)) translate3d(-0.8%, -0.6%, 0); }
  }
  @keyframes kbPan2 {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(var(--kb-scale)) translate3d(0.8%, -0.5%, 0); }
  }
  @keyframes kbPan3 {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(var(--kb-scale)) translate3d(-0.7%, 0.6%, 0); }
  }
  @keyframes kbPan4 {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(var(--kb-scale)) translate3d(0.7%, 0.5%, 0); }
  }

  /* Darker mobile overlay (~55% center) for rock-solid legibility */
  .hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(14, 13, 11, 0.72) 0%,
        rgba(14, 13, 11, 0.55) 48%,
        rgba(14, 13, 11, 0.82) 100%
      );
  }

  .hero-content {
    gap: 16px;
    width: 100%;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    line-height: 1.08;
  }

  .hero-subtext {
    font-size: 0.96rem;
    max-width: 34ch;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    gap: 10px;
  }

  .hero-actions .btn-pill {
    width: 100%;
    min-height: 48px;
  }

  .hero-bottom {
    gap: 12px;
  }
}

/* Short Landscape Viewports (e.g., 1024x768 or compact windows) */
@media (max-height: 700px) and (min-width: 768px) {
  .hero {
    padding-top: 84px;
    padding-bottom: 20px;
  }

  .hero-content {
    gap: 14px;
  }

  .hero-headline {
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  }

  .hero-bottom {
    gap: 10px;
  }
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide-media,
  .hero-headline {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .site-header,
  .hero,
  .headline-line-inner,
  .hero-subtext,
  .hero-actions .btn-pill,
  .hero-bottom {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-thumb {
    animation: none !important;
  }

  .btn,
  .btn-arrow,
  .nav-link::after,
  .mobile-nav-link {
    transition: none !important;
  }
}
