/* =========================================================
   MAYDAN — CORE STYLESHEET
   Brand: orange #EA751A / dark olive #434936 / charcoal #1E1A16
   Display: VTF Justina HUM | Labels/UI: Saira SemiBold | Body: Saira Medium
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Saira:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap");

@font-face {
  font-family: "VTF Justina HUM";
  src: url("../fonts/VTFJustinaHUM-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VTF Justina HUM";
  src: url("../fonts/VTFJustinaHUM-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VTF Justina HUM";
  src: url("../fonts/VTFJustinaHUM-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --color-orange: #ea751a;
  --color-orange-dark: #c25f11;
  --color-olive: #434936;
  --color-olive-light: #5a6148;
  --color-adventure: #948f5d;
  --color-brown: #59442a;
  --color-brown-light: #74593a;
  --color-charcoal: #1e1a16;
  --color-charcoal-soft: #2a251f;
  --color-cream: #f2f1ed;
  --color-cream-dim: #d8d5cb;
  --color-ink: #17150f;

  /* Type */
  --font-display: "VTF Justina HUM", "Arial Narrow", Impact, sans-serif;
  --font-label: "Saira", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Saira", "Segoe UI", Tahoma, sans-serif;

  /* Layout */
  --container: 1600px;
  --header-h: 96px;
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-orange);
}
.eyebrow.on-light { color: var(--color-orange-dark); }

h1, .h1, h2, .h2, h3, .h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
}
.h1 { font-size: clamp(2.6rem, 5.4vw, 5.4rem); }
.h2 { font-size: clamp(2.1rem, 3.4vw, 3.4rem); }
.h3 { font-size: clamp(1.3rem, 1.7vw, 1.7rem); }

.section-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  font-weight: 400;
  color: inherit;
  max-width: 700px;
}
.section-lead.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 52px;
  border-radius: 2px;
  background: transparent;
  border: 1.5px solid var(--color-cream);
  color: var(--color-cream);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-cream);
}
.btn-solid,
.btn-outline {
  background: transparent;
  border-color: var(--color-cream);
  color: var(--color-cream);
}
.btn-solid:hover,
.btn-outline:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-cream);
}
.btn-outline.on-dark-olive { border-color: rgba(242,241,237,0.7); }
.btn-invert-hover:hover {
  background: var(--color-cream);
  border-color: var(--color-cream);
  color: var(--color-orange);
}
.btn-ghost-ink {
  background: transparent;
  border-color: rgba(23, 21, 15, 0.35);
  color: var(--color-ink);
}
.btn-ghost-ink:hover { border-color: var(--color-orange); background: var(--color-orange); color: var(--color-cream); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
  transition: background-color 0.35s var(--ease), height 0.35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(30, 26, 22, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  height: 76px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { display: flex; align-items: center; gap: 40px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), opacity .25s var(--ease);
  opacity: 0.92;
}
.main-nav a:hover { opacity: 1; color: var(--color-orange); border-color: var(--color-orange); }
.main-nav a.is-active { border-color: var(--color-orange); opacity: 1; }

.has-dropdown { position: relative; }
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: var(--color-charcoal);
  border: 1px solid rgba(242,241,237,0.1);
  border-radius: var(--radius-sm);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: block;
  padding: 10px 14px;
  border-bottom: none;
  border-radius: 3px;
  opacity: 0.85;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--color-orange); color: var(--color-cream); opacity: 1; }

/* Header language switch is hidden until an Arabic site exists. The EN/AR
   toggle on the CEO's Message page is separate and stays active. */
.lang-toggle { display: none !important; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--color-cream);
  border: 1px solid rgba(242,241,237,0.35);
  padding: 5px 11px;
  border-radius: 2px;
  opacity: 0.85;
  cursor: default;
  margin-top: -4px;
}

.nav-close { display: none; }
.nav-toggle {
  display: none;
  width: 26px; height: 20px;
  position: relative;
  background: none; border: none;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--color-cream);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span:nth-child(1){ top:0; }
.nav-toggle span:nth-child(2){ top:9px; }
.nav-toggle span:nth-child(3){ top:18px; }
.nav-open .nav-toggle span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2){ opacity:0; }
.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--color-cream);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(15,14,10,0.55) 0%, rgba(15,14,10,0.25) 40%, rgba(15,14,10,0.65) 100%);
}
/* Footage carries more motion and brightness than a still, so the hero video
   needs a heavier scrim to keep the headline legible. */
.hero.has-video::after {
  background: linear-gradient(to bottom, rgba(15,14,10,0.72) 0%, rgba(15,14,10,0.52) 40%, rgba(15,14,10,0.8) 100%);
}
.page-clients .hero::after {  background: linear-gradient(to bottom, rgba(15,14,10,0.72) 0%, rgba(15,14,10,0.45) 40%, rgba(15,14,10,0.82) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  padding: 0 32px;
  margin-top: var(--header-h);
}
.hero .eyebrow { display: block; margin-bottom: 18px; color: var(--color-orange); }
.hero h1 { margin-bottom: 22px; }
.hero.hero-home h1, .hero.hero-lg h1 { font-size: clamp(3.6rem, 8vw, 8rem); }

.page-upcoming .hero { background-position: 42% center; }
/* Mountain hero: bias toward the peak, and sit the frame high so the ridge
   rises behind the eyebrow rather than sinking below it */
.page-contact .hero { background-position: 58% center; }

/* Community page: logo-only hero, orange ticker strip */
.community-hero-logo {
  width: 320px;
  max-width: 65vw;
  height: auto;
  display: block;
  margin: 0 auto;
}
.ticker-strip {
  background: var(--color-orange);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-strip-track {
  display: flex;
  width: max-content;
  animation: tickerStripRTL 22s linear infinite;
}
.ticker-strip-track span {
  flex: 0 0 auto;
  padding: 0 42px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  color: var(--color-ink);
  white-space: nowrap;
  position: relative;
}
.ticker-strip-track span::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ink);
  opacity: 1;
}
@keyframes tickerStripRTL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-strip-track { animation: none; }
}

.hero .section-lead { margin: 0 auto; color: var(--color-cream-dim); }
.hero .hero-cta { margin-top: 34px; }
.hero-sm { min-height: 64vh; }

/* =========================================================
   SECTIONS
   ========================================================= */
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-pad-sm { padding: 70px 0; }

.bg-cream { background: var(--color-cream); color: var(--color-ink); }
.bg-olive { background: var(--color-olive); color: var(--color-cream); }
.bg-charcoal { background: var(--color-charcoal); color: var(--color-cream); }
.bg-brown { background: var(--color-brown); color: var(--color-cream); }

.section-head { max-width: 820px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head h2 { margin-bottom: 18px; }

/* Vision / Mission - mountain ridgelines */
.vm-section {
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 110px;
}
.ridge-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: flex-end;
}
.ridge-svg {
  width: 100%;
  height: 100%;
}
.ridge-fill {
  stroke: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.ridge-fill-far  { fill: rgba(23,21,15,0.018); transition-delay: 0.2s; }
.ridge-fill-mid  { fill: rgba(23,21,15,0.025);  transition-delay: 0.5s; }
.ridge-fill-near { fill: rgba(23,21,15,0.035);  transition-delay: 0.8s; }
.vm-section.is-visible .ridge-fill {
  opacity: 1;
  transform: translateY(0);
}

.ridge-line,
.ridge-spur {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}
.ridge-line {
  stroke: rgba(23,21,15,0.1);
  stroke-width: 1.8;
}
.ridge-spur {
  stroke: rgba(23,21,15,0.065);
  stroke-width: 1.1;
}
.vm-section.is-visible .ridge-line,
.vm-section.is-visible .ridge-spur {
  animation: ridgeDraw 2.2s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes ridgeDraw {
  to { stroke-dashoffset: 0; }
}

.vm-box {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 60px 56px;
}
.vm-box + .vm-box { padding-top: 40px; }
.vm-box h2 {
  color: var(--color-orange);
  margin-bottom: 22px;
}
.vm-statement {
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1.7;
  color: var(--color-ink);
  max-width: 620px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .vm-box { padding: 16px 24px 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .ridge-line, .ridge-spur { stroke-dashoffset: 0; animation: none; }
  .ridge-fill { opacity: 1; transform: none; transition: none; }
}


.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.value-card {
  padding: 34px 30px;
  border: 1px solid rgba(242,241,237,0.12);
  border-radius: var(--radius-md);
  background: rgba(242,241,237,0.03);
}
.value-card-spacious {
  text-align: center;
  padding: 64px 56px;
}
.value-card-spacious .value-num { margin-left: auto; margin-right: auto; }
.value-card-spacious p {
  max-width: 380px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
}
.value-grid-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1080px;
  margin: 0 auto;
}
.value-card .value-num {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-orange);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.value-card p { color: var(--color-cream-dim); font-size: 0.95rem; }

/* Vision 2030 priorities table */
.vision-table-section { padding-top: 20px; }
.vision-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(23,21,15,0.12);
  border-radius: var(--radius-md);
}
.vision-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.vision-table thead th {
  background: var(--color-charcoal);
  color: var(--color-cream);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 20px 26px;
}
.vision-table thead th:first-child { border-top-left-radius: var(--radius-md); }
.vision-table thead th:last-child { border-top-right-radius: var(--radius-md); }
.vision-table tbody td {
  padding: 22px 26px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(23,21,15,0.8);
  border-bottom: 1px solid rgba(23,21,15,0.1);
  vertical-align: top;
}
.vision-table tbody tr:last-child td { border-bottom: none; }
.vision-table tbody td:first-child {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}
.vision-table tbody tr:nth-child(even) { background: rgba(23,21,15,0.02); }

@media (max-width: 760px) {
  .vision-table thead { display: none; }
  .vision-table, .vision-table tbody, .vision-table tr, .vision-table td { display: block; width: 100%; }
  .vision-table tbody td { white-space: normal; border-bottom: none; padding: 6px 20px; }
  .vision-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-top: 14px;
    margin-bottom: 4px;
  }
  .vision-table tbody tr { border-bottom: 1px solid rgba(23,21,15,0.1); padding-bottom: 10px; }
  .vision-table tbody tr:last-child { border-bottom: none; }
}

