/* ==========================================================================
   The Prodigal Developers — style.css
   Theme: black & gold, fractured-geometry indie luxe
   ========================================================================== */

:root {
  --bg: #141110;
  --bg-soft: #1b1714;
  --bg-card: rgba(30, 25, 20, 0.72);
  --line: rgba(212, 168, 83, 0.18);

  --gold: #d4a853;
  --gold-bright: #f5d76b;
  --gold-deep: #9c7226;
  --gold-grad: linear-gradient(135deg, #f7e08a 0%, #e9c258 30%, #c9973c 60%, #f2d879 100%);

  --ink: #efe8da;
  --ink-dim: #b3a893;
  --ink-faint: #857a66;

  --font-display: "Chakra Petch", "Sora", sans-serif;
  --font-body: "Sora", system-ui, sans-serif;

  --nav-h: 76px;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--gold); color: #141110; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.text-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Procedural background canvas ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold-grad);
  color: #1a1410;
  box-shadow: 0 6px 24px rgba(212, 168, 83, 0.25);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(212, 168, 83, 0.4);
}

.btn--ghost {
  border: 1px solid rgba(212, 168, 83, 0.45);
  color: var(--gold);
  background: rgba(212, 168, 83, 0.05);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  background: rgba(212, 168, 83, 0.12);
  border-color: var(--gold);
}

.btn--block { width: 100%; }
.btn--nav { padding: 0.55rem 1.35rem; font-size: 0.85rem; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s, height 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(18, 15, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  height: 64px;
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.navbar__logo { height: 40px; width: auto; filter: drop-shadow(0 2px 8px rgba(212, 168, 83, 0.35)); }
.navbar__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.navbar__name em { font-style: normal; color: var(--gold); }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.navbar__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dim);
  padding: 0.35rem 0;
  transition: color 0.25s;
}
.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.navbar__link:hover,
.navbar__link.is-active { color: var(--ink); }
.navbar__link:hover::after,
.navbar__link.is-active::after { transform: scaleX(1); }

.navbar__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold);
  font-size: 1.15rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
  /* landing content is decorative/interactive — not selectable */
  -webkit-user-select: none;
  user-select: none;
}
.hero img { -webkit-user-drag: none; user-drag: none; }

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* logo: static, cropped art, quantum-fragment hover */
.hero__logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.8rem;
  line-height: 0;
}
.hero__logo {
  height: clamp(150px, 22vw, 250px);
  max-width: 90vw;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 30px rgba(212, 168, 83, 0.45));
  transition: filter 0.4s var(--ease-out);
}
.hero__logo-wrap:hover .hero__logo {
  filter: drop-shadow(0 6px 34px rgba(212, 168, 83, 0.7)) brightness(1.08);
}

/* fragment copies of the logo — generated by main.js; each shard activates
   (drifts out, glows, jitters) only when the cursor is near it */
.frag {
  position: absolute;
  inset: 0;
  background: url("../assets/Logo-A-cropped.png") center / 100% 100% no-repeat;
  opacity: 0;
  transform: translate(0, 0) rotate(0deg);
  transition: transform 0.22s ease-out, opacity 0.18s ease;
  pointer-events: none;
  will-change: transform, opacity;
  /* distortion + glow live on the shards themselves, so only the affected
     region ripples/glows — glow strength follows shard visibility */
  filter: url(#quantum-distort) drop-shadow(0 0 14px rgba(245, 215, 107, 0.45)) brightness(1.25);
}
.frag.is-live {
  animation: quantum-jitter var(--fd, 1.6s) ease-in-out infinite;
}
/* jitter uses `translate` so it composes with the JS-driven `transform` */
@keyframes quantum-jitter {
  0%, 100% { translate: 0 0; }
  18% { translate: 1.5px -1px; }
  34% { translate: -1px 1.5px; }
  52% { translate: 2px 0.5px; }
  70% { translate: -1.5px -1px; }
  86% { translate: 0.5px 1.5px; }
}

/* interactive particle layer */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__kicker::before,
.hero__kicker::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__title-line { display: block; }
.hero__title-line--gold { min-height: 1.2em; }

/* rotating word */
.word-rotator {
  display: inline-grid;
  text-align: center;
}
.word-rotator__word {
  grid-area: 1 / 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.6em) rotateX(60deg);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  filter: drop-shadow(0 4px 18px rgba(212, 168, 83, 0.35));
}
.word-rotator__word.is-current {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}
.word-rotator__word.is-leaving {
  opacity: 0;
  transform: translateY(-0.6em) rotateX(-60deg);
}

