/* ============================================
   Lead Adflowix Media — Design System
   ============================================ */

:root {
  --ink: #0A1628;
  --ink-soft: #1E2F45;
  --muted: #5C6B7A;
  --line: rgba(10, 22, 40, 0.09);
  --bg: #EEF3F8;
  --bg-deep: #0A1628;
  --surface: #FFFFFF;
  --teal: #0F766E;
  --teal-bright: #14B8A6;
  --teal-soft: #CCFBF1;
  --coral: #E85D4C;
  --coral-hover: #D44838;
  --sand: #D6E0EA;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 30px 80px rgba(10, 22, 40, 0.14);
  --font: "Figtree", system-ui, sans-serif;
  --display: "Outfit", system-ui, sans-serif;
  --container: 1160px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--teal-bright);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 16ch;
  margin-bottom: 18px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head.center .section-title,
.section-head.center .section-lead {
  margin-inline: auto;
}
.section-head.center .eyebrow {
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 93, 76, 0.28);
}
.btn-primary:hover {
  background: var(--coral-hover);
  box-shadow: 0 14px 34px rgba(232, 93, 76, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(10, 22, 40, 0.18);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(10, 22, 40, 0.03);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--teal-soft); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-nav {
  padding: 11px 20px;
  font-size: 0.88rem;
}

.btn-arrow::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(238, 243, 248, 0.82);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.05);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub { color: rgba(255,255,255,.5); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav > a:not(.btn) {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav > a:not(.btn):hover,
.nav > a:not(.btn).active {
  color: var(--ink);
  background: rgba(10, 22, 40, 0.04);
}
.nav .btn-nav { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: .25s var(--ease);
  border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  min-height: min(88vh, 760px);
  overflow: hidden;
  background: var(--bg-deep);
  color: #fff;
}

.slider-track {
  position: relative;
  min-height: min(88vh, 760px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 110px;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease;
}
.slide.is-active .slide-media img {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,22,40,.88) 0%, rgba(10,22,40,.55) 48%, rgba(10,22,40,.28) 100%),
    linear-gradient(180deg, rgba(10,22,40,.35) 0%, rgba(10,22,40,.75) 100%);
}
.slide-overlay.alt {
  background:
    linear-gradient(105deg, rgba(15,118,110,.82) 0%, rgba(10,22,40,.7) 55%, rgba(10,22,40,.4) 100%);
}
.slide-overlay.warm {
  background:
    linear-gradient(115deg, rgba(10,22,40,.9) 0%, rgba(154,52,18,.45) 45%, rgba(10,22,40,.55) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-right: auto;
}
.slide-content .eyebrow.light {
  color: var(--teal-bright);
}
.slide-content .eyebrow.light::before {
  background: var(--teal-bright);
}
.slide-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.3rem);
  max-width: 14ch;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.slide.is-active .slide-content h1,
.slide.is-active .slide-content p,
.slide.is-active .slide-content .eyebrow,
.slide.is-active .slide-content .hero-ctas {
  animation: heroIn .85s var(--ease) both;
}
.slide.is-active .slide-content .eyebrow { animation-delay: .05s; }
.slide.is-active .slide-content h1 { animation-delay: .15s; }
.slide.is-active .slide-content p { animation-delay: .28s; }
.slide.is-active .slide-content .hero-ctas { animation-delay: .4s; }

.slide-content p {
  font-size: 1.12rem;
  color: rgba(255,255,255,.78);
  max-width: 48ch;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.slider-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 3;
  display: grid;
  gap: 14px;
}

.slider-progress {
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  overflow: hidden;
}
.slider-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-bright), #5EEAD4);
  border-radius: 99px;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, transform .25s;
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-right: auto;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: width .3s var(--ease), background .3s;
}
.slider-dot.is-active {
  width: 28px;
  background: #fff;
}

/* Highlight strip under slider */
.highlight-strip {
  margin-top: -36px;
  position: relative;
  z-index: 4;
  padding-bottom: 20px;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.highlight-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  transition: background .25s;
}
.highlight-item:hover {
  background: var(--teal-soft);
}
.highlight-icon {
  font-family: var(--display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--teal);
  background: var(--bg);
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.highlight-item strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 2px;
}
.highlight-item p {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-dark {
  background: var(--bg-deep);
  color: #fff;
}
.section-dark .section-lead { color: rgba(255,255,255,.68); }
.section-dark .eyebrow { color: var(--teal-bright); }
.section-surface { background: var(--surface); }
.section-tint {
  background:
    linear-gradient(180deg, transparent, rgba(20,184,166,.05)),
    var(--bg);
}

/* ---------- About preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-panel {
  position: relative;
  border-radius: 28px;
  min-height: 480px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
  background: #0A1628;
}

.about-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-panel-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,22,40,.55) 28%, rgba(10,22,40,.92) 100%);
}

.about-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.about-panel p {
  color: rgba(255,255,255,.75);
  max-width: 32ch;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

/* ---------- Visual media ---------- */
.visual-band {
  padding: 40px 0 20px;
}
.visual-band-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.visual-band-media {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
}
.visual-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-band-copy .section-title { max-width: 14ch; }

.partners-photo {
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 21 / 9;
}
.partners-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 21 / 9;
  margin-bottom: 8px;
}
.page-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-stat {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.about-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.about-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,.65);
}

