/* ─────────────────────────────────────────────────────────────
   Salha Hakim — fitness coach personal site
   Warm editorial system: cream paper, deep ink, sage olive
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand palette
     Primary purple, with warm accents: red, magenta, yellow, orange, lavender */
  --paper: #fbf8f5;
  --paper-2: #ddc6e0;       /* lavender */
  --ink: #010101;
  --ink-2: #2a2730;
  --muted: #6c6677;
  --rule: #01010122;
  --accent: #542d84;        /* brand purple */
  --accent-deep: #3a1d5e;
  --warm: #eb6624;          /* brand orange */
  --hot: #e43226;           /* brand red */
  --pink: #de1b51;          /* brand magenta */
  --yellow: #f1c334;        /* brand yellow */
  --paper-card: #ffffff;

  /* Type scale */
  --font-display: "Instrument Serif", "Newsreader", Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Density */
  --section-y: 140px;
  --gutter: 32px;
  --max: 1280px;
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Density variants */
[data-density="compact"] {
  --section-y: 96px;
  --gutter: 24px;
}
[data-density="comfortable"] {
  --section-y: 180px;
  --gutter: 40px;
}

/* Accent variants — applied by JS */
[data-accent="purple"]    { --accent: #542d84; --accent-deep: #3a1d5e; }
[data-accent="orange"]    { --accent: #eb6624; --accent-deep: #b04714; }
[data-accent="red"]       { --accent: #e43226; --accent-deep: #a31d14; }
[data-accent="magenta"]   { --accent: #de1b51; --accent-deep: #9b1238; }
[data-accent="yellow"]    { --accent: #f1c334; --accent-deep: #b8902a; }

/* Dark mode */
[data-theme="dark"] {
  --paper: #010101;
  --paper-2: #1a0f24;
  --paper-card: #14111a;
  --ink: #ffffff;
  --ink-2: #ddc6e0;
  --muted: #8a8295;
  --rule: #ffffff22;
}

/* ───── Reset / base ───── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--paper); }

/* Grain overlay for warmth */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .2; }

/* ───── Layout helpers ───── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-y) 0; position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(64px, 9vw, 168px); }
h2 { font-size: clamp(44px, 6vw, 96px); }
h3 { font-size: clamp(28px, 3.2vw, 44px); }
p { margin: 0; max-width: 60ch; }

/* ───── Reveal animation ───── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ───── NAV ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklch, var(--paper) 70%, transparent);
  border-bottom: .5px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }
/* Drop the fixed nav below the WordPress admin bar when logged in */
.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.brand {
  display: flex; align-items: center;
  padding: 6px 14px;
  gap: 12px;
  border-radius: 14px;
  transition: background .25s var(--ease);
}
.brand:hover { background: color-mix(in oklch, var(--ink) 4%, transparent); }
.brand-mark,
.brand img,
.brand .custom-logo,
.nav .custom-logo,
.nav img {
  max-height: 56px !important;
  width: auto !important;
  height: auto !important;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
/* Hide stray WP Customizer logo if the canvas template still surfaces it */
body.pe-canvas .custom-logo-link,
body.pe-canvas .site-logo,
body.pe-canvas .wp-custom-logo {
  display: none !important;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); background: var(--accent-deep); border-color: var(--accent-deep); }

/* ───── HERO ───── */
.hero {
  padding-top: 148px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero-blob {
  position: absolute; pointer-events: none;
  border-radius: 50%; filter: blur(8px); opacity: .55;
  animation: drift 22s ease-in-out infinite;
}
.hero-blob.b1 { width: 320px; height: 320px; background: var(--yellow); top: 12%; right: -80px; opacity: .35; }
.hero-blob.b2 { width: 180px; height: 180px; background: var(--pink); bottom: 12%; left: 8%; opacity: .25; animation-delay: -8s; }
.hero-blob.b3 { width: 120px; height: 120px; background: var(--warm); top: 30%; left: 38%; opacity: .18; animation-delay: -14s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(20px,-30px) scale(1.08); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.hero-badge .dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--hot);
  animation: pulse-hot 1.8s ease infinite;
}
@keyframes pulse-hot {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--hot) 60%, transparent); }
  60%     { box-shadow: 0 0 0 10px color-mix(in oklch, var(--hot) 0%, transparent); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}
[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
[data-hero="centered"] .hero-meta { display: none; }
[data-hero="split"] .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
[data-hero="split"] .hero-photo { display: block; }

.hero-headline { position: relative; }
.hero-headline h1 {
  font-size: clamp(72px, 11vw, 184px);
  line-height: .92;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent-deep);
}
.hero-headline .underline {
  display: inline-block;
  position: relative;
}
.hero-headline .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 18px;
  background: var(--yellow);
  opacity: .85;
  z-index: -1;
  border-radius: 2px;
}
.hero-sub {
  margin-top: 36px;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.45;
}
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .01em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-meta {
  text-align: right;
  display: flex; flex-direction: column; gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

.hero-photo {
  display: none;
  position: relative;
  width: 100%;
  padding: 18px 22px 22px 18px;
}
.hero-photo .photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 30px 60px -30px color-mix(in oklch, var(--ink) 40%, transparent),
              0 8px 20px -10px color-mix(in oklch, var(--ink) 20%, transparent);
  z-index: 2;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 1.2s var(--ease);
}
.hero-photo:hover img { transform: scale(1.03); }

.hero-photo .photo-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.hero-photo .photo-shape.s1 {
  width: 72%; aspect-ratio: 1;
  right: -8%; top: -6%;
  background: var(--accent);
  border-radius: 50%;
  opacity: .14;
  filter: blur(6px);
}
.hero-photo .photo-shape.s2 {
  width: 90%; height: 90%;
  left: -14px; bottom: -14px;
  border-radius: 18px;
  border: 1.5px solid var(--accent-deep);
  z-index: 0;
}
.hero-photo .photo-shape.s3 {
  width: 38px; height: 38px;
  left: -14px; top: 36%;
  background: var(--accent-warm, #eb6624);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 6px 18px -6px color-mix(in oklch, var(--accent-warm, #eb6624) 60%, transparent);
}

.photo-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px -12px color-mix(in oklch, var(--ink) 30%, transparent);
}
.photo-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
}