.hero__sub {
  max-width: 560px;
  margin-top: 1.6rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.hero__scroll i { animation: scroll-bob 1.8s ease-in-out infinite; color: var(--gold); }
.hero__scroll:hover { color: var(--gold); }
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(7px); opacity: 0.5; }
}

/* floating parallax shards */
.hero__shards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shard {
  position: absolute;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.22), rgba(212, 168, 83, 0.02));
  border: 1px solid rgba(212, 168, 83, 0.28);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: shard-drift 9s ease-in-out infinite;
  will-change: transform;
}
.shard--1 { width: 90px;  height: 90px;  top: 18%; left: 8%;  animation-delay: 0s;    }
.shard--2 { width: 46px;  height: 46px;  top: 30%; left: 20%; animation-delay: -2.5s; clip-path: polygon(0 0, 100% 30%, 40% 100%); }
.shard--3 { width: 120px; height: 120px; top: 62%; left: 12%; animation-delay: -5s;   clip-path: polygon(20% 0, 100% 40%, 50% 100%, 0 70%); }
.shard--4 { width: 55px;  height: 55px;  top: 22%; right: 12%; left: auto; animation-delay: -1.2s; }
.shard--5 { width: 130px; height: 130px; top: 58%; right: 7%;  left: auto; animation-delay: -3.8s; clip-path: polygon(0 20%, 80% 0, 100% 80%, 30% 100%); }
.shard--6 { width: 40px;  height: 40px;  top: 76%; right: 24%; left: auto; animation-delay: -6.4s; clip-path: polygon(0 0, 100% 30%, 40% 100%); }
.shard--7 { width: 70px;  height: 70px;  top: 42%; left: 4%;  animation-delay: -4.2s; clip-path: polygon(0 0, 100% 20%, 60% 100%); }
.shard--8 { width: 34px;  height: 34px;  top: 12%; left: 34%; animation-delay: -7.1s; }
.shard--9 { width: 95px;  height: 95px;  top: 12%; right: 28%; left: auto; animation-delay: -2s;   clip-path: polygon(30% 0, 100% 60%, 20% 100%, 0 40%); }
.shard--10 { width: 52px; height: 52px;  top: 68%; right: 42%; left: auto; animation-delay: -5.5s; clip-path: polygon(0 30%, 80% 0, 100% 100%); }
@keyframes shard-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(8deg); }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { position: relative; padding: 7rem 0; }

.section__head { text-align: center; margin-bottom: 4rem; }
.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section__kicker i { font-size: 0.6rem; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.section__subtitle {
  margin-top: 1rem;
  color: var(--ink-dim);
  font-weight: 300;
  max-width: 640px;
  margin-inline: auto;
}

/* subtle darkened panel behind alternate sections so canvas shows through nicely */
.about, .contact { background: linear-gradient(180deg, rgba(20, 17, 16, 0) 0%, rgba(16, 13, 11, 0.88) 12%, rgba(16, 13, 11, 0.88) 88%, rgba(20, 17, 16, 0) 100%); }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 1.4rem;
  color: var(--ink);
}
.about__lead strong { color: var(--gold); font-weight: 600; }
.about__text p:not(.about__lead) { color: var(--ink-dim); margin-bottom: 1.2rem; font-weight: 300; }

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 83, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 168, 83, 0.12) inset;
}
.value-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.value-card p { font-size: 0.88rem; color: var(--ink-dim); font-weight: 300; line-height: 1.6; }

/* ==========================================================================
   Royal Flush
   ========================================================================== */