/* Vision 2030 logo section */
/* Vision 2030 commitment section (black bg, single-item ticker) */
.vision-commitment-section {
  text-align: center;
}
.vision-commitment-lead {
  max-width: 780px;
  margin: 0 auto 50px;
  font-size: clamp(1.15rem, 1.45vw, 1.45rem);
  line-height: 1.7;
  color: var(--color-cream);
}
.single-ticker-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 750px;
  margin: 0 auto;
}
.single-ticker-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 0; height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.single-ticker-arrow-left { left: 0; border-left: 18px solid var(--color-orange); }
.single-ticker-arrow-right { right: 0; border-right: 18px solid var(--color-orange); }
.single-ticker-box {
  background: rgba(242,241,237,0.04);
  border-radius: var(--radius-md);
  padding: 32px 44px;
  overflow: hidden;
  width: 100%;
}
.single-ticker {
  position: relative;
  height: 70px;
  overflow: hidden;
}
.single-ticker-track {
  display: flex;
  flex-direction: column;
  animation: singleTicker 9s linear infinite;
}
.single-ticker-item {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.85rem, 2.55vw, 2.55rem);
  color: var(--color-cream);
  white-space: nowrap;
}

@keyframes singleTicker {
  0%    { transform: translateY(0px); }
  24.4% { transform: translateY(0px); }
  28.3% { transform: translateY(-70px); }
  52.7% { transform: translateY(-70px); }
  56.6% { transform: translateY(-140px); }
  81.0% { transform: translateY(-140px); }
  84.9% { transform: translateY(-210px); }
  100%  { transform: translateY(-210px); }
}

@media (max-width: 760px) {
  .single-ticker-box { min-width: 0; padding: 22px 20px; }
  .single-ticker-arrow { display: none; }
}

.vision-logo-section { padding-top: 70px; padding-bottom: 40px; }
.vision-logo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
}
.vision-logo-figure {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vision-logo-figure img {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* Text-heavy article pages (CEO Message, Vision 2030) */
body.no-hero .site-header {
  background: rgba(30,26,22,0.94);
  backdrop-filter: saturate(140%) blur(6px);
}
.article-section { padding: 110px 0 70px; }
.article-section-first { padding-top: 150px; }
.article-title {
  color: var(--color-ink);
  margin: 16px 0 22px;
}
.article-body .article-subtitle {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  margin-bottom: 26px;
}
.article-subtitle .line-ink,
.article-subtitle .line-orange {
  display: block;
  margin-bottom: 14px;
}
.article-subtitle .line-orange { margin-bottom: 0; }
.article-subtitle .line-ink { color: rgba(23,21,15,0.78); }
.article-subtitle .line-orange { color: var(--color-orange); }
.article-body { max-width: 740px; margin: 0 auto; }
.article-intro-grid.article-body {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.article-intro-grid > div:last-child {
  margin-top: clamp(70px, 10vw, 120px);
}
.article-intro-grid .article-title { margin: 16px 0 22px; }
.article-body p {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.8;
  color: rgba(23,21,15,0.78);
  margin-bottom: 26px;
}
.article-body h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 50px 0 20px;
  color: var(--color-ink);
}
.article-signature {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(23,21,15,0.12);
}
.article-signature .name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--color-ink);
  margin-bottom: 6px;
}
.article-signature .role {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
}

/* Language toggle (EN / AR) */
.article-lang-toggle {
  max-width: 740px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.lang-btn {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(23,21,15,0.45);
  background: transparent;
  border: 1px solid rgba(23,21,15,0.16);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}
.lang-btn.is-active {
  color: var(--color-cream);
  background: var(--color-orange);
  border-color: var(--color-orange);
}
.lang-panel { display: none; }
.lang-panel.is-active { display: block; }
.lang-panel[dir="rtl"] {
  font-family: "Cairo", "Tahoma", sans-serif;
  text-align: right;
}
.lang-panel[dir="rtl"] .article-title {
  font-family: "Cairo", "Tahoma", sans-serif;
  font-weight: 900;
  margin-bottom: 42px;
}
.lang-panel[dir="rtl"] .article-signature .name {
  font-family: "Cairo", "Tahoma", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: none;
}
.lang-panel[dir="rtl"] .article-signature .role {
  font-family: "Cairo", "Tahoma", sans-serif;
  font-weight: 600;
}


/* Two-tone split (Training / Adventures) */
/* CEO photo intro layout (photo left, first paragraphs right) */
.article-photo-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 26px;
}
.article-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-photo-intro-text p:last-child { margin-bottom: 0; }
.lang-panel[dir="rtl"] .article-photo-intro {
  grid-template-columns: 0.85fr 1.15fr;
}

@media (max-width: 760px) {
  .article-photo-intro { grid-template-columns: 1fr; }
  .article-photo { max-width: 260px; margin: 0 auto 20px; }
}

.split-panels { display: grid; grid-template-columns: 1fr 1fr; }
.split-panel {
  position: relative;
  padding: 90px 48px;
  text-align: center;
  overflow: hidden;
}
.split-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--panel-texture);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}
.split-panel.training { background: var(--color-brown); color: var(--color-cream); }
.split-panel.adventures { background: var(--color-olive); color: var(--color-cream); }
.split-panel h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); margin-bottom: 40px; position: relative; }
.panel-program { margin-bottom: 34px; position: relative; }
.panel-program .ring {
  width: 58px; height: 58px; margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--ring-color, var(--color-orange));
  display: flex; align-items: center; justify-content: center;
}
.panel-program .ring::before {
  content: "";
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--ring-color, var(--color-orange));
  display: block;
}
.panel-program p {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.split-panel .btn { position: relative; margin-top: 10px; }

/* Service / program cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.service-card {
  background: rgba(23,21,15,0.02);
  border: 1px solid rgba(23,21,15,0.1);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(23,21,15,0.08);
  border-color: rgba(234,117,26,0.35);
}
.service-card .ring {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid var(--color-orange);
  display: flex; align-items: center; justify-content: center;
}
.service-card .ring::before {
  content: ""; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--color-orange);
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; color: rgba(23,21,15,0.7); }

/* Photo card grid (services overview / adventures programs) */
.photo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.photo-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.photo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,14,10,0.85) 0%, rgba(15,14,10,0.1) 55%, rgba(15,14,10,0) 100%);
}
.photo-card-label {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2;
  color: var(--color-cream);
}
.photo-card-label .eyebrow { font-size: 11px; margin-bottom: 6px; }
.photo-card-label h3 { font-size: 1.2rem; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.team-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-olive);
}
.team-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: filter .35s var(--ease), transform .5s var(--ease);
}
.team-card:hover img { filter: grayscale(0); transform: scale(1.04); }
.team-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.88) 28%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.15) 82%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.team-card .team-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  color: var(--color-cream);
  z-index: 1;
}
.team-card .team-rank {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 6px;
}
.team-card .team-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 6px;
}
.team-card .team-title {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-cream);
}
.team-card .team-hover-reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.team-card:hover .team-hover-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Client logo grid */
.client-grid {
  display: grid;
  /* minmax(0, 1fr) rather than 1fr: a grid column's implicit minimum is its
     content width, and several logo files are 2000-5000px wide, which forced
     the whole grid past the screen edge. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 100%;
  gap: 1px;
  background: rgba(242,241,237,0.08);
  border: 1px solid rgba(242,241,237,0.08);
}
.client-tile {
  background: var(--color-charcoal);
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
  transition: background 0.35s var(--ease);
}
.client-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.6;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.client-tile:hover {
  background: var(--color-cream);
}
.client-tile:hover img {
  filter: none;
  opacity: 1;
}
/* Logos with dark/black text need to be forced to white by default to read
   against the charcoal background; hover reveals true brand color on cream. */
.client-tile.is-dark img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.client-tile.is-dark:hover img {
  filter: none;
  opacity: 1;
}
/* Logos that sit optically small in their tile */
.client-tile.is-large {
  padding: 14px;
}

/* CTA band (Book Now) */
.cta-band {
  position: relative;
  padding: 130px 0 110px;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-cream);
  background-size: cover;
  background-position: center;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,14,10,0.48), rgba(15,14,10,0.66));
}
/* Homepage strip: sit lower so the rock faces dominate rather than the peaks */
.page-home .cta-band { background-position: center 78%; }

