/* Orchestra Alkotb — أوركسترا الكتب
   A bookshop and publishing house for literature and the arts. Black, gold and one Spanish guitar. */

:root {
  --k-0: #070605;
  --k-1: #0c0a09;
  --k-2: #13100e;
  --k-3: #1c1815;
  --gold: #c9a45c;
  --gold-hi: #ecd49c;
  --gold-lo: #8a6a33;
  --ivory: #f3ebda;
  --text: #d8cfbd;
  --mute: #a0978a;
  --dim: #6f675c;
  --crimson: #a2323c;
  --line: rgba(201, 164, 92, .2);
  --line-soft: rgba(243, 235, 218, .08);
  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header: 78px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --f-display: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', 'Times New Roman', serif;
  --f-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  /* Reading direction: Arabic by default, English under [dir="ltr"]. */
  --okb-flow: to left;
  --okb-start: 100%;
  --okb-end-near: 12%;
  --okb-sign: 1;
  color-scheme: dark;
}
[dir="ltr"] { --okb-flow: to right; --okb-start: 0%; --okb-end-near: 88%; --okb-sign: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--k-0); color: var(--text); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.85; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ivory); font-family: var(--f-display); font-weight: 700; line-height: 1.32; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.05rem); }
h3 { font-size: 1.6rem; }
::selection { background: var(--gold); color: #120d08; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.okb-shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.okb-skip { position: fixed; inset-inline-start: 12px; top: -80px; z-index: 2000; padding: 10px 16px; border-radius: 4px; background: var(--gold-hi); color: #120d08; font-weight: 600; text-decoration: none; }
.okb-skip:focus { top: 12px; }

.okb-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--gold); font-size: .875rem; font-weight: 500; line-height: 1.4; }
.okb-eyebrow::before { content: ""; flex: none; width: 34px; height: 1px; background: linear-gradient(var(--okb-flow), var(--gold-hi), var(--gold-lo)); }

.okb-button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.okb-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border: 1px solid transparent; border-radius: 2px; font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--ease); }
.okb-button--gold { overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--gold-hi), var(--gold) 58%, #a98440); color: #140e08; }
.okb-button--gold::after { content: ""; position: absolute; inset: -20% 0 -20% auto; z-index: -1; width: 38%; background: linear-gradient(100deg, transparent, rgba(255, 250, 232, .8), transparent); transform: translateX(180%) skewX(16deg); animation: okb-shine 7s ease-in-out 2.6s infinite; }
.okb-button--gold:hover { transform: translateY(-2px); }
.okb-button--ghost { border-color: rgba(236, 212, 156, .38); color: var(--ivory); }
.okb-button--ghost:hover { border-color: var(--gold-hi); background: rgba(201, 164, 92, .1); color: var(--gold-hi); }

.okb-text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--gold-hi); font-weight: 500; text-decoration: none; transition: border-color .3s ease; }
.okb-text-link span { transition: transform .35s var(--ease); }
.okb-text-link:hover { border-color: var(--gold-hi); }
.okb-text-link:hover span { transform: translateX(calc(var(--okb-sign) * -6px)); }

/* ---------- English: Latin letters sit lower and tighter than Arabic ---------- */
[dir="ltr"] body { line-height: 1.7; }
[dir="ltr"] :is(h1, h2, h3) { line-height: 1.14; }
[dir="ltr"] .okb-hero h1 { font-size: clamp(2.7rem, 4.9vw, 4.7rem); line-height: 1.08; }
[dir="ltr"] .okb-rise { padding-block: .06em .2em; margin-block: -.06em -.2em; }
[dir="ltr"] .okb-prose-large { line-height: 1.5; }
[dir="ltr"] .okb-brand__name { font-size: 1.5rem; letter-spacing: .01em; }
[dir="ltr"] .okb-cover__title { line-height: 1.12; }
[dir="ltr"] .okb-book__title { line-height: 1.22; }
[dir="ltr"] .okb-nav a { font-size: .94rem; }