.royal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Royal Flush logo as the section heading */
.royal__logo-title { line-height: 0; }
.royal__logo {
  width: min(560px, 86vw);
  margin-inline: auto;
  /* the PNG has generous transparent padding — pull it in proportionally,
     keeping a little more room below so the subtitle doesn't crowd the glow */
  margin-top: calc(min(560px, 86vw) * -0.15);
  margin-bottom: calc(min(560px, 86vw) * -0.15);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 22px rgba(212, 164, 55, 0.35));
}

/* crimson table glow behind the section, echoing the game's palette */
.royal {
  background: radial-gradient(720px 420px at 30% 55%, rgba(110, 13, 22, 0.28), transparent 70%);
}

/* ---- Royal Flush foil card "shader" (ported from the game site) ----
   Base art + two animated foil gradients alpha-masked by the card's
   gold/accent mask textures, mirroring the game's card shader. */
:root {
  --rf-gold-primary: #88622a;
  --rf-gold-glare: #ffef89;
  --rf-gold-mid: #d4a437;
  --rf-gold-foil: linear-gradient(100deg,
      var(--rf-gold-primary) 0%,
      var(--rf-gold-mid) 22%,
      var(--rf-gold-glare) 42%,
      #fffdf0 50%,
      var(--rf-gold-glare) 58%,
      var(--rf-gold-mid) 78%,
      var(--rf-gold-primary) 100%);
  --foil-spade:   linear-gradient(100deg, #e4572e 0%, #f17957 22%, #ff9c80 42%, #ffe9e0 50%, #ff9c80 58%, #f17957 78%, #e4572e 100%);
  --foil-heart:   linear-gradient(100deg, #c1121f 0%, #e04954 22%, #ff8089 42%, #ffe6e8 50%, #ff8089 58%, #e04954 78%, #c1121f 100%);
  --foil-diamond: linear-gradient(100deg, #2d6cdf 0%, #568cef 22%, #80adff 42%, #e6f0ff 50%, #80adff 58%, #568cef 78%, #2d6cdf 100%);
  --foil-club:    linear-gradient(100deg, #6a4c93 0%, #9772c9 22%, #c499ff 42%, #f0e6ff 50%, #c499ff 58%, #9772c9 78%, #6a4c93 100%);
}
@keyframes goldSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -60% 0; }
}

/* card fan */
.royal__cards { display: flex; justify-content: center; }
.card-fan {
  position: relative;
  width: 220px;
  height: 330px;
}
.rfcard {
  --spread: calc((var(--i) - 2) * 14deg);
  --shift: calc((var(--i) - 2) * 44px);
  --sink: 0px;
  --accent-foil: var(--foil-club);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: translateX(var(--shift)) rotate(var(--spread)) translateY(var(--sink));
  transform-origin: 50% 120%;
  transition: transform 0.45s var(--ease-out), filter 0.45s;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  cursor: pointer;
  /* silhouette mask clips the whole layer stack to the card shape */
  -webkit-mask: url('/royal-flush/assets/cards/dark-overlay.png') center / 100% 100% no-repeat;
          mask: url('/royal-flush/assets/cards/dark-overlay.png') center / 100% 100% no-repeat;
}
.rfcard:nth-child(1), .rfcard:nth-child(5) { --sink: 20px; }
.rfcard:nth-child(2), .rfcard:nth-child(4) { --sink: 10px; }
.rfcard:hover {
  transform: translateX(var(--shift)) rotate(var(--spread)) translateY(-26px) scale(1.06);
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(212, 164, 55, 0.35));
  z-index: 10;
}
.rfcard__base {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7; /* reserves space so lazy-loading triggers before paint */
}
.rfcard__gold,
.rfcard__accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 250% auto;
  -webkit-mask: var(--mask) center / 100% 100% no-repeat;
          mask: var(--mask) center / 100% 100% no-repeat;
}
.rfcard--spade   { --accent-foil: var(--foil-spade); }
.rfcard--heart   { --accent-foil: var(--foil-heart); }
.rfcard--diamond { --accent-foil: var(--foil-diamond); }
.rfcard--club    { --accent-foil: var(--foil-club); }
.rfcard__accent {
  z-index: 1;
  background-image: var(--accent-foil);
  animation: goldSweep 9s linear infinite reverse;
}
.rfcard__gold {
  z-index: 2;
  background-image: var(--rf-gold-foil);
  animation: goldSweep 7s linear infinite;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.08);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 215, 107, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(245, 215, 107, 0); }
}

