/* ============================================================
   EAKOM UNIVERSAL — Luxury Sourcing Shared Stylesheet
   Enhanced with Modern Hardware-Accelerated Animations & Micro-Interactions
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #F2F1EB;
  --cream-deep: #E3E1D7;
  --cream-glass: rgba(242, 241, 235, 0.88);
  --ink: #2D2D2E;
  --ink-light: #666561;
  --terracotta: #3E4047;
  --terracotta-glow: rgba(62, 64, 71, 0.35);
  --terracotta-light: #565961;
  --terracotta-soft: rgba(62, 64, 71, 0.09);
  --pine: #2D2D2E;
  --pine-dark: #1F1F20;
  --stone: #A79E93;
  --line: rgba(45, 45, 46, 0.12);
  --line-subtle: rgba(45, 45, 46, 0.06);
  --error: #C0392B;
  --error-bg: rgba(192, 57, 43, 0.08);
  --success: #27AE60;
  --success-bg: rgba(39, 174, 96, 0.08);
  --display: 'Fraunces', serif;
  --body: 'Hanken Grotesk', sans-serif;
  --max: 1220px;

  /* Easing curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
}

/* ---------------- scroll progress bar ---------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--ink);
  box-shadow: none;
  z-index: 1000;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---------------- responsive grid utilities ---------------- */
