/* ==========================================================================
   Charlene Pace — Portfolio
   Design system: Warm stone neutrals · Editorial luxury · Swiss minimalism
   Fonts: Playfair Display (display) + Inter (body)
   ========================================================================== */

/* ----------------------------- Design Tokens ---------------------------- */
:root {
  /* Warm neutral palette (ui-ux-pro-max: Luxury/Premium Brand) */
  --ink:        #1C1917;   /* deep charcoal */
  --ink-2:      #292524;
  --obsidian:   #0C0A09;   /* near-black dramatic sections */
  --paper:      #FAF9F7;   /* soft warm white */
  --paper-2:    #F4F2EE;   /* faint stone panel */
  --card:       #FFFFFF;
  --muted:      #78716C;   /* stone-500 */
  --muted-2:    #A8A29E;   /* stone-400 */
  --line:       #E7E3DC;   /* hairline border */
  --line-2:     #D6D1C8;

  /* Muted gold accent */
  --gold:       #A16207;
  --gold-soft:  #C08A2D;
  --gold-tint:  rgba(161, 98, 7, 0.10);
  --gold-line:  rgba(161, 98, 7, 0.28);

  /* On-dark */
  --paper-invert: #F5F2EC;
  --muted-invert: #A8A096;
  --line-invert:  rgba(255,255,255,0.10);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space & radius */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(28,25,23,.04), 0 2px 8px rgba(28,25,23,.04);
  --shadow: 0 4px 12px rgba(28,25,23,.05), 0 18px 40px -12px rgba(28,25,23,.14);
  --shadow-lg: 0 8px 24px rgba(28,25,23,.07), 0 40px 80px -24px rgba(28,25,23,.28);
  --shadow-gold: 0 20px 60px -20px rgba(161,98,7,.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);        /* expensive deceleration */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ------------------------------- Reset ---------------------------------- */
* { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: clip;          /* kill horizontal scroll at the root (clip keeps sticky working) */
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: #fff; }

/* Faint paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------- Typography ------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.02em;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-line);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-line);
  display: inline-block;
}
.serif-i { font-style: italic; }
.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
}

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: 1440px; }
section { position: relative; }
.section-pad { padding-block: clamp(88px, 12vw, 168px); }
.section-head { max-width: 760px; }
.section-title {
  font-size: clamp(34px, 5.2vw, 62px);
  margin-top: 22px;
  line-height: 1.04;
}
.section-sub { margin-top: 22px; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Reveal primitives (JS toggles .is-in) */
[data-reveal] { opacity: 0; transform: translateY(22px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------- Buttons / links ---------------------------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
  will-change: transform;
}
.btn .btn-i { transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover .btn-i { transform: translateX(4px); }
.btn-gold { --bg: var(--gold); --fg: #fff; }
.btn-gold:hover { box-shadow: var(--shadow-gold); }
.btn-ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--paper-2); box-shadow: none; }
.btn-invert { --bg: var(--paper-invert); --fg: var(--obsidian); }

.link-underline {
  position: relative;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }
.link-underline .btn-i { transition: transform .4s var(--ease); }
.link-underline:hover .btn-i { transform: translateX(4px); }

/* ------------------------------- Navbar --------------------------------- */
.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1180px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 24px;
  border-radius: 100px;
  background: rgba(250, 249, 247, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(231,227,220,0.9);
  box-shadow: 0 8px 30px -12px rgba(28,25,23,.12);
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.nav.hide { transform: translateX(-50%) translateY(-140%); opacity: 0; }
.brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper-invert);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
/* Gold-plated CP monogram used in place of the text mark */
img.mark {
  object-fit: cover;
  display: block;
  flex: none;
  background: var(--ink);
}
.footer .brand img.mark { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 100px;
  transition: color .3s, background .3s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 12px; right: 12px; height: 1.6px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s;
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { bottom: 17px; }
.nav-burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--paper);
  padding: 120px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  transition: transform .7s var(--ease);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 46px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu a .num { font-family: var(--font-sans); font-size: 13px; color: var(--gold); }

/* -------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(138px, 17vh, 178px);
  padding-bottom: clamp(56px, 7vw, 84px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
.hero-glow.g1 { width: 620px; height: 620px; top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(192,138,45,.22), transparent 70%); }
.hero-glow.g2 { width: 520px; height: 520px; bottom: -220px; left: -160px;
  background: radial-gradient(circle, rgba(120,113,108,.16), transparent 70%); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 30px;
}
.hero-badge .dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-tint);
  display: grid; place-items: center;
}
.hero-badge .dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: block; }
.hero h1 {
  font-size: clamp(40px, 5.1vw, 67px);
  line-height: 1.02;
  white-space: nowrap;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: inline-block; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead {
  margin-top: 30px;
  max-width: 480px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.62;
}
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ===================================================================== */
/* Unified browser mockup — ONE consistent frame everywhere              */
/* Same chrome, 16:9 window, identical radius / shadow / crop.           */
/* ===================================================================== */
.mock {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #17130e;
  border: 1px solid rgba(28, 25, 23, 0.12);
  box-shadow: var(--shadow-lg);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 15px;
  background: #1b1714;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mock-dots { display: flex; gap: 7px; flex: none; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; background: rgba(255,255,255,.16); }
.mock-dots i:nth-child(1) { background: #d9695f; }
.mock-dots i:nth-child(2) { background: #d9a441; }
.mock-dots i:nth-child(3) { background: #5f9d63; }
.mock-url {
  flex: 1;
  max-width: 340px;
  height: 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(245, 242, 236, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-url svg { flex: none; opacity: 0.55; }
.mock-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0a09;
}
.mock-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* branded fallback panel when no screenshot exists */
.mock-screen .mock-fill {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  color: var(--paper-invert);
  padding: 24px;
}
.mock-screen .mock-fill .t { font-family: var(--font-display); font-size: clamp(24px,3vw,34px); }
.mock-screen .mock-fill .s { color: var(--muted-invert); font-size: 14px; margin-top: 6px; }

/* Hero product showcase (layered) */
.hero-visual { position: relative; }
.hero-mock {
  transform: perspective(1700px) rotateY(-8deg) rotateX(2.5deg);
  transform-style: preserve-3d;
}
.hero-mock .mock-screen { aspect-ratio: 16 / 10.5; }

/* Floating phone with auto-scrolling screenshot */
.hero-phone {
  position: absolute;
  z-index: 4;
  right: -2%;
  bottom: -12%;
  width: clamp(148px, 13vw, 188px);
  transform: rotate(3.5deg);
  filter: drop-shadow(0 34px 55px rgba(28, 25, 23, 0.32));
}
.phone {
  position: relative;
  border-radius: 32px;
  background: #0b0a09;
  padding: 7px;
  border: 1px solid rgba(28, 25, 23, 0.6);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.phone::before {
  content: "";
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 15px; background: #0b0a09; border-radius: 0 0 12px 12px; z-index: 3;
}
.phone-screen {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  aspect-ratio: 9 / 19.3;
  background: #0c0a09;
}
.phone-screen img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto; display: block;
  will-change: transform;
  animation: phoneScroll 17s ease-in-out infinite alternate;
}
@keyframes phoneScroll { from { transform: translateY(0); } to { transform: translateY(-76%); } }
.phone-glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: 25px;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, transparent 28%, transparent 100%);
}
.hero-float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-float .fi {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold);
}
.hero-float .ft { font-size: 12px; color: var(--muted); font-weight: 500; }
.hero-float .fv { font-size: 17px; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.hero-float.f1 { top: 6%; left: -6%; }
.hero-float.f3 { bottom: 14%; left: -7%; }

/* Marquee logo strip */
.trust {
  margin-top: clamp(56px, 8vw, 84px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trust-label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); text-align: center; margin-bottom: 20px; font-weight: 600;
}
.marquee { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee span {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--muted-2);
  white-space: nowrap;
  display: flex; align-items: center; gap: 56px;
}
.marquee span::after { content: "·"; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------ Stats ----------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: var(--paper); padding: 38px clamp(20px,3vw,40px); }
.stat .n { font-family: var(--font-display); font-size: clamp(38px, 5vw, 58px); line-height: 1; font-weight: 500; }
.stat .n em { color: var(--gold); font-style: normal; }
.stat .l { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------------------------- Work / Gallery ---------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.case {
  grid-column: span 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px;                 /* uniform inset around every mockup */
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s;
  position: relative;
  will-change: transform;
}
.case.feature { grid-column: span 2; }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
/* the framed screenshot inside every card */
.case-media { position: relative; display: block; }
/* Static screenshots open full-screen instead of linking out */
.case-media.zoomable { cursor: zoom-in; }
.case-media.zoomable::after {
  content: "⤢ View full size";
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--paper-invert);
  background: rgba(12, 10, 9, 0.72);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  padding: 7px 12px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.case:hover .case-media.zoomable::after,
.case-media.zoomable:focus-visible::after { opacity: 1; transform: translateY(0); }
.case-media.zoomable:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 16px; }
@media (hover: none) {
  .case-media.zoomable::after { opacity: 1; transform: none; }
}
.case-media .mock { border-radius: 14px; box-shadow: var(--shadow); }
.case-media .mock-screen > img { transition: transform 1.1s var(--ease); }
.case:hover .case-media .mock-screen > img { transform: scale(1.05); }
.case-body { padding: 24px 12px 12px; }
.case-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 5px 11px; border-radius: 100px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.tag.gold { color: var(--gold); background: var(--gold-tint); border-color: var(--gold-line); }
.case h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; }
.case.feature h3 { font-size: clamp(26px, 3.4vw, 40px); }
.case p { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.case-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stackline { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font-size: 12px; color: var(--muted); padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--paper);
}
/* animated gold border on hover */
.case::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(120deg, transparent 30%, var(--gold-line) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.case:hover::after { opacity: 1; }

/* ------------------------------ About ----------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-photo .cap {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: rgba(12,10,9,.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--paper-invert);
}
.about-photo .cap .nm { font-family: var(--font-display); font-size: 18px; }
.about-photo .cap .rl { font-size: 13px; color: var(--muted-invert); margin-top: 2px; }
.about-body h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; }
.about-body p { margin-top: 24px; color: var(--muted); font-size: 16.5px; }
.about-list { margin-top: 30px; display: grid; gap: 2px; }
.about-list li {
  list-style: none;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.about-list li .mk { color: var(--gold); flex: none; margin-top: 3px; }
.about-list li b { font-weight: 600; }

/* ------------------------------ Services -------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 28px); }
.svc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
  position: relative;
  overflow: hidden;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.svc .idx { font-family: var(--font-display); font-size: 13px; color: var(--gold); letter-spacing: .04em; }
.svc-ic {
  width: 54px; height: 54px; border-radius: 15px; margin: 22px 0 24px;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line);
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.svc:hover .svc-ic { background: var(--ink); color: var(--paper-invert); transform: translateY(-2px); }
.svc h3 { font-size: 24px; }
.svc > p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.svc-feats { margin-top: 22px; display: grid; gap: 11px; }
.svc-feats li {
  list-style: none; display: flex; gap: 11px; align-items: center;
  font-size: 14.5px; color: var(--ink-2);
}
.svc-feats li svg { color: var(--gold); flex: none; }

/* ------------------------------ Process --------------------------------- */
.process { background: var(--paper-2); }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px,2.2vw,26px); margin-top: 56px; counter-reset: p; }
.proc {
  padding-top: 30px;
  border-top: 2px solid var(--ink);
  position: relative;
}
.proc .pn { font-family: var(--font-display); font-size: 15px; color: var(--gold); }
.proc h3 { font-size: 22px; margin-top: 18px; }
.proc p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }

/* -------------------- Pace Lodgix cinematic showcase -------------------- */
.showcase { background: var(--obsidian); color: var(--paper-invert); }
.showcase .eyebrow { color: var(--gold-soft); }
.showcase .eyebrow::before, .showcase .eyebrow.center::after { background: rgba(192,138,45,.4); }
.sc-intro { text-align: center; max-width: 820px; margin: 0 auto; }
.sc-intro h2 { font-size: clamp(34px, 5.4vw, 66px); margin-top: 20px; line-height: 1.03; }
.sc-intro h2 em { font-style: italic; color: var(--gold-soft); }
.sc-intro p { margin-top: 24px; color: var(--muted-invert); font-size: 18px; }
.sc-meta { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.sc-meta .chip { background: rgba(255,255,255,.04); border-color: var(--line-invert); color: var(--paper-invert); }

/* ---------------- Card-stack scrolling narrative ---------------------- */
.pl-stack {
  margin-top: clamp(64px, 8vw, 110px);
  position: relative;
}
.pl-card {
  position: sticky;
  top: calc(94px + var(--i, 0) * 26px);
  margin-bottom: clamp(32px, 5vw, 56px);
  /* Later cards must paint ON TOP of earlier ones so the active card fully
     occludes the receding deck below it — otherwise faded cards ghost through. */
  z-index: calc(var(--i, 0) + 1);
}
.pl-card:last-child { margin-bottom: 0; }
.pl-card-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  min-height: 60vh;
  padding: clamp(26px, 3vw, 46px);
  border-radius: var(--r-xl);
  /* solid base under the gradient — guarantees a fully opaque backdrop */
  background-color: #100e0c;
  background-image: linear-gradient(150deg, #16130f 0%, #100e0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, 0.85);
  transform-origin: top center;
  will-change: transform;
}
.pl-copy .k {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft);
}
.pl-copy h3 { font-size: clamp(26px, 3vw, 40px); margin-top: 16px; line-height: 1.08; }
.pl-copy p { margin-top: 18px; color: var(--muted-invert); font-size: 16.5px; max-width: 46ch; }
.pl-copy ul { margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.pl-copy ul li {
  list-style: none; display: flex; gap: 12px; align-items: center;
  font-size: 14.5px; color: var(--paper-invert);
}
.pl-copy ul li i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); flex: none; }
.pl-media .mock { box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
/* Showcase screenshots show the FULL page — no 16:9 zoom-crop like the thumbnails */
.pl-media .mock-screen { aspect-ratio: auto; }
.pl-media .mock-screen > img { height: auto; object-fit: contain; }
.pl-count {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 15px; color: var(--muted-invert);
}
.pl-count b { color: var(--gold-soft); }

/* Carousel dot indicators (mobile only — created by JS, shown via media query) */
.pl-dots { display: none; }

/* Roadmap chips under showcase */
.sc-road { margin-top: clamp(70px, 9vw, 110px); }
.sc-road-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 44px; }
.sc-road-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-invert);
  border-radius: var(--r);
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform .55s var(--ease), border-color .5s, background .5s, box-shadow .55s var(--ease);
}
.sc-road-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-line);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.75);
}
/* cursor-follow spotlight */
.sc-road-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .5s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(192, 138, 45, 0.16), transparent 62%);
}
.sc-road-card:hover::before { opacity: 1; }
/* gold sweep across the top edge on hover */
.sc-road-card::after {
  content: "";
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.sc-road-card:hover::after { transform: scaleX(1); }

.sc-road-card .st {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 14px;
}
.st-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; position: relative; }
/* LIVE — green ping */
.st.live { color: #6cbf73; }
.st.live .st-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor;
  animation: ping 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.4); opacity: 0; } }
