/* ══════════════════════════════════════════════════════
   PREMIUM LAYER — grain, cursor, marquee, motion finish
   Loaded after styles.css on every page.
══════════════════════════════════════════════════════ */

/* ── 1. FILM GRAIN — full-viewport animated noise, the "shot on film" finish ── */
.grain {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  pointer-events: none;
  z-index: 2147483000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  opacity: 0.038;
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.4%); }
  50%  { transform: translate(1.2%, -1.8%); }
  75%  { transform: translate(-1.6%, -0.8%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; opacity: 0.028; }
}

/* ── 2. SCROLL PROGRESS — gold hairline across the very top ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 2147483001;
  background: linear-gradient(90deg, #E9C77B, var(--gold, #C4902A));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ── 3. CUSTOM CURSOR — gold dot + lagging ring (fine pointers only; JS-gated) ── */
html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor [role="button"] { cursor: none; }
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select { cursor: auto; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 2147483002;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--gold, #C4902A);
}
.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(196, 144, 42, 0.55);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s ease,
              border-color 0.35s ease,
              opacity 0.3s ease;
}
.cursor-ring.is-active {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(196, 144, 42, 0.10);
  border-color: rgba(196, 144, 42, 0.28);
}
.cursor-dot.is-hidden,
.cursor-ring.is-hidden { opacity: 0; }

