/* =========================================================
   Samia AlJohani — Portfolio
   Editorial look: white paper, one cobalt blue, mono type,
   black & white photography, hand-drawn marker marks.
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #ffffff;
  --paper-2: #f4f4f1;
  --ink: #141414;
  --ink-soft: #55565c;
  --blue: #2f37d0;
  --rule: #e2e2de;

  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-ar: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif;

  --max-width: 1280px;
  --gutter: clamp(1rem, 4.5vw, 4rem);
  --section-pad: clamp(5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Dark mode, switched by the circle button in the header */
html[data-theme="dark"] {
  --paper: #0d0d0d;
  --paper-2: #1a1a1a;
  --ink: #ececec;
  --ink-soft: #a3a4ab;
  --blue: #8a90ff;
  --rule: #2a2a2a;
  color-scheme: dark;
}

/* ---------- Language switching ---------- */
html[lang="ar"] [data-l="en"],
html[lang="en"] [data-l="ar"] {
  display: none !important;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--font-ar); font-size: 1.0625rem; }
html[lang="en"] body { font-family: var(--font-mono); }

[lang="en"] { font-family: var(--font-mono); }
[lang="ar"] { font-family: var(--font-ar); }

img {
  max-width: 100%;
  display: block;
}

a { color: inherit; }

.container {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* ---------- Hand-drawn marks ---------- */
.mark {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark path {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Draw-on animation (only with JS, so marks are visible without it) */
.js .mark path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease) .25s;
}

.js .is-drawn .mark path {
  stroke-dashoffset: 0;
}

.circled,
.underlined {
  position: relative;
  display: inline-block;
}

.mark--circle {
  inset-inline-start: -6%;
  top: -16%;
  width: 112%;
  height: 132%;
  stroke: var(--blue);
  stroke-width: 1.6;
  opacity: .85;
  transform: rotate(-3deg);
}

/* Mirror in Arabic so the swoosh starts from the right edge */
html[dir="rtl"] .mark--circle { transform: scaleX(-1) rotate(-3deg); }

.mark--underline {
  inset-inline-start: -2%;
  bottom: -.32em;
  width: 104%;
  height: .4em;
}

.mark--arrow {
  position: relative;
  flex: none;
  width: clamp(110px, 16vw, 220px);
  height: clamp(30px, 4vw, 60px);
}

html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }


.mark--burst {
  width: 1.9em;
  height: 1.15em;
  inset-inline-end: -1.2em;
  top: -.8em;
  stroke-width: 2.6;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1.1rem 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease), transform .4s var(--ease-out);
}

/* Slides out of view while reading down, back in on any scroll up */
.site-header.is-hidden { transform: translateY(-100%); }

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
  padding: .7rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.site-header nav { margin-inline-start: auto; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  font-size: .92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  transition: color .2s;
}

.nav-links a:hover { color: var(--blue); }

.lang-toggle {
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  color: var(--blue);
  background: none;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: .25em 1em;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.lang-toggle:hover {
  background: var(--blue);
  color: var(--paper);
}

/* Plain circle: black on the light site, white on the dark one */
.theme-toggle {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  transition: background .3s var(--ease), transform .2s var(--ease);
}

.theme-toggle:hover { transform: scale(1.15); }

html[data-theme="dark"] .site-header.is-scrolled { background: rgba(13, 13, 13, .92); }

html[data-theme="dark"] .logo-grid img { filter: url(#to-light); }
html[data-theme="dark"] .logo-grid img.is-blue { filter: brightness(1.9) saturate(.9); }

body { transition: background-color .3s var(--ease), color .3s var(--ease); }

/* Keeps the toggle on the far edge when the nav is hidden on mobile */
@media (max-width: 820px) {
  .lang-toggle { margin-inline-start: auto; }
}

/* ---------- Shared type ---------- */
.year {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--blue);
  letter-spacing: .02em;
}

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--rule);
}

.section-title {
  font-weight: 700;
  color: var(--blue);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.035em;
}

html[lang="ar"] .section-title {
  letter-spacing: 0;
  line-height: 1.2;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-index {
  position: absolute;
  top: calc(-1 * var(--section-pad) + 1.25rem);
  inset-inline-start: var(--gutter);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-soft);
}

.vertical-note {
  position: absolute;
  bottom: .5rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  white-space: nowrap;
}

