/* ═══════════════════════════════════════════════════════
   STUDIO ALLUR — Main Stylesheet
   Fonts: Satoshi (Fontshare) + DM Sans (Google Fonts)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,600,500,400&display=swap');

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Tokens ── */
:root {
  --cream:        #F4EFE6;
  --cream-deep:   #E8E1D7;
  --cream-white:  #FDFAF5;
  --ink:          #1C1814;
  --ink-muted:    #5D4F45;
  --ink-light:    #8A7E73;
  --red:          #A0522D;
  --red-deep:     #7D3E1F;
  --red-tint:     #F0DBC8;
  --rule:         #D5CEC2;

  /* State colors */
  --success:      #5A6B4E;
  --warning:      #C08A2E;
  --error:        #B5452E;
  --info:         #6B7F8E;

  /* Warm stone gradient stops (used by hero / about imagery) */
  --stone-1:      #D4C9B5;
  --stone-2:      #C4B89E;
  --stone-3:      #B5A88A;
  --stone-4:      #A89878;
  --stone-5:      #9E8B6C;
  --stone-6:      #8A7858;
  --stone-7:      #7A6848;

  /* Lifted ink for dark hover states */
  --ink-lift:     #2A2420;

  /* TK Istra card background (legacy — exists only to move the inline
     `background-color:#2a3a28` on work.html off the HTML. Warm-leaning
     evergreen — not part of the core palette.) */
  --tk-istra-bg:  #2a3a28;

  --font-display: 'Satoshi', 'DM Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --nav-h:        68px;
  --max-w:        1320px;
  --gutter:       clamp(1.5rem, 4vw, 3.5rem);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Base ── */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ── Nav fade overlay — hides content behind nav + blur at top edge only ── */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 999;
  background: linear-gradient(
    to bottom,
    rgba(245, 240, 232, 1)   0%,
    rgba(245, 240, 232, 1)  78%,
    rgba(245, 240, 232, 0.2) 88%,
    rgba(245, 240, 232, 0)  92%
  );
}

@media (max-width: 768px) {
  body::after { height: 80px; }
}

/* ── Background dot pattern ── */
body.bg-dots {
  background-color: var(--cream);
}
body.bg-dots::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9998;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(107, 98, 89, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, black 70%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, black 70%);
}

/* ── Layout helpers ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-alt { background: var(--cream-deep); }

/* ── Label ── */
.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.label-red { color: var(--red); }
/* Slightly stronger red on cream-deep (section-alt) backgrounds */
.section-alt .label-red { color: var(--red-deep); }

/* ── Hanko stamp ── */
.hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--red);
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  transform: rotate(-12deg);
  flex-shrink: 0;
  opacity: 0.85;
}
.hanko-sm { width: 36px; height: 36px; font-size: 0.4rem; }
.hanko-lg { width: 80px; height: 80px; font-size: 0.75rem; border-width: 3px; }

/* ── Rule with stamp ── */
.rule-stamp {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.rule-stamp::before, .rule-stamp::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ══════════════════════════════════════════
   NAVIGATION — floating pill
   ══════════════════════════════════════════ */

/* Site logo — fixed top-left */
.site-logo {
  position: fixed;
  top: 0;
  left: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 9999;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s, opacity 0.3s ease;
}
.site-logo:hover { color: var(--red); }
.site-logo.logo-hidden { opacity: 0 !important; pointer-events: none; }

/* Floating pill container */
.fnav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}
.fnav-pill {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 8px;
  padding: 6px 10px;
  border-radius: 50px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
/* Scrolled state — added via JS */
.fnav-pill.scrolled {
  background: rgba(244, 239, 230, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(28, 24, 20, 0.08);
  padding: 8px 20px 6px;
}

/* Nav items */
.fnav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px 18px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.fnav-item:hover { color: var(--ink); }
.fnav-item.active { color: var(--ink); }

/* Icons (hidden on desktop, shown on mobile) */
.fnav-icon {
  display: none;
  flex-shrink: 0;
}

/* Logo inside nav pill — hidden by default, engraved glass on scroll */
.fnav-logo {
  display: none;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fnav-pill.scrolled .fnav-logo {
  display: block;
  opacity: 1;
}

/* CTA label (hidden on desktop, shown on mobile) */
.fnav-cta-label {
  display: none;
}

/* ── Language Toggle Switch (premium bouncy) ── */

/* Float container — fixed top-right, hides on scroll */
.lang-toggle-float {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Hide toggle while the homepage intro splash is still on screen — it overlaps awkwardly on mobile */
html.intro-running .lang-toggle-float {
  opacity: 0;
  pointer-events: none;
}
.lang-toggle-float.hidden {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(-8px);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.lang-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 20px;
}

/* Flag icons — monochrome by default */
.lang-flag-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.lang-flag-wrap--active {
  opacity: 1;
}
.lang-flag {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  filter: grayscale(1) contrast(0.9);
  transition: filter 0.4s ease;
}
.lang-flag-wrap--active .lang-flag {
  filter: grayscale(0);
}
.lang-toggle:hover .lang-flag-wrap--active .lang-flag {
  filter: grayscale(0);
}
.lang-toggle:hover .lang-flag-wrap:not(.lang-flag-wrap--active) {
  opacity: 0.6;
}

/* Track */
.lang-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--ink-light);
  opacity: 0.25;
  transition: background 0.5s ease, opacity 0.5s ease;
  flex-shrink: 0;
}
.lang-toggle--on .lang-toggle-track {
  background: var(--ink);
  opacity: 1;
}

/* Glow */
.lang-toggle-glow {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  box-shadow: 0 0 16px rgba(28, 24, 20, 0.15);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.lang-toggle--on .lang-toggle-glow {
  opacity: 1;
}

/* Thumb */
.lang-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream-white);
  box-shadow: 0 1px 4px rgba(28, 24, 20, 0.18), 0 0 1px rgba(28, 24, 20, 0.1);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.lang-toggle--on .lang-toggle-thumb {
  transform: translateX(18px);
}
.lang-toggle:active .lang-toggle-thumb {
  transform: scale(0.88);
  transition-duration: 0.15s;
}
.lang-toggle--on:active .lang-toggle-thumb {
  transform: translateX(18px) scale(0.88);
  transition-duration: 0.15s;
}

/* Thumb inner shine */
.lang-toggle-thumb-shine {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--cream-white), var(--cream-deep));
}

/* Thumb dot */
.lang-toggle-thumb-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-light);
  opacity: 0.4;
  transition: background 0.5s ease, opacity 0.5s ease, width 0.5s ease, height 0.5s ease;
}
.lang-toggle--on .lang-toggle-thumb-dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  opacity: 0.8;
}

/* Z-underline mark */
.fnav-z {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: visible;
}
.fnav-item.active .fnav-z {
  opacity: 1;
}
.fnav-item:not(.active):hover .fnav-z {
  opacity: 0.35;
}

