/* ============================================================
   TAYF EGYPT — shared design system
   Used by all pages EXCEPT Homepage.html (which has its own inline copy)
   ============================================================ */

:root {
  --bone: #F3EEE7;
  --bone-2: #EAE3D8;
  --paper: #FBF8F3;
  --ink: #0E1F1E;
  --ink-2: #1B3432;
  --ink-soft: #3A4E4C;
  --mute: #7A8584;
  --line-soft: rgba(14, 31, 30, 0.12);
  --line-strong: rgba(14, 31, 30, 0.22);
  --halo: rgba(14, 31, 30, 0.04);

  --mint: #009C9C;
  --mint-deep: #1B524E;
  --beige: #D7C3BA;
  --mustard: #FFD166;
  --red: #FF6B5A;

  --fino: #1DB363;
  --dose: #C3572E;
  --soil: #6B4A3B;

  --accent: var(--mint);

  --f-display: 'Instrument Serif', 'Times New Roman', serif;
  --f-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad-x: clamp(20px, 4vw, 64px);

  /* surfaces that flip in dark mode */
  --surface-page: var(--bone);
  --surface-card: var(--paper);
  --surface-inverse: var(--ink);
  --on-surface: var(--ink);
  --on-surface-soft: var(--ink-2);
  --on-inverse: var(--paper);

  --grain-opacity: 0.02;
}

/* ——— DARK MODE ——— */
html[data-theme="dark"] {
  --bone: #0B1817;
  --bone-2: #102321;
  --paper: #14282A;
  --ink: #F0EBE2;
  --ink-2: #D7CFC2;
  --ink-soft: #9CA9A4;
  --mute: #6F7C77;
  --line-soft: rgba(240, 235, 226, 0.10);
  --line-strong: rgba(240, 235, 226, 0.20);
  --halo: rgba(240, 235, 226, 0.04);

  --beige: #5D4A40;

  --surface-page: #0B1817;
  --surface-card: #102321;
  --surface-inverse: #F0EBE2;
  --on-surface: #F0EBE2;
  --on-surface-soft: #D7CFC2;
  --on-inverse: #0B1817;

  --grain-opacity: 0.05;

  color-scheme: dark;
}

* { box-sizing: border-box; }

