/* Local self-hosted fonts */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/libre-baskerville-regular-bold-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/libre-baskerville-regular-bold-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  src: url('/assets/fonts/libre-baskerville-italic-400-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200;
  src: url('/assets/fonts/outfit-200-300-400-500-600-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/outfit-200-300-400-500-600-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/outfit-200-300-400-500-600-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/outfit-200-300-400-500-600-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/outfit-200-300-400-500-600-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/playfair-display-400-500-600-700-800-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/playfair-display-400-500-600-700-800-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/playfair-display-400-500-600-700-800-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/playfair-display-400-500-600-700-800-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  src: url('/assets/fonts/playfair-display-400-500-600-700-800-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  src: url('/assets/fonts/playfair-display-italic-400-500-600-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  src: url('/assets/fonts/playfair-display-italic-400-500-600-latin.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  src: url('/assets/fonts/playfair-display-italic-400-500-600-latin.woff2') format('woff2');
  font-display: swap;
}


/* ═══════════════════════════════════════
   ALVFALK PARTNERS — SUPERPREMIUM v3.0
   Refined, cleaned, every block perfected
   ═══════════════════════════════════════ */

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

/* ── THEME SYSTEM ── */
[data-theme="dark"] {
  --bg: #07060A;
  --bg-warm: #0B0A0E;
  --surface: #100F15;
  --surface-2: #16151C;
  --surface-3: #1C1B23;
  --border: rgba(255,255,255,0.04);
  --border-hover: rgba(255,255,255,0.08);
  --text: #D4D0DE;
  --text-muted: #8A8598;
  --text-dim: #5C576A;
  --white: #FAF8FF;
  --gold: #B8935A;
  --gold-light: #D4B07A;
  --gold-dark: #8A6B3E;
  --gold-glow: rgba(184,147,90,0.08);
  --gold-glow-strong: rgba(184,147,90,0.15);
  --nav-bg: rgba(7,6,10,0.85);
  --loader-bg: #07060A;
  --overlay-bg: rgba(7,6,10,0.97);
}

[data-theme="light"] {
  --bg: #F6F4F0;
  --bg-warm: #EFECE6;
  --surface: #FFFFFF;
  --surface-2: #F0EDE7;
  --surface-3: #E8E5DF;
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(0,0,0,0.1);
  --text: #3A3632;
  --text-muted: #6B6560;
  --text-dim: #6F6962;
  --white: #1A1714;
  --gold: #9A7840;
  --gold-light: #9C763A;
  --gold-dark: #7A6030;
  --gold-glow: rgba(154,120,64,0.06);
  --gold-glow-strong: rgba(154,120,64,0.12);
  --nav-bg: rgba(246,244,240,0.88);
  --loader-bg: #F6F4F0;
  --overlay-bg: rgba(246,244,240,0.97);
}

:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --body-serif: 'Libre Baskerville', Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 10px; }
::selection { background: var(--gold); color: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.6s, color 0.6s;
  text-wrap: pretty;
}

img, svg { max-width: 100%; height: auto; }

/* Performance helpers */
.stats-section, .trusted-section, .expertise, .quote-section,
.about, .timeline-section, .clients-section, .approach,
.industries-section, .cta-band, .contact-section, footer,
.content-section, .subpage-cta {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

/* ── GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
}
[data-theme="light"] body::after { opacity: 0.015; }

/* ── PROGRESS BAR ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 99999;
  width: 0%;
  transition: width 0.05s linear;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 20px; height: 20px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.15s var(--ease-out), opacity 0.3s, background 0.3s,
    width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out);
  mix-blend-mode: difference;
}
.cursor.hovering {
  width: 50px; height: 50px;
  margin: -15px 0 0 -15px;
  background: rgba(184,147,90,0.1);
}

/* ── LOADER ── */
.loader {
  position: fixed; inset: 0;
  background: var(--loader-bg);
  z-index: 50000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { height: 50px; }
.loader-logo img { height: 50px; transition: filter 0.4s; }
[data-theme="dark"] .loader-logo img { filter: invert(1); }
[data-theme="light"] .loader-logo img { filter: none; }
.loader-line {
  width: 60px; height: 1px;
  background: var(--border-hover);
  margin-top: 2rem;
  position: relative; overflow: hidden;
}
.loader-line::after {
  content: '';
  position: absolute;
  left: -60px; top: 0;
  width: 60px; height: 1px;
  background: var(--gold);
  animation: loader-slide 1.2s ease-in-out infinite;
}
@keyframes loader-slide { 0% { left: -60px; } 100% { left: 60px; } }

/* ── THEME TOGGLE + BACK TO TOP ── */
.theme-toggle, .back-top {
  position: fixed; z-index: 9000;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.theme-toggle { bottom: 2rem; right: 2rem; }
.back-top {
  bottom: 2rem; right: 5rem;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
}
.back-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.theme-toggle:hover, .back-top:hover {
  border-color: var(--gold);
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.theme-toggle svg, .back-top svg {
  width: 20px; height: 20px;
  color: var(--gold);
  transition: transform 0.5s var(--ease-spring);
}
.theme-toggle:hover svg { transform: rotate(30deg); }
.back-top svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s, transform 0.5s var(--ease-spring);
}
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg); }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 5000;
  padding: 2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.45s var(--ease-out),
              background 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out),
              backdrop-filter 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out);
}
.nav.scrolled {
  padding: 1rem 4rem;
  background: var(--nav-bg);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo img {
  height: 38px; width: auto;
  transition: filter 0.4s, transform 0.3s var(--ease-out);
}
[data-theme="dark"] .nav-logo img { filter: invert(1); }
[data-theme="light"] .nav-logo img { filter: none; }
.nav-logo:hover img { transform: translateY(-1px) scale(1.01); }

.nav-links {
  display: flex; gap: 3rem;
  list-style: none; align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.35s var(--ease-out);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta-link {
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.4s var(--ease-out);
}
.nav-cta-link:hover {
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.nav-cta-link::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  width: 28px; height: 20px;
  position: relative; cursor: pointer; z-index: 5001;
}
.hamburger span {
  position: absolute; left: 0; width: 100%;
  height: 1px; background: var(--white); transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; }
.hamburger span:nth-child(3) { top: 100%; }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(40px);
  z-index: 4999;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay a {
  font-family: var(--serif);
  font-size: 2.2rem; font-weight: 400;
  color: var(--white); text-decoration: none;
  letter-spacing: 0.05em; transition: color 0.3s;
}
.mobile-overlay a:hover { color: var(--gold); }

/* ── HERO ── */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 0 4rem;
}

/* Case page hero — no portrait, no 100vh needed */
body.case-page .hero,
.hero--case {
  min-height: auto;
  padding: 10rem 4rem 5rem;
}
body.case-page .hero-scroll,
.hero--case .hero-scroll {
  display: none;
}
body.case-page .hero-geo,
.hero--case .hero-geo {
  display: none;
}
.hero-atmosphere { position: absolute; inset: 0; z-index: 0; }
.hero-atmosphere::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(184,147,90,0.06) 0%, transparent 60%);
  animation: breathe 8s ease-in-out infinite;
}
.hero-atmosphere::after {
  content: '';
  position: absolute; bottom: -30%; left: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(90,70,140,0.03) 0%, transparent 60%);
  animation: breathe 10s ease-in-out infinite reverse;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.hero-particles { position: absolute; inset: 0; z-index: 1; }

