/* ==========================================================================
   Zakaria Fadl — Portfolio Design System
   Understated editorial luxury: warm limestone, deep forest ink, muted brass.
   ========================================================================== */

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

:root {
  /* Palette */
  --ivory:        #F3EEE3;
  --paper:        #FBF8F1;
  --ink:          #15211B;
  --ink-soft:     #1C2A22;
  --ink-softer:   #24352A;
  --brass:        #9C7A45;
  --brass-deep:   #7C5F35;
  --brass-pale:   #C9AD7C;
  --line:         #DED4BF;
  --line-strong:  #C9BCA0;
  --line-dark:    rgba(243,238,227,.14);
  --line-dark-strong: rgba(243,238,227,.24);

  --text:            #1B2620;
  --text-secondary:  #56503F;
  --text-muted:      #8B8168;
  --text-on-dark:        #EFE9DA;
  --text-on-dark-soft:   rgba(239,233,218,.72);
  --text-on-dark-faint:  rgba(239,233,218,.46);

  --ok:      #4C7A5C;
  --ok-bg:   #E7EEE3;

  --radius:    3px;
  --radius-lg: 4px;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Public Sans', -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  180ms;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html { font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
  overflow-x: hidden;
}

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

/* ── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  background: var(--ink); color: var(--text-on-dark);
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ── Focus visibility ──────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Containers ────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.wrap-narrow { max-width: 760px; }

/* ── Editorial index rule (signature element) ─────────────
   A thin vertical brass tick beside section eyebrows — used
   only where sequence is real: case studies, timeline dates. */
.folio {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 14px;
}
.folio::before { content: ''; width: 22px; height: 1px; background: var(--brass); }
[dir="rtl"] .folio::before { order: 2; }

.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 16px;
}
.section-tag::before { content: ''; width: 22px; height: 1px; background: var(--brass); }
.section-header.light .section-tag { color: var(--brass-pale); }

.section-header { margin-bottom: 52px; max-width: 760px; }
.section-header h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px); color: var(--ink);
  line-height: 1.15; letter-spacing: -.01em;
}
.section-header.light h2 { color: var(--text-on-dark); }
.section-desc { margin-top: 16px; color: var(--text-secondary); font-size: 16.5px; max-width: 620px; }
.section-desc.light { color: var(--text-on-dark-soft); }

.section { padding: 96px 0; }
.section-paper { background: var(--paper); }
.section-ivory { background: var(--ivory); }
.section-ink   { background: var(--ink); }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.hr {
  border: none; border-top: 1px solid var(--line);
  margin: 0;
}

/* ── Lattice texture (restrained geometric detail) ────────
   Applied at very low opacity only in hero + footer. */
