/**
 * Shaashvat Films - Cinematic dark header
 * Brand: #0d0d0d · #ffffff · #e9204f | Fonts: Jost, Open Sans
 */

:root {
  --sf-header-h: 92px;
  --sf-header-h-scrolled: 76px;
  --sf-header-black: #000000;
  --sf-header-black-soft: #0a0a0a;
  --sf-brand-bg: #0a0a0a;
  --sf-brand-charcoal: #121214;
  --sf-brand-text: #ffffff;
  --sf-brand-muted: rgba(255, 255, 255, 0.62);
  --sf-brand-accent: #e9204f;
  --sf-brand-gold: #c4a574;
  --sf-brand-silver: rgba(255, 255, 255, 0.35);
  --sf-cine-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --sf-cine-ease-slow: cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-header.site-header,
header.sf-header#sf-header {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 0 !important;
}

.sf-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  font-family: "Jost", sans-serif;
  pointer-events: none;
  transition: transform 0.8s var(--sf-cine-ease-slow);
}

.sf-header.is-hidden {
  transform: translateY(-100%);
}

.sf-header > * {
  pointer-events: auto;
}

/* Film grain - only when scrolled (overlay on bright hero caused grey wash) */
.sf-header__ambient {
  position: absolute;
  inset: 0;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 2;
  transition: opacity 0.8s var(--sf-cine-ease-slow);
}

.sf-header.is-scrolled .sf-header__ambient {
  opacity: 0.035;
}

/* Scroll line - subtle gold */
.sf-header__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--sf-brand-gold) 20%,
    rgba(255, 255, 255, 0.5) 80%,
    transparent 100%
  );
  z-index: 4;
  opacity: 0.85;
}

/* Full-width cinematic bar - dark scrim (no frosted wash on hero) */
.sf-header__shell {
  position: relative;
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  isolation: isolate;
  transition:
    border-color 0.9s var(--sf-cine-ease-slow),
    box-shadow 0.9s var(--sf-cine-ease-slow);
}

/* Solid black cinematic bar - no fade-to-transparent (avoids grey wash) */
.sf-header__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--sf-header-black) 0%,
    rgba(0, 0, 0, 0.98) 55%,
    rgba(0, 0, 0, 0.94) 100%
  );
  transition: background 0.7s var(--sf-cine-ease-slow);
}

.sf-header.is-scrolled .sf-header__shell::before {
  background: rgba(0, 0, 0, 0.98);
}

.sf-header.is-scrolled .sf-header__shell {
  backdrop-filter: blur(16px) saturate(100%);
  -webkit-backdrop-filter: blur(16px) saturate(100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(196, 165, 116, 0.1);
}

.sf-header:not(.is-scrolled) .sf-header__shell {
  border-bottom-color: transparent;
  box-shadow: none;
}

.sf-header__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  min-height: var(--sf-header-h);
  transition: min-height 0.8s var(--sf-cine-ease-slow);
}

.sf-header.is-scrolled .sf-header__inner {
  min-height: var(--sf-header-h-scrolled);
}

/* Brand identity - logo + wordmark */
.sf-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  max-width: min(340px, 38vw);
  z-index: 2;
  padding: 6px 0;
  transition: opacity 0.5s var(--sf-cine-ease), transform 0.5s var(--sf-cine-ease);
}

.sf-header__brand:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.sf-header__brand:hover .sf-header__logo-wrap {
  filter: drop-shadow(0 0 20px rgba(196, 165, 116, 0.22));
}

.sf-header__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.55s var(--sf-cine-ease);
}

.sf-header__logo {
  height: 56px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.65));
  transition: height 0.8s var(--sf-cine-ease-slow), filter 0.5s ease;
}

.sf-header.is-scrolled .sf-header__logo {
  height: 46px;
  max-width: 92px;
}

.sf-header__brand-divider {
  width: 1px;
  height: 42px;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(196, 165, 116, 0.45) 35%,
    rgba(255, 255, 255, 0.2) 65%,
    transparent 100%
  );
  opacity: 0.85;
  transition: height 0.8s var(--sf-cine-ease-slow), opacity 0.4s ease;
}

.sf-header.is-scrolled .sf-header__brand-divider {
  height: 36px;
}

.sf-header__brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.sf-header__brand-title {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.sf-header__brand-name {
  color: #ffffff;
}

.sf-header__brand-accent {
  color: var(--sf-brand-gold);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.sf-header__brand-tagline {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.sf-header__brand:hover .sf-header__brand-tagline {
  color: rgba(196, 165, 116, 0.85);
  letter-spacing: 0.26em;
}

.sf-header.is-scrolled .sf-header__brand-title {
  font-size: clamp(1.05rem, 1.6vw, 1.38rem);
}

/* Nav - thin cinematic type */
.sf-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sf-header__menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(28px, 4vw, 52px);
}

.sf-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  text-decoration: none;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 0;
  text-shadow: none;
  transition: color 0.5s var(--sf-cine-ease);
}

.sf-header__link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sf-brand-gold);
  transform: translateX(-50%) scale(0);
  opacity: 0;
  transition: transform 0.5s var(--sf-cine-ease), opacity 0.5s var(--sf-cine-ease);
}