.page-training .cta-band::after {
  background: linear-gradient(to bottom, rgba(15,14,10,0.42), rgba(15,14,10,0.58));
}
.page-about .cta-band {
  /* Team photo sits in the upper portion so the headline never crosses a face */
  background-position: center top;
}
.cta-band .cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cta-band .eyebrow { margin-bottom: 14px; display: block; }
.cta-band h2 { margin-bottom: 30px; }
.cta-band .btn { align-self: center; }

/* Contact layout */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form > .form-field-grow { flex: 1; display: flex; flex-direction: column; }
.contact-form > .form-field-grow textarea { flex: 1; }
.maydan-form { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(23,21,15,0.7);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(23,21,15,0.22);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.98rem;
  color: var(--color-ink);
  transition: border-color .2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  /* Deliberately not orange: too close to red, which reads as an error. */
  border-color: rgba(23,21,15,0.72);
  box-shadow: 0 0 0 3px rgba(23,21,15,0.07);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.textarea-sm { min-height: 92px; }
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(23,21,15,0.35);
  font-size: 0.92rem;
}

.contact-forms {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
}
.form-panel {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
}
.form-panel-primary {
  border-top: 4px solid var(--color-orange);
}
#contact-form { padding-top: 72px; }
.form-panel > .eyebrow { display: block; margin-bottom: 12px; }
.form-panel-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
  color: var(--color-ink);
  margin: 0 0 12px;
}
.form-panel-lead {
  color: rgba(23,21,15,0.65);
  margin: 0 0 32px;
  max-width: 46ch;
}

.form-field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  opacity: 0.65;
}
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(23,21,15,0.22);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.98rem;
  color: var(--color-ink);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(23,21,15,0.5) 50%),
                    linear-gradient(135deg, rgba(23,21,15,0.5) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color .2s var(--ease);
}
.form-field select:focus {
  outline: none;
  border-color: rgba(23,21,15,0.72);
  box-shadow: 0 0 0 3px rgba(23,21,15,0.07);
}

/* Yes / no pairs */
.form-choice { border: 0; padding: 0; margin: 0; }
.form-choice legend {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(23,21,15,0.7);
}
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 10px;
  border: 1px solid rgba(23,21,15,0.22);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(23,21,15,0.7);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:hover { border-color: rgba(23,21,15,0.4); }
.choice:has(input:checked) {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
}
.choice:has(input:focus-visible) { outline: 2px solid rgba(23,21,15,0.6); outline-offset: 2px; }

/* The shared .btn-solid is cream-on-transparent, built for dark hero panels,
   which is invisible on the white form cards. Submits sit neutral charcoal at
   rest and pick up the brand orange on hover. */
.form-submit,
.form-modal-close {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-cream);
}
.form-submit:hover,
.form-modal-close:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-cream);
}
.form-submit { justify-self: start; }
.form-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(23,21,15,0.55);
  margin: 0;
}
.form-status { margin: 0; font-size: 0.92rem; font-weight: 600; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: #2e6b3f; }
.maydan-form.is-sending .form-submit { opacity: 0.6; pointer-events: none; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

@media (max-width: 980px) {
  .contact-forms { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .form-panel { padding: 32px 24px; }
}

/* Consistent eyebrow/heading spacing outside the .section-head wrapper */
.overview-left > .eyebrow,
.philosophy-left > .eyebrow,
.ops-grid > .reveal > .eyebrow,
.core-values-grid > .reveal > .eyebrow,
.expertise-left > .eyebrow {
  margin-bottom: 14px;
  display: block;
}
.overview-left > h2,
.philosophy-left > h2,
.ops-grid > .reveal > h2,
.core-values-grid > .reveal > h2,
.expertise-left > h2 {
  margin-bottom: 18px;
}

/* Company Overview / stat counter section */
.overview-section {
  background-color: var(--color-orange);
  color: var(--color-cream);
  padding: 120px 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.overview-left .section-lead { max-width: 460px; color: rgba(255,255,255,0.88); }
.overview-right { position: relative; padding-right: 26px; }
.stat-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.stat-rows { display: flex; flex-direction: column; }
.stat-row {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
}
.stat-row:last-child { border-bottom: none; }
.stat-icon { color: var(--color-cream); flex-shrink: 0; width: 40px; height: 40px; }
.stat-icon svg { width: 100%; height: 100%; display: block; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
  color: var(--color-cream);
}
.stat-prefix { font-size: 0.55em; vertical-align: 6%; }
.stat-label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-top: 6px;
}
.stat-divider {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 0;
  border-right: 2px dashed rgba(255,255,255,0.55);
  transform: scaleY(0);
  transform-origin: top;
}

/* Core Values: two-column layout with vertical word ticker */
.core-values-section { padding-top: 100px; padding-bottom: 100px; }
.core-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.core-values-section .section-lead { max-width: 460px; }

.values-ticker-window {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  margin-right: calc(-1 * max(32px, (100vw - var(--container)) / 2 + 32px));
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.15) 14%,
    rgba(0,0,0,0.45) 24%, rgba(0,0,0,0.45) 34%,
    rgba(0,0,0,1) 42%, rgba(0,0,0,1) 58%,
    rgba(0,0,0,0.45) 66%, rgba(0,0,0,0.45) 76%,
    rgba(0,0,0,0.15) 86%, rgba(0,0,0,0.15) 100%);
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.15) 14%,
    rgba(0,0,0,0.45) 24%, rgba(0,0,0,0.45) 34%,
    rgba(0,0,0,1) 42%, rgba(0,0,0,1) 58%,
    rgba(0,0,0,0.45) 66%, rgba(0,0,0,0.45) 76%,
    rgba(0,0,0,0.15) 86%, rgba(0,0,0,0.15) 100%);
}
.values-ticker-highlight {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  height: 20%;
  background: rgba(0,0,0,0.22);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  pointer-events: none;
  z-index: 1;
}
.values-ticker-pointer {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 20px solid var(--color-orange);
  z-index: 2;
}
.values-ticker-track {
  display: flex;
  flex-direction: column;
  animation: valuesTicker 10.8s linear infinite;
}
.values-ticker-item {
  position: relative;
  z-index: 2;
  height: 100px;
  display: flex;
  align-items: center;
  padding-left: 40px;
  color: var(--color-cream);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  white-space: nowrap;
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  line-height: 1;
}

@keyframes valuesTicker {
  0% { transform: translateY(0px); }
  12.04% { transform: translateY(0px); }
  16.67% { transform: translateY(-100px); }
  28.7% { transform: translateY(-100px); }
  33.33% { transform: translateY(-200px); }
  45.37% { transform: translateY(-200px); }
  50.0% { transform: translateY(-300px); }
  62.04% { transform: translateY(-300px); }
  66.67% { transform: translateY(-400px); }
  78.7% { transform: translateY(-400px); }
  83.33% { transform: translateY(-500px); }
  95.37% { transform: translateY(-500px); }
  100.0% { transform: translateY(-600px); }
}

@media (prefers-reduced-motion: reduce) {
  .values-ticker-track { animation: none; }
}

/* Expertise section */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.expertise-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-cream);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
}
.expertise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--color-orange);
}

