@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s ease both vt-out; }
::view-transition-new(root) { animation: 0.45s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@property --vit-mx { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --vit-my { syntax: '<percentage>'; inherits: false; initial-value: 30%; }

:root {
  --vit-bg: #FBF7F0;
  --vit-surface: #FFFFFF;
  --vit-tone: #0F5C5A;
  --vit-tone-hover: #0A4543;
  --vit-ink: #1A1A2A;
  --vit-ink-soft: #4A4F5C;
  --vit-warm: #E9B24E;
  --vit-coral: #A8432E;
  --vit-plum: #5B3A6E;
  --vit-mint: #DDEFEA;
  --vit-night: #0E2F2F;
  --vit-gradient: linear-gradient(135deg, #0F5C5A 0%, #2E8F87 100%);
  --vit-lift: 0 20px 60px rgba(0, 0, 0, 0.15);
  --vit-raise: 0 8px 24px rgba(0, 0, 0, 0.10);
  --vit-heavy: 0 30px 80px rgba(0, 0, 0, 0.20);
  --vit-radius: 16px;
  --vit-section: 10dvh;
  --font-display: 'Merriweather', 'Noto Naskh Arabic', Tahoma, Arial, serif;
  --font-body: 'Lato', 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--vit-bg);
  color: var(--vit-ink);
  line-height: 1.75;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.35;
  margin: 0 0 0.6em;
  color: var(--vit-ink);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--vit-tone); }
img { max-width: 100%; height: auto; display: block; }
ol, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--vit-warm); outline-offset: 3px; }

.vit-wrap { width: min(1180px, 92%); margin-inline: auto; }
.vit-center { text-align: center; }
.vit-sec { padding-block: var(--vit-section); position: relative; overflow: clip; }
.vit-sec-tint { background: var(--vit-mint); }
.vit-lead { font-size: 1.15rem; color: var(--vit-ink-soft); max-width: 60ch; }
.vit-kicker { display: inline-block; color: var(--vit-tone); font-weight: 700; letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.vit-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.vit-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--vit-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.vit-head-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  width: min(1180px, 92%);
  margin-inline: auto;
}
.vit-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--vit-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.vit-mark-bg { fill: var(--vit-tone); }
.vit-mark-leaf { fill: var(--vit-warm); }
.vit-menu-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.vit-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.vit-burger span:not(.vit-sr) {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--vit-ink);
  border-radius: 2px;
}
.vit-nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.vit-nav-list a {
  text-decoration: none;
  color: var(--vit-ink);
  font-weight: 700;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.vit-nav-list a:hover,
.vit-nav-list a[aria-current="page"] {
  color: var(--vit-tone);
  border-color: var(--vit-tone);
}
.vit-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .vit-progress {
    display: block;
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 3px;
    background: var(--vit-tone);
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: vit-progress-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes vit-progress-grow { to { transform: scaleX(1); } }

/* Hero */
.vit-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: clip;
  isolation: isolate;
}
.vit-hero-photo {
  position: absolute;
  inset: 0;
  background: url("img/bg.webp") center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.vit-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 247, 240, 0.90), rgba(251, 247, 240, 0.78));
  z-index: 0;
  pointer-events: none;
}
.vit-hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--vit-mx) var(--vit-my), rgba(15, 92, 90, 0.35), transparent 45%),
    radial-gradient(circle at calc(100% - var(--vit-mx)) 70%, rgba(233, 178, 78, 0.35), transparent 42%),
    radial-gradient(circle at 40% var(--vit-my), rgba(46, 143, 135, 0.25), transparent 50%);
  animation: vit-mesh-drift 24s ease-in-out infinite alternate;
}
@keyframes vit-mesh-drift {
  0% { --vit-mx: 15%; --vit-my: 25%; }
  50% { --vit-mx: 60%; --vit-my: 55%; }
  100% { --vit-mx: 85%; --vit-my: 20%; }
}
.vit-hero-stack {
  position: relative;
  z-index: 1;
  padding-block: 6rem 4rem;
}
.vit-stack-card {
  background: var(--vit-surface);
  color: var(--vit-ink);
  border-radius: var(--vit-radius);
  box-shadow: var(--vit-raise);
  padding: 1.2rem 1.5rem;
  font-weight: 700;
}
.vit-stack-back,
.vit-stack-mid {
  position: absolute;
  width: min(300px, 60%);
  z-index: 1;
}
.vit-stack-back {
  top: 1.5rem;
  inset-inline-start: 0;
  transform: rotate(-4deg);
  opacity: 0.92;
}
.vit-stack-mid {
  top: 4rem;
  inset-inline-end: 0;
  z-index: 2;
  transform: rotate(3deg);
}
.vit-stack-front {
  position: relative;
  z-index: 3;
  width: min(560px, 100%);
  margin-inline-start: auto;
  margin-block-start: 3rem;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}
