/* ==========================================================================
   مؤسسة عطا جاد للتنمية — Atta Gad Foundation
   "عطاءٌ ممدود" — Warm · cozy · human · golden-hour Aswan
   ========================================================================== */

/* ---------------------------------------------------------------------------
   0. Tokens — a warm, cozy palette anchored by the brand teal
   --------------------------------------------------------------------------- */
:root {
  /* Brand teal (trust / depth / accent) */
  --teal-900: #0e2f36;
  --ink:      #143b42;   /* deep teal — headings */
  --teal:     #3f97a4;
  --teal-300: #8fc1c8;
  --teal-100: #d8ebed;

  /* Warm cozy core */
  --gold:      #f0a83a;   /* warm honey gold */
  --gold-deep: #d9892a;
  --amber:     #e89a52;   /* soft terracotta-amber */
  --clay:      #c06b3f;   /* cozy clay */
  --clay-soft: #e7c3a4;

  /* Warm surfaces */
  --warm-white: #fffaf1;
  --paper:      #fbf3e7;   /* main warm cream background */
  --cream:      #f7eddd;
  --sand:       #f1e3cf;   /* deeper warm band */
  --sand-line:  #ead9c2;

  /* Text — warm */
  --text:      #5d5246;   /* warm taupe body */
  --text-soft: #897b6b;
  --text-mute: #9a8b79;
  --head:      #163a40;   /* deep teal-ink for headings */
  --on-dark:        #f7ecdb;
  --on-dark-soft:   #d6c3aa;

  /* Lines */
  --hair:      rgba(60, 42, 22, 0.10);
  --hair-2:    rgba(60, 42, 22, 0.16);

  /* Type */
  --f-sans:  "Alexandria", "Segoe UI", system-ui, sans-serif;
  --f-naskh: "Amiri", "Times New Roman", serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;

  /* Rhythm — generous, cozy */
  --container: 1220px;
  --container-narrow: 860px;
  --gutter: clamp(22px, 5vw, 70px);
  --section-y: clamp(76px, 10vw, 150px);
  --radius: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 0, 0.2, 1);

  /* Warm, soft shadows (golden-brown, never cold) */
  --shadow-sm: 0 2px 10px rgba(120, 82, 40, 0.08);
  --shadow:    0 18px 40px -22px rgba(120, 78, 34, 0.32);
  --shadow-lg: 0 40px 80px -34px rgba(110, 70, 30, 0.40);
  --glow-gold: 0 0 50px -6px rgba(240, 168, 58, 0.55);

  /* The mihrab arch — our signature warm frame */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 132' preserveAspectRatio='none'%3E%3Cpath d='M0 132 L0 50 C0 22 22 4 50 0 C78 4 100 22 100 50 L100 132 Z' fill='%23000'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 1 L99 50 L50 99 L1 50 Z' fill='black'/%3E%3Crect x='15.5' y='15.5' width='69' height='69' fill='black'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------------
   1. Reset
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2.5px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(240, 168, 58, 0.30); color: var(--ink); }

/* a single warm light field behind everything + soft grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(125% 75% at 50% -14%, #fff7ea 0%, rgba(255,247,234,0) 46%),
    radial-gradient(64% 48% at 88% 4%, rgba(240,168,58,0.16), transparent 60%),
    radial-gradient(60% 55% at 4% 102%, rgba(192,107,63,0.08), transparent 62%),
    linear-gradient(180deg, #fbf4e8 0%, #f5e9d6 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---------------------------------------------------------------------------
   2. Typography
   --------------------------------------------------------------------------- */
h1, h2, h3 { font-weight: 400; line-height: 1.18; color: var(--head); letter-spacing: -0.01em; }
.display { font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; }
.verse { font-family: var(--f-naskh); font-weight: 400; line-height: 1.7; }
html[dir="ltr"] .verse { font-family: var(--f-serif); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--f-naskh); font-size: clamp(16px, 1.5vw, 20px);
  color: var(--clay); letter-spacing: 0;
}
html[dir="ltr"] .eyebrow { font-family: var(--f-serif); font-style: italic; }
.eyebrow::before {
  content: ""; inline-size: 30px; block-size: 30px; flex: none;
  background: var(--gold); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat;
  opacity: 0.9;
}

.lead { font-size: clamp(18px, 1.65vw, 23px); font-weight: 300; line-height: 1.95; color: var(--text-soft); }

/* ---------------------------------------------------------------------------
   3. Layout
   --------------------------------------------------------------------------- */
.container { inline-size: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container-narrow { inline-size: min(100% - var(--gutter) * 2, var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }

/* section heading lockup (used loosely — every section composes differently) */
.kicker { display: grid; gap: 14px; }
.kicker__title { font-size: clamp(30px, 4.4vw, 56px); font-weight: 300; }
.kicker__lead { max-inline-size: 56ch; }

/* warm decorative glow blob */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(6px);
  background: radial-gradient(circle, rgba(240,168,58,0.30), rgba(240,168,58,0.06) 45%, transparent 70%);
}

/* ---------------------------------------------------------------------------
   4. Buttons — warm, rounded, friendly
   --------------------------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--warm-white);
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.8em; border-radius: 100px;
  font-size: 0.97rem; font-weight: 500; letter-spacing: 0;
  background: var(--bg); color: var(--fg);
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.4s var(--ease);
}
.btn .ico { transition: transform 0.45s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:hover .ico { transform: translateX(-4px); }
html[dir="ltr"] .btn .ico { transform: scaleX(-1); }
html[dir="ltr"] .btn:hover .ico { transform: scaleX(-1) translateX(-4px); }
.btn--gold { --bg: var(--gold); --fg: #3a2410; }
.btn--gold:hover { box-shadow: var(--glow-gold); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair-2); }
.btn--ghost:hover { background: var(--warm-white); box-shadow: inset 0 0 0 1.5px var(--clay-soft), var(--shadow); }
.btn--on-dark { --bg: var(--warm-white); --fg: var(--ink); }
.btn--ghost-dark { --bg: transparent; --fg: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(247,236,219,0.3); }
.btn--ghost-dark:hover { background: rgba(255,255,255,0.07); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500; color: var(--clay); font-size: 0.97rem;
  transition: gap 0.4s var(--ease), color 0.4s var(--ease);
}
.link-arrow .ico { transition: transform 0.4s var(--ease); }
html[dir="ltr"] .link-arrow .ico, html[dir="ltr"] .page-hero__back .ico { transform: scaleX(-1); }
.link-arrow:hover { color: var(--gold-deep); gap: 0.85em; }

/* ---------------------------------------------------------------------------
   5. Reveal — warm fade up
   --------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(30px); filter: blur(4px);
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft), filter 1s var(--ease-soft);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }
[data-reveal="scale"] { transform: scale(1.05); }
[data-reveal="scale"].is-in { transform: scale(1); }
[data-reveal-stagger] > * {
  opacity: 0; transform: translateY(26px); filter: blur(4px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft), filter 0.9s var(--ease-soft);
}
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > *, [data-hero] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
@media (scripting: none) {
  .loader { display: none !important; }
  [data-hero], [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------------------------------------------------------------------------
   6. Arch frame (mihrab) — signature warm image shape
   --------------------------------------------------------------------------- */
.arch {
  position: relative;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
          mask: var(--arch) center / 100% 100% no-repeat;
  overflow: hidden; background: linear-gradient(165deg, var(--clay-soft), var(--teal));
}
.arch > img { inline-size: 100%; block-size: 100%; object-fit: cover; filter: saturate(1.07) contrast(1.03); }
/* a soft warm inner glaze over photos so they feel art-directed + cozy */
.arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,236,200,0.12) 0%, transparent 34%, rgba(30,22,12,0.26) 100%);
}
.framed { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.framed > img { inline-size: 100%; block-size: 100%; object-fit: cover; filter: saturate(1.07) contrast(1.03); }
.framed::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,236,200,0.10) 0%, transparent 36%, rgba(30,22,12,0.24) 100%);
}

