/* ==========================================================================
   SAIDALJ.COM — Core design system
   Identity: "Atlantic & Zellige" — Moroccan architectural geometry,
   Atlantic industrial heritage, contemporary editorial restraint.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Palette — built for this project only */
  --ink:        #131C1B;   /* near-black, green cast */
  --ink-2:      #1E2C2A;
  --ink-3:      #2A3A38;
  --paper:      #F5F2EB;   /* warm limestone */
  --paper-2:    #EAE5DA;
  --paper-3:    #DED7C8;
  --zellige:    #1D5B54;   /* deep tile teal — primary */
  --zellige-l:  #2E7F75;
  --zellige-xl: #5FA79C;
  --ochre:      #C1873F;   /* Atlas ochre — accent */
  --ochre-l:    #D9A961;
  --ochre-xl:   #EFCB93;
  --clay:       #9C4F3A;   /* terracotta — tertiary */
  --ochre-ink:  #8A5A1E;   /* ochre dark enough to be readable ON light grounds */
  --mist:       #6E7B78;

  /* Semantic */
  --bg:            var(--paper);
  --bg-alt:        var(--paper-2);
  --fg:            var(--ink);
  --fg-soft:       #46534F;
  --fg-mute:       #525D59;
  --rule:          rgba(19, 28, 27, .14);
  --rule-strong:   rgba(19, 28, 27, .28);

  /* Dark surface semantics */
  --d-fg:          #EDEAE2;
  --d-fg-soft:     #C3CCC9;
  --d-fg-mute:     #97A5A1;
  --d-rule:        rgba(237, 234, 226, .18);

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans:    'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --t-hero:    clamp(2.75rem, 1.2rem + 7.4vw, 7.5rem);
  --t-h1:      clamp(2.25rem, 1.25rem + 4.6vw, 5rem);
  --t-h2:      clamp(1.7rem, 1.15rem + 2.5vw, 3.15rem);
  --t-h3:      clamp(1.22rem, 1.05rem + .8vw, 1.85rem);
  --t-h4:      clamp(1.06rem, 1rem + .35vw, 1.28rem);
  --t-lead:    clamp(1.12rem, 1.02rem + .5vw, 1.45rem);
  --t-body:    clamp(1rem, .97rem + .16vw, 1.09rem);
  --t-small:   clamp(.88rem, .86rem + .1vw, .95rem);
  --t-eyebrow: clamp(.68rem, .66rem + .08vw, .75rem);
  --t-figure:  clamp(2.4rem, 1.4rem + 4vw, 4.4rem);

  /* Space — custom fluid scale */
  --s-1:  .375rem;
  --s-2:  .75rem;
  --s-3:  1.125rem;
  --s-4:  1.75rem;
  --s-5:  2.5rem;
  --s-6:  clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --s-7:  clamp(3.5rem, 2.4rem + 4.6vw, 6.5rem);
  --s-8:  clamp(4.5rem, 2.8rem + 7vw, 9rem);
  --s-9:  clamp(6rem, 3.5rem + 10vw, 12rem);

  /* Structure */
  --gutter:  clamp(1.25rem, .7rem + 2.4vw, 3.25rem);
  --shell:   1320px;
  --shell-narrow: 940px;
  --shell-text:   720px;
  --header-h: 78px;

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
}

@media (max-width: 700px) { :root { --header-h: 64px; } }

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong, b { font-weight: 600; }

::selection { background: var(--zellige); color: var(--paper); }

/* Focus — always visible, never removed */
:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .band--deep :focus-visible, .site-foot :focus-visible {
  outline-color: var(--ochre-l);
}

.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .8rem 1.4rem; font-size: var(--t-small); font-weight: 600;
  letter-spacing: .04em; border-radius: 2px;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- 3. Typography ------------------------------------------------ */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 120;
  line-height: 1.03;
  letter-spacing: -.018em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; line-height: 1.3; margin: 0; }

