/* ===========================================================
   Alchemy Consulting Group — Site Stylesheet
   =========================================================== */

:root {
  --navy: #141414;
  --navy-deep: #000000;
  --navy-soft: #242424;
  --gold: #c9a227;
  --gold-soft: #e8cf7a;
  --ink: #1b1f27;
  --ink-light: #565f6e;
  --paper: #ffffff;
  --paper-tint: #f6f5f1;
  --border: #e6e3d8;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.10);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }

.text-gradient {
  background: linear-gradient(100deg, var(--gold-soft) 0%, var(--gold) 45%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientPan 6s ease-in-out infinite;
}
@keyframes gradientPan {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.eyebrow {
  position: relative;
  padding-left: 26px;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 18px; height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}

p { margin: 0 0 1em; color: var(--ink-light); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
}

.section--tint { background: var(--paper-tint); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,.78); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ---------- Scroll-reveal ----------
   Hidden state only applies once the "js" class (set by an early inline
   script) is present on <html>. If JavaScript fails to load or run,
   content stays visible by default — it never depends on JS to be seen. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.js .grid.reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.16,.8,.3,1), transform .6s cubic-bezier(.16,.8,.3,1);
}
.grid.reveal-group.in-view > * { opacity: 1; transform: translateY(0); }
.grid.reveal-group.in-view > *:nth-child(1) { transition-delay: .05s; }
.grid.reveal-group.in-view > *:nth-child(2) { transition-delay: .15s; }
.grid.reveal-group.in-view > *:nth-child(3) { transition-delay: .25s; }
.grid.reveal-group.in-view > *:nth-child(4) { transition-delay: .35s; }
.grid.reveal-group.in-view > *:nth-child(5) { transition-delay: .45s; }
.grid.reveal-group.in-view > *:nth-child(6) { transition-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .grid.reveal-group > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(201,162,39,.4); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  background: rgba(0,0,0,.98);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
  transition: padding .25s ease;
}
.site-header.scrolled .nav { padding: 11px 24px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.brand-mark {
  height: 38px; width: auto;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: 6px 2px;
  transition: color .15s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--gold);
  transition: right .25s cubic-bezier(.16,.8,.3,1);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 10px 22px; font-size: .88rem; background: var(--gold); color: var(--navy-deep); }
.nav-cta .btn:hover { background: var(--gold-soft); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 85% -10%, rgba(201,162,39,.20), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(201,162,39,.12), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  background-size: 140% 140%, 140% 140%, 100% 100%;
  animation: heroMesh 16s ease-in-out infinite;
  color: #fff;
  padding: 108px 0 0;
}
@keyframes heroMesh {
  0%, 100% { background-position: 0% 0%, 0% 100%, 0 0; }
  50% { background-position: 20% 15%, 15% 85%, 0 0; }
}

.hero-grid-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(700px 460px at 78% 20%, #000, transparent 75%);
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  opacity: .55;
}
.hero-blob.b1 {
  width: 280px; height: 280px; top: -60px; right: 8%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: floatY 9s ease-in-out infinite;
}
.hero-blob.b2 {
  width: 200px; height: 200px; bottom: 40px; left: 4%;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  animation: floatY 11s ease-in-out infinite reverse;
}
.hero-blob.b3 {
  width: 160px; height: 160px; top: 40%; right: 30%;
  background: radial-gradient(circle, #8a6a1a 0%, transparent 70%);
  animation: floatY 13s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -26px); }
}

.hero-graphic {
  position: absolute;
  top: -40px; right: -60px;
  width: 460px; height: 460px;
  opacity: .5;
  pointer-events: none;
}
.hero-graphic svg { width: 100%; height: 100%; }
.hero-graphic .spin-slow { animation: spinSlow 50s linear infinite; transform-origin: center; }
.hero-graphic .spin-slow-rev { animation: spinSlow 65s linear infinite reverse; transform-origin: center; }

.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-bottom: 64px; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px; border-radius: 999px;
  font-size: .8rem; letter-spacing: .04em; color: var(--gold-soft);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201,162,39,.6);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(201,162,39,.55); }
  70% { box-shadow: 0 0 0 8px rgba(201,162,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); }
}

.hero-stats {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  backdrop-filter: blur(6px);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-stats:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,.28); }
.hero-stats .stat b {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  color: var(--gold);
}
.hero-stats .stat span { font-size: .82rem; color: rgba(255,255,255,.72); }