/* IN PROGRESS — soft blink */
.st.progress { color: var(--gold-soft); }
.st.progress .st-dot { animation: softblink 1.7s ease-in-out infinite; }
@keyframes softblink { 0%, 100% { opacity: 1; } 50% { opacity: .32; } }
/* UP NEXT & EXPLORING — hollow ring */
.st.next { color: var(--gold-soft); }
.st.explore { color: var(--muted-invert); }
.st.next .st-dot, .st.explore .st-dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

.sc-road-card h4 { font-family: var(--font-display); font-size: 21px; font-weight: 500; transition: color .4s; }
.sc-road-card:hover h4 { color: var(--gold-soft); }
.sc-road-card p { margin-top: 10px; color: var(--muted-invert); font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .st-dot, .st.live .st-dot::after, .st.progress .st-dot { animation: none !important; }
}

/* ------------------------------ Timeline -------------------------------- */
.timeline { position: relative; margin-top: 60px; }
/* growing progress rail */
.tl-rail { position: absolute; top: 14px; bottom: 14px; left: 190px; width: 2px; background: var(--line); }
.tl-fill {
  position: absolute; top: 14px; left: 190px; width: 2px;
  height: calc(100% - 28px);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  transform: scaleY(0); transform-origin: top;
  box-shadow: 0 0 16px rgba(161, 98, 7, 0.35);
}
.tl-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 78px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  position: relative;
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-node {
  position: absolute;
  left: 183px; top: 42px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--line-2);
  z-index: 2;
  transition: border-color .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.tl-item.active .tl-node {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-tint);
  transform: scale(1.05);
}
.tl-when { text-align: right; }
.tl-when .yr { font-family: var(--font-display); font-size: 20px; transition: color .4s; }
.tl-item.active .tl-when .yr { color: var(--gold); }
.tl-when .dur { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tl-body h3 { font-size: clamp(20px, 2.2vw, 26px); }
.tl-body .co { color: var(--gold); font-weight: 500; font-size: 15px; margin-top: 4px; }
.tl-body p { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.tl-tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.creds { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; }
.cred {
  border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
  background: var(--card);
}
.cred .ic { color: var(--gold); margin-bottom: 16px; }
.cred h4 { font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.2; }
.cred p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* --------------------------- Tech stack --------------------------------- */
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px,2.2vw,26px); }
.stack-cat {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px,3vw,38px); background: var(--card);
}
.stack-cat .h { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.stack-cat .h .ic { color: var(--gold); }
.stack-cat .h h3 { font-size: 20px; }
.stack-cat .items { display: flex; gap: 10px; flex-wrap: wrap; }
.stack-cat .items span {
  font-size: 14px; padding: 8px 14px; border-radius: 100px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.stack-cat .items span:hover { background: var(--ink); color: var(--paper-invert); transform: translateY(-2px); }

/* --------------------------- Testimonial -------------------------------- */
.quote { text-align: center; max-width: 940px; margin: 0 auto; }
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4.2vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 30px 0 0;
}
.quote blockquote em { color: var(--gold); font-style: italic; }
.quote .by { margin-top: 34px; font-size: 15px; color: var(--muted); }
.quote .by b { color: var(--ink); font-weight: 600; }

/* ------------------------------- CTA ------------------------------------ */
.cta { background: var(--obsidian); color: var(--paper-invert); position: relative; overflow: hidden; }
.cta .glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
  background: radial-gradient(circle, rgba(192,138,45,.22), transparent 70%);
  top: -260px; left: 50%; transform: translateX(-50%);
}
.cta-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.cta h2 { font-size: clamp(38px, 6.6vw, 84px); line-height: 1.0; }
.cta h2 em { font-style: italic; color: var(--gold-soft); }
.cta p { margin-top: 26px; color: var(--muted-invert); font-size: 18px; }
.cta-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-mail { margin-top: 30px; font-size: 14px; color: var(--muted-invert); }
.cta-mail a { color: var(--gold-soft); }

