/* Ta’awun: the Kahf Lab language. Season Mix, quiet labels, sentence-case statements, square edges, dark by default. */
@font-face { font-family: "Season Mix"; src: url("/assets/season-mix.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --bg: #0e0e0e; --ink: #f2efe8; --muted: rgba(242,239,232,.64); --faint: rgba(242,239,232,.47);
  --line: rgba(242,239,232,.12); --line-2: rgba(242,239,232,.24);
  --surface: #141414; --surface-2: #1b1a19; --surface-3: #232220; --bar: rgba(14,14,14,.84);
  --accent: #beee98; --tint: rgba(190,238,152,.065); --bad: #e79a86; --word: #171a16;
  --pad: 5.4vw; --top: 72px; --ease: cubic-bezier(.16,1,.3,1);
  --serif: "Season Mix", Georgia, serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f2ee; --ink: #161514; --muted: rgba(22,21,20,.66); --faint: rgba(22,21,20,.5);
  --line: rgba(22,21,20,.12); --line-2: rgba(22,21,20,.24);
  --surface: #ffffff; --surface-2: #ebe7e0; --surface-3: #e2ddd4; --bar: rgba(244,242,238,.86);
  --accent: #3b6a25; --tint: rgba(59,106,37,.075); --bad: #b4492f; --word: #e5e3dc;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 420 18px/1.45 var(--serif); font-feature-settings: "blwf" on, "cv03" on, "cv04" on, "cv09" on, "cv11" on; -webkit-font-smoothing: antialiased; }
:root[data-theme="light"] body { -webkit-font-smoothing: auto; }
main { overflow-x: clip; }
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }
p, h1, h2, h3, dl, dd, dt, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 420; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 40; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 16px; }
html:not(.js) .js-only { display: none !important; }

/* Type */
.label { font-size: 16px; line-height: 1.4; color: var(--faint); }
.label.on { color: var(--accent); }
.display { font-size: clamp(46px, 6.4vw, 104px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.h1 { font-size: clamp(48px, 6vw, 96px); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
.h2 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; max-width: 13em; }
.text { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 30em; text-wrap: pretty; }
.lede { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; color: var(--muted); max-width: 32em; text-wrap: pretty; }
.dek { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.34; letter-spacing: -.008em; color: var(--muted); max-width: 26em; text-wrap: pretty; }
.say { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.1; letter-spacing: -.02em; max-width: 18em; text-wrap: balance; }

/* Buttons: square, as on kahflab.com */
.btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; height: 52px; margin: 0; padding: 0 22px 0 24px; border: 0; border-radius: 0; background: var(--ink); color: var(--bg); font: 420 16px/1 var(--serif); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), transform .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn span { display: inline-block; transition: transform .45s var(--ease); }
.btn.alt { background: var(--surface-2); color: var(--ink); }
.btn.small { height: 40px; padding: 0 16px 0 18px; font-size: 15px; }
@media (hover: hover) {
  .btn:hover { background: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
  .btn.alt:hover { background: var(--surface-3); }
  .btn:hover span { transform: translateX(3px); }
  .btn:hover span.up { transform: translate(2px, -2px); }
}
.btn:active { transform: scale(.98); }
.link { all: unset; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line-2); transition: text-decoration-color .3s; }
.link:hover { text-decoration-color: currentColor; }
.link:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }
.arrow { width: 16px; height: 16px; flex: none; transition: transform .45s var(--ease); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn span, .arrow { transition: none; } .btn:active { transform: none; } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; height: var(--top); padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; background: var(--bar); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .4s; }
.top[data-scrolled], .top[data-open] { border-color: var(--line); }
.top[data-open] { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { justify-self: start; text-decoration: none; }
.word { display: block; font-size: 25px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 36px; }
.nav a { position: relative; font-size: 17px; color: var(--muted); text-decoration: none; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { transform: none; }
.tools { justify-self: end; display: flex; align-items: center; gap: 14px; }
.theme { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; transition: border-color .3s, background-color .3s; }
.theme:hover { border-color: var(--faint); background: var(--tint); }
.theme svg { display: block; transition: transform .5s var(--ease); }
.theme:active svg { transform: rotate(-30deg) scale(.9); }
.theme .moon, :root[data-theme="light"] .theme .sun { display: none; }
:root[data-theme="light"] .theme .moon { display: block; }
.menu { display: none; padding: 0; border: 0; background: none; color: var(--ink); font: 420 19px/1 var(--serif); cursor: pointer; min-width: 52px; text-align: right; }
.sheet { position: fixed; inset: var(--top) 0 0; z-index: 19; padding: 24px var(--pad) 32px; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow-y: auto; }
.sheet nav a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.sheet b { font-weight: 420; font-size: 14px; color: var(--accent); }
.sheet strong { font-weight: 420; font-size: min(10vw, 46px); line-height: 1; letter-spacing: -.01em; }
.sheet nav span { grid-column: 2; font-size: 16px; color: var(--muted); }
.sheet nav a[aria-current] strong { color: var(--faint); }
.sheet-end { display: grid; gap: 22px; justify-items: start; }
.sheet-end .btn { width: 100%; }
@media (prefers-reduced-motion: no-preference) { .sheet:not([hidden]) nav a { animation: up .7s var(--ease) both; } .sheet nav a:nth-child(2) { animation-delay: .04s; } .sheet nav a:nth-child(3) { animation-delay: .08s; } .sheet nav a:nth-child(4) { animation-delay: .12s; } .sheet nav a:nth-child(5) { animation-delay: .16s; } }
@media (max-width: 1080px) { .top { grid-template-columns: 1fr auto; } .nav { display: none; } html.js .menu { display: block; } }
@media (max-width: 640px) { :root { --pad: 20px; --top: 64px; } html.js .cta { display: none; } .word { font-size: 22px; } }

/* Motion */
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pat-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: up 1.1s var(--ease) both; animation-delay: var(--d, 0ms); }
  main .pat { animation: pat-in 2.4s var(--ease) .2s both; }
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* Layout */
.sec { padding: clamp(112px, 11vw, 176px) var(--pad) 0; }
.page { padding: clamp(56px, 6vw, 96px) var(--pad) 0; }
.end { padding-bottom: clamp(112px, 11vw, 176px); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; padding-bottom: clamp(40px, 4vw, 64px); }
.head > div { display: grid; gap: 18px; justify-items: start; }
.head > .text { justify-self: end; padding-bottom: .3em; }
.more { padding-top: 40px; display: flex; justify-content: center; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--faint); }
.crumb a { text-decoration: none; transition: color .25s; }
.crumb a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - var(--top)); display: grid; grid-template-rows: 1fr auto; padding-bottom: 28px; }
/* Kahf Lab star pattern, as on kahflab.com: hairline, 5% ink into the background (7% in the footer).
   Full bleed behind the home hero and the footer. */