.t-hero { font-size: var(--t-hero); line-height: .95; letter-spacing: -.032em; }
.t-h1   { font-size: var(--t-h1);   line-height: 1.0;  letter-spacing: -.028em; }
.t-h2   { font-size: var(--t-h2);   line-height: 1.06; letter-spacing: -.022em; }
.t-h3   { font-size: var(--t-h3);   line-height: 1.18; letter-spacing: -.014em; }
.t-h4   { font-size: var(--t-h4);   font-family: var(--font-sans); font-weight: 600; letter-spacing: -.004em; line-height: 1.35; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--zellige);
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 var(--s-3);
}
.eyebrow::before {
  content: ''; width: clamp(24px, 4vw, 46px); height: 1px;
  background: var(--ochre); flex: none;
}
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow { color: var(--ochre-l); }
.on-dark .eyebrow::before { background: var(--ochre-l); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--fg-soft);
  font-weight: 400;
  letter-spacing: -.006em;
}
.on-dark .lead { color: var(--d-fg-soft); }

.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--fg-soft); max-width: 68ch; }
.prose h3 { margin-top: 1.9em; }
.prose h4 { margin-top: 1.7em; color: var(--fg); }
.on-dark .prose p { color: var(--d-fg-soft); }

.caption {
  font-size: var(--t-small);
  color: var(--fg-mute);
  line-height: 1.5;
  letter-spacing: .005em;
}
.on-dark .caption { color: var(--d-fg-mute); }

.meta {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-mute);
}
.on-dark .meta { color: var(--d-fg-mute); }

.figure-num {
  font-family: var(--font-display);
  font-size: var(--t-figure);
  line-height: 1;
  letter-spacing: -.03em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 144;
  color: var(--zellige);
}
.on-dark .figure-num { color: var(--ochre-l); }

/* Inline link within prose */
.prose a, .link-inline {
  color: var(--zellige);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: rgba(29, 91, 84, .38);
  transition: text-decoration-color .25s var(--ease), color .25s var(--ease);
}
.prose a:hover, .link-inline:hover { text-decoration-color: var(--ochre); color: var(--ochre); }
.on-dark .prose a, .on-dark .link-inline { color: var(--ochre-l); text-decoration-color: rgba(217, 169, 97, .45); }
.on-dark .prose a:hover, .on-dark .link-inline:hover { color: var(--ochre-xl); text-decoration-color: var(--ochre-xl); }

/* ---------- 4. Layout ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--shell-narrow); }
.shell--text   { max-width: var(--shell-text); }
.shell--wide   { max-width: 1560px; }

.band { padding-block: var(--s-8); position: relative; }
.band--tight { padding-block: var(--s-7); }
.band--tall  { padding-block: var(--s-9); }

.band--paper { background: var(--paper); }
.band--alt   { background: var(--paper-2); }
.band--deep  { background: var(--ink); color: var(--d-fg); }
.band--teal  { background: var(--zellige); color: var(--d-fg); }

/* Any dark surface, however it is composed (band--deep, band--teal, a
   full-bleed image band, the hero) carries .on-dark. Everything inside it
   inherits the light foreground unless a rule below deliberately mutes it. */