.grid-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.grid-50-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 960px) {

  .grid-split,
  .grid-2col {
    gap: 36px;
  }

  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {

  .grid-split,
  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .grid-50-50 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
}

p {
  margin: 0;
}

/* ---------------- header ---------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition: background 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    padding 0.4s var(--ease-out-expo),
    backdrop-filter 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo);
}

header.site.header-hidden {
  transform: translateY(-100%);
}

header.site.scrolled {
  background: var(--cream-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(45, 45, 46, 0.06);
  border-color: rgba(45, 45, 46, 0.08);
}

@keyframes header-drop-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header.site .brand,
header.site .nav-actions {
  animation: header-drop-in 0.7s var(--ease-out-expo) both;
}

header.site .brand {
  animation-delay: 0.05s;
}

header.site .nav-actions {
  animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {

  header.site .brand,
  header.site .nav-actions,
  nav.primary li {
    animation: none;
    opacity: 1;
  }
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 0;
  transition: padding 0.35s var(--ease-out-expo);
}

header.site.scrolled .nav-row {
  padding: 13px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out-back);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  transition: transform 0.4s var(--ease-out-back), opacity 0.25s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
  opacity: 0.85;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 40px;
}

nav.primary ul {
  list-style: none;
  display: flex;
  gap: 42px;
  margin: 0;
  padding: 0;
}

nav.primary li {
  position: relative;
  opacity: 0;
  animation: header-drop-in 0.6s var(--ease-out-expo) both;
}

nav.primary li:nth-child(1) { animation-delay: 0.18s; }
nav.primary li:nth-child(2) { animation-delay: 0.24s; }
nav.primary li:nth-child(3) { animation-delay: 0.30s; }
nav.primary li:nth-child(4) { animation-delay: 0.36s; }
nav.primary li:nth-child(5) { animation-delay: 0.42s; }

nav.primary>ul>li>a {
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: opacity 0.25s ease;
}

nav.primary>ul>li>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}

nav.primary>ul>li>a:hover,
nav.primary>ul>li>a.active {
  opacity: 0.6;
}

nav.primary>ul>li>a:hover::after,
nav.primary>ul>li>a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.has-mega {
  position: relative;
}

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 14px) scale(0.97);
  display: grid;
  grid-template-columns: repeat(4, 128px);
  gap: 14px;
  background: rgba(242, 241, 235, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(45, 45, 46, 0.14);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out-expo),
    transform 0.25s var(--ease-out-expo),
    visibility 0.25s;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 4px) scale(1);
}

.mega-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(45, 45, 46, 0.10);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.mega-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.mega-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(45, 45, 46, 0.82) 0%, rgba(45, 45, 46, 0.05) 55%, transparent 80%);
}

.mega-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.mega-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(45, 45, 46, 0.20);
}

.mega-card:hover img {
  transform: scale(1.08);
}

.mega-card.active {
  box-shadow: 0 0 0 2px var(--terracotta), 0 14px 28px rgba(45, 45, 46, 0.20);
}

@media (max-width: 960px) {
  .mega {
    display: none;
  }
}

.login-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.login-pill:hover {
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle svg line {
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s ease, stroke 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] svg line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 960px) {
  nav.primary ul {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand {
    padding-left: 8px;
  }
}

@media (max-width: 480px) {
  .nav-row {
    padding: 14px 0;
  }

  .brand-logo {
    height: 28px;
  }

  .login-pill {
    padding: 7px 12px;
    font-size: 11.5px;
  }
}

/* mobile drawer backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(45, 45, 46, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  z-index: 100;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease-out-expo), visibility 0.4s ease;
  box-shadow: -10px 0 40px rgba(45, 45, 46, 0.16);
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer .close-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-drawer .drawer-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.mobile-drawer .drawer-close {
  transition: transform 0.25s var(--ease-out-back);
}

.mobile-drawer .drawer-close:hover {
  transform: rotate(90deg) scale(1.1);
}

.mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer ul li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

.mobile-drawer.open ul li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-drawer.open ul li:nth-child(1) {
  transition-delay: 0.08s;
}

.mobile-drawer.open ul li:nth-child(2) {
  transition-delay: 0.14s;
}

.mobile-drawer.open ul li:nth-child(3) {
  transition-delay: 0.20s;
}

.mobile-drawer.open ul li:nth-child(4) {
  transition-delay: 0.26s;
}

.mobile-drawer.open ul li:nth-child(5) {
  transition-delay: 0.32s;
}

.mobile-drawer a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-style: italic;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-drawer a:hover {
  color: var(--terracotta);
  padding-left: 6px;
}

.mobile-drawer .sub-links {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  margin-top: 4px;
}

.mobile-drawer .sub-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-style: normal;
  font-family: var(--body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: none;
  padding: 6px 0;
  color: var(--terracotta);
}

.mobile-drawer .sub-links a img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------------- hero (unified, split layout) ---------------- */
.hero {
  background: var(--cream);
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 60vh;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 56px 48px 56px max(40px, calc((100vw - var(--max)) / 2 + 40px));
}

.hero-lede {
  font-size: 16px;
  color: var(--ink-light);
  max-width: 420px;
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.hero-photo-frame {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--cream-deep);
}

.hero-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transform: scale(1.06);
  animation: hero-photo-kenburns 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-photo-kenburns {
  from {
    transform: scale(1.06) translate(0, 0);
  }

  to {
    transform: scale(1.14) translate(-1.4%, -1%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-frame img {
    animation: none;
  }
}

.hero-grid--full {
  display: block;
  position: relative;
  min-height: 70vh;
}

.hero-grid--full .hero-photo-frame {
  position: absolute;
  inset: 0;
  min-height: 0;
  z-index: 0;
  animation: banner-reveal 1.6s var(--ease-out-expo) both;
}

.hero-grid--full .hero-parallax {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  will-change: transform;
}

.hero-grid--full .hero-parallax img {
  animation: wave-drift 16s ease-in-out infinite;
}

@keyframes wave-drift {
  0% {
    transform: scale(1.08) translate(0, 0);
  }

  25% {
    transform: scale(1.13) translate(-2.2%, 1.2%);
  }

  50% {
    transform: scale(1.06) translate(1.6%, -1.6%);
  }

  75% {
    transform: scale(1.12) translate(-1.2%, -1.2%);
  }

  100% {
    transform: scale(1.08) translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid--full .hero-parallax img {
    animation: none;
  }
}

@keyframes banner-reveal {
  from {
    opacity: 0;
    transform: scale(1.12);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid--full .hero-photo-frame {
    animation: none;
  }
}

.hero-grid--full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(242, 241, 235, .82) 0%, rgba(242, 241, 235, .55) 45%, rgba(242, 241, 235, .82) 100%);
  z-index: 1;
}

.hero-grid--full--vivid::before {
  background: none;
}

.hero-grid--full--vivid .hero-lede {
  color: var(--ink);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(242, 241, 235, 0.9), 0 1px 16px rgba(242, 241, 235, 0.75);
}

.hero-grid--full .hero-text {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  justify-content: center;
  padding: 56px 40px;
}

@media (max-width: 900px) {
  .hero-grid--full {
    min-height: 80vh;
  }

  .hero-grid--full .hero-text,
  .hero-grid--full .hero-photo-frame {
    min-height: 80vh;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-photo-frame {
    min-height: 46vh;
    order: -1;
    margin-top: 16px;
  }

  .hero-text {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .hero-photo-frame {
    min-height: 40vh;
  }

  .hero-text {
    padding: 32px 20px;
  }
}

.hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(62, 64, 71, 0.08);
  border: 1px solid rgba(62, 64, 71, 0.2);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  width: fit-content;
  overflow: hidden;
}

.hero-eyebrow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: sweep-shimmer 4.5s ease-in-out infinite 1.5s;
}

@keyframes sweep-shimmer {
  0% {
    left: -100%;
  }

  35%,
  100% {
    left: 140%;
  }
}

.hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.14;
  overflow-wrap: break-word;
}

.hero h1 .word {
  display: inline-block;
}

.hero h1 .word:nth-child(n+2) {
  color: var(--ink);
  font-weight: 800;
}

/* ---------------- marquee ---------------- */
.marquee-band {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  border-top: 1px solid rgba(242, 241, 235, 0.15);
  border-bottom: 1px solid rgba(242, 241, 235, 0.15);
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 28s linear infinite;
  will-change: transform;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  padding: 18px 38px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.marquee-track span:hover {
  color: #D8D6CD;
}

.marquee-track span::after {
  content: "—";
  margin-left: 38px;
  color: var(--terracotta);
  font-family: var(--body);
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .marquee-track span {
    font-size: 16px;
    padding: 14px 24px;
  }

  .marquee-track span::after {
    margin-left: 24px;
  }
}

/* ---------------- scroll reveals ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo),
    filter 0.85s var(--ease-out-expo);
  will-change: opacity, transform, filter;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo),
    filter 0.85s var(--ease-out-expo);
}

.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo),
    filter 0.85s var(--ease-out-expo);
}

.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo),
    filter 0.85s var(--ease-out-expo);
}

.reveal-scale.in {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.75s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo),
    filter 0.75s var(--ease-out-expo);
}

.reveal-stagger.in>* {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-stagger.in>*:nth-child(1) {
  transition-delay: 0.06s;
}

.reveal-stagger.in>*:nth-child(2) {
  transition-delay: 0.14s;
}

.reveal-stagger.in>*:nth-child(3) {
  transition-delay: 0.22s;
}

.reveal-stagger.in>*:nth-child(4) {
  transition-delay: 0.30s;
}

.reveal-stagger.in>*:nth-child(5) {
  transition-delay: 0.38s;
}

.reveal-stagger.in>*:nth-child(6) {
  transition-delay: 0.46s;
}

.reveal-stagger.in>*:nth-child(7) {
  transition-delay: 0.54s;
}

.reveal-stagger.in>*:nth-child(8) {
  transition-delay: 0.62s;
}

.reveal-stagger.in>*:nth-child(9) {
  transition-delay: 0.70s;
}

.reveal-stagger.in>*:nth-child(10) {
  transition-delay: 0.78s;
}

/* ---------------- signature thread divider ---------------- */
.thread {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 54px 0;
}

.thread-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px);
  position: relative;
  overflow: visible;
}

.thread-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--terracotta-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: travel 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.thread-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 10px var(--terracotta);
  transform: translate(-50%, -50%);
  animation: travel 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes travel {
  0% {
    left: 0%;
    transform: translate(-50%, -50%) scale(0.9);
  }

  50% {
    left: 100%;
    transform: translate(-50%, -50%) scale(1.2);
  }

  100% {
    left: 0%;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

.thread-label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  white-space: nowrap;
}

.thread-stop {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thread-stop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-light);
  margin-bottom: 10px;
}

.thread-stop-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .thread-stop-label {
    font-size: 7.5px;
    letter-spacing: 0.02em;
    white-space: normal;
    text-align: center;
    width: 46px;
  }

  .thread-label {
    font-size: 7.5px;
    letter-spacing: 0.04em;
  }

  .thread {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 36px 0;
  }

  .thread-line {
    width: auto;
  }
}