.photo-stamp {
  position: absolute;
  right: -6px; bottom: -6px;
  width: 96px; height: 96px;
  z-index: 4;
  color: var(--accent-deep);
  animation: stampSpin 24s linear infinite;
  filter: drop-shadow(0 4px 12px color-mix(in oklch, var(--ink) 20%, transparent));
}
.photo-stamp svg { width: 100%; height: 100%; display: block; }
@keyframes stampSpin {
  to { transform: rotate(360deg); }
}

/* About portrait — polaroid-ish */
.about-portrait {
  position: relative;
  margin-top: 28px;
  padding: 12px 12px 44px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 20px 40px -20px color-mix(in oklch, var(--ink) 30%, transparent),
              0 2px 6px color-mix(in oklch, var(--ink) 8%, transparent);
  transform: rotate(-2deg);
  transition: transform .4s var(--ease);
}
.about-portrait:hover { transform: rotate(0); }
.about-portrait .ap-shape {
  position: absolute;
  inset: -10px -14px auto auto;
  width: 70%; aspect-ratio: 1;
  background: var(--accent);
  border-radius: 50%;
  opacity: .18;
  z-index: -1;
}
.about-portrait .ap-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-2);
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(1.04);
}
.portrait-cap {
  position: absolute;
  bottom: 14px; left: 16px; right: 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.cap-line {
  width: 24px; height: 1px;
  background: var(--accent);
}
.about-portrait .ap-tape {
  position: absolute;
  width: 60px; height: 16px;
  background: color-mix(in oklch, var(--accent) 25%, transparent);
  border-left: 1px dashed color-mix(in oklch, var(--ink) 20%, transparent);
  border-right: 1px dashed color-mix(in oklch, var(--ink) 20%, transparent);
}
.about-portrait .ap-tape.t1 {
  top: -8px; left: 18%;
  transform: rotate(-6deg);
}
.about-portrait .ap-tape.t2 {
  top: -10px; right: 22%;
  transform: rotate(8deg);
  background: color-mix(in oklch, #fad347 50%, transparent);
}
.hero-photo .placeholder {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 14px,
    color-mix(in oklch, var(--ink) 8%, transparent) 14px 15px
  );
}
.hero-photo .placeholder-label {
  position: absolute; bottom: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 6px 10px;
  border-radius: 6px;
}

/* Floating marquee strip */
.marquee {
  margin-top: 80px;
  border-top: .5px solid var(--rule);
  border-bottom: .5px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  align-items: center;
  animation: scroll 38s linear infinite;
}
.marquee span { display: inline-flex; align-items: center; gap: 48px; }
.marquee .dot:nth-child(odd)  { background: var(--accent); }
.marquee .dot:nth-child(even) { background: var(--warm); }
.marquee .dot:nth-child(3n)   { background: var(--hot); }
.marquee .dot:nth-child(5n)   { background: var(--pink); }
.marquee .dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ───── ABOUT ───── */
.about {
  background: var(--paper-2);
  border-radius: 0;
  color: var(--ink);
}
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}
.about-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  position: sticky;
  top: 100px;
}
.about-body p {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
}
.about-body p + p { margin-top: 28px; }
.about-stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: .5px solid var(--rule);
}
.about-stats > div { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--accent-deep); }
.stat-label { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ───── SERVICES ───── */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 60px;
}
.services-head h2 .it { font-style: italic; color: var(--accent-deep); }
.services-head p { color: var(--ink-2); font-size: 18px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.service {
  background: var(--paper-card);
  border: .5px solid var(--rule);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), background .3s var(--ease);
  cursor: pointer;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.service:hover {
  transform: translateY(-4px);
}
.service .service-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  overflow: hidden;
  border-bottom: .5px solid var(--rule);
}
.service .service-img::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 12px,
    color-mix(in oklch, var(--ink) 7%, transparent) 12px 13px
  );
}
.service .service-img image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.service .service-img .img-label {
  position: absolute; bottom: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-card);
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 1;
}
.service .service-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.service .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.service h3 {
  margin-top: 18px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.05;
}
.service p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.service .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.service .tag::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* Size variants */
.service.lg { grid-column: span 7; min-height: 460px; }
.service.md { grid-column: span 5; min-height: 460px; }
.service.sm { grid-column: span 4; min-height: 380px; }
.service.feat {
  grid-column: span 5;
  background: var(--accent);
  color: var(--paper-card);
  min-height: 460px;
}
.service.feat .service-img { border-bottom-color: color-mix(in oklch, var(--paper-card) 18%, transparent); }
.service.feat .service-img::before {
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 12px,
    color-mix(in oklch, var(--paper) 10%, transparent) 12px 13px
  );
}
.service.feat .service-img .img-label { background: var(--ink); color: color-mix(in oklch, var(--paper) 60%, transparent); }
.service.feat .num, .service.feat p { color: color-mix(in oklch, var(--paper) 70%, transparent); }
.service.feat .tag { color: var(--accent); }
.service.feat .tag::before { background: var(--accent); }

