/* المحامي حسن مكشف: brand system
   Ivory carries the page, pine green carries structure, brass is the accent.
   Green comes from his Ministry licences, brass from the gold trim of the bisht in his portrait.
   Motifs: the traced H-and-column logo, the six-petal service rose, engraved hatching,
   the folk blossom pattern and the name/rose band. */

:root {
  --cream: #f3efe4;
  --paper: #faf7ef;
  --pith: #fffaf0;
  --ink: #10302a;
  --ink-2: #17403a;
  --slate: #47605a;
  --muted: #666b60;
  --line: #ddd6c4;
  --line-dark: rgb(243 239 228 / 0.16);
  --brass: #b08a3e;
  --brass-deep: #84651f;
  --brass-light: #d9b76a;

  --font: "Almarai", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --wrap: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.8 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, dl, dd, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
em { font-style: normal; color: var(--brass-deep); }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--cream); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ───────────── type ───────────── */
.kicker { font-size: 0.9375rem; font-weight: 700; color: var(--brass-deep); }
.title { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1.12; letter-spacing: -0.01em; }
.title-sm { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.lede { max-width: 34em; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.9; color: var(--muted); }

/* Slide chrome lifted from the identity: running label, hairline, section number. */
.meta { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); font-size: 0.875rem; font-weight: 700; color: var(--slate); }
.meta i { flex: 1; height: 1px; background: var(--line); }
.meta .num { font: 400 1.35rem/1 var(--font); letter-spacing: 0.08em; color: var(--brass-deep); }
.meta-dark { color: rgb(243 239 228 / 0.6); }
.meta-dark i { background: var(--line-dark); }
.meta-dark .num { color: var(--brass-light); }

.sec-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }

/* ───────────── buttons: crisp rectangles; a brass rule grows from the leading edge on hover ───────────── */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1.5px solid transparent; border-radius: 4px; font-weight: 700; font-size: 0.975rem; line-height: 1.2; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.btn::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); z-index: -1; }
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(-5px); }
.btn-lg { padding: 16px 28px; font-size: 1.0625rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-2); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass::after { background: var(--ink); }
.btn-brass:hover { background: var(--brass-light); }
.btn-line { border-color: rgb(243 239 228 / 0.4); color: var(--cream); }
.btn-line:hover { border-color: var(--cream); background: rgb(243 239 228 / 0.08); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); cursor: pointer; transition: border-color 0.25s, color 0.25s; }
.btn-icon:hover { border-color: var(--ink); }

/* ───────────── service rose ───────────── */
.slice { width: 100%; height: auto; overflow: visible; }
.slice .sl-peel { fill: var(--ink); }
.slice .sl-pith { fill: var(--paper); }
.slice .sl-sprig { fill: var(--brass); }
.slice .sl-core { fill: var(--ink); }
.slice .sl-core-dot { fill: var(--brass-light); }
.slice .sl-hatch-line { stroke: rgb(16 48 42 / 0.16); stroke-width: 0.7; }
.slice .sl-seg-cells { fill: none; stroke-width: 0.9; stroke-linecap: round; }

.slice-index { width: 30px; height: 30px; }
.slice-index path { fill: currentColor; opacity: 0.18; transition: opacity 0.3s, fill 0.3s; }
.slice-index path.on { fill: var(--brass); opacity: 1; }

/* ───────────── official lockup ───────────── */
.lockup { display: inline-flex; align-items: center; gap: 0.2em; height: 1em; color: var(--ink); line-height: 1; }
.lk-mark { display: block; height: 1em; width: auto; flex-shrink: 0; }
.lk-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.07em; }
.lk-name { display: block; height: 0.44em; width: auto; }
.lk-tag { font: 700 0.185em/1.3 "Amiri", serif; white-space: nowrap; }
.lockup--stack { flex-direction: column; height: auto; gap: 0.16em; }
.lockup--stack .lk-text { align-items: center; gap: 0.1em; }
.lockup--stack .lk-name { height: 0.36em; }
.lockup--stack .lk-tag { font-size: 0.13em; }