.hero-geo { position: absolute; z-index: 1; pointer-events: none; }
.hero-geo-1 {
  top: 15%; right: 8%;
  width: 300px; height: 300px;
  border: 1px solid var(--border); border-radius: 50%;
  animation: rotate-slow 60s linear infinite;
}
.hero-geo-2 {
  top: 20%; right: 12%;
  width: 200px; height: 200px;
  border: 1px solid var(--border); border-radius: 50%;
  animation: rotate-slow 40s linear infinite reverse;
}
.hero-geo-3 {
  bottom: 15%; right: 15%;
  width: 1px; height: 150px;
  background: linear-gradient(to bottom, var(--gold-dark), transparent);
  opacity: 0.3;
}
@keyframes rotate-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── HERO PORTRAIT ── */
.hero-portrait {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 55%;
  max-width: 750px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: heroPortraitReveal 2s 0.5s var(--ease-out) forwards;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.65;
  filter: contrast(1.05) brightness(1);
}
@keyframes heroPortraitReveal {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto; width: 100%;
  padding-top: 4rem;
}
.hero-label {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3rem;
  display: flex; align-items: center; gap: 1.5rem;
  opacity: 0;
  animation: heroFade 1.2s 0.1s var(--ease-out) forwards;
}
.hero-label::before {
  content: ''; display: block;
  width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 400; line-height: 1.05;
  color: var(--white);
  margin-bottom: 2.5rem; max-width: 900px;
  transition: color 0.4s;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  animation: lineReveal 1.2s var(--ease-out) forwards;
  padding-bottom: 0.05em;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) .line-inner { animation-delay: 0.5s; }
.hero-title em {
  font-style: italic; color: var(--gold-light);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute; bottom: 0.08em; left: 0; right: 0;
  height: 1px; background: var(--gold); opacity: 0.3;
}
@keyframes lineReveal { to { transform: translateY(0); } }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-body {
  font-family: var(--body-serif);
  font-size: 1.05rem; font-weight: 400;
  color: var(--text-muted);
  max-width: 520px; line-height: 1.9;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: heroFade 1.2s 0.7s var(--ease-out) forwards;
}
.hero-actions {
  display: flex; gap: 2rem; align-items: center;
  opacity: 0;
  animation: heroFade 1.2s 0.9s var(--ease-out) forwards;
}

/* Hero at ultrawide — keep 3 lines by scaling container with font */
@media (min-width: 1200px) {
  .hero-title {
    font-size: clamp(4rem, 5.5vw, 6.2rem);
    line-height: 1.02;
    max-width: 1100px;
  }
}
@media (min-width: 1600px) {
  .hero-title {
    font-size: clamp(5rem, 5.2vw, 6.5rem);
    max-width: 1200px;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 1rem;
  text-decoration: none;
  font-family: var(--sans); font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  font-size: 0.72rem;
  transition: all 0.5s var(--ease-out);
  position: relative;
}
.btn-gold {
  padding: 1.1rem 2.8rem;
  background: var(--gold); color: var(--bg);
  overflow: hidden; border: none; cursor: pointer;
  will-change: transform;
}
.btn-gold::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-gold:hover::after { transform: translateX(100%); }
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(184,147,90,0.3), 0 5px 15px rgba(184,147,90,0.2);
  background: var(--gold-light);
}
.btn-gold .btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
  font-size: 1rem;
}
.btn-gold:hover .btn-arrow { transform: translateX(5px); }