/* ---------------- section shells ---------------- */
.py {
  padding: 90px 0;
}

.py-sm {
  padding: 60px 0;
}

.alt {
  background: var(--cream-deep);
}

.dark {
  background: var(--pine);
  color: var(--cream);
}

.dark h2,
.dark h3 {
  color: var(--cream);
}

.eyebrow {
  display: block;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 16px;
}

.lede {
  font-size: 18px;
  color: #666561;
  max-width: 640px;
}

.dark .lede {
  color: #D8D6CD;
}

/* ---------------- partners (photo panel + logo grid) ---------------- */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(45, 45, 46, 0.12);
}

.partners-photo {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.partners-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(45, 45, 46, 0.62) 0%, rgba(45, 45, 46, 0.12) 55%, rgba(45, 45, 46, 0.32) 100%);
}

.partners-photo h2 {
  position: relative;
  z-index: 1;
  padding: 44px;
  color: var(--cream);
  font-size: clamp(26px, 3vw, 34px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.28;
}

.partners-logos {
  background: var(--cream);
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  align-items: center;
  justify-items: start;
  gap: 46px 28px;
  padding: 56px;
}

.partners-logos-note {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-light);
  opacity: 0.65;
  text-align: right;
}

.partner-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.partner-logo-img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .partners-logos {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    padding: 40px 32px;
  }

  .partner-logo-img {
    height: 26px;
  }
}

