/* ============================================================
   Modiran Landing Page — plain CSS (no Tailwind, no CDN)
   Palette: warm gold + deep teal + warm-gray paper
   Layout:  RTL Persian, mobile-first, responsive
   Includes ALL animations from the original Next.js version.
   ============================================================ */

/* ─────────────  Design tokens  ───────────── */
:root {
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Light theme */
  --background: #D4D4D4;
  --foreground: #1F3F3E;
  --card: #FCFBFA;
  --card-foreground: #1F3F3E;
  --muted: #BCBCBC;
  --muted-foreground: #5A6A68;
  --border: #B5B5B5;
  --input: #BFBFBF;

  --brand: #CC843D;
  --brand-light: #E0A45A;
  --brand-foreground: #FCFBFA;
  --brand-soft: #F4E4CE;

  --teal: #1F3F3E;
  --teal-soft: #D6E0DF;

  --destructive: #DC2626;
  --ring: #CC843D;

  --shadow-sm: 0 1px 2px rgba(31, 63, 62, .06);
  --shadow-md: 0 4px 16px rgba(31, 63, 62, .08);
  --shadow-lg: 0 12px 40px rgba(31, 63, 62, .10);
  --shadow-brand: 0 8px 30px rgba(204, 132, 61, .18);

  --font-sans: 'Vazirmatn', 'IRANSans', 'Tahoma', sans-serif;
  --max-w: 1024px;
  --sidebar-w: 220px;
}

html.dark {
  --background: #1F3F3E;
  --foreground: #EAEAEA;
  --card: #244744;
  --card-foreground: #EAEAEA;
  --muted: #2D514E;
  --muted-foreground: #A8B8B6;
  --border: rgba(255, 255, 255, .12);
  --input: rgba(255, 255, 255, .16);

  --brand: #E0A45A;
  --brand-light: #EAB876;
  --brand-foreground: #1F3F3E;
  --brand-soft: #3A4A3E;

  --teal: #4A8580;
  --teal-soft: #2D514E;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .35);
  --shadow-brand: 0 8px 30px rgba(204, 132, 61, .30);
}

/* ─────────────  Reset  ───────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ─────────────  Scrollbar  ───────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, .35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, .55);
  background-clip: padding-box;
}

/* ─────────────  Utilities  ───────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 16px; }
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.text-muted { color: var(--muted-foreground); }
.gradient-text {
  background: linear-gradient(120deg, var(--brand), var(--brand-light), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glass-card {
  background: color-mix(in srgb, var(--card) 75%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  box-shadow: var(--shadow-md);
}
.tabular { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ─────────────  Scroll progress bar (with comet head)  ───────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--teal), var(--brand));
  box-shadow: 0 0 8px var(--brand);
  z-index: 100; pointer-events: none;
  border-radius: 0 999px 999px 0;
}
.scroll-progress::after {
  content: '';
  position: absolute; right: -3px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 6px 1px var(--brand), 0 0 14px 2px color-mix(in srgb, var(--brand) 50%, transparent);
}

/* ─────────────  Dynamic Island header  ───────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 12px 14px;
  pointer-events: none;
}
/* Spacer so content isn't hidden under the fixed header (56px island + 24px padding) */
.site-header + main { padding-top: 80px; }
body.has-fixed-header { padding-top: 80px; }
.island {
  pointer-events: auto;
  max-width: 640px; margin-inline: auto;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, #1F3F3E 60%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent);
  box-shadow:
    0 0 18px 1px color-mix(in srgb, var(--teal) 30%, transparent),
    0 0 40px 4px color-mix(in srgb, var(--teal) 18%, transparent),
    0 0 80px 8px color-mix(in srgb, var(--brand) 12%, transparent),
    0 8px 26px -10px rgba(31, 63, 62, .35);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
  position: relative;
  isolation: isolate;
  will-change: transform;
}
/* Animated conic halo around the island */
@property --island-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.island::before {
  content: '';
  position: absolute; inset: -14px;
  border-radius: 9999px;
  z-index: -1; pointer-events: none;
  background: conic-gradient(
    from var(--island-angle, 0deg),
    color-mix(in srgb, var(--teal) 38%, transparent) 0deg,
    color-mix(in srgb, var(--brand) 24%, transparent) 70deg,
    color-mix(in srgb, var(--teal) 42%, transparent) 140deg,
    color-mix(in srgb, var(--brand) 20%, transparent) 220deg,
    color-mix(in srgb, var(--teal) 38%, transparent) 290deg,
    color-mix(in srgb, var(--teal) 38%, transparent) 360deg
  );
  filter: blur(30px);
  opacity: .55;
  animation: island-halo-spin 16s linear infinite;
}
html.dark .island {
  background: color-mix(in srgb, #1F3F3E 80%, transparent);
  box-shadow:
    0 0 28px 3px color-mix(in srgb, var(--teal) 75%, transparent),
    0 0 64px 6px color-mix(in srgb, var(--brand) 70%, transparent),
    0 8px 32px -8px rgba(0, 0, 0, .4);
}
html.dark .island::before { opacity: 1; filter: blur(22px); }
.island.is-scrolled {
  box-shadow: 0 0 14px 1px rgba(31, 63, 62, .25), 0 4px 16px -8px rgba(31, 63, 62, .3);
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
}
.island.is-scrolled::before { inset: -10px; filter: blur(24px); opacity: .5; animation-play-state: paused; }

@keyframes island-halo-spin { to { --island-angle: 360deg; } }

.brand-link { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: 0 2px 8px rgba(204, 132, 61, .35);
  transition: transform .3s ease;
  position: relative;
}
.brand-link:hover .brand-logo { transform: scale(1.08); }
.brand-logo::after {
  content: ''; position: absolute;
  top: -1px; right: -1px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 2px #1F3F3E;
  animation: pulse 2s ease-in-out infinite;
}
.brand-name {
  font-weight: 800; font-size: 15px;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  transition: background .2s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .12); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

/* ─────────────  Hero  ───────────── */
.hero {
  position: relative;
  max-width: var(--max-w); margin-inline: auto;
  padding: 24px 16px 8px;
  text-align: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px);
  animation: float-y 7s ease-in-out infinite;
}
.blob-1 {
  right: -60px; top: 16px;
  width: 224px; height: 224px;
  background: radial-gradient(circle, rgba(204, 132, 61, .18), transparent 70%);
}
.blob-2 {
  left: -60px; top: 80px;
  width: 256px; height: 256px;
  background: radial-gradient(circle, rgba(204, 132, 61, .10), transparent 70%);
  animation-delay: 1.5s;
}
.blob-3 {
  left: 33%; top: -32px;
  width: 128px; height: 128px;
  background: radial-gradient(circle, rgba(31, 63, 62, .18), transparent 70%);
  animation-delay: 3s;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  position: relative;
  animation: fade-up .7s cubic-bezier(.22, 1, .36, 1) both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-in-out infinite;
}