.vit-stack-front h1 { margin-bottom: 0.8rem; }
.vit-stack-front p { color: var(--vit-ink-soft); }

/* Buttons (static; hover color and tiny scale only) */
.vit-action {
  display: inline-block;
  background: var(--vit-tone);
  color: #FFFFFF;
  padding: 0.9rem 2rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 92, 90, 0.3);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.vit-action:hover {
  background: var(--vit-tone-hover);
  transform: scale(1.03);
}
.vit-action:active { transform: scale(0.98); }

/* Split + frames */
.vit-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.vit-frame {
  margin: 0;
  border-radius: var(--vit-radius);
  overflow: hidden;
  background: var(--vit-surface);
  padding: 0.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.vit-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--vit-radius) - 4px);
}
@supports (animation-timeline: view()) {
  .vit-clip {
    animation: vit-clip-open linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}
@keyframes vit-clip-open {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.vit-raised {
  background: var(--vit-surface);
  box-shadow: var(--vit-raise);
  padding: 2.5rem;
  border-radius: 12px;
}

/* Lift grid (features / includes) */
.vit-lift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}
.vit-lift-grid--plain { margin-top: 0; }
.vit-lift-card {
  height: 100%;
  background: var(--vit-surface);
  border-radius: var(--vit-radius);
  padding: 2rem;
  box-shadow: var(--vit-lift);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.vit-lift-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}
.vit-lift-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--vit-mint);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.vit-lift-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--vit-tone);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps pills */
.vit-steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vit-step-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--vit-surface);
  border-radius: 999px;
  padding: 1.5rem 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  max-width: 360px;
}
.vit-step-pill h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.vit-step-pill p { margin: 0; font-size: 0.95rem; color: var(--vit-ink-soft); }
.vit-step-num {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vit-warm);
  color: var(--vit-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
}

/* CTA strip */
.vit-cta-strip {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding-block: var(--vit-section);
  background: var(--vit-night);
}
.vit-cta-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 47, 47, 0.88), rgba(14, 47, 47, 0.94)),
    url("img/bg2.webp") center / cover no-repeat;
}
.vit-cta-panel {
  position: relative;
  z-index: 1;
  width: min(65%, 780px);
  margin-inline: auto;
  background: var(--vit-surface);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.vit-cta-panel p { color: var(--vit-ink-soft); }

/* Principles (about) */
.vit-principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.vit-principle {
  background: var(--vit-surface);
  border-inline-start: 6px solid var(--vit-tone);
  padding: 1.5rem 1.75rem;
  border-radius: var(--vit-radius);
  box-shadow: var(--vit-raise);
}
.vit-principle p { margin: 0; color: var(--vit-ink-soft); }

/* Page hero (about, reserve) */
.vit-page-hero {
  background: var(--vit-mint);
  padding-block: calc(var(--vit-section) * 0.8) var(--vit-section);
  text-align: center;
}
.vit-page-hero .vit-wrap { max-width: 880px; }
.vit-page-hero .vit-lead { margin-inline: auto; }

/* Info cards (reserve) */
.vit-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.vit-info-card {
  background: var(--vit-surface);
  border-radius: var(--vit-radius);
  padding: 2rem;
  box-shadow: var(--vit-raise);
}
.vit-info-card p { color: var(--vit-ink-soft); }
.vit-num-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.vit-num-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.vit-dot {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}
.vit-num-list li:nth-child(1) .vit-dot { background: var(--vit-tone); }
.vit-num-list li:nth-child(2) .vit-dot { background: var(--vit-coral); }
.vit-num-list li:nth-child(3) .vit-dot { background: var(--vit-plum); }
.vit-num-list li:nth-child(4) .vit-dot { background: var(--vit-warm); color: var(--vit-ink); }

/* Form (reserve) */
.vit-form {
  max-width: 720px;
  margin-inline: auto;
  background: var(--vit-surface);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}
.vit-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.vit-field label { font-weight: 700; }
.vit-field input,
.vit-field textarea {
  font: inherit;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #C9CED6;
  border-radius: 12px;
  background: #FCFCFD;
  color: var(--vit-ink);
}
.vit-field input:focus,
.vit-field textarea:focus {
  outline: none;
  border-color: var(--vit-tone);
  box-shadow: 0 0 0 3px rgba(15, 92, 90, 0.2);
}
.vit-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.vit-consent input {
  flex: none;
  margin-top: 0.45rem;
  width: 20px;
  height: 20px;
  accent-color: var(--vit-tone);
}
.vit-consent label { font-weight: 400; }

/* FAQ (reserve) */
.vit-faq-wrap { max-width: 860px; }
.vit-faq-item {
  background: var(--vit-surface);
  border-radius: var(--vit-radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--vit-raise);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vit-faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--vit-lift);
}
.vit-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
}
.vit-faq-item p { margin: 0.8rem 0 0; color: var(--vit-ink-soft); }