.about-copy .checklist {
  margin: 28px 0 32px;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' stroke='%230F766E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Services ---------- */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.service-card {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 118, 110, 0.25);
}

.service-card.wide { grid-column: span 6; }
.service-card.accent {
  background: linear-gradient(160deg, #0A1628, #12304A);
  color: #fff;
  border-color: transparent;
}
.service-card.accent p { color: rgba(255,255,255,.68); }
.service-card.tint {
  background: linear-gradient(160deg, #F0FDFA, #fff);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--teal-soft);
  color: var(--teal);
}
.service-card.accent .service-icon {
  background: rgba(20,184,166,.18);
  color: var(--teal-bright);
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-item {
  padding: 28px 26px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.why-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(20,184,166,.35);
  transform: translateY(-4px);
}
.why-num {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--teal-bright);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.why-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.why-item p {
  color: rgba(255,255,255,.62);
  font-size: 0.94rem;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  opacity: .35;
}
.step {
  text-align: center;
  padding: 8px;
  position: relative;
}
.step-num {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--surface);
  border: 2px solid var(--teal-soft);
  color: var(--teal);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Split partners ---------- */
.split-partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.split-card {
  border-radius: 28px;
  padding: 48px 40px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease);
}
.split-card:hover { transform: translateY(-4px); }
.split-card.publishers {
  background:
    linear-gradient(160deg, rgba(15,118,110,.95), rgba(10,22,40,.92)),
    radial-gradient(circle at 80% 10%, rgba(45,212,191,.35), transparent 45%);
  color: #fff;
}
.split-card.affiliates {
  background:
    linear-gradient(160deg, rgba(232,93,76,.92), rgba(10,22,40,.9)),
    radial-gradient(circle at 20% 0%, rgba(255,180,160,.35), transparent 45%);
  color: #fff;
}
.split-card .eyebrow { color: rgba(255,255,255,.8); }
.split-card .eyebrow::before { background: rgba(255,255,255,.7); }
.split-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  max-width: 12ch;
}
.split-card p {
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  max-width: 36ch;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 0 0 100px;
}
.final-cta-inner {
  border-radius: 32px;
  padding: clamp(48px, 8vw, 80px);
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(20,184,166,.25), transparent 55%),
    radial-gradient(ellipse 40% 60% at 0% 80%, rgba(232,93,76,.18), transparent 50%),
    linear-gradient(135deg, #0A1628 0%, #12304A 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
  margin: 0 auto 18px;
}
.final-cta-inner p {
  color: rgba(255,255,255,.7);
  max-width: 48ch;
  margin: 0 auto 32px;
}
.final-cta .hero-ctas { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(20,184,166,.15), transparent 55%),
    linear-gradient(180deg, #E4EBF3, var(--bg));
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 14ch;
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
}

/* ---------- About page ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.story-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
}
.story-block.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #0A1628, #15314D);
  color: #fff;
  border: 0;
}
.story-block.featured p { color: rgba(255,255,255,.72); }
.story-block h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.story-block p { color: var(--muted); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.value-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.value-card h3 {
  font-size: 1.15rem;
  margin: 16px 0 10px;
}
.value-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Services page ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: 0; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-visual {
  border-radius: 28px;
  min-height: 280px;
  padding: 40px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.service-visual.v1 { background: linear-gradient(145deg, #0F766E, #0A1628); }
.service-visual.v2 { background: linear-gradient(145deg, #1E3A5F, #0A1628); }
.service-visual.v3 { background: linear-gradient(145deg, #C2410C, #0A1628); }
.service-visual.v4 { background: linear-gradient(145deg, #115E59, #134E4A); }
.service-visual.v5 { background: linear-gradient(145deg, #9A3412, #0A1628); }
.service-visual.v6 { background: linear-gradient(145deg, #0E7490, #0A1628); }

.service-visual.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-visual.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,.15), rgba(10,22,40,.78));
}
.service-visual h3 {
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
}
.service-detail-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.service-detail-copy p {
  color: var(--muted);
  margin-bottom: 14px;
}
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.form-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}
.form-intro p { color: var(--muted); margin-bottom: 24px; }
.form-points { display: grid; gap: 12px; }
.form-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.form-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  flex-shrink: 0;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.form-group-title {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 8px 0 18px;
  padding-top: 8px;
}
.form-group-title:first-child { padding-top: 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.field label .req { color: var(--coral); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #F8FAFC;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-bright);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}
.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--coral);
}
.field .error-msg {
  display: none;
  color: var(--coral);
  font-size: 0.8rem;
  margin-top: 6px;
}
.field.error .error-msg { display: block; }

.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 20px;
}
.checkbox-field input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}
.checkbox-field label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.checkbox-field a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form-actions .btn[disabled] {
  opacity: .7;
  cursor: wait;
  transform: none;
}

.form-message {
  display: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.form-message.show { display: block; }
.form-message.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.form-message.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: .85; }

/* ---------- Legal ---------- */
.legal-content {
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
}
.legal-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 12px;
}
.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-content li {
  list-style: disc;
  margin-bottom: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
}
.contact-info {
  display: grid;
  gap: 16px;
  align-content: start;
}
.contact-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.contact-tile h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.contact-tile p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.contact-link {
  color: var(--teal) !important;
  font-weight: 600;
  word-break: break-word;
}
.contact-link:hover { text-decoration: underline; }