/* ───────────── pattern band ───────────── */
.band { height: 46px; background-repeat: repeat-x; background-size: auto 100%; }
.band-framed { border-block: 2px solid var(--ink); padding-block: 4px; background-clip: content-box; background-origin: content-box; height: 56px; }
.band[data-animated] { animation: drift var(--drift-dur, 50s) linear infinite; }
@keyframes drift { to { background-position-x: calc(-1 * var(--tile-w, 300px)); } }

/* ───────────── intro ───────────── */
.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--cream); clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-io); cursor: pointer; }
.intro.is-out { clip-path: inset(0 0 100% 0); }
.intro-stage { display: grid; justify-items: center; }
.intro-logo { font-size: clamp(130px, 19vw, 230px); }
.intro-logo .lk-mark { clip-path: inset(100% 0 0 0); animation: grow 1.5s var(--ease-io) 0.15s forwards; }
.intro-logo .lk-name { clip-path: inset(0 0 0 100%); animation: wipe 1.1s var(--ease-io) 0.95s forwards; }
.intro-logo .lk-tag { opacity: 0; transform: translateY(6px); animation: rise-in 0.9s var(--ease) 1.6s forwards; }
.intro-line { position: absolute; bottom: 0; inset-inline: 0; height: 4px; background: var(--brass); transform: scaleX(0); transform-origin: right; animation: line 2.4s var(--ease-io) 0.1s forwards; }
@keyframes grow { to { clip-path: inset(0 0 0 0); } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes line { to { transform: scaleX(1); } }

/* ───────────── nav ───────────── */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 18px max(16px, (100% - 1240px) / 2); transition: background-color 0.35s, padding 0.35s var(--ease), border-color 0.35s, transform 0.9s var(--ease) 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgb(243 239 228 / 0.94); backdrop-filter: blur(10px); padding-block: 12px; border-color: var(--line); }
.nav-brand { display: flex; color: var(--ink); font-size: 58px; transition: font-size 0.35s var(--ease); }
.nav.is-solid .nav-brand { font-size: 48px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { position: relative; padding: 8px 12px; font-weight: 700; font-size: 0.95rem; color: var(--slate); transition: color 0.25s; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ───────────── hero ───────────── */
.hero { position: relative; padding-top: 120px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(48px, 7vw, 96px); }
.hero-copy { position: relative; }
.hero-title { position: relative; margin-top: 18px; padding-inline-start: clamp(18px, 2vw, 28px); font-weight: 800; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1.1; letter-spacing: -0.015em; }
.h-bar { position: absolute; inset-block: 0.18em 0.22em; inset-inline-start: 0; width: 7px; background: var(--brass); transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease-io) 0.2s; }
.h-mask { display: block; overflow: hidden; padding-block: 0.08em 0.16em; margin-block: -0.08em -0.16em; }
.h-mask > span { display: block; white-space: nowrap; transform: translateY(115%); transition: transform 1.25s var(--ease); transition-delay: var(--d, 0ms); }
.hero-sub { margin-top: 28px; max-width: 30em; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.9; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-art { position: relative; }
.hero-frame { position: relative; aspect-ratio: 1; border: clamp(8px, 1vw, 12px) solid var(--ink); background: var(--paper); overflow: hidden; }
.hero-folk { position: absolute; inset: -6%; background-size: 55px; }
.hero-photo { position: absolute; inset: 7%; margin: 0; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 20%; transform: scale(1.12); transition: transform 2.2s var(--ease) 0.3s; }
.is-go .hero-photo img { transform: none; }
.hero-tag { position: absolute; bottom: 0; inset-inline-start: 0; display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 0.9rem; }
.hero-tag b { font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--brass-light); }
.hero-band { transform-origin: bottom; }
.h-grow { transform: scaleY(0); transition: transform 1s var(--ease-io) 1.4s; }
.h-fade { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.h-frame { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease-io) 0.2s; }

.is-go .h-fade { opacity: 1; transform: none; }
.is-go .h-mask > span { transform: none; }
.is-go .h-bar, .is-go .h-grow { transform: scaleY(1); }
.is-go .h-frame { clip-path: inset(0 0 0 0); }
.nav { transform: translateY(-110%); }
.is-go .nav { transform: none; }

/* Pointer parallax (vars set from JS) */
.px-soft { translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -10px); transition: translate 0.9s var(--ease); }
.px-deep { translate: calc(var(--mx, 0) * 16px) calc(var(--my, 0) * 12px); transition: translate 0.9s var(--ease); }