/* ---------- Marquee ticker ---------- */
.marquee {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.15);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track span {
  font-family: "Playfair Display", serif;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
}
.marquee-track span em {
  font-style: normal; color: var(--gold); margin-right: 10px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* small page hero for interior pages */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(201,162,39,.16), transparent 65%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 84px 0 72px;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(600px 320px at 50% 0%, #000, transparent 75%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: .8rem; color: var(--gold-soft); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }

/* ---------- Abstract decorative graphics (used in place of stock photography) ---------- */
.abstract-graphic {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.abstract-graphic svg { width: 100%; height: 100%; }
.abstract-graphic .spin-slow { animation: spinSlow 40s linear infinite; transform-origin: center; }
.abstract-graphic .spin-slow-rev { animation: spinSlow 55s linear infinite reverse; transform-origin: center; }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.abstract-graphic .pulse-slow { animation: pulseSlow 4s ease-in-out infinite; transform-origin: center; }
@keyframes pulseSlow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Section divider ---------- */
.divider {
  height: 60px;
  background: var(--paper);
}
.divider--to-tint { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-tint) 100%); }
.divider--to-navy { background: linear-gradient(180deg, var(--paper) 0%, var(--navy) 100%); }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s cubic-bezier(.16,.8,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(10,22,38,.14), 0 0 0 1px rgba(201,162,39,.15);
  border-color: rgba(201,162,39,.35);
}

.card .icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card .icon svg { width: 22px; height: 22px; }
.card:hover .icon {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 8px 18px rgba(201,162,39,.3);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-row .stat b {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.7rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.stat-row .stat span { color: var(--ink-light); font-size: .88rem; letter-spacing: .02em; }

/* ---------- Radial progress ring (used for the 98% satisfaction stat) ---------- */
.stat-ring-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto 12px; }
.stat-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.stat-ring-wrap circle { fill: none; stroke-width: 8; }
.stat-ring-track { stroke: var(--border); }
.stat-ring-bar {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 345;
  /* Correct final value by default (via --ring-offset inline on the element) so the
     right percentage shows even if JS never runs; JS only adds the draw-in animation. */
  stroke-dashoffset: var(--ring-offset, 345);
  transition: stroke-dashoffset 1.6s cubic-bezier(.16,.8,.3,1);
}
.stat-ring-wrap .ring-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 1.7rem; color: var(--navy); font-weight: 700;
}
.section--navy .stat-ring-track { stroke: rgba(255,255,255,.15); }
.section--navy .ring-label { color: #fff; }

/* ---------- Decorative dashed ring behind hero numbers ---------- */
.stat { position: relative; }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3.4;
  border-radius: var(--radius);
  background:
    radial-gradient(220px 160px at 85% -10%, rgba(201,162,39,.35), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  transition: transform .35s ease;
}
.team-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: 1;
  pointer-events: none;
}
.team-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-card:hover .team-photo { transform: scale(1.03); }
.team-card .credentials {
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.team-meta {
  display: flex; gap: 18px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--ink-light);
}
.team-meta b { color: var(--navy); display: block; font-family: "Playfair Display", serif; font-size: 1.1rem; }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--ink-light);
  border-bottom: 1px dashed var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 9px;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.contact-item .icon {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--paper-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item b { color: var(--navy); display: block; font-size: .95rem; }
.contact-item span, .contact-item a { color: var(--ink-light); font-size: .92rem; }

form.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  font-size: .82rem; font-weight: 600; color: var(--navy);
  display: block; margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .92rem;
  background: var(--paper-tint);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .78rem; color: var(--ink-light); }
.form-status { font-size: .88rem; }
.form-status--ok { color: #1a7f4b; }
.form-status--error { color: #c0392b; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: .88rem; color: rgba(255,255,255,.65); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .88rem; max-width: 280px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: .8rem; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 10px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: #fff;
}
.social-row svg { width: 17px; height: 17px; }
.social-row a:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

.social-icons-inline { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.social-icons-inline a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-light); font-size: .92rem; }
.social-icons-inline svg { width: 15px; height: 15px; flex-shrink: 0; }
.social-icons-inline a:hover { color: var(--gold); }

.notice-banner {
  background: var(--paper-tint);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  color: var(--ink-light);
  font-size: .92rem;
}

/* ---------- Partner logos ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.partner-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  min-height: 100px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, border-color .2s ease;
}
.partner-tile:hover { transform: translateY(-3px); border-color: var(--gold); }
.partner-tile img { max-width: 100%; max-height: 56px; object-fit: contain; }
.partner-tile .partner-name-placeholder {
  color: var(--ink-light); font-weight: 600; font-size: .85rem; text-align: center;
}

/* ---------- Training calendar ---------- */
.calendar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calendar-head h3 { margin: 0; font-size: 1.15rem; }
.calendar-head button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.1rem; line-height: 1;
  transition: background .2s ease, border-color .2s ease;
}
.calendar-head button:hover { background: var(--paper-tint); border-color: var(--gold); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar-grid .dow {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-light); padding-bottom: 8px; text-transform: uppercase;
}
.calendar-grid .day { position: relative; padding: 10px 0; font-size: .88rem; border-radius: 8px; color: var(--ink); }
.calendar-grid .day.other-month { color: var(--border); }
.calendar-grid .day.today { background: var(--navy-deep); color: #fff; font-weight: 700; }
.calendar-grid .day .event-dot {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--paper-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .25s ease, border-color .25s ease;
}
.gallery-tile:hover { transform: translateY(-4px); border-color: var(--gold); }
.gallery-tile svg { width: 34px; height: 34px; color: var(--ink-light); }
.gallery-tile .tile-label { font-weight: 600; color: var(--navy); font-size: .92rem; text-align: center; padding: 0 18px; }
.gallery-tile .tile-sub { font-size: .75rem; color: var(--ink-light); letter-spacing: .03em; text-transform: uppercase; }

.gallery-tile.has-photo {
  padding: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}
.gallery-tile.has-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-tile.has-photo:hover img { transform: scale(1.06); }
.gallery-tile.has-photo .tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  color: #fff; font-weight: 600; font-size: .88rem; text-align: left;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-tile.has-photo { cursor: pointer; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
  background: rgba(10,10,12,.94);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.lightbox-close:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); transform: rotate(90deg); }
body.lightbox-open { overflow: hidden; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lightbox-nav:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-graphic { display: none; }
}

@media (max-width: 760px) {
  .hero-blob.b3 { display: none; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 36px 22px; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,.98); padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
  }
  body.nav-open .nav-cta { display: none; }
}