/* ---------- Header ---------- */
.okb-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header); border-bottom: 1px solid transparent; background: linear-gradient(rgba(7, 6, 5, .82), rgba(7, 6, 5, 0)) no-repeat; background-clip: padding-box; transition: background .35s ease, border-color .35s ease; }
.okb-header.is-stuck { border-color: var(--line); background: rgba(7, 6, 5, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.okb-header__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.okb-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; }
.okb-mark { flex: none; width: 42px; height: 42px; }
.okb-mark__ring { fill: none; stroke: var(--gold); stroke-width: 1; }
.okb-mark__tiles { fill: none; stroke: var(--gold-hi); stroke-width: 4; stroke-dasharray: 2.2 2.2; opacity: .9; }
.okb-mark__hole { fill: #020101; stroke: var(--gold-lo); stroke-width: .8; }
.okb-mark__strings { fill: none; stroke: var(--ivory); stroke-width: .7; opacity: .9; }
.okb-brand__text { display: grid; line-height: 1.1; }
.okb-brand__name { font-family: var(--f-display); font-size: 1.55rem; font-weight: 700; }
.okb-brand__sub { margin-top: 3px; color: var(--gold); }
.okb-brand__sub--latin { font-size: .56rem; font-weight: 500; letter-spacing: .34em; text-align: right; }
.okb-brand__sub--arabic { margin-top: 0; font-family: var(--f-display); font-size: .92rem; line-height: 1.25; text-align: left; }

.okb-nav { margin-inline: auto; }
.okb-nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.okb-nav a { position: relative; display: block; padding: 8px 0; color: var(--text); font-size: .97rem; text-decoration: none; transition: color .25s ease; }
.okb-nav a::after { content: ""; position: absolute; inset: auto 0 2px; height: 1px; background: var(--gold-hi); transform: scaleX(0); transform-origin: var(--okb-start) 50%; transition: transform .4s var(--ease); }
.okb-nav a:hover { color: var(--gold-hi); }
.okb-nav a:hover::after { transform: scaleX(1); }

.okb-tools { display: flex; align-items: center; gap: 4px; }
.okb-lang { display: inline-grid; place-items: center; min-width: 46px; height: 34px; margin-inline-end: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-hi); font-size: .82rem; font-weight: 500; line-height: 1; text-decoration: none; transition: background .25s ease, border-color .25s ease; }
.okb-lang:hover { border-color: var(--gold-hi); background: rgba(201, 164, 92, .14); }
.okb-tool { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ivory); cursor: pointer; transition: background .25s ease, color .25s ease; }
.okb-tool:hover { background: rgba(201, 164, 92, .14); color: var(--gold-hi); }
.okb-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.okb-tool__count { position: absolute; top: 4px; inset-inline-end: 2px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--gold-hi); color: #140e08; font-size: .68rem; font-weight: 600; line-height: 1; }
.okb-menu-button { display: none; }
.okb-menu-button path { transition: transform .35s var(--ease); transform-origin: 12px 12px; }

/* ---------- Hero ---------- */
.okb-hero { --g-left: 4.5%; position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; min-height: clamp(660px, 100svh, 940px); padding: calc(var(--header) + 30px) 0 176px; background: radial-gradient(60% 80% at var(--okb-start) 0%, rgba(201, 164, 92, .07), transparent 70%), var(--k-0); }
.okb-hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: 2; height: 190px; background: linear-gradient(transparent, var(--k-0) 92%); pointer-events: none; }
.okb-hero__light { position: absolute; z-index: 0; inset-inline-end: 4%; top: 50%; width: min(64vw, 920px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 178, 104, .2), rgba(226, 178, 104, .07) 52%, transparent); transform: translateY(-46%); opacity: .7; pointer-events: none; }
.okb-hero__inner { position: relative; z-index: 3; pointer-events: none; }
.okb-hero__copy { width: min(100%, 540px); pointer-events: auto; }
.okb-hero h1 { margin-bottom: 22px; font-size: clamp(2.8rem, 5.5vw, 5.3rem); line-height: 1.24; }
.okb-hero__lead { max-width: 30em; margin-bottom: 34px; color: var(--text); font-size: 1.16rem; }