/* ── Mobile bottom nav bar (Instagram-style) ── */
@media (max-width: 768px) {
  /* Site logo — top-left on mobile (compact) */
  .site-logo {
    height: 44px;
    left: 16px;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  /* Hide top blur bar on mobile */
  .nav-blur-bar { display: none; }

  /* Reposition nav to bottom */
  .fnav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    z-index: 9999;
    padding: 0;
    background: var(--cream-white);
    border-top: 1px solid var(--rule);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .fnav-pill {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    padding: 8px 8px;
  }

  /* Engraved logo inside the bottom nav bar — appears in left side
     when the page is scrolled (.fnav-pill.scrolled .fnav-logo). Kept
     intentionally small so it reads as a subtle watermark. */
  .fnav-logo {
    display: none;
    margin-right: auto;
    font-family: var(--font-display);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 0;
  }

  /* Nav items — icon-only layout */
  .fnav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 8px;
    flex: 0 0 auto;
  }

  /* Show icons on mobile */
  .fnav-icon {
    display: block;
    width: 28px;
    height: 28px;
    color: var(--ink);
    transition: color 0.2s;
  }

  /* Hide text labels on mobile */
  .fnav-label { display: none; }

  /* Hide Z-underline on mobile */
  .fnav-z { display: none; }

  /* Active state for icons */
  .fnav-item.active .fnav-icon { color: var(--ink); }
  .fnav-item:not(.active) .fnav-icon { color: var(--ink-light); }

  /* ── CTA button (Start a Project) — dark brown ── */
  .fnav-cta {
    background: rgba(28, 24, 20, 0.85); /* --ink, warm dark brown */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 10px 14px !important;
    flex: 0 0 auto;
    transition: background 0.2s;
  }
  .fnav-cta-label {
    font-size: 0.66rem !important;
    letter-spacing: 0.06em !important;
  }
  .fnav-cta:hover,
  .fnav-cta:active {
    background: var(--ink);
  }
  .fnav-cta .fnav-cta-label { color: var(--cream-white); }

  .fnav-cta .fnav-label { display: none; }
  .fnav-cta .fnav-z { display: none; }
  .fnav-cta-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream-white);
    white-space: nowrap;
  }

  /* Language toggle on mobile — top-right corner, compact */
  .lang-toggle-float {
    position: fixed;
    top: 14px;
    right: 16px;
    bottom: auto;
    left: auto;
    height: auto;
    padding-bottom: 0;
    z-index: 10000;
  }
  .lang-toggle {
    gap: 5px;
  }
  .lang-toggle-track {
    width: 32px;
    height: 18px;
    border-radius: 9px;
  }
  .lang-toggle-thumb {
    width: 14px;
    height: 14px;
  }
  .lang-toggle--on .lang-toggle-thumb {
    transform: translateX(14px);
  }
  .lang-toggle--on:active .lang-toggle-thumb {
    transform: translateX(14px) scale(0.88);
  }
  .lang-flag {
    width: 19px;
    height: 19px;
  }

  /* Bottom padding so content isn't hidden behind the nav */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.75rem;
  border-radius: 10px;
  border: none;
  background: var(--ink);
  color: var(--cream-white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  perspective: 500px;
  transition: transform 0.15s ease;
}
.btn:hover  { opacity: 1; }
.btn:active { transform: scale(0.95) !important; }
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-dark {
  background: rgba(28, 24, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.btn-red {
  background: var(--red);
  color: var(--cream-white);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { opacity: 1; }

/* Button inner label */
.btn .btn-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
/* Hover layer hidden — color flip handled by GSAP */
.btn .btn-hover { display: none; }
.btn .btn-dot   { display: none; }

/* Text-style link button with nav-style zigzag underline */
.btn-text {
  background: none;
  color: var(--ink);
  padding: 0 0 14px;
  border-bottom: none;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--red); }
.btn-text.btn-arrow::after { content: ' →'; }

/* Zigzag underline — mirrors .fnav-z, always drawing */
.btn-text .btn-z {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 10px;
  pointer-events: none;
  overflow: visible;
}

/*
 * Sequential Z draw — total cycle 5s:
 *   0%–24%  → path 1 draws (top wavy line, left→right)
 *   24%–48% → path 2 draws (diagonal, top-right→bottom-left)
 *   48%–72% → path 3 draws (bottom wavy line, left→right)
 *   72%–100%→ full Z holds, then all reset together
 */
@keyframes draw-z-1 {
  0%   { stroke-dashoffset: 180; }
  24%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes draw-z-2 {
  0%   { stroke-dashoffset: 100; }
  24%  { stroke-dashoffset: 100; }
  48%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes draw-z-3 {
  0%   { stroke-dashoffset: 180; }
  48%  { stroke-dashoffset: 180; }
  72%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

.btn-text .btn-z path:nth-child(1) {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw-z-1 1.8s linear infinite;
}
.btn-text .btn-z path:nth-child(2) {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-z-2 1.8s linear infinite;
}
.btn-text .btn-z path:nth-child(3) {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw-z-3 1.8s linear infinite;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  overflow: hidden;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) var(--gutter);
  padding-right: clamp(2rem, 4vw, 5rem);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0; /* GSAP reveals */
}
.hero-eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-eyebrow .label {
  opacity: 0;
  transform: translateY(6px);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 2rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--ink-muted);
}
.hero-sub {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 440px;
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-microcopy {
  font-size: 0.72rem;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  padding-left: 0.25rem;
}
.hero-foot {
  margin-top: auto;
  padding-top: 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-image {
  position: relative;
  overflow: hidden;
  opacity: 0; /* GSAP fades in after intro — prevents flash */
}
.hero-image-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--stone-1) 0%, var(--stone-2) 40%, var(--stone-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero-slide-dots {
  display: flex;
  gap: 6px;
}
.hero-slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-slide-dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.25);
}
.hero-slide-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero-pause-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}
.hero-pause-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.hero-pause-btn:focus-visible {
  outline: 2px solid var(--cream-white);
  outline-offset: 2px;
}
.hero-image-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(92, 80, 64, 0.5);
  text-align: center;
  line-height: 2;
  position: relative;
  z-index: 1;
}
/* When label is direct child of .hero-image (photo version), pin it to bottom */
.hero-image > .hero-image-label {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
}

.hero-stamp-wrap {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content { padding-right: var(--gutter); }
  .hero-image {
    height: 50vw;
    min-height: 280px;
    position: relative;
  }
  .hero-image-inner { position: absolute; }
}

/* ── Mobile spacing for page tops (breathable) ──
   Goal: hero/page tops feel airy on a 6.7" viewport — ~24-36px between
   eyebrow, headline, sub, CTA, caption. Stats can sit below the fold.
   Bottom nav, language switcher, copy, and desktop layout untouched. */
@media (max-width: 768px) {
  /* Top sections — replace the desktop nav-clearing padding with a
     more relaxed mobile breathing room. */
  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }
  .contact-hero,
  .page-header {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Eyebrow / headline / sub — relaxed vertical rhythm */
  .hero-eyebrow {
    margin-top: 36px;
    margin-bottom: 32px;
  }
  .hero-headline {
    margin-bottom: 24px;
    line-height: 1.05;
  }
  .hero-sub {
    margin-bottom: 36px;
  }

  /* CTA stack — column layout with explicit margins between elements */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .hero-cta-group {
    gap: 10px;
    width: 100%;
    max-width: 280px;
  }
  .hero-actions .btn.btn-dark {
    height: auto;
    padding: 16px 32px;
    font-size: 13px;
    width: 100%;
    max-width: 280px;
  }
  .hero-microcopy {
    font-size: 11px;
    color: var(--ink-light);
    opacity: 0.55;
    margin-bottom: 40px;
  }
  .hero-actions .btn-text.btn-arrow {
    margin-bottom: 48px;
  }

  /* Hero stats footer */
  .hero-foot {
    padding-top: 0;
    padding-bottom: 8px;
    gap: 14px;
    margin-top: 0;
  }
}

/* ══════════════════════════════════════════
   MARQUEE STRIP
   ══════════════════════════════════════════ */
.marquee-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}
.marquee-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  opacity: 1;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   PROJECT GRID
   ══════════════════════════════════════════ */
.work-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 2rem;
  flex-wrap: nowrap;
}
.work-intro-text {
  flex: 1 1 55%;
  min-width: 0;
}
.work-intro-text h1,
.work-intro-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0.75rem;
}
.work-intro-desc {
  font-size: 1rem;
  color: var(--ink-muted);
  flex: 0 1 420px;
  line-height: 1.65;
}

/* Filter */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--ink-muted);
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.filter-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Mid-grid CTA */
.grid-cta {
  padding: 3rem 0;
}
.grid-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem 2rem;
  background: var(--cream-deep);
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.grid-cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
@media (max-width: 600px) {
  .grid-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 1.5rem;
}
.projects-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-white);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
  position: relative;
}
.project-card:hover { transform: translateY(-4px); }
.project-card:hover .project-img-inner { transform: scale(1.03); }
.project-card:hover .project-arrow { opacity: 1; transform: translate(0, 0); }
.project-card:focus { outline: none; }
.project-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.project-card:focus-visible .project-arrow { opacity: 1; transform: translate(0, 0); }