/* Decorative shape inside featured */
.service.feat .glyph {
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .9;
  z-index: 0;
}
.service.feat .service-body { position: relative; z-index: 1; }

/* ───── PROGRAMS / WORK ───── */
.programs-head { margin-bottom: 60px; }
.programs-list {
  border-top: .5px solid var(--rule);
}
.program {
  display: grid;
  grid-template-columns: 60px 1fr 1.2fr auto;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: .5px solid var(--rule);
  position: relative;
  transition: padding .35s var(--ease);
  cursor: pointer;
}
.program:hover { padding-left: 16px; }
.program:hover .program-title { color: var(--accent-deep); }
.program::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 100%; background: var(--accent); opacity: 0;
  transition: width .4s var(--ease), opacity .4s var(--ease);
}
.program:hover::before { width: 6px; opacity: 1; left: -6px; }

.program-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.program-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  transition: color .3s var(--ease);
}
.program-title em { font-style: italic; color: var(--muted); }
.program-meta {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.program-meta .pm-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.program-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  border: .5px solid var(--rule);
}
.program:nth-child(1) .chip:nth-child(1) { background: var(--yellow); border-color: transparent; }
.program:nth-child(2) .chip:nth-child(1) { background: var(--warm); color: var(--paper-card); border-color: transparent; }
.program:nth-child(3) .chip:nth-child(1) { background: var(--pink); color: var(--paper-card); border-color: transparent; }
.program:nth-child(4) .chip:nth-child(1) { background: var(--accent); color: var(--paper-card); border-color: transparent; }
.program-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  color: var(--ink-2);
}
.program:hover .program-arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }

/* ───── NOW WIDGET ───── */
.now {
  background: var(--accent);
  color: var(--paper-card);
  border-radius: 0;
}
.now * { color: inherit; }
.now-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.now-side .eyebrow { color: color-mix(in oklch, var(--paper) 60%, transparent); }
.now-side .eyebrow::before { background: var(--accent); }
.now-side h2 {
  margin-top: 24px;
  font-size: clamp(48px, 6vw, 96px);
}
.now-side h2 em { font-style: italic; color: var(--accent); }
.now-side .stamp {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 50%, transparent);
  display: flex; align-items: center; gap: 10px;
}
.now-side .stamp .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 14px color-mix(in oklch, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent); }
}
.now-list { display: flex; flex-direction: column; gap: 22px; }
.now-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: .5px solid color-mix(in oklch, var(--paper) 18%, transparent);
}
.now-item:first-child { border-top: none; padding-top: 4px; }
.now-item .when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper) 60%, transparent);
}
.now-item .what { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.now-item .where { margin-top: 6px; font-size: 13px; color: color-mix(in oklch, var(--paper) 65%, transparent); }
/* Emphasis inside the purple Now panel needs a light/warm colour to stay
   legible — otherwise it renders dark-on-dark. (Italic stays for Latin via the
   UA default; Arabic is de-italicised by the global RTL em rule.) */
.now em,
html[dir="rtl"] .now em { color: var(--yellow); }

/* ───── WRITING ───── */
.writing-head { margin-bottom: 60px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.writing-head a { color: var(--ink-2); font-size: 14px; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.writing-head a:hover { color: var(--accent-deep); border-color: var(--accent); }
.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post {
  display: flex; flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: .5px solid var(--ink);
  transition: transform .35s var(--ease);
  cursor: pointer;
}
.post:hover { transform: translateY(-4px); }
.post-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.post-excerpt { color: var(--ink-2); font-size: 14px; }
.post-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.post-link .arrow { transition: transform .3s var(--ease); }
.post:hover .post-link .arrow { transform: translateX(4px); }

/* ───── CONTACT ───── */
.contact {
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.contact-orb.o1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #c9a8d9 0%, transparent 70%);
  top: -180px; left: -160px;
}
.contact-orb.o2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #efe2f3 0%, transparent 70%);
  bottom: -140px; right: -120px;
}
.contact-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: .25; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.contact .wrap { position: relative; z-index: 1; }

/* Top eyebrow row */
.contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}
.contact-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.contact-eyebrow .ce-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--paper-2);
  font-size: 10px; letter-spacing: 0;
}
.contact-eyebrow .ce-line {
  width: 48px; height: 1px; background: var(--accent-deep); opacity: .4;
}
.contact-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding: 8px 14px;
  border: .5px solid var(--accent-deep);
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.cs-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-deep);
  position: relative;
}
.cs-pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 1.5px solid var(--accent-deep);
  animation: csPulse 2s ease-out infinite;
}
@keyframes csPulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Two-column grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 96px;
  align-items: start;
}