/* a little hanging "tassel" of stars for warmth */
.sprig { display: inline-flex; gap: 6px; align-items: center; }
.sprig i { inline-size: 12px; block-size: 12px; background: var(--gold); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }
.sprig i:nth-child(2) { inline-size: 8px; block-size: 8px; opacity: 0.7; }
.sprig i:nth-child(3) { inline-size: 6px; block-size: 6px; opacity: 0.5; }

/* ---------------------------------------------------------------------------
   7. Loader
   --------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 35%, #fff7ea, var(--paper) 72%);
  transition: opacity 1s var(--ease), visibility 1s;
}
body.is-loaded .loader { opacity: 0; visibility: hidden; }
.loader__glow { position: absolute; inline-size: 56vmin; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(240,168,58,0.24), transparent 62%); animation: breathe 3.2s var(--ease-soft) infinite; }
.loader__mark { inline-size: clamp(64px, 9vw, 92px); animation: rise 1.2s var(--ease) both; filter: drop-shadow(0 14px 28px rgba(120,78,34,0.25)); }
.loader__word { margin-block-start: 20px; font-size: clamp(20px, 3vw, 30px); color: var(--clay); animation: fade 1s var(--ease) 0.3s both; }
@keyframes breathe { 0%,100%{transform:scale(.92);opacity:.8} 50%{transform:scale(1.06);opacity:1} }
@keyframes rise { from{opacity:0;transform:translateY(16px) scale(.95);filter:blur(6px)} to{opacity:1;transform:none;filter:blur(0)} }
@keyframes fade { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

.skip-link { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 3000; background: var(--ink); color: var(--warm-white); padding: 10px 18px; border-radius: 12px; transition: inset-block-start 0.3s; }
.skip-link:focus { inset-block-start: 16px; }

/* ---------------------------------------------------------------------------
   8. Header
   --------------------------------------------------------------------------- */