/* Hero badge with animated rotating gradient border */
.hero-badge-border {
  position: relative;
  z-index: 0;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.hero-badge-border::before {
  content: '';
  position: absolute; inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    var(--brand),
    transparent 30%,
    color-mix(in srgb, var(--brand) 50%, white) 50%,
    transparent 70%,
    var(--brand)
  );
  animation: rotate-gradient 4s linear infinite;
  z-index: -2;
  opacity: .6;
}
.hero-badge-border::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}

/* ─────────────  Featured portrait (editorial style)  ───────────── */
.featured {
  max-width: 768px; margin: 16px auto 0;
  padding: 24px 16px;
  position: relative;
}
.featured-frame-wrap {
  position: relative;
  max-width: 384px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ambient glow behind the frame */
.featured-frame-wrap::before {
  content: '';
  position: absolute;
  inset: -24px;
  z-index: -1;
  border-radius: 40px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  filter: blur(60px);
}
.featured-frame-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 25%, transparent),
    color-mix(in srgb, var(--brand) 8%, transparent),
    color-mix(in srgb, var(--teal) 20%, transparent));
  filter: blur(40px);
}
.featured-frame {
  position: relative;
  width: 100%;
  border-radius: 28px;
  padding: 1.5px;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}
.featured-frame .conic-border {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  opacity: .7;
  transition: opacity .5s ease;
  background: conic-gradient(from 180deg at var(--mx) var(--my),
    rgba(255, 255, 255, .05),
    var(--brand) 90deg,
    var(--teal) 180deg,
    var(--brand) 270deg,
    rgba(255, 255, 255, .05));
  pointer-events: none;
}
.featured-frame:hover .conic-border { opacity: 1; }
.featured-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--card);
}
.featured-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.featured-frame:hover .featured-card img { transform: scale(1.03); }
/* top sheen */
.featured-card .top-sheen {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 33%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .15), transparent);
  pointer-events: none;
}
/* bottom gradient for the verified tag */
.featured-card .bottom-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15), transparent);
  pointer-events: none;
}
.featured-card .verified-tag {
  position: absolute;
  bottom: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 70%, transparent);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.featured-card .verified-tag svg { width: 14px; height: 14px; color: var(--brand); }
.featured-card .corner-sparkle {
  position: absolute;
  top: 12px; right: 12px;
  color: rgba(255, 255, 255, .7);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3));
}
.featured-card .corner-sparkle svg { width: 16px; height: 16px; }
/* cursor-follow highlight */
.featured-frame .cursor-highlight {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(220px circle at var(--mx) var(--my),
    rgba(255, 255, 255, .18), transparent 60%);
  pointer-events: none;
}
.featured-frame:hover .cursor-highlight { opacity: 1; }

/* name + bio below the portrait */
.featured-info {
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.featured-info h2 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .featured-info h2 { font-size: 30px; }
}
.featured-info .bio {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.featured-info .bio svg { width: 14px; height: 14px; color: var(--brand); }
.featured-lorem {
  margin-top: 16px;
  max-width: 448px;
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
  color: color-mix(in srgb, var(--muted-foreground) 90%, transparent);
}
@media (min-width: 640px) {
  .featured-lorem { font-size: 14px; line-height: 2; }
}

/* ─────────────  Orbit (3D carousel)  ───────────── */
.orbit-section {
  max-width: var(--max-w); margin: 8px auto;
  padding: 24px 16px 40px;
  position: relative;
}
.orbit-stage {
  position: relative;
  height: 440px;
  max-width: 920px;
  margin-inline: auto;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  user-select: none;
  overflow: hidden;
}
@media (min-width: 640px) { .orbit-stage { height: 560px; } }
@media (min-width: 768px) { .orbit-stage { height: 640px; } }

/* radial ambient glow (covers the whole stage) */
.orbit-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 50%,
    color-mix(in srgb, var(--brand) 18%, transparent),
    transparent 70%);
  z-index: -1;
}

/* decorative dashed ring guide */
.orbit-ring-guide {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--border) 40%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.orbit-ring-tilt {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  /* tilt the ring back so the camera looks down — back character peeks above front */
  transform: rotateX(-18deg);
}

.orbit-item {
  position: absolute;
  top: 50%; left: 50%;
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  contain: layout style paint;
  transition: filter .45s ease;
}
.orbit-item[data-active="true"] { z-index: 30; }