@media (max-width: 860px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partners-photo {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .partners-photo h2 {
    padding: 32px;
    font-size: 24px;
  }

  .partners-logos {
    gap: 24px 36px;
    padding: 36px 32px;
  }
}

@media (max-width: 768px) {
  .py {
    padding: 54px 0;
  }

  .py-sm {
    padding: 36px 0;
  }

  .lede {
    font-size: 16px;
  }
}

/* ---------------- stats ---------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, transform 0.35s ease;
}

.stat:last-child {
  border-right: none;
}

.stat:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.stat .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 48px;
  color: var(--terracotta);
  line-height: 1;
  display: inline-block;
}

.stat .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-top: 10px;
}

.stat-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--terracotta);
  transition: width 1.2s var(--ease-out-expo);
}

.stat.in .stat-progress {
  width: 100%;
}

@media (max-width: 860px) {
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-bottom: 1px solid var(--line);
    padding: 26px 20px;
  }
}

@media (max-width: 520px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat .num {
    font-size: 38px;
  }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 28px;
  min-height: 46px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s var(--ease-out-back), box-shadow 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(45, 45, 46, 0.12);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
}

.btn:hover {
  background: var(--terracotta);
  color: var(--cream);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(62, 64, 71, 0.28);
}

.btn:hover::before {
  left: 140%;
  transition: left 0.65s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(45, 45, 46, 0.18);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--terracotta);
  color: var(--cream);
}

/* ---------------- quote ---------------- */
.quote-block {
  text-align: center;
  padding: 80px 0;
}

.quote-block p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 40px);
  max-width: 840px;
  margin: 0 auto;
  line-height: 1.35;
}