/* ——— scroll-reveal animations ——— */
:root {
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-dur: 1.05s;
}
.reveal {
  opacity: 0;
  transform: translate3d(0, 38px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity var(--reveal-dur) var(--reveal-ease),
    transform var(--reveal-dur) var(--reveal-ease),
    filter var(--reveal-dur) var(--reveal-ease);
  will-change: opacity, transform, filter;
}
.reveal.reveal-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.reveal-left  { transform: translate3d(-54px, 0, 0); filter: blur(6px); }
.reveal-right { transform: translate3d(54px, 0, 0); filter: blur(6px); }
.reveal-left.reveal-in, .reveal-right.reveal-in { transform: translate3d(0, 0, 0); filter: blur(0); }
.reveal-scale { transform: scale(0.9); filter: blur(10px); }
.reveal-scale.reveal-in { transform: scale(1); filter: blur(0); }
.reveal-rise  { transform: translate3d(0, 64px, 0); filter: blur(8px); }
.reveal-rise.reveal-in  { transform: translate3d(0, 0, 0); filter: blur(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(5px);
  transition:
    opacity var(--reveal-dur) var(--reveal-ease),
    transform var(--reveal-dur) var(--reveal-ease),
    filter var(--reveal-dur) var(--reveal-ease);
}
.reveal-stagger.reveal-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}
.reveal-stagger.reveal-in > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.reveal-in > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.reveal-in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.reveal-in > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.reveal-in > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.reveal-in > *:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger.reveal-in > *:nth-child(7) { transition-delay: 0.42s; }
.reveal-stagger.reveal-in > *:nth-child(8) { transition-delay: 0.49s; }
.reveal-stagger.reveal-in > *:nth-child(n+9) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ——— hero "rise" line-by-line animation (matches homepage hero) ——— */
.rise-lines .line {
  display: block;
  overflow: hidden;
  position: relative;
}
.rise-lines .line > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  animation: tayf-rise 1.05s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  will-change: transform, opacity;
}
.rise-lines .line:nth-child(1) > span { animation-delay: 0.10s; }
.rise-lines .line:nth-child(2) > span { animation-delay: 0.22s; }
.rise-lines .line:nth-child(3) > span { animation-delay: 0.34s; }
.rise-lines .line:nth-child(4) > span { animation-delay: 0.46s; }
.rise-lines .line:nth-child(5) > span { animation-delay: 0.58s; }
@keyframes tayf-rise {
  0%   { transform: translate3d(0, 110%, 0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate3d(0, 0, 0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rise-lines .line > span { transform: none !important; animation: none !important; opacity: 1 !important; }
}

/* page-hero auto-applies rise */
.page-hero .rise-lines em { font-style: italic; color: var(--accent); display: inline-block; }
.page-hero .lede.rise-fade { opacity: 0; animation: tayf-fade-up 1.05s cubic-bezier(0.22, 0.61, 0.36, 1) 0.6s forwards; }
.page-hero .meta.rise-fade { opacity: 0; animation: tayf-fade-up 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s forwards; }
@keyframes tayf-fade-up {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* soft hover lift */
a, button { transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
html { color-scheme: only light; }
html[data-theme="dark"] { color-scheme: only dark; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--bone);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.45s ease, color 0.45s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ——— typographic primitives ——— */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.5;
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.98;
}
body.display-sans .display {
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
}

/* ——— topbar ——— */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  padding: 18px var(--pad-x);
  display: flex; align-items: center;
  gap: 18px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
/* logo on the left; theme toggle, nav, hamburger pushed to the right */
.topbar > .logo { margin-right: auto; order: 1; }
.topbar > .theme-toggle { order: 2; }
.topbar > .nav { order: 3; }
.topbar > .nav-hamburger { order: 4; }
.topbar.scrolled {
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
body.nav-open .topbar { background: var(--bone); border-bottom-color: var(--line-soft); backdrop-filter: none; -webkit-backdrop-filter: none; }
.logo {
  display: flex; align-items: center; gap: 0;
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  height: 54px;
}
.logo svg {
  height: 54px;
  width: auto;
  display: block;
}
html[data-theme="dark"] .logo .logo-cls-2,
html[data-theme="dark"] .logo svg path[fill="#1B3432"] {
  fill: var(--ink) !important;
}
.logo .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block; transform: translateY(-2px);
}
.logo small {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); margin-left: 4px;
}
.nav {
  display: flex; align-items: center; gap: 36px;
  font-size: 14px; letter-spacing: -0.005em;
}
.nav a:not(.nav-cta) { position: relative; padding: 6px 0; color: var(--ink-2); }
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}
.nav a:not(.nav-cta):hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--ink); }
.nav a.nav-cta {
  padding: 11px 24px;
  background: var(--ink-2);
  color: var(--paper);
  border-radius: 999px; font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  white-space: nowrap;
  line-height: 1;
}
.nav a.nav-cta:hover { background: var(--accent); color: var(--ink); }
.nav a.nav-cta::after { display: none; }
html[data-theme="dark"] .nav a.nav-cta { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .nav a.nav-cta:hover { background: var(--accent); color: var(--ink); }

/* ——— theme toggle (sun/moon) ——— */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  background: transparent;
  position: relative;
  transition: border-color 0.25s, color 0.25s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-right: 4px;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(-12deg); }