/* Thanks */
.vit-thanks {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: var(--vit-section);
}

/* Documents (privacy, terms) */
.vit-doc-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: calc(var(--vit-section) * 0.8);
}
.vit-doc { max-width: 860px; }
.vit-doc h1 { margin-bottom: 1.5rem; }
.vit-doc-block { margin-bottom: 2.25rem; }
.vit-doc-block p { color: var(--vit-ink-soft); }

/* Footer */
.vit-foot {
  background: var(--vit-night);
  color: #F3F7F6;
  padding-block: 3rem 2rem;
}
.vit-foot a { color: #F3F7F6; }
.vit-foot .vit-brand { color: #F3F7F6; }
.vit-foot-inner { display: grid; gap: 1.2rem; }
.vit-foot-disclaimer {
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
}
.vit-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.vit-foot-copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
}

/* Cookie banner */
[hidden] { display: none !important; }
.vit-cookie {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: var(--vit-surface);
  color: var(--vit-ink);
  padding: 1rem 1.5rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}
.vit-cookie p { margin: 0; }
.vit-cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.vit-cookie-btn {
  font: inherit;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--vit-tone);
  background: var(--vit-tone);
  color: #FFFFFF;
  cursor: pointer;
}
.vit-cookie-btn--ghost {
  background: var(--vit-surface);
  color: var(--vit-tone);
}
.vit-cookie-btn:hover { background: var(--vit-tone-hover); color: #FFFFFF; }
.vit-cookie-btn--ghost:hover { background: var(--vit-mint); color: var(--vit-tone-hover); }

/* Reveal (JS adds .js on <html>; without JS content stays visible) */
.js .vit-rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--vit-delay, 0ms);
}
.js .vit-rise.is-in {
  opacity: 1;
  transform: none;
}
.js .vit-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
  transition-delay: var(--vit-delay, 0ms);
}
.js .vit-fade.is-in { opacity: 1; }

/* Responsive */
@media (max-width: 960px) {
  .vit-split { grid-template-columns: 1fr; gap: 2rem; }
  .vit-lift-grid,
  .vit-info-grid { grid-template-columns: 1fr; }
  .vit-lift-grid { margin-top: 0; }
  .vit-principle-grid { grid-template-columns: 1fr; }
  .vit-cta-panel { width: 100%; padding: 2.2rem 1.5rem; }
}
@media (max-width: 760px) {
  .vit-burger { display: flex; }
  .vit-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--vit-surface);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    padding: 0.6rem 0;
  }
  .vit-menu-check:checked ~ .vit-nav { display: block; }
  .vit-nav-list {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }
  .vit-nav-list a {
    display: block;
    padding: 0.8rem;
  }
  .vit-step-pill { padding: 1.2rem 1.5rem; }
}
@media (max-width: 600px) {
  .vit-hero-stack { padding-top: 5rem; }
  .vit-stack-back { display: none; }
  .vit-stack-mid { width: 48%; font-size: 0.85rem; padding: 0.8rem 1rem; }
  .vit-stack-front { padding: 1.5rem; margin-block-start: 2.5rem; }
  .vit-raised { padding: 1.5rem; }
  .vit-form { padding: 1.5rem; }
  .vit-steps-row { flex-direction: column; align-items: center; }
  .vit-cookie { padding: 0.9rem 1rem; }
}
@media (min-width: 1200px) {
  .vit-hero-stack { padding-top: 7rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { view-transition-name: none; }
  .js .vit-rise,
  .js .vit-fade {
    opacity: 1;
    transform: none;
  }
}