.expertise-badge {
  display: block;
  margin-top: 8px;
  padding: 20px 0;
  background: rgba(0,0,0,0.16);
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 640px;
  overflow: hidden;
}
.expertise-ticker {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.expertise-ticker-track {
  display: flex;
  align-items: center;
  gap: 50px;
  width: max-content;
  animation: marqueeLTR 26s linear infinite;
}
.expertise-ticker:hover .expertise-ticker-track {
  animation-play-state: paused;
}
.expertise-logo-item {
  flex: 0 0 auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expertise-logo-item img {
  height: 100%;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.7;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.expertise-logo-item img.logo-nyit {
  max-height: 74%;
}
.expertise-logo-item img.logo-penn {
  max-height: 80%;
}
.expertise-logo-item img.logo-ilm {
  max-height: 78%;
  max-width: 132px;
}
/* ILM ships with a near-black wordmark, so a cream-text variant is used here.
   Hover reveals it at full strength with the dot cluster in true brand colour. */
.expertise-logo-item:hover img.logo-ilm {
  filter: none;
  opacity: 1;
}
.expertise-logo-item:hover img {
  filter: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .expertise-ticker-track { animation: none; }
}


.philosophy-section {
  background-color: var(--color-cream);
  color: var(--color-ink);
  padding: 40px 0 110px;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.philosophy-left .section-lead {
  max-width: 500px;
  font-size: 1rem;
}
.philosophy-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cycle-diagram {
  width: 100%;
  max-width: 520px;
  height: auto;
  overflow: visible;
}
.cyc-arc {
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.cyc-arrow {
  fill: var(--color-orange);
}
.cyc-node {
  fill: var(--color-orange);
  stroke: var(--color-cream);
  stroke-width: 3;
}
.cyc-node-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  fill: var(--color-cream);
}
.cyc-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  fill: var(--color-ink);
}
.cyc-center {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: rgba(23,21,15,0.55);
}

/* Sequenced reveal: nodes and arcs animate in following the cycle's flow order */
.cyc-fade-group {
  opacity: 0;
  transform: scale(0.85);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.35s var(--ease) var(--seq-delay, 0s), transform 0.35s var(--ease) var(--seq-delay, 0s);
}
.cyc-diagram-reveal.is-visible .cyc-fade-group {
  opacity: 1;
  transform: scale(1);
}
.cyc-arc {
  stroke-dasharray: var(--seq-len, 160);
  stroke-dashoffset: var(--seq-len, 160);
  transition: stroke-dashoffset 0.35s var(--ease) var(--seq-delay, 0s);
}
.cyc-diagram-reveal.is-visible .cyc-arc {
  stroke-dashoffset: 0;
}
.cyc-arrow {
  opacity: 0;
  transition: opacity 0.25s var(--ease) var(--seq-delay, 0s);
}
.cyc-diagram-reveal.is-visible .cyc-arrow {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cyc-fade-group, .cyc-arc, .cyc-arrow { transition: none; }
}

/* Adventure topography intro section */
.page-adventures {
  --color-orange: #948f5d;
  --color-orange-dark: #7d7a4e;
}
.adventure-topo-section {
  position: relative;
  background: var(--color-olive);
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.topo-bg-tile {
  position: absolute;
  inset: 0;
  background-image: url('../images/adventures/topo-bg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}
.topo-png-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.topo-png-shape {
  position: absolute;
  display: block;
  transform: rotate(var(--rot, 0deg));
}

.topo-drift-a { animation: topoDriftA 24s ease-in-out infinite; }
.topo-drift-b { animation: topoDriftB 30s ease-in-out infinite; }
.topo-drift-c { animation: topoDriftC 27s ease-in-out infinite; }
.topo-drift-d { animation: topoDriftD 33s ease-in-out infinite; }

@keyframes topoDriftA {
  0%   { transform: rotate(var(--rot, 0deg)) translate(0px, 0px); }
  20%  { transform: rotate(var(--rot, 0deg)) translate(38px, -30px); }
  45%  { transform: rotate(var(--rot, 0deg)) translate(15px, -52px); }
  70%  { transform: rotate(var(--rot, 0deg)) translate(-30px, 22px); }
  100% { transform: rotate(var(--rot, 0deg)) translate(0px, 0px); }
}
@keyframes topoDriftB {
  0%   { transform: rotate(var(--rot, 0deg)) translate(0px, 0px); }
  30%  { transform: rotate(var(--rot, 0deg)) translate(-42px, 34px); }
  55%  { transform: rotate(var(--rot, 0deg)) translate(-10px, 55px); }
  80%  { transform: rotate(var(--rot, 0deg)) translate(32px, -18px); }
  100% { transform: rotate(var(--rot, 0deg)) translate(0px, 0px); }
}
@keyframes topoDriftC {
  0%   { transform: rotate(var(--rot, 0deg)) translate(0px, 0px); }
  25%  { transform: rotate(var(--rot, 0deg)) translate(36px, 30px); }
  50%  { transform: rotate(var(--rot, 0deg)) translate(50px, -8px); }
  75%  { transform: rotate(var(--rot, 0deg)) translate(-20px, -34px); }
  100% { transform: rotate(var(--rot, 0deg)) translate(0px, 0px); }
}
@keyframes topoDriftD {
  0%   { transform: rotate(var(--rot, 0deg)) translate(0px, 0px); }
  35%  { transform: rotate(var(--rot, 0deg)) translate(-34px, -40px); }
  65%  { transform: rotate(var(--rot, 0deg)) translate(28px, -14px); }
  85%  { transform: rotate(var(--rot, 0deg)) translate(14px, 36px); }
  100% { transform: rotate(var(--rot, 0deg)) translate(0px, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  .topo-drift-a, .topo-drift-b, .topo-drift-c, .topo-drift-d { animation: none; }
}

.adventure-topo-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}
.adventure-topo-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-cream);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
  margin: 0;
  text-shadow: 0 4px 30px rgba(15,14,10,0.4);
}

/* Training Services: stacked reveal panels + floating background icons */
.training-services-section {
  position: relative;
  overflow: hidden;
}

.ts-panel:hover {
  transform: scale(1.07);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .ts-panel { transition: none; }
}

.ts-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 70px;
}
.ts-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  /* Panels share one height so the image column fills edge to edge and every
     box in the stack lines up. Raised with the wider container. */
  min-height: 520px;
  background: rgba(242,241,237,0.03);
  border: 1px solid rgba(242,241,237,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.ts-panel-left {
  position: relative;
  padding: 46px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ts-panel-left h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1.9vw, 1.9rem);
  color: var(--color-cream);
  margin: 10px 0 16px;
  line-height: 1.05;
}
.ts-panel-left p {
  margin-top: 0;
  color: var(--color-cream-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 22px;
}
.ts-bullets-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,241,237,0.5);
  margin-bottom: 14px;
}
.ts-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ts-bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--color-cream);
  font-size: 0.95rem;
  line-height: 1.5;
}
.ts-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  margin: auto 0;
  width: 0; height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7px solid var(--color-orange);
}
/* Large program numeral replacing the small eyebrow label */
.ts-panel-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 3.8vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-orange);
  margin-bottom: 14px;
}
.page-adventures .ts-panel-num { color: var(--color-adventure); }

.nowrap { white-space: nowrap; }

.ts-panel-right {
  position: relative;
  height: 100%;
}
.ts-panel-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .ts-panel { grid-template-columns: 1fr; min-height: 0; }
  .ts-panel-right { order: -1; height: auto; aspect-ratio: 4 / 3; }
  .ts-panel-left { padding: 32px 26px; }
}


/* Training Methodology diagram (brown sub-brand) */
.training-diagram {
  width: 100%;
  max-width: 560px;
  height: auto;
  overflow: visible;
}
.tm-connector {
  fill: none;
  stroke: rgba(242,241,237,0.7);
  stroke-width: 1.8;
}
.tm-arrow {
  fill: rgba(242,241,237,0.7);
}
.tm-connector-title {
  stroke: var(--color-orange);
}
.tm-arrow-title {
  fill: var(--color-orange);
}
.tm-box {
  fill: rgba(242,241,237,0.03);
  stroke: rgba(242,241,237,0.55);
  stroke-width: 1.6;
}
.tm-box-title {
  fill: rgba(234,117,26,0.08);
  stroke: var(--color-orange);
  stroke-width: 2;
}
.tm-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  fill: var(--color-cream);
}
.tm-label-title {
  fill: var(--color-orange);
}

