/* ═══════════════════════════════════════════════════
   PROJEKT IO — style.css
═══════════════════════════════════════════════════ */

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

:root {
  --white:        #ffffff;
  --ink:          #020108;
  --ink-soft:     #3a3a36;
  --ink-muted:    #7a7a72;
  --rule:         rgba(2,1,8,0.12);
  --brand-orange: #FF6B02;
  --brand-orange-2: #d25a28;
  --font-heading: 'Mona Sans', Helvetica, Arial, sans-serif;
  --font-nav:     'Poppins', sans-serif;
  --font-display: 'Mona Sans', Helvetica, Arial, sans-serif;
  --font-body:    'Poppins', sans-serif;
  --ease:         cubic-bezier(0.4,0,0.2,1);
  --max-w:        1400px;
  --gutter:       4rem;
  --shell-gap:    10px;
  --shell-radius: 60px;
}

@font-face {
  font-family: 'Mona Sans';
  src: url('/assets/fonts/Mona-Sans-BlackWide.woff2') format('woff2'),
       url('/assets/fonts/Mona-Sans-BlackWide.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Mona Sans';
  src: url('/assets/fonts/Mona-Sans-LightWide.woff') format('woff'),
       url('/assets/fonts/Mona-Sans-LightWide.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}

/* Dawn animated gradient */
@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
body[data-theme="dawn"] html,
html:has(body[data-theme="dawn"]) {
  background: linear-gradient(-45deg, #ecc7f7, #f3e6ef, #fee2d3, #f5e9df) !important;
  background-size: 400% 400% !important;
  animation: gradientBG 10s ease infinite;
}

/* ── Theme tokens (Day = default) ── */
:root {
  --shell-bg: linear-gradient(135deg, #1e0d12 0%, #5f212b 100%);
  --content-bg-color: #f4f8f9;
  --content-gradient-1: #f4f8f9;
  --content-gradient-2: #eaf2f5;
  --content-gradient-3: rgba(244,248,249,0);
  --content-image: url('/assets/images/1a.jpg');
  --header-pill-bg: rgba(255,255,255,0.45);
  --header-pill-border: rgba(255,255,255,0.65);
  --header-text: rgba(14,14,12,0.65);
  --header-text-strong: var(--ink);
  --header-divider: rgba(14,14,12,0.15);
  --logo-filter: brightness(0);
  --hamburger-bg: rgba(14,14,12,0.6);
  --section-text: rgba(14,14,12,0.65);
  --section-text-strong: rgba(14,14,12,0.88);
  --section-eyebrow: rgba(14,14,12,0.45);
  --cell-bg: #1a1a1e;
}

/* ── Dawn — soft warm morning light ── */
body[data-theme="dawn"] {
  --shell-bg: linear-gradient(-45deg, #ecc7f7, #f3e6ef, #fee2d3, #f5e9df);
  background-size: 400% 400% !important;
  animation: gradientBG 10s ease infinite;
  --content-bg-color: #f8e0b4;
  --content-gradient-1: #f8e0b4;
  --content-gradient-2: #f5d89e;
  --content-gradient-3: rgba(248,224,180,0);
  --content-image: url('/assets/images/2a.jpg');
}

/* ── Dusk — deep night ── */
body[data-theme="dusk"] {
  --shell-bg: linear-gradient(135deg, #0a0a0d 0%, #1a1518 100%);
  --content-bg-color: #010716;
  --content-gradient-1: #010716;
  --content-gradient-2: #050d1e;
  --content-gradient-3: rgba(1,7,22,0);
  --content-image: url('/assets/images/3a.jpg');
  --header-pill-bg: rgba(30,30,36,0.55);
  --header-pill-border: rgba(255,255,255,0.1);
  --header-text: rgba(255,255,255,0.7);
  --header-text-strong: #fff;
  --header-divider: rgba(255,255,255,0.15);
  --logo-filter: brightness(0) invert(1);
  --hamburger-bg: rgba(255,255,255,0.7);
  --section-text: rgba(255,255,255,0.7);
  --section-text-strong: rgba(255,255,255,0.95);
  --section-eyebrow: rgba(255,255,255,0.5);
  --cell-bg: #0a0a0d;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 900; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  min-height: 100%;
  background: var(--shell-bg);
  background-attachment: fixed;
  transition: background 1.2s var(--ease);
}

body {
  margin: var(--shell-gap);
  border-radius: var(--shell-radius);
  min-height: calc(100vh - var(--shell-gap) * 2);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: var(--shell-gap);
  border-radius: var(--shell-radius);
  pointer-events: none;
  z-index: 9999;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }


/* ═══════════════════════════════════════════════════
   PAGE TRANSITION — slow fade
═══════════════════════════════════════════════════ */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #1e0d12 0%, #5f212b 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.page-transition.is-leaving {
  opacity: 1;
}

.page-transition.is-entering {
  opacity: 0;
}

.page-transition.is-initial {
  opacity: 1;
  transition: none;
}

@media (max-width: 600px) {
  :root { --shell-radius: 14px; --gutter: 1.5rem; }
}


/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 40px;
  left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: top 0.35s var(--ease);
}

.site-header.scrolled-up { top: 15px; }

.header-pill {
  pointer-events: all;
  display: flex;
  align-items: center;
  padding: 15px 30px;
  gap: 0.25rem;
  background: var(--header-pill-bg);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-radius: 999px;
  border: 1px solid var(--header-pill-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.8) inset;
  transition: background 1.2s var(--ease), border-color 1.2s var(--ease);
}

.header-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 0.1rem; transition: opacity 0.2s; }
.header-logo:hover { opacity: 0.65; }
.header-logo img { height: 40px; width: auto; opacity: 0.85; transition: opacity 0.2s; }

.pill-divider { width: 1px; height: 16px; background: var(--header-divider); margin: 0 0.4rem; flex-shrink: 0; transition: background 1.2s var(--ease); }

.header-nav { display: flex; align-items: center; }

.header-nav a {
  font-family: var(--font-nav);
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--header-text);
  padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap;
  transition: background 0.2s var(--ease), color 1.2s var(--ease);
}
.header-nav a:hover { background: rgba(127,127,127,0.1); color: var(--header-text-strong); }

.nav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--header-text); flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-icon-btn:hover { background: rgba(127,127,127,0.1); color: var(--header-text-strong); }
.nav-icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.btn-login {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-nav);
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--header-text);
  border: 1px solid var(--header-divider);
  padding: 0.4rem 1.1rem; border-radius: 999px;
  white-space: nowrap; margin-left: 0.4rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s;
}
.btn-login:hover { background: rgba(127,127,127,0.1); border-color: var(--header-text); color: var(--header-text-strong); }
.btn-login svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }

.hamburger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 4.5px; cursor: pointer; padding: 0;
  background: none; border: none;
  width: 36px; height: 32px;
  margin-left: 0.5rem; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--hamburger-bg);
  transition: all 0.3s var(--ease); transform-origin: center; margin: 0 auto;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.cta-start {
  position: fixed;
  right: calc(var(--shell-gap) + 3.5rem);
  top: 46px;
  z-index: 150;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-nav);
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #FF6B02 0%, #d25a28 100%);
  padding: 0 28px;
  height: 50px;
  border-radius: 999px;
  
  white-space: nowrap;
  transition: top 0.35s var(--ease), filter 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.cta-start.scrolled-up { top: 21px; }
.cta-start:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta-start svg { width: 12px; height: 12px; stroke: rgba(255,255,255,0.85); fill: none; stroke-width: 2; flex-shrink: 0; }


/* ═══════════════════════════════════════════════════
   NAV PANEL
═══════════════════════════════════════════════════ */

.nav-backdrop {
  position: fixed; inset: var(--shell-gap);
  border-radius: var(--shell-radius);
  z-index: 189; background: transparent; pointer-events: none;
}
.nav-backdrop.open { pointer-events: all; }

.nav-panel {
  position: fixed;
  top: calc(var(--shell-gap) + 15px);
  left: calc(var(--shell-gap) + 15px);
  bottom: calc(var(--shell-gap) + 15px);
  width: min(380px, calc(100vw - var(--shell-gap) * 2 - 60px));
  border-radius: 20px;
  border-top-left-radius: 60px;
  z-index: 190;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  padding: 28px; overflow-y: auto;
  opacity: 0; transform: translateX(-24px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), width 0.4s cubic-bezier(0.22,1,0.36,1);
}
.nav-panel.open { opacity: 1; transform: translateX(0); pointer-events: all; }
.nav-panel.expanded {
  width: min(760px, calc(100vw - var(--shell-gap) * 2 - 60px));
  overflow-y: visible;
  overflow-x: visible;
}

/* ── Sub-panel (right column inside nav-panel) ── */
.nav-sub-panel {
  position: absolute;
  top: 0;
  left: 380px;
  bottom: 0;
  width: calc(100% - 380px);
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(0,0,0,0.06);
  opacity: 0;
  transition: opacity 0.25s ease 0.1s;
  pointer-events: none;
  overflow-y: auto;
}
.nav-panel.expanded .nav-sub-panel {
  opacity: 1;
  pointer-events: all;
}

.nav-sub-item {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
}
.nav-sub-item.is-active { display: flex; }

.nav-sub-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.05);
}
.nav-sub-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.nav-sub-item.is-active .nav-sub-image img { transform: scale(1.03); }

.nav-sub-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nav-sub-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 300;
}

.nav-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #FF6B02 0%, #d25a28 100%);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity 0.2s, transform 0.15s;
}
.nav-sub-btn:hover { opacity: 0.88; transform: scale(1.03); }
.nav-sub-btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }

body[data-theme="dusk"] .nav-sub-panel { border-left-color: rgba(255,255,255,0.08); }
body[data-theme="dusk"] .nav-sub-text { color: rgba(255,255,255,0.55); }

@media (max-width: 900px) {
  .nav-panel.expanded { width: min(380px, calc(100vw - var(--shell-gap) * 2 - 60px)); }
  .nav-sub-panel { display: none !important; }
}

.nav-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3rem; flex-shrink: 0; }
.nav-panel-logo img { height: 28px; width: auto; opacity: 0.85; }