.sf-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 165, 116, 0.7) 50%,
    transparent
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s var(--sf-cine-ease-slow);
}

.sf-header__link:hover {
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

.sf-header__link:hover::after,
.sf-header__item.is-active > .sf-header__link::after {
  transform: scaleX(1);
}

.sf-header__item.is-active > .sf-header__link {
  color: #fff;
}

.sf-header__item.is-active > .sf-header__link::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.sf-header__chevron {
  font-size: 8px;
  opacity: 0.45;
  margin-top: 1px;
  transition: transform 0.6s var(--sf-cine-ease);
}

.sf-header__item--mega.is-open .sf-header__chevron,
.sf-header__item--mega:hover .sf-header__chevron {
  transform: rotate(180deg);
  opacity: 0.7;
}

/* Actions: luxury CTA group */
.sf-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.sf-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition:
    color 0.5s var(--sf-cine-ease),
    border-color 0.5s var(--sf-cine-ease),
    background 0.5s var(--sf-cine-ease),
    box-shadow 0.5s var(--sf-cine-ease);
}

.sf-header__cta::after,
.sf-header__cta::before {
  display: none;
}

.sf-header__cta--project {
  padding: 10px 22px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-brand-gold, #c4a574) !important;
  background: transparent;
  border: 1px solid var(--sf-brand-gold, #c4a574);
  border-radius: 999px;
  box-shadow: none;
  white-space: nowrap;
}

.sf-header__cta--project:hover {
  color: #0d0d0d !important;
  background: var(--sf-brand-gold, #c4a574);
  border-color: var(--sf-brand-gold, #c4a574);
  box-shadow: 0 0 24px rgba(196, 165, 116, 0.25);
}

.sf-header__cta--project.is-active {
  color: #0d0d0d !important;
  background: var(--sf-brand-gold, #c4a574);
  border-color: var(--sf-brand-gold, #c4a574);
}

.sf-header__cta--primary {
  padding: 11px 26px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  text-shadow: none;
}

.sf-header__cta--primary:hover {
  color: #fff !important;
  border-color: var(--sf-brand-gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(196, 165, 116, 0.12);
}

.sf-header__cta--ghost {
  padding: 10px 0;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78) !important;
  border: none;
}

.sf-header__cta--ghost:hover {
  color: #fff !important;
}

.sf-header__cta-icon {
  font-size: 11px;
  opacity: 0.5;
}

.sf-header__cta-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
}

/* Mega - cinematic gallery panel */
.sf-header__item {
  position: relative;
}

/* Legacy arrow from custom.css - hide duplicate chevron */
.sf-header .services-trigger::after {
  content: none !important;
  display: none !important;
}

.sf-header__item--mega {
  z-index: 1305;
}

/* Invisible bridge so moving from link to panel does not close menu */
.sf-header__item--mega::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 14px;
  z-index: 1309;
}

/* -- Cinematic mega menu -- */
.sf-mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(1180px, calc(100vw - 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1310;
}

.sf-mega__panel {
  position: relative;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 80px rgba(196, 165, 116, 0.03);
  overflow: hidden;
}

.sf-mega__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(196, 165, 116, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(233, 32, 79, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.sf-header__item--mega.is-open .sf-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.sf-header__item--mega.is-open > .sf-header__link {
  color: #fff;
}

.sf-mega__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 0;
  min-height: 440px;
}

.sf-mega__feature {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
}

.sf-mega__feature-card {
  display: block;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.55s var(--sf-cine-ease), border-color 0.4s ease, box-shadow 0.45s ease;
}

.sf-mega__feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 165, 116, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.sf-mega__feature-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: #141416;
}

.sf-mega__feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--sf-cine-ease-slow), filter 0.6s ease;
}

.sf-mega__feature-card:hover .sf-mega__feature-media img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.sf-mega__feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.sf-mega__feature-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--sf-brand-muted);
  font-size: 2rem;
}

.sf-mega__feature-copy {
  display: block;
  padding: 12px 14px 14px;
  background: rgba(8, 8, 10, 0.92);
}

.sf-mega__feature-eyebrow {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sf-brand-gold);
  margin-bottom: 6px;
}

.sf-mega__feature-title {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #fff;
}

.sf-mega__studio {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-mega__studio-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, padding-left 0.4s var(--sf-cine-ease);
}