/* Sequenced reveal: boxes and connectors animate in following the cycle's flow order */
.tm-box-group {
  opacity: 0;
  transform: scale(0.9);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.3s var(--ease) var(--seq-delay, 0s), transform 0.3s var(--ease) var(--seq-delay, 0s);
}
.tm-diagram-reveal.is-visible .tm-box-group {
  opacity: 1;
  transform: scale(1);
}
.tm-connector {
  stroke-dasharray: var(--seq-len, 100);
  stroke-dashoffset: var(--seq-len, 100);
  transition: stroke-dashoffset 0.3s var(--ease) var(--seq-delay, 0s);
}
.tm-diagram-reveal.is-visible .tm-connector {
  stroke-dashoffset: 0;
}
.tm-arrow {
  opacity: 0;
  transition: opacity 0.2s var(--ease) var(--seq-delay, 0s);
}
.tm-diagram-reveal.is-visible .tm-arrow {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tm-box-group, .tm-connector, .tm-arrow { transition: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
}

/* Our Partners ticker */
.partners-section {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 100px 0 96px;
  overflow: hidden;
}
.partners-section .section-head {
  margin-bottom: 50px;
}
.partners-ticker {
  overflow: hidden;
  width: 100%;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 76px;
  width: max-content;
  animation: marqueeRTL 34s linear infinite;
}
.partners-ticker:hover .partners-track {
  animation-play-state: paused;
}
.partner-logo {
  flex: 0 0 auto;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  height: 100%;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.55;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.partner-logo:hover img {
  filter: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
}

/* Services preview marquee */
.services-preview-section {
  background: var(--color-cream);
  color: var(--color-ink);
  padding: 110px 0 100px;
  overflow: hidden;
}
.services-preview-section .section-head {
  margin-bottom: 64px;
}

.marquee-row {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  margin-bottom: 14px;
}
.marquee-row:last-child { margin-bottom: 0; }

.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
}
.marquee-row.marquee-ltr .marquee-track {
  animation: marqueeLTR 42s linear infinite;
}
.marquee-row.marquee-rtl .marquee-track {
  animation: marqueeRTL 42s linear infinite;
}
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeLTR {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@keyframes marqueeRTL {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.service-box {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 210px;
  padding: 30px 20px;
  text-align: center;
  background: rgba(23, 21, 15, 0.025);
  border: 1px solid rgba(23, 21, 15, 0.1);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-box:hover {
  z-index: 2;
  transform: scale(1.07);
  box-shadow: 0 16px 34px rgba(23, 21, 15, 0.1);
}
.service-box-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Icons are inlined SVG and inherit the box colour through currentColor */
.service-box-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.svc-training { color: var(--color-orange); }
.svc-adventures { color: var(--color-adventure); }
.service-box-name {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--color-ink);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row.marquee-ltr .marquee-track,
  .marquee-row.marquee-rtl .marquee-track {
    animation: none;
  }
}

/* Operating Stations interactive map */
.ops-section {
  background-color: var(--color-charcoal);
  background-image: radial-gradient(rgba(242,241,237,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--color-cream);
  padding: 110px 0;
  overflow: hidden;
}
.ops-grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 40px;
  align-items: center;
}
.ops-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
}
.ops-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 48%, transparent 86%);
  mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 48%, transparent 86%);
}
.ops-map-svg .map-other {
  fill: #1e1a16;
  opacity: 0.9;
  stroke: #000;
  stroke-width: 2;
  stroke-linejoin: round;
}
.ops-map-svg .map-gcc {
  fill: #383838;
  opacity: 0.95;
  stroke: #000;
  stroke-width: 2;
  stroke-linejoin: round;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 2;
}
.map-marker .dot {
  position: absolute;
  top: 2px; left: 2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  z-index: 3;
}
.map-marker .pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--color-orange);
  opacity: 0;
  animation: radarPulse 3s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.map-marker .pulse-ring-2 { animation-delay: 1.5s; }

@keyframes radarPulse {
  0% { transform: scale(0.5); opacity: 0.55; }
  75% { opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.marker-leader {
  position: absolute;
  left: 6px; top: -24px;
  overflow: visible;
  pointer-events: none;
}
.map-marker.label-left .marker-leader { left: -294px; }
.marker-leader polyline {
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--line-len, 54);
  stroke-dashoffset: var(--line-len, 54);
  transition: stroke-dashoffset 0.6s var(--ease);
}
.map-marker:hover .marker-leader polyline,
.map-marker:focus-visible .marker-leader polyline,
.map-marker.is-active .marker-leader polyline { stroke-dashoffset: 0; }

.marker-label {
  position: absolute;
  left: 20px; top: -36px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease) 0.3s, transform 0.35s var(--ease) 0.3s;
  pointer-events: none;
  text-align: left;
}
.map-marker.label-left .marker-label { left: auto; right: 20px; text-align: right; }
.map-marker:hover .marker-label,
.map-marker:focus-visible .marker-label,
.map-marker.is-active .marker-label { opacity: 1; transform: translateY(0); }

.country-name {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cream);
}
.country-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--color-cream-dim);
  margin-top: 3px;
}

/* GCC map / operating stations */
.map-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.map-figure { border-radius: var(--radius-md); overflow: hidden; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream-dim);
  padding: 76px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(242,241,237,0.1);
}
.footer-brand img { height: 50px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; max-width: 280px; color: rgba(216,213,203,0.75); }
.footer-col h4 {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(216,213,203,0.8); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--color-orange); }
.icon-orange { color: var(--color-orange); flex-shrink: 0; }
.footer-col a.icon-link { display: inline-flex; align-items: center; gap: 10px; }
/* Commercial registration: a factual detail, set quieter than the contact
   links above it and not styled as something tappable. */
.footer-cr {
  margin: -8px 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(242,241,237,0.45);
}