.project-img {
  aspect-ratio: 5/4;
  overflow: hidden;
  position: relative;
  flex: 1;
  min-height: 0;
}
.project-img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
  /* When used as <img> (homepage), fill the container like background-size:cover */
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Project image backgrounds — set inline per card, except token-backed ones */
.project-img-inner.tk-istra-bg { background-color: var(--tk-istra-bg); }

.project-img-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  padding: 0.3rem 0.7rem;
  backdrop-filter: blur(4px);
}
.project-arrow {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: translate(4px, -4px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  color: var(--ink);
}
.project-info {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--rule);
}
.project-client {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  padding: 0;
}
.project-tags {
  display: none;
}
.tag {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--cream-deep);
  padding: 0.28rem 0.65rem;
}

/* Featured card (large) */
.project-card.featured {
  grid-column: span 2;
}
.project-card.featured .project-img {
  aspect-ratio: 2/1;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.featured { grid-column: span 2; }
}
@media (max-width: 580px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
}

/* ══════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   SERVICES — TWO-COLUMN CARD SCATTER
   ══════════════════════════════════════════ */
.svc-section {
  background: var(--cream);
}
.svc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Left sticky panel ── */
.svc-left {
  padding: 6rem 3rem 6rem var(--gutter);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.svc-sticky {
  position: relative;        /* no sticky — GSAP drives the movement */
  text-align: left;
}
.svc-eyebrow-text {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 2rem;
}
.svc-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 2rem;
}
.svc-heading em {
  font-style: italic;
  opacity: 0.45;
}
.svc-left-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ── Right cards column ── */
.svc-right {
  padding: 6rem var(--gutter) 6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  align-items: stretch; /* cards fill column, right edge = right gutter */
}
/* ── Individual card ── */
.svc-card {
  width: 100%;
  max-width: none;
  background: var(--cream-white);
  border: 1px solid var(--rule);
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 4px 28px rgba(28, 24, 20, 0.07); /* tint of --ink */
  will-change: transform, opacity;
  transform-origin: center center;
}
.svc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.svc-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.svc-card-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.25;
  line-height: 1;
}
.svc-card-rule {
  display: none;
}
.svc-card-desc {
  font-size: 0.78rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.85rem;
}
.svc-card-list {
  margin-top: 1rem;
}
.svc-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.svc-card-list li {
  font-size: 0.78rem;
  color: var(--ink-light);
  letter-spacing: 0.03em;
  padding-left: 1rem;
  position: relative;
}
.svc-card-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .svc-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .svc-left {
    padding: 4rem var(--gutter) 2.5rem;
  }
  .svc-sticky {
    position: static;
    text-align: left;
  }
  .svc-eyebrow-text {
    margin-bottom: 0.85rem;
  }
  .svc-heading {
    font-size: 1.9rem;
    line-height: 1.1;
  }
  .svc-heading br {
    display: none; /* flow as single line on mobile */
  }
  .svc-heading em {
    opacity: 1;
    color: var(--ink);
  }
  .svc-left-sub { max-width: 100%; margin: 0; }
  .svc-right {
    padding: 2rem var(--gutter) 4rem;
    gap: 2rem;
  }
  .svc-card {
    margin-left: 0 !important;
    rotation: 0 !important; /* reset any tilt on small screens */
  }
  .svc-card-title { font-size: clamp(1.4rem, 5vw, 1.8rem); }
}

/* ══════════════════════════════════════════
   CTA STRIP
   ══════════════════════════════════════════ */
.cta-strip {
  background: var(--ink);
  padding: clamp(4rem, 7vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: 'ALLUR';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 700;
  color: rgba(255,255,255,0.02);
  letter-spacing: 0.05em;
  pointer-events: none;
  white-space: nowrap;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cta-headline em {
  color: var(--red);
  font-style: italic;
}
.cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}
.cta-email {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.5);
  letter-spacing: 0.05em;
}
.cta-microcopy {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════
   ABOUT SECTION (Homepage teaser)
   ══════════════════════════════════════════ */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-teaser-img {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--stone-2) 0%, var(--stone-4) 50%, var(--stone-6) 100%);
  position: relative;
}
.about-teaser-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-img-caption {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.about-teaser-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-teaser-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0.75rem;
}
.about-teaser-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .about-teaser { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-teaser-img { aspect-ratio: 16/9; }
}

/* ══════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════ */
.about-hero {
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  overflow: hidden;
}
.about-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(3rem, 6vw, 6rem) var(--gutter);
}
.about-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0.75rem 0 1.5rem;
}
.about-hero-text p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 400px;
}
.about-hero-img {
  background: linear-gradient(160deg, var(--stone-2) 0%, var(--stone-5) 60%, var(--stone-7) 100%);
  position: relative;
  overflow: hidden;
}
.about-story {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.about-story-side {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.about-story-side h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 0.75rem;
}
.about-story-body p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.about-story-body p:last-child { margin-bottom: 0; }
.about-story-body strong { color: var(--ink); font-weight: 500; }
.about-story--full {
  grid-template-columns: 1fr;
  max-width: 720px;
}

/* ── About Opener ── */
.about-opener {
  max-width: 740px;
}
.about-opener-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.75rem 0 1.5rem;
}
.about-opener-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 600px;
}
.about-opener-lead strong {
  color: var(--ink);
  font-weight: 500;
}

/* ── About Timeline ── */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-tl-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.about-tl-item:first-child { border-top: 1px solid var(--rule); }
.about-tl-marker {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.about-tl-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
}
.about-tl-year {
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}
.about-tl-company {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.about-tl-role {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.about-tl-link {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.25rem;
  transition: color 0.3s ease;
}
.about-tl-link:hover {
  color: var(--red-deep);
}
.about-tl-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 100%;
}

.about-tl-desc + .about-tl-desc {
  margin-top: 1rem;
}

.about-tl-desc:first-of-type {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.about-tl-desc:last-of-type:not(:first-of-type) {
  font-style: italic;
  opacity: 0.75;
}
/* Inline auto-loop video — cinematic strip, matches text column width */
.about-tl-video {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  aspect-ratio: 3 / 1;
  background: var(--ink);
  overflow: hidden;
}
.about-tl-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Robeta: shift visible crop slightly — video content appears pushed down */
#robeta-video { object-position: center 35%; }

/* ── About Pull Quote ── */
.about-pullquote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}
.about-pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-style: italic;
}
.about-pullquote p::before {
  content: '\201C';
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-style: normal;
}

/* ── About Differentiators ── */
.about-diff {
  margin-bottom: 2rem;
}
.about-diff-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-top: 0.75rem;
}
.about-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.about-diff-card {
  padding: 2rem;
  background: var(--cream-white);
  border-top: 2px solid var(--red);
}
.about-diff-icon {
  margin-bottom: 1.25rem;
}
.about-diff-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.about-diff-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ── About responsive ── */
@media (max-width: 900px) {
  .about-tl-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2rem 0;
  }
  .about-tl-marker {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .about-diff-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .about-pullquote p {
    font-size: 1.15rem;
  }
}

/* ── Story Image Grid ── */
.story-image-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.6fr;
  grid-template-rows: auto;
  align-items: end;
  gap: 16px;
  margin: 2rem 0;
}
.story-img {
  overflow: hidden;
  background: var(--cream-deep);
}
.story-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.95);
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.55s ease;
}
.story-img:hover img {
  transform: scale(1.025);
  filter: saturate(1) brightness(1);
}
.story-img--landscape { aspect-ratio: 3/2; }
.story-img--portrait  { aspect-ratio: 2/3; }