.orbit-item-img {
  position: relative;
  display: block;
  width: 168px;
  height: 224px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .25);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  backface-visibility: hidden;
}
@media (min-width: 640px) {
  .orbit-item-img { width: 248px; height: 312px; }
}
@media (min-width: 768px) {
  .orbit-item-img { width: 272px; height: 344px; }
}
.orbit-item-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .4s ease;
}
.orbit-item:hover .orbit-item-img { transform: scale(1.05); }

.orbit-img-lazy {
  opacity: 0;
}
.orbit-img-lazy.is-loaded {
  opacity: 1;
}
@keyframes orbit-pulse {
  0%, 100% { opacity: .35; }
  50%      { opacity: .55; }
}
.orbit-item-img::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--muted) 60%, transparent),
    color-mix(in srgb, var(--muted) 30%, transparent));
  z-index: -1;
}
.orbit-img-lazy:not(.is-loaded) ~ .floor-shadow,
.orbit-img-lazy:not(.is-loaded) ~ .accent-ring,
.orbit-img-lazy:not(.is-loaded) ~ .name-ribbon {
  opacity: 0;
}

/* Active item glow ring (per-character accent) */
.orbit-item .accent-ring {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  transition: opacity .5s ease, box-shadow .5s ease;
  opacity: 0;
}
.orbit-item[data-active="true"] .accent-ring {
  opacity: 1;
  box-shadow:
    0 0 0 2px var(--char-accent, var(--brand)),
    0 24px 60px -16px color-mix(in srgb, var(--char-accent, var(--brand)) 40%, transparent);
}

/* Name ribbon — floating below the portrait (only on active) */
.orbit-item .name-ribbon {
  position: absolute;
  bottom: -22px; left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.orbit-item[data-active="true"] .name-ribbon { opacity: 1; }
.orbit-item .name-ribbon p {
  font-size: 11px;
  font-weight: 700;
  color: var(--foreground);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}
@media (min-width: 640px) {
  .orbit-item .name-ribbon p { font-size: 12px; }
}

/* Floor shadow under the portrait */
.orbit-item .floor-shadow {
  position: absolute;
  bottom: -4px; left: 50%;
  width: 75%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 100%;
  background: rgba(0, 0, 0, .15);
  filter: blur(6px);
  transition: opacity .5s ease;
  pointer-events: none;
}
.orbit-item[data-active="true"] .floor-shadow { opacity: .5; }
.orbit-item .floor-shadow { opacity: .25; }

/* Reflection floor line under the whole ring */
.orbit-floor-line {
  position: absolute;
  bottom: 16px; left: 50%;
  width: 50%; height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--border) 60%, transparent), transparent);
  pointer-events: none;
}