/* Left column */
.contact-left { position: relative; }
.contact-h {
  font-size: clamp(64px, 9.2vw, 156px);
  line-height: .92;
  letter-spacing: -.025em;
  color: var(--ink);
}
.contact-h .line { display: block; }
.contact-h em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-deep);
  position: relative;
}
.contact-h .rhythm {
  display: inline-block;
  position: relative;
}
.contact-h .rhythm-mark {
  position: absolute;
  left: 4%; right: 8%; bottom: .08em;
  height: 10px;
  background: linear-gradient(120deg, transparent 0%, var(--accent) 20%, var(--accent-deep) 50%, var(--accent) 80%, transparent 100%);
  opacity: .22;
  border-radius: 50%;
  filter: blur(.5px);
}
.contact-h .fits { display: inline-block; position: relative; }
.contact-h .fits-dot {
  display: inline-block;
  width: .26em; height: .26em;
  background: var(--accent-deep);
  border-radius: 50%;
  margin-left: .04em;
  vertical-align: baseline;
  transform: translateY(.04em);
}

.contact-lede {
  margin-top: 36px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
  font-family: var(--font-display);
  font-weight: 400;
}

.contact-cta-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 26px 18px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  transition: transform .3s var(--ease), background .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: 0;
}
.contact-cta > * { position: relative; z-index: 1; }
.contact-cta:hover { transform: translateY(-2px); }
.contact-cta:hover::before { transform: translateY(0); }
.contact-cta .cc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6dd99b;
  box-shadow: 0 0 0 3px rgba(109,217,155,.25);
}
.contact-cta .cc-arrow {
  display: inline-flex;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  align-items: center; justify-content: center;
  transition: background .3s var(--ease);
}
.contact-cta:hover .cc-arrow { background: rgba(255,255,255,.22); }

.contact-secondary {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border-bottom: .5px solid var(--accent-deep);
  padding-bottom: 4px;
  transition: opacity .3s var(--ease);
}
.contact-secondary:hover { opacity: .65; }

/* Signature flourish */
.contact-sig {
  margin: 64px 0 0;
  display: flex; align-items: center; gap: 14px;
  color: var(--accent-deep);
  opacity: .9;
}
.contact-sig svg { width: 180px; height: 56px; }
.contact-sig .sig-stroke {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: sigDraw 2.4s var(--ease) .4s forwards;
}
@keyframes sigDraw { to { stroke-dashoffset: 0; } }
.contact-sig figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--accent-deep);
}

/* Right column — studio card */
.contact-card {
  position: relative;
  background: rgba(255,255,255,.38);
  backdrop-filter: blur(14px);
  border: .5px solid rgba(1,1,1,.15);
  border-radius: 4px;
  padding: 36px 36px 28px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 30px 60px -30px rgba(58,29,94,.35);
}
.cc-corner {
  position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--accent-deep);
}
.cc-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.cc-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.cc-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.cc-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.cc-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 22px;
  border-bottom: .5px solid var(--rule);
  margin-bottom: 8px;
}
.cc-head-stamp {
  padding: 4px 10px;
  border: .5px solid var(--rule);
  border-radius: 999px;
}

.cc-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: .5px solid var(--rule);
  align-items: baseline;
}
.cc-row:last-of-type { border-bottom: 0; }
.cc-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.cc-val {
  display: flex; flex-direction: column; gap: 4px;
}
.cc-primary {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
}
.cc-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: none;
}

.cc-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.cc-links li {
  border-top: .5px dashed rgba(1,1,1,.12);
}
.cc-links li:first-child { border-top: 0; }
.cc-links a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.cc-links a em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: lowercase;
}
.cc-links a .cc-arr {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-deep);
  transition: transform .3s var(--ease);
}
.cc-links a:hover { color: var(--accent-deep); }
.cc-links a:hover .cc-arr { transform: translate(2px, -2px); }