.lattice {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .05;
  background-image:
    linear-gradient(45deg, var(--brass-pale) 1px, transparent 1px),
    linear-gradient(-45deg, var(--brass-pale) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(21,33,27,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  height: 72px;
  transition: box-shadow var(--dur) var(--ease);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-name { color: var(--text-on-dark); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.nav-name span { display: block; font-size: 10.5px; color: var(--text-on-dark-faint); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--text-on-dark-soft); text-decoration: none;
  font-size: 13.5px; font-weight: 500; letter-spacing: .02em;
  transition: color var(--dur) var(--ease);
  padding: 4px 2px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brass-pale); }

.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
}
.lang-switch a {
  color: var(--text-on-dark-faint); text-decoration: none; padding: 4px 6px;
  transition: color var(--dur) var(--ease);
}
.lang-switch a[aria-current="true"] { color: var(--brass-pale); }
.lang-switch a:hover { color: var(--text-on-dark); }
.lang-switch .divider { color: var(--text-on-dark-faint); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  margin-inline-start: 8px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--text-on-dark); display: block; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: flex-start; background: var(--ink);
    padding: 28px 28px; gap: 22px; overflow-y: auto;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { font-size: 17px; }
  .nav-toggle { display: flex; }
  .lang-switch { margin-inline-start: auto; }
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding: 128px 0 72px; overflow: hidden; background: var(--ink);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brass-pale); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 30px;
}
.hero-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--brass-pale); }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 6vw, 68px);
  color: var(--text-on-dark); line-height: 1.08;
  margin-bottom: 26px; letter-spacing: -.01em;
}
.hero-title em { color: var(--brass-pale); font-style: italic; font-weight: 400; }
.hero-sub {
  font-size: 18px; color: var(--text-on-dark-soft);
  max-width: 600px; line-height: 1.7; margin-bottom: 44px;
}
.hero-sub strong { color: var(--text-on-dark); font-weight: 600; }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  margin-bottom: 40px;
}
.hero-fact { padding: 20px 22px 20px 0; border-right: 1px solid var(--line-dark); }
[dir="rtl"] .hero-fact { padding: 20px 0 20px 22px; border-right: none; border-left: 1px solid var(--line-dark); }
.hero-fact:last-child { border: none; padding-right: 0; padding-left: 0; }
.hero-fact .label { display: block; font-size: 10.5px; color: var(--text-on-dark-faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; }
.hero-fact .value { display: block; font-family: var(--font-display); font-size: 21px; color: var(--text-on-dark); font-weight: 500; }
.hero-fact .value.accent { color: var(--brass-pale); font-size: 16px; letter-spacing: .01em; }

@media (max-width: 700px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-fact { border-right: none !important; border-left: none !important; border-bottom: 1px solid var(--line-dark); padding: 16px 0; }
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-body);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-pale); }
.btn-line-dark { border-color: var(--line-dark-strong); color: var(--text-on-dark); }
.btn-line-dark:hover { border-color: var(--brass-pale); color: var(--brass-pale); }
.btn-line-light { border-color: var(--line-strong); color: var(--ink); }
.btn-line-light:hover { border-color: var(--brass); color: var(--brass-deep); }
.btn-ghost { color: var(--brass-deep); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* ══════════════════════════════════════════════════════════
   AUDIENCE SPLIT (two clear journeys)
   ══════════════════════════════════════════════════════════ */
.audience-strip { background: var(--paper); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; }
.audience-col {
  padding: 44px 48px; display: flex; flex-direction: column; gap: 14px;
}
.audience-col + .audience-col { border-left: 1px solid var(--line); }
[dir="rtl"] .audience-col + .audience-col { border-left: none; border-right: 1px solid var(--line); }
.audience-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); }
.audience-col h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--ink); }
.audience-col p { color: var(--text-secondary); font-size: 15px; line-height: 1.65; max-width: 44ch; }
.audience-col .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 800px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience-col + .audience-col { border-left: none; border-top: 1px solid var(--line); }
  [dir="rtl"] .audience-col + .audience-col { border-right: none; border-top: 1px solid var(--line); }
}

/* ══════════════════════════════════════════════════════════
   TRUST STRIP
   ══════════════════════════════════════════════════════════ */