html[dir="ltr"] .vertical-note { left: calc(var(--gutter) - 2.25rem); }
html[dir="rtl"] .vertical-note { right: calc(var(--gutter) - 2.25rem); }

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.hero-text .actions { margin-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  padding: .7em 1.35em;
  border: 1.5px solid var(--blue);
  transition: background .2s, color .2s, border-color .2s;
}

.btn--solid { background: var(--blue); color: var(--paper); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

.btn--line { color: var(--blue); }
.btn--line:hover { background: var(--blue); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4.5rem;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "head head head head head head head head head head head head"
    "pic  pic  pic  pic txt txt txt txt txt .   .   .  ";
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: end;
}

.hero-head {
  grid-area: head;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: 1rem;
}

.hero-head .year { width: 100%; padding-inline-start: .3em; }

.hero-title {
  font-weight: 700;
  color: var(--blue);
  font-size: clamp(2.9rem, 8.6vw, 8.25rem);
  line-height: .95;
  letter-spacing: -.045em;
  padding: .12em .05em;
}

html[lang="ar"] .hero-title {
  letter-spacing: 0;
  line-height: 1.15;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
}

.hero-kicker {
  margin-bottom: 1.75rem;
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.kicker-name {
  display: inline-block;
  font-weight: 700;
  font-size: 1.45em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: .3em;
}

.hero-photo {
  grid-area: pic;
  position: relative;
  height: clamp(260px, 40vh, 430px);
  margin-inline-start: 14px;
}

/* Thin offset frame in the site blue, behind the photo */
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--blue);
  transform: translate(-14px, 14px);
  z-index: -1;
}

html[dir="rtl"] .hero-photo::before { transform: translate(14px, 14px); }

/* Face centred, brighter and crisper */
.hero-photo img {
  object-position: 50% 40%;
  filter: grayscale(1) brightness(1.18) contrast(1.08);
}

.hero-text {
  grid-area: txt;
  align-self: end;
  font-size: clamp(.98rem, 1.2vw, 1.12rem);
  line-height: 1.75;
  max-width: 36rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.burst-title {
  position: relative;
  display: inline-block;
}

.motto {
  margin-top: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.4;
}

.roles {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
}

.role {
  border-top: 1.5px solid var(--blue);
  padding-top: 1rem;
}

.role-num {
  font-size: .75rem;
  color: var(--blue);
}

.role-title {
  margin: .4rem 0 .6rem;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--blue);
}

.role p {
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ---------- Experience ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.exp {
  display: flex;
  flex-direction: column;
}

.exp-stage {
  font-size: .75rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: .5rem;
}

.exp-title {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  color: var(--blue);
  letter-spacing: -.01em;
}

.exp-org {
  margin: .4rem 0 1rem;
  font-size: .82rem;
  color: var(--ink-soft);
}

.exp > p[data-l] {
  font-size: .94rem;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin-top: auto;
  padding-top: 1.25rem;
}

.tags li {
  font-size: .76rem;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: .1em .8em;
}

.credentials {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--paper-2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.credentials-title {
  font-size: 1.25rem;
  color: var(--blue);
}

.cred-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
}

.cred dt {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.4;
}

.cred dd {
  margin-top: .3rem;
  font-size: .82rem;
  color: var(--ink-soft);
}

/* ---------- Outcomes ---------- */
.outcomes-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
}

.stat {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--blue);
  letter-spacing: -.04em;
}

html[dir="rtl"] .stat-num { text-align: right; }

.stat p {
  margin-top: .6rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ---------- Selected work ---------- */
.work-list {
  list-style: none;
  border-bottom: 1px solid var(--rule);
}

.work-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr) 3.5rem;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.75rem 1rem;
  border-top: 1px solid var(--rule);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.work-num,
.work-year {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--blue);
}

.work-year { text-align: end; }

.work-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: var(--blue);
  letter-spacing: -.01em;
}

.work-line {
  margin-top: .35rem;
  font-size: .95rem;
}