.sf-mega__studio-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  padding-left: 16px;
}

.sf-mega__studio-link i {
  font-size: 12px;
  color: var(--sf-brand-gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s var(--sf-cine-ease);
}

.sf-mega__studio-link:hover i {
  opacity: 1;
  transform: translateX(0);
}

.sf-mega__studio-label {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.sf-mega__studio-link--cta {
  margin-top: 6px;
  padding: 12px 12px;
  border-color: rgba(196, 165, 116, 0.35);
  background: rgba(196, 165, 116, 0.08);
}

.sf-mega__studio-link--cta .sf-mega__studio-label {
  color: #fff;
}

.sf-mega__main {
  display: flex;
  flex-direction: column;
  padding: 26px 34px 22px;
  min-width: 0;
}

.sf-mega__intro {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sf-mega__eyebrow {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sf-brand-gold);
  margin-bottom: 8px;
}

.sf-mega__title {
  margin: 0 0 10px;
  font-family: "Jost", sans-serif;
  font-size: clamp(1.25rem, 1.75vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
}

.sf-mega__desc {
  margin: 0;
  max-width: 54ch;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.sf-mega__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 30px;
  flex: 1;
}

.sf-mega__col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.sf-mega__col-line {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--sf-brand-gold), transparent);
  flex-shrink: 0;
}

.sf-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-mega__service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    transform 0.45s var(--sf-cine-ease);
}

.sf-mega__service:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(196, 165, 116, 0.22);
  transform: translateX(4px);
}

.sf-mega__service-thumb {
  width: 58px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #1a1a1c;
}

.sf-mega__service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--sf-cine-ease-slow);
}

.sf-mega__service:hover .sf-mega__service-thumb img {
  transform: scale(1.08);
}

.sf-mega__service-name {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.35s ease;
  position: relative;
}

.sf-mega__service-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--sf-brand-gold);
  transition: width 0.45s var(--sf-cine-ease);
}

.sf-mega__service:hover .sf-mega__service-name {
  color: #fff;
}

.sf-mega__service:hover .sf-mega__service-name::after {
  width: 100%;
}

.sf-mega__empty {
  color: var(--sf-brand-muted);
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
}

.sf-mega__foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sf-mega__all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sf-brand-gold);
  transition: color 0.4s ease, gap 0.4s ease;
}

.sf-mega__all:hover {
  color: #fff;
  gap: 18px;
}

.sf-mega__all i {
  font-size: 12px;
}

[data-mega-animate] {
  opacity: 1;
}

/* Menu toggle */
.sf-header__toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1302;
}

.sf-header__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sf-header__hamburger {
  position: relative;
  width: 28px;
  height: 10px;
}

.sf-header__hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.6s var(--sf-cine-ease), opacity 0.4s ease, top 0.6s var(--sf-cine-ease), width 0.4s ease;
}

.sf-header__hamburger span:nth-child(1) { top: 0; width: 100%; }
.sf-header__hamburger span:nth-child(2) { top: 4px; width: 70%; right: 0; left: auto; }
.sf-header__hamburger span:nth-child(3) { top: 8px; width: 100%; }

.sf-header__toggle:hover .sf-header__hamburger span:nth-child(2) {
  width: 100%;
}

.sf-header.is-menu-open .sf-header__hamburger span:nth-child(1) {
  top: 4px;
  transform: rotate(45deg);
}

.sf-header.is-menu-open .sf-header__hamburger span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.sf-header.is-menu-open .sf-header__hamburger span:nth-child(3) {
  top: 4px;
  transform: rotate(-45deg);
}

/* Fullscreen cinematic mobile */
.sf-header__backdrop {
  position: fixed;
  inset: 0;
  background: #050506;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1298;
  transition: opacity 0.7s var(--sf-cine-ease-slow), visibility 0.7s;
}

.sf-header.is-menu-open .sf-header__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sf-header__cinema {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--sf-header-h) + 20px) 24px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--sf-cine-ease-slow), visibility 0.6s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sf-header.is-menu-open .sf-header__cinema {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sf-header__cinema-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1301;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--sf-header-h);
  padding:
    max(10px, env(safe-area-inset-top))
    clamp(16px, 4vw, 24px)
    10px;
  box-sizing: border-box;
  pointer-events: none;
}

.sf-header__cinema-head > * {
  pointer-events: auto;
}

.sf-header__cinema-close {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 8px 12px;
  margin-left: auto;
  border: none;
  background: none;
  color: var(--sf-brand-muted);
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.sf-header__cinema-close:hover {
  color: #fff;
}

.sf-header__cinema-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 96px);
  text-decoration: none;
}

.sf-header__cinema-brand-logo {
  height: 44px;
  width: auto;
  max-width: 72px;
  flex-shrink: 0;
  object-fit: contain;
}

