/* ==========================================================================
   360 CPD, stylesheet
   Brand colours are CSS variables so the admin brand portal can recolour live.
   ========================================================================== */

:root {
  /* Brand palette (overridden at runtime from settings.brand.colors) */
  --navy: #063159;
  --steel: #0d4f78;
  --sky: #0098da;
  --teal: #126078;
  --grey: #615f5f;
  --cream: #f1e9da;

  /* Semantic */
  --bg: #ffffff;
  --bg-alt: var(--cream);
  --ink: #14293c;
  --text: #21323f;
  --muted: #5f6f7d;
  --line: #e4e9ee;
  --brand: var(--steel);
  --brand-dark: var(--navy);
  --accent: var(--sky);
  --white: #ffffff;

  --font-head: "Archivo Black", system-ui, -apple-system, sans-serif;
  --font-body: "Barlow Semi Condensed", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(18px, 5vw, 56px);
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 8px rgba(6, 49, 89, 0.06);
  --shadow: 0 18px 44px -20px rgba(6, 49, 89, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(6, 49, 89, 0.45);
  --header-h: 74px;
  --logo-scale: 1; /* set live by the brand portal */
  /* Effective header height, grows with the logo so there's always ~14px of
     padding above/below it. Computed in JS (applyBrand) whenever the logo scale
     changes; defaults to --header-h so the 100% layout is unchanged. */
  --header-h-eff: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-eff) + 12px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  letter-spacing: 0.005em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.02;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 6.5vw, 100px);
  position: relative;
}
.section--tight {
  padding-block: clamp(44px, 5vw, 72px);
}
.section--cream {
  background: var(--bg-alt);
}
.section--navy {
  background: linear-gradient(160deg, var(--navy), var(--steel) 120%);
  color: #dce8f2;
}
.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--brand);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  padding: 0.5em 0.9em;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}
.section--navy .eyebrow {
  color: #d6effc;
  background: rgba(127, 208, 244, 0.14);
  border-color: rgba(127, 208, 244, 0.32);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}
.section-head p {
  color: var(--muted);
  font-size: 1.04rem;
  margin-top: 0.55rem;
}
.section--navy .section-head p {
  color: #b9cee0;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.3s var(--ease);
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--btn-bg) 75%, transparent);
  will-change: transform;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px -14px color-mix(in srgb, var(--btn-bg) 80%, transparent);
}
.btn:active {
  transform: translateY(-1px);
}
.btn--accent {
  --btn-bg: var(--accent);
}
.btn--gradient {
  background: linear-gradient(120deg, var(--accent), var(--brand) 90%);
}
.btn--whatsapp {
  --btn-bg: #25d366;
}
.btn--whatsapp:hover {
  filter: brightness(1.05);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  box-shadow: none;
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.section--navy .btn--ghost,
.hero .btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn--lg {
  padding: 1.1em 2.1em;
  font-size: 1.06rem;
}
.btn--block {
  width: 100%;
}
/* Icons inside buttons: fixed, sensible size (never let an SVG balloon the button) */
.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg:last-child {
  transform: translateX(4px);
}
.btn .arrow {
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms);
  will-change: transform, opacity;
}
.reveal[data-anim="left"] {
  transform: translateX(-46px);
}
.reveal[data-anim="right"] {
  transform: translateX(46px);
}
.reveal[data-anim="scale"] {
  transform: scale(0.9);
}
.reveal[data-anim="fade"] {
  transform: none;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h-eff);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    height 0.4s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(6, 49, 89, 0.08), var(--shadow-sm);
}
/* Over the dark hero (before scroll) the nav sits on dark, so text is light.
   After scroll the header is light glass, so nav text reverts to dark and the
   (light) logo is darkened via a filter below. */