.quote-block .attribution {
  display: block;
  margin-top: 22px;
  font-family: var(--body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
}

@media (max-width: 600px) {
  .quote-block {
    padding: 48px 0;
  }
}

/* ---------------- process / services ---------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-item {
  padding: 24px 24px 26px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.process-item:last-child {
  border-right: none;
}

.process-item-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.7s var(--ease-out-expo);
}

.process-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(45, 45, 46, 0.80) 0%, rgba(45, 45, 46, 0.12) 55%, rgba(45, 45, 46, 0.02) 100%);
  z-index: 1;
}

.process-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--terracotta);
  transition: width 0.4s var(--ease-out-expo);
  z-index: 2;
}

.process-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(45, 45, 46, 0.18);
  z-index: 2;
}

.process-item:hover::before {
  width: 100%;
}

.process-item:hover .process-item-img {
  transform: scale(1.08);
}

.process-num {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(45, 45, 46, 0.65);
  border: 1px solid rgba(242, 241, 235, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-out-back), background 0.3s ease, color 0.3s ease;
}

.process-item:hover .process-num {
  transform: scale(1.15) rotate(-5deg);
  background: var(--terracotta);
  color: var(--cream);
}

.process-item h3 {
  position: relative;
  z-index: 2;
  font-size: 20px;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.3s ease;
}

.process-item:hover h3 {
  color: var(--cream);
}

@media (max-width: 860px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-item {
    border-bottom: 1px solid var(--line);
    padding: 26px 20px;
  }
}

@media (max-width: 520px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- category cards ---------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  text-decoration: none;
  display: block;
  background: var(--stone);
  border-radius: 8px;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  box-shadow: 0 10px 24px rgba(45, 45, 46, 0.08);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  z-index: 3;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(45, 45, 46, 0.18);
}

@media (hover: hover) {
  .category-card:hover {
    transform: translateY(-8px) perspective(900px) rotateX(3deg) rotateY(-3deg);
  }
}

.category-card:hover::before {
  opacity: 1;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo), filter 0.8s ease;
}

.category-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* ---------------- reusable depth/3D-tilt utility for photo panels ---------------- */
.depth-card {
  box-shadow: 0 20px 45px rgba(45, 45, 46, 0.16), 0 8px 18px rgba(45, 45, 46, 0.10);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

@media (hover: hover) {
  .depth-card:hover {
    transform: perspective(1000px) rotateX(2.5deg) rotateY(-2.5deg) translateY(-4px);
    box-shadow: 0 30px 60px rgba(45, 45, 46, 0.22), 0 10px 22px rgba(45, 45, 46, 0.14);
  }
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(45, 45, 46, 0.82) 0%, rgba(45, 45, 46, 0.15) 50%, transparent 100%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.category-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  color: var(--cream);
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.4s var(--ease-out-expo), color 0.3s ease;
}

.category-label svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-out-back);
}

.category-card:hover .category-label {
  transform: translateY(-4px);
  color: #FFF;
}

.category-card:hover .category-label svg {
  transform: translateX(8px);
}

@media (max-width: 860px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-label {
    font-size: 19px;
    left: 16px;
    bottom: 16px;
  }
}

/* ---------------- masonry gallery ---------------- */
.gallery {
  column-count: 4;
  column-gap: 16px;
}

/* ---------------- full-width promotional banner strip ---------------- */
.full-banner-strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.full-banner-strip img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .full-banner-strip img {
    max-height: 260px;
  }
}

.gallery img,
.g-item {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 6px;
  break-inside: avoid;
  cursor: zoom-in;
  transition: transform 0.5s var(--ease-out-expo), filter 0.5s ease, box-shadow 0.5s var(--ease-out-expo);
  box-shadow: 0 4px 14px rgba(45, 45, 46, 0.06);
}