.site-header { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1000; padding-block: clamp(12px, 1.5vw, 18px); transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(251, 243, 231, 0.85);
  backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 1px 0 var(--hair), 0 16px 36px -32px rgba(110,70,30,0.5);
}
.site-header__inner { display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { inline-size: clamp(42px, 4vw, 52px); transition: transform 0.6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.18; }
.brand__name { font-size: clamp(14px, 1.15vw, 16.5px); font-weight: 600; color: var(--ink); }
.brand__tag { font-size: clamp(12px, 1vw, 14px); color: var(--clay); }
.nav { display: flex; gap: clamp(14px, 1.9vw, 28px); margin-inline-start: auto; }
.nav a { font-size: 0.96rem; color: var(--text-soft); font-weight: 400; position: relative; padding-block: 6px; transition: color 0.35s var(--ease); }
.nav a::after { content: ""; position: absolute; inset-block-end: 0; inset-inline: 0; block-size: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.4s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.nav + .header__actions { margin-inline-start: clamp(12px, 1.8vw, 26px); }
.site-header__inner .nav { margin-inline-start: auto; }
.lang-toggle { display: inline-grid; place-items: center; min-inline-size: 40px; block-size: 40px; padding-inline: 10px; border-radius: 100px; border: 1.5px solid var(--hair-2); font-size: 0.86rem; font-weight: 600; color: var(--ink); transition: background 0.4s, color 0.4s, border-color 0.4s; }
.lang-toggle:hover { background: var(--ink); color: var(--warm-white); border-color: var(--ink); }
.nav__cta { padding: 0.7em 1.35em; font-size: 0.9rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { inline-size: 24px; block-size: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 999; background: radial-gradient(120% 90% at 80% 0%, #fff7ea, var(--paper)); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--gutter); transform: translateY(-100%); transition: transform 0.55s var(--ease); visibility: hidden; }
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a { font-size: 1.55rem; font-weight: 400; color: var(--ink); padding-block: 11px; border-block-end: 1px solid var(--hair); }
.mobile-menu__cta { color: var(--clay) !important; border: none !important; }
.mobile-menu__lang { color: var(--teal) !important; border: none !important; font-size: 1.2rem !important; }
.mobile-menu__tag { margin-block-start: 26px; font-size: 2rem; color: var(--gold-deep); }

/* ---------------------------------------------------------------------------
   9. HERO — warm welcome: big type + an arch-framed human moment
   --------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(130px, 17vh, 210px) clamp(60px, 9vw, 110px); }
.hero__glow { position: absolute; inset-block-start: -10%; inset-inline-end: 6%; inline-size: clamp(360px, 46vw, 720px); aspect-ratio: 1; z-index: 0; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.hero__eyebrow { margin-block-end: 22px; }
.hero__title { font-size: clamp(50px, 9vw, 120px); line-height: 0.98; color: var(--ink); margin-block-end: clamp(20px, 3vw, 34px); }
.hero__title .verse { display: inline-block; background: linear-gradient(160deg, #1c4a52 0%, #143b42 55%, #1f5560 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-block-end: 0.08em; }
.hero__lead { font-size: clamp(18px, 1.9vw, 24px); font-weight: 300; line-height: 1.9; color: var(--text-soft); max-inline-size: 30ch; margin-block-end: clamp(28px, 3.5vw, 42px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__sub { margin-block-start: clamp(24px, 3vw, 36px); }

.hero__figure { position: relative; }
.hero__arch { inline-size: 100%; aspect-ratio: 0.82; box-shadow: var(--shadow-lg); }
.hero__figure .glow { inset: -8% -8% auto auto; inline-size: 60%; aspect-ratio: 1; z-index: -1; }
.hero__badge { position: absolute; inset-block-end: -22px; inset-inline-start: -22px; background: var(--warm-white); border-radius: 22px; padding: 16px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; max-inline-size: 70%; }
.hero__badge .mark { inline-size: 40px; flex: none; }
.hero__badge span { font-family: var(--f-naskh); font-size: clamp(15px, 1.3vw, 18px); color: var(--ink); line-height: 1.5; }
html[dir="ltr"] .hero__badge span { font-family: var(--f-serif); font-style: italic; }
.hero__motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__mote { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,210,0.95), rgba(240,168,58,0.5) 45%, transparent 70%); opacity: 0; will-change: transform, opacity; }

[data-hero] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft), filter 1.1s var(--ease-soft); }
body.is-ready [data-hero] { opacity: 1; transform: none; filter: blur(0); }
[data-hero="1"]{transition-delay:.1s}[data-hero="2"]{transition-delay:.26s}[data-hero="3"]{transition-delay:.44s}[data-hero="4"]{transition-delay:.6s}[data-hero="5"]{transition-delay:.74s}[data-hero="fig"]{transition-delay:.4s}

/* ---------------------------------------------------------------------------
   10. WELCOME ribbon — a warm one-line greeting band
   --------------------------------------------------------------------------- */
.ribbon { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.ribbon__inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 60px); flex-wrap: wrap; padding-block: clamp(28px, 3.4vw, 46px); text-align: center; }
.ribbon__item { display: flex; align-items: center; gap: 12px; font-size: clamp(15px, 1.4vw, 19px); color: var(--on-dark); }
.ribbon__item b { color: var(--gold); font-weight: 600; }
.ribbon__item .s { inline-size: 16px; block-size: 16px; background: var(--gold); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; flex: none; }

/* ---------------------------------------------------------------------------
   11. FOUNDER — warm cozy portrait + story
   --------------------------------------------------------------------------- */
.founder { position: relative; }
.founder__inner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 6vw, 86px); align-items: center; }
.founder__figure { position: relative; }
.founder__arch { inline-size: min(82%, 380px); margin-inline: auto; aspect-ratio: 0.8; box-shadow: var(--shadow-lg); }
.founder__figure .glow { inset: auto auto -6% -6%; inline-size: 55%; aspect-ratio: 1; }
.founder__dates { position: absolute; inset-block-end: 14px; inset-inline-end: 8%; background: var(--warm-white); border-radius: 100px; padding: 10px 22px; box-shadow: var(--shadow); font-family: var(--f-naskh); font-size: clamp(18px, 1.8vw, 24px); color: var(--clay); display: flex; gap: 12px; align-items: center; }
html[dir="ltr"] .founder__dates { font-family: var(--f-serif); }
.founder__dash { inline-size: 26px; block-size: 1.5px; background: var(--gold); }
.founder__body { max-inline-size: 56ch; }
.founder__name { font-size: clamp(34px, 5vw, 62px); font-weight: 300; color: var(--ink); margin-block: 12px 8px; }
.founder__kicker { font-size: clamp(19px, 2.1vw, 27px); color: var(--clay); margin-block-end: 24px; }
.founder__text { display: grid; gap: 16px; color: var(--text); }
.founder__text strong { color: var(--ink); font-weight: 600; }
.founder__quote { margin-block-start: 30px; padding: 24px 28px; background: var(--cream); border-radius: var(--radius-lg); border-inline-start: 4px solid var(--gold); font-family: var(--f-naskh); font-size: clamp(19px, 2.1vw, 26px); line-height: 1.65; color: var(--ink); box-shadow: var(--shadow-sm); }
html[dir="ltr"] .founder__quote { font-family: var(--f-serif); font-style: italic; }
.founder__more { margin-block-start: 22px; }

/* ---------------------------------------------------------------------------
   12. PURPOSE — warm statement + three cozy cards
   --------------------------------------------------------------------------- */
.purpose { position: relative; }
.purpose__head { max-inline-size: 800px; margin-inline: auto; text-align: center; margin-block-end: clamp(40px, 5vw, 66px); }
.purpose__head .eyebrow { justify-content: center; }
.purpose__title { font-size: clamp(28px, 4.4vw, 54px); font-weight: 300; margin-block: 16px 18px; }
.purpose__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(18px, 2vw, 26px); }
.cozy-card { position: relative; background: var(--warm-white); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.cozy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cozy-card p { color: var(--text-soft); }
.cozy-card__big { grid-row: span 1; }
.cozy-card__big p { font-size: clamp(16px, 1.2vw, 18px); line-height: 2; color: var(--text); }
.cozy-card__star { position: absolute; inset-block-start: 24px; inset-inline-end: 24px; inline-size: 26px; block-size: 26px; background: var(--gold); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; opacity: 0.55; }
.cozy-card h3 { font-size: clamp(20px, 2vw, 26px); margin-block-end: 12px; display: flex; align-items: center; gap: 10px; }
.cozy-card h3::before { content: ""; inline-size: 12px; block-size: 12px; background: var(--clay); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }

/* warm marker chips */
.markers { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-block-start: clamp(34px, 4vw, 52px); }
.marker { display: flex; align-items: baseline; gap: 10px; background: var(--cream); border: 1px solid var(--sand-line); border-radius: 100px; padding: 12px 24px; box-shadow: var(--shadow-sm); }
.marker b { font-family: var(--f-naskh); font-size: clamp(18px, 1.7vw, 23px); color: var(--clay); font-weight: 400; }
html[dir="ltr"] .marker b { font-family: var(--f-serif); }
.marker span { font-size: 0.92rem; color: var(--text-mute); }

/* ---------------------------------------------------------------------------
   13. FIELDS — the programmes as a warm arch gallery (NOT a card grid)
   --------------------------------------------------------------------------- */
.fields { position: relative; background: linear-gradient(180deg, transparent, rgba(241,227,207,0.5) 30%, transparent); }
.fields__head { text-align: center; max-inline-size: 720px; margin-inline: auto; margin-block-end: clamp(44px, 5vw, 70px); }
.fields__head .eyebrow { justify-content: center; }
.fields__title { font-size: clamp(30px, 4.6vw, 58px); font-weight: 300; margin-block: 16px 18px; }
.fields__gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(46px, 4.4vw, 72px) clamp(14px, 1.5vw, 24px); align-items: start; }
.program-tile { display: block; position: relative; }
.program-tile:nth-child(even) { transform: translateY(clamp(16px, 2.4vw, 34px)); }   /* staggered, organic */
.program-tile__media { display: block; aspect-ratio: 0.78; box-shadow: var(--shadow); transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease); }
.program-tile:hover .program-tile__media { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.program-tile__media img { transition: transform 1.1s var(--ease); }
.program-tile:hover .program-tile__media img { transform: scale(1.07); }
.program-tile__cap { display: block; padding: 16px 6px 0; text-align: center; }
.program-tile__name { display: block; font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; color: var(--ink); line-height: 1.4; }
.program-tile__tag { display: block; font-family: var(--f-naskh); font-size: clamp(14px, 1.2vw, 17px); color: var(--clay); margin-block-start: 5px; line-height: 1.5; }
html[dir="ltr"] .program-tile__tag { font-family: var(--f-serif); font-style: italic; }
.program-tile__plus { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; inline-size: 40px; block-size: 40px; border-radius: 50%; background: rgba(255,250,241,0.92); display: grid; place-items: center; color: var(--clay); opacity: 0; transform: scale(0.8); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); box-shadow: var(--shadow-sm); }
.program-tile:hover .program-tile__plus { opacity: 1; transform: scale(1); }