.cc-press {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  border-bottom: .5px solid currentColor;
  align-self: flex-start;
}
.cc-press:hover { color: var(--accent-deep); }

.cc-footer {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: .5px dashed rgba(1,1,1,.18);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.cc-foot-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-deep);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-top { margin-bottom: 48px; }
  .contact-h { font-size: clamp(56px, 14vw, 96px); }
  .cc-row { grid-template-columns: 80px 1fr; gap: 18px; }
  .cc-primary { font-size: 22px; }
  .cc-links a { font-size: 19px; grid-template-columns: 1fr auto; }
  .cc-links a em { display: none; }
}

/* ───── FOOTER ───── */
.site-footer {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 140px 0 60px;
  overflow: hidden;
  border-top: .5px solid var(--rule);
}

.site-footer .footer-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* MASTHEAD */
.footer-mast {
  position: relative;
  padding-bottom: 80px;
}
.fm-rule {
  position: absolute;
  top: -30px; left: 0;
  width: 60px; height: 1px;
  background: var(--accent-deep);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 152px);
  line-height: .92;
  letter-spacing: -.025em;
  font-weight: 400;
  margin: 0 0 32px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .15em;
}
.footer-wordmark em {
  font-style: italic;
  color: var(--accent-deep);
}
.footer-wordmark .fw-ar {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .2em;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
  margin-left: .4em;
  align-self: center;
}
.footer-manifesto {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}
.footer-manifesto em {
  font-style: italic;
  color: var(--accent-deep);
}

/* SLIM INFO ROW */
.footer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding: 56px 0;
  border-top: .5px solid var(--rule);
  border-bottom: .5px solid var(--rule);
}
.fr-cell { display: flex; flex-direction: column; gap: 14px; }
.fr-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.fr-val {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  max-width: none;
}
.fr-val a { color: var(--ink); border-bottom: .5px solid var(--rule); padding-bottom: 2px; transition: border-color .25s var(--ease), color .25s var(--ease); }
.fr-val a:hover { border-bottom-color: var(--accent-deep); color: var(--accent-deep); }
.fr-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: none;
  margin-top: 4px;
}

.fr-social {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.fr-social a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.fr-social a:hover { color: var(--accent-deep); gap: 14px; }
.fr-arr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-deep);
}

/* BOTTOM ROW: signature + meta */
.footer-bottom {
  padding-top: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-sig {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-deep);
}
.footer-sig svg { width: 140px; height: 44px; }
.footer-sig figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent-deep);
}

.footer-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-meta a {
  color: var(--ink-2);
  transition: color .25s var(--ease);
}
.footer-meta a:hover { color: var(--accent-deep); }
.fm-sep { color: var(--rule); }
.fm-top {
  border-bottom: .5px solid currentColor;
  padding-bottom: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .site-footer { padding: 80px 0 40px; }
  .footer-mast { padding-bottom: 56px; }
  .footer-manifesto { font-size: 18px; }
  .footer-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 40px 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-top: 40px;
  }
  .footer-meta { font-size: 10px; gap: 10px; }
}
@media (max-width: 520px) {
  .footer-row { grid-template-columns: 1fr; }
  .footer-wordmark { font-size: clamp(48px, 14vw, 80px); }
}

/* Update year automatically */

/* ───── Theme toggle button (floating) ───── */
.theme-toggle {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 40;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: transform .25s var(--ease);
}
.theme-toggle:hover { transform: scale(1.06) rotate(15deg); }

