/* ============================================================
   ARCTURUS — Warm Espresso Luxury
   Palette + mood pulled from the 2026 photography:
   travertine ivory · warm wood/caramel · greige-taupe ·
   espresso charcoal · soft amber glow.
   ============================================================ */

:root {
  /* Core warm-espresso surfaces */
  --bg: #15110d;            /* deep warm espresso (page) */
  --bg-2: #1c1712;          /* raised panel */
  --surface: #241d16;       /* card base */

  /* Travertine light surfaces (for the light band) */
  --travertine: #e9e0d0;
  --travertine-2: #ddd0ba;

  /* Warm metallic accents */
  --accent: #c9a876;        /* caramel gold (primary) */
  --accent-2: #e4c391;      /* brighter amber glow */
  --accent-deep: #9c7748;   /* bronze */

  /* Type on dark */
  --text: #f4ece0;          /* warm off-white */
  --muted: rgba(244, 236, 224, 0.76);
  --soft: rgba(244, 236, 224, 0.58);
  --line: rgba(231, 221, 203, 0.14);

  /* Type on travertine */
  --ink: #2b2118;
  --ink-soft: rgba(43, 33, 24, 0.74);
  --ink-line: rgba(43, 33, 24, 0.16);

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --gutter: var(--space-6);
  --section-pad-y: var(--space-16);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Fonts — Montserrat across the whole site */
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-ui: 'Montserrat', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle warm grain/vignette over the whole page for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201, 168, 118, 0.06), transparent 60%),
    radial-gradient(100% 60% at 50% 120%, rgba(0, 0, 0, 0.35), transparent 55%);
}

main, nav, .footer { position: relative; z-index: 1; }

::selection { background: rgba(201, 168, 118, 0.28); color: #fff; }

/* ─────────────────────────── NAVIGATION ─────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.5rem var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000; /* solid colored header matching the logo's black field — one cohesive bar */
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: slideDown 0.6s var(--ease) both;
}

/* Solidify once the user scrolls past the hero fold */
nav.nav--scrolled {
  background: #000; /* same solid black; only the shadow/border + logo size shift on scroll */
  border-bottom-color: var(--line);
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

/* Logo wordmark image — preserve native 1280:332 ratio, height-only */
.nav-logo img {
  height: 66px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 0.4s var(--ease);
}
nav.nav--scrolled .nav-logo img { height: 56px; }

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}

/* Hide mobile-only controls by default (desktop) */
.hamburger { display: none; }
.mobile-menu { display: none; }

.nav-links a {
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.35s var(--ease);
}

.nav-links a:hover { color: var(--accent-2); }
.nav-links a:hover::after { width: 100%; }

/* ─────────────────────────── BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.95rem 1.9rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: 1px solid transparent;
}

.btn--solid {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #221a10;
  box-shadow: 0 10px 26px rgba(201, 168, 118, 0.22);
}
.btn--solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(201, 168, 118, 0.32);
}

.btn--ghost {
  background: rgba(244, 236, 224, 0.03);
  color: var(--text);
  border-color: rgba(231, 221, 203, 0.28);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent-2);
}

/* ─────────────────────────── HERO SECTION ─────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-16) var(--gutter) var(--space-8);
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  background: var(--bg);
  z-index: -3;
  filter: saturate(0.96) contrast(1.04) brightness(0.78);
}

/* Warm cinematic grade over the video */
.hero-color-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(110% 90% at 50% 30%, rgba(201, 168, 118, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(21, 17, 13, 0.20), rgba(21, 17, 13, 0.62));
  pointer-events: none;
}

/* Scrim for text contrast + grounding vignette at the base */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(21, 17, 13, 0.30) 0%, rgba(21, 17, 13, 0.10) 38%, rgba(21, 17, 13, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--space-4);
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(201, 168, 118, 0.34);
  border-radius: 100px;
  background: rgba(201, 168, 118, 0.06);
  backdrop-filter: blur(2px);
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-4);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
  animation: rise 0.9s var(--ease) 0.2s both;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: transparent;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
  animation: rise 0.9s var(--ease) 0.32s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-6);
  animation: rise 0.9s var(--ease) 0.44s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────── SECTIONS ─────────────────────────── */