/* Entrance animation (staggered) */
.orbit-entrance {
  animation: orbit-entrance 600ms cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes orbit-entrance {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* Orbit controls */
.orbit-controls {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.orbit-arrow {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
  transition: all .25s ease;
}
.orbit-arrow:hover {
  background: var(--brand);
  color: var(--brand-foreground);
  border-color: var(--brand);
  transform: scale(1.08);
  box-shadow: var(--shadow-brand);
}
.orbit-arrow:active { transform: scale(.95); }
.orbit-arrow svg { width: 20px; height: 20px; }

.orbit-dots {
  display: flex; align-items: center; gap: 6px;
  padding: 0 8px;
  max-width: 180px;
  overflow: hidden;
  flex-wrap: nowrap;
}
.orbit-dot {
  width: 5px; height: 5px;
  min-width: 5px;
  border-radius: 50%;
  background: var(--muted);
  transition: all .25s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.orbit-dot.is-hidden {
  display: none;
}
.orbit-dot.is-active {
  width: 16px; min-width: 16px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.orbit-autoplay {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: all .25s ease;
}
.orbit-autoplay:hover { color: var(--brand); border-color: var(--brand); }
.orbit-autoplay.is-playing {
  background: var(--brand); color: var(--brand-foreground); border-color: var(--brand);
}
.orbit-autoplay svg { width: 16px; height: 16px; }

/* ─────────────  Section heading  ───────────── */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-sub {
  margin-top: 10px;
  color: var(--muted-foreground);
  font-size: 15px;
  max-width: 600px;
  margin-inline: auto;
}

/* ─────────────  Stats band  ───────────── */
.stats-band {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-grid {
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.stat-cell { text-align: center; }
.stat-cell .num {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-cell .lbl {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted-foreground);
}

/* ─────────────  Services grid  ───────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--svc-accent, var(--brand));
  opacity: .85;
}
.service-card::after {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--svc-accent, var(--brand)), transparent 70%);
  opacity: .12;
  transition: opacity .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -8px rgba(31, 63, 62, .18);
}
.service-card:hover::after { opacity: .22; }
.service-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--svc-accent, var(--brand)) 12%, transparent);
  color: var(--svc-accent, var(--brand));
  margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-size: 18px; font-weight: 800;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px; line-height: 1.7;
  color: var(--muted-foreground);
}

/* ─────────────  Video reel section  ───────────── */
.reel-section { padding: 32px 0; }
.reel-section .section-head { margin-bottom: 24px; }
.reel-track {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 8px 16px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reel-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.reel-card {
  flex-shrink: 0;
  width: 220px; height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .3s ease;
}
.reel-card:hover { transform: translateY(-4px); }
.reel-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  background: #000;
}
.reel-card:hover .reel-video { transform: scale(1.05); }
.reel-poster {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
  z-index: 1;
}
.reel-card:not(.is-playing) .reel-poster { opacity: 1; }
.reel-card.is-playing .reel-poster { opacity: 0; pointer-events: none; }
.reel-card .play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .4);
  transition: all .25s ease;
  z-index: 2;
}
.reel-card:hover .play,
.reel-card:focus-within .play {
  background: var(--brand);
  border-color: var(--brand);
  transform: translate(-50%, -50%) scale(1.1);
}
.reel-card .play svg { width: 22px; height: 22px; }
.reel-card .badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  color: #fff;
  background: var(--reel-accent, var(--brand));
  z-index: 3;
}
.reel-card .duration {
  position: absolute; bottom: 60px; left: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px; font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  font-variant-numeric: tabular-nums;
  z-index: 3;
}
.reel-card .label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .4) 60%, transparent);
  color: #fff;
}
.reel-card .label h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.reel-card .label p { font-size: 11px; opacity: .8; line-height: 1.5; }

/* Equalizer bars animation (when playing) */
.reel-card.is-playing .play { animation: reel-ping 1.5s ease-out infinite; }
.reel-eq {
  position: absolute; bottom: 14px; right: 14px;
  display: flex; gap: 3px; align-items: flex-end;
  height: 28px;
}
.reel-eq span {
  width: 3px;
  background: var(--brand);
  border-radius: 2px;
  animation: reel-eq .8s ease-in-out infinite;
}
.reel-eq span:nth-child(2) { animation-delay: .15s; }
.reel-eq span:nth-child(3) { animation-delay: .3s; }
.reel-eq span:nth-child(4) { animation-delay: .45s; }
.reel-card:not(.is-playing) .reel-eq { display: none; }
.reel-card.is-playing .play { animation: reel-ping 1.5s ease-out infinite; }
.reel-eq {
  position: absolute; bottom: 14px; right: 14px;
  display: flex; gap: 3px; align-items: flex-end;
  height: 28px;
}
.reel-eq span {
  width: 3px;
  background: var(--brand);
  border-radius: 2px;
  animation: reel-eq .8s ease-in-out infinite;
}
.reel-eq span:nth-child(2) { animation-delay: .15s; }
.reel-eq span:nth-child(3) { animation-delay: .3s; }
.reel-eq span:nth-child(4) { animation-delay: .45s; }
.reel-card:not(.is-playing) .reel-eq { display: none; }

@keyframes reel-ping {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .7; }
  70%, 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
@keyframes reel-eq {
  0% { height: 8px; }
  100% { height: 28px; }
}

/* ─────────────  Audio reel section  ───────────── */
.audio-section { padding: 32px 0; background: var(--muted); }
.audio-section .section-head { margin-bottom: 24px; }
.audio-track {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 8px 16px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.audio-track::-webkit-scrollbar { display: none; }
.audio-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  scroll-snap-align: start;
  transition: transform .3s ease, box-shadow .3s ease;
}
.audio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.audio-card .head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.audio-card .cover {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--audio-accent, var(--brand));
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.audio-card .cover svg { width: 22px; height: 22px; }
.audio-card.is-playing .cover::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 12px;
  background: var(--audio-accent, var(--brand));
  animation: audio-ping 1.5s ease-out infinite;
}
.audio-card .meta { flex: 1; min-width: 0; }
.audio-card .meta h4 { font-size: 14px; font-weight: 700; }
.audio-card .meta p { font-size: 12px; color: var(--muted-foreground); }
.audio-card .waveform {
  display: flex; align-items: center; gap: 2px;
  height: 32px; margin: 10px 0;
}
.audio-progress-wrap {
  margin: 6px 0 4px;
}
.audio-progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--audio-accent, var(--brand)) 20%, transparent);
  overflow: hidden;
  cursor: pointer;
}
.audio-progress-fill {
  position: absolute;
  top: 0;
  right: 0;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--audio-accent, var(--brand));
  transition: width .15s linear;
}
.audio-card .waveform span {
  flex: 1;
  background: var(--audio-accent, var(--brand));
  border-radius: 2px;
  opacity: .35;
  transition: opacity .2s ease;
}
.audio-card.is-playing .waveform span {
  opacity: 1;
  animation: audio-eq .8s ease-in-out infinite;
}
.audio-card .duration {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
/* Audio controls container — right-aligned (RTL) */
.audio-card .audio-controls {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding-inline-start: 4px;
}

/* Play / Pause button — gradient + glow */
.audio-card .play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    var(--audio-accent, var(--brand)),
    color-mix(in srgb, var(--audio-accent, var(--brand)) 68%, #000 12%));
  color: #fff;
  display: grid; place-items: center;
  box-shadow:
    0 6px 18px -4px color-mix(in srgb, var(--audio-accent, var(--brand)) 50%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, .35);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.audio-card .play-btn:hover {
  transform: scale(1.12);
  box-shadow:
    0 10px 26px -4px color-mix(in srgb, var(--audio-accent, var(--brand)) 65%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, .35);
}
.audio-card .play-btn:active { transform: scale(.96); }
.audio-card .play-btn svg {
  width: 18px; height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}

/* Playing — gentle pulsing glow */
.audio-card.is-playing .play-btn {
  animation: audio-btn-pulse 1.8s ease-in-out infinite;
}
@keyframes audio-btn-pulse {
  0%, 100% {
    box-shadow:
      0 6px 18px -4px color-mix(in srgb, var(--audio-accent, var(--brand)) 50%, transparent),
      inset 0 1px 1px rgba(255, 255, 255, .35);
  }
  50% {
    box-shadow:
      0 6px 28px 0 color-mix(in srgb, var(--audio-accent, var(--brand)) 72%, transparent),
      inset 0 1px 1px rgba(255, 255, 255, .35);
  }
}

/* Restart button — glassy, accent on hover */
.audio-card .restart-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  color: var(--foreground);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: all .25s cubic-bezier(.22, 1, .36, 1);
}
.audio-card .restart-btn:hover {
  background: color-mix(in srgb, var(--brand) 12%, var(--card));
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  transform: scale(1.1) rotate(-35deg);
  box-shadow: var(--shadow-md);
}
.audio-card .restart-btn:active { transform: scale(.94) rotate(-35deg); }
.audio-card .restart-btn svg { width: 16px; height: 16px; }

/* Play/Pause icon toggle */
.audio-card.is-playing .icon-play { display: none; }
.audio-card.is-playing .icon-pause { display: block; }
.audio-card:not(.is-playing) .icon-play { display: block; }
.audio-card:not(.is-playing) .icon-pause { display: none; }

@keyframes audio-ping {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.4); opacity: 0; }
}
@keyframes audio-eq {
  0% { transform: scaleY(.55); }
  100% { transform: scaleY(1.15); }
}