/* ---------------------------------------------------------------------------
   14. QUOTE BAND — a warm cinematic full-width moment
   --------------------------------------------------------------------------- */
.quote-band { position: relative; overflow: hidden; padding-block: clamp(90px, 13vw, 190px); text-align: center; color: var(--on-dark); }
.quote-band__bg { position: absolute; inset: 0; z-index: 0; }
.quote-band__bg img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.quote-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,47,54,0.86), rgba(20,59,66,0.78)); }
.quote-band__inner { position: relative; z-index: 2; }
.quote-band__q { font-family: var(--f-naskh); font-size: clamp(28px, 5vw, 64px); line-height: 1.4; color: var(--warm-white); max-inline-size: 18ch; margin-inline: auto; }
html[dir="ltr"] .quote-band__q { font-family: var(--f-serif); }
.quote-band__q b { color: var(--gold); font-weight: inherit; }
.quote-band__sub { margin-block-start: 22px; color: var(--on-dark-soft); font-size: clamp(15px, 1.4vw, 19px); }

/* ---------------------------------------------------------------------------
   15. PROJECTS — warm editorial features (varied sizes)
   --------------------------------------------------------------------------- */
.projects { position: relative; }
.projects__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-block-end: clamp(36px, 4vw, 56px); }
.projects__head .kicker { max-inline-size: 640px; }
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.project { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--warm-white); box-shadow: var(--shadow); transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project--feature { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
.project__media { overflow: hidden; aspect-ratio: 16 / 11; }
.project--feature .project__media { aspect-ratio: auto; min-block-size: 320px; }
.project__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.2s var(--ease); filter: saturate(1.06) contrast(1.03); }
.project:hover .project__media img { transform: scale(1.05); }
.project__body { padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.project__tag { align-self: flex-start; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--gold-deep); background: rgba(240,168,58,0.16); padding: 5px 15px; border-radius: 100px; }
.project__title { font-size: clamp(20px, 2vw, 28px); font-weight: 500; color: var(--ink); line-height: 1.35; }
.project__body p { color: var(--text-soft); font-size: 0.98rem; }
.projects__trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 34px); margin-block-start: clamp(20px, 2.4vw, 34px); }
@media (max-width: 860px) { .projects__trio { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   16. TIMELINE — warm golden vertical journey
   --------------------------------------------------------------------------- */
.journey { position: relative; }
.journey__head { text-align: center; max-inline-size: 680px; margin-inline: auto; margin-block-end: clamp(46px, 5vw, 72px); }
.journey__head .eyebrow { justify-content: center; }
.journey__title { font-size: clamp(30px, 4.4vw, 54px); font-weight: 300; margin-block: 16px 16px; }
.journey__line { position: relative; max-inline-size: 760px; margin-inline: auto; }
.journey__line::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 50%; inline-size: 2px; transform: translateX(-50%); background: linear-gradient(var(--gold), var(--clay-soft), var(--teal-300)); }
.jstep { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: clamp(16px, 2vw, 26px); }
.jstep__dot { inline-size: 18px; block-size: 18px; border-radius: 50%; background: var(--warm-white); border: 3px solid var(--gold); box-shadow: 0 0 0 5px rgba(240,168,58,0.16); z-index: 1; }
.jstep__dot--now { background: var(--gold); box-shadow: 0 0 0 6px rgba(240,168,58,0.22); animation: pulse 2.4s var(--ease-soft) infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 5px rgba(240,168,58,0.2)} 50%{box-shadow:0 0 0 12px rgba(240,168,58,0.05)} }
.jstep__year { font-family: var(--f-naskh); font-size: clamp(22px, 2.3vw, 30px); color: var(--clay); }
html[dir="ltr"] .jstep__year { font-family: var(--f-serif); }
.jstep__card { background: var(--warm-white); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.jstep__card h3 { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; margin-block-end: 6px; }
.jstep__card p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.75; }
.jstep__year { text-align: center; }
.jstep:nth-child(odd) .jstep__year { text-align: end; }       /* near the line */
.jstep:nth-child(even) .jstep__card { order: 1; }              /* card to the other side */
.jstep:nth-child(even) .jstep__dot { order: 2; }               /* dot stays centered */
.jstep:nth-child(even) .jstep__year { order: 3; text-align: start; }