.btn-line {
  color: var(--text-muted);
  padding: 1.1rem 0; gap: 0.75rem;
}
.btn-line::before {
  content: ''; display: block;
  width: 30px; height: 1px;
  background: var(--text-dim);
  transition: all 0.4s var(--ease-out);
}
.btn-line:hover { color: var(--white); gap: 1rem; }
.btn-line:hover::before { width: 50px; background: var(--gold); }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute; bottom: 3rem; left: 4rem;
  display: flex; align-items: center; gap: 1.5rem;
  opacity: 0;
  animation: heroFade 1s 2.2s var(--ease-out) forwards;
}
.hero-scroll-text {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-dim);
  writing-mode: vertical-lr;
}
.hero-scroll-line {
  width: 1px; height: 50px;
  position: relative; overflow: hidden;
  background: var(--border-hover);
}
.hero-scroll-line::after {
  content: '';
  position: absolute; top: -50px; left: 0;
  width: 1px; height: 50px; background: var(--gold);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0% { top: -50px; } 50% { top: 50px; } 50.01%, 100% { top: -50px; }
}


/* ═══════════════════════════════════════
   HERO BRIDGE — Credibility Band
   Refined: sharper corners, cleaner grid
   ═══════════════════════════════════════ */
.hero-bridge { padding: 1.4rem 0 2.4rem; position: relative; }

.hero-bridge-panel {
  position: relative; overflow: hidden;
  padding: 2.5rem clamp(1.4rem, 3vw, 2.4rem) 2rem;
  border: 1px solid rgba(212,170,99,0.18);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(17,15,22,0.78) 0%, rgba(12,10,16,0.92) 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .hero-bridge-panel {
  background: linear-gradient(180deg, rgba(250,247,242,0.96) 0%, rgba(243,238,230,0.98) 100%);
  border-color: rgba(212,170,99,0.24);
  box-shadow: 0 24px 60px rgba(28,22,14,0.08), inset 0 1px 0 rgba(255,255,255,0.72);
}

.hero-bridge-glow {
  position: absolute; inset: auto auto -30% 50%;
  width: 56%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212,170,99,0.12) 0%, rgba(212,170,99,0.04) 35%, rgba(212,170,99,0) 72%);
  pointer-events: none;
}
[data-theme="light"] .hero-bridge-glow {
  background: radial-gradient(circle, rgba(212,170,99,0.12) 0%, rgba(212,170,99,0.05) 34%, rgba(212,170,99,0) 72%);
}

.hero-bridge-head { position: relative; z-index: 1; margin-bottom: 1.8rem; }
.hero-bridge-head .eyebrow { justify-content: center; }

.hero-bridge-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; align-items: start;
}
.hero-bridge-stat {
  text-align: center;
  padding: 1.4rem 1.5rem;
  position: relative;
}
.hero-bridge-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%;
  width: 1px;
  background: var(--border-hover);
}
.hero-bridge-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.92; letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 0 30px rgba(255,255,255,0.03);
}
[data-theme="light"] .hero-bridge-num { color: #221b14; text-shadow: none; }
[data-theme="light"] .hero-bridge-stat:not(:last-child)::after {
  background: rgba(0,0,0,0.08);
}

.hero-bridge-label {
  display: block; margin-top: 0.7rem;
  font-size: 0.88rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
}
[data-theme="light"] .hero-bridge-label { color: rgba(34,27,20,0.72); }

.hero-bridge-divider {
  position: relative; z-index: 1;
  height: 1px; margin: 1.3rem auto 1.2rem;
  max-width: 900px;
  background: linear-gradient(90deg,
    rgba(212,170,99,0) 0%, rgba(212,170,99,0.32) 18%,
    rgba(212,170,99,0.55) 50%, rgba(212,170,99,0.32) 82%,
    rgba(212,170,99,0) 100%);
}
[data-theme="light"] .hero-bridge-divider {
  background: linear-gradient(90deg,
    rgba(212,170,99,0) 0%, rgba(212,170,99,0.22) 18%,
    rgba(212,170,99,0.42) 50%, rgba(212,170,99,0.22) 82%,
    rgba(212,170,99,0) 100%);
}

.hero-bridge-trust { position: relative; z-index: 1; text-align: center; }
.hero-bridge-trust-label {
  font-size: 0.82rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 1rem;
}
[data-theme="light"] .hero-bridge-trust-label { color: rgba(34,27,20,0.72); }

.hero-bridge-logos {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 1.2rem 2rem;
}
.hero-bridge-logo {
  height: 32px; width: auto;
  opacity: 0.82;
  filter: grayscale(100%) brightness(1.08);
  transition: opacity 0.35s var(--ease-out), filter 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  flex-shrink: 0;
}
.hero-bridge-logo:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1.12);
  transform: translateY(-1px);
}
[data-theme="light"] .hero-bridge-logo { opacity: 0.92; filter: grayscale(100%) brightness(0.16) contrast(1.08); }
[data-theme="light"] .hero-bridge-logo:hover { filter: grayscale(0%) brightness(0.12) contrast(1.1); opacity: 1; }


/* ═══════════════════════════════════════
   SECTION BASICS
   ═══════════════════════════════════════ */
section { position: relative; }
.pad { padding: 9rem 4rem; }
.inner { max-width: 1400px; margin: 0 auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: ''; width: 35px; height: 1px; background: var(--gold);
}