/* ─────────────  Audio player styles  ───────────── */
.audio-player {
  display: none; /* Hidden - we use custom UI */
}

/* ─────────────  FAQ accordion  ───────────── */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.faq-item.is-open {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-size: 15px; font-weight: 700;
  text-align: right;
}
.faq-q .chev {
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--brand);
}
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-a-inner {
  padding: 0 22px 18px;
  font-size: 14px; line-height: 1.8;
  color: var(--muted-foreground);
}

/* ─────────────  Testimonials  ───────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testimonial-card .stars {
  color: var(--brand);
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 2px;
}
.testimonial-card .content {
  font-size: 14px; line-height: 1.8;
  margin-bottom: 18px;
}
.testimonial-card .author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-card .author img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
}
.testimonial-card .author .name { font-weight: 700; font-size: 14px; }
.testimonial-card .author .role { font-size: 12px; color: var(--muted-foreground); }

/* ─────────────  Contact section  ───────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-card,
.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px; font-weight: 600;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--destructive);
}
.btn-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  background: var(--brand);
  color: var(--brand-foreground);
  border-radius: var(--radius);
  font-weight: 700; font-size: 14px;
  border: 1px solid var(--brand);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.btn-brand:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.btn-brand:active { transform: translateY(0); }
.btn-brand:disabled { opacity: .6; cursor: not-allowed; }

/* CTA shimmer on hover */
.cta-shimmer-bar {
  position: absolute; inset: 0;
  background: linear-gradient(to left,
    transparent 0%,
    rgba(255, 255, 255, .1) 35%,
    rgba(255, 255, 255, .35) 50%,
    rgba(255, 255, 255, .1) 65%,
    transparent 100%);
  transform: translate3d(-120%, 0, 0) skewX(-20deg);
  pointer-events: none;
}
.btn-brand:hover .cta-shimmer-bar {
  animation: cta-shimmer .9s cubic-bezier(.22, 1, .36, 1) forwards;
}

.contact-info-list { margin-top: 16px; }
.contact-info-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: 0; }
.contact-info-item .ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  flex-shrink: 0;
}
.contact-info-item .ico svg { width: 18px; height: 18px; }
.contact-info-item .lbl { font-size: 12px; color: var(--muted-foreground); }
.contact-info-item .val { font-size: 14px; font-weight: 600; }

/* ─────────────  Footer  ───────────── */
.site-footer {
  margin-top: 80px;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .5;
}
.footer-grid {
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: var(--muted-foreground); line-height: 1.7; }
.footer-col h5 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--brand); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px; color: var(--muted-foreground);
  transition: color .2s ease;
}
.footer-col ul li a:hover { color: var(--brand); }
.footer-social {
  display: flex; gap: 8px;
  margin-top: 14px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--muted);
  color: var(--foreground);
  transition: all .25s ease;
}
.footer-social a:hover {
  background: var(--brand); color: var(--brand-foreground);
  transform: translateY(-2px);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-bottom {
  max-width: var(--max-w); margin-inline: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ─────────────  Floating consult button (footer)  ───────────── */
.consult-footer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.consult-footer .fade-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to top, var(--background), color-mix(in srgb, var(--background) 80%, transparent), transparent);
  pointer-events: none;
}
.consult-cta {
  pointer-events: auto;
  position: relative;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--brand);
  color: var(--brand-foreground);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent);
  box-shadow:
    0 6px 18px rgba(204, 132, 61, .20),
    0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent);
  transition: all .4s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
  animation: consult-fade-in .6s .15s cubic-bezier(.22, 1, .36, 1) both;
}
@media (min-width: 640px) {
  .consult-cta {
    margin-bottom: 16px;
    padding: 9px 20px;
    font-size: 12.5px;
  }
}
.consult-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(204, 132, 61, .40);
}
.consult-cta:active { transform: scale(.98); }

/* Pulsing live dot */
.consult-cta .live-dot {
  position: relative;
  display: flex;
  width: 10px; height: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.consult-cta .live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-foreground) 60%, transparent);
  animation: live-ping 1.5s ease-out infinite;
}
.consult-cta .live-dot::after {
  content: '';
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-foreground);
}
.consult-cta svg {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.consult-cta:hover svg { transform: translateX(-2px); }
.consult-cta .cta-label {
  position: relative;
  white-space: nowrap;
}

@keyframes consult-fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes live-ping {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(2); opacity: 0; }
}

/* ─────────────  Mobile CTA bar (sticky bottom on mobile)  ───────────── */
.mobile-cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar .bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.mobile-cta-bar .bar-brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.mobile-cta-bar .bar-text {
  font-size: 12px;
  color: var(--muted-foreground);
}
.mobile-cta-bar .bar-btn {
  padding: 8px 20px;
  background: var(--brand);
  color: var(--brand-foreground);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(204, 132, 61, .20);
  transition: all .2s ease;
}
.mobile-cta-bar .bar-btn:hover {
  box-shadow: 0 6px 16px rgba(204, 132, 61, .30);
}
@media (min-width: 768px) {
  .mobile-cta-bar { display: none; }
}