.pat { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.pat path { fill: none; stroke: var(--pat, color-mix(in srgb, var(--ink) 5%, var(--bg))); stroke-width: 1; stroke-linejoin: round; }
.foot { position: relative; isolation: isolate; --pat: color-mix(in srgb, var(--ink) 7%, var(--bg)); }
.hero > * { min-width: 0; }
.hero-in { align-self: center; display: grid; justify-items: center; text-align: center; gap: 26px; padding: clamp(56px, 7vw, 104px) var(--pad); }
.hero .display { max-width: 12.5em; }
.hero .lede { max-width: 34em; }
.hero .acts { justify-content: center; padding-top: 8px; }
.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 46em; }
.roles a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); font-size: 15px; color: var(--muted); text-decoration: none; transition: border-color .3s, color .3s, background-color .3s; }
.roles a:hover { border-color: var(--line-2); color: var(--ink); background: var(--tint); }
.row { position: relative; display: block; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: slide 110s linear infinite; }
.row:hover .track, .row:focus-within .track { animation-play-state: paused; }
.track a { display: block; flex: none; }
.track img { display: block; height: clamp(112px, 12vw, 176px); width: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); filter: grayscale(1) contrast(1.05) brightness(.9); transition: filter .6s var(--ease); }
.track a:hover img, .track a:focus-visible img { filter: none; }
.cap { padding: 16px var(--pad) 0; font-size: 14px; color: var(--faint); text-align: center; }
@keyframes slide { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .row { overflow-x: auto; } }