@media (max-width: 640px) {
  .story-image-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .story-img:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16/7;
  }
  .story-img--portrait { aspect-ratio: 3/4; }
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}
.approach-item {
  padding: 2rem;
  background: var(--cream-white);
  border-top: 2px solid var(--red);
}
.approach-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 1rem;
}
.approach-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.approach-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 2rem;
}
.client-item {
  background: var(--cream-white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.client-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.client-sector {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.skill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.skill-item::before {
  content: '→';
  color: var(--red);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── Retainer section ── */
.retainer-section {
  background: var(--ink);
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.retainer-inner {
  max-width: 700px;
}
.retainer-label {
  color: var(--ink-light);
}
.retainer-headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--cream-white);
  margin: 0.75rem 0 1.25rem;
}
.retainer-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-light);
  margin-bottom: 2.25rem;
  max-width: 480px;
}
.retainer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.75rem;
}
.retainer-pill {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--cream-white);
  opacity: 0.7;
}
.btn-retainer {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--cream-white);
}
.btn-retainer:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-img { height: 40vw; min-height: 220px; }
  .about-story { grid-template-columns: 1fr; gap: 2rem; }
  .about-story-side { position: static; }
  .approach-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-list { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════ */
.contact-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 0;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin: 0.75rem 0 1.5rem;
  max-width: 14ch;
}
.contact-hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 480px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  margin-top: 4rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
input, textarea, select {
  background: var(--cream-white);
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  border-radius: 10px;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--ink);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
input::placeholder, textarea::placeholder {
  color: var(--ink-light);
  font-weight: 300;
}
textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}
.contact-info-block h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}
.contact-info-block p,
.contact-info-block a {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}
.contact-info-block a:hover { color: var(--red); }
.contact-socials {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink-muted);
  transition: color 0.25s, background 0.25s;
}
.contact-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.contact-social-link:hover {
  color: var(--cream-white);
  background: var(--red);
}

.contact-form-section {
  padding-bottom: clamp(5rem, 10vw, 10rem);
}
.contact-form .btn-full {
  width: 100%;
}
.form-response {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-muted);
  text-align: center;
}
.contact-aside {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.contact-aside-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.contact-aside-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.contact-info-muted {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.contact-info-detail {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   PRIVACY / LEGAL PAGE
   ══════════════════════════════════════════ */
.privacy-content {
  max-width: 720px;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}
.privacy-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.privacy-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.privacy-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.privacy-content a:hover { border-bottom-color: var(--ink); }
.meta-date {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2rem 0;
  border-top: 1px solid rgba(245,240,232,0.08);
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  flex-shrink: 0;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.55);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }
.footer-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,0.55);
  transition: color 0.2s;
}
.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.footer-social a:hover { color: var(--cream); }
.footer-copy {
  font-size: 0.7rem;
  color: rgba(245,240,232,0.22);
  margin-top: 1.25rem;
}
.footer-copy a {
  color: rgba(245,240,232,0.35);
  text-decoration: none;
}
.footer-copy a:hover {
  color: rgba(245,240,232,0.6);
}

/* Blur-in animation — GSAP handles transition; .visible is no-JS fallback */
.fade-blur {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(4px);
}
.fade-blur.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

@media (max-width: 700px) {
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-social { flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 380px) {
  .footer-links-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   ANIMATIONS — managed by GSAP
   .visible fallback for no-JS environments
   ══════════════════════════════════════════ */
.fade-up {
  opacity: 1;
  transform: none;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
/* delay data used by GSAP — kept as reference */
.fade-up-delay-1 { --fade-delay: 0.1s; }
.fade-up-delay-2 { --fade-delay: 0.2s; }
.fade-up-delay-3 { --fade-delay: 0.3s; }
.fade-up-delay-4 { --fade-delay: 0.4s; }
.fade-up-delay-5 { --fade-delay: 0.5s; }

/* ══════════════════════════════════════════
   MISC
   ══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   INTRO OVERLAY
   ══════════════════════════════════════════ */

/* Instant hide for returning visitors */
.sa-intro-skip #sa-intro { display: none !important; }

#sa-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  /* Same cream as page — seamless crossfade on exit */
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#sa-intro.sa-done { pointer-events: none; }

.sa-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

/* ── Logo text row ──
   JS injects .sa-lw > .sa-lc for each character.
   Exact same styling as .site-logo in the header.     */
.sa-intro-logo {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

/* Per-character clip wrapper — overflow:hidden clips the letter below baseline */
.sa-lw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* line-height slightly generous so clip doesn't cut descenders */
  line-height: 1.5;
}

/* The character itself — GSAP animates from translateY(110%) → 0 */
.sa-lc {
  display: inline-block;
  /* initial hidden state set by GSAP */
}

/* Space between words */
.sa-lw-space {
  display: inline-block;
  width: 0.38em; /* matches letter-spacing rhythm */
  overflow: visible;
}

/* ── Z-line SVG ──
   Sized to match the text width, positioned flush under it.
   Paths start invisible — JS sets stroke-dashoffset.         */
.sa-intro-zline {
  width: 100%;
  margin-top: 6px;
  overflow: visible;
  opacity: 0; /* fades in via GSAP */
}

.sa-intro-zline svg {
  width: 100%;
  height: 16px;
  overflow: visible;
  display: block;
}

.sa-zp {
  /* overridden by JS getTotalLength() */
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

/* ── page-header ── */
.page-header {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
}
.divider { height: 1px; background: var(--rule); }

/* Scroll bar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-light); }

/* ══════════════════════════════════════════
   TRUST LOGOS STRIP
   ══════════════════════════════════════════ */
.trust-logos {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-logos-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-logos-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-logos-divider {
  width: 1px;
  height: 20px;
  background: var(--rule);
  flex-shrink: 0;
}
.trust-logo-item {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.trust-logo-item:hover { opacity: 0.9; }

@media (max-width: 600px) {
  .trust-logos-inner { gap: 1.5rem; }
  .trust-logos-divider { display: none; }
}

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */
.testi-section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0.75rem;
}
@media (max-width: 900px) {
  .testi-section-heading {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
    line-height: 1.1;
    margin-top: 0.6rem;
  }
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testi-card {
  background: var(--cream-white);
  padding: 2.25rem 2rem;
  border-top: 2px solid var(--red-tint);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.testi-quote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  flex: 1;
}
.testi-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.65rem;
  color: var(--red-tint);
  margin-right: 0.15rem;
}
.testi-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.testi-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.testi-role {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   PROCESS STEPS (Homepage)
   ══════════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 3rem;
}
.process-step {
  background: var(--cream);
  padding: 2.5rem 2rem;
  position: relative;
}
.process-step-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.process-step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.process-step-desc {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--ink-muted);
}
.process-step::after {
  content: '→';
  position: absolute;
  top: 2.5rem;
  right: -0.6rem;
  font-size: 0.9rem;
  color: var(--ink-light);
  background: var(--cream);
  padding: 0 2px;
  z-index: 1;
}
.process-step:last-child::after { display: none; }

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }
}
@media (max-width: 580px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   BEST FIT / "IS THIS FOR YOU?" SECTION
   ══════════════════════════════════════════ */
.fit-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}
.fit-col-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.fit-col-title-yes { color: var(--ink); }
.fit-col-title-no  { color: var(--ink-light); }
.fit-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.fit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  line-height: 1.5;
}
.fit-item-yes {
  color: var(--ink);
}
.fit-item-no {
  color: var(--ink-light);
}
.fit-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 0.75rem;
}
.fit-icon-yes { color: var(--red); }
.fit-icon-no  { color: var(--ink-light); opacity: 0.5; }

@media (max-width: 768px) {
  .fit-section-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ══════════════════════════════════════════
   PHASE 2 + 3 — ADVANCED ANIMATIONS
   ══════════════════════════════════════════ */

/* ── Scroll progress bar ──────────────────
   Thin red line, fixed at very top of viewport.
   GSAP scales it from 0→1 on X axis.           */
#sa-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 10002;
  pointer-events: none;
}

/* ── Page transition curtain ─────────────
   White panel that slides up on enter,
   slides back down before leaving.         */
#sa-curtain {
  position: fixed;
  inset: 0;
  background: var(--cream-white);
  z-index: 9999;
  pointer-events: none;
  transform: translateY(0%); /* GSAP slides this to -100% on load */
  display: flex;
  align-items: center;
  justify-content: center;
}
#sa-curtain::after {
  content: "Studio ALLUR";
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Custom cursor ─────────────────────── */
#sa-cursor-dot,
#sa-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  display: none;
}
body.custom-cursor,
body.custom-cursor * { cursor: none !important; }
body.custom-cursor #sa-cursor-dot,
body.custom-cursor #sa-cursor-ring { display: block; }
#sa-cursor-dot {
  width: 28px; height: 28px;
  background: none;
  transform: translate(-50%, -50%);
}
#sa-cursor-dot svg {
  width: 100%; height: 100%;
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 8px;
  display: block;
}
#sa-cursor-ring {
  display: none !important;
}