.nav-panel-close {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #f4f3f0; border: 1px solid rgba(14,14,12,0.08);
  cursor: pointer; color: var(--ink-soft); transition: background 0.2s; flex-shrink: 0;
}
.nav-panel-close:hover { background: #ece9e3; }
.nav-panel-close svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.nav-panel-primary { display: flex; flex-direction: column; flex-shrink: 0; margin-bottom: 2rem; }

/* Constrain all nav content to the left column width */
.nav-panel-top,
.nav-panel-primary,
.nav-panel-rule,
.nav-panel-secondary,
.nav-panel-bottom {
  max-width: 324px; /* 380px minus 28px padding on each side */
}

.nav-panel-primary a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body); font-size: 1.5rem; font-weight: 300; color: var(--ink);
  padding: 0.85rem 0; letter-spacing: -0.01em;
  transition: color 0.2s, padding-left 0.2s var(--ease);
}
.nav-panel-primary a:first-child { border-top: none; }
.nav-panel-primary a:hover { padding-left: 0.35rem; }

.nav-arrow { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); flex-shrink: 0; transition: background 0.2s; }
.nav-arrow svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 2.2; }
.nav-panel-primary a:hover .nav-arrow { background: #FF6B02; }

.nav-panel-rule { width: 100%; height: 1px; background: rgba(14,14,12,0.08); margin: 0.5rem 0 1.5rem; flex-shrink: 0; }

.nav-panel-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; flex-shrink: 0; margin-bottom: auto; margin-top: 0.5rem; }

.nav-panel-secondary a {
  display: flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 300; color: var(--ink-muted);
  padding: 1rem 0; border-bottom: 1px solid rgba(14,14,12,0.06); transition: color 0.2s;
}
.nav-panel-secondary a:hover { color: var(--ink); }
.nav-panel-secondary a svg { width: 8px; height: 8px; stroke: currentColor; fill: none; stroke-width: 2; opacity: 0.5; }

.nav-panel-bottom { flex-shrink: 0; margin-top: 2rem; }

.nav-panel-socials-label {
  font-family: var(--font-nav); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1rem;
}

.nav-panel-socials-wrap { display: flex; align-items: center; background: #f4f3f0; border-radius: 12px; padding: 0.85rem 1.25rem; }

.nav-panel-socials { display: flex; gap: 1.5rem; }

.nav-panel-socials a { font-family: var(--font-nav); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.nav-panel-socials a:hover { color: var(--ink); }


/* ═══════════════════════════════════════════════════
   SLIDE-UNDER FOOTER (Betheme method)
   - #Content has margin-bottom = footer height
   - Footer is fixed BEHIND content, no background
   - As page scrolls, content moves up and footer text is revealed
     against the dark red shell wallpaper
═══════════════════════════════════════════════════ */

#Content {
  position: relative;
  z-index: 2;
  border-radius: var(--shell-radius);
  background-color: var(--content-bg-color);
  margin-bottom: 500px;
  min-height: calc(100vh - var(--shell-gap) * 2);
  transition: background-color 1.2s var(--ease);
}

/* Three stacked image layers — one per theme, crossfaded by opacity.
   Each has its own gradient mask matching its theme background colour
   so the image always dissolves cleanly into the page. */
.bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  border-radius: var(--shell-radius);
  overflow: hidden;
  transition: opacity 1.2s var(--ease);
}

.bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: bottom center;
}

.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Day */
.bg-layer-day { opacity: 1; }
.bg-layer-day::before { background-image: none; }
.bg-layer-day::after {
  background: linear-gradient(
    to bottom,
    #f4f8f9 0%,
    #f4f8f9 20%,
    rgba(244,248,249,0.85) 50%,
    rgba(244,248,249,0.4) 75%,
    rgba(244,248,249,0) 100%
  );
}

/* Dawn */
.bg-layer-dawn::before { background-image: none; }
.bg-layer-dawn::after {
  background: linear-gradient(
    to bottom,
    #f8e0b4 0%,
    #f8e0b4 20%,
    rgba(248,224,180,0.85) 50%,
    rgba(248,224,180,0.4) 75%,
    rgba(248,224,180,0) 100%
  );
}

/* Dusk */
.bg-layer-dusk::before { background-image: none; }
.bg-layer-dusk::after {
  background: linear-gradient(
    to bottom,
    #010716 0%,
    #010716 20%,
    rgba(1,7,22,0.85) 50%,
    rgba(1,7,22,0.4) 75%,
    rgba(1,7,22,0) 100%
  );
}

body[data-theme="dawn"] .bg-layer-day  { opacity: 0; }
body[data-theme="dawn"] .bg-layer-dawn { opacity: 1; }

body[data-theme="dusk"] .bg-layer-day  { opacity: 0; }
body[data-theme="dusk"] .bg-layer-dusk { opacity: 1; }

/* Make sure all #Content children sit above the bg layers */
#Content > main,
#Content > .content-footer { position: relative; z-index: 1; }


/* ═══════════════════════════════════════════════════
   FOOTER — fixed behind content, no background
═══════════════════════════════════════════════════ */