.work-role,
.work-client {
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (hover: hover) {
  .work-row:hover { background: var(--blue); }

  .work-row:hover,
  .work-row:hover .work-title,
  .work-row:hover .work-num,
  .work-row:hover .work-year,
  .work-row:hover .work-role,
  .work-row:hover .work-client {
    color: var(--paper);
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-title {
  font-weight: 700;
  color: var(--blue);
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 1;
  letter-spacing: -.045em;
  margin-top: .75rem;
  padding: .15em .1em;
}

html[lang="ar"] .contact-title {
  letter-spacing: 0;
  line-height: 1.25;
}

.contact-text {
  margin-top: 2.25rem;
  max-width: 34rem;
  font-size: 1.05rem;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
  margin-top: 2rem;
}

.contact-links a {
  font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: .1em;
}

.contact-links a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  font-size: .78rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
}

/* ---------- Reveal on scroll ---------- */
/* Soft fade-up with a long ease-out, matching the calm editorial pace of the site */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s var(--ease-out) var(--reveal-delay, 0ms),
    transform .9s var(--ease-out) var(--reveal-delay, 0ms);
}

/* Large images rise a touch less and settle from a slight zoom */
.js .reveal:is(.case-photo, .film, .published-visual, .concept-visual) { transform: translateY(16px) scale(.985); }

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .cred-list { grid-template-columns: 1fr 1fr; }
  .credentials { grid-template-columns: 1fr; }

  .work-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr) 3rem;
    grid-template-areas:
      "num main main year"
      ".   role client .";
    row-gap: .75rem;
  }
  .work-num { grid-area: num; }
  .work-main { grid-area: main; }
  .work-role { grid-area: role; }
  .work-client { grid-area: client; }
  .work-year { grid-area: year; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head head"
      "pic  txt";
  }

  .vertical-note { display: none; }

  .about-grid,
  .outcomes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding-top: 5.5rem; min-height: 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "pic"
      "txt";
  }
  .hero-photo { width: calc(80% - 14px); height: auto; aspect-ratio: 4 / 5; }
  html[lang="en"] .hero-title .circled { width: min-content; }
  .mark--circle { inset-inline-start: -5%; width: 110%; }

  .roles,
  .exp-grid,
  .stats,
  .cred-list { grid-template-columns: 1fr; }

  .work-row {
    grid-template-columns: 2rem minmax(0, 1fr);
    grid-template-areas:
      "num main"
      ".   role"
      ".   client"
      ".   year";
    padding: 1.5rem .25rem;
  }
  .work-year { text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .reveal:is(.case-photo, .film, .published-visual, .concept-visual) { opacity: 1; transform: none; }
  .js .mark path { stroke-dashoffset: 0; }
}

/* ---------- About photo ---------- */
.about-photo {
  position: relative;
  width: min(300px, 75%);
  margin-top: 2.75rem;
  margin-inline-start: 14px;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--blue);
  transform: translate(-14px, 14px);
  z-index: -1;
}

html[dir="rtl"] .about-photo::before { transform: translate(14px, 14px); }

.about-photo-crop {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

/* Zooms into Samia's half of the photo with her manager */
.about-photo-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(3.6);
  transform-origin: 63% 44%;
  filter: grayscale(1) contrast(1.06) brightness(1.04);
}