/* Ways (discover, collaborate, invest, build together) */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ways li { display: grid; align-content: start; gap: 12px; min-height: 280px; padding: 24px; background: var(--surface); outline: 1px solid var(--line); outline-offset: -1px; }
.ways b, .roles-grid b, .rows b, .steps b, .crit b, .f h2 b { font-weight: 420; font-size: 14px; color: var(--accent); }
.ways h3 { margin-top: auto; padding-top: 56px; font-size: clamp(32px, 2.8vw, 42px); line-height: 1; letter-spacing: -.02em; }
.ways p { font-size: 17px; line-height: 1.45; color: var(--muted); min-height: 4.35em; text-wrap: pretty; }

/* Product cards */
.prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; overflow-anchor: none; }
.prods > li { display: grid; }
.prods a { display: flex; flex-direction: column; background: var(--surface); outline: 1px solid var(--line); outline-offset: -1px; text-decoration: none; transition: background-color .4s var(--ease), outline-color .4s; }
.tile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card { flex: 1; display: flex; flex-direction: column; padding: 24px 26px 28px; }
.cat { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: var(--faint); }
.cat span:last-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.name { padding-top: 14px; font-size: clamp(28px, 2.2vw, 34px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.body { padding-top: 12px; font-size: 17px; line-height: 1.48; color: var(--muted); text-wrap: pretty; }
.for { margin-top: auto; padding-top: 24px; font-size: 15px; line-height: 1.4; color: var(--faint); }
.for span { color: var(--accent); }
@media (hover: hover) {
  .prods a:hover { background: var(--surface-2); outline-color: var(--line-2); }
  .prods a:hover .cat .arrow { transform: translateX(3px); color: var(--ink); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .prods a:hover .tile img { transform: scale(1.03); } }

/* Numbered rows (sectors) */
.rows { border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) 120px 24px; gap: 8px 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .5s var(--ease), background-color .4s; }
.rows strong { font-weight: 420; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.06; letter-spacing: -.02em; }
.rows span { font-size: 17px; color: var(--muted); }
.rows small { font-size: 15px; color: var(--faint); justify-self: end; }
.rows .arrow { align-self: center; justify-self: end; }
@media (hover: hover) { .rows a:hover { background: var(--tint); padding-inline: 18px; } .rows a:hover .arrow { transform: translateX(4px); } }

/* Roles grid (who's here) */
.roles-grid > li { display: grid; }
.roles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.roles-grid a, .roles-grid article { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; min-height: 280px; padding: 26px; background: var(--surface); outline: 1px solid var(--line); outline-offset: -1px; text-decoration: none; transition: background-color .4s var(--ease), color .4s var(--ease); }
.roles-grid strong, .roles-grid h3 { align-self: end; font-weight: 420; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.04; letter-spacing: -.02em; }
.roles-grid span { font-size: 17px; line-height: 1.45; color: var(--muted); max-width: 22em; text-wrap: pretty; transition: color .4s; }
.roles-grid .arrow { position: absolute; top: 28px; right: 26px; }
@media (hover: hover) {
  .roles-grid a:hover { background: var(--ink); color: var(--bg); }
  .roles-grid a:hover span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
  .roles-grid a:hover b { color: inherit; }
  .roles-grid a:hover .arrow { transform: translateX(4px); }
}

/* Network roles, in full */
.role { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; padding: 40px 0 44px; border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role > div:first-child { display: grid; align-content: start; gap: 14px; justify-items: start; }
.role h2 { font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -.025em; }
.role dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role dl > div { padding: 22px; background: var(--tint); }
.role dt { font-size: 14px; color: var(--accent); padding-bottom: 10px; }
.role dd { font-size: 18px; line-height: 1.42; text-wrap: pretty; }
.role .link { grid-column: 2; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.steps li { display: grid; align-content: start; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.steps h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.steps p { font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* Nahda and Ta’awun */
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.pair-card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px; background: var(--surface); outline: 1px solid var(--line); outline-offset: -1px; }
.pair-card.on { background: var(--tint); }
.pair-card h3 { font-size: clamp(32px, 3vw, 46px); line-height: 1.02; letter-spacing: -.022em; text-wrap: balance; }
.pair-card > p:not(.label) { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 30em; text-wrap: pretty; }
.pair-card .link, .pair-card .acts { margin-top: auto; }
.does { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; width: 100%; padding: 8px 0 12px; }
.does li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.does strong { font-weight: 420; font-size: 19px; }
.does span { font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Band */
.band { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 28px 48px; padding: 36px; background: var(--tint); outline: 1px solid var(--line); outline-offset: -1px; }
.band > div { display: grid; gap: 12px; }
.band-say { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -.018em; max-width: 20em; text-wrap: balance; }

/* Directory */
.dir-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; padding-bottom: clamp(36px, 4vw, 56px); }
.dir-head > div { display: grid; gap: 22px; justify-items: start; }
.dir-head .text { justify-self: end; padding-bottom: .3em; }
.bar { position: sticky; top: var(--top); z-index: 10; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); background: var(--bar); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.bar-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; border-bottom: 1px solid var(--line); }
.cats { display: flex; gap: 0 28px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.cats::-webkit-scrollbar { display: none; }
.cats button { -webkit-appearance: none; appearance: none; flex: none; display: inline-flex; align-items: baseline; gap: 8px; min-height: 56px; margin: 0 0 -1px; padding: 16px 0; border: 0; border-bottom: 1.5px solid transparent; background: none; color: var(--muted); font: 420 17px/1 var(--serif); white-space: nowrap; cursor: pointer; transition: color .3s, border-color .3s; -webkit-tap-highlight-color: transparent; }
.cats button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.cats button:hover { color: var(--ink); }
.cats button:disabled { color: var(--faint); opacity: .55; cursor: default; }
.cats small { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.search { position: relative; flex: none; width: 300px; margin-bottom: 9px; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--faint); pointer-events: none; }
.search input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 40px; margin: 0; padding: 0 64px 0 40px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); outline: 0; font: 420 16px/1 var(--serif); color: var(--ink); transition: border-color .25s; }
.search input::placeholder { color: var(--faint); }
.search input:hover { border-color: var(--line-2); }
.search input:focus { border-color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd, .search button { position: absolute; right: 8px; top: 50%; translate: 0 -50%; font: 420 13px/1 var(--serif); color: var(--faint); }
.search kbd { min-width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); }
.search button { -webkit-appearance: none; appearance: none; height: 28px; padding: 0 8px; border: 0; background: none; cursor: pointer; }
.search button:hover { color: var(--ink); }
.status { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; padding: 22px 0 24px; font-size: 15px; color: var(--faint); }
.status p { max-width: 46em; }
.status strong { font-weight: 420; color: var(--ink); }
.status [data-note]::before { content: " · "; }
.status label { display: inline-flex; align-items: baseline; gap: 8px; }
.status select { -webkit-appearance: none; appearance: none; padding: 0 16px 0 0; border: 0; background: none no-repeat right center / 9px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-size: 4.5px 4.5px; background-position: right 4.5px center, right 0 center; font: 420 15px/1.4 var(--serif); color: var(--ink); cursor: pointer; }
.empty { display: grid; gap: 18px; justify-items: start; padding: 56px 0 24px; border-top: 1px solid var(--line); }
.empty p:first-child { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -.018em; max-width: 18em; text-wrap: balance; }

/* Product detail */
.pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: start; padding-top: 32px; }
.pd .tile { outline: 1px solid var(--line); outline-offset: -1px; }
.pd-in { position: sticky; top: calc(var(--top) + 32px); display: grid; gap: 24px; justify-items: start; }
.pd h1 { font-size: clamp(48px, 5.2vw, 84px); line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
.facts { display: grid; width: 100%; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.facts dt { color: var(--faint); font-size: 15px; padding-top: 2px; }
.facts a { text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.facts a:hover { text-decoration-color: currentColor; }
.pd-note { font-size: 14px; line-height: 1.5; color: var(--faint); max-width: 30em; }
.next { display: grid; gap: 20px; margin-top: clamp(96px, 9vw, 144px); padding: 32px 0 0; border-top: 1px solid var(--line); text-decoration: none; }
.next strong { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-weight: 420; font-size: clamp(44px, 6.4vw, 104px); line-height: .98; letter-spacing: -.03em; }
.next .arrow { width: .5em; height: .5em; stroke-width: 1; }
.next:hover .arrow { transform: translateX(12px); }

/* Forms */
.f { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px 6vw; align-items: start; }
.f-side { position: sticky; top: calc(var(--top) + 48px); display: grid; gap: 24px; justify-items: start; }
.f-tabs { display: flex; flex-wrap: wrap; gap: 0 24px; width: 100%; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.f-tabs a { margin-bottom: -1px; padding: 12px 0; border-bottom: 1.5px solid transparent; font-size: 16px; color: var(--muted); text-decoration: none; transition: color .3s, border-color .3s; }
.f-tabs a:hover { color: var(--ink); }
.f-tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }
.crit { display: grid; width: 100%; margin-top: 8px; border-top: 1px solid var(--line); }
.crit li { display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--muted); }
.f form, .f .f-done { padding: 40px; background: var(--surface); outline: 1px solid var(--line); outline-offset: -1px; }
.f h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; font-size: 28px; line-height: 1.1; letter-spacing: -.015em; }
.f-grid + h2 { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--line); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; }
.field { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.field.half { grid-column: auto; }
.field > label, .f legend { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 0 0 10px; font-size: 17px; line-height: 1.3; }
.f small { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.f input:not([type="radio"]):not([type="checkbox"]), .f textarea { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 54px; margin: 0; padding: 0 18px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); outline: 0; font: 420 17px/1.45 var(--serif); color: var(--ink); transition: border-color .25s; }
.f textarea { height: auto; min-height: 140px; padding: 14px 18px; resize: vertical; field-sizing: content; }
.f input::placeholder, .f textarea::placeholder { color: var(--faint); }
.f input:hover, .f textarea:hover { border-color: var(--line-2); }
.f input:not([type="radio"]):focus, .f textarea:focus { border-color: var(--ink); }
.f [aria-invalid="true"] { border-color: var(--bad) !important; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks label { position: relative; cursor: pointer; }
.picks input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.picks span { height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--line); font-size: 16px; line-height: 1; color: var(--muted); transition: background-color .3s, color .3s, border-color .3s; }
.picks input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.picks input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.picks[aria-invalid="true"] span { border-color: var(--bad); }
@media (hover: hover) { .picks input:not(:checked):hover + span { border-color: var(--line-2); color: var(--ink); } }
.note { padding-top: 8px; font-size: 15px; line-height: 1.4; color: var(--faint); text-wrap: pretty; }
.note.bad { color: var(--bad); }
.f-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 40px; }
.f-end .note { padding: 0; max-width: 26em; }
.f-done { display: grid; gap: 24px; justify-items: start; }
.f-done h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.04; }
.f-done h2:focus { outline: 0; }
.f-done pre { width: 100%; margin: 0; padding: 20px; background: var(--bg); outline: 1px solid var(--line); outline-offset: -1px; font: 420 15px/1.55 var(--serif); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* About */
.meaning { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.meaning > div { display: grid; gap: 24px; align-content: start; }
.arabic { font: 400 clamp(64px, 7vw, 108px)/1.1 "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", serif; color: var(--accent); text-align: left; }
.own { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.36; letter-spacing: -.008em; color: var(--muted); text-wrap: pretty; }
.own em { font-style: normal; color: var(--ink); }
.aims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.aims li { display: grid; align-content: start; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.aims h3 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.aims p { font-size: 17px; line-height: 1.52; color: var(--muted); text-wrap: pretty; max-width: 30em; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 20px; align-items: center; padding: 26px 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 16px; height: 16px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: none; }
.faq details p { max-width: 40em; padding: 0 0 28px; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.faq details a { text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Footer */
.foot { margin-top: clamp(112px, 11vw, 176px); padding: 0 var(--pad); overflow: hidden; border-top: 1px solid var(--line); }
.foot-cta { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 32px 64px; padding: clamp(88px, 9vw, 144px) 0 clamp(64px, 6vw, 96px); }
.foot-cta > div:first-child { display: grid; gap: 18px; }
.foot-say { font-size: clamp(40px, 5vw, 76px); line-height: 1.02; letter-spacing: -.028em; max-width: 11em; text-wrap: balance; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-about { font-size: 19px; line-height: 1.4; color: var(--muted); max-width: 18em; }
.foot-grid > div { display: grid; align-content: start; gap: 10px; justify-items: start; }
.foot-grid h2 { padding-bottom: 6px; font-size: 14px; color: var(--faint); }
.foot-grid a { font-size: 16px; color: var(--muted); text-decoration: none; transition: color .25s; }
.foot-grid a:hover, .foot-grid a[aria-current] { color: var(--ink); }
.foot-end { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 24px; font-size: 14px; color: var(--faint); }
.foot-end a { text-decoration: none; transition: color .25s; }
.foot-end a:hover { color: var(--ink); }
.foot-word { display: block; margin: 0 -.03em -.19em; font-size: calc((100vw - 2 * var(--pad)) / 4.2); line-height: .82; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--word); transition: color .8s var(--ease); user-select: none; }
@media (hover: hover) { .foot-word:hover { color: var(--surface-3); } }

/* 404 */
.lost { min-height: calc(80vh - var(--top)); padding: 14vh var(--pad) 0; display: grid; align-content: start; gap: 24px; justify-items: start; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; translate: -50% 0; padding: 12px 18px; background: var(--ink); color: var(--bg); font-size: 15px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.on { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1080px) {
  .head, .dir-head, .meaning { grid-template-columns: minmax(0, 1fr); }
  .head > .text, .dir-head .text { justify-self: start; }
  .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aims { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .rows a { grid-template-columns: 48px minmax(0, 1fr) auto 24px; }
  .rows span { grid-column: 2; grid-row: 2; }
  .rows small { grid-column: 3; grid-row: 1; }
  .rows .arrow { grid-column: 4; grid-row: 1; }
  .role { grid-template-columns: minmax(0, 1fr); }
  .role .link { grid-column: 1; }
  .f { grid-template-columns: minmax(0, 1fr); }
  .f-side { position: static; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
  .bar-in { flex-direction: column-reverse; align-items: stretch; gap: 4px; }
  .search { width: 100%; margin: 14px 0 0; }
}

@media (min-width: 861px) and (max-width: 1080px) { .prods.rel { grid-template-columns: repeat(3, minmax(0, 1fr)); } .prods.rel .card { padding: 20px; } .prods.rel .name { font-size: 26px; } }
@media (max-width: 860px) { .pd { grid-template-columns: minmax(0, 1fr); } .pd-in { position: static; } }

/* Phone */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .sec { padding-top: 96px; }
  .page { padding-top: 40px; }
  .end { padding-bottom: 96px; }
  .hero-in { gap: 22px; padding: 48px var(--pad) 44px; }
  .display { font-size: min(11.6vw, 54px); line-height: 1.04; }
  .hero .acts { display: grid; width: 100%; justify-content: stretch; }
  .hero .acts .btn { width: 100%; }
  .roles a { height: 34px; padding: 0 12px; font-size: 14px; }
  .h1 { font-size: min(12.4vw, 56px); }
  .h2 { font-size: min(9.4vw, 42px); }
  .text { font-size: 17px; }
  .prods { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { padding: 20px 20px 24px; }
  .more .btn { width: 100%; }
  .ways, .roles-grid, .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps { gap: 28px; }
  .ways li, .roles-grid a, .roles-grid article { min-height: 0; }
  .ways h3 { padding-top: 24px; }
  .ways p { min-height: 0; }
  .roles-grid strong { padding-top: 16px; }
  .rows a { grid-template-columns: 36px minmax(0, 1fr) 20px; padding: 22px 0; }
  .rows small { grid-column: 2; grid-row: 3; justify-self: start; }
  .rows .arrow { grid-column: 3; }
  .rows strong { font-size: 28px; }
  .role { padding: 32px 0 36px; }
  .role dl { grid-template-columns: minmax(0, 1fr); }
  .role dl > div { padding: 18px; }
  .pair-card { padding: 24px; }
  .does { grid-template-columns: minmax(0, 1fr); }
  .pair-card .btn, .band .btn, .pair-card .acts { width: 100%; }
  .pair-card .acts { display: grid; }
  .band { padding: 24px; }
  .bar { top: var(--top); }
  .cats { gap: 0 22px; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); }
  .cats button { min-height: 50px; padding: 14px 0; font-size: 16px; }
  .status { padding: 18px 0 20px; }
  .pd { padding-top: 24px; gap: 28px; }
  .pd h1 { font-size: min(13vw, 56px); }
  .pd .acts { display: grid; width: 100%; }
  .pd .acts .btn { width: 100%; }
  .facts > div { grid-template-columns: 88px minmax(0, 1fr); }
  .next strong { font-size: min(12vw, 52px); }
  .f form, .f .f-done { margin: 0 calc(-1 * var(--pad)); padding: 28px var(--pad) 32px; }
  .f-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .field.half { grid-column: 1 / -1; }
  .f-end .btn { width: 100%; }
  .faq summary { padding: 22px 0; }
  .foot-cta .acts { display: grid; width: 100%; }
  .foot-cta .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-grid > div:last-child { grid-column: 1 / -1; }
  .foot-end { flex-direction: column; gap: 8px; }
}

@media (hover: none) { .search kbd { display: none; } }
