/* ============ FONTS ============ */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik Mono One';
  src: url('../fonts/RubikMonoOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============ BASE ============ */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  background-color: #0c0805;
  background-image:
    radial-gradient(at 12% -10%, rgba(230, 150, 56, 0.10) 0px, transparent 55%),
    radial-gradient(at 88% -8%,  rgba(217, 126, 33, 0.07) 0px, transparent 55%);
  min-height: 100vh;
}

::selection { background: #e69638; color: #160e07; }

/* ============ HEADER NAV / SCROLLED STATE ============ */
.header-nav {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    -webkit-backdrop-filter 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* Accent brown fill once the page is scrolled */
.header-scrolled .header-nav {
  background:
    linear-gradient(
      135deg,
      rgba(58, 36, 18, 0.92) 0%,
      rgba(36, 22, 12, 0.92) 60%,
      rgba(28, 16, 8, 0.94) 100%
    );
  -webkit-backdrop-filter: blur(20px) saturate(170%);
          backdrop-filter: blur(20px) saturate(170%);
  border-color: rgba(247, 243, 236, 0.08);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.5),
    0 3px 10px rgba(70, 40, 18, 0.35),
    inset 0 1px 0 rgba(247, 243, 236, 0.06);
}

/* Logo and phone hide on scroll — only the nav pill stays */
.header-fade {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s linear;
}
.header-scrolled .header-fade {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
}

/* Brand logo image — white line-art on a transparent canvas, so it reads
   directly on the dark theme with no filter needed. */
.site-logo {
  display: block;
  width: auto;
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.28s linear;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-inner {
  background:
    linear-gradient(
      135deg,
      rgba(58, 36, 18, 0.95) 0%,
      rgba(36, 22, 12, 0.95) 60%,
      rgba(28, 16, 8, 0.97) 100%
    );
  -webkit-backdrop-filter: blur(22px) saturate(170%);
          backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(247, 243, 236, 0.08);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(70, 40, 18, 0.35),
    inset 0 1px 0 rgba(247, 243, 236, 0.06);
}

.mobile-link {
  display: block;
  padding: 0.95rem 1.1rem;
  border-radius: 0.85rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-link:hover,
.mobile-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.mobile-link-phone {
  color: #f3cf9a;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mobile-link-phone:hover {
  color: #fae8cf;
}

/* Burger ↔ Close icon swap */
#menuToggle.is-open .burger-icon { display: none; }
#menuToggle.is-open .close-icon  { display: block; }

/* ============ LOGO MARK ============ */
.logo-mark {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55) 0%, transparent 45%),
    linear-gradient(135deg, #f3cf9a 0%, #e69638 55%, #bc651b 100%);
  box-shadow:
    0 6px 18px rgba(230, 150, 56, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -3px 8px rgba(0,0,0,0.2) inset;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }

/* ============ NAV LINKS ============ */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #ffffff;
  transition: opacity 0.2s ease;
  border-radius: 9999px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.nav-link:hover { opacity: 0.75; }
.nav-link:hover::after { width: 18px; }

/* ============ HEADER CTA PILL ============ */
.cta-pill {
  background: linear-gradient(135deg, #f7f3ec 0%, #ede4d3 100%);
  color: #160e07;
  border: 1px solid rgba(247, 243, 236, 0.3);
  box-shadow:
    0 6px 22px rgba(247, 243, 236, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta-pill:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f3e9d5 100%);
  box-shadow:
    0 10px 30px rgba(247, 243, 236, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transform: translateY(-1px);
}

/* ============ HERO HEADING ============ */
.hero-heading {
  text-shadow:
    0 4px 30px rgba(0, 0, 0, 0.55),
    0 1px 1px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.03em;
}
.hero-heading > span:last-child {
  /* keep gradient visible while preserving subtle shadow */
  filter: drop-shadow(0 4px 24px rgba(230, 150, 56, 0.18));
}

/* ============ CTA: PRIMARY (solid amber + halo hover) ============ */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.5rem;
  border-radius: 9999px;
  background: #d97e21;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.015em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 0 rgba(230, 150, 56, 0),
    0 10px 26px rgba(230, 150, 56, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background 0.25s ease,
              box-shadow 0.35s ease,
              transform 0.15s ease;
}
.cta-primary:hover {
  background: #bc651b;
  box-shadow:
    0 0 0 6px rgba(230, 150, 56, 0.18),
    0 12px 32px rgba(230, 150, 56, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.cta-primary:active {
  background: #a8550f;
  transform: scale(0.97);
}

/* ============ CTA: SECONDARY (glass + colored text) ============ */
.cta-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ecb064;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.015em;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease,
              transform 0.25s ease,
              box-shadow 0.25s ease;
}
.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(236, 176, 100, 0.45);
  color: #f3cf9a;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 12px 32px rgba(0, 0, 0, 0.28);
}
.cta-secondary:active { transform: translateY(-1px); }

/* ============ NOISE OVERLAY (subtle film grain) ============ */
.noise-overlay {
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
}

/* ============ FLOATING EMBERS ============ */
.ember {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffcf85 0%, #e69638 40%, transparent 75%);
  filter: blur(0.5px);
  opacity: 0;
  box-shadow: 0 0 12px rgba(230, 150, 56, 0.6);
  will-change: transform, opacity;
}
.ember-1 { top: 78%; left: 12%; animation: floatUp 13s ease-in 1s infinite; }
.ember-2 { top: 82%; left: 38%; animation: floatUp 17s ease-in 3s infinite; }
.ember-3 { top: 75%; left: 60%; animation: floatUp 15s ease-in 6s infinite; }
.ember-4 { top: 88%; left: 78%; animation: floatUp 19s ease-in 2s infinite; }
.ember-5 { top: 80%; left: 90%; animation: floatUp 14s ease-in 8s infinite; }

@keyframes floatUp {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { transform: translate(20px, -45vh) scale(1); opacity: 0.7; }
  90%  { opacity: 0.2; }
  100% { transform: translate(-15px, -80vh) scale(0.4); opacity: 0; }
}

/* ============ SCROLL CUE ============ */
.scroll-line {
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 0.8; transform: scaleY(1);   transform-origin: top; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; height: 10px; background: #0c0805; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3a2a1c, #241810);
  border-radius: 10px;
  border: 2px solid #0c0805;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a3a26, #3a2a1c);
}

/* ============ MOTION-REDUCE ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ember { display: none; }
}

/* ============ SMALL TWEAKS ============ */
@media (max-width: 640px) {
  .cta-primary,
  .cta-secondary {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    min-width: 14rem;
  }
}

/* ============ WORKS SECTION ============ */
.works-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}
.works-link:hover { color: #ffffff; }

.works-link-arrow {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s ease,
              border-color 0.25s ease;
}
.works-link:hover .works-link-arrow {
  background: rgba(236, 176, 100, 0.15);
  border-color: rgba(236, 176, 100, 0.45);
  color: #f3cf9a;
  transform: translateX(6px);
}

.works-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .works-rows { gap: 1.5rem; }
}

.works-row {
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.works-track {
  display: flex;
  flex-shrink: 0;
  gap: 1rem;
  will-change: transform;
  padding: 0 0.5rem;
}
@media (min-width: 768px) {
  .works-track { gap: 1.25rem; }
}

.works-card {
  flex-shrink: 0;
  position: relative;
  display: block;
  width: clamp(240px, 26vw, 400px);
  aspect-ratio: 16 / 10;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.works-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.works-card:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .works-track { transform: none !important; }
}

/* ============ WOOD TYPES SECTION ============ */
.wood-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.wood-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.wood-card:hover .wood-disc {
  transform: rotate(6deg) scale(1.04);
}

/* Realistic log cross-section:
   1) elliptical concentric rings, off-center pith
   2) multi-stop radial color (light → base → mid → dark edge)
   3) SVG turbulence noise = real wood grain
   4) layered shadows + bark-style outer ring */
.wood-disc {
  position: relative;
  width: clamp(140px, 62%, 200px);
  aspect-ratio: 1;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 22px 48px var(--wood-shadow),
    0 6px 14px rgba(0, 0, 0, 0.45),
    inset 0 0 0 3px var(--wood-bark, rgba(40, 22, 10, 0.4)),
    inset 0 0 0 5px rgba(0, 0, 0, 0.18);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layer 1 — color + rings */
.wood-disc::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Fine tight rings */
    repeating-radial-gradient(ellipse 100% 88% at 44% 41%,
      transparent 0px,
      transparent 3px,
      var(--wood-ring) 3px,
      var(--wood-ring) 4px,
      transparent 4px,
      transparent 7px,
      var(--wood-ring-soft) 7px,
      var(--wood-ring-soft) 8px
    ),
    /* Coarse darker bands (early/late wood transitions) */
    repeating-radial-gradient(ellipse 112% 96% at 44% 41%,
      transparent 0px,
      transparent 20px,
      var(--wood-ring-dark) 20px,
      var(--wood-ring-dark) 22.5px
    ),
    /* Base color radial gradient */
    radial-gradient(ellipse 115% 110% at 42% 38%,
      var(--wood-light) 0%,
      var(--wood-base) 40%,
      var(--wood-mid) 72%,
      var(--wood-dark) 100%
    );
}

/* Layer 2 — SVG turbulence noise → real wood grain texture
   baseFrequency stretched horizontally (0.012 0.85) for ring-following grain */
.wood-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'><filter id='g'><feTurbulence type='turbulence' baseFrequency='0.013 0.82' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.06 0 0 0 0 0.02 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  background-size: cover;
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}

.wood-tag {
  align-self: flex-start;
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(236, 176, 100, 0.08);
  border: 1px solid rgba(236, 176, 100, 0.20);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ecb064;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.wood-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.wood-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 400;
}

.wood-price {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.wood-price-from {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.wood-price-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ecb064;
}
.wood-price-unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

/* Wood-specific color palettes */
.wood-card[data-wood="linden"] {
  --wood-light: #f5e3b8;
  --wood-base:  #e0c186;
  --wood-mid:   #b89060;
  --wood-dark:  #6e4a25;
  --wood-ring:      rgba(110, 70, 28, 0.22);
  --wood-ring-soft: rgba(110, 70, 28, 0.10);
  --wood-ring-dark: rgba(80, 48, 18, 0.32);
  --wood-bark:      rgba(60, 38, 18, 0.45);
  --wood-shadow:    rgba(212, 182, 135, 0.25);
}
.wood-card[data-wood="aspen"] {
  --wood-light: #ece4cf;
  --wood-base:  #c8baa0;
  --wood-mid:   #8e8268;
  --wood-dark:  #4e4634;
  --wood-ring:      rgba(70, 58, 38, 0.20);
  --wood-ring-soft: rgba(70, 58, 38, 0.10);
  --wood-ring-dark: rgba(50, 40, 25, 0.28);
  --wood-bark:      rgba(45, 38, 25, 0.45);
  --wood-shadow:    rgba(184, 173, 149, 0.22);
}
.wood-card[data-wood="alder"] {
  --wood-light: #e7b486;
  --wood-base:  #cf8a55;
  --wood-mid:   #9c5a2e;
  --wood-dark:  #5a2f15;
  --wood-ring:      rgba(90, 47, 21, 0.22);
  --wood-ring-soft: rgba(90, 47, 21, 0.10);
  --wood-ring-dark: rgba(70, 36, 16, 0.32);
  --wood-bark:      rgba(55, 30, 14, 0.48);
  --wood-shadow:    rgba(196, 130, 80, 0.26);
}
.wood-card[data-wood="cedar"] {
  --wood-light: #d9824a;
  --wood-base:  #a04a18;
  --wood-mid:   #5e260a;
  --wood-dark:  #1f0b03;
  --wood-ring:      rgba(20, 6, 2, 0.36);
  --wood-ring-soft: rgba(20, 6, 2, 0.20);
  --wood-ring-dark: rgba(8, 2, 0, 0.55);
  --wood-bark:      rgba(20, 6, 2, 0.60);
  --wood-shadow:    rgba(139, 69, 19, 0.42);
}
.wood-card[data-wood="abachi"] {
  --wood-light: #f3deaa;
  --wood-base:  #dab986;
  --wood-mid:   #a78550;
  --wood-dark:  #5a4020;
  --wood-ring:      rgba(100, 68, 32, 0.18);
  --wood-ring-soft: rgba(100, 68, 32, 0.09);
  --wood-ring-dark: rgba(80, 50, 22, 0.26);
  --wood-bark:      rgba(60, 40, 18, 0.45);
  --wood-shadow:    rgba(204, 163, 114, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .wood-card:hover .wood-disc { transform: none; }
}

/* ============ ABOUT (master) ============ */
.about {
  position: relative;
  padding: 7rem 0 7.5rem;
  isolation: isolate;
  overflow: hidden;
  /* Smooth vertical transition: dark at top (continues the banner's fade)
     → warmer, lighter wood tone at the bottom. */
  background: linear-gradient(180deg, #0c0805 0%, #160e07 42%, #241810 100%);
}
@media (min-width: 768px) { .about { padding: 9rem 0 10rem; } }

/* Bridge the next (wood) section back down to the base tone so the
   lightened bottom of About doesn't create a new hard edge. */
#wood {
  background: linear-gradient(180deg, #241810 0%, #160e07 22%, #0c0805 48%);
}

/* Ambient animated heat field — glows live in the lower two-thirds and
   fade out toward the top, so the section's upper edge stays dark and
   blends seamlessly into the banner above (no visible seam). */
.about-aura {
  position: absolute;
  inset: 0 -10% -12% -10%;
  z-index: -2;
  background:
    radial-gradient(44% 50% at 20% 62%, rgba(230, 150, 56, 0.16), transparent 70%),
    radial-gradient(46% 56% at 86% 72%, rgba(217, 126, 33, 0.14), transparent 72%),
    radial-gradient(36% 40% at 60% 46%, rgba(236, 176, 100, 0.08), transparent 72%);
  filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
  animation: aboutAura 22s ease-in-out infinite alternate;
}
@keyframes aboutAura {
  0%   { transform: translate3d(0, 0, 0) scale(1);      opacity: 0.85; }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.04); opacity: 0.9; }
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 4.5rem;
    align-items: center;
  }
}

/* Title */
.about-title {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: #fff;
  margin-bottom: 1.75rem;
}
.about-title-line { display: block; }
.about-title-accent {
  background: linear-gradient(100deg, #f3cf9a 0%, #e69638 38%, #d97e21 58%, #f3cf9a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: aboutShimmer 6s linear infinite;
}
@keyframes aboutShimmer { to { background-position: 200% center; } }

/* Body copy — one unified paragraph style, two paragraphs */
.about-para {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  max-width: 50ch;
}
.about-para + .about-para { margin-top: 1.15rem; }
.about-para em {
  font-style: normal;
  font-weight: 600;
  color: #ecb064;
}

/* Aside: stats */
.about-aside {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  width: 100%;
}
.about-stat {
  position: relative;
  padding: 1.3rem 1.3rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease;
}
.about-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 0% 0%, rgba(230, 150, 56, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.about-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 150, 56, 0.28);
}
.about-stat:hover::before { opacity: 1; }
.about-stat-num {
  position: relative;
  display: block;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.about-stat-label {
  position: relative;
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.01em;
}

/* Master portrait (sits above the stats in the aside) */
.about-portrait {
  position: relative;
  margin: 0;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
}
.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
}
.about-portrait-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(12, 8, 5, 0.85));
}
.about-portrait-name { font-weight: 700; color: #fff; font-size: 1.05rem; letter-spacing: -0.01em; }
.about-portrait-role { font-size: 0.82rem; color: #ecb064; letter-spacing: 0.02em; }

/* Certificate card (under the body copy on the left) */
.about-cert {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 50ch;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(230, 150, 56, 0.07), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(230, 150, 56, 0.18);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.about-cert:hover {
  border-color: rgba(230, 150, 56, 0.45);
  transform: translateY(-2px);
}
.about-cert-thumb {
  flex: none;
  width: 3.5rem;
  height: 4.4rem;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.about-cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-cert-text { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.about-cert-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e69638;
  font-weight: 700;
}
.about-cert-title { font-weight: 700; color: #fff; font-size: 1rem; }
.about-cert-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); font-weight: 300; }
.about-cert-arrow {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: #ecb064;
  background: rgba(230, 150, 56, 0.12);
  transition: background 0.3s ease, transform 0.3s ease;
}
.about-cert-arrow svg { width: 1.05rem; height: 1.05rem; }
.about-cert:hover .about-cert-arrow { background: rgba(230, 150, 56, 0.24); transform: translate(2px, -2px); }

/* Works gallery merged into the About section */
.about-works {
  margin-top: clamp(3rem, 6vw, 5rem);
}

/* Scroll-reveal — hidden state only applies once JS marks the page ready,
   so content stays visible if JS fails or is disabled. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .about-aura,
  .about-title-accent { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============ TESTIMONIALS — 3D MARQUEE ============ */
.marquee-stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  height: 30rem;
  overflow: hidden;
  perspective: 340px;
  /* Soft transparent fade on all four edges — blends with page bg, no color frame */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image:
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
@media (max-width: 640px) {
  .marquee-stage { height: 26rem; }
}

.marquee-tilt {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Gentle 3D tilt — reduced angles so all columns lean uniformly to the right */
  transform: translateZ(-100px) rotateX(12deg) rotateZ(10deg);
}
@media (max-width: 640px) {
  .marquee-tilt {
    gap: 0.7rem;
    transform: translateZ(-100px) rotateX(10deg) rotateZ(8deg);
  }
}

.marquee {
  --gap: 1rem;
  --duration: 40s;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  overflow: hidden;
  flex-shrink: 0;
}

.marquee-set {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  flex-shrink: 0;
  animation: marquee-vertical var(--duration) linear infinite;
  will-change: transform;
}

.marquee[data-direction="up"] .marquee-set {
  animation-direction: reverse;
}

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

@keyframes marquee-vertical {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-100% - var(--gap))); }
}

/* Individual review tile — text-only (no avatar, no handle) */
.testimonial-tile {
  flex-shrink: 0;
  width: 15rem;
  padding: 1.2rem 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0.95rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}
@media (max-width: 640px) {
  .testimonial-tile { width: 12.5rem; padding: 1rem 1.05rem 1.1rem; }
}

.testimonial-tile-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  font-style: normal;
}

.testimonial-tile-attribution {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.testimonial-tile-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.005em;
}

.testimonial-tile-region {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* Right column — info text + CTA link (smaller, more compact) */
.testimonials-info-lead {
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  letter-spacing: 0;
}

.testimonials-info-body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.5rem;
  max-width: 24rem;
}

.testimonials-info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #ecb064;
  transition: color 0.25s ease;
}
.testimonials-info-link:hover { color: #f3cf9a; }

.testimonials-info-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(236, 176, 100, 0.08);
  border: 1px solid rgba(236, 176, 100, 0.30);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s ease,
              border-color 0.25s ease;
}
.testimonials-info-link-arrow svg { width: 1rem; height: 1rem; }
.testimonials-info-link:hover .testimonials-info-link-arrow {
  background: rgba(236, 176, 100, 0.18);
  border-color: rgba(236, 176, 100, 0.55);
  transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-set { animation: none; }
}