/* ---------- Worked with ---------- */
.clients-title {
  font-weight: 700;
  color: var(--blue);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.logo-grid {
  list-style: none;
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}

/* Centred rows, so any number of logos stays balanced */
.logo-grid li {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

/* Every logo in the same site blue (see #to-blue in index.html) */
.logo-grid img {
  max-width: min(100%, 190px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: url(#to-blue);
}

/* Bold wordmarks look heavier than the rest, so they sit a little smaller */
.logo-grid img.logo-sm {
  max-width: min(100%, 150px);
}

/* Already drawn in site blue, with tints the filter would flatten */
.logo-grid img.is-blue {
  filter: none;
  width: min(100%, 190px);
}

/* Small caption under a logo (e.g. the Reading Club's UNESCO membership) */
.logo-grid li.has-note {
  position: relative;
}

.logo-note {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline: 0;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--blue, #2f37d0);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .logo-grid li { flex-basis: calc(50% - 1rem); height: 60px; }
}

/* =========================================================
   Case study pages
   ========================================================= */
.case-hero {
  padding: 7.5rem 0 clamp(3rem, 6vw, 5rem);
}

.back-link {
  display: inline-block;
  font-size: .9rem;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.back-link:hover { text-decoration: underline; }

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: .8rem;
  color: var(--ink-soft);
}

.case-meta [lang="en"] { color: var(--blue); }

.case-title {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--blue);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

html[lang="ar"] .case-title { letter-spacing: 0; line-height: 1.25; }

.case-title .mark--underline { bottom: -.12em; height: .25em; }

.case-tagline {
  margin-top: 1.1rem;
  max-width: 52rem;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.case-facts dt {
  font-size: .75rem;
  color: var(--blue);
}

.case-facts dd {
  margin-top: .2rem;
  font-weight: 500;
  font-size: .95rem;
}

.case-cover {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: #482462; /* matches the Anwarat Layalina artwork */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 6rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

/* Shown near their native size so they stay sharp */
.cover-logo { height: auto; }
.cover-logo--season { width: min(210px, 42%); }
.cover-logo--line { width: min(330px, 52%); }

.case-lede {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 50rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.8;
}

.case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.case-block h3 {
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: .75rem;
  line-height: 1.4;
}

.case-block p { line-height: 1.85; }

.message-lines {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 3rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
}

.message-lines .is-key {
  color: var(--blue);
  font-size: 1.3em;
  padding: .3em .6em;
}

.challenge {
  max-width: 50rem;
}

.challenge-label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: .5rem;
}

.challenge p[data-l] {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.85;
}

.solution-intro {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
}

.stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  margin-top: 2rem;
}

.stage {
  border-top: 1.5px solid var(--blue);
  padding-top: 1rem;
}

.stage-num {
  font-size: .75rem;
  color: var(--blue);
}

.stage p {
  margin-top: .5rem;
  line-height: 1.75;
}

/* Mockup runs large so the screens can be read; the two links sit below it */
.published {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.published-visual { max-width: 1240px; margin-inline: auto; }

.published-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}

.published-item {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.published-type {
  font-size: .78rem;
  color: var(--blue);
}

.published-title {
  margin-top: .4rem;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
}

.published-link {
  display: inline-block;
  margin-top: .75rem;
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}

.published-link:hover { color: var(--ink); }

.case-next {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.case-next .back-link { margin-bottom: 0; font-size: 1.1rem; }

/* Linked rows in the work list */
.work-row--link { position: relative; }

.work-row--link .work-title a {
  color: inherit;
  text-decoration: none;
}

/* Whole row is clickable */
.work-row--link .work-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.work-more {
  display: inline-block;
  margin-top: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--blue);
}

.work-row--link:hover .work-more { color: var(--paper); }

/* Extra pieces for the longer case page */
.case-photo { margin-top: clamp(2.5rem, 5vw, 4rem); }

.case-photo img,
.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.case-photo figcaption,
.photo-grid p {
  margin-top: .6rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.photo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem clamp(.75rem, 1.5vw, 1.25rem);
}

.photo-grid img { aspect-ratio: 3 / 2; object-fit: cover; }

.photo-credit {
  margin-top: 2rem;
  font-size: .75rem;
  color: var(--ink-soft);
}

.concept-visual {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: #482462;
}

.concept-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.site-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.site--wide { grid-column: 1 / -1; }

.site img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.site p {
  margin-top: .6rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.post-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 2rem;
}

.post img {
  display: block;
  width: 100%;
  height: auto;
}

.post p {
  margin-top: .75rem;
  font-size: .95rem;
  line-height: 1.7;
}

.campaign-lines { margin-top: 1rem; color: var(--ink); }

.case-summary {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 52rem;
  display: grid;
  gap: 1rem;
}

.case-summary > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.case-summary dt {
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
}

.case-summary dd {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.source-link {
  font-size: .75rem;
  color: var(--blue);
  text-underline-offset: .2em;
}

.media-links { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.media-links a { color: var(--blue); text-underline-offset: .2em; }
.media-links > span { color: var(--ink-soft); }

.did-list {
  list-style: none;
  max-width: 52rem;
  border-top: 1.5px solid var(--blue);
}

.did-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.case-stats {
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.case-subhead {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  font-size: 1.2rem;
  color: var(--blue);
}

.case-note {
  margin-top: .5rem;
  max-width: 46rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-head + .case-note { margin-top: 0; }

.stage-num [data-l] { font-size: 1.05rem; font-weight: 700; }

.stages--four { grid-template-columns: repeat(4, 1fr); }

.case-story { margin-top: clamp(3.5rem, 7vw, 5rem); }

.case-block p + p { margin-top: .75rem; }

.case-groups {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.case-group-title {
  font-size: .95rem;
  margin-bottom: .25rem;
}

.case-group .tags { padding-top: .5rem; }

@media (max-width: 820px) {
  .case-split,
  .published { grid-template-columns: 1fr; }
  .published-list { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr 1fr; }
  .case-facts { grid-template-columns: 1fr; }
  .stages--four,
  .case-stats { grid-template-columns: 1fr 1fr; }
  .case-stats .stat--lead { grid-column: 1 / -1; }
  .case-groups { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .stages { grid-template-columns: 1fr; }
  .site-grid { grid-template-columns: 1fr; }
  .case-summary > div { grid-template-columns: 1fr; gap: .25rem; }
  .stages--four { grid-template-columns: 1fr; }
}

.published-visual img { width: 100%; height: auto; }

/* Label above the proposed slogans, and a tag on the one that was picked */
.lines-label {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .9rem;
  color: var(--ink-soft);
}

.lines-label + .message-lines { margin-top: 1.25rem; }

.message-lines .is-key {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.chosen-tag {
  font-size: .7rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--blue);
  border-radius: 999px;
  padding: .15em .8em;
}

/* ---------- Feast page ---------- */
.case-stats--four { grid-template-columns: repeat(4, 1fr); }

.photo-grid--two { grid-template-columns: 1fr 1fr; }
.photo-grid--two img { aspect-ratio: auto; }

.clip-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 2rem;
}

.clip a { display: block; color: inherit; text-decoration: none; }

.clip-media { position: relative; display: block; overflow: hidden; }

.clip-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .4s ease;
}

.clip a:hover .clip-media img { transform: scale(1.03); }

.clip-views {
  position: absolute;
  inset-inline-start: .75rem;
  bottom: .75rem;
  padding: .25rem .6rem;
  background: var(--blue);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

.clip-type {
  display: block;
  margin-top: .9rem;
  font-size: .78rem;
  color: var(--blue);
}

.clip-title {
  display: block;
  margin-top: .3rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .clip-grid,
  .photo-grid--two { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .case-stats--four { grid-template-columns: 1fr 1fr; }
}

/* Tone examples in the Feast solution */
.stage .stage-quote { margin-top: .75rem; font-size: 1.05rem; }
.stage .stage-tone { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
.stages + .case-note { margin-top: 2.5rem; }

/* Feast solution split into The Voice / The Coordination */
.solution-label { margin-top: clamp(3rem, 6vw, 4.5rem); }
.solution-part { margin-top: 1.25rem; font-size: 1.15rem; font-weight: 700; color: var(--blue); }
.case-note + .solution-part { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.solution-part + .solution-intro { margin-top: .5rem; max-width: 50rem; line-height: 1.8; }

/* Playable videos in the Feast clip grid */
.clip-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.clip-views--top { top: .75rem; bottom: auto; pointer-events: none; }

.clip .clip-link,
.film .clip-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Feast closing film */
.film { margin-top: 2rem; }
.film-media { position: relative; }
.film-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.film-sound {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  padding: .5rem 1rem;
  border: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.film-sound:hover { background: #000; }
.film-sound[hidden] { display: none; }
.film + .clip-grid { margin-top: 3rem; }

/* Arabic unit next to a big number (e.g. "60 ألف") */
.stat-unit {
  font-family: var(--font-ar, "IBM Plex Sans Arabic"), sans-serif;
  font-size: .5em;
  letter-spacing: 0;
}
.stat-num:has(.stat-unit) { white-space: nowrap; }
.stat-unit { margin-inline-start: .2em; }

/* JAX posts: four screenshots side by side */
.post-grid--four { grid-template-columns: repeat(4, 1fr); align-items: start; }
@media (max-width: 820px) { .post-grid--four { grid-template-columns: 1fr 1fr; } }
.photo-grid--even img { aspect-ratio: 3 / 2; object-fit: cover; }
.post-links { margin-top: 2.5rem; }
.post-links a { color: var(--blue); text-underline-offset: .2em; margin-inline: .25rem; }

/* Publishing plan excerpt (coffee page) */
.plan-wrap { margin-top: 2rem; overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.plan-table th {
  text-align: start;
  font-size: .78rem;
  font-weight: 500;
  color: var(--blue);
  padding: .6rem .75rem;
  border-bottom: 1.5px solid var(--blue);
}
.plan-table td {
  padding: .8rem .75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.6;
}
.plan-table td:first-child,
.plan-table td:last-child { white-space: nowrap; color: var(--ink-soft); font-size: .88rem; }
.plan-idea { margin-top: 2.5rem; max-width: 46rem; }
.plan-idea p + p { margin-top: .4rem; }
@media (max-width: 600px) {
  .plan-table td:first-child { white-space: normal; }
}

/* Homepage press releases */
.press-list { margin-top: 2rem; }

/* Numismatics: English post beside its copy */
.coins-posts { margin-top: 3.5rem; align-items: center; grid-template-columns: minmax(0, 360px) 1fr; }
.coins-posts img { display: block; width: 100%; height: auto; }
@media (max-width: 820px) { .coins-posts { grid-template-columns: 1fr; } .coins-posts img { max-width: 360px; } }
.case-split + .concept-visual { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.coins-posts [dir="ltr"] { text-align: left; }

/* Numismatics: coinage timeline from video stills */
.coin-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem;
}
.coin-steps img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .9rem; }
.coin-steps p { margin-top: .4rem; font-size: .92rem; line-height: 1.7; }
@media (max-width: 820px) { .coin-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .coin-steps { grid-template-columns: 1fr; } }

/* YouTube link card with play button */
.yt-link { position: relative; display: block; }
.yt-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.yt-play {
  position: absolute; inset: 50% auto auto 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: var(--blue);
}
.yt-play::after {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
}
.yt-link:hover .yt-play { background: #000; }
.du-opening { margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 760px; }
.du-opening img { display: block; width: 100%; height: auto; }
.du-opening figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
.campaign-lines[dir="ltr"] { font-family: var(--font-mono); }

/* Digits keep a fixed width while counting, so the layout doesn't jitter */
.stat-num { font-variant-numeric: tabular-nums; }

/* SVGs with a tiny built-in size (e.g. Times Higher Education) need an explicit width */
.logo-grid img.logo-wide { width: min(100%, 165px); }

/* ---------- Digital Universities page ---------- */
/* Speaker series cards */
.speaker-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem clamp(1rem, 2.5vw, 2rem);
  margin-top: 2rem;
}
.speaker { border-top: 1.5px solid var(--blue); padding-top: 1rem; }
.speaker-name { font-weight: 700; font-size: 1.1rem; }
.speaker-role { margin-top: .15rem; font-size: .8rem; color: var(--blue); }
.speaker-copy { margin-top: .75rem; font-size: .92rem; line-height: 1.75; color: var(--ink-soft); }

/* Video scripts as storyboards: each line is one on-screen frame */
.storyboards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2rem; }
.frames { list-style: none; display: grid; gap: .6rem; margin-top: .75rem; }
.frames li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  padding: 1rem 1.25rem 1rem 3.25rem;
  background: #111;
  color: #f4f4f4;
  font-family: var(--font-mono);
  font-size: .88rem;
  line-height: 1.55;
}
.frames li span {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  font-size: .7rem;
  color: var(--blue);
  filter: brightness(1.8);
}

/* Agenda translation excerpt */
.agenda { list-style: none; margin-top: 2rem; max-width: 52rem; }
.agenda li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.agenda li:first-child { border-top: 1.5px solid var(--blue); }
.agenda-time { font-size: .85rem; color: var(--blue); }
.agenda-item { font-weight: 700; line-height: 1.6; }
.agenda-item small { display: block; margin-top: .25rem; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.bio-sample { margin-top: 2.5rem; }

/* Press release excerpt */
.press-split { align-items: start; }
.press-quote {
  margin: 0;
  padding-inline-start: 1.5rem;
  border-inline-start: 3px solid var(--blue);
  font-size: 1.05rem;
  line-height: 1.9;
}

@media (max-width: 820px) {
  .speaker-grid { grid-template-columns: 1fr 1fr; }
  .storyboards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .speaker-grid { grid-template-columns: 1fr; }
  .agenda li { grid-template-columns: 1fr; gap: .25rem; }
}

/* Digital Universities cover: organiser logos + event name, in place of a photo */
.du-cover {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: #14163a;
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.du-cover-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 3rem); }
.du-cover-logos img { height: clamp(44px, 6vw, 70px); width: auto; filter: brightness(0) invert(1); }
.du-cover-logos img.du-cover-the { height: clamp(40px, 5.5vw, 62px); }
.du-cover-x { font-size: 1.6rem; opacity: .6; }
.du-cover-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.du-cover-meta { font-size: .95rem; opacity: .75; }
.du-gallery { margin-top: clamp(3rem, 6vw, 4.5rem); }
/* View badge on the opposite corner from the sound button */
.clip-views--end { inset-inline-start: auto; inset-inline-end: 1rem; top: 1rem; }
.speaker-en { margin-top: .5rem; font-size: .85rem; line-height: 1.6; }
.press-quote-en { margin-top: .9rem; padding-inline-start: calc(1.5rem + 3px); font-size: .9rem; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Qissa podcast ---------- */
.qissa-cover { background: #f0644b; }
.qissa-cover-art { width: min(340px, 70%); height: auto; box-shadow: 0 20px 50px rgba(0,0,0,.18); }

.episodes { list-style: none; display: grid; gap: clamp(2rem, 4vw, 3rem); margin-top: 2rem; }
.episode {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  border-top: 1.5px solid var(--blue);
  padding-top: 1.5rem;
}
.episode > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.episode-title { margin-top: .3rem; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.4; }
.episode-body > p[data-l] { margin-top: .6rem; line-height: 1.8; max-width: 44rem; }
.episode audio { display: block; width: min(100%, 460px); margin-top: 1rem; }
.episode .clip-link { display: inline-block; margin-top: .6rem; font-size: .85rem; color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 600px) {
  .episode { grid-template-columns: 1fr; }
  .episode > img { max-width: 220px; }
}

/* Souq Al-Zal */
.zal-cover { background: #e6e6e6; }
.zal-refs { margin-top: 2.5rem; }

/* Dark mode: keep storyboard frames distinct from the dark page */
html[data-theme="dark"] .frames li { background: #1c1c22; border: 1px solid var(--rule); }

/* Homepage: More Work cards */
.other-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); margin-top: 2rem; }
.other-card { border-top: 1.5px solid var(--blue); padding-top: 1.25rem; }
.other-meta { font-size: .78rem; color: var(--blue); }
.other-title { margin-top: .35rem; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.4; }
.other-card > p[data-l] { margin-top: .6rem; line-height: 1.8; }
.other-card .tags { margin-top: 1rem; }
.other-card .published-link { margin-top: .9rem; }
@media (max-width: 820px) { .other-grid { grid-template-columns: 1fr; } }

/* ---------- Career timeline (replaces the old stage cards) ---------- */
.career { list-style: none; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.career-row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--rule);
}
.career-row:first-child { border-top: 1.5px solid var(--blue); }
.career-years { font-family: var(--font-mono); font-weight: 700; color: var(--blue); font-size: clamp(1rem, 1.6vw, 1.2rem); padding-top: .15rem; }
html[dir="rtl"] .career-years { text-align: start; }
.career-org { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.3; }
.career-role { margin-top: .3rem; font-size: .9rem; color: var(--blue); }
.career-body > p[data-l] { margin-top: .8rem; line-height: 1.85; max-width: 48rem; }
.career-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.career-links a {
  display: inline-block;
  padding: .3rem .8rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--blue);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.career-links a:hover { background: var(--blue); color: var(--paper); }
@media (max-width: 600px) {
  .career-row { grid-template-columns: 1fr; gap: .4rem; }
}

/* Hilton × Sanad cover */
.hilton-cover { background: #f4f1ec; flex-direction: column; text-align: center; }
.hilton-cover-logos { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem, 4vw, 3rem); }
.hilton-cover-logos img { height: clamp(40px, 6vw, 64px); width: auto; }
.hilton-cover-line { max-width: 40rem; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.7; color: #1d1d1d; }
.hilton-posts { margin-top: clamp(3rem, 6vw, 4rem); }
html[data-theme="dark"] .hilton-cover { background: #1a1a1a; }
html[data-theme="dark"] .hilton-cover-line { color: var(--ink); }

/* Official Instagram embeds (Hilton Riyadh posts) */
.ig-embeds { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(3rem, 6vw, 4rem); }
.ig-embeds iframe { width: 100%; height: 640px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
@media (max-width: 820px) { .ig-embeds { grid-template-columns: minmax(0, 420px); } }
.hilton-initiatives { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .hilton-initiatives { grid-template-columns: 1fr; } }
.ig-single { grid-template-columns: minmax(0, 420px); }
.hilton-onboarding { margin-top: clamp(2rem, 4vw, 3rem); max-width: 640px; }
.hilton-onboarding img { display: block; width: 100%; height: auto; }
.hilton-onboarding figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
.hilton-townhall { margin-top: clamp(2rem, 4vw, 3rem); }
.ig-three { grid-template-columns: repeat(3, minmax(0, 360px)); }
@media (max-width: 1100px) { .ig-three { grid-template-columns: repeat(2, minmax(0, 420px)); } }
@media (max-width: 820px) { .ig-three { grid-template-columns: minmax(0, 420px); } }
.logo-grid img.logo-xs { max-width: min(100%, 105px); }
.hilton-events .challenge + .challenge,
.hilton-events .ig-embeds + .challenge { margin-top: clamp(3rem, 6vw, 4.5rem); }
.hilton-cover-main { height: clamp(52px, 8vw, 84px); width: auto; }
.hilton-cover-label { margin-top: clamp(1.5rem, 3vw, 2.25rem); font-size: .85rem; color: var(--ink-soft); }
.hilton-partners { flex-wrap: wrap; gap: clamp(1.25rem, 3.5vw, 2.75rem); margin-top: .9rem; }
.hilton-partners img { height: clamp(30px, 4.2vw, 46px); }
.hilton-partners img { filter: grayscale(1) contrast(1.15); opacity: .82; }
.hilton-partners img.is-sm { height: clamp(18px, 2.4vw, 26px); }
html[data-theme="dark"] .hilton-partners img { filter: grayscale(1) invert(1) brightness(1.2); }
.hilton-partners img.is-sm[src*="stc"] { height: clamp(24px, 3.2vw, 34px); }
.hilton-partners img.is-lg { height: clamp(40px, 5.6vw, 60px); filter: grayscale(1) brightness(.55) contrast(1.4); }
.hilton-cover .hilton-cover-label { margin-top: clamp(1rem, 2vw, 1.5rem); }
.hilton-cover { gap: 0; justify-content: center; }
.hilton-cover .hilton-cover-label { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.hilton-partners { margin-top: 1.25rem; }
.hilton-partners img.is-sm[src*="philips"] { height: clamp(16px, 2vw, 21px); }
.hilton-events .hilton-onboarding + .challenge { margin-top: clamp(3rem, 6vw, 4.5rem); }
.hilton-growth { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.hilton-growth .growth-num { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; color: var(--blue, #2f3fd8); line-height: 1.1; direction: ltr; text-align: start; unicode-bidi: isolate; }
html[dir="rtl"] .hilton-growth .growth-num { text-align: right; }
.hilton-growth .stat-label { margin-top: .4rem; color: var(--ink-soft); }
.hilton-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.hilton-posts-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; }
.hilton-posts-grid figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 720px) { .hilton-posts-grid { grid-template-columns: 1fr; max-width: 420px; } }
.hilton-meetings { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.6rem, 1.5vw, 1rem); margin-top: clamp(2rem, 4vw, 3rem); max-width: 900px; }
.hilton-meetings img { display: block; width: 100%; height: auto; border-radius: 4px; }
.hilton-meetings--ops { grid-template-columns: 1.78fr 1fr; align-items: start; }
.hilton-meetings--ops img { height: 100%; object-fit: cover; aspect-ratio: auto; }
@media (max-width: 640px) { .hilton-meetings--ops { grid-template-columns: 1fr; } }
.hilton-meetings--ops img { height: clamp(240px, 30vw, 380px); object-fit: cover; }
.hilton-meetings--ops img + img { object-position: center 30%; }

/* Reading Club */
.rc-posters { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.6rem, 1.5vw, 1rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.rc-posters li { aspect-ratio: 3 / 4; background: #f4f1ec; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rc-posters img { width: 100%; height: 100%; object-fit: contain; }
html[data-theme="dark"] .rc-posters li { background: #1a1a1a; }
@media (max-width: 900px) { .rc-posters { grid-template-columns: repeat(3, 1fr); } }
.rc-sessions { list-style: none; padding: 0; margin-top: 1.25rem; border-top: 1px solid var(--rule); }
.rc-sessions li { display: flex; gap: 1.25rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.rc-date { font-family: "IBM Plex Mono", monospace; color: var(--blue); font-size: .9rem; min-width: 3.5rem; direction: ltr; }
.rc-sessions + .photo-grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.rc-fair { align-items: start; }
.rc-fair .stages { grid-template-columns: 1fr; margin-top: 1.5rem; }
.rc-fair figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
.rc-fair figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
.footer-inner { flex-wrap: wrap; }
.footer-credit { flex-basis: 100%; color: var(--ink-soft); font-size: .8rem; }
@media (max-width: 820px) { .other-grid { row-gap: clamp(3rem, 8vw, 4rem); } }