.site-footer {
  position: fixed;
  bottom: var(--shell-gap);
  left: var(--shell-gap);
  right: var(--shell-gap);
  height: 500px;
  z-index: 1;
  color: #fff;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.footer-bg-img, .footer-fade-top, .footer-fade-bottom { display: none; }

/* Centered CTA — takes the available vertical space */
.footer-inner {
  flex: 1;
  padding: 4rem var(--gutter) 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom bar — copyright left, legal links right */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-copy {
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.75rem;
}

.footer-bottom-links a {
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover { color: #fff; }

/* Dusk — footer bottom bar sits on light shell-bg */
body[data-theme="dusk"] .footer-bottom-copy { color: rgba(10,10,15,0.5); }
body[data-theme="dusk"] .footer-bottom-links a { color: rgba(10,10,15,0.5); }
body[data-theme="dusk"] .footer-bottom-links a:hover { color: #010716; }

/* Dawn — footer bottom bar sits on light shell-bg */
body[data-theme="dawn"] .footer-bottom-copy { color: rgba(10,10,15,0.5); }
body[data-theme="dawn"] .footer-bottom-links a { color: rgba(10,10,15,0.5); }
body[data-theme="dawn"] .footer-bottom-links a:hover { color: #1a1a1a; }

/* Day (default) — dark shell, white footer text */
/* Dawn — light shell, dark footer text */
body[data-theme="dawn"] .footer-bottom-copy { color: rgba(10,10,15,0.5); }
body[data-theme="dawn"] .footer-bottom-links a { color: rgba(10,10,15,0.5); }
body[data-theme="dawn"] .footer-bottom-links a:hover { color: #1a1a1a; }
body[data-theme="dawn"] .footer-cta-label { color: rgba(10,10,15,0.5); }
body[data-theme="dawn"] .footer-cta-heading { color: #1a1a1a; }
body[data-theme="dawn"] .footer-cta-heading em { color: #1a1a1a; }
body[data-theme="dawn"] .footer-cta-link { color: rgba(10,10,15,0.5); }
body[data-theme="dawn"] .footer-cta-link:hover { color: #1a1a1a; }

@media (max-width: 600px) {
  .footer-bottom-bar { flex-direction: column-reverse; align-items: flex-start; gap: 0.5rem; }
  .footer-bottom-links { gap: 1.25rem; flex-wrap: wrap; }
}

.footer-cta {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 1.5rem;
  max-width: 720px;
}

.footer-cta-heading {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900; color: #fff; line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap;
}

.footer-cta-heading em {
  font-style: normal; font-family: var(--font-display); font-weight: 300;
}

.footer-cta-actions {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  margin-top: 1rem;
}

.footer-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-nav); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  color: #fff; background: linear-gradient(135deg, #FF6B02 0%, #d25a28 100%);
  padding: 1rem 2rem; border-radius: 999px;
  
  transition: filter 0.2s, transform 0.15s;
}
.footer-cta-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.footer-cta-btn svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 2; }

.footer-cta-link { font-family: var(--font-nav); font-size: 0.85rem; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-cta-link:hover { color: #fff; }


/* ═══════════════════════════════════════════════════
   CONTENT FOOTER — sits at bottom of scrollable content
═══════════════════════════════════════════════════ */

.content-footer {
  padding: 3rem var(--gutter) 2.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.footer-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-top: 1.5rem;
}

.footer-logo { display: block; margin-bottom: 0.5rem; }
/* Default (day): dark logo */
.footer-logo img { height: 22px; width: auto; opacity: 1; }

.footer-tagline {
  font-family: var(--font-display); font-weight: 300; font-style: normal;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: rgba(10,10,15,0.6); line-height: 1.3;
}

.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.85rem; }

.footer-contact {
  display: flex; flex-direction: row; align-items: center; gap: 0.75rem;
}

.footer-contact a {
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(10,10,15,0.6);
  transition: color 0.2s;
}
.footer-contact a:hover { color: #000; }

.footer-contact-sep {
  color: rgba(10,10,15,0.3);
  font-size: 13px;
  user-select: none;
}

.footer-socials-row { display: flex; gap: 1.5rem; }

.footer-socials-row a {
  font-family: var(--font-nav); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(10,10,15,0.6); transition: color 0.2s;
}
.footer-socials-row a:hover { color: #000; }

/* Dawn — same dark treatment */
body[data-theme="dawn"] .footer-logo img { }
body[data-theme="dawn"] .footer-tagline { color: rgba(10,10,15,0.6); }
body[data-theme="dawn"] .footer-contact a { color: rgba(10,10,15,0.6); }
body[data-theme="dawn"] .footer-contact a:hover { color: #000; }
body[data-theme="dawn"] .footer-contact-sep { color: rgba(10,10,15,0.3); }
body[data-theme="dawn"] .footer-socials-row a { color: rgba(10,10,15,0.6); }
body[data-theme="dawn"] .footer-socials-row a:hover { color: #000; }

/* Dusk — light/white treatment */
body[data-theme="dusk"] .footer-logo img { }
body[data-theme="dusk"] .footer-tagline { color: rgba(255,255,255,0.8); }
body[data-theme="dusk"] .footer-contact a { color: rgba(255,255,255,0.75); }
body[data-theme="dusk"] .footer-contact a:hover { color: #fff; }
body[data-theme="dusk"] .footer-contact-sep { color: rgba(255,255,255,0.4); }
body[data-theme="dusk"] .footer-socials-row a { color: rgba(255,255,255,0.8); }
body[data-theme="dusk"] .footer-socials-row a:hover { color: #fff; }


/* ═══════════════════════════════════════════════════
   SECTION 1
═══════════════════════════════════════════════════ */

.section-1 { background: transparent; padding: 160px var(--gutter) 5rem; }

.s1-intro { text-align: center; max-width: 680px; margin: 0 auto 4rem; }

.s1-hero-logo {
  display: inline-block;
  margin-bottom: 2.5rem;
  transition: opacity 0.2s, filter 1.2s var(--ease);
}
.s1-hero-logo:hover { opacity: 0.7; }
.s1-hero-logo img {
  height: 56px;
  width: auto;
  transition: opacity 0.2s;
}

/* ═══════════════════════════════════════════════════
   EYEBROW — small uppercase label above headings
   Used: above hero text, above section titles, above the footer CTA
═══════════════════════════════════════════════════ */

.eyebrow,
.s1-eyebrow,
.footer-cta-label,
.contact-eyebrow,
.contact-hero-eyebrow {
  font-family: var(--font-nav);  /* Poppins (has weights 400/500/600 loaded) */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 8px;
  text-transform: uppercase;
  line-height: 1.4;
  transition: color 1.2s var(--ease);
}

.s1-eyebrow {
  color: var(--section-eyebrow);
  margin-bottom: 1.25rem;
}

.footer-cta-label {
  color: rgba(255,255,255,0.7);
}

.contact-eyebrow,
.contact-hero-eyebrow {
  color: var(--section-eyebrow);
  margin-bottom: 1rem;
}


.s1-body {
  font-family: var(--font-body); font-size: 15px; font-weight: 300;
  color: var(--section-text); line-height: 1.75;
  transition: color 1.2s var(--ease);
}

.s1-grid-wrap { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.s1-row-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.s1-row-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.s1-cell { border-radius: 18px; overflow: hidden; background: var(--cell-bg); position: relative; height: 400px; transition: background 1.2s var(--ease); }

/* ── Auto-rotating slideshow with blur crossfade ── */
.slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.04);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}

.slideshow .slide.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.s1-cell img, .s1-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }

.s1-cell-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-nav); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.1); border-radius: inherit;
}

.s1-text-cell { display: flex; flex-direction: column; justify-content: center; padding: 2rem 2.5rem; }

/* ═══════════════════════════════════════════════════
   APPLE-STYLE BLUR FADE-IN (.fade-blur)
   Usage: <h1 class="fade-blur">…</h1>
   Activated by IntersectionObserver in header.js
═══════════════════════════════════════════════════ */

.fade-blur {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(16px);
  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}

.fade-blur.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Soft fade-in (no blur) — for body copy and content */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.15s;
  will-change: opacity, transform;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child elements — add .fade-blur-stagger to a parent so each
   .fade-blur child reveals 100ms after the previous */
.fade-blur-stagger .fade-blur:nth-child(2)  { transition-delay: 0.1s; }
.fade-blur-stagger .fade-blur:nth-child(3)  { transition-delay: 0.2s; }
.fade-blur-stagger .fade-blur:nth-child(4)  { transition-delay: 0.3s; }
.fade-blur-stagger .fade-blur:nth-child(5)  { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════════════
   EXPERIENCE — horizontal scroll-pinned tabs
   Outer section is tall (5x viewport), inner is sticky-pinned
   to viewport. Inner panels stack absolutely; the active one
   fades in over the previous as you scroll.
═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   SERVICES INTRO — left-aligned, 2/3 width
═══════════════════════════════════════════════════ */
/* ══════════════════════════════════════════
   SERVICES + PROCESS — one full-screen section
══════════════════════════════════════════ */
.services-process-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.services-process-inner {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.services-intro-inner + .process-grid {
  margin-top: 80px;
}

.services-intro-inner {
  max-width: 1440px;
}

.services-intro-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  color: var(--section-text-strong);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 80%;
  margin-bottom: 1.5rem;
  transition: color 1.2s var(--ease);
}

.services-intro-heading .light {
  font-weight: 300;
}

.services-intro-body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--section-text);
  line-height: 1.7;
  max-width: 80%;
  transition: color 1.2s var(--ease);
}

/* ══════════════════════════════════════════
   WORK PROCESS GRID
══════════════════════════════════════════ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 380px;
  gap: 1rem;
  align-items: end;
}

.process-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  height: 280px;
  align-self: end;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

/* Card 3 starts tall */
.process-card--3 {
  height: 380px;
  align-self: end;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* On hover of any non-3 card → stretch to 380px */
.process-card--1:hover,
.process-card--2:hover,
.process-card--4:hover {
  height: 380px;
}

/* When a sibling is hovered, shrink card 3 back down */
.process-grid:has(.process-card--1:hover) .process-card--3,
.process-grid:has(.process-card--2:hover) .process-card--3,
.process-grid:has(.process-card--4:hover) .process-card--3 {
  height: 280px;
}

.process-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  color: rgba(14,14,12,0.15);
  letter-spacing: -0.03em;
  line-height: 1;
  align-self: flex-end;
}

.process-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 900;
  color: rgba(14,14,12,0.88);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: auto;
}

/* CTA circle on card 3 */
.process-cta {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--section-text-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--section-text-strong);
  font-family: var(--font-nav);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 1.2s var(--ease);
  z-index: 2;
}

.process-cta:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

@media (max-width: 800px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .process-card--3 {
    align-self: stretch;
    min-height: 280px;
  }
  .process-cta { display: none; }
}

.experience-section {
  position: relative;
  height: 500vh;
  z-index: 2;
  margin-top: -60px;
}

.experience-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* No overflow:hidden here — that breaks sticky on descendants
     and causes full-width bleed. Clipping handled by #Content. */
}

.experience-stage {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}

/* Max-width wrapper so the section matches the bento grid width above */
.experience-stage-inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  flex: 1;
}

/* Each panel — image left, text right — stacked in same place */
.exp-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Image — plain rounded rectangle, tabs sit in their own row below */
.exp-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 70vh;
  background: var(--cell-bg);
  border-radius: 24px;
  overflow: hidden;
}

.exp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text */
.exp-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.exp-eyebrow {
  color: #442126;
  margin-bottom: 1.5rem;
}

.exp-body {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 300;
  color: var(--section-text-strong);
  line-height: 1.4;
  letter-spacing: -0.005em;
  transition: color 1.2s var(--ease);
}

/* ── Tabs: floating pill that overlaps the image bottom ── */
.experience-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* Default: sits just below the image bottom edge, overlapping by ~24px */
  bottom: calc(50vh - 50vmin - 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 25px 30px;
  background: #f4f8f9;
  border-radius: 20px;
  z-index: 5;
  height: auto;
  width: max-content;
  transition: background 1.2s var(--ease);
}

body[data-theme="dusk"] .experience-tabs {
  background: #020715;
}

body[data-theme="dawn"] .experience-tabs {
  background: #f8e0b4;
}

/* ── Tab position breakpoints — align with image bottom ── */

/* Large desktop (1800px+) */
@media (min-width: 1800px) {
  .experience-tabs { bottom: 8vh; }
}

/* Standard desktop (1400–1800px) */
@media (max-width: 1800px) and (min-width: 1400px) {
  .experience-tabs { bottom: 10vh; }
}

/* 14" MacBook (1512px wide, ~900px viewport height) */
@media (max-width: 1600px) and (min-width: 1300px) and (max-height: 1000px) {
  .experience-tabs { bottom: 5vh; }
}

/* Smaller laptops (1200–1400px) */
@media (max-width: 1300px) and (min-width: 900px) {
  .experience-tabs { bottom: 7vh; }
}

.experience-tabs button {
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--section-eyebrow);
  background: transparent;
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.experience-tabs button:hover {
  color: var(--section-text-strong);
}

.experience-tabs button.active {
  background: #491f25;
  color: #fff;
}

/* Mobile — stack vertically, simplify */
@media (max-width: 800px) {
  .experience-section { height: 500vh; }
  .exp-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    inset: 2rem 1.25rem 5rem;
  }
  .exp-image {
    aspect-ratio: 16 / 11;
    max-height: 50vh;
    --notch-h: 50px;
    --notch-w: 280px;
  }
  .exp-text { max-width: 100%; }
  .exp-body { font-size: 1.05rem; }
  .experience-tabs {
    right: 1.25rem;
    left: auto;
    bottom: 5rem;
    width: 280px;
    height: 50px;
  }
  .experience-tabs button { padding: 0.45rem 0.55rem; font-size: 9px; }
}

/* ═══════════════════════════════════════════════════
   PROJECTS CAROUSEL
═══════════════════════════════════════════════════ */
.projects-carousel-section {
  position: relative;
  z-index: 2;
  padding: 8vh 0 6rem;
  background: var(--content-bg-color);
  overflow: hidden;
  transition: background 1.2s var(--ease);
}

.projects-swiper-wrap {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  overflow: visible;
}

.projects-swiper-wrap .swiper-container {
  width: 100%;
  overflow: visible;
}

/* Slide: fixed width, auto height so text shows below */
.projects-swiper-wrap .swiper-slide {
  cursor: grab;
  height: auto !important;
  width: 420px !important;
}
.projects-swiper-wrap .swiper-slide:active { cursor: grabbing; }

.project-slide-img {
  border-radius: 20px;
  overflow: hidden;
  background: var(--cell-bg);
  width: 100%;
  height: 420px;
}
.project-slide-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.projects-swiper-wrap .swiper-slide:hover .project-slide-img img {
  transform: scale(1.04);
}

.project-slide-content {
  padding: 1rem 0 0;
  text-align: center;
}
.project-cat {
  display: block;
  font-family: var(--font-nav);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.35rem;
}
.project-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--section-text-strong);
  transition: color 1.2s var(--ease);
}