/* ── SplitText headline clip wrappers ────
   Each .sa-split-clip clips the line above it
   so words wipe upward from invisible.     */
.sa-split-clip {
  display: block;
  overflow: hidden;
}
.sa-split-line {
  display: block;
  /* GSAP sets yPercent: 105 then animates to 0 */
}
/* Hero headline: override initial opacity: 0 from .fade-up
   when SplitText takes over (JS sets headline.style.opacity = '1') */
.hero-headline {
  overflow: visible;
}

/* ── Smooth scroll wrapper ───────────────
   ScrollSmoother wraps #smooth-content
   inside #smooth-wrapper.                 */
#smooth-wrapper {
  overflow: hidden;
  position: relative;
}
#smooth-content {
  overflow: visible;
  will-change: transform;
}

/* ── Trust logos marquee ─────────────────
   .trust-marquee wraps two .trust-marquee-track
   spans (original + JS clone) side by side.
   Parent clips the scroll.                */
.trust-logos-marquee {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  width: 100%;
}
.trust-logos-marquee-label {
  flex-shrink: 0;
  margin-right: 2.5rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  white-space: nowrap;
}
.trust-logos-marquee-divider {
  width: 1px; height: 20px;
  background: var(--rule);
  flex-shrink: 0;
  margin-right: 2.5rem;
}
.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 4rem; /* gap before clone */
}

/* ── Project card clip-path initial state ─
   GSAP animates from inset(100%→0%).
   Add will-change for GPU compositing.     */
.project-card {
  will-change: clip-path, opacity;
}

/* ── Process connector line ──────────────
   Horizontal red line that draws left-to-right
   above the process steps grid.
   GSAP animates scaleX: 0 → 1.            */
.process-connector {
  height: 2px;
  background: var(--red);
  transform-origin: left center;
  transform: scaleX(0);
  margin-bottom: -2px; /* flush to top of grid */
  position: relative;
  z-index: 1;
  opacity: 0.45;
}

/* ── About teaser parallax ───────────────
   The img container overflows so the image
   can travel without clipping.            */
.about-teaser-img {
  overflow: hidden;
}
.about-teaser-img img {
  transform-origin: center center;
  will-change: transform;
}

/* ── Grain texture overlay ───────────────
   Very subtle animated noise for a premium,
   film-like quality. Off by default on mobile. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10003;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: sa-grain 0.5s steps(2) infinite;
}
@keyframes sa-grain {
  0%   { transform: translate(0,   0);   }
  25%  { transform: translate(-1%, 2%);  }
  50%  { transform: translate(2%,  -1%); }
  75%  { transform: translate(-2%, 1%);  }
  100% { transform: translate(1%,  -2%); }
}
@media (max-width: 768px) {
  body::before { display: none; }
}
@media (max-width: 600px) {
  .retainer-headline { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .retainer-pills { gap: 0.5rem; }
  .retainer-pill { font-size: 0.75rem; padding: 0.4rem 0.85rem; }
}

/* ══════════════════════════════════════════
   CAREER HORIZONTAL SCROLL
   Desktop: GSAP pins section, slides move left as you scroll.
   Mobile: native touch swipe with scroll-snap.
   ══════════════════════════════════════════ */

/* ── Outer wrapper ── */
.career-hscroll {
  position: relative;
  height: 100vh;     /* explicit height so GSAP pin measures it correctly */
  background: var(--ink);
  overflow: hidden;  /* clips the overflowing track on desktop */
}

/* ── Slide track — flex row of cards ── */
.career-hscroll-track {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  height: calc(100vh - 64px); /* full height minus nav bar */
  will-change: transform;
}

/* ── Individual slide ── */
.career-hslide {
  position: relative;
  flex-shrink: 0;
  width: 78vw;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
}
/* Margins give a peek at adjacent cards */
.career-hslide:first-child { margin-left: 11vw; }
.career-hslide:last-child  { margin-right: 11vw; }

/* ── Slide background ── */
.career-hslide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04); /* subtle GSAP parallax target */
  transition: transform 0.6s ease;
}
.career-hslide-bg--img {
  filter: brightness(0.55);
}

/* ── Content overlay ── */
.career-hslide-content {
  position: absolute;
  inset: 0;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(14, 12, 9, 0.92) 0%,
    rgba(14, 12, 9, 0.45) 45%,
    transparent 100%
  );
  color: var(--cream);
}

/* ── Large number ── */
.career-hslide-num {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(245, 240, 232, 0.08);
  pointer-events: none;
  user-select: none;
}

/* ── Text content ── */
.career-hslide-year {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: 0.6rem;
}
.career-hslide-company {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--cream);
}
.career-hslide-role {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.career-hslide-desc {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.78);
  max-width: 46ch;
}

