/* ============================================================
   Shared decoration: shaped hero, rings, arches, dots, bobbing.
   Used by the inner pages (the homepage has its own v2 set).
   ============================================================ */

/* ---------- shaped hero ---------- */

.hero-shaped {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #031418;
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(6.5rem, 11vw, 9rem);
}
.hero-shaped .hs-photo {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: grayscale(30%);
}
.hero-shaped::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(50% 70% at 70% 100%, rgba(23, 184, 196, 0.18), transparent 60%);
}
.hs-blob { position: absolute; z-index: -2; left: -8%; top: -12%; width: 66%; height: 130%; }
.hs-blob-2 { position: absolute; z-index: -2; right: -10%; bottom: -40%; width: 44%; color: rgba(212, 175, 55, 0.14); }
.hs-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 0;
  width: 100%;
  height: clamp(50px, 7vw, 100px);
  display: block;
}
.hs-wave path { fill: var(--paper); }
.hero-shaped .container { position: relative; z-index: 1; }
.hero-shaped h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-shaped .hero-lede { color: rgba(255, 255, 255, 0.8); }
.hero-shaped .eyebrow { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.hero-shaped .btn-outline-brand { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.hero-shaped .btn-outline-brand:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }
.hero-shaped .hero-trust { border-top-color: rgba(255, 255, 255, 0.2); }
.hero-shaped .hero-trust div strong { color: #fff; }
.hero-shaped .hero-trust div span { color: rgba(255, 255, 255, 0.62); }
.hero-shaped .text-gradient {
  background: linear-gradient(120deg, #5fe0e8 0%, var(--brand-cyan) 40%, var(--brand-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-shaped--center { text-align: center; }
.hero-shaped--center .hero-lede { margin-left: auto; margin-right: auto; }

/* hand-drawn underline that draws itself */
.dc-underline { position: relative; white-space: nowrap; }
.dc-underline svg { position: absolute; left: 0; bottom: -0.14em; width: 100%; height: 0.32em; color: var(--brand-pink); overflow: visible; }
.dc-underline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dc-draw 1.2s 0.6s var(--ease-out) forwards; }
@keyframes dc-draw { to { stroke-dashoffset: 0; } }

/* ---------- arch photo stage (hero right column) ---------- */

.dc-arch-stage { position: relative; height: 440px; max-width: 480px; margin-left: auto; }
.dc-arch-frame {
  position: absolute;
  inset: 0 8% 0 8%;
  border-radius: 50% 50% 32px 32px / 50% 50% 32px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.dc-arch-frame::before {
  content: "";
  position: absolute;
  inset: 12px 12px auto 12px;
  height: 58%;
  border-radius: 50% 50% 0 0 / 82% 82% 0 0;
  border: 1.5px dashed rgba(212, 175, 55, 0.6);
  border-bottom: 0;
}
.dc-arch-photo {
  position: absolute;
  inset: 24px 24px 0 24px;
  border-radius: 50% 50% 26px 26px / 48% 48% 26px 26px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.dc-arch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 18px 18px 18px 5px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  font-size: 0.82rem;
}
.dc-chip strong { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.dc-chip span.muted { color: var(--muted); }
.dc-chip-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--gradient-brand);
  color: #fff;
}
.dc-chip-icon--gold { background: linear-gradient(150deg, #e2c25a, var(--brand-pink)); }
.dc-chip-icon .material-symbols-outlined { vertical-align: middle; font-size: 1.25rem; }

/* ---------- rings, dots, bobbing ---------- */

.dc-ring {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.dc-ring--dark { border-color: rgba(11, 94, 102, 0.16); }
.dc-ring--spin { border: 1.5px dashed rgba(212, 175, 55, 0.55); animation: dc-spin 50s linear infinite; }
.dc-ring--spin::after {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-pink);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.2), 0 0 18px rgba(212, 175, 55, 0.8);
}
.dc-ring--teal { border: 1.5px dashed rgba(23, 184, 196, 0.45); animation: dc-spin 70s linear infinite reverse; }
@keyframes dc-spin { to { transform: rotate(360deg); } }

.dc-dots {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(var(--brand-cyan) 2px, transparent 2.5px) 0 0 / 16px 16px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.dc-dots--gold { background-image: radial-gradient(var(--brand-pink) 2px, transparent 2.5px); }

.dc-bob { animation: dc-bob 6s ease-in-out infinite; }
.dc-bob--late { animation-delay: -3s; }
@keyframes dc-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.dc-rel { position: relative; }
.dc-clip { overflow-x: clip; }
.dc-section-deco > .container { position: relative; z-index: 1; }

/* ---------- arch media block (inside sections) ---------- */

.dc-media { position: relative; max-width: 460px; margin: 0 auto; }
.dc-media .dc-dots { left: -34px; top: -34px; }
.dc-media .dc-ring { width: 118%; left: -9%; top: 4%; border-color: rgba(11, 94, 102, 0.16); }
.dc-media-arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 30px 30px / 40% 40% 30px 30px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.dc-media-arch--wide { aspect-ratio: 5 / 4; border-radius: 50% 50% 30px 30px / 62% 62% 30px 30px; }
.dc-media-arch img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out); }
.dc-media:hover .dc-media-arch img { transform: scale(1.05); }
.dc-media-badge {
  position: absolute;
  right: -22px;
  bottom: 44px;
  max-width: 210px;
  padding: 1.2rem 1.4rem;
  border-radius: 22px 22px 22px 6px;
  background: linear-gradient(150deg, #e2c25a, var(--brand-pink) 50%, var(--brand-magenta));
  color: #fff;
  box-shadow: var(--shadow-deep);
}
.dc-media-badge .num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; font-weight: 700; }
.dc-media-badge p { margin: 0.35rem 0 0; font-size: 0.85rem; line-height: 1.4; color: rgba(255, 255, 255, 0.95); }

/* ---------- CTA band: asymmetric, layered, with a slow ring ---------- */

.cta-band {
  isolation: isolate;
  border-radius: 40px 40px 40px 10px;
  background:
    radial-gradient(60% 90% at 100% 100%, rgba(212, 175, 55, 0.7), transparent 65%),
    radial-gradient(4px 4px at 20px 20px, rgba(255, 255, 255, 0.18) 50%, transparent 55%) 0 0 / 26px 26px,
    linear-gradient(135deg, #17b8c4 0%, #0b5e66 60%, #073f45 100%);
  box-shadow: 0 30px 70px rgba(11, 94, 102, 0.3);
}
.cta-band::before { z-index: -1; }
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.05), 0 0 0 80px rgba(255, 255, 255, 0.03);
  animation: dc-spin 60s linear infinite;
  pointer-events: none;
}

@media (max-width: 991px) {
  .dc-arch-stage { height: 380px; margin: 1.5rem auto 0; }
  .dc-media-badge { right: 0; }
  .hs-blob { width: 120%; left: -25%; }
}
@media (max-width: 575px) {
  .dc-arch-stage { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-ring--spin, .dc-ring--teal, .dc-bob, .cta-band::after { animation: none; }
  .dc-underline path { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 575px) {
  .dc-arch-stage .dc-chip { font-size: 0.72rem; padding: 0.6rem 0.8rem; }
  .dc-arch-stage .dc-chip[style*="left:-"] { left: 2% !important; }
  .dc-arch-stage .dc-chip[style*="right:-"] { right: 2% !important; }
}