.map-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 420px;
}
.map-actions {
  margin-top: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: #fff;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand-name,
.footer-brand .brand-sub { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-brand p {
  margin-top: 18px;
  color: rgba(255,255,255,.55);
  font-size: 0.92rem;
  max-width: 36ch;
}
.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.footer-contact a {
  color: var(--teal-bright);
  font-size: 0.92rem;
  font-weight: 600;
}
.footer-contact a:hover { color: #fff; }
.footer-address {
  color: rgba(255,255,255,.55) !important;
  font-size: 0.88rem !important;
  line-height: 1.55;
  margin-bottom: 14px !important;
  display: block;
}
.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
  font-family: var(--font);
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.72);
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom {
  padding-top: 24px;
  color: rgba(255,255,255,.4);
  font-size: 0.88rem;
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}



.step-num {
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.step:hover .step-num {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--teal-bright);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.2);
}

.page-photo img,
.partners-photo img,
.visual-band-media img,
.hero-media img {
  transition: transform .8s var(--ease);
}
.page-photo:hover img,
.partners-photo:hover img,
.visual-band-media:hover img {
  transform: scale(1.04);
}

.service-visual.has-photo img {
  transition: transform .7s var(--ease);
}
.service-detail:hover .service-visual.has-photo img {
  transform: scale(1.06);
}

.final-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 7s linear infinite;
  pointer-events: none;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg);
  transition: left .55s var(--ease);
}
.btn-primary:hover::after { left: 120%; }

.nav > a:not(.btn) {
  position: relative;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav > a:not(.btn):hover::after,
.nav > a:not(.btn).active::after {
  transform: scaleX(1);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-left {
  transform: translateX(-36px);
}
.reveal-right {
  transform: translateX(36px);
}
.reveal-scale {
  transform: scale(.94);
}
.reveal.in.reveal-left,
.reveal.in.reveal-right,
.reveal.in.reveal-scale {
  transform: none;
}

.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: .08s; }
.stagger > .reveal:nth-child(3) { transition-delay: .16s; }
.stagger > .reveal:nth-child(4) { transition-delay: .24s; }
.stagger > .reveal:nth-child(5) { transition-delay: .32s; }
.stagger > .reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .slide.is-active .slide-content h1,
  .slide.is-active .slide-content p,
  .slide.is-active .slide-content .eyebrow,
  .slide.is-active .slide-content .hero-ctas,
  .slide-media img,
  .final-cta-inner::before {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
  .slider-progress-bar { transition: none !important; }
  .btn:hover { transform: none; }
  .page-photo:hover img,
  .partners-photo:hover img,
  .visual-band-media:hover img,
  .service-detail:hover .service-visual.has-photo img {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .about-preview,
  .form-layout,
  .contact-grid,
  .service-detail,
  .service-detail.reverse,
  .visual-band-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .highlight-grid { grid-template-columns: 1fr 1fr; }
  .hero-slider,
  .slider-track { min-height: min(78vh, 640px); }
  .slide { padding: 100px 0 120px; align-items: center; }
  .partners-photo,
  .page-photo { aspect-ratio: 16 / 9; }
  .form-intro { position: static; }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps::before { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .service-card,
  .service-card.wide { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255,255,255,.98);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s var(--ease), opacity .35s;
  }
  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav > a:not(.btn) {
    padding: 14px 16px;
    border-radius: 12px;
  }
  .nav .btn-nav {
    margin: 12px 0 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .slide-content h1 { max-width: none; }
  .hero-slider,
  .slider-track { min-height: 620px; }
  .split-partners,
  .story-grid,
  .why-grid,
  .values-grid,
  .form-grid,
  .steps,
  .about-stats {
    grid-template-columns: 1fr;
  }
  .service-card,
  .service-card.wide { grid-column: span 12; }
  .split-card { padding: 36px 28px; min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}