.on-dark { color: var(--d-fg); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark h5, .on-dark h6,
.on-dark .statement, .on-dark .t-h1, .on-dark .t-h2, .on-dark .t-h3, .on-dark .t-h4,
.band--deep h1, .band--deep h2, .band--deep h3,
.band--teal h1, .band--teal h2, .band--teal h3 { color: var(--d-fg); }
.on-dark strong, .on-dark b { color: var(--d-fg); }

/* Textured ground layer */
.band--ground { position: relative; isolation: isolate; }
.band--ground > .ground {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Held back so the band's own colour stays dominant. At full strength the
     bright centre of the plate's rosette sits under body copy and pulls
     local contrast below AA. */
  opacity: .45;
  pointer-events: none;
}

/* Editorial grid */
.grid { display: grid; gap: var(--s-6); }
.grid--12 { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.grid--2  { grid-template-columns: repeat(2, 1fr); }
.grid--3  { grid-template-columns: repeat(3, 1fr); }
.grid--4  { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
  .grid--12 { grid-template-columns: repeat(6, 1fr); }
  .grid--4  { grid-template-columns: repeat(2, 1fr); }
  .grid--3  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--12 { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--12 > * { grid-column: 1 / -1 !important; }
}

/* Rules */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.on-dark .rule, .band--deep .rule, .band--teal .rule { background: var(--d-rule); }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-fg: var(--paper);
  --btn-bg: var(--zellige);
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .95rem 1.7rem;
  min-height: 48px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: var(--t-small); font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  border-radius: 2px;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); background: var(--ink); color: var(--paper); }
.btn .btn-arrow { transition: transform .3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }

.btn--light { background: var(--ochre); color: var(--ink); }
.btn--light:hover { background: var(--ochre-xl); color: var(--ink); }

.on-dark .btn--ghost, .band--deep .btn--ghost, .band--teal .btn--ghost {
  color: var(--d-fg); box-shadow: inset 0 0 0 1px var(--d-rule);
}
.on-dark .btn--ghost:hover, .band--deep .btn--ghost:hover, .band--teal .btn--ghost:hover {
  background: var(--ochre); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ochre);
}

/* Text link with rule */
.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans); font-size: var(--t-small); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--zellige);
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule-strong);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow:hover { color: var(--ochre); border-color: var(--ochre); }
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--ochre-l); border-color: var(--d-rule); }
.on-dark .link-arrow:hover { color: var(--ochre-xl); border-color: var(--ochre-xl); }

/* ---------- 6. Header ---------------------------------------------------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head__inner {
  width: 100%; max-width: var(--shell); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}

/* Scrolled / solid states */
.site-head[data-solid='true'] {
  background: rgba(245, 242, 235, .93);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule);
}
.site-head[data-theme='dark'] { color: var(--d-fg); }
.site-head[data-theme='dark'][data-solid='true'] {
  background: rgba(19, 28, 27, .9);
  border-bottom-color: var(--d-rule);
  color: var(--d-fg);
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .8rem; flex: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__mark polygon:first-child { stroke: var(--ochre); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .95rem + .4vw, 1.32rem);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 100;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}
.brand__sub {
  font-size: .58rem; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 600; color: var(--fg-mute); margin-top: .32rem;
}
.site-head[data-theme='dark'] .brand__sub { color: var(--d-fg-mute); }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: clamp(.7rem, 1.5vw, 1.75rem); }
.nav__link {
  position: relative;
  font-size: .805rem; font-weight: 500; letter-spacing: .07em;
  padding: .4rem 0;
  color: inherit; opacity: .78;
  transition: opacity .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--ochre);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current='page'] { opacity: 1; font-weight: 600; }
.nav__link[aria-current='page']::after { transform: scaleX(1); }

.head-cta { flex: none; }
.head-cta .btn { padding: .7rem 1.25rem; min-height: 42px; font-size: .72rem; }

/* Hamburger */
.nav-toggle {
  width: 46px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px; margin-right: -8px;
}
.nav-toggle__bars { width: 24px; height: 14px; position: relative; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .25s var(--ease), width .4s var(--ease-out);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6.25px; width: 70%; }
.nav-toggle__bars span:nth-child(3) { top: 12.5px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* Breakpoint switch. Declared AFTER the base rules above so it wins. */
@media (max-width: 1119px) { .nav--desktop, .head-cta { display: none; } }
@media (min-width: 1120px) { .nav-toggle { display: none; } }

/* Mobile panel */
.nav-panel {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  color: var(--d-fg);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + var(--s-5)) var(--gutter) var(--s-5);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transform: translateY(-1.25rem);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), visibility .4s;
}
.nav-panel[data-open='true'] { opacity: 1; visibility: visible; transform: none; }
body[data-nav-open='true'] { overflow: hidden; }

.nav-panel__ground {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5; pointer-events: none;
}
/* The ground must stay out of flow — it is the panel's background, not a
   flex item. Excluding it here keeps this rule from overriding its position. */
.nav-panel > *:not(.nav-panel__ground) { position: relative; z-index: 1; }