.sf-header__cinema-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.sf-header__cinema-brand .sf-header__brand-title {
  font-size: clamp(1rem, 4.2vw, 1.35rem);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-header__cinema-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
  max-width: 520px;
}

.sf-header__cinema-nav > li {
  margin: 0;
  padding: 0;
}

.sf-header__cinema-link {
  display: block;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Jost", sans-serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: color 0.5s var(--sf-cine-ease), letter-spacing 0.5s var(--sf-cine-ease);
}

.sf-header__cinema-link:hover {
  color: #fff;
  letter-spacing: 0.12em;
}

.sf-header__cinema-sub {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.6s var(--sf-cine-ease-slow);
}

.sf-header__cinema-sub.is-open {
  max-height: 1200px;
  padding-bottom: 12px;
}

.sf-header__cinema-sub a {
  display: block;
  padding: 8px 0;
  color: var(--sf-brand-muted);
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.4s ease;
}

.sf-header__cinema-sub a:hover {
  color: var(--sf-brand-gold);
}

.sf-header__cinema-group {
  margin-bottom: 8px;
}

.sf-header__cinema-group-title {
  display: block;
  padding: 8px 0 4px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sf-brand-gold);
}

.sf-header__cinema-group ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 12px;
}

.sf-header__cinema-foot {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sf-header__cinema-foot .sf-header__cta--project {
  padding: 13px 32px;
  font-size: 12px;
}

.sf-header__cinema-foot .sf-header__cta--primary {
  padding: 14px 36px;
  font-size: 13px;
}

.sf-header__cinema-link--project {
  color: var(--sf-brand-gold, #c4a574) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.sf-header__cinema-tagline {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sf-brand-muted);
  margin-top: 8px;
}

/* Desktop: actions on right, nav centered */
@media (min-width: 901px) {
  .sf-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .sf-header__brand {
    justify-self: start;
    max-width: 360px;
  }

  .sf-header__nav {
    justify-self: center;
  }

  .sf-header__actions-wrap {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .sf-header__toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --sf-header-h: 80px;
    --sf-header-h-scrolled: 72px;
  }

  .sf-header__nav--desktop,
  .sf-header__actions {
    display: none;
  }

  .sf-header__actions-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .sf-header__cta-divider {
    display: none;
  }

  .sf-header__toggle {
    display: inline-flex;
  }

  .sf-header__inner {
    display: flex;
  }

  .sf-header__brand {
    gap: 10px;
    max-width: 58vw;
  }

  .sf-header__logo {
    height: 46px;
    max-width: 64px;
  }

  .sf-header.is-scrolled .sf-header__logo {
    height: 40px;
    max-width: 56px;
  }

  .sf-header__brand-divider {
    height: 34px;
  }

  .sf-header__brand-tagline {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .sf-header.is-menu-open .sf-header__shell .sf-header__brand {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .sf-header.is-menu-open .sf-header__toggle {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 520px) {
  .sf-header__brand-tagline {
    display: none;
  }

  .sf-header__brand-divider {
    height: 28px;
  }

  .sf-header__brand {
    max-width: 52vw;
  }

  .sf-header__brand-title {
    font-size: 1rem;
  }

  .sf-header__cinema-head {
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .sf-header__cinema-brand {
    gap: 10px;
    max-width: calc(100% - 88px);
  }

  .sf-header__cinema-brand-logo {
    height: 40px;
    max-width: 64px;
  }

  .sf-header__cinema-close {
    padding-left: 8px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .sf-header__cinema-brand .sf-header__brand-tagline {
    display: none;
  }
}

@media (max-width: 1100px) {
  .sf-mega {
    width: min(960px, calc(100vw - 20px));
  }

  .sf-mega__layout {
    grid-template-columns: 248px 1fr;
    min-height: 420px;
  }

  .sf-mega__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }

  .sf-mega__service-name {
    font-size: 13px;
  }

  .sf-mega__service-thumb {
    width: 54px;
    height: 40px;
  }
}

@media (max-width: 900px) {
  .sf-mega {
    display: none;
  }
}

.sf-header__link:focus-visible,
.sf-header__cta:focus-visible,
.sf-header__toggle:focus-visible,
.sf-header__cinema-link:focus-visible,
.sf-mega__all:focus-visible,
.sf-header__cinema-close:focus-visible {
  outline: 1px solid var(--sf-brand-gold);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .sf-header,
  .sf-header__shell,
  .sf-header__inner,
  .sf-header__logo,
  .sf-header__link::after,
  .sf-mega__service,
  .sf-mega__feature-card,
  .sf-header__cta,
  .sf-mega__feature-media img,
  .sf-mega__service-thumb img {
    transition: none;
  }
}