.site-header:not(.scrolled) .nav-link,
.site-header:not(.scrolled) .brand-word {
  color: #fff;
}
.site-header:not(.scrolled) .brand-sub {
  color: rgba(255, 255, 255, 0.72);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand-mark {
  width: calc(46px * var(--logo-scale, 1));
  height: calc(46px * var(--logo-scale, 1));
  flex-shrink: 0;
}
.brand-logo-img {
  height: calc(46px * var(--logo-scale, 1));
  width: auto;
  transition: filter 0.3s var(--ease);
}
/* The uploaded logo is the light/white version (for the dark hero). On the
   light glass header after scroll it would vanish, so recolour it to brand navy. */
.site-header.scrolled .brand-logo-img {
  filter: brightness(0) saturate(100%) invert(11%) sepia(65%) saturate(2200%)
    hue-rotate(192deg) brightness(94%) contrast(96%);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-word {
  font-family: var(--font-head);
  font-size: 1.28rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  color: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.site-header:not(.scrolled) .nav-toggle span {
  color: #fff;
}
.nav-toggle span:nth-child(1) {
  top: 15px;
}
.nav-toggle span:nth-child(2) {
  top: 21px;
}
.nav-toggle span:nth-child(3) {
  top: 27px;
}
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h-eff) + 28px);
  padding-bottom: 44px;
  background: radial-gradient(
      120% 120% at 78% 12%,
      rgba(0, 152, 218, 0.28),
      transparent 55%
    ),
    linear-gradient(150deg, #041f3a 0%, var(--navy) 42%, var(--steel) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  width: 100%;
}
.hero__eyebrow {
  color: #d6effc;
  background: rgba(127, 208, 244, 0.14);
  border-color: rgba(127, 208, 244, 0.32);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.98;
  margin-bottom: 0.4em;
}
.hero h1 .accent {
  color: #7fd0f4;
  display: inline-block;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  color: #c6dbec;
  max-width: 30em;
  margin-bottom: 1.5rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.05em;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  font-weight: 500;
  color: #eaf4fb;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pill svg {
  width: 16px;
  height: 16px;
  color: #7fd0f4;
}

/* hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg);
}
.hero__photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 82%;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 31, 58, 0.05), rgba(4, 31, 58, 0.4));
}
.hero__badge {
  position: absolute;
  left: -26px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  color: var(--ink);
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
}
.hero__badge .tick {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero__badge b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  line-height: 1.1;
}
.hero__badge span {
  font-size: 0.8rem;
  color: var(--muted);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* hero fanned card deck */
.hero-deck {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.hero-deck__card {
  position: absolute;
  width: min(62%, 250px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--steel), var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 54px -20px rgba(0, 0, 0, 0.6);
  transform-origin: bottom center;
  transform: translateX(calc(var(--off) * 22px)) translateY(calc(var(--off) * var(--off) * 5px))
    rotate(calc(var(--off) * 5deg));
  z-index: calc(20 - var(--off) * var(--off));
  transition: transform 0.55s var(--ease), box-shadow 0.5s var(--ease), filter 0.4s ease;
  cursor: pointer;
  will-change: transform;
}
.hero-deck__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-deck__card.is-empty .hero-deck__img {
  background: radial-gradient(120% 90% at 20% 10%, rgba(0, 152, 218, 0.5), transparent 55%),
    linear-gradient(160deg, var(--sky), var(--navy));
}
.hero-deck__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  min-height: 46%;
  padding: 16px;
  background: linear-gradient(transparent, rgba(3, 18, 34, 0.94) 78%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.32;
}
/* fan out on deck hover; dim the non-hovered cards */
.hero-deck:hover .hero-deck__card {
  transform: translateX(calc(var(--off) * 78px)) translateY(calc(var(--off) * var(--off) * 12px))
    rotate(calc(var(--off) * 8deg));
  filter: brightness(0.78) saturate(0.9);
}
/* the hovered card jumps to the front, upright and enlarged */
.hero-deck:hover .hero-deck__card:hover {
  transform: translateX(calc(var(--off) * 78px)) translateY(-22px) rotate(0deg) scale(1.09);
  filter: none;
  z-index: 40;
  box-shadow: 0 44px 80px -24px rgba(0, 0, 0, 0.75);
}
@media (prefers-reduced-motion: reduce) {
  .hero-deck__card {
    transition: none;
  }
}
.hero-deck__dots {
  display: none;
}

/* orbit ring accent behind visual */
.hero__orbit {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -6%;
  width: 62%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero__orbit .ring {
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(127, 208, 244, 0.4);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero__orbit .ring.r2 {
  inset: 14%;
  border-style: solid;
  border-color: rgba(127, 208, 244, 0.14);
  animation-duration: 26s;
  animation-direction: reverse;
}
.hero__orbit .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  animation: spin 18s linear infinite;
}
.hero__orbit .dot::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 26px 4px rgba(0, 152, 218, 0.7);
  transform: translateX(-50%);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__orbit .ring,
  .hero__orbit .dot,
  .hero__badge { animation: none; }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ==========================================================================
   LOGO STRIP / MARQUEE
   ========================================================================== */
.marquee {
  background: var(--navy);
  color: #cfe1f0;
  padding-block: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  align-items: center;
  animation: marquee 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-head);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  opacity: 0.72;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee__track span::after {
  content: "◆";
  color: var(--sky);
  font-size: 0.6rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   CONCIERGE
   ========================================================================== */
.concierge__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.concierge__photo {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/4.6;
  background: linear-gradient(160deg, var(--steel), var(--navy));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.concierge__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.concierge__photo .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem;
}
.concierge__tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow);
}
.concierge__tag b {
  font-family: var(--font-head);
  display: block;
  color: var(--ink);
}
.concierge__tag span {
  font-size: 0.82rem;
  color: var(--muted);
}
.concierge__body h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.signature {
  font-family: var(--font-head);
  color: var(--brand);
  font-size: 1.3rem;
  margin-top: 1.2rem;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  color: var(--brand);
  line-height: 1;
}
.stat__label {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   VALUE PROPOSITION (below the banner)
   ========================================================================== */
.value__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}
.value__intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
.value__intro .lead {
  margin: 1rem 0 1.7rem;
}
.value__points {
  display: grid;
  gap: 0.9rem;
}
.value-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.value-point:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.value-point__ic {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--sky), var(--steel));
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--sky) 70%, transparent);
}
.value-point__ic svg {
  width: 24px;
  height: 24px;
}
.value-point b {
  font-family: var(--font-head);
  color: var(--ink);
  font-size: 1.02rem;
  display: block;
  margin-bottom: 0.2rem;
}
.value-point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .value__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SERVICES, interactive spotlight (hover a row → its card shows)
   ========================================================================== */