.section {
  position: relative;
  padding: var(--section-pad-y) var(--gutter);
  overflow: hidden;
}

.section--bg { isolation: isolate; }

.section-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.section-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
  margin-top: var(--space-1);
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: var(--space-4);
  letter-spacing: -0.015em;
  max-width: 16ch;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  font-weight: 500;
  color: transparent;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.section-text {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--muted);
  line-height: 1.85;
  max-width: var(--container-narrow);
  font-weight: 300;
}

.accent-line {
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-deep));
  margin-bottom: var(--space-4);
  border-radius: 2px;
}

/* ─────────────────────────── MISSION SECTION ─────────────────────────── */
#mission .section-overlay {
  background:
    linear-gradient(105deg, rgba(18, 14, 10, 0.92) 0%, rgba(18, 14, 10, 0.74) 46%, rgba(18, 14, 10, 0.44) 100%),
    linear-gradient(0deg, rgba(18, 14, 10, 0.85), rgba(18, 14, 10, 0));
}

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  max-width: var(--container-narrow);
}

.pillar {
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.pillar-name {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.55rem;
}
.pillar-desc {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--soft);
}

/* ─────────────────────────── APPROACH (LIGHT BAND) ─────────────────────────── */
.approach {
  background: linear-gradient(170deg, var(--travertine) 0%, var(--travertine-2) 100%);
  color: var(--ink);
}
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(var(--space-4), 5vw, var(--space-12));
  align-items: center;
}
.approach-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(43, 33, 24, 0.28);
  position: relative;
}
.approach-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.approach-media:hover img { transform: scale(1.04); }

.approach .section-label { color: var(--accent-deep); }
.approach .section-title { color: var(--ink); }
.approach .section-text { color: var(--ink-soft); }
.approach .accent-line { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }

.principles {
  list-style: none;
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.principle {
  display: grid;
  grid-template-columns: minmax(110px, 0.3fr) 1fr;
  gap: var(--space-3);
  align-items: baseline;
  padding-top: var(--space-3);
  border-top: 1px solid var(--ink-line);
}
.principle-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 600;
}
.principle-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ─────────────────────────── PORTFOLIO GRID ─────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.portfolio-card {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 118, 0.55);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.46);
}

.portfolio-image,
.portfolio-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  display: block;
}

.portfolio-card:hover .portfolio-image,
.portfolio-card:hover .portfolio-video {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 11, 8, 0.92) 0%, rgba(15, 11, 8, 0.30) 42%, rgba(15, 11, 8, 0) 70%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: var(--space-3);
  z-index: 3;
}