.theme-toggle svg { width: 16px; height: 16px; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s; }
.theme-toggle .sun { display: block; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ——— buttons ——— */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px 16px 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--ink); }
.btn-primary .arr {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.btn-primary:hover .arr { background: var(--ink); color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink-2);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .btn-ghost { color: var(--ink); border-color: var(--ink-2); }
html[data-theme="dark"] .btn-ghost:hover { background: var(--paper); color: var(--bone); }
.btn-ghost .arr-line {
  width: 16px; height: 1px; background: currentColor;
  position: relative; transition: width 0.3s;
}
.btn-ghost .arr-line::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn-ghost:hover .arr-line { width: 22px; }

/* button row — keeps two buttons evenly spaced + wraps with breathing room */
.btn-row {
  display: flex; flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.btn-row.left { justify-content: flex-start; }
.btn-row .btn { margin: 0; }

/* ——— page hero (shared, for subpages) ——— */
.page-hero {
  padding: calc(140px + 2vw) var(--pad-x) 80px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end;
  min-height: 70vh;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 35%),
    radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--accent) 4%, transparent) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .meta {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 24px;
  display: flex; gap: 14px; align-items: center;
}
.page-hero .meta .dot-sep { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 140px);
  letter-spacing: -0.015em;
  line-height: 0.95;
  margin: 0;
}
body.display-sans .page-hero h1 {
  font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.03em;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
}
.page-hero .lede strong { font-weight: 500; color: var(--ink); }

/* ——— section chrome ——— */
section { position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 100px var(--pad-x) 50px;
  align-items: end;
  border-top: 1px solid var(--line-soft);
}
.section-head .num {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-soft); text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 72px);
  letter-spacing: -0.015em;
  line-height: 1; margin: 0; max-width: 900px;
}
body.display-sans .section-head h2 {
  font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.03em;
}
.section-head h2 em { font-style: italic; color: var(--accent); }

/* ——— CTA strip ——— */
.cta-strip {
  padding: 120px var(--pad-x);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.cta-strip h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 20px auto 36px;
  max-width: 18ch;
}
body.display-sans .cta-strip h2 {
  font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.03em;
}
.cta-strip h2 em { font-style: italic; color: var(--accent); }
.cta-strip .btn { margin: 0; }
.cta-strip .eyebrow { margin-bottom: 0; }
.cta-strip .btn-row { margin-top: 8px; }

/* ——— footer ——— */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--pad-x) 40px;
}
html[data-theme="dark"] footer { background: #050E0D; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(251, 248, 243, 0.12);
}
.footer-brand {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1; letter-spacing: -0.02em;
  display: flex; align-items: center;
}
.footer-brand svg {
  height: clamp(72px, 9vw, 120px);
  width: auto;
  display: block;
}
body.display-sans .footer-brand {
  font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.03em;
}
.footer-brand em { color: var(--accent); font-style: italic; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(251, 248, 243, 0.5);
  margin: 0 0 20px; font-weight: 400;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: rgba(251, 248, 243, 0.8); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(251, 248, 243, 0.5);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}