.cap-head {
  max-width: 760px;
}
.cap-spotlight {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(22px, 3vw, 30px);
  margin-top: clamp(30px, 4vw, 46px);
  align-items: start;
}

/* the hoverable service list */
.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.cap-item {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(15px, 2vw, 20px) clamp(16px, 2vw, 22px);
  cursor: pointer;
  color: #eaf2fa;
  position: relative;
  transition: background 0.25s ease;
}
.cap-item:last-child {
  border-bottom: 0;
}
.cap-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--sky);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}
.cap-item-num {
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #7fd0f4;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.cap-item-name {
  grid-column: 2;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.cap-item-tag {
  grid-column: 2;
  font-size: 0.84rem;
  color: #8fb0cb;
}
.cap-item-arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--sky);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cap-item:hover,
.cap-item[aria-selected="true"] {
  background: rgba(0, 152, 218, 0.14);
}
.cap-item:hover::before,
.cap-item[aria-selected="true"]::before {
  transform: scaleY(1);
}
.cap-item:hover .cap-item-num,
.cap-item[aria-selected="true"] .cap-item-num {
  opacity: 1;
}
.cap-item:hover .cap-item-name,
.cap-item[aria-selected="true"] .cap-item-name {
  color: #fff;
}
.cap-item:hover .cap-item-arrow,
.cap-item[aria-selected="true"] .cap-item-arrow {
  opacity: 1;
  transform: none;
}
.cap-item:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: -2px;
}