/* ───── TESTIMONIALS ───── */
.testimonials { padding-top: calc(var(--section-y) * .8); padding-bottom: calc(var(--section-y) * .8); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi {
  margin: 0;
  padding: 36px 30px 30px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: transform .4s var(--ease);
}
.testi:hover { transform: translateY(-6px) rotate(-.4deg); }
.testi::before {
  content: "\201C";
  position: absolute; top: -28px; left: 18px;
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 1;
  opacity: .18;
}
.testi blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.3;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.testi figcaption {
  margin-top: auto;
  padding-top: 28px;
  display: flex; flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.testi figcaption strong { font-weight: 600; }
.testi figcaption span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--ink) 60%, transparent);
}
.testi.t-yellow { background: var(--yellow); }
.testi.t-pink   { background: var(--pink); color: var(--paper-card); }
.testi.t-pink blockquote, .testi.t-pink figcaption strong { color: var(--paper-card); }
.testi.t-pink figcaption span { color: color-mix(in oklch, var(--paper-card) 75%, transparent); }
.testi.t-orange { background: var(--warm); color: var(--paper-card); }
.testi.t-orange blockquote, .testi.t-orange figcaption strong { color: var(--paper-card); }
.testi.t-orange figcaption span { color: color-mix(in oklch, var(--paper-card) 75%, transparent); }

@media (max-width: 960px) { .testi-grid { grid-template-columns: 1fr; } }

/* ───── BIG CTA BANNER ───── */
.big-cta { padding-top: 40px; padding-bottom: var(--section-y); }
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--paper-card);
  border-radius: 28px;
  padding: 80px 72px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 60px;
  align-items: end;
}
.cta-card .cta-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-card .cta-shape.s1 {
  width: 260px; height: 260px;
  background: var(--yellow);
  top: -60px; right: -60px;
  opacity: .9;
}
.cta-card .cta-shape.s2 {
  width: 140px; height: 140px;
  background: var(--pink);
  bottom: -40px; right: 30%;
  opacity: .8;
}
.cta-card .eyebrow::before { background: var(--yellow); }
.cta-copy h2 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: .98;
  margin: 18px 0 22px;
  color: var(--paper-card);
}
.cta-copy h2 em { font-style: italic; color: var(--yellow); }
/* RTL: the global "em → accent-deep" rule (loaded later) would otherwise win
   here and render dark-on-purple — keep the CTA emphasis yellow. */
html[dir="rtl"] .cta-copy h2 em { color: var(--yellow); }
.cta-copy p {
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in oklch, var(--paper-card) 85%, transparent);
}
.cta-actions {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  text-align: right;
}
.btn-cta {
  background: var(--paper-card);
  color: var(--ink);
  border-color: var(--paper-card);
  padding: 18px 28px;
  font-size: 15px;
}
.btn-cta:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.cta-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--paper-card) 80%, transparent);
}
.cta-link:hover { color: var(--yellow); }

@media (max-width: 960px) {
  .cta-card { grid-template-columns: 1fr; padding: 56px 32px; gap: 32px; }
  .cta-actions { align-items: flex-start; text-align: left; }
}

/* Service hover color flourish */
.service { position: relative; }
.service:not(.feat)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.service:not(.feat):hover::after { transform: scaleX(1); }
.service:nth-child(2):not(.feat)::after { background: var(--warm); }
.service:nth-child(3):not(.feat)::after { background: var(--pink); }
.service:nth-child(4):not(.feat)::after { background: var(--yellow); }
.service:nth-child(5):not(.feat)::after { background: var(--hot); }
.service:nth-child(7):not(.feat)::after { background: var(--pink); }
.service:nth-child(8):not(.feat)::after { background: var(--warm); }
@media (max-width: 960px) {
  :root { --section-y: 80px; --gutter: 20px; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { display: none; }
  .about-grid, .services-head, .now-grid, .contact-grid, .writing-head { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .service.lg, .service.md, .service.sm, .service.feat { grid-column: span 1; min-height: 240px; }
  .program { grid-template-columns: 40px 1fr auto; gap: 20px; }
  .program-meta { display: none; }
  .writing-grid { grid-template-columns: 1fr; gap: 0; }
  .post { padding: 24px 0; }
  footer { grid-template-columns: 1fr; }
}


/* Language switcher (EN ↔ AR) */
.nav-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  padding: 6px 10px;
  border: .5px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  margin-inline-start: 12px;
  transition: background .3s var(--ease), color .3s var(--ease);
  text-decoration: none;
}
.nav-lang:hover { background: var(--ink); color: var(--paper); }


/* ─────────────────────────────────────────────────────────────
   SERVICES V2 — 4 cards, editorial 2×2 grid
   Replaces the previous .services-grid masonry layout.
   ───────────────────────────────────────────────────────────── */

.services-v2 .services-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.services-v2 .services-head h2 { line-height: 1.0; }
.services-v2 .services-head p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 42ch;
}