.footer-social { display: flex; gap: 14px; margin-top: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(242,241,237,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), opacity .2s var(--ease),
              border-color .2s var(--ease), background .2s var(--ease);
  opacity: 0.9;
}
.footer-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--color-orange);
  background: rgba(234,117,26,0.1);
}
.footer-bottom {
  padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(216,213,203,0.55);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--color-orange); }

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-fade.is-visible { opacity: 1; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

.reveal-right {
  opacity: 0;
  transform: translateX(56px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-line {
  transition: transform 1.15s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-line.is-visible { transform: scaleY(1); }

/* Stagger children automatically within a reveal-group */
.reveal-group.is-visible > * { }

/* Hero entrance (plays on load, not on scroll) */
.hero-inner .eyebrow,
.hero-inner h1,
.hero-inner .section-lead,
.hero-inner .hero-cta {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-inner.is-loaded .eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.hero-inner.is-loaded h1 { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.hero-inner.is-loaded .section-lead { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.hero-inner.is-loaded .hero-cta { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }

/* Stagger helpers for grid items */
.value-grid > .reveal:nth-child(1),
.card-grid > .reveal:nth-child(1),
.photo-card-grid > .reveal:nth-child(1),
.team-grid > .reveal:nth-child(1),
.stat-grid > .reveal:nth-child(1) { --reveal-delay: 0s; }
.value-grid > .reveal:nth-child(2),
.card-grid > .reveal:nth-child(2),
.photo-card-grid > .reveal:nth-child(2),
.team-grid > .reveal:nth-child(2),
.stat-grid > .reveal:nth-child(2) { --reveal-delay: 0.08s; }
.value-grid > .reveal:nth-child(3),
.card-grid > .reveal:nth-child(3),
.photo-card-grid > .reveal:nth-child(3),
.team-grid > .reveal:nth-child(3),
.stat-grid > .reveal:nth-child(3) { --reveal-delay: 0.16s; }
.value-grid > .reveal:nth-child(4),
.card-grid > .reveal:nth-child(4),
.photo-card-grid > .reveal:nth-child(4),
.team-grid > .reveal:nth-child(4),
.stat-grid > .reveal:nth-child(4) { --reveal-delay: 0.24s; }
.value-grid > .reveal:nth-child(5),
.card-grid > .reveal:nth-child(5),
.photo-card-grid > .reveal:nth-child(5) { --reveal-delay: 0.32s; }
.value-grid > .reveal:nth-child(6),
.card-grid > .reveal:nth-child(6),
.photo-card-grid > .reveal:nth-child(6) { --reveal-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade, .reveal-scale, .reveal-right, .reveal-line,
  .hero-inner .eyebrow, .hero-inner h1, .hero-inner .section-lead, .hero-inner .hero-cta {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .map-marker .pulse-ring { animation: none; opacity: 0; }
}


@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid, .photo-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 78px; }
  .container { padding: 0 20px; }
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: var(--color-charcoal);
    flex-direction: column; align-items: flex-start;
    padding: 30px 28px; gap: 24px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav-open .main-nav { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
  .dropdown-panel { position: static; transform: none; opacity:1; visibility:visible; display:none; min-width: 0; margin-top: 10px; background: transparent; border: none; padding-left: 14px; }
  .has-dropdown.is-open .dropdown-panel { display: block; }
  .nav-toggle { display: block; }
  .lang-toggle { margin-top: 10px; }

  .split-panels, .stat-grid, .value-grid, .card-grid, .photo-card-grid, .team-grid, .map-section, .contact-grid, .form-row, .overview-grid, .ops-grid, .philosophy-grid, .stat-columns, .core-values-grid, .expertise-grid, .vision-logo-grid, .article-intro-grid { grid-template-columns: 1fr; }
  .article-intro-grid > div:last-child { margin-top: 20px; }
  .overview-right { padding-right: 0; margin-top: 20px; }
  .stat-divider { display: none; }
  .ops-map-wrap { margin-top: 30px; }
  .service-box { width: 160px; padding: 22px 14px; }
  .services-preview-section { padding: 70px 0; }
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-pad { padding: 70px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Page transition overlay (Training / Adventures sub-brand splash) */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
  will-change: transform, filter;
}
.page-transition-overlay.pt-training { background: var(--color-brown); }
.page-transition-overlay.pt-adventures { background: var(--color-olive); }
.page-transition-overlay.pt-community { background: var(--color-charcoal); }
.page-transition-overlay.pt-community img { width: 190px; max-width: 46vw; }

.page-transition-overlay.pt-static {
  visibility: visible;
  pointer-events: all;
  transform: translateY(0%);
}
.page-transition-overlay.pt-enter {
  visibility: visible;
  pointer-events: all;
  animation: ptSwipeIn 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.page-transition-overlay.pt-exit {
  visibility: visible;
  pointer-events: all;
  animation: ptSwipeOut 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes ptSwipeIn {
  0%   { transform: translateY(100%); filter: blur(0px); }
  45%  { filter: blur(9px); }
  100% { transform: translateY(0%); filter: blur(0px); }
}
@keyframes ptSwipeOut {
  0%   { transform: translateY(0%); filter: blur(0px); }
  45%  { filter: blur(9px); }
  100% { transform: translateY(-100%); filter: blur(0px); }
}

.page-transition-overlay img {
  width: 220px;
  max-width: 55vw;
  height: auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.page-transition-overlay.pt-logo img {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-overlay,
  .page-transition-overlay img {
    animation: none !important;
    transition-duration: 0.01s;
  }
}

/* Testimonials slider (Clients page) */
.testimonials-section {
  overflow: hidden;
}
.testimonial-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 60px;
}
.testimonial-arrow {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(23,21,15,0.14);
  background: transparent;
  color: rgba(23,21,15,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.testimonial-arrow:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: rgba(234,117,26,0.06);
}
.testimonial-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.testimonial-slide {
  display: none;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: center;
}
.testimonial-slide.is-active {
  display: grid;
}
.testimonial-quote-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--color-orange);
  margin-bottom: -10px;
}
.testimonial-quote {
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  line-height: 1.6;
  color: var(--color-ink);
  margin-bottom: 26px;
}
.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial-name {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-ink);
}
.testimonial-role {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
}
/* Company logo sits beneath the company name, where the flag used to be */
.testimonial-logo {
  height: 46px;
  max-width: 160px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
}
.testimonial-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* Square logos read smaller than wide wordmarks at the same height, so they
   get more room to sit at a matching optical weight. */
.testimonial-logo-tall {
  height: 66px;
  max-width: 90px;
}

@media (max-width: 520px) {
  .testimonial-logo { height: 36px; max-width: 120px; }
  .testimonial-logo-tall { height: 52px; max-width: 72px; }
}
.testimonial-media {
  position: relative;
}
.testimonial-video {
  position: relative;
  /* Testimonials are filmed vertically on phones, so the frame is portrait
     and the slide gives the text column the wider share. */
  aspect-ratio: 3/4;
  max-height: 460px;
  margin-left: auto;
  width: auto;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(23,21,15,0.85), rgba(23,21,15,0.65));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.testimonial-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 1;
}
/* Controls only appear once the visitor has chosen to play */
.testimonial-video:not(.is-playing) .testimonial-video-el {
  pointer-events: none;
}
.testimonial-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23,21,15,0.28);
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.testimonial-video.is-playing::after { opacity: 0; }
.testimonial-video.is-playing .testimonial-play { opacity: 0; pointer-events: none; }
.testimonial-play {
  position: relative;
  z-index: 1;
  transition: transform 0.25s var(--ease), opacity 0.3s var(--ease);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: none;
  background: var(--color-orange);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.testimonial-play:hover { transform: scale(1.08); }

/* Position counter instead of dots: the set runs to 15+, where a dot row
   becomes noise rather than navigation. */
.testimonial-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.testimonial-counter-current {
  font-size: 1.25rem;
  color: var(--color-orange);
}
.testimonial-counter-sep,
.testimonial-counter-total {
  font-size: 0.95rem;
  color: rgba(23,21,15,0.4);
}

@media (max-width: 760px) {
  .testimonial-slide { grid-template-columns: 1fr; gap: 26px; }
  /* Video sits below the quote on mobile, not above it */
  .testimonial-media { order: 2; }
  .testimonial-text { order: 1; }
  .testimonial-slider { gap: 12px; }
  .testimonial-arrow { width: 40px; height: 40px; }
  .testimonial-quote-mark { font-size: 4rem; }
}

/* Community: Purpose section with animated court-line diagrams */
.purpose-section {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
}
.court-diagrams {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.court-diagram {
  position: absolute;
  width: min(1100px, 92vw);
  height: auto;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.court-diagram.is-active { opacity: 1; }
.court-line {
  fill: none;
  stroke: rgba(242,241,237,0.08);
  stroke-width: 2;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.8s var(--ease);
}
.court-diagram.is-active .court-line { stroke-dashoffset: 0; }

.purpose-box {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 70px 60px;
}
.purpose-box h2 {
  margin-bottom: 22px;
}
.purpose-text {
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1.7;
  color: var(--color-cream);
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .purpose-box { padding: 50px 28px; }
}

/* Community: Upcoming Events slider */
.testimonial-slide.events-slide {
  grid-template-columns: none;
}
.testimonial-slide.events-slide.is-active {
  display: block;
}
.event-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
}
/* Per-card framing: the copy sits on the left, so each subject is pushed to
   the right of the frame. Lower percentages shift the image right. */
.event-card.card-masterclass { background-position: center center; }
.event-card.card-sales       { background-position: 2% 4%; }
.event-card.card-queens      { background-position: center center; }

.event-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,14,10,0.95) 0%, rgba(15,14,10,0.8) 38%, rgba(15,14,10,0.2) 75%, rgba(15,14,10,0) 100%);
}
.event-card-overlay {
  position: relative;
  z-index: 1;
  padding: 46px 50px;
  max-width: 540px;
}
.event-sub {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 12px;
}
.event-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-cream);
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  margin-bottom: 14px;
}
.event-desc {
  color: rgba(242,241,237,0.82);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 20px;
}
/* Triangle divider, matching the program bullet marker */
/* Triangle divider, optically centred on the cap height of the label text */
.event-sub {
  display: inline-flex;
  align-items: center;
}
.event-sub-sep {
  flex: 0 0 auto;
  width: 0; height: 0;
  margin: 0 12px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--color-orange);
}
.event-footer {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}
.event-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--color-orange);
  border: 1.5px solid var(--color-orange);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  white-space: nowrap;
}
.testimonial-arrow[hidden] { display: none; }

.event-labels {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 26px;
}
.event-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
  color: rgba(242,241,237,0.85);
  background: rgba(242,241,237,0.1);
  border: 1px solid rgba(242,241,237,0.22);
  border-radius: 999px;
  padding: 6px 12px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.event-label:hover {
  background: rgba(242,241,237,0.22);
  border-color: rgba(242,241,237,0.4);
  color: var(--color-cream);
}
/* "Coming Soon" occupies the price slot. Declared after .event-price so the
   grey treatment overrides the orange. */
.event-price-soon {
  color: rgba(242,241,237,0.6);
  border-color: rgba(242,241,237,0.3);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-btn { display: inline-block; }

@media (max-width: 760px) {
  .event-card { min-height: 380px; }
  .event-card-overlay { padding: 32px 26px; }
}

/* Upcoming page: "endless opportunities" headline with orange word ticker */
.endless-section {
  text-align: center;
}
.endless-heading {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-cream);
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.endless-heading-line2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.28em;
  margin-top: 4px;
}
.word-ticker {
  display: block;
  position: relative;
  height: 60px;
  overflow: hidden;
}
.word-ticker-track {
  display: flex;
  flex-direction: column;
  animation: wordTicker 15s linear infinite;
}
.word-ticker-item {
  height: 60px;
  line-height: 60px;
  color: var(--color-orange);
  text-align: left;
  white-space: nowrap;
}

@keyframes wordTicker {
  0.00%  { transform: translateY(0px); }
  13.67% { transform: translateY(0px); }
  16.67% { transform: translateY(-60px); }
  30.33% { transform: translateY(-60px); }
  33.33% { transform: translateY(-120px); }
  47.00% { transform: translateY(-120px); }
  50.00% { transform: translateY(-180px); }
  63.67% { transform: translateY(-180px); }
  66.67% { transform: translateY(-240px); }
  80.33% { transform: translateY(-240px); }
  83.33% { transform: translateY(-300px); }
  97.00% { transform: translateY(-300px); }
  100%   { transform: translateY(-360px); }
}