/* the morphing preview stage: panels stacked in one grid cell, crossfading */
.cap-stage {
  display: grid;
}
.cap-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a2742;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.55s var(--ease), visibility 0.4s;
}
.cap-panel:first-child {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
} /* no-JS default */
.cap-spotlight.js .cap-panel:first-child {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.99);
  pointer-events: none;
}
.cap-spotlight.js .cap-panel.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.cap-art {
  position: relative;
  height: 238px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 15% 15%, rgba(0, 152, 218, 0.5), transparent 55%),
    var(--cap-grad, linear-gradient(150deg, var(--navy), var(--steel)));
}
.cap-panel:nth-child(4n + 1) .cap-art {
  --cap-grad: linear-gradient(150deg, #063159, #0d4f78);
}
.cap-panel:nth-child(4n + 2) .cap-art {
  --cap-grad: linear-gradient(150deg, #0d4f78, #0098da);
}
.cap-panel:nth-child(4n + 3) .cap-art {
  --cap-grad: linear-gradient(150deg, #126078, #0098da);
}
.cap-panel:nth-child(4n) .cap-art {
  --cap-grad: linear-gradient(150deg, #041f3a, #063159);
}
/* optional uploaded image for a spotlight card (fills the art area) */
.cap-art-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cap-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* once an image is added (live in edit mode), hide the placeholder icon */
.cap-art-media.has-image ~ .cap-art-icon {
  display: none;
}
.cap-art-icon {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  color: #fff;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.cap-art-icon svg {
  width: 100%;
  height: 100%;
}
.cap-art-num {
  position: absolute;
  right: 20px;
  bottom: -8px;
  z-index: 3;
  font-family: var(--font-head);
  font-size: 104px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.cap-panel-body {
  padding: clamp(1.4rem, 2.4vw, 1.8rem) clamp(1.4rem, 2.4vw, 1.9rem) 1.9rem;
  display: flex;
  flex-direction: column;
}
.cap-panel-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fd0f4;
}
.cap-panel-name {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  color: #fff;
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.cap-panel-desc {
  font-size: 1rem;
  line-height: 1.62;
  color: #c6dbec;
  margin: 0 0 1.2rem;
}
.cap-panel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.cap-panel-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #dce8f2;
}
.cap-panel-list li svg {
  width: 18px;
  height: 18px;
  color: var(--sky);
  flex-shrink: 0;
  margin-top: 2px;
}
.cap-enquire {
  align-self: flex-start;
  margin-top: auto;
}
@media (max-width: 860px) {
  .cap-spotlight {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cap-panel {
    transition: opacity 0.18s ease;
    transform: none !important;
  }
}

/* ==========================================================================
   FEATURE (UpToDate)
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  background: linear-gradient(150deg, var(--navy), var(--teal));
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.2vw, 2.8rem);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.feature h2 {
  color: #fff;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}
.feature p {
  color: #c9deee;
}
.feature__points {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 1.3rem 0;
}
.feature__points .feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.3em 0.75em 0.3em 0.5em;
  font-size: 0.76rem;
  white-space: nowrap;
  color: #eaf3fb;
}
/* little "on" toggle switch in place of a tick */
.feature__points .feat-switch {
  position: relative;
  width: 26px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.feature__points .feat-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
/* on narrow screens let them wrap rather than overflow */
@media (max-width: 640px) {
  .feature__points {
    flex-wrap: wrap;
  }
}

/* Server-rendered content fallback (for crawlers / no-JS; the SPA replaces it) */
.ssr-fallback {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  line-height: 1.6;
}
.ssr-fallback h1 {
  font-family: var(--font-head);
}
.ssr-fallback img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
}
.feature__visual {
  position: relative;
}
.feature__img-wrap {
  width: 100%;
}
.feature__visual img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 54px -22px rgba(0, 0, 0, 0.6);
  display: block;
}
.feature__tagline {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #7fd0f4;
}

/* ==========================================================================
   WHY IT MATTERS
   ========================================================================== */
.why__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.why__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.why__timeline {
  display: grid;
  gap: 1.1rem;
}
.why__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why__step .marker {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0, 152, 218, 0.18);
  color: #7fd0f4;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
}
.why__step b {
  color: #fff;
  display: block;
}
.why__step p {
  margin: 0;
  color: #b9cee0;
  font-size: 0.96rem;
}

/* ==========================================================================
   WHO WE HELP
   ========================================================================== */
.help__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.help-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.help-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.help-card .ic {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.help-card .ic svg {
  width: 28px;
  height: 28px;
}
.help-card b {
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--ink);
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 60%, transparent);
}
.price-card.featured::before {
  content: "Best value";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
}
.price-card__name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--ink);
}
.price-card__price {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--brand);
  margin: 0.6rem 0 0.1rem;
  line-height: 1;
}
.price-card__price small {
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}
.price-card__period {
  font-size: 0.86rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.price-card__save {
  display: inline-block;
  margin-top: 0.9rem;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--brand-dark);
  border-radius: var(--radius-pill);
  padding: 0.35em 0.9em;
  font-size: 0.86rem;
  font-weight: 600;
}
.price-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-top: 0.9rem;
}
.price-card .btn {
  margin-top: auto;
}
.pricing__corp {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.1rem;
}
.pricing__corp-text {
  flex: 1 1 340px;
}
.pricing__corp-tag {
  display: inline-block;
  background: color-mix(in srgb, #fff 16%, transparent);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.28em 0.85em;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.pricing__corp-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.35rem;
}
.pricing__corp p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  max-width: 64ch;
}
.pricing__corp .btn {
  flex-shrink: 0;
}
.price-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.6rem;
}
@media (max-width: 640px) {
  .pricing__corp {
    padding: 1.5rem 1.4rem;
  }
  .pricing__corp .btn {
    width: 100%;
  }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi {
  position: relative;
}
.testi__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: none;
  cursor: grab;
}
.testi__track::-webkit-scrollbar {
  display: none;
}
.testi__track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.testi-card {
  scroll-snap-align: center;
  flex: 0 0 min(90%, 560px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.testi-card .quote-mark {
  font-family: var(--font-head);
  font-size: 3.4rem;
  color: color-mix(in srgb, var(--accent) 40%, transparent);
  line-height: 0.6;
  margin-bottom: 0.6rem;
  display: block;
}
.testi-card blockquote {
  margin: 0 0 1.3rem;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.55;
}
.testi-card .who {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.testi-card .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--sky), var(--navy));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.testi-card .who b {
  color: var(--ink);
  display: block;
}
.testi-card .who span {
  color: var(--muted);
  font-size: 0.88rem;
}
.testi__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.testi__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: var(--line);
  transition: background 0.3s, transform 0.3s;
}
.testi__dots button.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 16em;
  margin-inline: auto;
}
.cta-band p {
  color: #c6dbec;
  max-width: 40em;
  margin: 1rem auto 2rem;
  font-size: 1.14rem;
}
.cta-band__glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 152, 218, 0.4), transparent 60%);
  top: -20vw;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.contact__info .method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.contact__info .method .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact__info .method b {
  font-family: var(--font-head);
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}
.contact__info .method a,
.contact__info .method span {
  color: var(--muted);
}
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.form__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.4rem;
}
@media (max-width: 520px) {
  .form__actions {
    grid-template-columns: 1fr;
  }
}
.form__hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.7rem 0 0;
  text-align: center;
}
.form__msg {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}
.form__msg a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.form__msg.show {
  display: block;
}
.form__msg.ok {
  background: color-mix(in srgb, #17a672 12%, #fff);
  color: #0d7a52;
}
.form__msg.err {
  background: color-mix(in srgb, #e5484d 12%, #fff);
  color: #b4262b;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #041f3a;
  color: #a9c2d6;
  padding-block: clamp(48px, 6vw, 76px) 2rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a {
  color: #a9c2d6;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff;
}
.footer-brand p {
  max-width: 30ch;
  font-size: 0.96rem;
}
.footer-brand .brand-word {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #7d97ac;
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--steel));
  color: #fff;
  padding-top: calc(var(--header-h-eff) + 100px);
  padding-bottom: clamp(84px, 10vw, 128px);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.page-hero p {
  color: #c6dbec;
  max-width: 40em;
}
.page-hero .container { position: relative; z-index: 2; }
/* .page-hero .page-hero__bg beats the generic [data-edit-img]{position:relative} */
.page-hero .page-hero__bg { position: absolute; inset: 0; margin: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* keep the edit affordances above the scrim AND the text (which overlays the
   image), so they can be seen and clicked */
.page-hero__bg .img-replace-btn,
.page-hero__bg .img-add-btn,
.page-hero__bg .img-focus-dot { z-index: 6; }
/* Replace is normally hover-only, but the banner text sits over the image and
   blocks that hover, so force Replace visible whenever edit mode is on. Move it
   to the bottom-right so it clears the fixed site header at the top. */
body.edit-mode .page-hero__bg .img-replace-btn { opacity: 1; }
.page-hero__bg .img-replace-btn { top: auto; bottom: 16px; right: 16px; }
/* edit-mode focus picker: a fully-clickable thumbnail of the banner image */
.page-hero__focus {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 62px;
  width: 220px;
  background: rgba(6, 25, 45, 0.9);
  border-radius: 10px;
  padding: 8px;
}
body:not(.edit-mode) .page-hero__focus { display: none; }
.page-hero__focus-title { display: block; color: #fff; font-size: 0.72rem; margin-bottom: 6px; }
.page-hero__focus-box {
  position: relative;
  aspect-ratio: 16 / 6;
  border-radius: 6px;
  overflow: hidden;
  cursor: crosshair;
}
.page-hero__focus-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.7rem;
}
.blog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}
.blog-pager__info { color: var(--muted); font-size: 0.92rem; }
.blog-pager__btn[disabled] { opacity: 0.4; pointer-events: none; }
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.post-card__cover {
  aspect-ratio: 16/9;
  background: linear-gradient(150deg, var(--steel), var(--navy));
  overflow: hidden;
}
.post-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card__cover img {
  transform: scale(1.06);
}
.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-card h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0 0.6rem;
}
.post-card p {
  color: var(--muted);
  font-size: 0.96rem;
  flex: 1;
}
.post-card__more {
  color: var(--brand);
  font-weight: 600;
  margin-top: 0.8rem;
  display: inline-flex;
  gap: 0.4em;
}

/* single post */
.post {
  max-width: 760px;
  margin-inline: auto;
}
.post__cover {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.post__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* blog-cover focus preview (post editor) */
.cover-focus-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.cover-focus-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: crosshair;
}
.cover-focus-box .slot-dot {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
}
.cover-focus-box .slot-dot::after {
  inset: 5px;
}
.post__body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}
.post__body h2,
.post__body h3 {
  margin-top: 1.8rem;
}
.post__body img {
  border-radius: var(--radius);
  margin: 1.6rem 0;
}
.post__body a {
  color: var(--brand);
  text-decoration: underline;
}
.post__body ul,
.post__body ol {
  padding-left: 1.4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.back-link:hover {
  color: var(--brand);
}

/* ==========================================================================
   LOGIN
   ========================================================================== */
.auth-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(120% 120% at 80% 10%, rgba(0, 152, 218, 0.2), transparent 55%),
    linear-gradient(150deg, #041f3a, var(--navy));
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: 1.7rem;
}
.auth-card .brand {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   EDIT MODE + admin bar
   ========================================================================== */
.editbar {
  position: fixed;
  z-index: 200;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.6rem 0.5rem 1.1rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
}
.editbar .dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17a672;
  box-shadow: 0 0 0 4px rgba(23, 166, 114, 0.25);
}
.editbar button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.5em 1em;
  font-weight: 600;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.2s;
}
.editbar button:hover {
  background: rgba(255, 255, 255, 0.26);
}
.editbar button.primary {
  background: var(--accent);
}
.editbar button.primary.on {
  background: #17a672;
}