/* ─────────────  Back to top (with progress ring + pulse glow)  ───────────── */
.back-to-top {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  left: 16px;
  z-index: 40;
  width: 40px; height: 40px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: 0 8px 20px rgba(204, 132, 61, .20);
  transition: all .25s cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 640px) {
  .back-to-top {
    width: 48px; height: 48px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    left: 24px;
  }
}
html.dark .back-to-top {
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: blur(20px);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  color: var(--foreground);
}
.back-to-top.is-visible { display: grid; }
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(204, 132, 61, .30);
}
/* Scroll progress ring (SVG, fills as user scrolls) */
.back-to-top .progress-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.back-to-top .progress-ring .track {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  opacity: .15;
}
.back-to-top .progress-ring .progress {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset .1s linear;
}
/* Pulse glow ring */
.back-to-top .pulse-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 2s ease-in-out infinite;
}
.back-to-top svg.arrow {
  position: relative;
  z-index: 1;
  width: 20px; height: 20px;
}

/* ─────────────  Consult modal (iOS-style)  ───────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  width: 100%; max-width: 420px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 28px;
  box-shadow: 0 24px 80px -20px rgba(31, 63, 62, .45);
  overflow: hidden;
  animation: modal-pop .35s cubic-bezier(.22, 1, .36, 1) both;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; left: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .05);
  color: var(--muted-foreground);
  font-size: 22px; line-height: 1;
  transition: all .2s ease;
  z-index: 2;
}
.modal-close:hover { background: rgba(0, 0, 0, .10); color: var(--foreground); }

.modal-glyph {
  width: 56px; height: 56px;
  margin: 28px auto 16px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.modal-glyph svg { width: 26px; height: 26px; }
.modal-title {
  text-align: center;
  font-size: 17px; font-weight: 800;
  margin-bottom: 6px;
}
.modal-sub {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-foreground);
  padding: 0 32px 20px;
  line-height: 1.7;
}
.modal-form { padding: 0 20px 24px; }

.ios-field-group {
  border-radius: 16px;
  background: color-mix(in srgb, var(--muted) 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.ios-field-group:focus-within {
  box-shadow:
    0 0 0 2px var(--brand),
    0 0 0 6px color-mix(in srgb, var(--brand) 15%, transparent);
}
.ios-field {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  transition: background-color .2s ease;
}
.ios-field:focus-within { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.ios-field.is-error { background: color-mix(in srgb, var(--destructive) 5%, transparent); }
.ios-field-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  transition: transform .25s ease;
}
.ios-field:focus-within .ios-field-icon { transform: scale(1.08); }
.ios-field-icon svg { width: 16px; height: 16px; }
.ios-field-body { flex: 1; min-width: 0; }
.ios-field-label {
  font-size: 11px; font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 2px;
}
.ios-field-body input {
  width: 100%;
  background: transparent;
  border: 0; outline: none;
  font-size: 14.5px; font-weight: 500;
  padding: 0;
}
.ios-field-body input::placeholder {
  color: color-mix(in srgb, var(--muted-foreground) 60%, transparent);
  font-weight: 400;
}
.ios-separator {
  margin-inline: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}
.ios-errors {
  margin: 8px 14px 0;
  font-size: 11.5px; font-weight: 500;
  color: var(--destructive);
}
.ios-errors > div { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ios-errors > div::before {
  content: ''; width: 4px; height: 4px;
  border-radius: 50%; background: var(--destructive);
  flex-shrink: 0;
}

.ios-cta {
  position: relative;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: var(--brand);
  color: var(--brand-foreground);
  border: 0;
  border-radius: 16px;
  font-weight: 700; font-size: 14.5px;
  box-shadow: 0 6px 18px rgba(204, 132, 61, .30);
  transition: all .25s ease;
  overflow: hidden;
}
.ios-cta:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(204, 132, 61, .40); }
.ios-cta:active { transform: scale(.985); }
.ios-cta:disabled { opacity: .7; cursor: not-allowed; }

.modal-divider {
  margin: 20px 8px 16px;
  display: flex; align-items: center; gap: 12px;
}
.modal-divider::before,
.modal-divider::after {
  content: ''; flex: 1; height: 1px;
  background: color-mix(in srgb, var(--border) 50%, transparent);
}
.modal-divider .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 50%, transparent);
}
.modal-tel-label {
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
}
.modal-tel-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 10px auto 0;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  border-radius: 999px;
  font-size: 19px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  animation: tel-breathe 2.4s ease-in-out infinite;
  transition: all .2s ease;
  direction: ltr;
}
.modal-tel-chip:hover {
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  transform: translateY(-2px);
}
.modal-tel-chip svg { width: 20px; height: 20px; }
.modal-tel-wrap { text-align: center; }
.modal-trust {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: color-mix(in srgb, var(--muted-foreground) 70%, transparent);
}

/* Modal: submitting + done states */
.modal-state {
  padding: 60px 24px;
  text-align: center;
}
.modal-state .spinner {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
.modal-state .check {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-foreground);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(204, 132, 61, .40);
  animation: check-pop .5s ease-out;
}
.modal-state .check svg { width: 32px; height: 32px; }

/* ─────────────  Section reveal  ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
              transform .8s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ─────────────  Toast  ───────────── */
.toast {
  position: fixed;
  bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  padding: 12px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.22, 1, .36, 1);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.is-success { border-color: var(--brand); color: var(--brand); }
.toast.is-error { border-color: var(--destructive); color: var(--destructive); }
.toast svg { width: 16px; height: 16px; }