/* ——— Tweaks panel ——— */
.tweaks-toggle {
  position: fixed; bottom: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
body.tweaks-on .tweaks-toggle { display: flex; }
.tweaks-panel {
  position: fixed; bottom: 76px; right: 20px;
  width: 280px; background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  z-index: 199; display: none; font-size: 13px;
}
body.tweaks-on .tweaks-panel.open { display: block; }
.tweaks-panel h3 {
  margin: 0 0 16px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
}
.tweak-row { margin-bottom: 18px; }
.tweak-row label {
  display: block; font-size: 12px; color: var(--ink-soft);
  margin-bottom: 8px;
  font-family: var(--f-mono); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tweak-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opts button {
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 12px;
  transition: all 0.2s;
  background: transparent;
}
.tweak-opts button.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.swatch-row { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s;
}
.swatch.active { border-color: var(--ink); transform: scale(1.1); }

/* ——— hamburger button ——— */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px 6px;
  cursor: pointer;
  background: none; border: none;
  z-index: 201;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), opacity 0.25s, background 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ——— mobile nav overlay ——— */
.nav-mobile {
  display: none;
  position: fixed; inset: 0;
  background: var(--bone);
  z-index: 250;
  padding: calc(90px + 2vw) var(--pad-x) 48px;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile .mob-links { display: flex; flex-direction: column; flex: 1; }
.nav-mobile .mob-links a {
  font-family: var(--f-display);
  font-size: clamp(36px, 11vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.nav-mobile .mob-links a:hover { color: var(--accent); }
.nav-mobile .mob-links a .arr {
  font-family: var(--f-mono); font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.35;
}
.nav-mobile .mob-cta {
  margin-top: 40px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.nav-mobile .mob-cta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
body.display-sans .nav-mobile .mob-links a { font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.025em; }

/* ============================================================
   IMAGE PLACEHOLDER — used until real photography is supplied
   Looks intentional so it reads as design, not "missing image"
   ============================================================ */
.img-placeholder {
  position: relative;
  background: var(--bone-2);
  color: var(--ink-2);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: stretch; justify-content: space-between;
  padding: 18px;
  font-family: var(--f-mono);
  isolation: isolate;
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0,
      transparent 10px,
      color-mix(in srgb, var(--ink-2) 4%, transparent) 10px,
      color-mix(in srgb, var(--ink-2) 4%, transparent) 11px);
}
.img-placeholder::after {
  content: '';
  position: absolute; inset: 12px;
  border: 1px dashed color-mix(in srgb, var(--ink-2) 30%, transparent);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.img-placeholder > * { position: relative; z-index: 1; }
.img-placeholder .ph-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink-2) 60%, transparent);
}
.img-placeholder .ph-top .ph-tag {
  display: inline-flex; align-items: center; gap: 6px;
}
.img-placeholder .ph-top .ph-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.img-placeholder .ph-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink-2) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: color-mix(in srgb, var(--ink-2) 50%, transparent);
  background: color-mix(in srgb, var(--bone) 70%, transparent);
  z-index: 1;
}
.img-placeholder .ph-bottom {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 32ch;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--f-sans);
}
.img-placeholder .ph-bottom strong {
  display: block;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

/* dark variant for placeholders sitting on dark surfaces */
.img-placeholder.on-dark {
  background-color: rgba(255,255,255,0.03);
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0,
      transparent 10px,
      rgba(251, 248, 243, 0.04) 10px,
      rgba(251, 248, 243, 0.04) 11px);
  color: rgba(251, 248, 243, 0.85);
}
.img-placeholder.on-dark::after { border-color: rgba(251, 248, 243, 0.22); }
.img-placeholder.on-dark .ph-top { color: rgba(251, 248, 243, 0.55); }
.img-placeholder.on-dark .ph-bottom { color: rgba(251, 248, 243, 0.85); }
.img-placeholder.on-dark .ph-icon {
  border-color: rgba(251, 248, 243, 0.22);
  color: rgba(251, 248, 243, 0.6);
  background: rgba(0,0,0,0.18);
}

html[data-theme="dark"] .img-placeholder {
  background-color: var(--bone-2);
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0,
      transparent 10px,
      rgba(240, 235, 226, 0.05) 10px,
      rgba(240, 235, 226, 0.05) 11px);
  color: var(--ink-2);
}
html[data-theme="dark"] .img-placeholder::after { border-color: color-mix(in srgb, var(--ink) 26%, transparent); }
html[data-theme="dark"] .img-placeholder .ph-icon {
  background: rgba(0,0,0,0.25);
}

/* logo placeholder — used in trusted-by strip */
.logo-placeholder {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 12px 22px;
  border: 1px dashed color-mix(in srgb, var(--ink-2) 30%, transparent);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--bone) 50%, transparent);
}
.logo-placeholder strong {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-right: 12px;
  text-transform: none;
}

/* ——— responsive ——— */
@media (max-width: 1024px) {
  .topbar { gap: 10px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-hamburger { display: flex; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .page-hero { grid-template-columns: 1fr; min-height: auto; gap: 30px; padding-top: calc(110px + 2vw); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { padding: 14px 22px; font-size: 14px; }
  .cta-strip { padding: 80px var(--pad-x); }
}
@media (max-width: 600px) {
  .btn-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-row .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .topbar { padding: 14px var(--pad-x); }
  .logo svg { height: 44px; }
  .logo { height: 44px; }
}