.projects-carousel-heading {
  text-align: center;
  padding: 3rem var(--gutter) 0;
}
.projects-carousel-heading .eyebrow {
  display: block;
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--section-eyebrow);
  margin-bottom: 0.75rem;
}
.projects-carousel-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--section-text-strong);
  transition: color 1.2s var(--ease);
}

@media (max-width: 900px) {
  .projects-swiper-wrap .swiper-slide { width: 320px !important; }
  .project-slide-img { height: 320px; }
}
@media (max-width: 600px) {
  .projects-swiper-wrap .swiper-slide { width: 260px !important; }
  .project-slide-img { height: 260px; }
}


/* ═══════════════════════════════════════════════════
   STATEMENT SECTION
═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   BENEFITS — sticky stacking rows
═══════════════════════════════════════════════════ */
.benefits-section {
  position: relative;
  z-index: 2;
  padding: 100vh var(--gutter) 0;
}

.benefits-inner {
  max-width: 1440px;
  margin: 0 auto;
}

/* Each row scrolls up and sticks — next row stacks on top */
.benefits-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  will-change: transform;
}

.benefits-row--1 { z-index: 1; }
.benefits-row--2 { z-index: 2; }
.benefits-row--3 { z-index: 3; }

/* Each row needs height so there's scroll room between them */
.benefits-row-spacer {
  height: 100vh;
}