.nav-panel__list { display: flex; flex-direction: column; }
.nav-panel__item { border-bottom: 1px solid var(--d-rule); }
.nav-panel__item:first-child { border-top: 1px solid var(--d-rule); }
.nav-panel__link {
  display: flex; align-items: baseline; gap: 1rem;
  padding: clamp(.85rem, 2.2vw, 1.15rem) 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1.9vw, 2.1rem);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 100;
  letter-spacing: -.02em; line-height: 1.1;
  color: var(--d-fg); opacity: .82;
  transition: opacity .3s var(--ease), color .3s var(--ease), transform .4s var(--ease-out);
}
.nav-panel__link:hover, .nav-panel__link:focus-visible { opacity: 1; color: var(--ochre-l); transform: translateX(6px); }
.nav-panel__link[aria-current='page'] { opacity: 1; color: var(--ochre-l); }
.nav-panel__idx {
  font-family: var(--font-sans); font-size: .66rem; font-weight: 600;
  letter-spacing: .18em; color: var(--ochre); flex: none; opacity: .85;
}
.nav-panel__foot {
  margin-top: auto; padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: center; justify-content: space-between;
}
.nav-panel__foot a { color: var(--d-fg-soft); font-size: var(--t-small); }
.nav-panel__foot a:hover { color: var(--ochre-l); }

/* ---------- 7. Page head (internal pages) -------------------------------- */
.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + var(--s-7));
  padding-bottom: var(--s-7);
  overflow: hidden;
}
.page-head__ground {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.page-head > .shell { position: relative; z-index: 1; }

.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  font-size: var(--t-eyebrow); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--fg-mute); margin-bottom: var(--s-4);
}
.crumb a { color: var(--fg-mute); transition: color .25s var(--ease); }
.crumb a:hover { color: var(--ochre); }
.crumb [aria-current='page'] { color: var(--zellige); }
.crumb__sep { opacity: .5; }
.on-dark .crumb, .on-dark .crumb a { color: var(--d-fg-mute); }
.on-dark .crumb [aria-current='page'] { color: var(--ochre-l); }

/* ---------- 8. Footer ---------------------------------------------------- */
.site-foot {
  background: var(--ink);
  color: var(--d-fg);
  padding-block: var(--s-8) var(--s-5);
  position: relative;
  overflow: hidden;
}
.site-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6) var(--gutter);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--d-rule);
}
@media (max-width: 900px) { .site-foot__top { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-foot__top { grid-template-columns: 1fr; } }

.site-foot__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 120;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  margin-bottom: var(--s-3);
}
.site-foot__tag { color: var(--d-fg-mute); font-size: var(--t-small); max-width: 40ch; }

.foot-h {
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ochre-l);
  margin-bottom: var(--s-3);
}
.foot-list { display: flex; flex-direction: column; gap: .6rem; }
.foot-list a, .foot-list span { color: var(--d-fg-soft); font-size: var(--t-small); transition: color .25s var(--ease); }
.foot-list a:hover { color: var(--ochre-l); }
.foot-contact-name { color: var(--d-fg); font-weight: 600; }

/* Social */
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--s-4); }
.social__item {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--d-rule); border-radius: 2px;
  color: var(--d-fg-soft);
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease-out);
}
.social__item svg { width: 17px; height: 17px; fill: currentColor; }
a.social__item:hover { color: var(--ink); background: var(--ochre-l); border-color: var(--ochre-l); transform: translateY(-2px); }
span.social__item { opacity: .55; cursor: default; }
.social__note { font-size: .74rem; color: var(--d-fg-mute); margin-top: var(--s-3); max-width: 34ch; line-height: 1.5; }

.site-foot__bottom {
  padding-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  align-items: center; justify-content: space-between;
  font-size: var(--t-small); color: var(--d-fg-mute);
}
.site-foot__bottom a { color: var(--d-fg-soft); border-bottom: 1px solid var(--d-rule); padding-bottom: 1px; transition: color .25s var(--ease), border-color .25s var(--ease); }
.site-foot__bottom a:hover { color: var(--ochre-l); border-color: var(--ochre-l); }