/* Centered eyebrow variant */
.eyebrow-center { justify-content: center; }
.eyebrow-center::before { display: none; }

.sec-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400; color: var(--white);
  line-height: 1.15; margin-bottom: 1.5rem;
  transition: color 0.4s;
  text-wrap: balance;
}
.sec-text {
  font-family: var(--body-serif);
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.85; max-width: 560px;
}

/* Section header centered layout (replaces inline centering styles) */
.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header-center .sec-text {
  max-width: 760px;
  margin: 1rem auto 0;
  text-align: center;
}
.section-header-center .sec-title {
  text-align: center;
}


/* ═══════════════════════════════════════
   EXPERTISE CARDS
   ═══════════════════════════════════════ */
.expertise { background: var(--bg); transition: background 0.6s; }
.expertise-top {
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .expertise-top { max-width: none; }
  .expertise-top .reveal { text-align: left; max-width: none; }
  .expertise-top .eyebrow { justify-content: flex-start; }
  .expertise-top .sec-title { max-width: 860px; }
  .expertise-top .sec-text { max-width: 620px; }
}

.cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
}
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  padding: 3rem;
  position: relative; overflow: hidden;
  transition: all 0.6s var(--ease-out), transform 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translateY(0);
  backface-visibility: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.card:hover {
  background: var(--surface-3);
  box-shadow: 0 14px 34px rgba(0,0,0,0.10);
}
.card:hover::before { transform: scaleX(1); }
.card-shine {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(184,147,90,0.06), transparent 60%);
}
.card:hover .card-shine { opacity: 1; }
.card-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem; color: var(--gold);
  transition: all 0.5s var(--ease-out);
}
.card:hover .card-icon { border-color: var(--gold); background: var(--gold-glow); }
.card-icon img, .card-icon svg {
  width: 22px; height: 22px; display: block;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.card:hover .card-icon img, .card:hover .card-icon svg {
  transform: translateY(-1px) scale(1.04);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 400;
  color: var(--white); margin-bottom: 1rem;
  transition: color 0.4s;
}
.card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }


/* ═══════════════════════════════════════
   QUOTE
   ═══════════════════════════════════════ */
.quote-section {
  padding: 8rem 4rem;
  background: var(--bg-warm);
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.6s;
}
.quote-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}
.quote-inner { max-width: 850px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.quote-mark {
  font-family: var(--serif);
  font-size: 8rem; line-height: 0.5;
  color: var(--gold); opacity: 0.25;
  margin-bottom: 2rem; display: block;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400; font-style: italic;
  color: var(--white); line-height: 1.6;
  margin-bottom: 3rem;
  transition: color 0.4s;
}
.quote-text .word {
  display: inline-block; opacity: 0.15;
  transition: opacity 0.5s;
}
.quote-text .word.lit { opacity: 1; }
.quote-author {
  display: inline-flex; flex-direction: column;
  align-items: center; gap: 0.4rem;
}
.quote-author::before {
  content: ''; width: 30px; height: 1px;
  background: var(--gold); margin-bottom: 1rem;
}
.quote-author-portrait {
  width: 70px; height: 70px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-hover);
  margin-bottom: 0.5rem;
}
.quote-name {
  font-family: var(--sans);
  font-size: 0.82rem; font-weight: 500;
  color: var(--white); letter-spacing: 0.1em;
  transition: color 0.4s;
}
.quote-role {
  font-family: var(--sans);
  font-size: 0.72rem; color: var(--text-dim);
  letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════
   CASES / CLIENTS — Upgraded
   ═══════════════════════════════════════ */
.clients-section { background: var(--bg); transition: background 0.6s; }

.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3rem;
  position: relative; overflow: hidden;
  transition: background 0.6s var(--ease-out),
              border-color 0.6s var(--ease-out),
              box-shadow 0.6s var(--ease-out);
  backface-visibility: hidden;
}
.client-card:hover {
  border-color: rgba(184,147,90,0.15);
  background: var(--surface-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 0 30px var(--gold-glow);
}
.client-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark), transparent);
  opacity: 0.3; transition: opacity 0.6s var(--ease-out);
}
.client-card:hover::before { opacity: 0.7; }
.client-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  opacity: 0; transition: opacity 0.6s var(--ease-out);
}
.client-card:hover::after { opacity: 0.6; }

/* Shine effect on client cards */
.client-card-shine {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(184,147,90,0.04), transparent 60%);
}
.client-card:hover .client-card-shine { opacity: 1; }

/* Case card specific elements */
.case-card-title {
  font-family: var(--sans);
  font-size: 1.2rem; font-weight: 500;
  color: var(--white); margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
  transition: color 0.4s;
}
.case-card-subtitle {
  font-family: var(--sans);
  font-size: 0.72rem; color: var(--text-dim);
  margin-bottom: 1rem;
}
.case-card-body {
  font-family: var(--body-serif);
  font-size: 0.92rem; font-style: normal;
  color: var(--text-muted); line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Case metrics grid */
.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.case-metrics > div {
  text-align: center;
}
.case-metrics-3 { grid-template-columns: repeat(3, 1fr); }
.case-metrics-5 { grid-template-columns: repeat(5, 1fr); }

.case-num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 300; color: var(--gold-light);
  line-height: 1; margin-bottom: 0.75rem;
  display: inline-block;
  text-shadow: 0 0 40px var(--gold-glow-strong);
}
.stat-label {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
}

/* Case card spacing */
.case-card-spaced { margin-bottom: 2rem; }