/* ───────────── companies ───────────── */
.companies { padding-block: clamp(80px, 10vw, 140px) clamp(60px, 8vw, 110px); }
.explorer { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.explorer-fruit { display: grid; justify-items: center; gap: 18px; }
.explorer-slice { width: min(100%, 480px); }
.slice--select .sl-ring { pointer-events: none; }
.slice--select .sl-seg { cursor: pointer; transform: translate(0, 0); transition: transform 0.6s var(--ease); outline: none; }
.slice--select .sl-seg .sl-seg-fill { fill: var(--ink); transition: fill 0.35s; }
.slice--select .sl-seg .sl-seg-hatch { opacity: 0; transition: opacity 0.35s; }
.slice--select .sl-seg .sl-seg-cells { stroke: rgb(243 239 228 / 0.42); transition: stroke 0.35s; }
.slice--select .sl-seg .sl-seg-edge { fill: none; stroke: var(--ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.35s; }
.slice--select .sl-seg:hover .sl-seg-fill { fill: #2a5a50; }
.slice--select .sl-seg:focus-visible .sl-seg-edge { opacity: 1; stroke: var(--ink); stroke-width: 2.5; }
.slice--select .sl-seg.is-on { transform: translate(var(--tx, 0), var(--ty, 0)); }
.slice--select .sl-seg.is-on .sl-seg-fill { fill: url(#pick-glow); }
.slice--select .sl-seg.is-on .sl-seg-hatch { opacity: 1; }
.slice--select .sl-seg.is-on .sl-seg-cells { stroke: rgb(16 48 42 / 0.5); }
.slice--select .sl-seg.is-on .sl-seg-edge { opacity: 0; }
.explorer-hint { font-size: 0.875rem; color: var(--muted); }

.explorer-card { position: relative; padding: clamp(24px, 3.4vw, 44px); background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--ink); }
.explorer-card > * { transition: opacity 0.35s ease, transform 0.5s var(--ease); }
.explorer-card.is-swap > :not(.ec-foot) { opacity: 0; transform: translateY(10px); }
.ec-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 0.9rem; color: var(--slate); }
.ec-num { font: 400 1.25rem/1 var(--font); color: var(--muted); }
.ec-num b { font-weight: 400; color: var(--brass-deep); font-size: 1.6rem; }
.ec-name { margin-top: 22px; font-weight: 800; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.2; }
.ec-desc { margin-top: 16px; font-size: 1.125rem; line-height: 1.9; }
.ec-role { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ec-role > span { font-size: 0.85rem; font-weight: 700; color: var(--brass-deep); }
.ec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ec-tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--cream); font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.ec-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.ec-nav { display: flex; gap: 8px; }

.co-strip { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.co-strip button { display: grid; gap: 10px; justify-items: start; width: 100%; padding: 20px 4px 4px; border: 0; background: none; text-align: start; cursor: pointer; color: var(--slate); position: relative; }
.co-strip button::before { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 3px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.co-strip button[aria-current="true"]::before { transform: scaleX(1); }
.co-strip button[aria-current="true"] { color: var(--ink); }
.co-strip button:hover { color: var(--ink); }
.co-strip .cs-latin { font-weight: 700; font-size: 0.95rem; line-height: 1.5; }

/* consultation prompt closing the services section */
.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(22px, 3vw, 34px); background: var(--paper); border: 1px solid var(--line); border-inline-start: 6px solid var(--brass); }
.ask h3 { font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.4; }
.ask p { margin-top: 4px; max-width: 36em; color: var(--muted); }
.ask-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ───────────── folk panel: the pattern at full volume, with the logo on a cream plate ───────────── */
.folk-panel { position: relative; display: grid; place-items: center; min-height: clamp(260px, 32vw, 400px); padding: 40px 16px; background-color: var(--ink); background-size: 112px; border-block: 6px solid var(--brass); }
.folk-panel[data-folk] { animation: folk-drift 60s linear infinite; }
@keyframes folk-drift { to { background-position: 112px 112px; } }
.folk-plate { padding: clamp(22px, 3vw, 36px) clamp(28px, 4vw, 52px); background: var(--cream); border: 8px solid var(--ink); outline: 2px solid var(--cream); }
.folk-plate .lockup { font-size: clamp(96px, 11vw, 150px); }

/* ───────────── system flow ───────────── */
.system { padding-block: clamp(80px, 10vw, 140px); background: var(--paper); }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); padding-top: 34px; }
.flow::before, .flow::after { content: ""; position: absolute; top: 9px; inset-inline: 0; height: 2px; background: var(--line); }
.flow::after { background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform 2.2s var(--ease-io) 0.2s; }
.flow.is-in::after { transform: scaleX(1); }
.flow li { position: relative; }
.flow-dot { position: absolute; top: -34px; inset-inline-start: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); transition: background-color 0.4s, border-color 0.4s; transition-delay: calc(400ms + var(--i) * 380ms); }
.flow.is-in .flow-dot { background: var(--brass); border-color: var(--brass); }
.flow-num { font: 400 1.4rem/1 var(--font); color: var(--brass-deep); }
.flow h3 { margin-top: 10px; font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.3; }
.flow b { display: inline-block; margin-top: 8px; padding-bottom: 3px; border-bottom: 2px solid var(--brass); font-weight: 700; font-size: 0.95rem; }
.flow p { margin-top: 12px; color: var(--muted); line-height: 1.8; font-size: 0.975rem; }

/* ───────────── vision ───────────── */
.vision { position: relative; overflow: hidden; padding-block: clamp(90px, 11vw, 160px); background: var(--ink); color: var(--cream); }
.vision-folk { position: absolute; inset: 0; background-size: 132px; pointer-events: none; -webkit-mask-image: radial-gradient(70% 90% at 15% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 90% at 15% 50%, #000 20%, transparent 75%); }
.vision .wrap { position: relative; }
.vision-quote p { max-width: 21em; font-weight: 800; font-size: clamp(1.8rem, 3.8vw, 3.2rem); line-height: 1.5; }
.vision-quote em { color: var(--brass-light); }
.mission { display: grid; gap: 6px; max-width: 36em; margin-top: clamp(36px, 5vw, 56px); padding-inline-start: 20px; border-inline-start: 5px solid var(--brass); }
.mission span { font-size: 0.875rem; font-weight: 700; color: var(--brass-light); }
.mission p { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.85; color: rgb(243 239 228 / 0.8); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px clamp(24px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-dark); }
.pillars li { display: flex; gap: 12px; color: rgb(243 239 228 / 0.72); line-height: 1.8; font-size: 0.975rem; }
.pillars strong { display: block; color: var(--cream); font-size: 1.1rem; }
.pillars b { font-weight: 300; font-size: 1.15rem; line-height: 1.6; color: var(--brass-light); }

/* ───────────── licences ───────────── */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-bottom: clamp(36px, 5vw, 60px); }
.doc { display: block; width: 100%; padding: 0; border: 8px solid var(--ink); background: var(--paper); cursor: zoom-in; transition: border-color 0.3s; }
.doc:hover { border-color: var(--brass); }
.doc img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.docs h3 { margin-top: 14px; font-weight: 800; font-size: 1.1rem; line-height: 1.5; }
.docs p { font-size: 0.9rem; color: var(--muted); }
.viewer { width: min(1000px, 94vw); max-height: 92vh; padding: 0; border: 8px solid var(--ink); background: var(--paper); color: var(--ink); overflow: auto; }
.viewer::backdrop { background: rgb(16 48 42 / 0.82); }
.viewer img { width: 100%; height: auto; }
.viewer p { padding: 12px 18px; font-weight: 700; }
.viewer-close { position: sticky; top: 10px; float: left; margin: 10px; }

/* ───────────── careers + newsletter ───────────── */
.join { padding-block: clamp(80px, 10vw, 140px); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.frame { border: clamp(8px, 0.9vw, 11px) solid var(--ink); background: var(--paper); }
.careers { position: relative; overflow: hidden; display: grid; align-content: start; gap: 18px; padding: clamp(28px, 4vw, 52px); }
.careers > p:not(.kicker) { max-width: 26em; color: var(--muted); font-size: 1.0625rem; line-height: 1.85; }
.careers .btn { justify-self: start; margin-top: 8px; }
.careers-tree { position: absolute; width: 44%; inset-inline-end: -4%; bottom: -8%; color: #ece6d6; pointer-events: none; }
.careers-tree svg { width: 100%; height: auto; }
.careers > :not(.careers-tree) { position: relative; }
.courses { display: grid; align-content: start; gap: 16px; padding: clamp(28px, 4vw, 52px); background-color: #8f6d26; background-size: 62px; color: #fff; }
.courses .kicker { color: #fff; }
.courses ol { counter-reset: c; display: grid; gap: 2px; }
.courses li { counter-increment: c; display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid rgb(255 255 255 / 0.32); font-weight: 700; line-height: 1.6; }
.courses li::before { content: "0" counter(c); font-weight: 300; }

/* ───────────── contact + footer ───────────── */
.contact { padding-block: clamp(80px, 10vw, 140px) clamp(60px, 7vw, 96px); background: var(--ink); color: var(--cream); }
.contact-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-title { font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4.8rem); line-height: 1.2; }
.contact-title em { color: var(--brass-light); }
.contact-lede { max-width: 32em; margin-top: 20px; font-size: 1.125rem; color: rgb(243 239 228 / 0.75); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: clamp(32px, 4vw, 52px); padding-top: 26px; border-top: 1px solid var(--line-dark); }
.contact-grid dt { font-size: 0.85rem; font-weight: 700; color: var(--brass-light); }
.contact-grid dd { margin-top: 4px; font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.contact-grid a { background: linear-gradient(var(--brass-light), var(--brass-light)) right bottom / 0 2px no-repeat; transition: background-size 0.45s var(--ease); }
.contact-grid a:hover { background-size: 100% 2px; }
.contact-grid a[dir="ltr"] { background-position: left bottom; display: inline-block; }
.office { margin: 0; border: 8px solid var(--cream); background: var(--cream); color: var(--ink); }
.office img { width: 100%; height: auto; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: 50% 42%; }
.office figcaption { padding: 16px 14px 12px; }
.office h3 { font-weight: 800; font-size: 1.15rem; }
.office p { margin-top: 4px; font-size: 0.95rem; color: var(--muted); line-height: 1.75; }
.office a { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--brass-deep); border-bottom: 2px solid var(--brass); }

.foot { background: var(--cream); }
.foot-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: clamp(36px, 5vw, 64px); }
.foot-logo { font-size: clamp(84px, 10vw, 128px); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; }
.foot-links a { color: var(--slate); transition: color 0.25s; }
.foot-links a:hover { color: var(--brass-deep); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }

/* ───────────── scroll reveal ───────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ───────────── responsive ───────────── */
@media (max-width: 960px) {
  .sec-head, .hero-grid, .explorer, .join-grid, .contact-split, .docs, .pillars { grid-template-columns: 1fr; }
  .office { max-width: 460px; }
  .hero { padding-top: 100px; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .flow { grid-template-columns: 1fr; gap: 28px; padding-top: 0; padding-inline-start: 40px; }
  .flow::before, .flow::after { top: 6px; bottom: 6px; inset-inline: auto; inset-inline-start: 9px; width: 2px; height: auto; transform-origin: top; }
  .flow::after { transform: scaleY(0); }
  .flow.is-in::after { transform: scaleY(1); }
  .flow-dot { top: 4px; inset-inline-start: -40px; }
  .co-strip { grid-template-columns: repeat(6, minmax(130px, 1fr)); overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-inline-start: auto; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 4px; background: none; cursor: pointer; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
  .nav-toggle .bars { position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; inset-inline: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: var(--cream); border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--ease-io); }
  .nav-links.is-open { clip-path: inset(0 0 0 0); }
  .nav-links a { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-brand, .nav.is-solid .nav-brand { font-size: 44px; }
  .contact-grid { grid-template-columns: 1fr; }
    .contact-actions .btn, .ask-actions .btn { flex: 1 1 100%; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .ec-foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .intro { display: none; }
  [data-reveal], .h-fade, .h-mask > span { opacity: 1; transform: none; }
  .h-bar, .h-grow { transform: none; }
  .h-frame { clip-path: none; }
  .nav { transform: none; }
  .px-soft, .px-deep { translate: none; }
}