body.edit-mode [data-edit],
body.edit-mode [data-editpost] {
  outline: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
  cursor: text;
  transition: outline-color 0.2s, background 0.2s;
  border-radius: 4px;
}
body.edit-mode [data-edit]:hover,
body.edit-mode [data-editpost]:hover {
  outline-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
body.edit-mode [data-edit][contenteditable="true"]:focus,
body.edit-mode [data-editpost][contenteditable="true"]:focus {
  outline: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
[data-edit-img] {
  position: relative;
}
body.edit-mode [data-edit-img] {
  outline: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
  cursor: pointer;
}
body.edit-mode [data-edit-img].has-image {
  cursor: crosshair;
}
/* hint strip (non-blocking so the click reaches the image) */
body.edit-mode [data-edit-img].has-image::after {
  content: "Click to set focus point";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5em 0.7em;
  text-align: center;
  background: linear-gradient(transparent, rgba(6, 25, 45, 0.85));
  color: #fff;
  font-weight: 600;
  font-size: 0.76rem;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 5;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
body.edit-mode [data-edit-img].has-image:hover::after {
  opacity: 1;
}
.img-focus-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 152, 218, 0.35);
  box-shadow: 0 0 0 2px rgba(0, 152, 218, 0.95), 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 6;
}
.img-focus-dot::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}
.img-replace-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 7;
  background: rgba(6, 25, 45, 0.82);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.45em 0.75em;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