.okb-rise { display: inline-block; overflow: hidden; padding-block: .2em .34em; margin-block: -.2em -.34em; vertical-align: top; }
.okb-rise > span { display: inline-block; animation: okb-word 1.1s var(--ease) calc(.15s + var(--i) * 70ms) both; }
.okb-hero .okb-eyebrow { animation: okb-rise .9s var(--ease) both; }
.okb-hero__lead { animation: okb-rise .9s var(--ease) .5s both; }
.okb-hero .okb-button-row { animation: okb-rise .9s var(--ease) .62s both; }

.okb-guitar { position: absolute; z-index: 1; inset-inline-end: var(--g-left); top: calc(var(--header) + 14px); bottom: 96px; height: min(var(--g-size, 88%), 57vw); margin-block: auto; aspect-ratio: var(--okb-guitar-ratio, 5 / 6); touch-action: pan-y; -webkit-tap-highlight-color: transparent; animation: okb-guitar-in 1.6s var(--ease) .1s both; }
.okb-guitar.is-over { cursor: pointer; }
.okb-guitar__body { position: absolute; inset: 0; will-change: transform; }
.okb-guitar__art, .okb-guitar__strings { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* The left-to-right page shows the same drawing mirrored; its strings are laid out for that, so it stays right-handed. */
.okb-guitar__body--mirror svg { transform: scaleX(-1); }
.okb-guitar__string { fill: none; stroke-linecap: round; stroke-dasharray: 1; animation: okb-draw 1.2s var(--ease) calc(.7s + var(--o) * 90ms) both; }
.okb-guitar__string--bass { stroke: #dcc99f; }
.okb-guitar__string--treble { stroke: #fbf5e6; opacity: .92; }
.okb-guitar__blur { fill: #f6dfae; opacity: 0; }
.okb-guitar__dot { fill: var(--gold-hi); stroke: #2a1a08; stroke-width: .6; opacity: 0; transition: transform .45s var(--ease), opacity .3s ease; }
.okb-guitar__dot.is-on { opacity: 1; }

.okb-player { position: absolute; z-index: 4; inset-inline-end: max(var(--gutter), calc(var(--g-left) + 32px)); bottom: 196px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 232px; }
.okb-player__text { width: 100%; }
.okb-player[hidden] { display: none; }
.okb-sound { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 18px; border: 1px solid rgba(236, 212, 156, .45); border-radius: 999px; background: rgba(7, 6, 5, .72); color: var(--gold-hi); font-family: var(--f-body); font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; animation: okb-sound-hint 2.6s ease-out 3.2s 3; }
.okb-sound svg { flex: none; width: 19px; height: 19px; fill: currentColor; transform: scaleX(calc(var(--okb-sign) * -1)); }
.okb-sound__wave { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .4; transition: opacity .2s ease; }
.okb-sound:hover { border-color: var(--gold-hi); background: rgba(28, 24, 21, .95); }
.okb-sound[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #140e08; animation: none; }
.okb-sound[aria-pressed="true"] .okb-sound__wave { opacity: 1; }
.okb-player__hint { color: var(--mute); font-size: .84rem; line-height: 1.5; }
.okb-chords { display: flex; gap: 6px; margin-top: 6px; }
.okb-chords button { min-width: 42px; min-height: 30px; padding: 0 9px; border: 1px solid var(--line-soft); border-radius: 999px; background: none; color: var(--mute); font-family: var(--f-body); font-size: .8rem; line-height: 1.6; cursor: pointer; transition: color .3s ease, border-color .3s ease, background .3s ease; }
.okb-chords button:hover { border-color: var(--gold); color: var(--gold-hi); }
.okb-chords li.is-on button { border-color: var(--gold); background: rgba(201, 164, 92, .16); color: var(--gold-hi); }

/* ---------- Moving shelf ---------- */
.okb-river { position: relative; z-index: 5; margin-top: -150px; }
.okb-river__track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; padding-block: 22px 46px; direction: ltr; scroll-behavior: auto; scrollbar-width: none; }
.okb-river__track::-webkit-scrollbar { display: none; }
.okb-river__group { flex: none; display: flex; gap: 26px; padding: 0 13px; }
.okb-river li { flex: none; width: 150px; direction: rtl; }
[dir="ltr"] .okb-river li { direction: ltr; }
.okb-river a { position: relative; display: block; text-decoration: none; }
.okb-river .okb-cover { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.okb-river a:hover .okb-cover, .okb-river a:focus-visible .okb-cover { transform: translateY(-12px) rotate(1.4deg) scale(1.04); box-shadow: 0 0 0 1px rgba(236, 212, 156, .3), 0 30px 44px rgba(0, 0, 0, .8); }
.okb-river__title { position: absolute; inset: calc(100% + 9px) 0 auto; overflow: hidden; color: var(--gold-hi); font-size: .78rem; font-weight: 500; line-height: 1.4; text-align: center; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: opacity .25s ease; }
.okb-river a:hover .okb-river__title, .okb-river a:focus-visible .okb-river__title { opacity: 1; }
.okb-river__pause { position: absolute; inset-inline-end: max(var(--gutter), calc((100vw - var(--shell)) / 2)); bottom: 4px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--k-0); color: var(--gold); cursor: pointer; transition: background .2s ease, color .2s ease; }
.okb-river__pause[hidden] { display: none; }
.okb-river__pause:hover { background: var(--gold); color: #140e08; }
.okb-river__pause svg { width: 16px; height: 16px; fill: currentColor; }
.okb-river__icon-play, .okb-river__pause[aria-pressed="true"] .okb-river__icon-pause { display: none; }
.okb-river__pause[aria-pressed="true"] .okb-river__icon-play { display: block; }

/* ---------- Book covers drawn in CSS (preview titles; the shop uses its own cover images) ---------- */
.okb-cover { --c-bg: #5b1620; --c-acc: #dcbb74; --c-ink: #f6ecd6; position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; aspect-ratio: 2 / 3; padding: 10% 9% 9%; overflow: hidden; border-radius: 4px 2px 2px 4px; background: var(--c-bg); color: var(--c-ink); container-type: inline-size; text-align: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 34px rgba(0, 0, 0, .66); }
.okb-cover::before { content: ""; position: absolute; inset: 4.5%; border: 1px solid var(--c-acc); opacity: .55; pointer-events: none; }
.okb-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--okb-flow), rgba(0, 0, 0, .34), rgba(255, 255, 255, .14) 3%, rgba(0, 0, 0, .06) 6.5%, transparent 12%), linear-gradient(160deg, rgba(255, 255, 255, .1), transparent 40%); pointer-events: none; }
.okb-cover__shelf { color: var(--c-acc); font-size: 6cqi; font-weight: 500; line-height: 1.3; }
.okb-cover__art { position: relative; flex: 1; width: 100%; margin: 7% 0; }
.okb-cover__title { font-family: var(--f-display); font-size: 14cqi; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.okb-cover__author { margin-top: 5%; padding-top: 5%; border-top: 1px solid var(--c-acc); color: var(--c-ink); font-size: 6.6cqi; line-height: 1.35; opacity: .86; }
[dir="ltr"] .okb-cover { border-radius: 2px 4px 4px 2px; }
.okb-cover--p2 { --c-bg: #0f2b2b; --c-acc: #dcbb74; --c-ink: #f1e8d2; }
.okb-cover--p3 { --c-bg: #ece2cb; --c-acc: #9a2f38; --c-ink: #1b140f; }
.okb-cover--p4 { --c-bg: #14213d; --c-acc: #e4c47e; --c-ink: #f3ead6; }
.okb-cover--p5 { --c-bg: #c2953c; --c-acc: #1c140c; --c-ink: #140f0a; }
.okb-cover--p6 { --c-bg: #1b1917; --c-acc: #c9a45c; --c-ink: #f3ead6; }
.okb-cover--p7 { --c-bg: #2f3a22; --c-acc: #e9d29d; --c-ink: #f3ead6; }
.okb-cover--p8 { --c-bg: #7c3a1c; --c-acc: #f1dfb6; --c-ink: #fbf3e0; }
.okb-cover--rosette .okb-cover__art { background: radial-gradient(circle closest-side, transparent 30%, var(--c-acc) 30% 33%, transparent 33% 46%, var(--c-acc) 46% 48%, transparent 48% 58%, var(--c-acc) 58% 72%, transparent 72% 82%, var(--c-acc) 82% 84%, transparent 84%); }
.okb-cover--rosette .okb-cover__art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to left, var(--c-ink) 0 1px, transparent 1px 5cqi) center / 26cqi 100% no-repeat; opacity: .8; }
.okb-cover--arch .okb-cover__art::before, .okb-cover--arch .okb-cover__art::after { content: ""; position: absolute; inset: 0 22% 0; border: 1.5px solid var(--c-acc); border-bottom: 0; border-radius: 999px 999px 0 0; }
.okb-cover--arch .okb-cover__art::after { inset: 14% 31% 0; background: var(--c-acc); opacity: .9; }
.okb-cover--sun .okb-cover__art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle closest-side, var(--c-acc) 58%, transparent 59%), linear-gradient(var(--c-acc), var(--c-acc)) 50% 100% / 100% 1.5px no-repeat; }
.okb-cover--strings .okb-cover__art { background: repeating-linear-gradient(to left, var(--c-acc) 0 1.5px, transparent 1.5px 9cqi) center / 47cqi 100% no-repeat; }
.okb-cover--strings .okb-cover__art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 26cqi; aspect-ratio: 1; border-radius: 50%; background: var(--c-bg); border: 1.5px solid var(--c-acc); transform: translate(-50%, -50%); }
.okb-cover--bands .okb-cover__art { background: repeating-linear-gradient(135deg, var(--c-acc) 0 4cqi, transparent 4cqi 11cqi); -webkit-mask: radial-gradient(circle closest-side, #000 99%, transparent); mask: radial-gradient(circle closest-side, #000 99%, transparent); }
.okb-cover--star .okb-cover__art::before, .okb-cover--star .okb-cover__art::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36cqi; aspect-ratio: 1; border: 1.5px solid var(--c-acc); transform: translate(-50%, -50%); }
.okb-cover--star .okb-cover__art::after { transform: translate(-50%, -50%) rotate(45deg); }

/* ---------- Sections ---------- */
.okb-section { position: relative; padding: clamp(72px, 9vw, 132px) 0; }
.okb-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(34px, 4.5vw, 60px); }
.okb-heading > p { max-width: 22em; color: var(--mute); }

.okb-intro { padding-top: clamp(64px, 8vw, 116px); }
.okb-intro__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.okb-prose-large { margin-bottom: 30px; color: var(--ivory); font-family: var(--f-display); font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.75; }
.okb-ink-word { color: rgba(243, 235, 218, .2); transition: color .5s ease; }
.okb-ink-word.is-inked { color: inherit; }

.okb-fields { border-block: 1px solid var(--line); background: var(--k-1); }
.okb-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.okb-field { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 330px; padding: clamp(26px, 3vw, 42px); overflow: hidden; background: var(--k-1); color: var(--text); text-decoration: none; }
.okb-field::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--gold-hi), var(--gold) 60%, #a98440); transform: translateY(101%); transition: transform .65s var(--ease); }
.okb-field__index { color: var(--gold); font-family: var(--f-display); font-size: 1.15rem; }
.okb-field h3 { margin: clamp(40px, 6vw, 84px) 0 10px; font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.okb-field p { max-width: 22em; color: var(--mute); }
.okb-field__go { margin-top: auto; padding-top: 28px; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.okb-field :is(span, h3, p) { transition: color .35s ease, transform .65s var(--ease); }
.okb-field:is(:hover, :focus-visible)::before { transform: none; }
.okb-field:is(:hover, :focus-visible) :is(h3, p, span) { color: #140e08; }
.okb-field:is(:hover, :focus-visible) :is(h3, p) { transform: translateY(-6px); }
.okb-field:is(:hover, :focus-visible) .okb-field__go { transform: translateX(calc(var(--okb-sign) * -8px)); }

.okb-book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 3.4vw, 48px) clamp(18px, 2.4vw, 34px); }
.okb-book { display: flex; flex-direction: column; min-width: 0; }
.okb-book__media { display: grid; place-items: center; padding: 13% 19% 11%; border: 1px solid var(--line-soft); background: radial-gradient(90% 70% at 50% 28%, #211b17, var(--k-2) 72%); text-decoration: none; perspective: 900px; transition: border-color .4s ease; }
.okb-book__media .okb-cover { transform-origin: var(--okb-start) 50%; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.okb-book__body { display: flex; flex: 1; flex-direction: column; padding-top: 16px; }
.okb-book__shelf { color: var(--gold); font-size: .78rem; line-height: 1.5; }
.okb-book__title { margin: 4px 0 2px; font-size: 1.42rem; line-height: 1.35; }
.okb-book__title a { text-decoration: none; background: linear-gradient(var(--gold-hi), var(--gold-hi)) var(--okb-start) 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.okb-book:hover .okb-book__title a { background-size: 100% 1px; }
.okb-book__author { color: var(--mute); font-size: .92rem; }
.okb-book__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.okb-price { color: var(--ivory); font-size: 1.06rem; font-weight: 500; }
.okb-price bdi { unicode-bidi: isolate; }
.okb-price small { color: var(--mute); font-size: .78rem; font-weight: 400; }
.okb-add { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-hi); transition: background .25s ease, color .25s ease, border-color .25s ease; }
.okb-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.okb-add:hover { border-color: var(--gold-hi); background: var(--gold-hi); color: #140e08; }
@media (hover: hover) and (pointer: fine) {
  .okb-book:hover .okb-book__media { border-color: var(--line); }
  .okb-book:hover .okb-cover { transform: rotateY(calc(var(--okb-sign) * 14deg)) scale(1.04); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), calc(var(--okb-sign) * -16px) 22px 36px rgba(0, 0, 0, .8); }
}

.okb-feature { overflow: hidden; border-block: 1px solid var(--line); background: var(--k-1); }
.okb-feature__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.okb-feature__art { position: relative; display: grid; place-items: center; padding: 30px 0; perspective: 1200px; }
.okb-feature__rosette { position: absolute; left: 50%; top: 50%; width: min(128%, 620px); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle closest-side, transparent 0 9.4%, rgba(201, 164, 92, .18) 9.4% 9.7%), radial-gradient(circle closest-side, rgba(201, 164, 92, .13), transparent 72%); transform: translate(-50%, -50%); animation: okb-turn 120s linear infinite; }
.okb-feature__rosette::before { content: ""; position: absolute; inset: 21%; border: 9px dashed rgba(201, 164, 92, .26); border-radius: 50%; }
.okb-cover--large { position: relative; width: min(74%, 330px); transform: rotateY(calc(var(--okb-sign) * -16deg)) rotateX(3deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), calc(var(--okb-sign) * 34px) 44px 70px rgba(0, 0, 0, .78); transition: transform .9s var(--ease); }
.okb-feature__art:hover .okb-cover--large { transform: rotateY(calc(var(--okb-sign) * -6deg)) rotateX(1deg) translateY(-6px); }
.okb-feature__copy h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.okb-feature__author { margin: 4px 0 22px; color: var(--gold-hi); font-size: 1.14rem; }
.okb-feature__copy > p:not([class]) { max-width: 32em; margin-bottom: 34px; font-size: 1.12rem; }

.okb-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.okb-service-grid article { padding-inline: clamp(20px, 3vw, 46px); border-inline-start: 1px solid var(--line); }
.okb-service-grid article:first-child { padding-inline-start: 0; border-inline-start: 0; }
.okb-service-grid h2 { margin-bottom: 14px; font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.okb-service-grid article > p:not(.okb-eyebrow) { margin-bottom: 24px; color: var(--mute); }

.okb-cta { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); background: radial-gradient(70% 130% at var(--okb-end-near) 50%, rgba(201, 164, 92, .16), transparent 68%), var(--k-1); }
.okb-cta::before { content: ""; position: absolute; inset-inline-end: -90px; top: 50%; width: 520px; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle closest-side, transparent 0 11.6%, rgba(201, 164, 92, .2) 11.6% 12%); transform: translateY(-50%); animation: okb-drift 40s ease-in-out infinite alternate; pointer-events: none; }
.okb-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.okb-cta h2 { max-width: 15em; font-size: clamp(2rem, 3.8vw, 3.3rem); }

/* ---------- Footer ---------- */
.okb-footer { padding-top: clamp(54px, 6vw, 84px); border-top: 1px solid var(--line); background: #040303; color: var(--mute); font-size: .96rem; }
.okb-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4vw, 64px); padding-bottom: 54px; }
.okb-footer__brand p { max-width: 24em; margin-top: 18px; }
.okb-footer h3 { margin-bottom: 14px; color: var(--gold-hi); font-family: var(--f-body); font-size: .92rem; font-weight: 600; }
.okb-footer li + li { margin-top: 7px; }
.okb-footer nav a { color: var(--text); text-decoration: none; transition: color .2s ease; }
.okb-footer nav a:hover { color: var(--gold-hi); }
.okb-footer__base { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: .84rem; }
.okb-footer__base p[lang] { letter-spacing: .22em; }

/* ---------- Motion helpers (the script adds these classes, and only below the fold) ---------- */
.okb-progress { position: fixed; inset: 0 0 auto; z-index: 1100; height: 2px; background: linear-gradient(var(--okb-flow), var(--gold-lo), var(--gold-hi)); transform: scaleX(var(--p, 0)); transform-origin: var(--okb-start) 50%; pointer-events: none; }
.okb-reveal { opacity: 0; transform: translateY(32px); }
.okb-reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform 1.05s var(--ease) var(--d, 0s); }
.okb-string-rule { position: relative; z-index: 3; height: 0; }
.okb-string-rule svg { position: absolute; left: 0; top: -24px; width: 100%; height: 48px; overflow: visible; pointer-events: none; }
.okb-string-rule path { fill: none; stroke: var(--gold); stroke-width: 1.1; opacity: .85; }

@keyframes okb-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes okb-word { from { transform: translateY(125%); } to { transform: none; } }
@keyframes okb-guitar-in { from { opacity: 0; transform: translate3d(-26px, 22px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes okb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes okb-shine { 0% { transform: translateX(180%) skewX(16deg); } 22%, 100% { transform: translateX(-360%) skewX(16deg); } }
@keyframes okb-sound-hint { from { box-shadow: 0 0 0 0 rgba(236, 212, 156, .5); } to { box-shadow: 0 0 0 16px rgba(236, 212, 156, 0); } }
@keyframes okb-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes okb-drift { from { transform: translate3d(-30px, -54%, 0); } to { transform: translate3d(40px, -46%, 0); } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  .okb-nav ul { gap: 18px; }
  .okb-nav a { font-size: .92rem; }
  .okb-hero__copy { width: min(100%, 460px); }
  .okb-hero { --g-left: -2%; }
  .okb-player { bottom: 172px; width: auto; }
  .okb-player__hint { display: none; }
  .okb-chords { margin-top: 0; }
}
@media (max-width: 980px) {
  :root { --header: 66px; }
  .okb-menu-button { display: grid; }
  .okb-tool--account { display: none; }
  [dir="ltr"] .okb-nav a { font-size: 1.7rem; }
  .okb-nav { position: fixed; inset: var(--header) 0 0; z-index: 999; margin: 0; padding: 26px var(--gutter) 40px; overflow-y: auto; background: var(--k-0); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s ease, transform .4s var(--ease), visibility 0s .4s; }
  .okb-nav ul { flex-direction: column; gap: 0; }
  .okb-nav a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); color: var(--ivory); font-family: var(--f-display); font-size: 1.7rem; }
  .okb-nav a::after { display: none; }
  .okb-menu-open { overflow: hidden; }
  .okb-menu-open .okb-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .okb-menu-open .okb-header { border-color: var(--line); background: var(--k-0); }
  .okb-menu-open .okb-menu-button__a { transform: translateY(4px) rotate(45deg); }
  .okb-menu-open .okb-menu-button__b { transform: translateY(-4px) rotate(-45deg); }
  .okb-header__inner { gap: 10px; }
  .okb-tools { margin-inline-start: auto; }
  .okb-brand__name { font-size: 1.36rem; }
  .okb-mark { width: 36px; height: 36px; }
  .okb-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .okb-hero__copy { width: min(100%, 400px); }
  .okb-hero h1 { font-size: clamp(2.6rem, 6.4vw, 3.6rem); }
}
@media (max-width: 820px) {
  .okb-hero { flex-direction: column; align-items: stretch; min-height: 0; padding: calc(var(--header) + 34px) 0 0; }
  .okb-hero__inner { order: 1; }
  .okb-hero__copy { width: 100%; }
  .okb-hero__lead { font-size: 1.06rem; margin-bottom: 26px; }
  .okb-player { order: 2; position: relative; inset-inline-end: auto; bottom: auto; flex-direction: row; align-items: center; width: min(100% - 2 * var(--gutter), var(--shell)); margin: 30px auto 0; }
  .okb-player__text { width: auto; }
  .okb-player__hint { display: block; }
  .okb-chords { margin-top: 6px; }
  .okb-guitar { order: 3; position: relative; inset-inline-end: auto; top: auto; bottom: auto; flex: none; width: 150vw; height: auto; margin: -34vw 0 8vw; }
  .okb-hero__copy { width: 100%; }
  .okb-hero h1 { font-size: clamp(2.7rem, 11.6vw, 4rem); }
  .okb-hero__light { inset-inline-end: -10%; top: auto; bottom: 4%; width: 120vw; transform: none; }
  .okb-hero::after { height: 120px; }
  .okb-river { margin-top: -96px; }
  .okb-river li { width: 112px; }
  .okb-river__group { gap: 16px; padding: 0 8px; }
  .okb-river__track { padding-block: 12px 38px; }
  .okb-heading { flex-direction: column; align-items: start; gap: 14px; }
  .okb-intro__grid, .okb-feature__grid { grid-template-columns: minmax(0, 1fr); }
  .okb-field-grid { grid-template-columns: minmax(0, 1fr); }
  .okb-field { min-height: 0; }
  .okb-field h3 { margin-top: 30px; }
  .okb-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .okb-book__title { font-size: 1.22rem; }
  .okb-service-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .okb-service-grid article { padding-inline: 0; border-inline-start: 0; }
  .okb-service-grid article + article { padding-top: 40px; border-top: 1px solid var(--line); }
  .okb-cta__inner { flex-direction: column; align-items: start; }
  .okb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .okb-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .okb-button-row .okb-button { flex: 1 1 auto; padding: 0 20px; }
  .okb-brand__sub { display: none; }
  .okb-brand__name, [dir="ltr"] .okb-brand__name { font-size: 1.22rem; }
  .okb-mark { width: 32px; height: 32px; }
  .okb-brand { gap: 9px; }
  .okb-lang { min-width: 42px; margin-inline-end: 2px; padding: 0 9px; }
  .okb-tool--search { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .okb-guitar__string { stroke-dasharray: none; }
  .okb-river__track { flex-wrap: nowrap; }
}
@media print {
  .okb-reveal { opacity: 1; transform: none; }
  .okb-ink-word { color: inherit; }
  .okb-header, .okb-river, .okb-progress, .okb-string-rule, .okb-player { display: none; }
}