.trust-strip { background: var(--ivory); }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.trust-item { flex: 1 1 200px; }
.trust-item .num { font-family: var(--font-display); font-size: 34px; color: var(--ink); font-weight: 500; }
.trust-item .lbl { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.about-lead {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  line-height: 1.45; color: var(--ink); margin-bottom: 22px;
}
.about-copy p { color: var(--text-secondary); margin-bottom: 17px; line-height: 1.8; font-size: 16px; }
.about-copy strong { color: var(--text); font-weight: 600; }

.principle-list { display: flex; flex-direction: column; }
.principle {
  padding: 24px 0; border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle-title { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.principle-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ══════════════════════════════════════════════════════════
   CASE STUDIES (home teasers)
   ══════════════════════════════════════════════════════════ */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cs-card {
  background: var(--paper); padding: 32px 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 14px;
  transition: background var(--dur) var(--ease);
}
.cs-card:hover { background: var(--ivory); }
.cs-card:hover .cs-name { color: var(--brass-deep); }
.cs-sector { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-deep); }
.cs-name { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 500; transition: color var(--dur) var(--ease); }
.cs-snippet { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.cs-result { font-size: 13.5px; color: var(--text); font-weight: 600; border-top: 1px solid var(--line); padding-top: 14px; }
.cs-link { font-size: 13px; font-weight: 600; color: var(--brass-deep); margin-top: auto; }

@media (max-width: 900px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cs-grid { grid-template-columns: 1fr; } }

.cs-all-link { margin-top: 32px; display: flex; justify-content: flex-end; }
[dir="rtl"] .cs-all-link { justify-content: flex-start; }

/* Full case-study index page grid */
.cs-index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
@media (max-width: 700px) { .cs-index-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   EXPERIENCE TIMELINE
   ══════════════════════════════════════════════════════════ */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-date { font-size: 13px; color: var(--brass-deep); font-weight: 600; letter-spacing: .02em; }
.tl-role-head { margin-bottom: 14px; }
.tl-company { font-family: var(--font-display); font-size: 21px; color: var(--ink); font-weight: 500; }
.tl-role { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.tl-points { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.tl-points li { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; padding-inline-start: 18px; position: relative; }
.tl-points li::before { content: '—'; position: absolute; inset-inline-start: 0; color: var(--brass); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tag { font-size: 11.5px; padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--text-secondary); }

@media (max-width: 700px) { .tl-item { grid-template-columns: 1fr; gap: 12px; } }

/* ══════════════════════════════════════════════════════════
   CAPABILITIES (replaces skill bars / donut)
   ══════════════════════════════════════════════════════════ */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.cap-card { background: var(--ink-soft); padding: 30px 32px; }
.cap-title { font-family: var(--font-display); font-size: 19px; color: var(--text-on-dark); font-weight: 500; margin-bottom: 10px; }
.cap-desc { font-size: 14px; color: var(--text-on-dark-soft); line-height: 1.65; margin-bottom: 16px; }
.cap-evidence { font-size: 12.5px; color: var(--brass-pale); font-weight: 600; }
@media (max-width: 700px) { .cap-grid { grid-template-columns: 1fr; } }

.stack-block { margin-top: 56px; }
.stack-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-faint); margin-bottom: 16px; }
.stack-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.stack-pill {
  font-size: 13.5px; padding: 8px 16px; border: 1px solid var(--line-dark-strong);
  border-radius: 100px; color: var(--text-on-dark-soft);
}

/* ══════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--paper); padding: 32px 30px; }
.service-mark {
  width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; color: var(--brass-deep);
  margin-bottom: 20px;
}
.service-title { font-family: var(--font-display); font-size: 20px; color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.service-list { list-style: none; margin-bottom: 16px; }
.service-list li { font-size: 13.5px; color: var(--text-secondary); padding: 5px 0 5px 16px; position: relative; }
.service-list li::before { content: '—'; position: absolute; left: 0; color: var(--brass); }
[dir="rtl"] .service-list li { padding: 5px 16px 5px 0; }
[dir="rtl"] .service-list li::before { left: auto; right: 0; }
.service-note { font-size: 13px; color: var(--text-muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   CERTIFICATIONS
   ══════════════════════════════════════════════════════════ */
.cert-note {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text-secondary); margin-bottom: 40px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease);
}
.cert-card:hover { border-color: var(--brass); }
.cert-issuer { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 10px; }
.cert-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.cert-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.cert-verify { font-size: 11px; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--line); }

.certs-more { margin-top: 28px; }
.certs-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--brass-deep); padding: 10px 0; }
.certs-more[open] summary { margin-bottom: 8px; }