/* Case card CTA */
.case-card-cta { margin-top: 2rem; }

/* H&S compact metrics */
.hs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
  text-align: center;
}
.hs-metric-value {
  font-family: var(--serif);
  font-size: 1.5rem; color: var(--gold); line-height: 1;
  display: block;
}
.hs-metric-label {
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  margin-top: 0.35rem;
  display: block;
}
.hs-cta { margin-top: 1.5rem; }


/* ═══════════════════════════════════════
   PODCAST — Visual differentiation
   ═══════════════════════════════════════ */
.podcast-section { background: var(--bg); transition: background 0.6s; }

.podcast-card {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

/* Podcast card gets a subtle warm accent border */
.podcast-card .client-card {
  border-color: rgba(184,147,90,0.12);
}
.podcast-card .client-card::before {
  background: linear-gradient(to bottom, var(--gold-light), var(--gold), transparent);
  opacity: 0.5;
}

.podcast-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.podcast-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
}


/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about { background: var(--bg); transition: background 0.6s; }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 6rem; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; object-position: center top;
  filter: grayscale(10%) contrast(1.05) brightness(0.97);
  display: block; position: relative; z-index: 2;
  transition: filter 0.6s, transform 0.8s var(--ease-out);
}
.about-img-frame {
  position: relative; overflow: hidden; border-radius: 2px;
}
.about-img-frame:hover .about-img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.05) brightness(1);
}
.about-img-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 15%);
  z-index: 3; pointer-events: none;
}
.about-deco { position: absolute; z-index: 1; }
.about-deco-1 {
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border-top: 1px solid var(--gold); border-right: 1px solid var(--gold);
  opacity: 0.25;
}
.about-deco-2 {
  bottom: 30px; left: -20px;
  width: 80px; height: 80px;
  border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold);
  opacity: 0.25;
}
.about-text-block .sec-text { margin-bottom: 1.5rem; }
.about-divider { width: 100%; height: 1px; background: var(--border); margin: 2.5rem 0; }
.about-facts { display: flex; flex-direction: column; gap: 1.2rem; }
.about-fact { display: flex; gap: 1rem; align-items: flex-start; }
.about-fact-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 0.6rem; flex-shrink: 0; }
.about-fact p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.about-fact strong { color: var(--white); font-weight: 500; transition: color 0.4s; }


/* ═══════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════ */
.timeline-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.6s;
}
.timeline {
  position: relative; max-width: 800px;
  margin: 3rem auto 0; padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark), transparent);
}
.tl-item { position: relative; padding-bottom: 4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute; left: -3rem; top: 0.5rem;
  width: 9px; height: 9px;
  background: var(--gold); border-radius: 50%;
  transform: translateX(-4px);
  box-shadow: 0 0 0 4px var(--surface);
  transition: all 0.4s;
}
.tl-item:hover::before {
  box-shadow: 0 0 0 4px var(--surface), 0 0 15px var(--gold);
  transform: translateX(-4px) scale(1.3);
}
.tl-period {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.tl-title {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 400;
  color: var(--white); margin-bottom: 0.6rem;
  transition: color 0.4s;
}
.tl-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }


/* ═══════════════════════════════════════
   APPROACH
   ═══════════════════════════════════════ */
.approach {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.6s;
}
.approach-head { text-align: center; margin-bottom: 5rem; }
.approach-head .sec-text { max-width: 760px; margin: 1rem auto 0; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.step {
  background: var(--surface); padding: 3.5rem 3rem;
  position: relative; transition: all 0.5s var(--ease-out);
}
.step:hover { background: var(--surface-2); }
.step-num {
  font-family: var(--serif);
  font-size: 5rem; font-weight: 300;
  color: var(--gold); opacity: 0.35;
  line-height: 1; margin-bottom: 1.5rem;
  transition: opacity 0.5s;
}
.step:hover .step-num { opacity: 0.50; }
.step h3 {
  font-family: var(--serif);
  font-size: 1.3rem; font-weight: 400;
  color: var(--white); margin-bottom: 1rem;
  transition: color 0.4s;
}
.step p { font-size: 0.88rem; color: var(--text); line-height: 1.75; }


/* ═══════════════════════════════════════
   IDROTT TEASER — Harmonized
   ═══════════════════════════════════════ */
.idrott-teaser .client-card {
  max-width: 1080px;
  margin: 0 auto;
  position: relative; overflow: hidden;
}
.idrott-teaser .client-card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(194,161,106,0.08), transparent 42%);
  pointer-events: none;
}
.idrott-teaser .section-header-center {
  position: relative; z-index: 1;
  margin-bottom: 2rem;
}
.idrott-title {
  font-size: clamp(2.8rem, 4.4vw, 4.9rem);
  line-height: 0.96;
  text-wrap: balance;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 1200px) {
  .idrott-title { font-size: clamp(2.6rem, 4.05vw, 4.2rem); }
}

.sport-cards {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin: 0 0 2rem;
}
.sport-card {
  text-align: center;
  padding: 1.1rem 1rem;
  border: 1px solid var(--border-hover);
  border-radius: 2px;
  background: rgba(255,255,255,0.03);
  text-decoration: none; display: block;
  transition: transform 0.28s ease, border-color 0.28s ease,
              box-shadow 0.28s ease, background 0.28s ease;
}
.sport-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(194,161,106,0.55);
  box-shadow: 0 22px 46px rgba(0,0,0,0.22);
  background: rgba(255,255,255,0.055);
}
.sport-card-name {
  font-family: var(--serif);
  font-size: 1.25rem; color: var(--gold); line-height: 1.1;
}
.sport-card-label { margin-top: 0.45rem; }