/* Image side */
.benefits-img-wrap {
  display: flex;
  align-items: center;
  padding: 3rem 1.5rem 3rem 0;
}

.benefits-img--sticky img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

/* Card side */
.benefits-card-wrap {
  display: flex;
  align-items: center;
  padding: 3rem 0 3rem 1.5rem;
}

.benefits-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.benefits-card--light {
  background: #fff;
  color: rgba(14,14,12,0.88);
}

.benefits-card--dark {
  background: #111113;
  color: #fff;
}

.benefits-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.benefits-meta {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-top: auto;
}

.benefits-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0.2;
  flex-shrink: 0;
}

.benefits-card--dark .benefits-num { opacity: 0.25; }

.benefits-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .benefits-row {
    grid-template-columns: 1fr;
    position: relative;
  }
  .benefits-img-wrap { padding: 1.5rem 0; }
  .benefits-img--sticky img { aspect-ratio: 4/3; }
  .benefits-card-wrap { padding: 0 0 1.5rem; }
  .benefits-card { aspect-ratio: auto; padding: 2rem; }
  .benefits-row-spacer { height: 3rem; }
}

/* ═══════════════════════════════════════════════════
   TESTIMONIALS — sticky left, stacked scroll cards right
═══════════════════════════════════════════════════ */
.testimonials-section {
  padding: 20vh var(--gutter);
  padding-top: calc(20vh + 8vw);
  position: relative;
  z-index: 2;
}