@media (max-width: 900px) { .certs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .certs-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-headline {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 46px);
  color: var(--text-on-dark); line-height: 1.15; margin-bottom: 20px; letter-spacing: -.01em;
}
.contact-headline em { color: var(--brass-pale); font-style: italic; }
.contact-sub { font-size: 15.5px; color: var(--text-on-dark-soft); line-height: 1.7; margin-bottom: 36px; max-width: 46ch; }
.contact-methods { display: flex; flex-direction: column; }
.contact-method {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit;
  padding: 16px 0; border-top: 1px solid var(--line-dark);
}
.contact-methods .contact-method:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-method-label { font-size: 10.5px; color: var(--text-on-dark-faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.contact-method-value { font-size: 15px; font-weight: 600; color: var(--text-on-dark); }
.contact-method-value .arrow { color: var(--brass-pale); font-weight: 400; }
.whatsapp-note { font-size: 13px; color: var(--text-on-dark-faint); margin-top: 18px; }
.whatsapp-note a { color: var(--brass-pale); text-decoration: underline; }

.contact-form-card { background: var(--ink-soft); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 34px; }
.contact-form-card h3 { font-family: var(--font-display); font-size: 20px; color: var(--text-on-dark); font-weight: 500; margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-on-dark-faint); margin-bottom: 8px; }
.form-input, .form-textarea {
  width: 100%; padding: 13px 15px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark-strong); border-radius: var(--radius);
  font-size: 14.5px; color: var(--text-on-dark); font-family: var(--font-body); outline: none;
  transition: border-color var(--dur) var(--ease);
}
.form-input:focus, .form-textarea:focus { border-color: var(--brass); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-on-dark-faint); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-privacy { font-size: 12px; color: var(--text-on-dark-faint); line-height: 1.6; margin-bottom: 18px; }
.form-submit {
  width: 100%; padding: 15px; background: var(--brass); color: var(--ink);
  border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.form-submit:hover { background: var(--brass-pale); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-msg { margin-top: 14px; font-size: 13.5px; }
.form-msg.ok { color: #A9D6B7; }
.form-msg.err { color: #E8A9A0; }
.form-fallback { font-size: 12.5px; color: var(--text-on-dark-faint); margin-top: 14px; }
.form-fallback a { color: var(--brass-pale); }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer { background: var(--ink); padding: 44px 0; position: relative; overflow: hidden; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; position: relative; z-index: 1; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand-name { color: var(--text-on-dark-soft); font-weight: 500; font-size: 14px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--text-on-dark-faint); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--brass-pale); }
.footer-copy { font-size: 11.5px; color: var(--text-on-dark-faint); }

/* ══════════════════════════════════════════════════════════
   CASE STUDY DETAIL PAGE
   ══════════════════════════════════════════════════════════ */
.cs-hero { background: var(--ink); padding: 148px 0 64px; position: relative; overflow: hidden; }
.breadcrumb { font-size: 12.5px; color: var(--text-on-dark-faint); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-on-dark-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-pale); }
.cs-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.cs-hero-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 5px 13px; border: 1px solid var(--line-dark-strong); border-radius: 100px; color: var(--text-on-dark-soft); }
.cs-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 5vw, 54px); color: var(--text-on-dark); line-height: 1.1; margin-bottom: 18px; letter-spacing: -.01em; }
.cs-hero-lede { font-size: 17px; color: var(--text-on-dark-soft); max-width: 640px; line-height: 1.7; }
.cs-hero-url { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--brass-pale); text-decoration: none; font-weight: 600; }
.cs-hero-url:hover { text-decoration: underline; }

.cs-body-grid { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.cs-block { margin-bottom: 40px; }
.cs-block h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.cs-block p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.cs-result-callout {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; font-size: 15.5px; color: var(--text); line-height: 1.7;
}
.cs-result-callout .verify-flag { display: block; font-size: 12px; color: var(--text-muted); margin-top: 10px; }

.cs-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.cs-side-block { border-top: 1px solid var(--line); padding-top: 18px; }
.cs-side-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 12px; }
.cs-side-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cs-side-list li { font-size: 14px; color: var(--text-secondary); }
.cs-tool-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.cs-related { margin-top: 24px; }
.cs-related a { display: block; font-size: 14.5px; color: var(--ink); text-decoration: none; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; }
.cs-related a:hover { color: var(--brass-deep); }
.cs-related a span { display: block; font-size: 12.5px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

@media (max-width: 900px) { .cs-body-grid { grid-template-columns: 1fr; } .cs-sidebar { position: static; } }

.cs-back { padding: 40px 0; border-top: 1px solid var(--line); }
.cs-back a { font-size: 14px; font-weight: 600; color: var(--brass-deep); text-decoration: none; }
.cs-back a:hover { color: var(--ink); }

/* ══════════════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════════════ */
.error-page { min-height: 90vh; display: flex; align-items: center; background: var(--ink); }
.error-page .container { text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(80px, 14vw, 160px); color: var(--brass-pale); line-height: 1; }
.error-page h1 { font-family: var(--font-display); font-size: 28px; color: var(--text-on-dark); margin: 18px 0 14px; font-weight: 500; }
.error-page p { color: var(--text-on-dark-soft); margin-bottom: 32px; }

/* ══════════════════════════════════════════════════════════
   UTIL / MOTION
   ══════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ── Print ── */
@media print {
  .site-nav, .cs-hero { background: none !important; color: #000 !important; }
  .section { padding: 32px 0; }
}