.idrott-cta {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
}


/* ═══════════════════════════════════════
   CTA BAND — Refined
   ═══════════════════════════════════════ */
.cta-band {
  padding: 6rem 4rem;
  text-align: center;
  position: relative; overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.6s;
}
.cta-band::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--gold-glow-strong), transparent 70%);
  pointer-events: none;
}
.cta-band .sec-title {
  font-size: clamp(2.8rem, 3.7vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 40ch;
  margin: 0 auto 1rem;
  text-wrap: balance;
}
.cta-band .sec-text { margin: 0 auto 2.5rem; text-align: center; }
.cta-band .btn-gold { margin-top: 1rem; }


/* ═══════════════════════════════════════
   CONTACT — Improved form interactions
   ═══════════════════════════════════════ */
.contact-section { background: var(--bg); transition: background 0.6s; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem;
}
.contact-details { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 2rem; }
.contact-item label {
  display: block; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.4rem;
}
.contact-item span, .contact-item a {
  font-family: var(--serif);
  font-size: 1.15rem; color: var(--white);
  text-decoration: none; transition: color 0.3s;
}
.contact-item a:hover { color: var(--gold); }
.contact-item-muted { opacity: 0.72; }

.contact-form-wrap {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  padding: 1rem 1.2rem;
  color: var(--white);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 300;
  outline: none;
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.field input:hover, .field textarea:hover {
  border-color: rgba(184,147,90,0.25);
  background: var(--surface-2);
}
.field input:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder {
  color: var(--text-dim); font-weight: 300;
}

.form-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

#formStatus { font-size: 0.85rem; margin-top: 0.5rem; }
#formStatus.success { color: #5cb85c; }
#formStatus.error { color: #d9534f; }


/* ═══════════════════════════════════════
   FOOTER — Signature
   ═══════════════════════════════════════ */
footer {
  padding: 4rem 4rem 3rem;
  border-top: 1px solid rgba(184,147,90,0.16);
  background:
    radial-gradient(ellipse at center, rgba(184,147,90,0.035), transparent 65%),
    var(--bg);
  transition: background 0.6s;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 2rem;
}
.footer-logo a { display: flex; }
.footer-logo img { height: 28px; width: auto; }
[data-theme="dark"] .footer-logo img { filter: invert(1); }
[data-theme="light"] .footer-logo img { filter: none; }
.footer-copy {
  font-size: 0.72rem; color: var(--text-dim);
  width: 100%; text-align: center; margin-top: 1rem;
}
.footer-links { display: flex; gap: 2.2rem; align-items: center; }
.footer-links a {
  font-size: 0.72rem; color: var(--text-dim);
  text-decoration: none; letter-spacing: 0.08em;
  transition: color 0.3s; position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -0.35rem;
  width: 100%; height: 1px;
  background: rgba(184,147,90,0.45);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.footer-links a:hover { color: var(--gold); }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }


/* ═══════════════════════════════════════
   OM MATHS — Integrated page styles
   Uses shared type scale & design tokens
   ═══════════════════════════════════════ */

/* ── SUBPAGE HERO ── */
.subpage-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 4rem 6rem;
}
.subpage-hero-atmosphere {
  position: absolute; inset: 0; z-index: 0;
}
.subpage-hero-atmosphere::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(184,147,90,0.06) 0%, transparent 60%);
  animation: breathe 8s ease-in-out infinite;
}

.subpage-hero-text {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  max-width: 52%;
  padding-top: 4rem;
}

/* Portrait — same solution as homepage hero */
.subpage-hero-img {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 55%;
  max-width: 750px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: subpagePortraitReveal 2s 0.5s var(--ease-out) forwards;
}
.subpage-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.65;
  filter: contrast(1.05) brightness(1);
}
@keyframes subpagePortraitReveal {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.3s, transform 0.3s;
}
.subpage-back:hover { color: var(--gold); transform: translateX(-2px); }
.subpage-back svg { width: 16px; height: 16px; }

.subpage-subtitle {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroFade 1.2s 0.1s var(--ease-out) forwards;
}

.subpage-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  transition: color 0.4s;
  opacity: 0;
  animation: heroFade 1.2s 0.25s var(--ease-out) forwards;
}

.subpage-lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroFade 1.2s 0.4s var(--ease-out) forwards;
}

.subpage-intro {
  font-family: var(--body-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  opacity: 0;
  animation: heroFade 1.2s 0.55s var(--ease-out) forwards;
}


.subpage-intro + .subpage-intro {
  margin-top: 1rem;
}


/* ── CONTENT SECTIONS ── */
.content-section {
  padding: 6rem 4rem;
  position: relative;
  transition: background 0.6s;
}
.content-section--bg { background: var(--bg); }
.content-section--surface { background: var(--surface); }

.content-inner {
  max-width: 720px;
  margin: 0 auto;
}

.content-h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 2rem;
  transition: color 0.4s;
  text-wrap: balance;
}