/* ---------- 9. Shared components ----------------------------------------- */

/* Figure / plate */
.plate { position: relative; overflow: hidden; background: var(--paper-2); border-radius: 2px; }
.plate img { width: 100%; height: auto; display: block; }
.plate--frame { box-shadow: inset 0 0 0 1px var(--rule); }
.on-dark .plate, .band--deep .plate, .band--teal .plate { background: var(--ink-2); }
.on-dark .plate--frame { box-shadow: inset 0 0 0 1px var(--d-rule); }

figure.fig { margin: 0; }
figure.fig figcaption { margin-top: var(--s-3); }

/* Stat */
.stat { display: flex; flex-direction: column; gap: .5rem; }
.stat__num { font-family: var(--font-display); font-size: var(--t-figure); line-height: 1; letter-spacing: -.03em; font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 144; color: var(--zellige); }
.stat__label { font-size: var(--t-small); color: var(--fg-mute); max-width: 26ch; }
.on-dark .stat__num { color: var(--ochre-l); }
.on-dark .stat__label { color: var(--d-fg-soft); }   /* mute drops below AA over a lit ground */

/* Definition rows */
.deflist { border-top: 1px solid var(--rule); }
.on-dark .deflist { border-color: var(--d-rule); }
.deflist__row {
  display: grid; grid-template-columns: minmax(140px, 30%) 1fr;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.on-dark .deflist__row { border-color: var(--d-rule); }
.deflist__row dt { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); padding-top: .28rem; }
.on-dark .deflist__row dt { color: var(--d-fg-mute); }
.deflist__row dd { color: var(--fg-soft); }
.on-dark .deflist__row dd { color: var(--d-fg-soft); }
@media (max-width: 560px) { .deflist__row { grid-template-columns: 1fr; } }

/* Pull quote / statement */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.05rem + 1.9vw, 2.5rem);
  line-height: 1.24; letter-spacing: -.02em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 110;
  max-width: 22ch;
}

/* Marker list */
.marklist { display: flex; flex-direction: column; gap: var(--s-3); }
.marklist li { position: relative; padding-left: 1.85rem; color: var(--fg-soft); }
.marklist li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; background: var(--ochre);
  clip-path: polygon(50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0 50%, 15% 15%);
}
.on-dark .marklist li { color: var(--d-fg-soft); }

/* Contact CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band__ground { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 10. Motion --------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Wipe reveal. Deliberately uses mask-size rather than clip-path: a clip-path
   that collapses the element to zero height also zeroes its IntersectionObserver
   rect, so it could never satisfy the threshold that would reveal it. */
[data-reveal='mask'] {
  opacity: 0;
  transform: none;
  -webkit-mask-image: linear-gradient(180deg, #000, #000);
          mask-image: linear-gradient(180deg, #000, #000);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
  -webkit-mask-size: 100% 0%;
          mask-size: 100% 0%;
  transition: opacity .7s var(--ease-out),
              -webkit-mask-size 1.1s var(--ease-out),
              mask-size 1.1s var(--ease-out);
}
[data-reveal='mask'].is-in {
  opacity: 1;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

[data-reveal='fade'] { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
    -webkit-mask-image: none !important; mask-image: none !important;
    -webkit-mask-size: auto !important; mask-size: auto !important;
  }
}

/* ---------- 11. Utilities ------------------------------------------------ */
.u-mt-2 { margin-top: var(--s-2); }
.u-mt-3 { margin-top: var(--s-3); }
.u-mt-4 { margin-top: var(--s-4); }
.u-mt-5 { margin-top: var(--s-5); }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-7 { margin-top: var(--s-7); }
.u-mb-4 { margin-bottom: var(--s-4); }
.u-mb-5 { margin-bottom: var(--s-5); }
.u-mb-6 { margin-bottom: var(--s-6); }
.u-center { text-align: center; }
.u-maxch { max-width: 62ch; }
.u-maxch-s { max-width: 48ch; }
.u-flow > * + * { margin-top: var(--s-3); }
.u-cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.u-nowrap { white-space: nowrap; }