.gallery img:hover,
.g-item:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(45, 45, 46, 0.14);
}

.g-item {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), filter 0.5s ease, box-shadow 0.5s ease;
}

.g-item.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 960px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 640px) {
  .gallery {
    column-count: 2;
    column-gap: 12px;
  }

  .gallery img {
    margin-bottom: 12px;
  }
}

@media (max-width: 380px) {
  .gallery {
    column-count: 1;
  }
}

/* fewer columns for galleries with fewer images, so masonry balancing doesn't leave empty gaps */
.gallery.gallery--compact-3 {
  column-count: 3;
}

.gallery.gallery--compact-2 {
  column-count: 2;
}

@media (max-width: 960px) {
  .gallery.gallery--compact-3,
  .gallery.gallery--compact-2 {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .gallery.gallery--compact-3,
  .gallery.gallery--compact-2 {
    column-count: 2;
  }
}

@media (max-width: 380px) {
  .gallery.gallery--compact-3,
  .gallery.gallery--compact-2 {
    column-count: 1;
  }
}

/* ---------------- feature lists ---------------- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: #2D2D2E;
  transition: transform 0.2s ease;
}

.feature-list li:hover {
  transform: translateX(4px);
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-list li:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 8px var(--terracotta);
}

.dark .feature-list li {
  color: #D8D6CD;
}

/* ---------------- certification badges ---------------- */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------------- certification logo slider ---------------- */
.cert-slider {
  position: relative;
  overflow: hidden;
  padding: 32px 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.cert-slider-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 28px;
  animation: cert-scroll 30s linear infinite;
}

.cert-slider:hover .cert-slider-track {
  animation-play-state: paused;
}

.cert-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 200px;
  height: 130px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(45, 45, 46, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cert-logo-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 24px rgba(45, 45, 46, 0.12);
}

.cert-logo-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes cert-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-slider-track {
    animation: none;
  }
}

@media (max-width: 600px) {
  .cert-logo-card {
    width: 130px;
    height: 90px;
    padding: 10px;
  }

  .cert-slider-track {
    gap: 40px;
  }
}

.cert-badge {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out-back), box-shadow 0.3s ease;
}

.cert-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(62, 64, 71, 0.15), transparent);
  transform: skewX(-20deg);
}

.cert-badge:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 18px rgba(62, 64, 71, 0.14);
}

.cert-badge:hover::before {
  left: 140%;
  transition: left 0.6s ease;
}

@media (max-width: 480px) {
  .cert-badge {
    padding: 9px 16px;
    font-size: 11.5px;
  }
}

/* ---------------- contact form & validation ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  position: relative;
}

.field input,
.field select,
.field textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  border-radius: 4px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(62, 64, 71, 0.15);
  background: #FFF;
  outline: none;
}

.field textarea {
  resize: vertical;
}

/* Validation Error States */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error) !important;
  background: #FFF9F8 !important;
  box-shadow: 0 0 0 3px var(--error-bg) !important;
}

.field-error {
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  display: none;
  margin-top: 2px;
  animation: err-slide 0.25s var(--ease-out-expo) forwards;
}

.field.has-error .field-error {
  display: block;
}

@keyframes err-slide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alert Notification Banners */
.form-alert {
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 14.5px;
  margin-bottom: 20px;
  line-height: 1.5;
  animation: alert-pop 0.35s var(--ease-out-expo) forwards;
}

.form-alert--success {
  background: var(--success-bg);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #1B7A43;
}

.form-alert--error {
  background: var(--error-bg);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: var(--error);
}

@keyframes alert-pop {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.form-ajax-feedback {
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 14.5px;
  margin-top: 14px;
  line-height: 1.5;
  animation: alert-pop 0.35s var(--ease-out-expo) forwards;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.hours-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: background 0.2s ease;
}

.hours-table tr:hover td {
  background: rgba(255, 255, 255, 0.3);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--terracotta);
  font-weight: 600;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------------- lightbox modal ---------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 46, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.4s var(--ease-out-back);
}