/* ── 4. MARQUEE DIVIDER — huge outlined serif ticker between sections ── */
.marquee-divider {
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0;
  background: var(--ink, #0A0A09);
  border-top: 1px solid var(--rule-2, rgba(237, 235, 230, 0.08));
  border-bottom: 1px solid var(--rule-2, rgba(237, 235, 230, 0.08));
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
  will-change: transform;
}
.marquee-chunk {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
  white-space: nowrap;
}
.marquee-word {
  font-family: var(--ff-serif, "DM Serif Display", serif);
  font-style: italic;
  font-size: clamp(56px, 9vw, 136px);
  line-height: 1;
  padding-right: 0.55em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 235, 230, 0.22);
}
.marquee-word--gold {
  -webkit-text-stroke: 0;
  color: var(--gold, #C4902A);
  background: linear-gradient(180deg, #E9C77B 0%, var(--gold, #C4902A) 55%, #A87A1E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marquee-dot {
  font-size: clamp(20px, 3vw, 34px);
  color: var(--gold, #C4902A);
  -webkit-text-stroke: 0;
  padding-right: 0.9em;
  align-self: center;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ── 5. IMAGE FINISH — cinematic clip reveal on portfolio media.
       These images also transition `transform` for their hover zoom, and CSS
       transitions don't merge across rules — so each set re-declares the full
       list (reveal + its own zoom timing) at higher specificity. ── */
.img-reveal {
  clip-path: inset(10% 7% 10% 7% round 12px);
  opacity: 0;
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s ease;
}
.pf-thumb img.img-reveal {
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s ease,
              transform 0.4s ease,
              filter 0.4s ease;
}
.cs4-card-img.img-reveal {
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s ease,
              transform 0.3s ease;
}
.img-reveal.is-inview {
  clip-path: inset(0 0 0 0 round 0px);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .img-reveal { clip-path: none; opacity: 1; transition: none; }
}

/* ── 6. BUTTON LABEL ROLL — text flips up on hover (JS wraps pure-text CTAs) ── */
.btn-flip {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.btn-flip > span {
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-flip > span:last-child {
  position: absolute;
  inset: 0;
  transform: translateY(110%);
}
a:hover > .btn-flip > span:first-child,
button:hover > .btn-flip > span:first-child { transform: translateY(-110%); }
a:hover > .btn-flip > span:last-child,
button:hover > .btn-flip > span:last-child { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn-flip > span { transition: none; }
}

/* ── 7. MAGNETIC WRAPPER — JS moves this, inner button keeps its own hover ── */
.magnet {
  display: inline-block;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 8. NAV AUTO-HIDE — slips away scrolling down, returns scrolling up.
       .nav centers itself with translateX(-50%); keep it in every state. ── */
.nav {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              background var(--t2, 0.3s ease),
              box-shadow var(--t2, 0.3s ease),
              backdrop-filter var(--t2, 0.3s ease);
}
.nav.nav--hidden { transform: translateX(-50%) translateY(calc(-100% - 24px)); }

/* ── 9. FOCUS RING — visible keyboard focus in brand gold ── */
:focus-visible {
  outline: 2px solid rgba(196, 144, 42, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ══════════════════════════════════════════════════════
   SUPERPOWER DNA — aurora glows, member card, bottom bar
══════════════════════════════════════════════════════ */

/* ── 10. AURORA — warm gold washes drifting behind dark sections ── */
.cta-section { position: relative; overflow: hidden; }
.cta-section .container { position: relative; z-index: 1; }

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  width: 58vw; height: 58vw;
  max-width: 840px; max-height: 840px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.11;
  /* Only transform animates (blur radius itself is constant), so the GPU
     can blur once and just recomposite the transformed result each frame
     — will-change keeps that cached layer around instead of the browser
     repromoting it every cycle. */
  will-change: transform;
}
/* Paused off-screen: invisible either way, so nothing about how this
   looks or behaves on screen changes — it just stops spending GPU time
   animating something nobody can see. */
.aurora.is-offscreen::before,
.aurora.is-offscreen::after {
  animation-play-state: paused;
}
.aurora::before {
  background: radial-gradient(circle, rgba(196, 144, 42, 0.55), transparent 65%);
  top: -20%; left: -14%;
  animation: aurora-a 22s ease-in-out infinite alternate;
}
.aurora::after {
  background: radial-gradient(circle, rgba(233, 199, 123, 0.42), transparent 65%);
  bottom: -24%; right: -16%;
  animation: aurora-b 27s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vw, 7vh) scale(1.16); }
}
@keyframes aurora-b {
  from { transform: translate(0, 0) scale(1.12); }
  to   { transform: translate(-8vw, -7vh) scale(0.94); }
}
@media (max-width: 768px) {
  .aurora::before, .aurora::after { filter: blur(64px); opacity: 0.09; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after { animation: none; }
}

/* ── 11. MEMBER CARD — 3D gold client pass, tilts to the cursor ── */
.sp-card-wrap {
  perspective: 1100px;
  display: flex;
  justify-content: center;
  margin: 0 auto 56px;
  width: fit-content;
}
.sp-card {
  position: relative;
  width: min(370px, 84vw);
  aspect-ratio: 1.586;
  border-radius: 20px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background:
    repeating-linear-gradient(115deg,
      rgba(233, 199, 123, 0.045) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #1A1712 0%, #0C0B09 46%, #1C1710 100%);
  border: 1px solid rgba(196, 144, 42, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(233, 199, 123, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 34px 90px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(196, 144, 42, 0.10);
  padding: clamp(20px, 6vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  user-select: none;
}
.sp-card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.07) 47%,
    rgba(233, 199, 123, 0.16) 51%,
    transparent 60%);
  background-size: 260% 100%;
  background-position: calc(var(--shine, 50) * 1%) 0;
}
.sp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.sp-card-logo {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(24px, 6.4vw, 30px);
  line-height: 1;
  background: linear-gradient(180deg, #E9C77B 0%, var(--gold, #C4902A) 55%, #A87A1E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sp-card-chip {
  width: 42px; height: 31px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, transparent 44%, rgba(0,0,0,0.35) 45%, transparent 56%),
    linear-gradient(90deg, transparent 44%, rgba(0,0,0,0.35) 45%, transparent 56%),
    linear-gradient(135deg, #E9C77B, #C4902A 55%, #9E7420);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.5);
}
.sp-card-mid {
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(237, 235, 230, 0.86);
}
.sp-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(237, 235, 230, 0.45);
  text-transform: uppercase;
}
/* Touch devices: gentle idle sway + looping shine instead of tilt */
@media (pointer: coarse) {
  .sp-card { animation: sp-card-sway 7s ease-in-out infinite alternate; }
  .sp-card-shine { animation: sp-card-shine 5.5s ease-in-out infinite; }
}
@keyframes sp-card-sway {
  from { transform: rotateX(6deg) rotateY(-7deg); }
  to   { transform: rotateX(-4deg) rotateY(8deg); }
}
@keyframes sp-card-shine {
  0%, 20%  { background-position: 130% 0; }
  60%, 100% { background-position: -30% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-card, .sp-card-shine { animation: none; }
}

/* ── 12. STAT GLOW — numbers radiate like backlit signage ── */
.stat-number {
  text-shadow:
    0 0 70px rgba(196, 144, 42, 0.45),
    0 0 24px rgba(196, 144, 42, 0.18);
}

/* ── 13. BOTTOM BAR — floating glass conversion pill ── */
.sp-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 890;
  transform: translateX(-50%) translateY(160%);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(620px, calc(100vw - 32px));
  padding: 10px 12px 10px 24px;
  border-radius: 100px;
  background: rgba(10, 10, 9, 0.74);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.sp-bar.is-shown {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.sp-bar-text {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(237, 235, 230, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-bar-text strong { color: var(--d1, #EDEBE6); font-weight: 600; }
.sp-bar-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cream, #F5F1E8);
  background: var(--gold, #C4902A);
  padding: 10px 20px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.sp-bar-btn:hover { background: var(--gold-deep, #A87A1E); }
.sp-bar-close {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237, 235, 230, 0.45);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}
.sp-bar-close:hover { color: var(--d1, #EDEBE6); background: rgba(255, 255, 255, 0.07); }
/* Below 800px the bar spans wide enough to reach the chat bubble — stack above it */
@media (max-width: 800px) {
  .sp-bar { bottom: 88px; }
}
@media (max-width: 560px) {
  .sp-bar { gap: 10px; padding-left: 18px; }
  .sp-bar-text .sp-bar-sub { display: none; }
}

/* ── 14. LEGIBILITY FALLBACKS — no browser may ever render invisible text ── */
/* Outlined marquee words: browsers without text-stroke get a soft solid fill */
@supports not (-webkit-text-stroke: 1px black) {
  .marquee-word { color: rgba(237, 235, 230, 0.22); }
}
/* Gradient-clipped headlines: browsers without background-clip:text
   fall back to their solid `color` value instead of transparent fill */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title em,
  .section-title em,
  .cta-title em,
  .cs4-main-title em,
  .csp-cta-title em,
  .marquee-word--gold,
  .sp-card-logo {
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}
/* 3D card: browsers without aspect-ratio get an explicit height */
@supports not (aspect-ratio: 1) {
  .sp-card { height: 232px; }
}

/* ── 15. FOOTER DODGE — floating chat bubble & bottom bar clear the footer
       so the social icons stay clickable. Open inquiry card never hides. ── */
.fiq {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
body.at-footer .fiq:not(.fiq--open) {
  transform: translateY(140px);
  opacity: 0;
}
body.at-footer .fiq:not(.fiq--open) .fiq-trigger { pointer-events: none; }
body.at-footer .sp-bar {
  transform: translateX(-50%) translateY(160%);
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   16. HOW IT WORKS CAROUSEL — white 3D-tilt cards on a
       dark cursor-spotlight field. Same index-based
       translateX + disabled-at-ends mechanic as the .cs4
       case-study carousel, so it shares one proven pattern
       instead of inventing a second carousel implementation.
══════════════════════════════════════════════════════ */
.hiw-wrap {
  position: relative;
  padding: 4px 0 clamp(48px, 6vw, 72px);
}
.hiw-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(560px circle at var(--hiw-x, 50%) var(--hiw-y, 20%),
              rgba(196, 144, 42, 0.07), transparent 75%);
}
.hiw-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.hiw-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(237, 235, 230, 0.05);
  border: 1px solid rgba(237, 235, 230, 0.12);
  color: var(--d1);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.hiw-arrow:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
}
.hiw-arrow:active:not(:disabled) { transform: scale(0.92); }
.hiw-arrow:disabled { opacity: 0.28; cursor: default; }

/* Genuinely native-scrollable viewport: trackpad two-finger swipe, a
   mouse's horizontal/tilt wheel, Shift+wheel, and touch all move this for
   free via the browser's own scroll physics — no JS wheel-event handling
   needed. Arrow buttons and keyboard just call scrollBy() on top of it. */
.hiw-viewport {
  /* Single source of truth for the track's horizontal padding, shared with
     scroll-padding-left below — card 1's scroll-snap-align:start point is
     its own left edge, which sits past .hiw-track's padding. Without
     telling the snap machinery that the padding IS the start edge, browsers
     treat scrollLeft:0 (padding visible, card flush with nothing) as an
     invalid rest position and force-jump straight past it on load, cropping
     the intended left breathing room entirely. */
  --hiw-pad: clamp(24px, 5vw, 64px);
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  z-index: 1;
  /* proximity, not mandatory: mandatory forces a SYNCHRONOUS snap-to-nearest
     on every scrollLeft write, including the wheel handler's own small
     per-tick increments below — each tick was getting silently snapped
     back before the next one arrived, so wheel-driven scrolling never
     accumulated. proximity only snaps once the browser decides the
     scroll has settled, so incremental writes stick as expected. */
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--hiw-pad);
  /* No CSS scroll-behavior here on purpose: the button/keyboard handlers
     in premium.js pass an explicit behavior:'smooth' to scrollBy(), which
     overrides CSS regardless — so leaving this at its 'auto' default
     keeps the wheel handler's plain scrollLeft assignment (below) instant,
     matching native trackpad feel instead of stacking a CSS-eased
     animation on top of every incoming wheel tick. */
  /* overscroll-behavior contains chaining once a scrollable axis hits its
     boundary, but this element has ZERO vertical range to begin with
     (overflow-y:hidden) — several browsers don't treat a non-scrollable
     axis as eligible for containment at all, so on its own this did NOT
     stop the vertical component of a diagonal gesture from bleeding to
     the page (confirmed on a real trackpad). Kept as a helpful backstop
     for the horizontal axis; the actual vertical-bleed fix is the JS
     wheel handler in premium.js. */
  overscroll-behavior: contain;
  scrollbar-width: none;       /* Firefox — custom arrow buttons replace it */
  -ms-overflow-style: none;    /* old Edge/IE */
}
.hiw-viewport::-webkit-scrollbar { display: none; }

.hiw-track {
  display: flex;
  gap: clamp(20px, 2.4vw, 32px);
  padding: 10px var(--hiw-pad) 28px;
  outline: none;
}

.hiw-card {
  flex: 0 0 auto;
  width: min(360px, 78vw);
  perspective: 1400px;
  scroll-snap-align: start;
}
.hiw-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px, 3vw, 38px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.10);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.hiw-card:hover .hiw-card-inner {
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.45), 0 10px 30px rgba(0, 0, 0, 0.14);
}

.hiw-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #F4F2ED;
  color: var(--l1);
  margin-bottom: 22px;
  transition: background 0.4s ease, color 0.4s ease;
  transform: translateZ(30px);
}
.hiw-card:hover .hiw-icon { background: var(--gold); color: var(--cream); }

.hiw-num {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--l3);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  transform: translateZ(20px);
}
.hiw-name {
  font-family: var(--ff-sans);
  font-size: clamp(21px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--l1);
  margin-bottom: 12px;
  transform: translateZ(20px);
}
.hiw-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--l2);
  font-weight: 400;
  margin-bottom: 20px;
  transform: translateZ(10px);
}
.hiw-tag {
  margin-top: auto;
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(196, 144, 42, 0.35);
  border-radius: 100px;
  padding: 6px 14px;
  transform: translateZ(20px);
}

@media (max-width: 640px) {
  .hiw-card { width: min(320px, 82vw); }
  .hiw-card-inner { min-height: 340px; padding: 26px 24px; }
  .hiw-desc { font-size: 14px; }
}
/* Touch devices: no cursor to tilt toward — keep cards flat */
@media (pointer: coarse) {
  .hiw-card-inner { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-card-inner { transition: none; }
  .hiw-viewport { scroll-behavior: auto; }
}