/* ── Progress nav (dots + arrows) ── */
.career-hscroll-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.75rem 0;
  background: var(--ink);
}
.career-hscroll-dots {
  display: flex;
  gap: 0.5rem;
}
.career-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.2);
  transition: background 0.3s, transform 0.3s;
}
.career-dot.active {
  background: var(--cream);
  transform: scale(1.4);
}
.career-hnav-btn {
  background: none;
  border: 1px solid rgba(245, 240, 232, 0.18);
  color: rgba(245, 240, 232, 0.55);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.career-hnav-btn:hover {
  border-color: rgba(245, 240, 232, 0.5);
  color: var(--cream);
}

/* ── MOBILE: native horizontal scroll ── */
@media (max-width: 900px) {
  .career-hscroll {
    height: auto;          /* override the 100vh — mobile uses natural height */
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .career-hscroll::-webkit-scrollbar { display: none; }
  .career-hscroll-track {
    /* On mobile — native scroll takes over, no GSAP transform */
    transform: none !important;
    height: auto;
    width: max-content;
    align-items: flex-start;
  }
  .career-hslide {
    width: 82vw;
    height: 72vw;
    min-height: 300px;
    max-height: 480px;
    scroll-snap-align: center;
  }
  .career-hslide:first-child { margin-left: 5vw; }
  .career-hslide:last-child  { margin-right: 5vw; }
  .career-hslide-company { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .career-hslide-desc { font-size: 0.88rem; }
  .career-hscroll-nav { padding: 1.25rem 0; }
  .career-hnav-btn { display: none; }
}

/* ══════════════════════════════════════════ PROJECT MODAL ══════════════════════════════════════════ */

    /* ── Project Modal — Overlay ── */
    .pm-overlay {
      position: fixed; inset: 0; z-index: 9999;
      background: rgba(14, 10, 12, 0.6);
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.35s ease;
    }
    .pm-overlay.is-open { opacity: 1; pointer-events: auto; }

    /* ── Modal shell ── */
    .pm-modal {
      position: relative; display: flex;
      width: min(94vw, 1120px); max-height: 90vh;
      background: var(--cream); border-radius: 0; overflow: hidden;
      transform: translateY(30px) scale(0.97);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 30px 80px rgba(14, 10, 12, 0.35);
    }
    .pm-overlay.is-open .pm-modal { transform: translateY(0) scale(1); }

    /* ── Scroll area with blurred dot pattern ── */
    .pm-scroll {
      position: relative; flex: 1; min-width: 0;
      max-height: 90vh; overflow-y: auto; overflow-x: hidden;
      scrollbar-width: none;
    }
    .pm-scroll::-webkit-scrollbar { display: none; }
    .pm-scroll::before {
      content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
      background-image: radial-gradient(circle, rgba(107, 98, 89, 0.18) 1px, transparent 1px);
      background-size: 32px 32px; filter: blur(0.5px);
    }
    .pm-scroll > * { position: relative; z-index: 1; }

    /* ── Close button (inside sidebar on desktop) ── */
    .pm-close {
      position: absolute; top: 6px; left: 6px; z-index: 10;
      width: calc(100% - 12px); aspect-ratio: 1;
      display: flex; align-items: center; justify-content: center;
      background: transparent; border: none; color: var(--cream-white);
      cursor: pointer; transition: opacity 0.25s, transform 0.2s;
      animation: pm-pulse 2.2s ease-in-out infinite;
      padding: 0;
    }
    .pm-close svg { width: 95%; height: 95%; }
    .pm-close:hover { opacity: 0.75; transform: scale(1.08); animation: none; }
    @keyframes pm-pulse {
      0%, 100% { transform: scale(1); opacity: 0.85; }
      50%      { transform: scale(1.1); opacity: 1; }
    }

    /* ── Terracotta sidebar (desktop) ── */
    .pm-sidebar {
      width: 35px; flex-shrink: 0; background: var(--red);
      border-radius: 0; position: relative;
      cursor: pointer; overflow: hidden;
      box-shadow: inset 0 4px 12px rgba(0,0,0,0.3), inset 0 -4px 12px rgba(0,0,0,0.15);
    }
    .pm-sidebar-thumb {
      position: absolute; left: 6px; width: calc(100% - 12px);
      min-height: 40px; max-height: 200px;
      background: var(--cream-white); border-radius: 1px; opacity: 0.85;
      transition: opacity 0.2s;
      box-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
    }
    .pm-sidebar:hover .pm-sidebar-thumb {
      opacity: 1;
      box-shadow: 0 3px 12px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
    }

    /* ── Mobile bottom bar ── */
    .pm-bottombar {
      display: none; width: 100%; height: 48px; flex-shrink: 0;
      background: var(--red); border-radius: 0;
      position: relative; align-items: center; padding: 0 8px; gap: 8px;
      box-shadow: inset 4px 0 12px rgba(0,0,0,0.3), inset -4px 0 12px rgba(0,0,0,0.15);
    }
    .pm-bottombar .pm-close-mobile {
      order: 2; width: 32px; height: 32px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      background: transparent; border: none; color: var(--cream-white);
      cursor: pointer; padding: 0;
      animation: pm-pulse 2.2s ease-in-out infinite;
    }
    .pm-bottombar .pm-close-mobile svg { width: 95%; height: 95%; }
    .pm-bottombar .pm-close-mobile:hover { opacity: 0.75; animation: none; }
    .pm-bottombar-track { order: 1; flex: 1; height: 100%; position: relative; }
    .pm-bottombar-thumb {
      position: absolute; top: 8px; height: calc(100% - 16px);
      min-width: 40px; max-width: 200px;
      background: var(--cream-white); border-radius: 8px; opacity: 0.85;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
    }

    /* ── Hero ── */
    .pm-hero {
      position: relative; width: 100%;
      aspect-ratio: 16 / 8; background-size: cover;
      background-position: center; background-color: var(--cream);
    }
    .pm-hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to bottom,
        rgba(14,10,12,0.10) 0%, rgba(14,10,12,0.0) 28%,
        rgba(14,10,12,0.30) 60%, rgba(14,10,12,0.82) 100%);
    }
    .pm-hero-meta {
      position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
      padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 2rem;
      background: linear-gradient(to bottom, rgba(14,10,12,0) 0%, rgba(14,10,12,0.55) 100%);
      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      mask-image: linear-gradient(to bottom, transparent 0%, black 38%);
      -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 38%);
    }
    .pm-hero-title {
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 3.4vw, 2.3rem);
      font-weight: 600; letter-spacing: -0.022em; line-height: 1.18;
      color: var(--cream-white); max-width: 640px;
    }

    /* ── Info strip ── */
    .pm-info {
      display: flex; gap: 2.5rem;
      padding: clamp(2rem, 3.5vw, 3rem) clamp(1.75rem, 3.5vw, 3rem);
    }
    .pm-info-left { flex: 1; min-width: 0; }
    .pm-info-right {
      flex-shrink: 0; display: flex; align-items: flex-start; padding-top: 0.25rem;
    }
    .pm-info-right .btn-red {
      animation: btn-pulse 2.2s ease-in-out infinite;
    }
    .pm-info-right .btn-red:hover { animation: none; }
    @keyframes btn-pulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(160, 82, 45, 0.4); }
      50% { transform: scale(1.03); box-shadow: 0 0 14px 4px rgba(160, 82, 45, 0.2); }
    }
    .pm-meta-row {
      display: flex; gap: 2.25rem; flex-wrap: wrap;
      padding-bottom: 1.5rem; margin-bottom: 1.75rem;
      border-bottom: 1px solid var(--rule);
    }
    .pm-meta-item { display: flex; flex-direction: column; gap: 0.35rem; }
    .pm-meta-label {
      font-size: 0.58rem; font-weight: 600;
      letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--ink-light);
    }
    .pm-meta-val {
      font-size: 0.86rem; color: var(--ink);
      letter-spacing: -0.005em;
    }
    /* Short hook — the point of the project, in one confident paragraph */
    .pm-hook {
      font-family: var(--font-display);
      font-size: clamp(1.05rem, 1.4vw, 1.2rem);
      line-height: 1.55;
      color: var(--ink);
      max-width: 58ch;
      letter-spacing: -0.005em;
      margin: 0;
    }
    /* ── Deep-dive: approach + deliverables ── */
    .pm-deepdive {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem;
      padding: 0 clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2rem);
      border-top: 1px solid var(--rule);
      margin: 0 clamp(1.75rem, 3.5vw, 3rem);
      padding-top: clamp(1.5rem, 2.5vw, 2rem);
      padding-left: 0;
      padding-right: 0;
    }
    .pm-dd-label {
      font-size: 0.58rem;
      font-weight: 600;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--ink-light);
      margin-bottom: 0.75rem;
    }
    .pm-dd-text {
      font-size: 0.92rem;
      line-height: 1.65;
      color: var(--ink-muted);
      max-width: 48ch;
    }
    .pm-dd-list {
      font-size: 0.92rem;
      line-height: 1.65;
      color: var(--ink-muted);
      padding-left: 1.1rem;
      list-style: disc;
    }
    .pm-dd-list li { margin-bottom: 0.25rem; }
    @media (max-width: 600px) {
      .pm-deepdive {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
    }

    /* ── Colour cycler — same-angle renders crossfading through material variants ── */
    .pm-cycle-section {
      padding: 0 clamp(1.75rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.5rem);
    }
    .pm-cycle-grid {
      display: grid;
      gap: clamp(1.5rem, 2.5vw, 2.25rem);
      grid-template-columns: 1fr;
    }
    .pm-cycler {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .pm-cycler-stack {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 7;
      background: var(--cream-deep);
      overflow: hidden;
    }
    @media (max-width: 720px) {
      .pm-cycler-stack { aspect-ratio: 4 / 3; }
    }
    .pm-cycler-stack img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center center;
      opacity: 0;
      transition: opacity 0.9s ease-in-out;
      will-change: opacity;
    }
    .pm-cycler-stack img.is-active {
      opacity: 1;
    }
    .pm-cycler-meta {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink-muted);
      gap: 1rem;
      padding: 0.85rem 0 0;
    }
    .pm-cycler-count {
      color: var(--red);
      font-variant-numeric: tabular-nums;
    }

    /* ── Before / After section ── */
    .pm-ba-section {
      padding: 0 clamp(1.75rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.5rem);
    }
    .pm-ba-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(0.75rem, 1.5vw, 1.25rem);
    }
    .pm-ba-col {
      position: relative;
    }
    .pm-ba-label {
      font-size: 0.66rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin-bottom: 0.6rem;
    }
    .pm-ba-stack {
      position: relative;
      width: 100%;
      aspect-ratio: 9 / 16;
      overflow: hidden;
      background: var(--cream-deep);
    }
    .pm-ba-stack img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.9s ease-in-out;
    }
    .pm-ba-stack img.is-active { opacity: 1; }
    .pm-ba-video-wrap {
      width: 100%;
      aspect-ratio: 9 / 16;
      overflow: hidden;
      background: var(--ink);
    }
    .pm-ba-video-wrap video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    @media (max-width: 680px) {
      .pm-ba-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ── Blueprint cycler variant ── */
    .pm-cycler.is-blueprints {
      max-width: 100%;
    }
    .pm-cycler.is-blueprints .pm-cycler-stack {
      aspect-ratio: 1.414 / 1;         /* A-series paper ratio */
      background: var(--cream-white);
      border: 1px solid var(--rule);
      box-shadow: 0 2px 16px rgba(28, 24, 20, 0.06), 0 0 0 1px rgba(28, 24, 20, 0.03);
    }
    .pm-cycler.is-blueprints .pm-cycler-stack img {
      object-fit: contain;
      padding: 2%;
      background: var(--cream-white);
    }
    .pm-cycler.is-blueprints .pm-cycler-meta {
      display: none;                    /* no label — drawings speak for themselves */
    }

    /* ── Static image comparison (e.g. Base vs Upgrade) ── */
    .pm-comparison-section {
      padding: 0 clamp(1.75rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.5rem);
    }
    .pm-comparison-grid {
      display: grid;
      gap: clamp(1.5rem, 2.5vw, 2.25rem);
      grid-template-columns: 1fr;
    }
    .pm-comparison-row {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .pm-comparison-img {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 7;
      background: var(--cream-deep);
      overflow: hidden;
    }
    .pm-comparison-img img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center center;
    }
    .pm-comparison-meta {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink-muted);
      gap: 1rem;
      padding: 0.85rem 0 0;
    }
    .pm-comparison-tier {
      color: var(--red);
      font-variant-numeric: tabular-nums;
    }
    @media (max-width: 720px) {
      .pm-comparison-img { aspect-ratio: 4 / 3; }
    }

    /* Optional outbound project link (e.g. live website) */
    .pm-link {
      margin: 1rem 0 0;
      font-size: 0.85rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .pm-link a {
      color: var(--red);
      text-decoration: none;
      border-bottom: 1px solid var(--red);
      padding-bottom: 2px;
      transition: color 0.2s ease, border-color 0.2s ease;
    }
    .pm-link a:hover {
      color: var(--red-deep);
      border-color: var(--red-deep);
    }

    /* Disclaimer — barely-there note */
    .pm-disclaimer {
      display: none;
      margin: 0;
      padding: 0.75rem clamp(1.75rem, 3.5vw, 3rem) 0;
      font-size: 0.7rem;
      letter-spacing: 0.02em;
      color: var(--ink-light);
      opacity: 0.55;
      text-align: left;
    }

    /* Final CTA — bottom of modal */
    .pm-cta {
      display: flex; justify-content: flex-end;
      padding: 0 clamp(1.75rem, 3.5vw, 3rem) clamp(2.5rem, 4vw, 3.5rem);
    }

    /* Deep dive — the long read, sits below the gallery */
    .pm-deepdive {
      padding: clamp(2rem, 4vw, 3.5rem) clamp(1.75rem, 3.5vw, 3rem) clamp(2.5rem, 4vw, 3.5rem);
      border-top: 1px solid var(--rule);
      margin-top: 0.5rem;
    }
    .pm-deepdive-inner {
      max-width: 64ch;
    }
    .pm-deepdive-label {
      display: block;
      font-size: 0.58rem; font-weight: 600;
      letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--red);
      margin-bottom: 1rem;
    }
    .pm-story {
      font-size: 0.98rem;
      line-height: 1.78;
      color: var(--ink-muted);
      margin-bottom: 2.25rem;
    }
    .pm-story p { margin: 0; }
    .pm-story p + p { margin-top: 1.1rem; }
    .pm-deliverables-wrap { margin-top: 0; }
    .pm-deliverables-label {
      display: block;
      font-size: 0.58rem; font-weight: 600;
      letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--ink-light);
      margin-bottom: 0.85rem;
    }
    .pm-deliverables { display: flex; flex-wrap: wrap; gap: 0.45rem; }
    .pm-deliverable {
      font-size: 0.66rem; font-weight: 500;
      letter-spacing: 0.1em; text-transform: uppercase;
      padding: 0.42em 0.85em; border-radius: 3px;
      background: var(--cream-deep); color: var(--ink-muted);
    }

    /* ── Gallery ── */
    .pm-gallery {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: clamp(0.65rem, 1.5vw, 1.1rem);
      padding: 0 clamp(1.75rem, 3.5vw, 3rem);
      padding-bottom: clamp(2rem, 3.5vw, 3rem);
    }
    /* ── Gallery intro (before/after with caption) ── */
    .pm-gallery-intro {
      padding: 0 clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2rem);
      margin: 0 clamp(1.75rem, 3.5vw, 3rem);
    }
    .pm-gallery-intro-img {
      background: var(--cream-deep);
      border-radius: 0;
      overflow: hidden;
    }
    .pm-gallery-intro-img img {
      width: 100%; height: auto; display: block;
      object-fit: contain;
    }
    .pm-gallery-intro-caption {
      font-size: 0.85rem;
      line-height: 1.55;
      color: var(--ink-muted);
      margin-top: 0.75rem;
      max-width: 60ch;
    }

    .pm-gallery-img {
      overflow: hidden; border-radius: 0;
      background: var(--cream-deep); aspect-ratio: 4/3;
    }
    .pm-gallery-img img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform 0.6s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
    }
    .pm-gallery-img:hover img { transform: scale(1.025); }
    .pm-gallery-img.pm-img-full { grid-column: 1 / -1; aspect-ratio: 3/2; }
    .pm-gallery-img.pm-img-tall { grid-row: span 2; aspect-ratio: auto; }
    .pm-gallery-img.pm-img-tall img { height: 100%; object-fit: cover; }
    .pm-gallery-img.pm-img-portrait { aspect-ratio: 9/16; }
    .pm-gallery-img.pm-img-portrait img { object-fit: cover; }
    .pm-gallery-img.pm-img-drawing { grid-column: 1 / -1; aspect-ratio: auto; }
    .pm-gallery-img.pm-img-drawing img { object-fit: contain; width: 100%; height: auto; }
    .pm-gallery-video {
      grid-column: 1 / -1;
      background: var(--ink);
    }
    .pm-gallery-video video {
      width: 100%;
      display: block;
    }
    .pm-gallery-img.pm-img-plan {
      grid-column: 1 / -1;
      aspect-ratio: 16/9;
      background: var(--cream-white);
      border: 1px solid var(--rule);
      padding: 32px;
      position: relative;
    }
    .pm-gallery-img.pm-img-plan img {
      object-fit: contain;
      transition: none;
    }
    .pm-gallery-img.pm-img-plan:hover img { transform: none; }
    .pm-gallery-img.pm-img-plan::after {
      content: 'Floor plan';
      position: absolute;
      top: 16px;
      left: 20px;
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--red);
      font-weight: 500;
    }
    @media (max-width: 640px) {
      .pm-gallery-img.pm-img-plan { aspect-ratio: 4/3; padding: 20px; }
    }

    /* ── Modal buttons in dark brown (desktop + mobile) ──
       Repaints the terracotta sidebar / bottom bar, the close icons,
       and the "Start a Project" CTA inside the popup. Scoped to .pm-modal
       so the rest of the site keeps its terracotta accent. */
    .pm-modal .pm-sidebar,
    .pm-modal .pm-bottombar {
      background: var(--ink-light);
    }
    .pm-modal .pm-close,
    .pm-modal .pm-bottombar .pm-close-mobile {
      color: var(--cream-white);
    }
    .pm-modal .pm-cta .btn-red {
      background: var(--ink);
      border-color: var(--ink);
      color: var(--cream-white);
      animation: none;
    }
    .pm-modal .pm-cta .btn-red:hover {
      background: var(--ink-lift); /* slightly lifted ink */
      border-color: var(--ink-lift);
      animation: none;
    }
    @keyframes pm-btn-pulse-dark {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(28, 24, 20, 0.45); }
      50%      { transform: scale(1.03); box-shadow: 0 0 14px 4px rgba(28, 24, 20, 0.22); }
    }

    /* ── Square-corner variant (per-project override) ──
       Applied to .pm-modal when a project requests sharp edges.
       Currently used by: ROBETA Renders. */
    .pm-modal.pm-square,
    .pm-modal.pm-square .pm-sidebar,
    .pm-modal.pm-square .pm-bottombar,
    .pm-modal.pm-square .pm-sidebar-thumb,
    .pm-modal.pm-square .pm-bottombar-thumb,
    .pm-modal.pm-square .pm-close,
    .pm-modal.pm-square .pm-bottombar .pm-close-mobile,
    .pm-modal.pm-square .pm-gallery-img,
    .pm-modal.pm-square .pm-deliverable {
      border-radius: 0 !important;
    }

    /* ── Mobile ── */
    @media (max-width: 680px) {
      .pm-modal { width: 100vw; max-height: 100dvh; flex-direction: column; }
      .pm-scroll { max-height: calc(100dvh - 48px); scrollbar-width: none; }
      .pm-scroll::-webkit-scrollbar { display: none; }
      .pm-hero { aspect-ratio: 4/3; }
      .pm-info { flex-direction: column; gap: 1.25rem; }
      .pm-cta .btn { width: 100%; text-align: center; }
      .pm-gallery { grid-template-columns: 1fr; }
      .pm-gallery-img.pm-img-full { grid-column: auto; aspect-ratio: auto; }
      .pm-gallery-img.pm-img-full img { object-fit: cover; width: 100%; height: auto; }
      .pm-sidebar { display: none; }
      .pm-bottombar { display: flex; }
    }