.lightbox-modal.open .lightbox-container {
  transform: scale(1);
}

.lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--cream);
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 241, 235, 0.15);
  border: 1px solid rgba(242, 241, 235, 0.3);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: var(--terracotta);
  transform: scale(1.1) rotate(90deg);
}

/* ---------------- back to top button ---------------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(45, 45, 46, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s var(--ease-out-back), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--terracotta);
  color: var(--cream);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 28px rgba(62, 64, 71, 0.3);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

.back-to-top-ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.back-to-top-ring circle {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.1s linear;
}

/* ---------------- testimonials ---------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.tcard {
  background: var(--cream);
  border: 1px solid rgba(45, 45, 46, 0.09);
  border-radius: 6px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  box-shadow: 0 2px 16px rgba(45, 45, 46, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tcard:hover {
  box-shadow: 0 8px 36px rgba(45, 45, 46, 0.10);
  transform: translateY(-3px);
}

.tcard-quote-icon {
  font-family: var(--display);
  font-size: 72px;
  line-height: 0.7;
  color: var(--terracotta);
  opacity: 0.22;
  position: absolute;
  top: 24px;
  left: 28px;
  pointer-events: none;
  user-select: none;
}

.tcard-body {
  flex: 1;
  margin-bottom: 24px;
}

.tcard-preview {
  font-size: 16px;
  line-height: 1.75;
  color: #666561;
  margin: 0;
  font-style: italic;
}

/* Collapsible full text */
.tcard-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}

.tcard-full.open {
  max-height: 600px;
  opacity: 1;
}

.tcard-full p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #666561;
  margin-top: 12px;
  font-style: italic;
}

.tcard-full p:first-child {
  margin-top: 16px;
}

/* Toggle button */
.tcard-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--terracotta);
  transition: opacity 0.2s ease;
}

.tcard-toggle:hover {
  opacity: 0.72;
}

.tcard-toggle-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease-out-back);
  flex-shrink: 0;
}

.tcard-toggle[aria-expanded="true"] .tcard-toggle-icon {
  transform: rotate(180deg);
}

/* Footer: avatar + name */
.tcard-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(45, 45, 46, 0.1);
  padding-top: 20px;
  margin-top: auto;
}

.tcard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid rgba(45, 45, 46, 0.08);

}

.tcard-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 3px;
}

.tcard-title {
  display: block;
  font-size: 12px;
  color: #A79E93;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .tcard {
    padding: 28px 22px 22px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- footer ---------------- */
#footer {
  background: var(--ink);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0 40px;
}

.footer-grid h4 {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid a {
  font-size: 14.5px;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-grid a:hover {
  color: var(--stone);
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  /* Logo is dark — invert to show on dark footer background */
  filter: invert(1) brightness(2);
  opacity: 0.9;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out-back);
}

.social-row a:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-4px) scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(242, 241, 235, 0.15);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 0 30px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

/* ============================================================
   COLOR LAYER
   Cream + terracotta stay the brand anchor; teal, saffron and
   indigo carry the colour. Repeated components rotate through
   the four accents by position, so every grid reads as a set
   rather than one flat colour.

   This block is deliberately LAST in the file — it re-paints the
   monochrome defaults above without touching their layout rules.
   ============================================================ */

/* ---------------- scroll progress ---------------- */
.scroll-progress-bar {
  height: 3px;
  background: var(--ink);
  box-shadow: none;
}

/* ---------------- header ---------------- */
.mega-card:hover {
  box-shadow: 0 14px 28px var(--terracotta-glow);
}

.login-pill:hover {
  background: var(--ink);
  border-color: transparent;
}

.mobile-drawer .sub-links a {
  color: var(--terracotta);
}

/* ---------------- marquee ---------------- */
.marquee-band {
  background: var(--ink);
}

