/* Abdullah Omar: site styles. Colors come from BRAND/اكواد الالوان.txt */
:root {
  --petrol: #006163;
  --petrol-deep: #004a4c;
  --teal: #3D8788;
  --gold: #BEA15C;
  --gold-soft: #d4bd86;
  --cream: #E3D9BA;
  --ivory: #F5F1E8;
  --ink: #2D2D2D;
  --white: #ffffff;
  --muted: #5d6463;
  --line: rgba(0, 97, 99, .14);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -24px rgba(0, 74, 76, .35);
  --container: 1180px;
  --font: 'Readex Pro', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; font-weight: 700; color: var(--petrol); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
/* Text selection: petrol highlight with ivory text; on petrol backgrounds the highlight flips so it stays visible */
::selection { background: var(--petrol); color: var(--ivory); }
.hero ::selection, .page-hero ::selection, .section--petrol ::selection, .site-footer ::selection, .deliverable ::selection,
.channel--primary ::selection { background: var(--ivory); color: var(--petrol); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--gold); color: var(--ink); padding: 8px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 500; font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn-petrol { background: var(--petrol); color: var(--ivory); }
.btn-petrol:hover { background: var(--petrol-deep); color: var(--ivory); }
/* "Request this service" buttons on the services page */
.btn-service { background: var(--cream); color: var(--petrol); }
.btn-service:hover, .btn-service:focus-visible { background: var(--petrol); color: var(--white); }
.btn-outline { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn-outline:hover { background: var(--petrol); color: var(--ivory); }
.btn.btn-hover-gold:hover, .btn.btn-hover-gold:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost-light { border-color: rgba(245, 241, 232, .55); color: var(--ivory); background: transparent; }
.btn-ghost-light:hover { background: var(--ivory); color: var(--petrol); border-color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; color: var(--petrol); }
.link-more::after { content: '←'; transition: transform .2s; }
[dir="ltr"] .link-more::after { content: '→'; }
.link-more:hover::after { transform: translateX(-4px); }
[dir="ltr"] .link-more:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); /* same white as the home quote card, as the user asked */
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--petrol); flex: none; }
.brand svg { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-role { font-size: .72rem; color: var(--muted); }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .5em .9em; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: rgba(0, 97, 99, .07); color: var(--petrol); }
.main-nav a[aria-current="page"] { color: var(--petrol); background: rgba(190, 161, 92, .2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font-weight: 500; font-size: .9rem; color: var(--petrol); padding: .4em .7em; border-radius: 8px; }
.lang-switch:hover { background: rgba(0, 97, 99, .07); }
.header-actions .btn { padding: .6em 1.2em; font-size: .92rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--petrol); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Small laptops: tighten the 7-item menu so it fits on one line (wide desktops are unchanged) */
@media (min-width: 1041px) and (max-width: 1240px) {
  .header-inner { gap: 14px; }
  .main-nav ul { gap: 0; }
  .main-nav a { padding: .5em .6em; font-size: .88rem; }
  .brand-role { display: none; }
  .header-actions .btn { padding: .55em 1em; font-size: .86rem; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 16px 20px; gap: 2px; }
  .main-nav a { padding: .8em 1em; font-size: 1.05rem; border-radius: 12px; }
  .header-actions { margin-inline-start: auto; }
  /* RTL pages put a classic scrollbar on the left, which leaves an empty strip beside the
     mobile/tablet layout; hide it on these widths (scrolling still works). Desktop keeps it. */
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
}

/* ---------- Phones (all rules below apply only under 600px; desktop is untouched) ---------- */
@media (max-width: 600px) {
  .header-inner { gap: 12px; min-height: 68px; }
  .brand { gap: 10px; min-width: 0; flex: 0 1 auto; }
  .header-actions { flex: none; }
  .brand svg { width: 40px; height: 40px; }
  .brand-role { font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-text { min-width: 0; }
  .header-actions { gap: 6px; }
  .article-hero .post-meta { display: inline-block; padding-block: 8px; }
}
@media (max-width: 400px) {
  .brand-role { display: none; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--white { background: var(--white); }
.section--cream { background: linear-gradient(180deg, #efe8d4, var(--ivory)); }
.section--petrol { background: var(--petrol); color: var(--ivory); overflow: hidden; }
.section--petrol h2, .section--petrol h3 { color: var(--ivory); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--petrol .section-head p { color: rgba(245, 241, 232, .8); }
.testimonials-intro { margin-bottom: 32px; }
.testimonials-intro p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 500; color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.center .eyebrow::after, .cta-band .eyebrow::after { content: ''; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-foot { margin-top: 40px; }
.center .section-foot, .section-foot.center { text-align: center; }

/* Soft brand glows, like the social covers */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(190, 161, 92, .38), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(61, 135, 136, .55), transparent 65%);
}
.deco-mark { position: absolute; z-index: -1; pointer-events: none; opacity: .09; }
.deco-mark svg { width: 100%; height: 100%; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--petrol); color: var(--ivory); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 { color: var(--ivory); margin-bottom: .2em; }
.hero .eyebrow::before { display: none; }
.hero-role { font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: var(--gold); font-weight: 500; margin-bottom: 1.2em; }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: rgba(245, 241, 232, .88); max-width: 560px; margin-bottom: 2em; }
.hero-photo { position: relative; justify-self: center; width: min(440px, 100%); }
.hero-photo img { position: relative; z-index: 1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25)); }
/* Two rings ripple out from behind the photo: they start small, grow and fade, staggered and slow */
.hero-photo::before, .hero-photo::after {
  content: ''; position: absolute; inset: -6%; border-radius: 50%; pointer-events: none;
  opacity: 0; will-change: transform, opacity;
  animation: ring-ripple 7s cubic-bezier(.22, .61, .36, 1) infinite;
}
.hero-photo::before { border: 2px solid rgba(190, 161, 92, .75); }
.hero-photo::after { border: 1px dashed rgba(227, 217, 186, .55); animation-delay: -3.5s; }
@keyframes ring-ripple {
  0%   { transform: scale(.86); opacity: 0; }
  18%  { opacity: 1; }
  70%  { opacity: .35; }
  100% { transform: scale(1.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo::before, .hero-photo::after { animation: none; opacity: 1; }
  .hero-photo::after { inset: -14%; }
}
.hero .deco-mark { width: 620px; height: 620px; inset-inline-start: -180px; bottom: -260px; opacity: .1; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; width: min(300px, 78%); }
  .hero-lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--petrol); color: var(--ivory); overflow: hidden; }
.page-hero .container { padding-block: clamp(56px, 8vw, 96px); }
.page-hero h1 { color: var(--ivory); }
.page-hero p { max-width: 680px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: rgba(245, 241, 232, .86); margin: 0; }
.page-hero .deco-mark { width: 520px; height: 520px; inset-inline-end: -140px; top: -120px; opacity: .1; }

/* ---------- Teaser: story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.pull-quote {
  position: relative; margin: 0; padding: 36px 36px 36px 36px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.6; color: var(--petrol);
  border-inline-start: 5px solid var(--gold);
}
.pull-quote::before {
  content: '”'; position: absolute; inset-inline-end: 24px; top: -18px;
  font-size: 5rem; line-height: 1; color: var(--gold); font-weight: 700;
}
[dir="ltr"] .pull-quote::before { content: '“'; }
.pull-quote cite { display: block; margin-top: 14px; font-size: 1rem; font-style: normal; font-weight: 400; color: var(--muted); }

/* ---------- Path (vision -> impact) ---------- */
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.path li {
  position: relative; text-align: center; padding: 22px 10px; border-radius: var(--radius-sm);
  background: rgba(245, 241, 232, .08); border: 1px solid rgba(227, 217, 186, .22);
  font-weight: 500; font-size: 1.1rem;
}
.path li span { display: block; font-size: .8rem; color: var(--gold); font-weight: 400; margin-bottom: 4px; }
.path li:last-child { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.path li:last-child span { color: var(--petrol-deep); }
/* Hover (and tap on phones): the box turns ivory with petrol text and lifts slightly */
.path li { cursor: default; transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.path li span { transition: color .3s ease, border-color .3s ease, background .3s ease; }
.path li:hover, .path li:active {
  background: var(--ivory); color: var(--petrol); border-color: var(--ivory);
  transform: translateY(-4px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .45);
}
.path li:hover span, .path li:active span { color: var(--teal); }
.path li:last-child:hover, .path li:last-child:active { background: var(--ivory); color: var(--petrol); border-color: var(--gold); }
@media (max-width: 720px) {
  /* Vertical path: compact rows with a number badge, no arrows between the boxes */
  .path { grid-template-columns: 1fr; gap: 12px; max-width: 420px; margin-inline: auto; }
  .path li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: start; font-size: 1.12rem; }
  .path li span {
    flex: none; margin: 0; width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(190, 161, 92, .6); font-size: .8rem; font-weight: 500;
  }
  .path li:last-child span { border-color: rgba(0, 74, 76, .45); }
  .path li:hover span, .path li:active span { border-color: var(--teal); }
}

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards > * { min-width: 0; }
.domain > div { min-width: 0; }
@media (max-width: 1180px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 30px 28px; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card { color: inherit; display: block; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(190, 161, 92, .6); }
.card-num { font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--gold); margin-bottom: 18px; display: block; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.section--white .card { background: var(--ivory); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 44px; }
.stat { text-align: center; padding: 26px 12px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; color: var(--petrol); font-weight: 700; }
.stat span { color: var(--muted); font-size: .98rem; }
.section--petrol .stat { background: rgba(245, 241, 232, .07); border-color: rgba(227, 217, 186, .2); }
.section--petrol .stat strong { color: var(--gold); }
.section--petrol .stat span { color: rgba(245, 241, 232, .8); }
/* Hover (and tap on phones): stat boxes flip colours and lift slightly */
.stat { transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.stat strong, .stat span { transition: color .3s ease; }
.stat:hover, .stat:active { background: var(--petrol); border-color: var(--petrol); transform: translateY(-4px); box-shadow: 0 16px 30px -16px rgba(0, 74, 76, .5); }
.stat:hover strong, .stat:active strong { color: var(--gold); }
.stat:hover span, .stat:active span { color: var(--ivory); }
.section--petrol .stat:hover, .section--petrol .stat:active { background: var(--ivory); border-color: var(--ivory); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .45); }
.section--petrol .stat:hover strong, .section--petrol .stat:active strong { color: var(--petrol); }
.section--petrol .stat:hover span, .section--petrol .stat:active span { color: var(--petrol); }
@media (max-width: 560px) {
  .stats { gap: 8px; margin-bottom: 32px; }
  .stat { padding: 18px 6px; border-radius: 16px; }
  .stat strong { font-size: 2rem; }
  .stat span { display: block; font-size: .82rem; line-height: 1.5; }
}

/* ---------- Testimonial slider ---------- */
.slider-wrap { position: relative; }
.slider {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 2px 18px; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slider::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.slide button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.slide img { width: 100%; aspect-ratio: 1125 / 2000; object-fit: cover; }
@media (max-width: 1100px) { .slide { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 860px) { .slide { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .slide { flex-basis: 82%; } }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.slider-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--petrol);
  background: var(--white); color: var(--petrol); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, opacity .2s;
}
.slider-btn svg { width: 22px; height: 22px; }
.slider-btn:hover:not(:disabled) { background: var(--petrol); color: var(--ivory); }
.slider-btn:disabled { opacity: .3; cursor: default; }
.slider-count { direction: ltr; unicode-bidi: isolate; min-width: 64px; text-align: center; font-weight: 500; color: var(--petrol); font-size: .95rem; }
.section--petrol .slider-btn { background: transparent; border-color: var(--ivory); color: var(--ivory); }
.section--petrol .slider-btn:hover:not(:disabled) { background: var(--ivory); color: var(--petrol); }
.section--petrol .slider-count { color: var(--ivory); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(520px, 92vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 40, 41, .82); }
.lightbox img { max-height: 88vh; width: auto; margin-inline: auto; border-radius: 18px; }
.lightbox-close {
  position: fixed; top: 16px; inset-inline-end: 16px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--ivory); color: var(--petrol); font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* ---------- Rotating article quotes (home) ---------- */
.quote-rotator { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.quote-mark { display: block; font-size: 6rem; line-height: .6; height: 48px; color: var(--gold); font-weight: 700; }
.quote-track { display: grid; }
.quote-slide {
  grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s;
}
.quote-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease, visibility 0s; }
.quote-slide blockquote { margin: 0; }
.quote-slide p { margin: 0; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.7; font-weight: 500; color: var(--ivory); }
.quote-slide figcaption { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.quote-source { color: var(--gold); font-weight: 500; font-size: .98rem; }
.quote-slide .link-more { color: var(--cream); font-size: .95rem; }
.quote-slide .link-more:hover { color: var(--white); }
.quote-rotator .slider-controls { margin-top: 30px; }
.quote-dots { display: flex; gap: 8px; align-items: center; }
.quote-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(245, 241, 232, .35); cursor: pointer; transition: width .3s, background .3s; }
.quote-dots button[aria-current="true"] { width: 28px; background: var(--gold); }
.quote-dots button:hover { background: var(--ivory); }
@media (max-width: 600px) {
  .quote-slide p { font-size: 1.3rem; }
  .quote-mark { font-size: 5rem; height: 40px; }
  .quote-dots { gap: 6px; }
  .quote-dots button { width: 8px; height: 8px; }
  .quote-dots button[aria-current="true"] { width: 20px; }
}

/* ---------- Thumbnails (home teaser) ---------- */
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.thumbs img { border-radius: 16px; aspect-ratio: 1125 / 1500; object-fit: cover; object-position: top; box-shadow: var(--shadow); }
@media (max-width: 760px) { .thumbs { grid-template-columns: repeat(2, 1fr); } .thumbs img:nth-child(n+3) { display: none; } }

/* ---------- Auto-scrolling testimonials (home) ---------- */
.marquee {
  overflow: hidden; padding-block: 8px 4px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee-rtl 70s linear infinite; }
[dir="ltr"] .marquee-track { animation-name: marquee-ltr; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: none; width: clamp(210px, 21vw, 290px); margin-inline-end: 18px;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}
.marquee-item img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .45); }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---------- Success partners strip (home): moves left -> right in both languages ---------- */
.partners-section { padding-block: clamp(56px, 7vw, 88px); }
.partners-section .section-head { margin-bottom: 32px; }
.partners-marquee {
  overflow: hidden; padding-block: 10px 16px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.partners-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: partners-rtl 45s linear infinite; }
[dir="ltr"] .partners-track { animation-name: partners-ltr; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner {
  flex: none; width: 210px; height: 112px; margin-inline-end: 18px; padding: 16px 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 26px -18px rgba(0, 74, 76, .35);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.partner:hover { border-color: rgba(190, 161, 92, .7); transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0, 74, 76, .45); }
.partner img { height: var(--h, 52px); width: auto; max-width: 100%; object-fit: contain; } /* --h is set per logo by build.ps1 */
.section--white .partner { background: var(--white); }
/* RTL track starts at the right edge: moving it right makes logos travel left -> right.
   LTR track starts at the left edge: start shifted left by one set, then move right. */
@keyframes partners-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes partners-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 600px) {
  .partner { width: 160px; height: 92px; padding: 12px 14px; margin-inline-end: 12px; border-radius: 14px; }
  .partner img { height: calc(var(--h, 52px) * .8); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-marquee { overflow-x: auto; }
  .partners-track { animation: none; }
}

/* ---------- Domains (impact page) ---------- */
.domain { display: flex; gap: 16px; align-items: flex-start; }
.domain-icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  background: rgba(190, 161, 92, .18); color: var(--petrol);
  display: inline-flex; align-items: center; justify-content: center;
}
.domain-icon svg { width: 26px; height: 26px; }
.flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.flags span { padding: .45em 1.1em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 500; color: var(--petrol); font-size: .95rem; cursor: default; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.flags span:hover { background: var(--petrol); border-color: var(--petrol); color: var(--ivory); transform: translateY(-3px); box-shadow: 0 10px 22px -12px rgba(0, 97, 99, .7); }
@media (prefers-reduced-motion: reduce) { .flags span:hover { transform: none; } }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: inherit; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.post-cover {
  position: relative; aspect-ratio: 16 / 9; background: var(--petrol); overflow: hidden;
  display: flex; align-items: flex-end; padding: 20px 24px; isolation: isolate;
}
.post-card:nth-child(3n+2) .post-cover { background: var(--teal); }
.post-card:nth-child(3n+3) .post-cover { background: var(--petrol-deep); }
.post-cover::before, .post-cover::after {
  content: ''; position: absolute; border-radius: 50%; z-index: -1;
  inset-inline-end: -18%; top: -40%;
}
.post-cover::before { width: 70%; aspect-ratio: 1; border: 22px solid rgba(190, 161, 92, .55); }
.post-cover::after { width: 40%; aspect-ratio: 1; border: 18px solid rgba(227, 217, 186, .35); inset-inline-end: -3%; top: -10%; }
.post-cover b { font-size: 3.4rem; line-height: 1; color: var(--gold); font-weight: 700; }
.post-cover small { color: var(--ivory); opacity: .85; margin-inline-start: 10px; font-size: .85rem; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h3 { margin: 0; font-size: 1.2rem; }
.post-body p { color: var(--muted); font-size: .97rem; margin: 0; }
.post-meta { font-size: .85rem; color: var(--teal); font-weight: 500; }
.post-body .link-more { margin-top: auto; padding-top: 8px; }

/* ---------- Blog page: main list + sidebar ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.blog-main { display: grid; gap: 24px; }
.blog-side-inner { position: sticky; top: 100px; display: grid; gap: 14px; }
.side-title { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; margin: 0 0 6px; }
.side-title svg { width: 26px; height: 26px; color: var(--gold); }

.post-row {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
.post-row:hover { transform: translateY(-3px); border-color: rgba(190, 161, 92, .55); }
/* Article cover: petrol with soft gold/teal glows (like the social covers) and the brand mark as a watermark */
.post-row-cover {
  position: relative; isolation: isolate; overflow: hidden; min-height: 180px; border-radius: 14px;
  background: var(--petrol); color: var(--ivory); display: flex; align-items: flex-end; padding: 16px 18px;
}
.post-row-cover::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(70% 60% at 100% 0%, rgba(190, 161, 92, .45), transparent 60%),
              radial-gradient(70% 70% at 0% 100%, rgba(61, 135, 136, .75), transparent 65%);
}
.post-row:nth-child(3n+2) .post-row-cover { background: var(--petrol-deep); }
.post-row:nth-child(3n+3) .post-row-cover { background: #0b5557; }
.post-row-mark { position: absolute; z-index: -1; width: 150px; height: 150px; inset-inline-start: -30px; top: -34px; opacity: .22; transition: transform .6s ease, opacity .6s ease; }
.post-row-mark svg { width: 100%; height: 100%; }
.post-row:hover .post-row-mark { transform: rotate(-8deg) scale(1.05); opacity: .32; }
.post-row-num { display: flex; align-items: baseline; gap: 8px; }
.post-row-num b { font-size: 2.8rem; line-height: 1; color: var(--gold); font-weight: 700; }
.post-row-num small { color: var(--cream); font-size: .85rem; }
.post-row-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 4px; }
.post-row-body h2 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); margin: 0; }
.post-row-excerpt { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row-body h2 a { color: var(--petrol); }
.post-row-body h2 a:hover { color: var(--teal); }
.post-row-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: .92rem; }
.post-row-meta li { display: inline-flex; align-items: center; gap: 7px; }
.post-row-meta svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.post-row-excerpt { color: var(--ink); margin: 2px 0 6px; font-size: .97rem; line-height: 1.8; }
.post-row-body .btn { padding: .65em 1.3em; font-size: .93rem; }
.post-row-body .btn { margin-top: auto; align-self: flex-end; } /* end side = left of the card in RTL */
.post-row-body .btn svg { width: 1.1em; height: 1.1em; }

.post-mini {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.post-mini:hover { color: var(--ink); transform: translateY(-2px); border-color: rgba(190, 161, 92, .6); box-shadow: var(--shadow); }
/* Just the article number, no box */
.post-mini-cover { flex: none; min-width: 52px; display: flex; align-items: center; justify-content: center; }
.post-mini-cover b { color: var(--gold); font-size: 2.1rem; line-height: 1; font-weight: 700; }
.post-mini-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-mini-body strong { color: var(--petrol); font-weight: 700; font-size: 1.02rem; line-height: 1.5; }
.post-mini-body small { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .8rem; }
.post-mini-body small span { display: inline-flex; align-items: center; gap: 5px; }
.post-mini-body svg { width: 14px; height: 14px; color: var(--gold); }
/* Blog pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.pagination a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--petrol); font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.pagination a svg { width: 16px; height: 16px; }
.pagination a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--petrol); border-color: var(--petrol); color: var(--ivory); pointer-events: none; }

/* Series intro above the first article: plain text + button, no box */
.series-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-bottom: 4px; }
.series-intro strong { display: block; color: var(--petrol); font-size: 1.25rem; font-weight: 700; margin-bottom: 2px; }
.series-intro p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .series-intro .btn { width: 100%; } }
.side-note { margin-top: 8px; padding: 20px; border-radius: 18px; background: var(--petrol); color: var(--ivory); }
.side-note strong { display: block; color: var(--gold); margin-bottom: 4px; }
.side-note p { margin: 0 0 14px; color: rgba(245, 241, 232, .85); font-size: .95rem; }
.side-note .btn { border-color: var(--ivory); color: var(--ivory); width: 100%; }

/* Article page: text column + "most popular" sidebar */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(32px, 4vw, 56px); align-items: start;
  padding-inline: clamp(8px, 4vw, 48px); /* breathing room so the text never hugs the screen edge */
}
.article-main { min-width: 0; }
.article-main .prose, .article-main .share-bar, .article-main .article-nav { margin-inline: 0; max-width: 780px; }
.article-side .side-title { font-size: 1.08rem; margin-bottom: 2px; }
.article-side .side-title svg { width: 20px; height: 20px; }
.article-side .blog-side-inner { gap: 10px; }
.article-side .post-mini { padding: 10px; gap: 10px; border-radius: 14px; }
.article-side .post-mini-cover { min-width: 38px; }
.article-side .post-mini-cover b { font-size: 1.55rem; }
.article-side .post-mini-body { gap: 3px; }
.article-side .post-mini-body strong { font-size: .86rem; line-height: 1.5; }
.article-side .post-mini-body small { font-size: .74rem; }
.article-side .side-all { font-size: .88rem; }
@media (min-width: 861px) { .article-main .article-quote { margin-inline: -20px; } }
.side-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--petrol); margin-top: 4px; }
.side-all svg { width: 16px; height: 16px; }
.side-all:hover { color: var(--gold); }
@media (max-width: 1040px) {
  .blog-layout, .article-layout { grid-template-columns: 1fr; }
  .blog-side-inner { position: static; }
  .article-main .prose, .article-main .share-bar, .article-main .article-nav { margin-inline: auto; }
  .article-side { border-top: 1px solid var(--line); padding-top: 32px; }
}
@media (max-width: 720px) {
  .post-row { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .post-row-cover { min-height: 0; aspect-ratio: 16 / 8; }
  .post-row-body .btn { width: 100%; }
}

/* ---------- Article ---------- */
.article-hero .container { max-width: 860px; }
.article-hero .post-meta { color: var(--gold); margin-bottom: 12px; display: block; }
.article-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.prose { max-width: 760px; margin-inline: auto; font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 2.05; }
.prose p { margin-bottom: 1.35em; }
.prose p:first-child::first-letter { color: var(--petrol); }
/* Highlighted hook quote inside each article */
.article-quote {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 2.6em -48px; padding: 52px 56px 28px;
  background: var(--petrol); color: var(--ivory); border-radius: 26px;
  box-shadow: 0 28px 60px -30px rgba(0, 74, 76, .6);
}
.article-quote::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 100% 0%, rgba(190, 161, 92, .35), transparent 60%),
              radial-gradient(60% 80% at 0% 100%, rgba(61, 135, 136, .6), transparent 65%);
}
.article-quote::after {
  content: ''; position: absolute; z-index: -1; width: 260px; aspect-ratio: 1; border-radius: 50%;
  border: 26px solid rgba(190, 161, 92, .18); inset-inline-end: -110px; bottom: -150px;
}
.aq-mark { position: absolute; top: -6px; inset-inline-start: 30px; font-size: 7.5rem; line-height: 1; font-weight: 700; color: var(--gold); }
.article-quote blockquote { margin: 0; }
.prose .article-quote p { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.75; font-weight: 500; color: var(--ivory); }
.prose .article-quote p::first-letter { color: inherit; }
.article-quote figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(227, 217, 186, .22);
}
.aq-author { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 500; font-size: 1rem; }
.aq-author::before { content: ''; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.aq-share { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: rgba(245, 241, 232, .75); }
.aq-share span { margin-inline-end: 4px; }
.aq-share a {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(245, 241, 232, .45); color: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s;
}
.aq-share a:hover, .aq-share a:focus-visible { background: var(--ivory); color: var(--petrol); border-color: var(--ivory); }
.aq-share svg { width: 17px; height: 17px; }
.article-quote ::selection { background: var(--ivory); color: var(--petrol); }
@media (max-width: 860px) { .article-quote { margin-inline: 0; } }
@media (max-width: 600px) {
  .article-quote { margin-block: 2em; padding: 46px 22px 22px; border-radius: 20px; }
  .aq-mark { font-size: 6rem; inset-inline-start: 18px; }
  .prose .article-quote p { font-size: 1.25rem; }
  .article-quote figcaption { flex-direction: column; align-items: flex-start; }
}

.share-bar {
  max-width: 760px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
}
.share-title { margin: 0; font-size: 1.05rem; color: var(--petrol); }
.share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.share-links a, .share-links button {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--petrol);
  background: transparent; color: var(--petrol); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.share-links a:hover, .share-links button:hover, .share-links a:focus-visible, .share-links button:focus-visible { background: var(--petrol); color: var(--ivory); }
.share-links button.is-copied { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.share-links svg { width: 20px; height: 20px; }
.share-status { font-size: .9rem; color: var(--teal); font-weight: 500; min-height: 1.4em; }
.article-nav { max-width: 760px; margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-nav a { display: block; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.article-nav a:hover { border-color: var(--gold); }
.article-nav small { display: block; color: var(--teal); font-weight: 500; margin-bottom: 4px; }
.article-nav .next { grid-column: 2; text-align: end; background: var(--gold); border: 2px solid var(--gold); color: var(--ink); transition: border-color .2s; }
.article-nav .next small { color: var(--white); }
.article-nav .next:hover, .article-nav .next:focus-visible { background: var(--gold); border-color: var(--petrol); color: var(--ink); }
@media (max-width: 620px) { .article-nav { grid-template-columns: 1fr; } .article-nav .next { grid-column: 1; } }

/* ---------- Story page ---------- */
.story { max-width: 780px; margin-inline: auto; }
.chapter { position: relative; padding-inline-start: 44px; padding-bottom: 28px; }
.chapter::before { content: ''; position: absolute; inset-inline-start: 11px; top: 10px; bottom: 0; width: 2px; background: linear-gradient(var(--gold), rgba(190, 161, 92, .15)); }
.chapter::after { content: ''; position: absolute; inset-inline-start: 2px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); border: 4px solid var(--gold); }
.chapter:last-child::before { display: none; }
.chapter h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.chapter p { font-size: 1.12rem; line-height: 2; }
.symbol-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.symbol-grid svg { width: 100%; height: auto; }
.symbol-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.symbol-list li { display: flex; gap: 14px; align-items: flex-start; }
.symbol-list i { flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 8px; }
@media (max-width: 760px) { .symbol-grid { grid-template-columns: 1fr; } .symbol-grid svg { max-width: 220px; margin-inline: auto; } }
.portrait-frame { width: min(320px, 80%); margin-inline: auto; position: relative; }
.portrait-frame img { position: relative; z-index: 1; }
/* Same ripple as the home hero, recoloured for the light background: petrol ring + gold dashed ring */
.portrait-frame::before, .portrait-frame::after {
  content: ''; position: absolute; inset: -4%; border-radius: 50%; pointer-events: none;
  opacity: 0; will-change: transform, opacity;
  animation: ring-ripple 7s cubic-bezier(.22, .61, .36, 1) infinite;
}
.portrait-frame::before { border: 2px solid rgba(0, 97, 99, .45); }
.portrait-frame::after { border: 1.5px dashed rgba(190, 161, 92, .85); animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) {
  .portrait-frame::before, .portrait-frame::after { animation: none; opacity: 1; }
  .portrait-frame::after { inset: -11%; }
}

/* ---------- Services page ---------- */
.service { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service-side .card-num { font-size: 4rem; margin-bottom: 8px; }
.service-side h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.service-body > p { font-size: 1.12rem; }
.service-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-block: 24px 28px; }
.service-cols h3 { font-size: 1.05rem; color: var(--teal); margin-bottom: .8em; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-inline-start: 30px; }
.checklist li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); box-shadow: inset 0 0 0 4px var(--white);
  border: 1.5px solid var(--gold);
}
.deliverable {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--petrol); color: var(--ivory); border-radius: var(--radius); padding: 24px 26px;
  border: 1px solid rgba(190, 161, 92, .25);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
/* Slow drifting gold/teal glow behind the text */
.deliverable::before {
  content: ''; position: absolute; inset: -45%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 32% at 28% 30%, rgba(190, 161, 92, .30), transparent 70%),
    radial-gradient(30% 30% at 72% 70%, rgba(61, 135, 136, .55), transparent 70%);
  animation: deliverable-drift 16s ease-in-out infinite alternate;
}
/* A soft light sheen that passes across every few seconds */
.deliverable::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(245, 241, 232, .10) 45%, rgba(227, 217, 186, .16) 50%, transparent);
  transform: skewX(-15deg);
  animation: deliverable-sheen 8s ease-in-out infinite;
}
@keyframes deliverable-drift {
  0%   { transform: translate(-6%, -4%) rotate(0deg); }
  100% { transform: translate(6%, 5%) rotate(24deg); }
}
@keyframes deliverable-sheen {
  0%, 62% { left: -60%; }
  100%    { left: 130%; }
}
.deliverable:hover {
  transform: translateY(-3px); border-color: rgba(190, 161, 92, .6);
  box-shadow: 0 22px 44px -22px rgba(0, 74, 76, .65), 0 0 0 1px rgba(190, 161, 92, .25);
}
@media (prefers-reduced-motion: reduce) {
  .deliverable::before, .deliverable::after { animation: none; }
  .deliverable::after { display: none; }
}
.deliverable h3 { color: var(--gold) !important; }
.deliverable p { margin: 0; }
@media (max-width: 860px) { .service, .service-cols { grid-template-columns: 1fr; } }
.toc { display: flex; flex-wrap: wrap; gap: 10px; }
.toc a { padding: .5em 1.1em; border-radius: 999px; border: 1px solid rgba(227, 217, 186, .4); color: var(--ivory); font-size: .95rem; }
.toc a:hover { background: var(--ivory); color: var(--petrol); }