/* ─────────────  Keyframes  ───────────── */
@keyframes float-y {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
@keyframes orbit-pulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
@keyframes orbit-spotlight {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.05); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(204, 132, 61, .40), 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent); }
  50%      { box-shadow: 0 8px 24px rgba(204, 132, 61, .50), 0 0 0 12px color-mix(in srgb, var(--brand) 0%, transparent); }
}
@keyframes tel-breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 30%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 0%, transparent); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes check-pop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rotate-gradient { to { --angle: 360deg; } }
@keyframes cta-shimmer {
  0% { transform: translate3d(-120%, 0, 0) skewX(-20deg); }
  100% { transform: translate3d(120%, 0, 0) skewX(-20deg); }
}

/* ─────────────  Reduced motion  ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─────────────  Video modal  ───────────── */
.video-modal {
  max-width: 420px;
  padding: 0;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .video-modal { max-width: 380px; }
}
.video-modal-stage {
  position: relative;
  width: 100%;
}
.video-modal-content {
  position: relative;
  width: 100%;
  max-height: 80vh;
}
.video-modal-content video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
  display: block;
  border-radius: 20px 20px 0 0;
}
.video-modal-info-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  pointer-events: none;
}
.video-modal-info-bar h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}
.video-modal-info-bar p {
  color: rgba(255,255,255,.75);
  font-size: 12px;
  line-height: 1.5;
}
.video-modal .modal-close {
  background: rgba(0,0,0,.5);
  color: #fff;
}
.video-modal .modal-close:hover {
  background: rgba(0,0,0,.8);
}

/* ─────────────  Mobile fixes  ───────────── */
@media (max-width: 640px) {
  /* Center the page properly — fix left-shift issue */
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .hero,
  .featured,
  .orbit-section,
  .reel-section,
  .audio-section,
  .section,
  .stats-band,
  .contact-grid {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 16px;
  }
  .container {
    padding-inline: 16px;
  }
  /* Site header — make sure it's centered */
  .site-header {
    padding: 8px 12px;
  }
  .island {
    max-width: calc(100% - 8px);
    height: 50px;
    padding: 0 12px;
  }
  .brand-name { font-size: 14px; }
  .theme-toggle { width: 32px; height: 32px; }
  /* Featured portrait — fits mobile */
  .featured-frame-wrap {
    max-width: 100%;
  }
  .featured-info h2 { font-size: 22px; }
  .featured-lorem { font-size: 13px; padding: 0 4px; }
  /* Orbit — fit mobile */
  .orbit-stage {
    max-width: 100%;
    height: 320px;
  }
  .orbit-item-img { width: 144px; height: 192px; }
  /* Contact — stack on mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  /* Stats — 2 columns on mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-cell .num { font-size: 28px; }
  /* Toast centered properly */
  .toast { left: 16px; right: 16px; transform: translateX(0) translateY(20px); }
  .toast.is-visible { transform: translateX(0) translateY(0); }
}

/* ─────────────  Orbit preview modal  ───────────── */
.orbit-preview-modal .orbit-preview-box {
  max-width: 460px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.orbit-preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 55vh;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}
.orbit-preview-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.orbit-preview-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}
.orbit-preview-name {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 2px;
}
.orbit-preview-role {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 6px;
}
.orbit-preview-tagline {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 12px;
}
.orbit-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.orbit-preview-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent);
}
.orbit-preview-stat .stat-val {
  font-weight: 800;
}
.orbit-preview-bio {
  font-size: 13.5px;
  color: var(--muted-foreground);
  line-height: 1.8;
}
.orbit-preview-close {
  top: 12px; left: 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
}
.orbit-preview-close:hover {
  background: rgba(0, 0, 0, .8);
  color: #fff;
}
@media (max-width: 640px) {
  .orbit-preview-modal .orbit-preview-box {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px;
  }
  .orbit-preview-stage { max-height: 45vh; }
  .orbit-preview-body { padding: 16px 18px 22px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   1.8.0 — FLAT full-bleed slider + phone-style gallery
   These rules deliberately sit at the end of the file so they win the cascade
   over the legacy 3D .orbit-* rules above (same specificity, later wins).
   Goals: no perspective, no tilt, no per-frame blur, one photo at a time,
   any aspect ratio (16:9 or vertical) shown at full size, buttery on mid-range
   Android.
   ══════════════════════════════════════════════════════════════════════════ */

.orbit-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 0 26px;
  position: relative;
}

/* The viewport. Slides are absolutely stacked inside and moved horizontally. */
.orbit-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  height: 600px;
  max-height: 74vh;
  perspective: none;               /* dead straight — no 3D camera */
  overflow: hidden;
  touch-action: pan-y;             /* we own horizontal, page keeps vertical */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
  contain: layout paint;
}
.orbit-stage.is-dragging { cursor: grabbing; }

/* Legacy 3D decoration — gone. */
.orbit-ring-guide,
.orbit-floor-line,
.orbit-item .floor-shadow,
.orbit-item .accent-ring { display: none !important; }
.orbit-glow { opacity: .55; }

.orbit-ring-tilt {
  position: relative;
  width: 100%; height: 100%;
  transform: none;                 /* was rotateX(-18deg) */
  transform-style: flat;
}

.orbit-item {
  position: absolute;
  inset: 0;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: flat;
  transition: none;                /* transforms are driven per frame by JS */
  will-change: auto;               /* only promoted while dragging (below) */
  filter: none;
  contain: layout paint;
}
.orbit-stage.is-dragging .orbit-item { will-change: transform; }

/* The frame fills the stage; the photo inside keeps its own aspect ratio, so
   16:9 and 4:5 / 9:16 shots both render correctly and as large as possible. */