.marquee-track span {
  color: #D8D6CD;
}

.marquee-track span:hover {
  color: #FFF;
}

.marquee-track span::after {
  color: rgba(242, 241, 235, 0.35);
}

/* ---------------- section shells ---------------- */
.alt {
  background: var(--cream-deep);
}

.dark {
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-dark) 100%);
}

.dark .eyebrow {
  color: #D8D6CD;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  vertical-align: 3px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------------- buttons ---------------- */
.btn:hover {
  background: var(--terracotta);
  box-shadow: 0 12px 26px var(--terracotta-glow);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: transparent;
  color: var(--cream);
}

.btn--light:hover {
  background: var(--terracotta);
  color: var(--cream);
}

.btn-text {
  color: var(--cream);
}

/* ---------------- thread divider ---------------- */
.thread-line::before {
  background: radial-gradient(circle, var(--terracotta-glow) 0%, transparent 70%);
}

.thread-line::after {
  background: var(--terracotta);
  box-shadow: 0 0 14px var(--terracotta-glow);
}

.thread-label {
  color: var(--stone);
}

/* ---------------- quote block ---------------- */
.quote-block::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 190px;
  line-height: 1;
  color: var(--terracotta);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.quote-block {
  position: relative;
  overflow: hidden;
}

.quote-block p {
  position: relative;
  z-index: 1;
}

.quote-block .attribution {
  color: var(--terracotta);
}

/* ---------------- process / services ---------------- */
.process-item::before {
  background: var(--terracotta);
}

.process-item:hover {
  background: var(--terracotta-soft);
  box-shadow: 0 16px 30px var(--terracotta-glow);
}

.process-item:hover .process-num {
  background: var(--terracotta);
  color: #FFF;
}

.process-item:hover h3 {
  color: var(--cream);
}

/* ---------------- category cards ---------------- */
.category-card::after {
  background: linear-gradient(0deg,
      rgba(45, 45, 46, 0.82) 0%,
      rgba(45, 45, 46, 0.15) 52%,
      transparent 100%);
}

.category-card:hover {
  box-shadow: 0 22px 44px rgba(45, 45, 46, 0.22), 0 0 0 3px var(--terracotta);
}

.category-label svg {
  color: var(--cream);
}

/* ---------------- stats ---------------- */
.stat .num {
  color: var(--terracotta);
}

.stat:hover {
  background: var(--terracotta-soft);
}

/* ---------------- certification badges ---------------- */
.cert-badge {
  border-color: var(--line);
  color: var(--ink);
  background: var(--cream);
}

.cert-badge:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFF;
  box-shadow: 0 10px 20px var(--terracotta-glow);
}

/* ---------------- feature lists ---------------- */
.feature-list li::before {
  background: var(--terracotta);
}

.feature-list li:hover::before {
  box-shadow: 0 0 10px var(--terracotta-glow);
}

/* ---------------- testimonials ---------------- */
.tcard {
  overflow: hidden;
  background: #F1F0EC;
}

.tcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--terracotta);
}

.tcard:hover {
  box-shadow: 0 14px 38px var(--terracotta-glow);
}

.tcard-quote-icon {
  color: var(--terracotta);
  opacity: 0.20;
}

.tcard-toggle {
  color: var(--terracotta);
}

.tcard-avatar {
  border-color: var(--terracotta);
}

.tcard-name {
  color: var(--ink);
}

/* ---------------- forms ---------------- */
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-soft);
}

.hours-table td:last-child {
  color: var(--terracotta);
}

/* ---------------- back to top ---------------- */
.back-to-top:hover {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 12px 28px var(--terracotta-glow);
}

.back-to-top-ring circle {
  stroke: var(--terracotta);
}

/* ---------------- footer ---------------- */
.footer-grid a:hover {
  color: #D8D6CD;
}

.social-row a:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.footer-bottom {
  color: rgba(242, 241, 235, 0.55);
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}