body.edit-mode [data-edit-img]:hover .img-replace-btn {
  opacity: 1;
}
/* Empty image slot: always-visible "add image" affordance, centred in the slot */
.img-add-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: rgba(6, 25, 45, 0.85);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 0.55em 0.95em;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.img-add-btn:hover {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.04);
}
/* On a spotlight card the art area stacks an icon/number above the image
   wrapper; in edit mode lift the (empty) wrapper so its Add-image button shows. */
body.edit-mode .cap-art-media.img-empty {
  z-index: 4;
}

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #f4f7fa;
}
.admin__side {
  background: linear-gradient(180deg, var(--navy), #041f3a);
  color: #cfe1f0;
  padding: 1.4rem 1rem;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
}
.admin__side .brand {
  margin-bottom: 2rem;
  padding-inline: 0.4rem;
}
.admin__side .brand-word {
  color: #fff;
}
.admin__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin__nav button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 0;
  color: #b9cee0;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}
.admin__nav button svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}
.admin__nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin__nav button.active {
  background: var(--accent);
  color: #fff;
}
.admin__side .side-foot {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.admin__side .side-foot a {
  color: #7fd0f4;
}
.admin__main {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  overflow-x: hidden;
}
.admin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.admin__head h1 {
  font-size: 1.7rem;
  margin: 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.kpi b {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--brand);
  display: block;
  line-height: 1;
}
.kpi span {
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 640px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  vertical-align: top;
}
table.data th {
  background: #f7fafc;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.data tr:last-child td {
  border-bottom: 0;
}
.badge {
  display: inline-block;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}
.badge.new { background: #e7f0fb; color: #1663b0; }
.badge.contacted { background: #fff2d9; color: #96690a; }
.badge.closed { background: #e6f6ee; color: #14855a; }
.badge.draft { background: #eef1f4; color: #5f6f7d; }
.badge.scheduled { background: #fff2d9; color: #96690a; }
.badge.published { background: #e6f6ee; color: #14855a; }
.badge.archived { background: #f6e9e9; color: #a4494b; }

.admin-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.6em 1.1em;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--brand);
  color: #fff;
  transition: filter 0.2s, transform 0.2s;
}
.admin-btn:hover { filter: brightness(1.08); }
.admin-btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.admin-btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.admin-btn.danger { background: #fff; color: #b4262b; border: 1.5px solid #f0d2d3; }
.admin-btn.danger:hover { background: #b4262b; color: #fff; }
.admin-btn.sm { padding: 0.4em 0.8em; font-size: 0.84rem; }

/* image-style rows: name + prompt on the left, a reference thumbnail on the right */
.style-row {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.style-row__main { flex: 1 1 auto; min-width: 0; }
.style-row__ref { flex: 0 0 260px; }
.style-row__ref > label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.style-ref {
  width: 260px;
  height: 175px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.style-ref:hover { border-color: var(--brand); color: var(--brand); }
.style-ref img { width: 100%; height: 100%; object-fit: cover; }
.style-ref__hint { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 0.35rem; }

/* style picker in the draft editor: four cards, name on top, reference photo below */
.gen-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gen-style {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font: inherit;
}
.gen-style:hover { border-color: var(--brand); }
.gen-style:disabled { opacity: 0.5; cursor: default; }
.gen-style__name { font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.gen-style__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: color-mix(in srgb, var(--line) 40%, #fff);
  display: grid;
  place-items: center;
}
.gen-style__img img { width: 100%; height: 100%; object-fit: cover; }
.gen-style__ph { font-size: 0.68rem; color: var(--muted); }
/* the picked card while generating: highlight + dimmed image + spinner */
.gen-style--busy {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent);
}
.gen-style--busy .gen-style__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
}
.gen-style--busy .gen-style__img::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: genspin 0.8s linear infinite;
  z-index: 2;
}
@keyframes genspin { to { transform: rotate(360deg); } }
/* indeterminate progress bar under the picker while generating */
.gen-progress {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 55%, #fff);
  overflow: hidden;
  margin-top: 0.7rem;
}
.gen-progress__bar {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: var(--brand);
  animation: genslide 1.1s ease-in-out infinite;
}
@keyframes genslide {
  0% { margin-left: -42%; }
  100% { margin-left: 100%; }
}
@media (max-width: 640px) { .gen-styles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .style-row { flex-direction: column; }
  .style-row__ref { flex: 0 0 auto; }
}

/* blog sub-navigation (Posts / Suggested ideas) */
.admin-subnav { display: flex; gap: 0.4rem; margin-top: 0.55rem; }
.admin-subtab {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0.3em 0.85em;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-subtab:hover { border-color: var(--brand); color: var(--brand); }
.admin-subtab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* suggested blog ideas list */
.idea-list { display: flex; flex-direction: column; }
.idea {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.idea:last-child { border-bottom: 0; }
.idea__title {
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  line-height: 1.3;
}
.idea__src {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-weight: 700;
}
.idea__brief { margin: 0.35rem 0 0.3rem; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.idea__kw { font-size: 0.8rem; color: var(--muted); }
.idea__kw b { color: var(--ink, #33414d); }
.idea__actions { display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; white-space: nowrap; }
@media (max-width: 640px) {
  .idea { flex-direction: column; }
  .idea__actions { flex-direction: row; }
}

.form-grid {
  display: grid;
  gap: 1rem;
}
.brand-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
input[type="range"] {
  accent-color: var(--brand);
}
.hero-slot-prev {
  position: relative;
  width: 110px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--steel), var(--navy));
  display: grid;
  place-items: center;
  color: #9fb8cd;
  font-size: 0.72rem;
}
.hero-slot-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: crosshair;
}
.hero-slot-prev .slot-dot {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
}
.hero-slot-prev .slot-dot::after {
  inset: 5px;
}
/* Drag-to-reorder hero cards */
.hero-card-row {
  position: relative;
  transition: box-shadow 0.12s ease, opacity 0.12s ease;
}
.hero-drag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 110px;
  height: 22px;
  margin-bottom: 0.4rem;
  border-radius: 7px;
  background: var(--cream, #f1e9da);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  cursor: grab;
  user-select: none;
}
.hero-drag:hover {
  background: var(--sky);
  color: #fff;
}
.hero-drag:active {
  cursor: grabbing;
}
.hero-card-row.dragging {
  opacity: 0.45;
}
.hero-card-row.drop-above {
  box-shadow: inset 0 3px 0 0 var(--sky);
}
.hero-card-row.drop-below {
  box-shadow: inset 0 -3px 0 0 var(--sky);
}
.color-field {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.color-field input[type="color"] {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.color-field .cf-meta b {
  display: block;
  font-size: 0.86rem;
  color: var(--ink);
}
.color-field .cf-meta input[type="text"] {
  border: 0;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--muted);
  width: 90px;
  padding: 0;
}
.color-field .cf-meta input:focus { outline: none; }

/* ==========================================================================
   TOAST + dialog
   ========================================================================== */
.toast-wrap {
  position: fixed;
  z-index: 400;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  animation: toastin 0.3s var(--ease);
  max-width: 340px;
}
.toast.ok { background: #0d7a52; }
.toast.err { background: #b4262b; }
@keyframes toastin {
  from { opacity: 0; transform: translateY(12px); }
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(6, 25, 45, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: fadein 0.2s;
}
@keyframes fadein { from { opacity: 0; } }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
/* Scroll on an inner wrapper so the modal's rounded corners clip the
   scrollbar (otherwise its square corners poke out top-right/bottom-right). */
.modal__scroll {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.modal--wide { max-width: 85vw; width: 85vw; height: 90vh; }
/* Nested "describe your image" popup, stacks above the post editor modal. */
.gen-prompt-back {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 25, 45, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: fadein 0.2s;
}
.gen-prompt-back .modal { max-width: 560px; }
.gen-prompt-back textarea { width: 100%; }
.modal h2 { font-size: 1.4rem; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

/* staff-login cog (bottom-right) */
.login-cog {
  position: fixed;
  z-index: 150;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  opacity: 0.45;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, transform 0.6s var(--ease), color 0.25s ease,
    background 0.25s ease;
}
.login-cog:hover {
  opacity: 1;
  color: var(--brand);
  background: #fff;
  transform: rotate(90deg);
}
.login-cog svg {
  width: 20px;
  height: 20px;
}

/* version badge */
.version-badge {
  position: fixed;
  z-index: 150;
  bottom: 10px;
  left: 10px;
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  padding: 2px 7px;
  pointer-events: none;
}
.version-badge.warn { color: #b4262b; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* Short viewports (laptop-HD like 1366×768), keep the hero within the fold */
@media (min-width: 721px) and (max-height: 860px) {
  .hero {
    padding-top: calc(var(--header-h-eff) + 16px);
    padding-bottom: 26px;
  }
  .hero h1 {
    font-size: clamp(2rem, 3.6vw, 3.3rem);
    margin-bottom: 0.35em;
  }
  .hero__sub {
    font-size: 1.02rem;
    margin-bottom: 1rem;
  }
  .hero__cta {
    margin-bottom: 1rem;
  }
  .hero .eyebrow {
    margin-bottom: 0.7rem;
  }
  .hero__scroll {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* deck becomes a native swipe carousel on mobile */
  .hero__visual {
    aspect-ratio: auto;
    margin-top: 1.8rem;
  }
  .hero-deck {
    display: flex;
    gap: 16px;
    height: auto;
    place-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 16%;
  }
  .hero-deck::-webkit-scrollbar { display: none; }
  .hero-deck__card {
    position: relative;
    flex: 0 0 68%;
    max-width: 300px;
    transform: none !important;
    filter: none !important;
    z-index: auto !important;
    scroll-snap-align: center;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.5);
  }
  .hero-deck:hover .hero-deck__card,
  .hero-deck:hover .hero-deck__card:hover {
    transform: none !important;
    filter: none !important;
  }
  .hero-deck__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .hero-deck__dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .hero-deck__dots button.active {
    background: var(--sky);
    transform: scale(1.4);
  }
  .concierge__grid,
  .why__grid,
  .contact__grid,
  .feature { grid-template-columns: 1fr; }
  .help__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .feature__visual { order: -1; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h-eff) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  body.nav-open .nav-links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links .nav-link {
    color: var(--ink) !important;
    padding: 0.9rem var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .nav-links .nav-link::after { display: none; }
  .nav .btn { margin: 0.7rem var(--gutter); }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: 1fr; }
  .help__grid,
  .pricing__grid,
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; gap: 1.6rem; }
  .admin { grid-template-columns: 1fr; }
  .admin__side {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .admin__nav { flex-direction: row; flex-wrap: wrap; }
  .admin__nav button { width: auto; }
  .footer-bottom { flex-direction: column; }
}