.content-p {
  font-family: var(--body-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.content-p:last-child { margin-bottom: 0; }
.content-p strong { color: var(--white); font-weight: 400; transition: color 0.4s; }


/* ── INLINE STATS (reuses case-num / stat-label tokens) ── */
.content-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.content-stat {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.content-stat:hover {
  border-color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.content-stat-num {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
  text-shadow: 0 0 40px var(--gold-glow-strong);
}
.content-stat-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ── PULL QUOTE ── */
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.65;
  border-left: 2px solid var(--gold-dark);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  transition: color 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.pull-quote::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--gold);
  transition: height 0.8s var(--ease-out);
}
.pull-quote.vis::before { height: 100%; }


/* ── ROLES GRID ── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.role-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.role-card:hover {
  border-color: var(--gold-dark);
  background: rgba(255,255,255,0.035);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.role-card:hover::before { transform: scaleX(1); }
.role-card--wide {
  grid-column: 1 / -1;
}
.role-card-shine {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(184,147,90,0.06), transparent 60%);
}
.role-card:hover .role-card-shine { opacity: 1; }
.role-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.role-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  transition: color 0.4s;
}
.role-desc {
  font-family: var(--body-serif);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ── COMPACT TIMELINE (om-maths) ── */
.compact-timeline {
  margin-top: 2rem;
  position: relative;
  padding-left: 2.5rem;
}
.compact-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--border), transparent);
}
.compact-tl-item {
  position: relative;
  padding: 0 0 3rem 2rem;
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.compact-tl-item.vis {
  opacity: 1;
  transform: translateX(0);
}
.compact-tl-item:nth-child(2) { transition-delay: 0.1s; }
.compact-tl-item:nth-child(3) { transition-delay: 0.2s; }
.compact-tl-item:nth-child(4) { transition-delay: 0.3s; }
.compact-tl-item:nth-child(5) { transition-delay: 0.4s; }
.compact-tl-item:nth-child(6) { transition-delay: 0.5s; }
.compact-tl-item:last-child { padding-bottom: 0; }
.compact-tl-item::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: 0.35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--surface), 0 0 12px var(--gold-glow-strong);
  transition: box-shadow 0.4s, transform 0.4s;
}
.compact-tl-item:hover::before {
  box-shadow: 0 0 0 3px var(--surface), 0 0 20px var(--gold);
  transform: scale(1.3);
}
.compact-tl-period {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.compact-tl-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  transition: color 0.4s;
}
.compact-tl-desc {
  font-family: var(--body-serif);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}


/* ── VALUES GRID ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  padding: 2rem 1.5rem;
  border-left: 2px solid var(--gold-dark);
  position: relative;
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}
.value-card:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}
.value-card::after {
  content: '';
  position: absolute;
  left: -2px; top: 0;
  width: 2px; height: 0%;
  background: var(--gold-light);
  transition: height 0.6s var(--ease-out);
}
.value-card:hover::after { height: 100%; }
.value-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  transition: color 0.4s;
}
.value-text {
  font-family: var(--body-serif);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}


/* ── SECTION DIVIDER ── */
.section-divider {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  opacity: 0.4;
}

/* ── INLINE QUOTE BREAK (used inside content sections) ── */
.quote-break {
  text-align: center;
  padding: 2rem 0 4rem;
  position: relative;
}
.quote-break::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}
.quote-break .quote-mark {
  margin-bottom: 1.5rem;
}
.quote-break .quote-text {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}


/* ── SUBPAGE CTA ── */
.subpage-cta {
  padding: 6rem 4rem;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  transition: background 0.6s;
  position: relative;
  overflow: hidden;
}
.subpage-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 250px;
  background: radial-gradient(ellipse, var(--gold-glow-strong), transparent 70%);
  pointer-events: none;
}
.subpage-cta-inner {
  position: relative; z-index: 1;
}
.subpage-cta .content-h2 { margin-bottom: 1rem; }
.subpage-cta .content-p {
  max-width: 540px;
  margin: 0 auto 2rem;
  text-align: center;
}


/* ── LIGHT MODE — Subpage contrast fixes ── */
[data-theme="light"] .content-stat { background: var(--surface); border-color: var(--border-hover); }
[data-theme="light"] .content-stat-label { color: var(--text-muted); }
[data-theme="light"] .compact-tl-period { color: var(--gold); }
[data-theme="light"] .role-label { color: var(--gold); }
[data-theme="light"] .role-card { background: var(--surface); }
[data-theme="light"] .role-card:hover { background: var(--surface-2); }
[data-theme="light"] .compact-tl-item::before { box-shadow: 0 0 0 3px var(--bg), 0 0 12px var(--gold-glow-strong); }
[data-theme="light"] .content-stat:hover { border-color: var(--gold); }
[data-theme="light"] .value-card { border-left-color: var(--gold); }
[data-theme="light"] .subpage-back { color: var(--text-muted); }


/* ═══════════════════════════════════════
   REVEALS
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.parallax-slow { will-change: transform; }


/* ═══════════════════════════════════════
   FOCUS STATES
   ═══════════════════════════════════════ */
a:focus-visible, button:focus-visible,
.btn:focus-visible, .nav-cta-link:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}


/* ═══════════════════════════════════════
   LIGHT MODE CONTRAST ADJUSTMENTS
   ═══════════════════════════════════════ */
[data-theme="light"] .hero-label,
[data-theme="light"] .trusted-label,
[data-theme="light"] .stat-label,
[data-theme="light"] .client-role,
[data-theme="light"] .sec-text {
  color: var(--text-muted);
}
[data-theme="light"] .hero-title em { color: var(--gold-light); }