/* ═══════════════════════════════════════════════════════
   WHY CLIENTS COME HERE
   ═══════════════════════════════════════════════════════ */
.section-why { padding-top: 6rem; padding-bottom: 6rem; }
.why-header { max-width: 640px; margin-bottom: 3.5rem; }
.why-header h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.why-card {
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--cream-white);
}
.why-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 1rem;
}
.why-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.why-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
@media (max-width: 680px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════ */
.section-services { padding-top: 6rem; padding-bottom: 6rem; }
.services-header { max-width: 640px; margin-bottom: 3.5rem; }
.services-header h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; margin-bottom: 1rem; }
.services-intro { font-size: 0.95rem; line-height: 1.65; color: var(--ink-muted); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--cream-white);
  display: flex;
  flex-direction: column;
}
.service-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.service-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-list li {
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════════ */
.section-process { padding-top: 6rem; padding-bottom: 6rem; }
.process-header { max-width: 640px; margin-bottom: 3.5rem; }
.process-header h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; }
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.process-step:first-child { border-top: 1px solid var(--rule); }
.process-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  flex-shrink: 0;
  width: 3rem;
  padding-top: 0.2rem;
}
.process-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.process-content p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 560px;
}
@media (max-width: 680px) {
  .process-step { flex-direction: column; gap: 0.5rem; }
  .process-num { width: auto; }
}