/* ---------------------------------------------------------------------------
   17. FUNDING — warm cozy humble band
   --------------------------------------------------------------------------- */
.funding { position: relative; overflow: hidden; text-align: center; padding-block: clamp(80px, 11vw, 160px); background: linear-gradient(165deg, #163a40, #0e2f36); color: var(--on-dark); }
.funding__wm { position: absolute; inset: 0; margin: auto; inline-size: min(64vw, 520px); block-size: fit-content; opacity: 0.06; }
.funding .glow { inset-block-start: -18%; inset-inline: 0; margin-inline: auto; inline-size: clamp(320px,40vw,640px); aspect-ratio: 1; }
.funding__inner { position: relative; z-index: 2; }
.funding .eyebrow { color: var(--gold); justify-content: center; }
.funding .eyebrow::before { background: var(--gold); }
.funding__title { font-size: clamp(28px, 4.2vw, 52px); font-weight: 300; color: var(--warm-white); margin-block: 16px 26px; }
.funding__text { font-family: var(--f-naskh); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.7; color: var(--on-dark); max-inline-size: 760px; margin-inline: auto; }
html[dir="ltr"] .funding__text { font-family: var(--f-serif); }
.funding__text b { color: var(--gold); font-weight: 700; }
.funding__sub { margin-block-start: 24px; font-size: clamp(15px, 1.3vw, 18px); color: var(--on-dark-soft); max-inline-size: 600px; margin-inline: auto; line-height: 1.9; }

/* ---------------------------------------------------------------------------
   18. ACTIVITIES — warm masonry of moments
   --------------------------------------------------------------------------- */
.field-moments { position: relative; }
.field-moments__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-block-end: clamp(34px, 4vw, 54px); }
.field-moments__head .kicker { max-inline-size: 620px; }
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 26px); }
.moment { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--warm-white); box-shadow: var(--shadow); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.moment:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.moment__media { overflow: hidden; aspect-ratio: 4 / 3; }
.moment__media img { inline-size: 100%; block-size: 100%; display: block; object-fit: cover; transition: transform 1.1s var(--ease); filter: saturate(1.06) contrast(1.03); }
.moment:hover .moment__media img { transform: scale(1.05); }
.moment__cap { padding: 18px 20px 22px; flex: 1; }
.moment__cap h3 { font-size: 1.08rem; font-weight: 600; margin-block-end: 6px; }
.moment__cap p { font-size: 0.9rem; color: var(--text-mute); line-height: 1.7; }
.field-moments__more { margin-block-start: clamp(30px, 4vw, 48px); text-align: center; }

/* ---------------------------------------------------------------------------
   19. CONTACT — warm & friendly
   --------------------------------------------------------------------------- */