/* ---------- Tools page ---------- */
.tools-list { display: grid; gap: 28px; }
.tool-card {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); scroll-margin-top: 90px;
}
.tool-cover {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 210 / 297;
  background: var(--petrol); color: var(--ivory); border-radius: 16px; padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 24px 50px -24px rgba(0, 74, 76, .55);
}
.tool-cover::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 45% at 90% 5%, rgba(190, 161, 92, .45), transparent 60%),
              radial-gradient(60% 45% at 5% 100%, rgba(61, 135, 136, .7), transparent 65%);
}
.tool-cover .deco-mark { width: 120%; height: auto; aspect-ratio: 1; left: -45%; bottom: -35%; opacity: .12; }
.tool-cover-num { color: var(--gold); font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.tool-cover strong { font-size: 1.7rem; line-height: 1.3; font-weight: 700; }
.tool-cover small { color: var(--cream); font-size: .9rem; margin-top: 8px; line-height: 1.6; }
.tool-cover-brand { position: absolute; top: 22px; inset-inline-start: 24px; display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; }
.tool-cover-brand svg { width: 28px; height: 28px; }
.tool-cover--teaser { width: min(320px, 100%); justify-self: center; color: var(--ivory); transition: transform .25s; }
.tool-cover--teaser:hover { color: var(--ivory); transform: translateY(-4px) rotate(-1deg); }
.tool-body { min-width: 0; }
.tool-body h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .2em; }
.tool-subtitle { color: var(--teal); font-weight: 500; font-size: 1.08rem; }
.tool-contents { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; counter-reset: tc; }
.tool-contents li { counter-increment: tc; display: flex; gap: 10px; align-items: baseline; font-size: .98rem; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.tool-contents li::before { content: counter(tc, decimal-leading-zero); color: var(--gold); font-weight: 700; font-size: .85rem; min-width: 22px; }
.tool-meta { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-meta li { padding: .3em .9em; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--petrol); }
.tool-soon {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px;
  border: 2px dashed rgba(190, 161, 92, .6); border-radius: var(--radius); padding: 26px 28px; background: rgba(255, 255, 255, .5);
}
.tool-soon > div:not(.socials) { flex: 1; min-width: 220px; }
.tool-soon h2 { font-size: 1.35rem; margin-bottom: .2em; }
.tool-soon p { margin: 0; color: var(--muted); }
.tool-soon-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(190, 161, 92, .18); color: var(--petrol); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tool-soon-icon svg { width: 28px; height: 28px; }
.tool-soon .socials a { background: var(--petrol); color: var(--ivory); }
.tool-soon .socials a:hover, .tool-soon .socials a:focus-visible { background: var(--ivory); color: var(--petrol); box-shadow: inset 0 0 0 1.5px var(--petrol); }
@media (max-width: 900px) {
  .tool-card { grid-template-columns: 1fr; }
  .tool-cover { width: min(300px, 100%); margin-inline: auto; }
}
@media (max-width: 600px) {
  .tool-card { padding: 20px; }
  .tool-contents { grid-template-columns: 1fr; }
  .tool-card .btn-row .btn { width: 100%; }
  .tool-soon { padding: 22px 20px; }
}

/* ---------- Mailing list box ---------- */
.newsletter-section { padding-top: 0; background: var(--white); }
.newsletter-box {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--petrol); color: var(--ivory); padding: clamp(26px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 36px; align-items: center;
}
.newsletter-text { display: flex; gap: 16px; align-items: flex-start; }
.newsletter-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; background: rgba(190, 161, 92, .2); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.newsletter-icon svg { width: 26px; height: 26px; }
.newsletter-text h2 { color: var(--ivory); font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: .25em; }
.newsletter-text p { margin: 0; color: rgba(245, 241, 232, .85); }
.newsletter-form { display: flex; gap: 10px; align-items: stretch; }
/* Input and button share the same height, border, radius and type size */
.newsletter-form input, .newsletter-form .btn {
  box-sizing: border-box; height: 54px; border-radius: 999px; border: 2px solid; font: inherit; font-size: 1rem; line-height: 1;
}
.newsletter-form input {
  flex: 1; min-width: 0; padding: 0 22px; font-weight: 500;
  border-color: rgba(245, 241, 232, .5); background: rgba(245, 241, 232, .1); color: var(--ivory);
  transition: border-color .2s, background .2s;
}
.newsletter-form input::placeholder { color: rgba(245, 241, 232, .7); font-weight: 400; }
.newsletter-form input:focus { outline: none; border-color: var(--gold); background: rgba(245, 241, 232, .16); }
.newsletter-form .btn { flex: none; min-width: 130px; padding: 0 1.8em; font-weight: 700; border-color: var(--gold); transform: none; }
.newsletter-form .btn:hover, .newsletter-form .btn:focus-visible { background: var(--white); border-color: var(--white); color: var(--petrol); transform: none; }
.newsletter-note { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: rgba(245, 241, 232, .65); }
.newsletter-status { color: var(--gold); font-weight: 500; }
@media (max-width: 860px) { .newsletter-box { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { flex: none; width: 100%; } /* keep the full 54px height when stacked */
  .newsletter-form .btn { width: 100%; }
  .newsletter-text { flex-direction: column; gap: 12px; }
}

/* ---------- Contact ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.channel:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); color: var(--ink); }
.channel .channel-icon { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--petrol); color: var(--ivory); display: inline-flex; align-items: center; justify-content: center; }
.channel-icon svg { width: 24px; height: 24px; }
.channel strong { display: block; font-weight: 500; color: var(--petrol); }
/* Title and value both aligned to the card's left edge (all screen sizes) */
.channel > span:not(.channel-icon) { flex: 1; min-width: 0; text-align: left; }
.channel span span { display: block; }
.channel span { font-size: .9rem; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.channel--primary { background: var(--petrol); border-color: var(--petrol); }
.channel--primary strong { color: var(--ivory); }
.channel--primary span { color: rgba(245, 241, 232, .8); }
.channel--primary .channel-icon { background: var(--gold); color: var(--ink); }
.qr-card { display: flex; gap: 24px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.qr-card img { width: 150px; height: 150px; border-radius: 12px; border: 6px solid var(--white); outline: 1px solid var(--line); }
@media (max-width: 520px) { .qr-card { flex-direction: column; text-align: center; } }
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: rgba(245, 241, 232, .82); max-width: 620px; margin: 0 auto 1.8em; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245, 241, 232, .1); color: var(--ivory); transition: background .2s, color .2s;
}
.socials a:hover, .socials a:focus-visible { background: var(--ivory); color: var(--petrol); }
.socials svg { width: 20px; height: 20px; }
.cta-band .socials { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-deep); color: rgba(245, 241, 232, .82); padding-block: 64px 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--ivory); margin-bottom: 16px; }
.site-footer .brand-role { color: rgba(245, 241, 232, .65); }
.site-footer h3 { color: var(--gold); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(245, 241, 232, .86); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(227, 217, 186, .15); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .88rem; color: rgba(245, 241, 232, .6); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.text-petrol { color: var(--petrol); font-weight: 500; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Phone refinements (under 600px only; desktop is untouched) ---------- */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 1rem; }
  .pull-quote { padding: 28px 22px 22px; font-size: 1.3rem; }
  .pull-quote::before { font-size: 4rem; top: -14px; }
  .hero .btn-row, .cta-band .btn-row, .page-hero .btn-row, .story .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn, .cta-band .btn-row .btn, .page-hero .btn-row .btn, .story .btn-row .btn { width: 100%; }
  .card { padding: 24px 20px; }
  .card-num { font-size: 2rem; margin-bottom: 12px; }
  .service { padding-block: 36px; gap: 12px; }
  .service-side .card-num { font-size: 2.6rem; margin-bottom: 4px; }
  .service-cols { margin-block: 18px 22px; }
  .deliverable { padding: 20px; }
  .service-body .btn { width: 100%; }
  .chapter { padding-inline-start: 36px; }
  .chapter p, .prose { font-size: 1.05rem; }
  .toc a { font-size: .88rem; padding: .45em .95em; }
  .channel { padding: 16px; }
  .qr-card { padding: 20px; }
  .article-nav { margin-top: 40px; }
  .site-footer { padding-block: 48px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .marquee-item { width: 62vw; margin-inline-end: 12px; }
  .slider-btn { width: 46px; height: 46px; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slider { scroll-behavior: auto; }
  * { transition: none !important; }
}