/* panel keeps the copy readable over the geometric background */
.royal__info {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.royal__desc { color: var(--ink-dim); font-weight: 300; margin-bottom: 2rem; }
.royal__desc strong { color: var(--ink); font-weight: 600; }

.royal__features { display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 2.4rem; }
.royal__features li { display: flex; gap: 1.1rem; align-items: flex-start; }
.royal__features li > i {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--gold);
  margin-top: 3px;
}
.royal__features h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.royal__features p { font-size: 0.9rem; color: var(--ink-dim); font-weight: 300; }

.royal__cta { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.royal__cta-note { font-size: 0.82rem; color: var(--ink-faint); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__email-inline {
  color: var(--gold);
  border-bottom: 1px dashed rgba(212, 168, 83, 0.5);
  transition: color 0.25s, border-color 0.25s;
}
.contact__email-inline:hover { color: var(--gold-bright); border-bottom-style: solid; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 168, 83, 0.5);
  box-shadow: var(--shadow);
}
.contact-card--featured {
  border-color: rgba(212, 168, 83, 0.55);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.09), rgba(30, 25, 20, 0.72) 45%);
}
.contact-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #1a1410;
  background: var(--gold-grad);
  box-shadow: 0 8px 22px rgba(212, 168, 83, 0.3);
  margin-bottom: 1.3rem;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.contact-card p {
  font-size: 0.9rem;
  color: var(--ink-dim);
  font-weight: 300;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.contact__socials { text-align: center; margin-top: 4rem; }
.contact__socials > p {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-bottom: 1.1rem;
}
.socials { display: flex; justify-content: center; gap: 0.9rem; }
.socials__link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 168, 83, 0.35);
  color: var(--gold);
  font-size: 1.05rem;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.socials__link:hover {
  transform: translateY(-4px);
  background: var(--gold-grad);
  color: #1a1410;
  border-color: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(14, 11, 9, 0.92);
  backdrop-filter: blur(8px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}
.footer__logo { height: 56px; width: auto; margin-bottom: 1rem; }
.footer__tagline { color: var(--ink-dim); font-size: 0.9rem; font-weight: 300; }

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer__nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__nav a, .footer__contact > a {
  color: var(--ink-dim);
  font-size: 0.92rem;
  transition: color 0.25s, transform 0.25s;
  width: fit-content;
}
.footer__nav a:hover, .footer__contact > a:hover { color: var(--gold); }
.footer__contact > a { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.2rem; }
.socials--footer { justify-content: flex-start; }
.socials--footer .socials__link { width: 40px; height: 40px; font-size: 0.9rem; }

.footer__bar { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.footer__made i { color: var(--gold); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out) var(--d, 0ms), transform 0.7s var(--ease-out) var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-line span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* two-column royal grid: shrink the fan so rotated cards stay inside the column */
@media (min-width: 981px) and (max-width: 1300px) {
  .card-fan { transform: scale(0.8); }
}

@media (max-width: 980px) {
  .about__grid, .royal__grid { grid-template-columns: 1fr; gap: 3rem; }
  .royal__cards { order: -1; }
  .contact__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer__inner { grid-template-columns: 1fr; gap: 2.2rem; text-align: left; }
}

@media (max-width: 820px) {
  .navbar__toggle { display: grid; place-items: center; }
  .navbar__name { display: none; }
  .navbar__menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(16, 13, 11, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .navbar__menu.is-open { transform: translateX(0); }
  .navbar__link { font-size: 1.1rem; }

  .section { padding: 5rem 0; }
  .hero__actions .btn { width: 100%; }
  .card-fan { transform: scale(0.85); }
}

@media (max-width: 480px) {
  .about__values { grid-template-columns: 1fr; }
  .card-fan { transform: scale(0.72); }
  .hero__kicker { letter-spacing: 0.28em; }
  .hero__kicker::before, .hero__kicker::after { width: 26px; }
}