/* 2×2 grid */
.services-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1060px;
  margin-inline: auto;
}
  gap: 32px;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-card);
  border: .5px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(58, 29, 94, .22);
  border-color: var(--accent-deep);
}

/* Photo */
.svc-photo {
  position: relative;
  height: clamp(190px, 18vw, 240px);
  overflow: hidden;
  background: var(--paper-2);
}
.svc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s var(--ease);
}
.svc:hover .svc-photo img {
  transform: scale(1.05);
}
.svc-num {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--paper);
  mix-blend-mode: difference;
  z-index: 2;
  letter-spacing: -.03em;
  pointer-events: none;
}

/* Body */
.svc-body {
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.svc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.svc-head h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--ink);
}
.svc-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding: 5px 11px;
  border: .5px solid var(--accent-deep);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 8px;
}
.svc-body p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 50ch;
}
.svc-body p em {
  font-style: italic;
  color: var(--accent-deep);
}

/* Footer: tag + arrow link */
.svc-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: .5px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.svc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.svc-link span { transition: transform .3s var(--ease); }
.svc-link:hover {
  color: var(--accent-deep);
  gap: 10px;
}
.svc-link:hover span { transform: translateX(3px); }

/* Responsive */
@media (max-width: 980px) {
  .services-v2 .services-head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }
  .services-grid-v2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .svc-body { padding: 28px; }
  .svc-head h3 { font-size: 32px; }
}
@media (max-width: 520px) {
  .svc-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .svc-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* RTL */
html[dir="rtl"] .svc-num { left: auto; right: 20px; }
html[dir="rtl"] .svc-link span { transform: scaleX(-1); }
html[dir="rtl"] .svc-link:hover span { transform: scaleX(-1) translateX(-3px); }

/* ───── ALL-NOTES ARCHIVE (index.php) ───── */
.notes-archive { padding-top: 84px; }
.archive-head { padding: 72px 0 8px; }
.archive-head .breadcrumb { margin-bottom: 28px; }
.archive-kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.archive-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .98;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
}
.archive-title em { font-style: italic; color: var(--accent-deep); }
.archive-standfirst {
  margin: 26px 0 0;
  max-width: 34ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
}
.archive-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 48px 0 44px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.archive-toolbar .tb-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
  margin-inline-end: 6px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .04em;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-chip .fc-count { opacity: .55; margin-inline-start: 6px; }
.filter-chip.is-active .fc-count { opacity: .75; }
.archive-count {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .1em;
  color: var(--ink-2);
}
.archive-grid { padding-bottom: 96px; }
.archive-grid .post[hidden] { display: none !important; }
.archive-empty {
  display: none;
  padding: 48px 0 96px;
  font-family: var(--font-mono);
  font-size: 13px; color: var(--ink-2);
}
/* Arabic archive type */
html[dir="rtl"] .archive-title { font-family: var(--font-display-ar, var(--font-display)); font-weight: 600; line-height: 1.05; letter-spacing: 0; font-size: clamp(44px, 6.5vw, 96px); }
html[dir="rtl"] .archive-title em { font-style: normal; }
html[dir="rtl"] .filter-chip { font-family: inherit; font-size: 14px; }
html[dir="rtl"] .archive-empty { font-family: inherit; font-size: 15px; }
@media (max-width: 720px) {
  .archive-toolbar { gap: 8px; }
  .archive-count { width: 100%; margin: 6px 0 0; order: 9; }
}