.contact { position: relative; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 76px); align-items: start; }
.contact__title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 300; margin-block: 14px 16px; }
.contact__lead { margin-block-end: 22px; }
.contact__cta-row { margin-block-end: 34px; }
.contact__details { display: grid; gap: 18px; margin-block-end: 28px; }
.contact__details li { display: flex; gap: 16px; align-items: center; }
.contact__ico { flex: none; inline-size: 50px; block-size: 50px; border-radius: 16px; background: var(--cream); border: 1px solid var(--sand-line); display: grid; place-items: center; color: var(--clay); box-shadow: var(--shadow-sm); }
.contact__ico svg { inline-size: 22px; block-size: 22px; }
.contact__k { display: block; font-size: 0.8rem; color: var(--text-mute); margin-block-end: 2px; }
.contact__v { display: block; font-size: 1.05rem; color: var(--ink); font-weight: 500; }
a.contact__v:hover { color: var(--clay); }
.contact__socials { display: flex; gap: 12px; }
.contact__socials a { inline-size: 46px; block-size: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--sand-line); color: var(--clay); transition: transform 0.4s var(--ease), background 0.4s, color 0.4s; }
.contact__socials a svg { inline-size: 20px; block-size: 20px; }
.contact__socials a:hover { transform: translateY(-3px); background: var(--ink); color: var(--warm-white); }
.contact__form { display: grid; gap: 18px; background: var(--warm-white); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.86rem; color: var(--text-soft); font-weight: 500; }
.field input, .field textarea, .select-wrap select { font: inherit; font-size: 0.98rem; color: var(--ink); background: var(--paper); border: 1px solid var(--hair-2); border-radius: 14px; padding: 13px 16px; inline-size: 100%; transition: border-color 0.4s, box-shadow 0.4s; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus, .select-wrap select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240,168,58,0.16); }
.field textarea { resize: vertical; min-block-size: 110px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 44px; }
.select-wrap__chev { position: absolute; inset-inline-end: 14px; inset-block-start: 50%; transform: translateY(-50%); inline-size: 20px; block-size: 20px; color: var(--text-mute); pointer-events: none; }
.field__consent { font-size: 0.82rem; color: var(--text-mute); line-height: 1.7; }
.contact__submit { justify-self: start; }
.contact__note { font-size: 0.92rem; min-block-size: 1.2em; }
.contact__note.is-ok { color: var(--clay); } .contact__note.is-err { color: #c0532a; }

/* ---------------------------------------------------------------------------
   20. FOOTER — warm
   --------------------------------------------------------------------------- */
.footer { position: relative; overflow: hidden; background: linear-gradient(180deg, #163a40, #0c2a30); color: var(--on-dark-soft); padding-block: clamp(54px, 7vw, 84px) 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: clamp(30px, 4vw, 60px); align-items: start; padding-block-end: clamp(32px, 4vw, 48px); }
.footer__logo { inline-size: min(70vw, 220px); margin-block-end: 14px; }
.footer__tag { font-size: 1.3rem; color: var(--gold); }
.footer__nav { display: grid; gap: 12px; }
.footer__nav a { color: var(--on-dark-soft); font-size: 0.98rem; transition: color 0.3s, padding-inline-start 0.3s; }
.footer__nav a:hover { color: var(--warm-white); padding-inline-start: 6px; }
.footer__contact { display: grid; gap: 12px; }
.footer__contact a { color: var(--on-dark-soft); transition: color 0.3s; }
.footer__contact a:hover { color: var(--gold); }
.footer__socials { display: flex; gap: 12px; margin-block-start: 6px; }
.footer__socials a { inline-size: 42px; block-size: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(247,236,219,0.2); color: var(--on-dark-soft); transition: background 0.4s, color 0.4s, transform 0.4s; }
.footer__socials a svg { inline-size: 18px; block-size: 18px; }
.footer__socials a:hover { background: var(--gold); color: #2a1a08; transform: translateY(-3px); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block-start: 24px; border-block-start: 1px solid rgba(247,236,219,0.14); font-size: 0.86rem; color: rgba(214,195,170,0.7); }
.footer__funded { color: var(--gold); }

/* ---------------------------------------------------------------------------
   21. Ambient warm motifs
   --------------------------------------------------------------------------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.ambient__star { position: absolute; -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }
.ambient__star--1 { inline-size: 70px; block-size: 70px; inset-block-start: 26%; inset-inline-start: 5%; background: var(--gold); opacity: 0.08; animation: float 16s var(--ease-soft) infinite; }
.ambient__star--2 { inline-size: 50px; block-size: 50px; inset-block-start: 66%; inset-inline-end: 7%; background: var(--clay); opacity: 0.08; animation: float 22s var(--ease-soft) -6s infinite; }
@keyframes float { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-24px) rotate(16deg)} }
@keyframes mote-rise { 0%{transform:translateY(24px) scale(.5);opacity:0} 18%{opacity:.85} 82%{opacity:.5} 100%{transform:translateY(-72px) scale(1);opacity:0} }
@media (prefers-reduced-motion: reduce) { .ambient__star, .loader__glow, .jstep__dot--now { animation: none !important; } }

/* ===========================================================================
   22. INNER PAGES (founder / programme / news) — warm
   =========================================================================== */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(120px, 16vh, 180px) clamp(36px, 5vw, 64px); }
.page-hero .glow { inset-block-start: -16%; inset-inline-end: 4%; inline-size: clamp(300px,38vw,560px); aspect-ratio:1; }
.page-hero__wm { position: absolute; inset-block: 0; margin-block: auto; inset-inline-start: 6%; inline-size: min(36vw, 320px); block-size: fit-content; opacity: 0.05; pointer-events: none; }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__back { margin-block-end: clamp(20px, 3vw, 32px); }
.page-hero__title { font-size: clamp(34px, 5.2vw, 68px); font-weight: 300; color: var(--ink); line-height: 1.1; margin-block: 12px 14px; }
.page-hero__sub { font-family: var(--f-naskh); font-size: clamp(18px, 2.2vw, 26px); color: var(--clay); max-inline-size: 720px; line-height: 1.6; }
html[dir="ltr"] .page-hero__sub { font-family: var(--f-serif); font-style: italic; }

.prose { max-inline-size: 64ch; }
.prose__lead { color: var(--text); font-weight: 300; margin-block-end: 28px; }
.prose__block { margin-block-end: 24px; }
.prose__block h3 { font-size: clamp(19px, 1.7vw, 23px); color: var(--ink); font-weight: 600; margin-block-end: 8px; display: flex; align-items: center; gap: 10px; }
.prose__block h3::before { content: ""; inline-size: 11px; block-size: 11px; background: var(--gold); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }
.prose p { color: var(--text-soft); line-height: 1.95; }
.article__body p { margin-block-end: 18px; font-size: clamp(16px, 1.2vw, 18px); }

.founder-detail__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.founder-detail__aside { position: sticky; inset-block-start: 110px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.founder-detail__arch { inline-size: min(82vw, 360px); aspect-ratio: 0.8; box-shadow: var(--shadow-lg); }
.founder-detail__dates { display: flex; align-items: center; gap: 14px; font-family: var(--f-naskh); font-size: clamp(20px, 2.2vw, 28px); color: var(--clay); }
html[dir="ltr"] .founder-detail__dates { font-family: var(--f-serif); }
.founder-detail__body .founder__quote { margin-block-start: 30px; }

.program-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.program-detail__media { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.program-detail__h { font-size: clamp(20px, 2vw, 26px); color: var(--ink); font-weight: 500; margin-block: 28px 16px; }
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); line-height: 1.8; }
.checklist .dot { flex: none; inline-size: 14px; block-size: 14px; margin-block-start: 7px; background: var(--gold); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }
.others__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; margin-block-end: 26px; }
.others__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mini-card { display: block; padding: 22px 24px; border-radius: var(--radius); background: var(--warm-white); border: 1px solid var(--hair); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.mini-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mini-card__name { display: block; font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-block-end: 6px; }
.mini-card__tag { display: block; font-family: var(--f-naskh); color: var(--clay); font-size: 1rem; }
html[dir="ltr"] .mini-card__tag { font-family: var(--f-serif); font-style: italic; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--warm-white); border: 1px solid var(--hair); box-shadow: var(--shadow); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.1s var(--ease); filter: saturate(1.06) contrast(1.03); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__meta, .article__meta { display: flex; align-items: center; gap: 12px; }
.news-card__date, .article__date { font-size: 0.84rem; color: var(--text-mute); }
.news-card__title { font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; color: var(--ink); line-height: 1.4; }
.news-card__sum { color: var(--text-soft); font-size: 0.96rem; flex: 1; }
.news-card__more { margin-block-start: 6px; }
.tagchip { font-size: 0.8rem; font-weight: 600; color: var(--gold-deep); background: rgba(240,168,58,0.16); padding: 5px 14px; border-radius: 100px; }
.article__media { aspect-ratio: 16/9; box-shadow: var(--shadow-lg); margin-block-end: 26px; }
.article__meta { margin-block-end: 22px; }
.article__back { margin-block-start: 30px; }

.contact-strip { position: relative; overflow: hidden; text-align: center; padding-block: clamp(70px, 9vw, 120px); background: linear-gradient(165deg, #163a40, #0e2f36); color: var(--on-dark); }
.contact-strip .glow { inset-block-start: -26%; inset-inline: 0; margin-inline: auto; inline-size: clamp(300px,38vw,560px); aspect-ratio:1; }
.contact-strip__inner { position: relative; z-index: 2; }
.contact-strip h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 300; color: var(--warm-white); margin-block-end: 16px; }
.contact-strip p { font-family: var(--f-naskh); font-size: clamp(18px, 2vw, 24px); color: var(--on-dark); max-inline-size: 640px; margin-inline: auto; margin-block-end: 30px; line-height: 1.7; }
html[dir="ltr"] .contact-strip p { font-family: var(--f-serif); }
.contact-strip__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===========================================================================
   23. Responsive
   =========================================================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__figure { max-inline-size: 460px; margin-inline: auto; }
  .founder__inner { grid-template-columns: 1fr; gap: 44px; }
  .founder__figure { order: -1; }
  .purpose__grid { grid-template-columns: 1fr 1fr; }
  .cozy-card__big { grid-column: span 2; }
  .fields__gallery { grid-template-columns: repeat(3, 1fr); }
  .moments { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .founder-detail__grid, .program-detail__grid { grid-template-columns: 1fr; }
  .founder-detail__aside { position: static; order: -1; }
}
@media (max-width: 860px) {
  .nav, .nav__cta { display: none; }
  .nav-toggle { display: flex; }
  .contact__inner { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .project--feature { grid-column: span 1; grid-template-columns: 1fr; }
  .jstep { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .journey__line::before { inset-inline-start: 0; transform: none; }
  .jstep:nth-child(even) > :first-child { order: 0; }
  .jstep__dot { position: absolute; inset-inline-start: -1px; inset-block-start: 22px; }
  .journey__line { padding-inline-start: 24px; }
  .jstep__year { text-align: start !important; }
}
@media (max-width: 620px) {
  .fields__gallery { grid-template-columns: repeat(2, 1fr); }
  .program-tile:nth-child(even) { transform: none; }
  .moments { grid-template-columns: 1fr; }
  .purpose__grid { grid-template-columns: 1fr; }
  .cozy-card__big { grid-column: span 1; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .ribbon__inner { gap: 14px; }
  .brand__tag { display: none; }
}

/* ===========================================================================
   36. Depth, interactivity & crafted motion (calm & physical)
   =========================================================================== */
/* scroll progress */
.scroll-progress { position: fixed; inset-block-start: 0; inset-inline: 0; block-size: 3px; z-index: 1500; background: linear-gradient(90deg, var(--gold), var(--clay)); transform: scaleX(0); transform-origin: left center; will-change: transform; }
html[dir="rtl"] .scroll-progress { transform-origin: right center; }

/* sticky side-rail */
.siderail { position: fixed; inset-block-start: 50%; inset-inline-end: clamp(14px, 1.6vw, 26px); transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 15px; }
.siderail a { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--hair-2); position: relative; transition: background 0.4s var(--ease), transform 0.4s var(--ease); }
.siderail a:hover { transform: scale(1.3); }
.siderail a.is-active { background: var(--gold); transform: scale(1.5); }
.siderail a::after { content: attr(data-label); position: absolute; inset-inline-end: 20px; inset-block-start: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 0.8rem; color: var(--ink); background: var(--warm-white); padding: 5px 12px; border-radius: 100px; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.siderail a:hover::after { opacity: 1; }
@media (max-width: 1100px) { .siderail { display: none; } }

/* word-by-word heading reveal */
.split .word { display: inline-block; opacity: 0; transform: translateY(0.42em); transition: opacity 0.75s var(--ease-soft), transform 0.75s var(--ease-soft); will-change: opacity, transform; }
.split.is-in .word { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .split .word { opacity: 1 !important; transform: none !important; } }

/* parallax-ready cinematic image (quote band) */
.quote-band__bg { overflow: hidden; }
.quote-band__bg img { block-size: 126%; inline-size: 100%; object-fit: cover; will-change: transform; }

/* -- Interactive programmes: sticky scroll-through -- */
.showcase { position: relative; background: linear-gradient(180deg, transparent, rgba(241,227,207,0.45) 26%, transparent 92%); }
.showcase__head { text-align: center; max-inline-size: 720px; margin-inline: auto; margin-block-end: clamp(36px, 4vw, 56px); }
.showcase__head .eyebrow { justify-content: center; }
.showcase__title { font-size: clamp(30px, 4.6vw, 56px); font-weight: 300; margin-block: 16px 16px; }
.showcase__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.showcase__sticky { position: sticky; inset-block-start: 13vh; block-size: 74vh; }
.showcase__stage { position: relative; inline-size: 100%; block-size: 100%; }
.showcase__stage .arch { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.9s var(--ease), transform 1.4s var(--ease); box-shadow: var(--shadow-lg); }
.showcase__stage .arch.is-active { opacity: 1; transform: scale(1); }
.showcase__stage::after { content: ""; position: absolute; inset: auto -8% -6% auto; inline-size: 46%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(240,168,58,0.28), transparent 66%); filter: blur(8px); }
.showcase__list { display: flex; flex-direction: column; }
.showcase__item a { display: flex; align-items: center; gap: 18px; padding: clamp(20px, 2.6vw, 34px) 6px; border-block-end: 1px solid var(--hair); transition: padding-inline 0.5s var(--ease); }
.showcase__item:first-child a { border-block-start: 1px solid var(--hair); }
.showcase__thumb { display: none; flex: none; inline-size: 66px; aspect-ratio: 0.82; box-shadow: var(--shadow-sm); }
.showcase__text { flex: 1; }
.showcase__name { display: block; font-size: clamp(19px, 2.1vw, 28px); font-weight: 600; color: var(--text-mute); line-height: 1.3; transition: color 0.45s var(--ease); }
.showcase__tag { display: block; margin-block-start: 5px; font-family: var(--f-naskh); font-size: clamp(14px, 1.3vw, 18px); color: var(--text-mute); opacity: 0.65; transition: color 0.45s var(--ease), opacity 0.45s var(--ease); }
html[dir="ltr"] .showcase__tag { font-family: var(--f-serif); font-style: italic; }
.showcase__go { flex: none; color: var(--clay); opacity: 0; transform: translateX(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
html[dir="ltr"] .showcase__go { transform: scaleX(-1) translateX(8px); }
.showcase__item.is-active a { padding-inline-start: 16px; }
.showcase__item.is-active .showcase__name { color: var(--ink); }
.showcase__item.is-active .showcase__tag { color: var(--clay); opacity: 1; }
.showcase__item.is-active .showcase__go { opacity: 1; transform: none; }
html[dir="ltr"] .showcase__item.is-active .showcase__go { transform: scaleX(-1); }
.showcase__item.is-active a { position: relative; }
.showcase__item.is-active a::before { content: ""; position: absolute; inset-inline-start: -2px; inset-block: 24%; inline-size: 3px; border-radius: 3px; background: var(--gold); }
.showcase__item a:hover .showcase__name { color: var(--ink); }

@media (max-width: 900px) {
  .showcase__grid { grid-template-columns: 1fr; }
  .showcase__sticky { display: none; }
  .showcase__thumb { display: block; }
  .showcase__name { font-size: clamp(17px, 4.6vw, 21px); }
  .showcase__go { display: none; }
}

/* a little overlap for depth: contact form lifts over the band above */
@media (min-width: 861px) {
  .contact__form { margin-block-start: -10px; }
}

/* ===========================================================================
   37. Cinematic motion — calm image reveals, Ken Burns, hover, cursor
   =========================================================================== */
:root { --ease-rev: cubic-bezier(0.16, 0.72, 0.24, 1); }

/* --- Signature reveal: "the photograph develops" — warm placeholder, then the
       photo fades + scales + sharpens in. (No clip-path: it flashed a blank box on
       wide cards and deadlocked the observer.) The wrapper stays opaque & warm. --- */
/* The photo is ALWAYS visible — just blurred + slightly scaled until it enters,
   then it sharpens & settles. Never hidden, so it can never flash a white box. */
[data-reveal="img"] { transform: scale(1.04); transition: transform 1.6s var(--ease-rev); will-change: transform; }
[data-reveal="img"].is-in { transform: none; }
[data-reveal="img"] img { filter: blur(9px) saturate(1.07) contrast(1.03); transition: transform 0.85s var(--ease), filter 1.5s var(--ease-rev); }
[data-reveal="img"].is-in img { filter: blur(0) saturate(1.07) contrast(1.03); }
/* warm placeholder behind the photo, just in case a lazy image is mid-load */
.project__media, .moment__media { background: linear-gradient(165deg, var(--clay-soft), var(--teal)); }
@media (prefers-reduced-motion: reduce), (scripting: none) {
  [data-reveal="img"] { transform: none !important; }
  [data-reveal="img"] img { filter: saturate(1.07) contrast(1.03) !important; }
}

/* --- Ribbon: continuous marquee (never pauses, even on hover) --- */
.ribbon { overflow: hidden; direction: ltr; }   /* anchor the wide track at the left edge */
.ribbon__track {
  display: flex; flex-wrap: nowrap; inline-size: max-content; direction: ltr;
  align-items: center; gap: clamp(26px, 3.6vw, 60px);
  padding-block: clamp(26px, 3.2vw, 46px);
  animation: ribbon-marquee 90s linear infinite;   /* calm drift (JS pins exact px/sec after fonts load) */
}
.ribbon__track:hover { animation-play-state: running; }   /* explicitly: do NOT pause on hover */
.ribbon__item { direction: rtl; flex: none; white-space: nowrap; }
@keyframes ribbon-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon__track { animation: none; flex-wrap: wrap; justify-content: center; inline-size: auto; gap: 14px 32px; }
}

/* --- Ken Burns: slow life without scrolling --- */
@keyframes kenburns { from { transform: scale(1.002); } to { transform: scale(1.085); } }
.kb { animation: kenburns 24s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .kb { animation: none !important; } }

/* --- Hover system: gentle zoom-within-frame + light sweep --- */
.arch img, .framed img, .project__media img, .moment__media img, .news-card__media img {
  transition: transform 0.85s var(--ease), filter 1.6s var(--ease-rev);
}
.program-tile:hover .program-tile__media img,
.project:hover .project__media img,
.moment:hover .moment__media img,
.news-card:hover .news-card__media img { transform: scale(1.06); }
/* slow light sweep (uses ::before so it doesn't clash with the warm glaze on ::after) */
.program-tile__media::before, .project__media::before, .moment__media::before, .news-card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(255,243,216,0.32) 50%, transparent 66%);
  transform: translateX(-130%); transition: transform 1.15s var(--ease);
}
.program-tile:hover .program-tile__media::before,
.project:hover .project__media::before,
.moment:hover .moment__media::before,
.news-card:hover .news-card__media::before { transform: translateX(130%); }

/* --- Programmes gallery: stagger via margin (frees transform for hover), reveal-safe --- */
.fields__gallery { align-items: start; }
.program-tile { transition: transform 0.6s var(--ease); }
.program-tile:nth-child(even) { transform: none; margin-block-start: clamp(18px, 2.8vw, 44px); }
.program-tile:hover { transform: translateY(-10px); }
.program-tile__media { transition: box-shadow 0.6s var(--ease); position: relative; }
.program-tile:hover .program-tile__media { transform: none; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(240,168,58,0.45); }
.program-tile__cap { transition: transform 0.5s var(--ease); }
.program-tile:hover .program-tile__cap { transform: translateY(-3px); }
.program-tile__name { transition: color 0.4s var(--ease); }
.program-tile:hover .program-tile__name { color: var(--clay); }
@media (max-width: 620px) { .program-tile:nth-child(even) { margin-block-start: 0; } }

/* --- Warm cursor glow (desktop, fine-pointer only) --- */
.cursor-glow {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 300px; block-size: 300px;
  border-radius: 50%; pointer-events: none; z-index: 40; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(240,168,58,0.10), transparent 62%);
  opacity: 0; transition: opacity 0.5s var(--ease), inline-size 0.5s var(--ease), block-size 0.5s var(--ease);
  will-change: transform; mix-blend-mode: soft-light;
}
body.cursor-on .cursor-glow { opacity: 1; }
.cursor-glow.is-hot { inline-size: 420px; block-size: 420px; background: radial-gradient(circle, rgba(240,168,58,0.18), transparent 62%); }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor-glow { display: none !important; } }