.testimonials-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Left — sticky while cards scroll, vertically centered in viewport */
.testimonials-left {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Right column wrapper — tall enough for 4 card peels */
.testimonials-cards-wrap {
  position: relative;
  height: calc(60vh * 5);
}

/* The sticky card stack sits inside the tall wrapper */
.testimonials-cards {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  height: 420px;
}


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

.testimonials-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  color: var(--section-text-strong);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 1.2s var(--ease);
}

.testimonials-heading .light {
  font-weight: 300;
}

.testimonials-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--section-text);
  line-height: 1.7;
  max-width: 380px;
  transition: color 1.2s var(--ease);
}

.testimonials-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: 500;
  color: #FF6B02;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.testimonials-cta:hover { opacity: 0.7; }

/* Right — stacked cards, all at same position, peel off on scroll */

.tcard {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  transition: none;
  will-change: transform;
}

.tcard--1 { background: #e8d5e8; color: #1a1a1a; z-index: 4; }
.tcard--2 { background: #5b3ea8; color: #fff;     z-index: 3; }
.tcard--3 { background: #c4b08a; color: #1a1a1a; z-index: 2; }
.tcard--4 { background: #2a3a4a; color: #fff;     z-index: 1; }

/* Peeled state — card rotates up and far off screen */
.tcard.is-peeled {
  transform: translateY(-350%) translateX(120px) rotate(12deg);
}

.tcard-quote {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tcard-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tcard--2 .tcard-avatar { background: rgba(255,255,255,0.2); }

.tcard-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tcard-linkedin {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.tcard-linkedin:hover { opacity: 1; }

.tcard-name {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.tcard-role {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 0.2rem;
}

@media (max-width: 800px) {
  .testimonials-inner { grid-template-columns: 1fr; gap: 3rem; }
  .testimonials-left { position: relative; top: 0; }
  .testimonials-cards-wrap { height: calc(340px + 50vh * 3); }
  .testimonials-cards { height: 340px; top: 80px; }
  .tcard { padding: 2rem; }
}

.statement-section {
  padding: 5rem var(--gutter);
  position: relative;
  z-index: 2;
}

.statement-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}

.statement-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 900;
  color: var(--section-text-strong);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 80%;
  margin-bottom: 2.5rem;
  transition: color 1.2s var(--ease);
}

.statement-highlight {
  font-style: normal;
  color: #442126;
}

.statement-subheading {
  grid-column: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 900;
  color: var(--section-text-strong);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 80%;
  margin-bottom: 2.5rem;
  transition: color 1.2s var(--ease);
}

.statement-highlight-orange {
  font-style: normal;
  color: #FF6B02;
}

.statement-bold {
  grid-column: 1;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  color: var(--section-text-strong);
  line-height: 1.6;
  max-width: 80%;
  margin-bottom: 2rem;
  transition: color 1.2s var(--ease);
}

.statement-body {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--section-text);
  line-height: 1.8;
  max-width: 100%;
  transition: color 1.2s var(--ease);
}

.clients-section {
  padding: 6.9rem var(--gutter) 8rem;
  position: relative;
  z-index: 2;
}

.clients-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.clients-tag {
  color: var(--section-eyebrow);
  margin-bottom: 1rem;
}

.clients-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  letter-spacing: -0.02em;
  color: var(--section-text-strong);
  line-height: 1.1;
  margin: 0 auto 1.75rem;
  text-align: center;
  transition: color 1.2s var(--ease),
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.clients-heading .bold { font-weight: 900; color: var(--brand-orange); }
.clients-heading .light { font-weight: 300; }

.clients-body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--section-text);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  transition: color 1.2s var(--ease),
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.15s;
}

.clients-logos {
  margin-top: 2.5rem;
  width: 100%;
}

/* ── Logo marquee ── */
.logo-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logoScroll 60s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  height: 80px;
  width: 220px;
}

.logo-slide img {
  max-height: 64px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* Dark logos on light themes (Day + Dawn) */
  filter: brightness(0);
  opacity: 0.6;
  transition: filter 1.2s var(--ease), opacity 0.25s ease;
}

/* Dusk — invert to white */
body[data-theme="dusk"] .logo-slide img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Logos that are visually larger at full size — scale them down */
.logo-slide img[src*="barnes"],
.logo-slide img[src*="flor"] {
  max-height: 44px;
  max-width: 130px;
}

.logo-slide:hover img {
  opacity: 1;
}

@media (max-width: 600px) {
  .logo-slide { padding: 0 2rem; height: 60px; width: 160px; }
  .logo-slide img { max-height: 46px; max-width: 130px; }
  .logo-slide img[src*="barnes"],
  .logo-slide img[src*="flor"] { max-height: 32px; max-width: 100px; }
  .logo-track { animation-duration: 40s; }
}


.s1-tagline {
  font-family: var(--font-heading); font-size: clamp(1.1rem,1.8vw,1.6rem); font-weight: 900;
  color: var(--section-text-strong); line-height: 1.2; margin-bottom: 2rem;
}

/* When .s1-tagline doesn't have .fade-blur, it still gets the color transition */
.s1-tagline:not(.fade-blur) {
  transition: color 1.2s var(--ease);
}

/* When .s1-tagline ALSO has .fade-blur, combine all transitions */
.s1-tagline.fade-blur {
  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 1.2s var(--ease);
}

.s1-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-nav); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; background: linear-gradient(135deg, #FF6B02 0%, #d25a28 100%);
  border: none; padding: 1.1rem 2.5rem; border-radius: 999px; align-self: flex-start;
  
  transition: filter 0.2s, box-shadow 0.2s, transform 0.2s;
}
.s1-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }


/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .cta-start {
    top: 50%; right: calc(var(--shell-gap) + 0.5rem);
    transform: translateY(-50%);
    writing-mode: vertical-rl; text-orientation: mixed;
    padding: 1.25rem 0.7rem;
  }
  .cta-start.scrolled-up { top: 50%; }
  .cta-start:hover { transform: translateY(calc(-50% - 2px)); }
  .s1-row-top { grid-template-columns: 1fr 1fr; }
  .s1-row-top .s1-cell:last-child { grid-column: 1 / 3; height: 300px; }
  .s1-cell { height: 300px; }
}

@media (max-width: 600px) {
  .header-nav, .pill-divider { display: none; }
  .cta-start { display: none; }
  .nav-panel { width: calc(100vw - var(--shell-gap) * 2); padding: 1.5rem; }
  .nav-panel-secondary { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
  .footer-cta-heading { font-size: clamp(2rem, 8vw, 3rem); }
  .section-1 { padding: 4rem var(--gutter) 3rem; }
  .s1-row-top { grid-template-columns: 1fr; }
  .s1-row-top .s1-cell:last-child { grid-column: 1; }
  .s1-row-bottom { grid-template-columns: 1fr; }
  .s1-cell { height: 280px; }
  .s1-text-cell { padding: 1.5rem 0; }
}


/* ═══════════════════════════════════════════════════
   THEME TOGGLE — top left, mirrors start-a-projekt
═══════════════════════════════════════════════════ */

.theme-toggle {
  position: fixed;
  left: calc(var(--shell-gap) + 3.5rem);
  top: 46px;
  z-index: 150;
  display: inline-flex; align-items: center;
  background: var(--header-pill-bg);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--header-pill-border);
  padding: 5px;
  height: 50px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: top 0.35s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.theme-toggle.scrolled-up { top: 21px; }

.theme-toggle button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: none; background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--header-text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-toggle button:hover { color: var(--header-text-strong); }
.theme-toggle button.active {
  background: var(--header-text-strong);
  color: var(--content-bg-color);
}
.theme-toggle button svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
}
.theme-toggle button.active svg { stroke-width: 2; }

@media (max-width: 600px) {
  .theme-toggle {
    left: 50%; transform: translateX(-50%);
    top: auto; bottom: calc(var(--shell-gap) + 0.75rem);
  }
  .theme-toggle.scrolled-up { top: auto; }
}
