/* Swedish Hospital – Olive Gardens · website
   Palette from the approved end card and lockup: cream paper, olive ink, bronze,
   and the blue/yellow bar under the name. Fonts: El Messiri (Arabic) and Jost (Latin),
   self-hosted from branding/logo-final/fonts. */

@font-face {
  font-family: "El Messiri";
  src: url("../media/fonts/ElMessiri-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../media/fonts/Jost-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #f3eee3;
  --paper-2: #e9e2d2;
  --ink: #23271c;
  --ink-2: #555846;
  --ink-3: #7b7c68;
  --rule: #d4cbb6;
  --bronze: #85622c;
  --sign: #2d3324;
  --sign-ink: #efe9db;
  --sign-2: #b9b49c;
  --sign-rule: rgba(239, 233, 219, .16);
  --se-blue: #006aa7;
  --se-yellow: #fecc02;
  --shade: 20, 23, 15;

  --ar: "El Messiri", "Geeza Pro", "SF Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
  --lat: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: var(--lat);
  --gutter: 16px;
  --max: 1200px;
  --sec: clamp(72px, 11vw, 150px);
}
:root[lang="ar"] { --body: var(--ar); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12140e;
    --paper-2: #191c14;
    --ink: #ece6d7;
    --ink-2: #b4af98;
    --ink-3: #8d8a76;
    --rule: #2f3428;
    --bronze: #cfa968;
    --sign: #20251a;
    --sign-ink: #ece6d7;
    --sign-2: #a9a48c;
  }
}
:root[data-theme="dark"] {
  --paper: #12140e;
  --paper-2: #191c14;
  --ink: #ece6d7;
  --ink-2: #b4af98;
  --ink-3: #8d8a76;
  --rule: #2f3428;
  --bronze: #cfa968;
  --sign: #20251a;
  --sign-ink: #ece6d7;
  --sign-2: #a9a48c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
:root[lang="ar"] body { font-size: 18px; line-height: 1.95; }
h1, h2, h3, p, figure, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { color: var(--bronze); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }
[lang="ar"] { font-family: var(--ar); }
[lang="en"], [lang="ku"] { font-family: var(--lat); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* the blue/yellow bar, as under the name on the sign and the end card */
.flag { display: inline-flex; width: 7.5rem; height: 5px; border-radius: 3px; overflow: hidden; }
.flag i { flex: 1; background: var(--se-blue); }
.flag i + i { background: var(--se-yellow); }
[dir="rtl"] .flag { flex-direction: row-reverse; }

/* ---------------------------------------------------------------- header */
.top {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--gutter);
  color: #f6f1e6;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.top.solid {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.top.solid .brand img { filter: none; }
.brand-name {
  display: flex; flex-direction: column; line-height: 1.15;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
}
.brand-name small { font-weight: 400; font-size: .82rem; opacity: .82; }
:root[lang="en"] .brand-name { font-weight: 500; letter-spacing: .01em; }
.nav { display: none; gap: 26px; margin-inline-start: auto; font-size: .95rem; }
.nav a, .nav-contact, .top .lang { text-decoration: none; }
.nav a { opacity: .9; }
.nav a:hover { opacity: 1; color: inherit; text-decoration: underline; }
.nav-contact { margin-inline-start: auto; font-size: .95rem; }
.top .lang {
  font-size: .9rem; padding: 5px 12px; border: 1px solid currentColor; border-radius: 2px;
  opacity: .9; white-space: nowrap;
}
.top .lang:hover { opacity: 1; color: inherit; }
@media (max-width: 479px) {
  .top { gap: 14px; }
  .brand { gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: .92rem; }
  .top .lang { padding: 4px 9px; font-size: .84rem; }
}
@media (max-width: 439px) {
  .nav-contact { display: none; }
  .top .lang { margin-inline-start: auto; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-contact { display: none; }
  .top { padding-block: 16px; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; color: #f8f4ea; background: #2b2f22; }
.stick {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 1000px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.fl-poster, .fl-canvas, .fl-caps, .fl-hint { display: none; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  object-fit: cover; object-position: 24% 50%;
}
[dir="rtl"] .hero-img { object-position: 24% 50%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(var(--shade), .82) 0%, rgba(var(--shade), .52) 32%, rgba(var(--shade), 0) 62%),
    linear-gradient(to bottom, rgba(var(--shade), .45) 0%, rgba(var(--shade), 0) 22%);
}
.hero-in { padding-block: 0 26px; }
.stage {
  display: inline-block; margin-bottom: 18px;
  font-size: .8rem; letter-spacing: .06em;
  padding: 3px 10px; border: 1px solid rgba(248,244,234,.55); border-radius: 2px;
}
:root[lang="en"] .stage { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.lockup { display: flex; flex-direction: column; align-items: flex-start; font-weight: 400; }
.l-ar1 { font-family: var(--ar); font-weight: 600; font-size: clamp(1.55rem, 7.3vw, 5.2rem); line-height: 1.25; }
.l-ar2 { font-family: var(--ar); font-weight: 500; font-size: clamp(1.35rem, 3.4vw, 2.3rem); line-height: 1.3; opacity: .94; }
.l-en1 { font-family: var(--lat); font-weight: 400; font-size: clamp(2.4rem, 7.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.012em; }
.l-en2 { font-family: var(--lat); font-weight: 300; font-size: clamp(1.6rem, 4.6vw, 3.2rem); line-height: 1.15; }
.lockup .flag { margin: 18px 0 14px; width: clamp(7rem, 16vw, 10rem); height: 6px; }
.l-lat { font-family: var(--lat); font-weight: 500; font-size: clamp(.68rem, 1.5vw, .86rem); letter-spacing: .3em; text-transform: uppercase; opacity: .9; }
.l-arsm { font-family: var(--ar); font-weight: 500; font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; }
.hero-line { margin-top: 22px; max-width: 34em; text-wrap: balance; font-size: clamp(1.02rem, 1.8vw, 1.22rem); line-height: 1.7; opacity: .95; }
.hero-cap {
  padding-block: 0 18px; font-size: .74rem; opacity: .7;
}

/* the approach flight: the v19 drone shot scrubbed by scrolling (only with html.fx) */
.fx .flight { height: 330vh; background: #1d2117; }
@media (max-aspect-ratio: 4/5) { .fx .flight { height: 270vh; } }
.fx .flight .stick { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.fx .hero-img { display: none; }
.fx .fl-poster, .fx .fl-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.fx .fl-poster { z-index: -4; }
.fx .fl-poster img { width: 100%; height: 100%; object-fit: cover; }
.fx .fl-canvas {
  z-index: -3; opacity: 0; transition: opacity .6s ease;
  transform: scale(1.035) translate3d(calc(var(--hx, 0) * -12px), calc(var(--hy, 0) * -8px), 0);
}
.fx .fl-on .fl-canvas { opacity: 1; }
.fx .flight .hero-shade {
  background:
    linear-gradient(to top, rgba(var(--shade), .8) 0%, rgba(var(--shade), .45) 30%, rgba(var(--shade), 0) 58%),
    linear-gradient(to bottom, rgba(var(--shade), .55) 0%, rgba(var(--shade), 0) 24%);
}
.fx .flight .hero-in {
  opacity: calc(1 - var(--p, 0) * 5.5);
  transform: translate3d(calc(var(--hx, 0) * 7px), calc(var(--p, 0) * -110px + var(--hy, 0) * 5px), 0);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.fx .fl-caps { display: block; position: absolute; inset-inline: 0; bottom: max(15vh, 110px); pointer-events: none; }
.fl-cap {
  position: absolute; bottom: 0; max-width: 17em; opacity: 0;
  font-size: clamp(1.5rem, 3.7vw, 2.9rem); line-height: 1.3; font-weight: 400;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .35);
}
:root[lang="ar"] .fl-cap { font-weight: 600; line-height: 1.6; }
.fl-cap::before {
  content: ""; display: block; width: 3.2rem; height: 4px; margin-bottom: 16px; border-radius: 2px;
  background: linear-gradient(to right, var(--se-blue) 50%, var(--se-yellow) 50%);
}
.fx .fl-hint {
  display: block; position: absolute; bottom: 22px; left: 50%; width: 1px; height: 54px; margin-left: -.5px;
  background: rgba(248, 244, 234, .28); overflow: hidden; opacity: calc(1 - var(--p, 0) * 30);
}
.fl-hint i {
  position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: #f8f4ea;
  animation: hint 2.2s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes hint { from { transform: translateY(-18px); } to { transform: translateY(54px); } }
@media (max-width: 899px) { .fx .hero-cap { padding-bottom: 86px; } }

/* ---------------------------------------------------------------- shared section parts */
.kicker {
  display: flex; align-items: center; gap: 12px;
  color: var(--bronze); font-size: .86rem; font-weight: 500; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
:root[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
h2 {
  text-wrap: balance;
  font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.2; letter-spacing: -.01em;
}
:root[lang="ar"] h2 { font-weight: 600; line-height: 1.45; letter-spacing: 0; }
.lede { margin-top: 16px; max-width: 36em; font-size: 1.08rem; color: var(--ink-2); }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
figure { position: relative; }
figure img { width: 100%; background: var(--paper-2); }
.ph { display: block; position: relative; overflow: hidden; }
figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-2); line-height: 1.5; }
figcaption span { color: var(--ink-3); }

/* ---------------------------------------------------------------- intro */
.intro { padding-block: var(--sec) calc(var(--sec) * .75); }
.statement {
  text-wrap: pretty;
  max-width: 24em;
  font-size: clamp(1.5rem, 3.3vw, 2.45rem); line-height: 1.38; font-weight: 300;
}
:root[lang="ar"] .statement { font-weight: 500; line-height: 1.75; max-width: 22em; }
.intro-grid {
  display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 72px);
  padding-top: 32px; border-top: 1px solid var(--rule);
}
.intro-body { max-width: 34em; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-self: start; }
.facts div { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .78rem; color: var(--ink-3); }
:root[lang="en"] .facts dt { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.facts dd { font-size: 1.12rem; font-weight: 500; margin-top: 2px; }
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
}

/* full-bleed images */
.bleed img { width: 100%; height: clamp(320px, 62vw, 820px); object-fit: cover; }
.bleed.tall img { height: clamp(360px, 70vw, 900px); }
.bleed figcaption { margin-top: 10px; }

/* ---------------------------------------------------------------- standards */
.standards { padding-block: var(--sec); }
.std-row { display: grid; gap: 22px; align-items: end; }
.std-row + .std-row { margin-top: clamp(56px, 9vw, 120px); }
.std-text h3 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 500; line-height: 1.3; margin-bottom: 12px; }
:root[lang="ar"] .std-text h3 { font-weight: 600; line-height: 1.6; }
.std-text p { color: var(--ink-2); max-width: 30em; }
.std-fig img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) {
  .std-row { grid-template-columns: 5fr 7fr; gap: 64px; }
  .std-text { padding-bottom: 46px; }
  .std-row.flip .std-text { order: 2; }
  .std-row.flip { grid-template-columns: 7fr 5fr; }
}

/* ---------------------------------------------------------------- departments */
.care { background: var(--paper-2); padding-block: var(--sec); }
.sign {
  background: var(--sign); color: var(--sign-ink);
  padding: 22px clamp(18px, 3vw, 40px) 10px;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -28px rgba(0,0,0,.5);
}
.sign-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--sign-rule);
  font-size: .9rem; color: var(--sign-2);
}
:root[lang="en"] .sign-head { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.sign-head img { width: 40px; height: 40px; }
.sign-head .flag { margin-inline-start: auto; width: 4.5rem; height: 4px; }
.depts { display: grid; }
.depts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 14px 0 15px; border-bottom: 1px solid var(--sign-rule);
}
.depts li:last-child { border-bottom: 0; }
.d-name { font-size: 1.1rem; font-weight: 500; display: flex; flex-direction: column; }
:root[lang="ar"] .d-name { font-weight: 600; font-size: 1.12rem; }
.d-note { font-size: .84rem; font-weight: 400; color: var(--sign-2); margin-top: 2px; }
.d-alt { font-size: .95rem; color: var(--sign-2); text-align: end; flex: none; max-width: 48%; }
.d-alt[lang="ar"] { font-size: 1rem; }
@media (max-width: 599px) {
  .depts li { flex-direction: column; gap: 2px; }
  .d-alt { max-width: none; text-align: start; font-size: .88rem; }
}
@media (min-width: 900px) {
  .depts { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .depts li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .depts li:last-child { border-bottom: 0; }
  .sign { padding-bottom: 14px; }
}

/* galleries: one large view and smaller ones, captions under each */
.gal { margin-top: clamp(48px, 7vw, 88px); }
.gal img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 899px) {
  .gal {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    padding-bottom: 6px; scrollbar-width: thin;
  }
  .gal figure { flex: 0 0 84%; scroll-snap-align: start; }
}
@media (min-width: 900px) {
  .gal {
    display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 34px 22px;
  }
  .gal figure:first-child { grid-row: 1 / span 2; display: flex; flex-direction: column; }
  .gal figure:first-child .ph { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .gal figure:first-child img { flex: 1; min-height: 0; aspect-ratio: auto; height: 100%; }
  .gal-fam figure:first-child { grid-column: 3; }
  .gal-fam { grid-template-columns: 1fr 1fr 1.7fr; }
  .gal-fam figure:nth-child(2) { grid-column: 1; grid-row: 1; }
  .gal-fam figure:nth-child(3) { grid-column: 2; grid-row: 1; }
  .gal-fam figure:nth-child(4) { grid-column: 1; grid-row: 2; }
  .gal-fam figure:nth-child(5) { grid-column: 2; grid-row: 2; }
}

/* ---------------------------------------------------------------- gardens */
.gardens { padding-bottom: var(--sec); }
.gardens-grid { display: grid; gap: 36px; margin-top: clamp(48px, 7vw, 96px); }
.gardens-text p { color: var(--ink-2); margin-top: 18px; max-width: 30em; }
.gardens-grid figure img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .gardens-grid { grid-template-columns: 1fr 1.15fr .95fr; gap: 40px; align-items: start; }
  .g-entr { margin-top: 120px; }
  .g-rill img { aspect-ratio: 4 / 5; }
}

/* ---------------------------------------------------------------- families */
.families { padding-block: 0 var(--sec); }

/* ---------------------------------------------------------------- film */
.film { background: var(--sign); color: var(--sign-ink); padding-block: var(--sec); }
.film .kicker { color: #d9b878; }
.film-in { display: grid; gap: 36px; align-items: center; }
.film-text p { color: var(--sign-2); margin-top: 16px; max-width: 26em; }
.film-player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 2px; }
@media (min-width: 900px) {
  .film-in { grid-template-columns: 1fr 2fr; gap: 64px; }
}

/* ---------------------------------------------------------------- founders */
.founders { padding-block: var(--sec); }
.founders-grid { display: grid; gap: 48px; }
.quote p {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.5; font-weight: 300;
  max-width: 24em;
}
:root[lang="ar"] .quote p { font-weight: 500; line-height: 1.85; }
.quote p::before { content: "«"; color: var(--bronze); margin-inline-end: .1em; }
.quote p::after { content: "»"; color: var(--bronze); margin-inline-start: .1em; }
:root[lang="en"] .quote p::before { content: "“"; }
:root[lang="en"] .quote p::after { content: "”"; }
.quote footer { margin-top: 18px; color: var(--ink-2); font-size: .95rem; }
.quote footer::before { content: "— "; }
.people { display: grid; gap: 0; align-self: start; border-top: 1px solid var(--ink); }
.person { padding: 22px 0 26px; border-bottom: 1px solid var(--rule); }
.person h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.35; }
:root[lang="ar"] .person h3 { font-weight: 600; }
.person .role { color: var(--bronze); font-size: .92rem; margin: 2px 0 10px; }
.person p { color: var(--ink-2); }
.person .p-note { font-size: .86rem; color: var(--ink-3); margin-top: 10px; }
@media (min-width: 900px) {
  .founders-grid { grid-template-columns: 1.25fr 1fr; gap: 96px; }
}

/* ---------------------------------------------------------------- partners + contact */
.partners {
  position: relative; isolation: isolate; overflow: hidden;
  color: #f4efe2; padding-block: var(--sec);
  background: #22271b;
}
.partners-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.partners-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(var(--shade), .78), rgba(var(--shade), .9));
}
.partners .kicker { color: #e0c084; }
.partners-in { display: grid; gap: 56px; }
.partners-text h2 { max-width: 14em; }
.partners-text .flag { margin: 22px 0 6px; }
.partners-text p { margin-top: 16px; max-width: 32em; color: rgba(244, 239, 226, .88); }
.contact {
  align-self: start;
  background: rgba(244, 239, 226, .96); color: #23271c;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 3px;
}
.contact h3 { font-size: 1.4rem; font-weight: 500; }
:root[lang="ar"] .contact h3 { font-weight: 600; }
.contact-note { color: #555846; margin-top: 4px; font-size: .95rem; }
.c-list { margin-top: 18px; }
.c-list div { padding: 12px 0; border-top: 1px solid #d4cbb6; }
.c-list dt { font-size: .78rem; color: #7b7c68; }
:root[lang="en"] .c-list dt { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.c-list dd { font-family: var(--lat); font-size: 1.12rem; font-weight: 500; overflow-wrap: anywhere; }
.c-list dd a { text-decoration: none; }
.c-list dd a:hover { color: #85622c; text-decoration: underline; }
.c-list div:first-child dd { font-size: 1.45rem; }
:root[lang="ar"] .c-list dd { text-align: right; }
@media (min-width: 900px) {
  .partners-in { grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact { background: rgba(25, 28, 20, .94); color: var(--ink); }
  :root:not([data-theme="light"]) .contact-note { color: var(--ink-2); }
  :root:not([data-theme="light"]) .c-list div { border-color: var(--rule); }
  :root:not([data-theme="light"]) .c-list dt { color: var(--ink-3); }
  :root:not([data-theme="light"]) .c-list dd a:hover { color: var(--bronze); }
}
:root[data-theme="dark"] .contact { background: rgba(25, 28, 20, .94); color: var(--ink); }
:root[data-theme="dark"] .contact-note { color: var(--ink-2); }
:root[data-theme="dark"] .c-list div { border-color: var(--rule); }
:root[data-theme="dark"] .c-list dt { color: var(--ink-3); }
:root[data-theme="dark"] .c-list dd a:hover { color: var(--bronze); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--paper); padding-block: 56px 40px; border-top: 1px solid var(--rule); }
.foot-in { display: grid; gap: 28px; align-items: center; }
.foot-in > img { width: 88px; height: 88px; }
.foot-names { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.f-ar { font-size: 1.35rem; font-weight: 600; line-height: 1.5; }
.foot-names .flag { width: 6rem; height: 4px; margin: 6px 0 8px; }
.f-lat { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.f-place { font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.foot-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.foot-side p { font-size: .84rem; color: var(--ink-3); max-width: 30em; line-height: 1.6; }
.foot .lang { font-size: .9rem; }
@media (min-width: 900px) {
  .foot-in { grid-template-columns: auto 1fr 1fr; gap: 36px; }
  .foot-side { align-items: flex-end; text-align: end; }
}

/* ---------------------------------------------------------------- motion
   Only when html.fx is set (in <head>, before the first paint): never with
   prefers-reduced-motion, Save-Data or a 2G connection, and never with ?still.
   html.fxok is added by site.js, so nothing stays hidden if the script fails. */
.fx .hero-in > * { animation: rise 1.4s cubic-bezier(.16, .8, .24, 1) both; }
.fx .hero-in > :nth-child(2) { animation-delay: .14s; }
.fx .hero-in > :nth-child(3) { animation-delay: .3s; }
.fx .lockup .flag { animation: bar 1.5s .6s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 36px, 0); } }
@keyframes bar { from { transform: scaleX(0); } }
.flag { transform-origin: 0 50%; }
:root[dir="rtl"] .flag { transform-origin: 100% 50%; }

.fxok .rv {
  opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1.25s cubic-bezier(.16, .8, .24, 1);
  transition-delay: var(--d, 0s);
}
.fxok .rv3d { transform: perspective(1400px) translate3d(0, 70px, 0) rotateX(11deg) scale(.955); transform-origin: 50% 100%; }
.fxok .rv.in { opacity: 1; transform: none; }
.fxok .flag.rv { opacity: 1; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.6, 0, .2, 1) calc(var(--d, 0s) + .2s); }
.fxok .flag.rv.in { transform: none; }
.fxok .kicker.rv::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.6, 0, .2, 1) calc(var(--d, 0s) + .3s); }
:root[dir="rtl"] .kicker.rv::before { transform-origin: 100% 50%; }
.fxok .kicker.rv.in::before { transform: none; }

/* the statement is read in as you scroll past it */
.fxok .statement .w { opacity: .18; transition: opacity .45s ease; }
.fxok .statement .w.on { opacity: 1; }

/* inner-image parallax: the picture drifts slower than the page inside its frame */
.fxok .ph img, .fxok .partners-bg { transform: translate3d(0, var(--py, 0px), 0) scale(1.1); will-change: transform; }
.fxok .partners-bg { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); }

/* depth tilt with a soft light on pictures (desktop pointer only) */
@media (hover: hover) and (pointer: fine) {
  .fxok .tilt .ph {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .7s ease;
  }
  .fxok .tilt:hover .ph { box-shadow: 0 34px 60px -34px rgba(20, 23, 15, .55); }
  .fxok .tilt .ph::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 249, 232, .2), rgba(255, 249, 232, 0) 45%);
  }
  .fxok .tilt:hover .ph::after { opacity: 1; }
}

/* the department sign lights up row by row, like a backlit sign switched on */
.fxok .sign { position: relative; overflow: hidden; }
.fxok .sign .depts li { opacity: .12; }
.fxok .sign.in .depts li { animation: lit 1.7s cubic-bezier(.3, .6, .3, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms + .35s); }
@keyframes lit {
  0% { opacity: .12; }
  30% { opacity: 1; text-shadow: 0 0 18px rgba(255, 238, 200, .6); }
  100% { opacity: 1; text-shadow: 0 0 0 rgba(255, 238, 200, 0); }
}
.fxok .sign::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(100deg, rgba(255, 245, 220, 0) 30%, rgba(255, 245, 220, .09) 50%, rgba(255, 245, 220, 0) 70%);
}
.fxok .sign.in::after { animation: sweep 2.6s 1s ease-in-out both; }
@keyframes sweep { to { transform: translateX(110%); } }

/* ---------------------------------------------------------------- not-found page (404.html in the upload package) */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; }
.nf-in { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-block: 48px; }
.nf-in img { width: 88px; height: 88px; margin-bottom: 8px; }
.nf-name { font-weight: 600; color: var(--ink-2); }
.nf .flag { margin: 6px 0 18px; }
.nf h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 600; line-height: 1.4; }
.nf-en { font-family: var(--lat); color: var(--ink-2); }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 18px; }
.nf-links a { color: var(--bronze); }