/* ============ FAQ ACCORDION ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.faq-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}
.faq-item[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(236, 176, 100, 0.22);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.05rem 3.6rem 1.05rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

/* Hide the inline text-wrap span's natural width quirks; allow tap */
.faq-item summary > span:first-child {
  display: inline-block;
}

.faq-icon {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
}
.faq-icon svg { width: 1rem; height: 1rem; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.faq-item[open] .faq-icon {
  background: rgba(236, 176, 100, 0.15);
  border-color: rgba(236, 176, 100, 0.40);
  color: #ecb064;
}
.faq-item[open] .faq-icon svg { transform: rotate(45deg); }

.faq-content {
  padding: 0 1.25rem 1.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============ APPLICATION FORMS ============ */
.form-panel {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 640px) {
  .form-panel { padding: 1.85rem; }
}
.form-panel:focus-within {
  border-color: rgba(236, 176, 100, 0.25);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(236, 176, 100, 0.15);
}

.form-header {
  margin-bottom: 0.65rem;
}

.form-tag {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  background: rgba(236, 176, 100, 0.08);
  border: 1px solid rgba(236, 176, 100, 0.22);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ecb064;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.form-title {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 0.45rem;
}

.form-hint {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.32); }
.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(236, 176, 100, 0.45);
  box-shadow: 0 0 0 3px rgba(236, 176, 100, 0.10);
}

textarea.form-input {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.5;
}

.form-input[type="date"] { color-scheme: dark; }

.form-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.form-consent {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.45;
  margin-top: 0.4rem;
  text-align: center;
}

/* ============ MASTER CONTACTS ============ */
.contact-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
@media (min-width: 640px) {
  .contact-card { padding: 1.85rem; }
}

.contact-intro {
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-eyebrow {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  background: rgba(236, 176, 100, 0.08);
  border: 1px solid rgba(236, 176, 100, 0.22);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ecb064;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.contact-name {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 0.55rem;
}

.contact-role {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  color: #ffffff;
  transition: background 0.2s ease;
}
a.contact-row {
  cursor: pointer;
}
a.contact-row:hover {
  background: rgba(255, 255, 255, 0.045);
}

.contact-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ecb064;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.contact-icon svg { width: 1.1rem; height: 1.1rem; }

a.contact-row:hover .contact-icon {
  background: rgba(236, 176, 100, 0.12);
  border-color: rgba(236, 176, 100, 0.35);
  color: #f3cf9a;
}

.contact-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.25s ease, color 0.25s ease;
}
.contact-arrow svg { width: 100%; height: 100%; }

a.contact-row:hover .contact-arrow {
  color: #ecb064;
  transform: translate(3px, -3px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-row--static {
  cursor: default;
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.contact-pulse {
  position: relative;
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

/* ============ FOOTER ============ */
.footer-link {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #ecb064;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

/* ---- Page hero ---- */
.gallery-hero {
  position: relative;
  padding: 9rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) { .gallery-hero { padding: 11rem 0 4.5rem; } }
.gallery-hero-glow {
  position: absolute;
  inset: -30% -10% auto;
  height: 80%;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 30% 20%, rgba(230, 150, 56, 0.16), transparent 70%),
    radial-gradient(45% 55% at 85% 0%, rgba(217, 126, 33, 0.12), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
  transition: color 0.25s ease, transform 0.25s ease;
}
.gallery-back svg { width: 1.05rem; height: 1.05rem; }
.gallery-back:hover { color: #ecb064; transform: translateX(-3px); }
.gallery-hero-title {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(2.75rem, 8vw, 6rem);
  color: #fff;
}
.gallery-hero-sub {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.66);
}
.gallery-hero-stats {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}
.gallery-hero-stats b { color: #ecb064; font-weight: 800; }
.gallery-hero-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

/* ---- Work block ---- */
.gw {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.gw:first-child { border-top: 0; padding-top: 1rem; }
@media (min-width: 768px) { .gw { padding: 5rem 0; } }

/* Title block (full width) */
.gw-head {
  margin-bottom: 1.35rem;
}
.gw-index {
  display: inline-block;
  font-family: "Rubik Mono One", Montserrat, sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  color: rgba(230, 150, 56, 0.6);
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

/* Description (left) + review (right) on the same level */
.gw-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) {
  .gw-body {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 2.75rem;
    align-items: center;
  }
}
.gw-body--solo { grid-template-columns: 1fr; }
.gw-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e69638;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.gw-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  color: #fff;
}
.gw-desc {
  margin-top: 0;
  max-width: 60ch;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.66);
}

/* ---- Pinned review (sits beside the description) ---- */
.gw-review {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.6rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(230, 150, 56, 0.07), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(230, 150, 56, 0.18);
}
.gw-quote {
  width: 2rem; height: 2rem;
  fill: rgba(230, 150, 56, 0.4);
  margin-bottom: 0.4rem;
}
.gw-review-short {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f3cf9a;
  margin-bottom: 0.6rem;
}
.gw-review-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
}
.gw-review-by {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.gw-review-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.gw-review-src { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* ---- Running film-strip (бегущая строка) ---- */
.gw-strip {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.gw-strip-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  will-change: transform;
  animation: gwMarquee var(--dur, 60s) linear infinite;
}
@media (min-width: 768px) { .gw-strip-track { gap: 1rem; } }
.gw-strip[data-dir="-1"] .gw-strip-track { animation-direction: reverse; }
.gw-strip:hover .gw-strip-track,
.gw-strip:focus-within .gw-strip-track { animation-play-state: paused; }
@keyframes gwMarquee { to { transform: translateX(-50%); } }

.gw-frame {
  flex: 0 0 auto;
  height: clamp(200px, 30vw, 340px);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
  line-height: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.gw-frame img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
  filter: saturate(1.02);
}
.gw-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}
.gw-frame:hover img { transform: scale(1.05); filter: saturate(1.1) brightness(1.04); }
.gw-frame:focus-visible { outline: 2px solid #e69638; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .gw-strip { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gw-strip-track { animation: none; }
}

/* ---- CTA strip ---- */
.gallery-cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(230, 150, 56, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(230, 150, 56, 0.2);
}
@media (min-width: 768px) {
  .gallery-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 3rem;
  }
}
.gallery-cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.gallery-cta-sub {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.66);
  max-width: 46ch;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 3, 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; animation: lbFade 0.25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lb-img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 0.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}
.lb-caption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.lb-close, .lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  border-radius: 9999px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.lb-close { top: clamp(1rem, 3vw, 1.75rem); right: clamp(1rem, 3vw, 1.75rem); width: 2.75rem; height: 2.75rem; }
.lb-close svg { width: 1.3rem; height: 1.3rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; }
.lb-nav svg { width: 1.5rem; height: 1.5rem; }
.lb-prev { left: clamp(0.75rem, 3vw, 2rem); }
.lb-next { right: clamp(0.75rem, 3vw, 2rem); }
.lb-close:hover, .lb-nav:hover {
  background: rgba(230, 150, 56, 0.85);
  border-color: transparent;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 560px) {
  .lb-nav { width: 2.5rem; height: 2.5rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-frame, .gw-frame img, .lb-nav { transition: none; }
  .lightbox.is-open { animation: none; }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: #d97e21;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 26px rgba(230, 150, 56, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  /* hidden until scrolled */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.3s ease,
              transform 0.3s ease,
              visibility 0.3s ease,
              background 0.25s ease,
              box-shadow 0.35s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: #bc651b;
  box-shadow:
    0 0 0 6px rgba(230, 150, 56, 0.18),
    0 12px 32px rgba(230, 150, 56, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.back-to-top:active { transform: translateY(0) scale(0.94); }
.back-to-top svg { width: 1.4rem; height: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s ease, visibility 0.2s ease; transform: none; }
  .back-to-top.is-visible { transform: none; }
}

/* ============================================================
   ABOUT PAGE (about.html)
   ============================================================ */

/* ---- Shared eyebrow ---- */
.ap-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e69638;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.ap-eyebrow--section { color: #ecb064; }

/* Shared section h2 */
.ap-h2 {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

/* ---- INTRO (hero) ---- */
.ap-intro {
  position: relative;
  padding: 9rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) { .ap-intro { padding: 11rem 0 7rem; } }
.ap-intro-glow {
  position: absolute;
  inset: -25% -10% auto;
  height: 90%;
  z-index: -1;
  background:
    radial-gradient(48% 60% at 22% 30%, rgba(230, 150, 56, 0.16), transparent 70%),
    radial-gradient(46% 58% at 86% 0%, rgba(217, 126, 33, 0.13), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}

.ap-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .ap-intro-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5.5rem);
  }
}

.ap-name {
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: #fff;
  margin-bottom: 1.5rem;
}
.ap-name > span { display: block; }
.ap-name-accent {
  background: linear-gradient(100deg, #f3cf9a 0%, #e69638 40%, #d97e21 60%, #f3cf9a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: apShimmer 6s linear infinite;
}
@keyframes apShimmer { to { background-position: 200% center; } }

.ap-lead {
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  max-width: 36ch;
  margin-bottom: 2rem;
}
.ap-lead em {
  font-style: normal;
  font-weight: 600;
  color: #ecb064;
}

.ap-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.ap-intro-actions .cta-primary,
.ap-intro-actions .cta-secondary {
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
}

/* Portrait */
.ap-portrait {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 480px;
  justify-self: center;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(230, 150, 56, 0.08);
}
.ap-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}
.ap-portrait-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 3rem 1.5rem 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(12, 8, 5, 0.92) 78%);
}
.ap-portrait-name { font-weight: 700; color: #fff; font-size: 1.1rem; letter-spacing: -0.01em; }
.ap-portrait-role { font-size: 0.85rem; color: #ecb064; letter-spacing: 0.02em; }

/* ---- STORY + side stats ---- */
.ap-story {
  position: relative;
  padding: 4rem 0 5rem;
}
@media (min-width: 768px) { .ap-story { padding: 6rem 0 7rem; } }
.ap-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .ap-story-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}
.ap-story-text { max-width: 60ch; }
.ap-story-stats { display: flex; align-items: stretch; }
.ap-story-stats .ap-stats {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}
.ap-story-stats .ap-stat {
  flex: 1;
  min-height: 6.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  text-align: center;
}
.ap-story-stats .ap-stat-num {
  flex: none;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
}
.ap-story-stats .ap-stat-label {
  margin-top: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
}
.ap-para {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
}
.ap-para + .ap-para { margin-top: 1.4rem; }
.ap-para em {
  font-style: normal;
  font-weight: 600;
  color: #ecb064;
}

/* ---- STATS (full-width row) ---- */
.ap-stats-section {
  position: relative;
  padding: 1rem 0 4rem;
}
@media (min-width: 768px) { .ap-stats-section { padding: 1rem 0 6rem; } }
.ap-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 768px) { .ap-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.ap-stat {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease;
}
.ap-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 0% 0%, rgba(230, 150, 56, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ap-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 150, 56, 0.28);
}
.ap-stat:hover::before { opacity: 1; }
.ap-stat-num {
  position: relative;
  display: block;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ap-stat-label {
  position: relative;
  display: block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ---- CERTIFICATE ---- */
.ap-cert-section {
  position: relative;
  padding: 3rem 0 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) { .ap-cert-section { padding: 5rem 0 7rem; } }

.ap-cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .ap-cert-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}
.ap-cert-h2 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}
.ap-cert-intro {
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 300;
  margin-bottom: 1.75rem;
  max-width: 44ch;
}

.ap-cert-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px;
  justify-self: center;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(230, 150, 56, 0.22);
  background: rgba(230, 150, 56, 0.04);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease;
}
.ap-cert-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.ap-cert-frame:hover { transform: translateY(-3px); border-color: rgba(230, 150, 56, 0.5); }
.ap-cert-open {
  position: absolute;
  inset: auto 0.85rem 0.85rem auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(12, 8, 5, 0.78);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ap-cert-open svg { width: 0.95rem; height: 0.95rem; }
.ap-cert-frame:hover .ap-cert-open,
.ap-cert-frame:focus-visible .ap-cert-open { opacity: 1; transform: none; }

.ap-cert-meta { max-width: 46ch; }
.ap-cert-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e69638;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.ap-cert-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.ap-cert-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5rem;
  row-gap: 0.85rem;
  font-size: 0.95rem;
}
.ap-cert-list > div { display: contents; }
.ap-cert-list dt {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 0.2rem;
}
.ap-cert-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .ap-name-accent { animation: none; }
  .ap-stat, .ap-cert-frame { transition: none; }
}

/* ============================================================
   WORKS TEASER (index.html — replaces old About content above film-strips)
   ============================================================ */
.works-teaser-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .works-teaser-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }
}
.works-teaser-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e69638;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.works-teaser-title {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  margin-bottom: 0.9rem;
}
.works-teaser-sub {
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 46ch;
}
.works-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  align-self: flex-start;
  padding: 0.55rem 0.2rem 0.55rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ecb064;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.works-teaser-link:hover { color: #f3cf9a; }
.works-teaser-link-arrow {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(230, 150, 56, 0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}
.works-teaser-link-arrow svg { width: 1rem; height: 1rem; }
.works-teaser-link:hover .works-teaser-link-arrow {
  background: rgba(230, 150, 56, 0.24);
  transform: translateX(3px);
}

/* ============================================================
   GALLERY FILTER + MINI-NAV
   ============================================================ */

/* ---- Filter chips (in the gallery hero) ---- */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}
.gallery-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}
.gallery-filter-chip:hover {
  color: #fff;
  border-color: rgba(230, 150, 56, 0.3);
  background: rgba(255, 255, 255, 0.07);
}
.gallery-filter-chip.is-active {
  background: #d97e21;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 22px rgba(230, 150, 56, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.gallery-filter-chip:active { transform: scale(0.97); }
.gallery-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.gallery-filter-chip.is-active .gallery-filter-count {
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
}

/* ---- Work section: filter hide + scroll anchor ---- */
.gw { scroll-margin-top: 5.5rem; }
.gw.is-hidden { display: none; }

/* ---- Mini-nav (fixed vertical list on the right, expands on hover) ---- */
.gallery-nav {
  position: fixed;
  right: clamp(0.5rem, 1vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  display: none;
  pointer-events: auto;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    -webkit-backdrop-filter 0.3s ease,
            backdrop-filter 0.3s ease;
}
@media (min-width: 1024px) { .gallery-nav { display: block; } }

.gallery-nav:hover,
.gallery-nav:focus-within {
  background: rgba(12, 8, 5, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.gallery-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: right;
}
.gallery-nav li.is-hidden { display: none; }

.gallery-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.25s ease;
}
.gallery-nav a:hover { color: #fff; }

/* Labels are hidden by default; revealed on nav hover, and always for active */
.gallery-nav-label {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition:
    max-width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.3s ease;
}
.gallery-nav:hover .gallery-nav-label,
.gallery-nav:focus-within .gallery-nav-label {
  max-width: 220px;
  opacity: 1;
}
.gallery-nav-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-nav a.is-active {
  color: #ecb064;
  font-weight: 700;
}
.gallery-nav a.is-active .gallery-nav-dot {
  background: #e69638;
  transform: scale(1.6);
  box-shadow: 0 0 0 4px rgba(230, 150, 56, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-filter-chip, .gallery-nav a, .gallery-nav-dot { transition: none; }
}