.orbit-item-img {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  transition: none;
  transform: none !important;       /* kills the legacy hover scale */
}
.orbit-item-img::before { display: none; }

.orbit-item-img img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, .5);
  pointer-events: none;            /* taps/drags land on .orbit-item */
  -webkit-user-drag: none;
}

/* Name shown as a caption chip over the photo (active slide only). */
.orbit-item .name-ribbon {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.orbit-item[data-active="true"] .name-ribbon { opacity: 1; }
.orbit-item .name-ribbon p {
  max-width: 78%;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orbit-controls { margin-top: 20px; }

/* Mobile: the photo owns the whole section, edge to edge. */
@media (max-width: 640px) {
  .orbit-section {
    width: 100%; max-width: 100%;
    margin-inline: 0;
    padding: 8px 0 18px;
    padding-inline: 0;
  }
  .orbit-section .container { padding-inline: 16px; }
  .orbit-stage {
    max-width: 100%;
    height: min(78vh, calc(100vw * 1.25));
    max-height: none;
  }
  .orbit-item-img img { border-radius: 14px; }
  .orbit-controls { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-item .name-ribbon { transition: none; }
}

/* ─────────────  Full-screen gallery viewer  ───────────── */

html.gallery-lock, body.gallery-lock { overflow: hidden; }

.gallery {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  color: #fff;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
.gallery.is-open { display: block; }

.gallery-backdrop {
  position: absolute; inset: 0;
  background: #000;
  opacity: var(--g-fade, 1);
}

.gallery-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 60px;
  padding: 0 10px;
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent);
  opacity: var(--g-chrome, 1);
  transition: opacity .2s ease;
}
.gallery.is-hiding-chrome { --g-chrome: 0; }
.gallery.is-hiding-chrome .gallery-bar,
.gallery.is-hiding-chrome .gallery-sheet { pointer-events: none; }

.gallery-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}
.gallery-btn:active { background: rgba(255, 255, 255, .22); }
.gallery-btn svg { width: 20px; height: 20px; }
.gallery-counter {
  font-size: 13px; font-weight: 700;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, .92);
}

.gallery-viewport {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 2;
}
.gallery-track {
  position: absolute; inset: 0;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 50%;
}
.gallery-track.is-animating,
.gallery-slide.is-animating {
  transition: transform .3s cubic-bezier(.2, .75, .25, 1);
}
.gallery-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  will-change: transform;
}
.gallery-slide img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  -webkit-user-drag: none;
}
.gallery-slide img.is-animating { transition: transform .25s ease-out; }

.gallery-sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .45) 55%, transparent);
  opacity: var(--g-chrome, 1);
  transition: opacity .2s ease;
}
.gallery-name { font-size: 17px; font-weight: 800; line-height: 1.5; }
.gallery-role {
  font-size: 12.5px; font-weight: 600;
  color: rgba(255, 255, 255, .72);
  margin-top: 2px;
}
.gallery-stats { display: none; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gallery-tagline, .gallery-bio {
  display: none;
  font-size: 13px; line-height: 1.9;
  color: rgba(255, 255, 255, .82);
  margin-top: 10px;
}
.gallery.show-info .gallery-stats { display: flex; }
.gallery.show-info .gallery-tagline[data-empty="0"],
.gallery.show-info .gallery-bio[data-empty="0"] { display: block; }
.gallery.show-info .gallery-sheet {
  max-height: 62vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.gallery-stat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, .13);
  color: #fff;
}
.gallery-stat strong { font-weight: 800; }



/* 1.8.1: landscape image orientation cue on mobile */
.gallery-orientation-hint{position:absolute;right:18px;top:50%;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(22,28,30,.78);color:rgba(255,255,255,.92);opacity:0;transform:translateY(-50%) translateX(10px);pointer-events:none;transition:opacity .28s cubic-bezier(.16,1,.3,1),transform .28s cubic-bezier(.16,1,.3,1)}
.gallery-orientation-hint.is-visible{opacity:1;transform:translateY(-50%) translateX(0);animation:orientation-hint-in 420ms cubic-bezier(.16,1,.3,1) both,orientation-hint-breathe 2.6s ease-in-out 420ms infinite}
.orientation-phone{display:grid;place-items:center;width:34px;height:42px;color:var(--brand);animation:phone-rotate 2.2s cubic-bezier(.65,0,.35,1) infinite}
.orientation-phone svg{width:24px;height:36px;overflow:visible}
.orientation-copy{font-size:11px;line-height:1.75;white-space:nowrap;text-align:right}.orientation-copy strong{font-size:12px;color:var(--brand);font-weight:800}
@keyframes phone-rotate{0%,32%{transform:rotate(0deg)}52%,82%{transform:rotate(90deg)}100%{transform:rotate(0deg)}}
@keyframes orientation-hint-in{from{opacity:0;transform:translateY(-50%) translateX(14px)}to{opacity:1;transform:translateY(-50%) translateX(0)}}
@keyframes orientation-hint-breathe{0%,100%{box-shadow:0 8px 24px rgba(0,0,0,.18)}50%{box-shadow:0 8px 30px color-mix(in srgb,var(--brand) 26%,transparent)}}
@media(max-width:640px){.gallery-orientation-hint{right:12px;top:calc(env(safe-area-inset-top) + 78px);bottom:auto;transform:translateY(0) translateX(10px)}.gallery.is-hiding-chrome .gallery-orientation-hint{opacity:0;pointer-events:none}.gallery-orientation-hint.is-visible{transform:translateY(0) translateX(0)}}
@media(min-width:701px){.gallery-orientation-hint{display:none}}
@media(prefers-reduced-motion:reduce){.orientation-phone,.gallery-orientation-hint.is-visible{animation:none}}