@media (max-width: 760px) {
  .word-ticker,
  .word-ticker-item {
    height: 42px;
    line-height: 42px;
  }
  @keyframes wordTicker {
    0.00%  { transform: translateY(0px); }
    13.67% { transform: translateY(0px); }
    16.67% { transform: translateY(-42px); }
    30.33% { transform: translateY(-42px); }
    33.33% { transform: translateY(-84px); }
    47.00% { transform: translateY(-84px); }
    50.00% { transform: translateY(-126px); }
    63.67% { transform: translateY(-126px); }
    66.67% { transform: translateY(-168px); }
    80.33% { transform: translateY(-168px); }
    83.33% { transform: translateY(-210px); }
    97.00% { transform: translateY(-210px); }
    100%   { transform: translateY(-252px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-ticker-track { animation: none; }
}

/* Community: Initiatives section */
.initiatives-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.initiatives-intro {
  position: sticky;
  top: 140px;
}
.initiatives-intro .eyebrow { display: block; margin-bottom: 14px; }
.initiatives-intro h2 { margin-bottom: 18px; }
.committee-box {
  margin-top: 40px;
  background: var(--color-orange);
  border-radius: var(--radius-md);
  padding: 18px;
}
.committee-box-inner {
  --guide-color: rgba(242,241,237,0.85);
  --guide-thickness: 2px;
  --guide-length: 34px;
  height: 100%;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  background-image:
    linear-gradient(var(--guide-color), var(--guide-color)),
    linear-gradient(var(--guide-color), var(--guide-color)),
    linear-gradient(var(--guide-color), var(--guide-color)),
    linear-gradient(var(--guide-color), var(--guide-color)),
    linear-gradient(var(--guide-color), var(--guide-color)),
    linear-gradient(var(--guide-color), var(--guide-color)),
    linear-gradient(var(--guide-color), var(--guide-color)),
    linear-gradient(var(--guide-color), var(--guide-color));
  background-position:
    0 0, 0 0,
    100% 0, 100% 0,
    0 100%, 0 100%,
    100% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-size:
    0 var(--guide-thickness), var(--guide-thickness) 0,
    0 var(--guide-thickness), var(--guide-thickness) 0,
    0 var(--guide-thickness), var(--guide-thickness) 0,
    0 var(--guide-thickness), var(--guide-thickness) 0;
  transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.committee-box:hover .committee-box-inner,
.committee-box:focus-within .committee-box-inner {
  background-size:
    var(--guide-length) var(--guide-thickness), var(--guide-thickness) var(--guide-length),
    var(--guide-length) var(--guide-thickness), var(--guide-thickness) var(--guide-length),
    var(--guide-length) var(--guide-thickness), var(--guide-thickness) var(--guide-length),
    var(--guide-length) var(--guide-thickness), var(--guide-thickness) var(--guide-length);
}

@media (prefers-reduced-motion: reduce) {
  .committee-box-inner { transition-duration: 0.01s; }
}
.committee-box-text {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  line-height: 1.15;
  color: var(--color-cream);
  margin: 0;
}
.committee-box-btn {
  border: 1.5px solid var(--color-cream);
  color: var(--color-cream);
  background: transparent;
}
.committee-box-btn:hover {
  background: var(--color-cream);
  color: var(--color-orange-dark);
  border-color: var(--color-cream);
}

.initiatives-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.initiative-box {
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(23,21,15,0.045);
  border-radius: var(--radius-md);
  padding: 26px 32px;
}
.initiative-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--color-orange);
  line-height: 1;
}
.initiative-name {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-ink);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .initiatives-grid { grid-template-columns: 1fr; }
  .initiatives-intro { position: static; margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .initiative-box { padding: 20px 22px; gap: 16px; }
  .initiative-num { font-size: 2rem; }
  .initiative-name { font-size: 1.05rem; }
}

/* About: Guinness World Record section */
.guinness-section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.guinness-logo {
  display: block;
  width: 92px;
  height: auto;
  margin-bottom: 22px;
}
.ts-panel-left h3.guinness-title {
  font-size: clamp(1.9rem, 2.9vw, 2.9rem);
  line-height: 1.02;
  margin: 0 0 18px;
}
.guinness-slideshow {
  position: relative;
  overflow: hidden;
}
.guinness-slide {
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.guinness-slide:not(.is-active) {
  position: absolute;
  inset: 0;
}
.guinness-slide.is-active {
  opacity: 1;
  position: relative;
}


/* Invalid fields: flagged only once the browser has rejected them, never
   pre-emptively while the visitor is still typing. */
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.09);
}

/* ---- Required field marker ---- */
.form-field .req,
.form-choice .req {
  color: #c0392b;
  font-weight: 700;
  margin-left: 1px;
}

/* ---- Submission confirmation dialogue ---- */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.form-modal[hidden] { display: none; }
.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23,21,15,0.55);
  backdrop-filter: blur(3px);
  animation: fmFade 0.25s var(--ease) both;
}
.form-modal-panel {
  position: relative;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 46px 44px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(23,21,15,0.35);
  animation: fmRise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.form-modal-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  /* Green reads as confirmation; the error state switches to red below. */
  color: #2e7d4f;
}
.form-modal-mark svg { width: 100%; height: 100%; display: block; }
.fm-circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: fmDraw 0.6s var(--ease) 0.1s forwards;
}
.fm-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: fmDraw 0.35s var(--ease) 0.55s forwards;
}
/* The cross replaces the tick when the dialogue is in its error state */
.fm-cross {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  display: none;
}
.form-modal.is-error .fm-check { display: none; }
.form-modal.is-error .fm-cross {
  display: block;
  animation: fmDraw 0.3s var(--ease) forwards;
}
.form-modal.is-error .fm-cross-a { animation-delay: 0.5s; }
.form-modal.is-error .fm-cross-b { animation-delay: 0.65s; }
@keyframes fmDraw { to { stroke-dashoffset: 0; } }
@keyframes fmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fmRise {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.form-modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  line-height: 1.1;
  color: var(--color-ink);
  margin: 0 0 14px;
}
.form-modal-text {
  color: rgba(23,21,15,0.68);
  margin: 0 0 28px;
  font-size: 0.98rem;
  line-height: 1.6;
}
.form-modal.is-error .form-modal-mark { color: #c0392b; }

@media (prefers-reduced-motion: reduce) {
  .form-modal-panel, .form-modal-backdrop { animation: none; }
  .fm-circle, .fm-check, .fm-cross { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   MOBILE CORRECTIONS
   Headings used clamp() minimums sized for tablets, so on phones the minimum
   won, not the vw value — large text could not shrink and ran off screen.
   The unbreakable hero lines made that worse. Everything below narrows the
   type properly and closes the remaining sources of horizontal scroll.
   ========================================================================== */

/* Nothing may cause sideways scrolling */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 760px) {
  /* Hero: let the type scale right down, and allow the locked lines to wrap */
  .hero.hero-home h1,
  .hero.hero-lg h1,
  .hero h1 {
    font-size: clamp(2rem, 10.5vw, 3.4rem);
    line-height: 1.02;
  }
  .nowrap { white-space: normal; }

  /* Section headings */
  .h1 { font-size: clamp(1.9rem, 8.5vw, 2.9rem); }
  .h2 { font-size: clamp(1.55rem, 7vw, 2.3rem); }
  .h3 { font-size: clamp(1.15rem, 4.6vw, 1.45rem); }

  /* Long words in headings should break rather than overflow */
  h1, .h1, h2, .h2, h3, .h3, .article-title, .event-title {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  /* Values ticker bled past the viewport via a negative 100vw margin */
  .values-ticker-window {
    margin-right: 0;
    height: 360px;
    border-radius: var(--radius-md);
  }

  /* Two-column value grid */
  .value-grid-2col { grid-template-columns: 1fr; }

  /* Event cards: the subtitle could run wider than the card */
  .event-sub {
    flex-wrap: wrap;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .event-footer { flex-wrap: wrap; }

  /* Service ticker boxes and their icons */
  .service-box-icon { width: 34px; height: 34px; }

  /* Guinness and programme panels */
  .guinness-section { padding-top: 56px; padding-bottom: 56px; }
  .ts-panel-num { font-size: clamp(2rem, 9vw, 2.6rem); }

  /* Footer: stack the country blocks cleanly */
  .footer-top { gap: 34px; }
  .footer-social a { width: 44px; height: 44px; }

  /* Stop wide media from forcing the page wider */
  img, video, svg, iframe { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero.hero-home h1,
  .hero.hero-lg h1,
  .hero h1 { font-size: clamp(1.75rem, 10vw, 2.5rem); }
  .h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .h2 { font-size: clamp(1.4rem, 6.6vw, 1.9rem); }

  .container { padding-left: 18px; padding-right: 18px; }
  .section-pad { padding: 64px 0; }

  /* Testimonial video frame was capped by height, leaving it very small */
  .testimonial-video { aspect-ratio: 3/4; max-height: none; margin: 0 auto; }

  /* Event card copy */
  .event-card-overlay { padding: 28px 22px; }
  .event-title { font-size: clamp(1.35rem, 7vw, 1.8rem); }

  /* Tap targets */
  .btn { padding: 14px 22px; }
  .form-submit { width: 100%; text-align: center; }
}

/* ==========================================================================
   MOBILE CORRECTIONS — ROUND 2
   Scoped entirely to phone widths. Desktop and full-screen are untouched.
   ========================================================================== */

@media (max-width: 760px) {

  /* Dedicated close button inside the panel. The burger does morph into an X,
     but it sits in the header where it is easy to miss — this one is
     unmistakable and always in the same place. */
  .nav-close {
    display: flex;
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(242,241,237,0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--color-cream);
    cursor: pointer;
    z-index: 5;
    transition: border-color .2s var(--ease), background .2s var(--ease);
  }
  .nav-close:active {
    border-color: var(--color-orange);
    background: rgba(234,117,26,0.14);
  }

  /* 1 — Burger menu must cover the page regardless of scroll position.
     It was anchored below the header, so scrolling left content visible. */
  .main-nav {
    position: fixed;
    top: 0;
    height: 100dvh;
    padding-top: calc(var(--header-h) + 24px);
    z-index: 120;
  }
  .site-header { z-index: 130; }
  body.nav-open { overflow: hidden; }

  /* 3 — Sub-pages sat off screen on hover. Keep them in flow, indented
     beneath their parent and aligned to it. */
  .dropdown-panel {
    position: static;
    left: auto; right: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 4px 0 4px 16px;
    border-left: 1px solid rgba(242,241,237,0.16);
    background: transparent;
    box-shadow: none;
  }
  .dropdown-panel a {
    padding: 9px 0;
    display: block;
    white-space: normal;      /* long names wrapped off screen before */
  }

  /* The desktop hover rule re-applies translateX(-50%), and iOS fires hover on
     the first tap — which is what pushed the sub-menu off screen. Neutralise
     it at phone widths so the panel stays in flow under its parent. */
  .has-dropdown:hover .dropdown-panel,
  .has-dropdown:focus-within .dropdown-panel {
    transform: none;
    left: auto;
    right: auto;
    position: static;
    display: none;
  }
  .has-dropdown.is-open .dropdown-panel,
  .has-dropdown.is-open:hover .dropdown-panel,
  .has-dropdown.is-open:focus-within .dropdown-panel {
    display: block;
    transform: none;
    position: static;
  }

  /* 4 — Never hyphenate or split words across lines */
  h1, .h1, h2, .h2, h3, .h3,
  .article-title, .event-title, .adventure-topo-title,
  .endless-heading, .vm-statement, .section-lead, p, li, a {
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }
  /* Only break if a single word genuinely exceeds the line */
  h1, .h1, h2, .h2, .article-title, .event-title { overflow-wrap: break-word; }

  /* 6 — Values ticker: centre the highlight band on the active word */
  .values-ticker-window { height: 300px; }
  .values-ticker-item { height: 60px; padding-left: 0; justify-content: center; }
  .values-ticker-highlight { top: 50%; height: 60px; transform: translateY(-50%); }

  /* 7 — Expertise strip ran past the screen edge */
  .expertise-badge { max-width: 100%; padding: 16px 0; }
  .expertise-ticker-track { gap: 28px; }
  .expertise-logo-item { height: 30px; }
  .expertise-logo-item img { max-width: 92px; }

  /* 9 + 11 — Service panel images. aspect-ratio left the box at zero height
     on older mobile browsers, so the picture never appeared. */
  .ts-panel-right {
    order: -1;
    position: relative;
    height: 230px;
    aspect-ratio: auto;
    min-height: 230px;
  }
  .ts-panel-right img { position: absolute; inset: 0; height: 100%; width: 100%; }

  /* 14 — Event cards: darker overlay, more breathing space */
  .event-card { min-height: 460px; }
  .event-card::after {
    background: linear-gradient(to bottom,
      rgba(15,14,10,0.62) 0%, rgba(15,14,10,0.78) 55%, rgba(15,14,10,0.9) 100%);
  }
  .event-card-overlay { padding: 42px 30px; max-width: 100%; }
  .event-desc { margin-bottom: 26px; }

  /* 15 — Client logos: three to a row, always inside the screen */
  .client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }
  .client-tile {
    padding: 12px;
    min-width: 0;
    aspect-ratio: 1 / 1;   /* square reads better at three across */
  }
  .client-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; }

  /* 16 — Arrows sit either side of the 01/07 counter, in one control row
     below the slide. The counter is moved into the slider by main.js so the
     three can share a row; on desktop it moves back below. */
  .testimonial-slider {
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
  }
  .testimonial-track { order: 1; width: 100%; }
  .testimonial-arrow-prev { order: 2; }
  .testimonial-slider .testimonial-counter { order: 3; margin: 0; min-width: 76px; }
  .testimonial-arrow-next { order: 4; }
  .testimonial-arrow {
    position: static;
    width: 46px;
    height: 46px;
    transform: none;
  }
}

/* 2 — Vision 2030 ticker arrows were hidden on mobile; bring them back,
   sized to fit either side of the box. */
@media (max-width: 760px) {
  .single-ticker-arrow { display: block; }
  .single-ticker-arrow-left  { left: -2px; border-left-width: 12px; }
  .single-ticker-arrow-right { right: -2px; border-right-width: 12px; }
  .single-ticker-arrow {
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
  .single-ticker-box { padding: 22px 26px; }
}

/* 8 — CEO's Message: photo full width with the text beneath, identical in
   both languages. */
@media (max-width: 760px) {
  .article-photo-intro,
  .lang-panel[dir="rtl"] .article-photo-intro {
    display: block;
  }
  .article-photo {
    width: 100%;
    margin: 0 0 26px;
    border-radius: var(--radius-md);
  }
  .article-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .article-photo-intro-text { width: 100%; }
}

/* 10 — Adventures hook across two lines */
@media (max-width: 760px) {
  .adventure-topo-title { max-width: 12ch; margin-left: auto; margin-right: auto; }
}

/* 12 — Social Club: rotate the court diagrams upright so they suit a
   portrait screen. */
@media (max-width: 760px) {
  .court-diagram {
    width: auto;
    height: min(78vh, 620px);
    transform: rotate(90deg);
    transform-origin: center;
  }
}

/* ==========================================================================
   TOUCH DEVICES
   A phone has no pointer, so :hover either never fires — leaving content
   permanently hidden — or fires on the first tap, which makes links need
   tapping twice. Everything below resolves hover-revealed content by default
   on touch, and confines pointer-only behaviour to devices that have one.
   ========================================================================== */

@media (hover: none), (pointer: coarse) {

  /* --- Content that was only visible on hover --- */

  /* Team: name and role always shown */
  .team-card .team-hover-reveal { opacity: 1; transform: none; }
  .team-card img { filter: grayscale(0); }

  /* Map: country labels always shown */
  .map-marker .marker-label { opacity: 1; }
  .map-marker .marker-leader polyline { opacity: 1; }

  /* Social Club enquiry box: corner guides always drawn */
  .committee-box-inner {
    background-size:
      var(--guide-length) var(--guide-thickness), var(--guide-thickness) var(--guide-length),
      var(--guide-length) var(--guide-thickness), var(--guide-thickness) var(--guide-length),
      var(--guide-length) var(--guide-thickness), var(--guide-thickness) var(--guide-length),
      var(--guide-length) var(--guide-thickness), var(--guide-thickness) var(--guide-length);
  }

  /* Client logos: resolved to their true colours, since there is no hover
     to reveal them. Tiles that need a dark backdrop keep it. */
  .client-tile { background: var(--color-cream); }
  .client-tile img { filter: none; opacity: 1; }
  .client-tile.is-dark img { filter: none; opacity: 1; }

  /* University logos in full colour */
  .expertise-logo-item img { filter: none; opacity: 1; }
  .expertise-logo-item img.logo-ilm { filter: none; }

  /* --- Pointer-only behaviour, disabled on touch --- */

  /* Scale and lift effects fire on tap and look like a glitch */
  .service-box:hover { transform: none; box-shadow: none; }
  .ts-panel:hover { transform: none; }
  .team-card:hover img { transform: none; }
  .client-tile:hover { background: var(--color-cream); }

  /* Marquees pause on hover, which on touch means they stop when scrolled past */
  .marquee-row:hover .marquee-track,
  .partners-ticker:hover .partners-track,
  .expertise-ticker:hover .expertise-ticker-track {
    animation-play-state: running;
  }
}

/* Buttons should still respond to a press on touch, just not linger */
@media (hover: none), (pointer: coarse) {
  .btn:active { transform: scale(0.98); }
  .testimonial-arrow:active,
  .testimonial-play:active { transform: scale(0.94); }
}