/* ═══════════════════════════════════════════════════════
   BEST-FIT FILTER
   ═══════════════════════════════════════════════════════ */
.section-bestfit { padding-top: 6rem; padding-bottom: 6rem; }
.bestfit-header { max-width: 640px; margin-bottom: 3.5rem; }
.bestfit-header h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; }
.bestfit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.bestfit-col {
  padding: 2.5rem 2rem;
  border-radius: 12px;
}
.bestfit-yes {
  background: var(--cream-white);
  border: 1px solid var(--rule);
}
.bestfit-no {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
}
.bestfit-col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.bestfit-yes .bestfit-col-title { color: var(--success); }
.bestfit-no .bestfit-col-title { color: var(--ink-light); }
.bestfit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.bestfit-list li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
  padding-left: 1.5rem;
  position: relative;
}
.bestfit-yes .bestfit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}
.bestfit-no .bestfit-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-light);
}
@media (max-width: 680px) {
  .bestfit-columns { grid-template-columns: 1fr; }
}

/* ── Mobile-only utility ── */
.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: block; }
}

/* ═══════════════════════════════════════════════════════
   SKIP-TO-CONTENT LINK
   ═══════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--ink);
  color: var(--cream-white);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   Disables GSAP animations, slideshow, CSS transitions
   Required for WCAG 2.2 AA / EAA compliance
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }

  /* Hero slideshow — stop auto-advance, show only first slide */
  .hero-slide { opacity: 0 !important; transition: none !important; }
  .hero-slide.active { opacity: 1 !important; }

  /* Ensure all content is visible (no GSAP opacity:0 stuck states) */
  .fade-up, .fade-blur, .hero-image,
  .site-logo, .fnav, .hero-content,
  .project-card, .stat-item {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Intro overlay — skip it entirely */
  #sa-intro { display: none !important; }

  /* Page transition curtain — disable */
  .curtain { display: none !important; }
}

/* ═══════════════════════════════════════════════════
   HERO STATS — Hand-drawn visuals with draw-in animation
   ═══════════════════════════════════════════════════ */

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.hero-stat-viz {
  width: 80px;
  height: 14px;
  margin: 0.75rem 0 0.6rem 0;
  display: block;
  overflow: visible;
}

/* Context — sekundarna vrstica pod labelom */
.hero-stat-context {
  display: block;
  font-size: 0.72em;
  opacity: 0.5;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  text-transform: none;
}

/* ─── Draw-in animation keyframes ─── */
@keyframes viz-draw {
  from { stroke-dashoffset: var(--dash); }
  to   { stroke-dashoffset: 0; }
}

@keyframes viz-fade-in {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 0.9; transform: scale(1); }
}

/* ─── 1. TIMELINE (years stat) ─── */
.hero-stat-viz-timeline .viz-path-1 {
  --dash: 95;
  stroke-dasharray: 95;
  stroke-dashoffset: 95;
  animation: viz-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.hero-stat-viz-timeline .viz-dot-1,
.hero-stat-viz-timeline .viz-dot-2,
.hero-stat-viz-timeline .viz-dot-3 {
  opacity: 0;
  transform-origin: center;
  animation: viz-fade-in 0.3s ease-out forwards;
}

.hero-stat-viz-timeline .viz-dot-1 { animation-delay: 1.0s; }
.hero-stat-viz-timeline .viz-dot-2 { animation-delay: 1.4s; }
.hero-stat-viz-timeline .viz-dot-3 { animation-delay: 1.8s; }

/* ─── 2. STROKES (30+ stat) ─── */
.hero-stat-viz-strokes .viz-stroke-1,
.hero-stat-viz-strokes .viz-stroke-2,
.hero-stat-viz-strokes .viz-stroke-3,
.hero-stat-viz-strokes .viz-stroke-4,
.hero-stat-viz-strokes .viz-plus-1,
.hero-stat-viz-strokes .viz-plus-2 {
  --dash: 15;
  stroke-dasharray: 15;
  stroke-dashoffset: 15;
  animation: viz-draw 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-stat-viz-strokes .viz-stroke-1 { animation-delay: 0.9s; }
.hero-stat-viz-strokes .viz-stroke-2 { animation-delay: 1.1s; }
.hero-stat-viz-strokes .viz-stroke-3 { animation-delay: 1.3s; }
.hero-stat-viz-strokes .viz-stroke-4 { animation-delay: 1.5s; }
.hero-stat-viz-strokes .viz-plus-1  { animation-delay: 1.75s; }
.hero-stat-viz-strokes .viz-plus-2  { animation-delay: 1.95s; }

/* ─── 3. SHAPES (3 stat) ─── */
.hero-stat-viz-shapes .viz-shape-1,
.hero-stat-viz-shapes .viz-shape-2,
.hero-stat-viz-shapes .viz-shape-3 {
  --dash: 40;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: viz-draw 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-stat-viz-shapes .viz-shape-1 { animation-delay: 1.0s; }
.hero-stat-viz-shapes .viz-shape-2 { animation-delay: 1.4s; }
.hero-stat-viz-shapes .viz-shape-3 { animation-delay: 1.8s; }

/* ─── Respect reduced-motion preference ─── */
@media (prefers-reduced-motion: reduce) {
  .hero-stat-viz * {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: inherit !important;
    transform: none !important;
  }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .hero-stat-viz {
    width: 60px;
  }
}

/* ── Availability dot ── */
.availability-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d9c5f;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 0 0 rgba(45, 156, 95, 0.5);
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(45, 156, 95, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(45, 156, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 156, 95, 0); }
}