/* ═══════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .expertise-top { grid-template-columns: 1fr; gap: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .case-metrics { grid-template-columns: repeat(2, 1fr); }
  .idrott-title { white-space: normal; font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
  .hero-portrait { display: none; }

  /* Case hero on tablet */
  body.case-page .hero,
  .hero--case {
    min-height: auto;
    padding: 8rem 3rem 4rem;
  }

  /* Subpage hero */
  .subpage-hero { min-height: auto; padding: 7rem 3rem 4rem; }
  .subpage-hero-img { display: none; }
  .subpage-hero-text { width: 100%; max-width: 100%; padding-top: 0; }
  .roles-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .content-stats { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: block; }

  .hero { padding: 0 1.5rem; }
  .hero-scroll { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btn-gold { padding: 1rem 2rem; font-size: 0.68rem; }
  .hero-title { font-size: clamp(2.8rem, 11vw, 3.8rem); }
  .hero-title .line:nth-child(2),
  .hero-title .line:nth-child(3) { display: inline; overflow: visible; }
  .hero-title .line:nth-child(2) .line-inner,
  .hero-title .line:nth-child(3) .line-inner { display: inline; transform: none; animation: none; opacity: 1; }
  .hero-title .line:nth-child(2)::after { content: ' '; }
  .hero-title .line:nth-child(1) { display: block; }

  /* Case page hero on mobile */
  body.case-page .hero,
  .hero--case {
    padding: 7rem 1.5rem 3rem;
    min-height: auto;
  }
  body.case-page .hero-title,
  .hero--case .hero-title {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
    text-align: left;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }
  body.case-page .hero-label,
  .hero--case .hero-label {
    text-align: left;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
  }
  body.case-page .hero-body,
  .hero--case .hero-body {
    text-align: left;
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .pad { padding: 5rem 1.5rem; }
  .quote-section { padding: 5rem 1.5rem; }
  .cta-band { padding: 4rem 1.5rem; }

  /* Section titles on mobile — better sizing */
  .sec-title { 
    font-size: clamp(1.8rem, 7vw, 2.6rem); 
    line-height: 1.1; 
    margin-bottom: 1.2rem; 
  }

  /* Quote mark sizing on mobile */
  .quote-mark { font-size: 5rem; margin-bottom: 1rem; }
  .quote-text { font-size: clamp(1.1rem, 4.5vw, 1.5rem); margin-bottom: 2rem; }

  .hero-bridge-stats { grid-template-columns: 1fr; gap: 0; }
  .hero-bridge-stat:not(:last-child)::after { display: none; }
  .hero-bridge-stat { padding: 1.2rem 1rem; border-bottom: 1px solid var(--border-hover); }
  .hero-bridge-stat:last-child { border-bottom: none; }
  .hero-bridge-num { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  .hero-bridge-label { font-size: 0.65rem; letter-spacing: 0.1em; margin-top: 0.4rem; }
  .hero-bridge-panel { padding: 2rem 1.5rem 1.5rem; border-radius: 2px; }
  .hero-bridge-divider { margin: 1rem auto; }
  .hero-bridge-logos { gap: 1rem 1.4rem; }
  .hero-bridge-logo { height: 28px; }
  .hero-bridge-head .eyebrow { letter-spacing: 0.1em; font-size: 0.6rem; justify-content: center; text-align: center; }
  .hero-bridge-trust-label { letter-spacing: 0.1em; font-size: 0.72rem; }

  /* Case metrics: 2x2 grid on mobile */
  .case-metrics { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .case-metrics-5 { grid-template-columns: repeat(2, 1fr); }
  .case-metrics-5 > div:last-child { grid-column: 1 / -1; }

  /* H&S metrics: horizontal row on mobile */
  .hs-metrics { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .hs-metric-value { font-size: 1.3rem; }

  /* Podcast meta: horizontal row on mobile */
  .podcast-meta { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .podcast-meta .case-num { font-size: clamp(1rem, 3.5vw, 1.4rem); }
  .podcast-actions { flex-direction: column; }
  .podcast-actions .btn { width: 100%; justify-content: center; }

  /* Sport cards: stay as row on mobile */
  .sport-cards { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .sport-card { padding: 0.8rem 0.5rem; }
  .sport-card-name { font-size: 1rem; }

  /* Idrott title: scale down on mobile */
  .idrott-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  /* Fix clipped descenders on mobile */
  .hero-title .line { padding-bottom: 0.22em; margin-bottom: -0.22em; }
  .cta-band .sec-title { line-height: 1.08; }

  .form-row { grid-template-columns: 1fr; }

  /* Subpage mobile */
  .subpage-hero { padding: 6rem 1.5rem 3rem; }
  .subpage-hero-text { width: 100%; max-width: 100%; }
  .content-section { padding: 4rem 1.5rem; }
  .subpage-cta { padding: 4rem 1.5rem; }

  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }

  .cursor { display: none; }
  .hero-geo-1, .hero-geo-2, .hero-geo-3 { display: none; }
  .theme-toggle { bottom: 1.5rem; right: 1.5rem; }
  .back-top { bottom: 1.5rem; right: 4rem; }

  body::after { display: none; }
}

/* Extra small screens */
@media (max-width: 400px) {
  .sport-cards { grid-template-columns: 1fr; gap: 0.5rem; }
  .hs-metrics { grid-template-columns: repeat(3, 1fr); }
  .podcast-meta { grid-template-columns: 1fr; gap: 0.75rem; }
  .case-metrics { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