/* Default state: title hidden, lifts in on hover */
.portfolio-cat {
  color: var(--accent-2);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 600;
  transform: translateY(8px);
  opacity: 0.85;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.portfolio-title {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: max-height 0.5s var(--ease), opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.portfolio-card:hover .portfolio-cat,
.portfolio-card:focus-within .portfolio-cat { transform: translateY(0); opacity: 1; }
.portfolio-card:hover .portfolio-title,
.portfolio-card:focus-within .portfolio-title {
  max-height: 3em;
  opacity: 1;
  transform: translateY(0);
}

/* Thin gold frame that fades in on hover for a crafted feel */
.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(228, 195, 145, 0.35);
  border-radius: calc(var(--radius-md) - 4px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 4;
}
.portfolio-card:hover::after { opacity: 1; }

/* ─────────────────────────── CONTACT SECTION ─────────────────────────── */
.section--contact {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201, 168, 118, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.contact-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-lede {
  text-align: center;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  width: 100%;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1;
  font-weight: 300;
  background: rgba(244, 236, 224, 0.02);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease), background 0.3s var(--ease);
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(201, 168, 118, 0.08);
  transform: translateY(-3px);
}

.contact-link svg {
  width: 17px;
  height: 17px;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}
.contact-link:hover svg { opacity: 1; }

/* ─────────────────────────── FOOTER ─────────────────────────── */
.footer {
  position: relative;
  background: #000; /* matches the logo's baked-in black field so it blends seamlessly */
  border-top: 1px solid var(--line);
  padding: var(--space-8) var(--gutter);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.footer-logo img {
  height: 76px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-copy {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 300;
}

/* ─────────────────────────── MOBILE NAV ─────────────────────────── */
.hamburger {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 6px;
  margin-left: var(--space-2);
  cursor: pointer;
}

.hamburger-line {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: rgba(18, 14, 10, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 150;
}

.mobile-menu.open { display: block; }

.mobile-nav-links {
  list-style: none;
  padding: var(--space-2);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.85rem 0.6rem;
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.mobile-nav-links a:hover {
  color: var(--accent-2);
  background: rgba(201, 168, 118, 0.06);
}

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
/* ── Tablet: ≤1024px ── */
@media (max-width: 1024px) {
  :root {
    --gutter: var(--space-4);
    --section-pad-y: var(--space-12);
  }
  .nav-logo img { height: 58px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-media { max-width: 440px; }
}

/* Switch to hamburger when inline links start to crowd */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
}

/* ── Phone: <768px ── */
@media (max-width: 767px) {
  :root {
    --gutter: var(--space-3);
    --section-pad-y: var(--space-8);
  }
  nav { padding: var(--space-2) var(--space-3); }
  .nav-logo img { height: 50px; }

  .hero { padding-top: var(--space-12); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  .pillars { grid-template-columns: 1fr; gap: var(--space-3); }

  .principle { grid-template-columns: 1fr; gap: 0.4rem; }

  .portfolio-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .portfolio-title { max-height: 3em; opacity: 1; transform: none; }
  .portfolio-cat { transform: none; opacity: 1; }

  .contact-links { flex-direction: column; }
  .contact-link { width: 100%; justify-content: center; }
}

/* ─────────────────────────── UTILITY: SCROLL REVEAL ─────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}
html:not(.js) .scroll-reveal {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────── ACCESSIBILITY: FOCUS ─────────────────────────── */
.nav-logo:focus-visible,
.nav-links a:focus-visible,
.mobile-nav-links a:focus-visible,
.contact-link:focus-visible,
.btn:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.contact-link:focus-visible { border-color: var(--accent); color: var(--accent-2); }
.nav-links a:focus-visible::after { width: 100%; }
.portfolio-card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ─────────────────────────── ACCESSIBILITY: REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scroll-reveal { opacity: 1 !important; transform: none !important; }
  .portfolio-card:hover,
  .portfolio-card:hover .portfolio-image,
  .portfolio-card:hover .portfolio-video,
  .approach-media:hover img,
  .contact-link:hover,
  .btn:hover { transform: none !important; }
}

/* ─────────────────────────── INTRO OVERLAY ─────────────────────────── */
/* Full-screen overlay that matches the header's black field so the white-on-black
   logo blends seamlessly. JS positions/animates the logo and removes the overlay. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #010101; /* exact match to the logo JPEG's black field so it merges with no visible box */
  opacity: 1;
  transition: opacity 0.55s var(--ease);
}
.intro.is-hiding { opacity: 0; }
.intro.is-done { display: none; }

.intro-logo {
  position: fixed;
  top: 0;
  left: 0;
  height: 66px;        /* overwritten precisely by JS to match the nav logo */
  width: auto;
  object-fit: contain;
  transform-origin: center center;
  opacity: 0;          /* fades in during the build */
  will-change: transform, opacity;
  pointer-events: none;
}

/* Repeat visit / reduced-motion (set by the inline <head> script) → never show, no flash */
.intro-skip .intro { display: none !important; }