/* ------------------------------ Footer ---------------------------------- */
.footer { background: var(--obsidian); color: var(--paper-invert); border-top: 1px solid var(--line-invert); }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-block: clamp(56px, 7vw, 84px);
}
.footer .brand { color: var(--paper-invert); font-size: 24px; }
.footer .brand .mark { background: var(--paper-invert); color: var(--obsidian); }
.footer-blurb { margin-top: 20px; color: var(--muted-invert); font-size: 15px; max-width: 42ch; }
.footer-col h5 {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 18px; font-weight: 600;
}
.footer-col a { display: block; padding: 7px 0; color: var(--muted-invert); font-size: 15px; transition: color .3s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid var(--line-invert);
  padding-block: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13.5px; color: var(--muted-2); flex-wrap: wrap;
}

/* ------------------------------ Utilities ------------------------------- */
.dark-sec { color: var(--paper-invert); }
.mono { font-variant-numeric: tabular-nums; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 20px; max-width: 560px; }
  .hero-mock { transform: none; }
  .hero-float.f1 { left: -2%; }
  .hero-phone { width: clamp(128px, 22vw, 168px); right: 0; bottom: -8%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .svc-grid { grid-template-columns: 1fr; }
  .sc-stage { grid-template-columns: 1fr; }
  .sc-steps { min-height: 320px; }
  .sc-step { position: relative; }
  .sc-road-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .proc-grid, .creds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn.desktop { display: none; }
  .nav-burger { display: block; }
  .work-grid { grid-template-columns: 1fr; }
  .case.feature { grid-column: span 1; }
  .case.feature .case-media { aspect-ratio: 16/10; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: 1fr; }
  .tl-rail, .tl-fill { left: 7px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding-left: 40px; }
  .tl-node { left: 0; top: 40px; }
  .tl-when { text-align: left; display: flex; gap: 12px; align-items: baseline; }
  .tl-when .dur { margin-top: 0; }

  /* Pace Lodgix showcase → premium horizontal carousel (replaces the sticky deck).
     Native CSS scroll-snap does the swipe/snap; JS layers the 3D scale & overlap. */
  .pl-stack {
    margin-top: clamp(36px, 8vw, 56px);
    /* full-bleed to the viewport so peeking neighbours reach the screen edges */
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    display: flex;
    flex-wrap: nowrap;
    gap: 4vw;
    padding: 26px 10vw 30px;      /* 10vw lead/trail centres the first & last card */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    perspective: 1400px;
    scrollbar-width: none;
    position: relative;
  }
  .pl-stack::-webkit-scrollbar { display: none; }
  .pl-card {
    position: relative;
    top: auto;
    margin: 0;
    flex: 0 0 80vw;
    max-width: 80vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform-style: preserve-3d;
    will-change: transform, opacity;
  }
  .pl-card-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    height: 100%;
    padding: clamp(22px, 5vw, 30px);
    transform-origin: center center;
  }
  .pl-copy p { max-width: none; }

  /* dot indicators */
  .pl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
  }
  .pl-dot {
    width: 8px; height: 8px;
    padding: 0; border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    transition: background .35s var(--ease), width .35s var(--ease), border-radius .35s var(--ease);
  }
  .pl-dot.active { background: var(--gold-soft); width: 24px; border-radius: 5px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 { white-space: normal; font-size: clamp(38px, 12vw, 52px); }
  .proc-grid, .creds { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  /* Keep the signature hero composition on mobile: auto-scrolling phone + floating stat cards */
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .hero-phone {
    display: block;
    width: clamp(104px, 33vw, 132px);
    right: -2px;
    bottom: -22px;
    transform: rotate(3.5deg);
  }
  .hero-float {
    display: flex;
    padding: 10px 12px;
    gap: 9px;
    border-radius: 13px;
    transform: scale(.9);
    transform-origin: left center;
  }
  .hero-float .fi { width: 30px; height: 30px; border-radius: 9px; }
  .hero-float .fv { font-size: 15px; }
  .hero-float.f1 { top: 4px; left: -4px; }
  .hero-float.f3 { bottom: 84px; left: -4px; }   /* clears the phone (bottom-right) */

  /* "Shipping Next" roadmap → card-stack overlay deck on scroll (mobile only) */
  .sc-road-grid { display: block; margin-top: 30px; }
  .sc-road-card {
    position: sticky;
    top: calc(84px + var(--i, 0) * 16px);
    margin-bottom: clamp(20px, 5vw, 32px);
    /* opaque fill so each card fully overlays the one beneath as it rises */
    background: linear-gradient(150deg, #16130f 0%, #100e0c 100%);
    transform-origin: top center;
    transition: none;   /* let the scroll-scrub drive transform without lag */
    will-change: transform;
  }
  .sc-road-card:last-child { margin-bottom: 0; }
}
/* Very narrow phones: drop the floating cards to avoid crowding the dashboard, keep the phone */
@media (max-width: 400px) {
  .hero-float { display: none; }
}

/* =================== FULL-SCREEN IMAGE VIEWER (lightbox) ================= */
.lb {
  position: fixed;
  inset: 0;
  z-index: 12000;            /* above nav (1000) and the skip link (9999) */
  display: flex;
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.lb[hidden] { display: none; }
.lb.open { opacity: 1; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 7, 6, 0.94);
  backdrop-filter: blur(10px);
}
.lb-stage {
  position: relative;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(52px, 7vh, 84px) clamp(16px, 5vw, 72px) clamp(76px, 10vh, 104px);
  -webkit-overflow-scrolling: touch;
}
.lb-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  border-radius: 10px;
  background: #17130e;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9);
  cursor: zoom-in;
  transform: scale(.97);
  opacity: 0;
  transition: transform .38s var(--ease), opacity .38s var(--ease);
}
.lb.open .lb-img { transform: scale(1); opacity: 1; }
/* Actual-size mode: image renders at natural width and the stage scrolls */
.lb.zoomed .lb-stage { align-items: flex-start; justify-content: flex-start; }
.lb.zoomed .lb-img {
  max-width: none; max-height: none;
  width: auto;
  cursor: grab;
  margin: auto;
}
.lb.zoomed .lb-img.dragging { cursor: grabbing; }
.lb-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px clamp(16px, 4vw, 34px);
  background: linear-gradient(to top, rgba(8,7,6,.95), rgba(8,7,6,0));
  pointer-events: none;
}
/* At actual size the image scrolls under the bar — keep it readable */
.lb.zoomed .lb-bar {
  background: rgba(8,7,6,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.10);
}
.lb-btn[hidden] { display: none; }
.lb-caption {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--paper-invert);
  max-width: 70ch;
}
.lb-tools { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.lb-count { font-family: var(--font-sans); font-size: 13px; color: var(--muted-invert); }
.lb-btn {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  color: var(--paper-invert);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .3s, border-color .3s;
}
.lb-btn:hover { background: rgba(255,255,255,.16); border-color: var(--gold-soft); }
.lb-nav, .lb-close {
  position: absolute;
  z-index: 2;
  display: grid; place-items: center;
  color: var(--paper-invert);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
  line-height: 1;
}
.lb-nav {
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  font-size: 30px;
  padding-bottom: 4px;
}
.lb-nav.prev { left: clamp(10px, 2vw, 26px); }
.lb-nav.next { right: clamp(10px, 2vw, 26px); }
.lb-nav:hover { background: rgba(255,255,255,.15); border-color: var(--gold-soft); }
.lb-close {
  top: clamp(12px, 2.4vw, 26px); right: clamp(10px, 2vw, 26px);
  width: 42px; height: 42px;
  font-size: 26px;
  padding-bottom: 3px;
}
.lb-close:hover { background: rgba(255,255,255,.15); border-color: var(--gold-soft); transform: rotate(90deg); }
body.lb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .lb-nav { width: 40px; height: 40px; font-size: 26px; }
  .lb-caption { font-size: 12.5px; flex-basis: 100%; }
  .lb-bar { padding-bottom: 20px; }
}

/* ------------------------- Reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee { animation: none; }
}
