/* OPUS theme – fonts are self-hosted (SIL OFL 1.1). Uses logical properties so it mirrors for Arabic (RTL). */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 1000;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 100 1000;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
	font-weight: 700 800;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ==========================================================================
   OPUS – tokens
   ========================================================================== */
:root {
	--ink: #1E1A22;
	--plum: #2A2131;
	--plum-2: #41334A;
	--orange: #E8833A;
	--orange-dark: #B9581A;
	--sun: #F6C453;
	--mint: #7FD1B9;
	--rose: #F2A7A0;
	--paper: #FFF9F1;
	--paper-2: #FBEEDD;
	--muted: #615A67;
	--line: #E8DECF;
	--white: #fff;
	--font-head: "Bricolage Grotesque", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-body: "DM Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r: 22px;
	--r-lg: 34px;
	--shadow: 0 14px 34px -16px rgba(42, 33, 49, .35);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--max: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.65; overflow-x: clip; }
[dir="rtl"] body { line-height: 1.85; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.wrap--text { width: min(760px, 100% - 2 * clamp(16px, 4vw, 40px)); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .btn .icon, [dir="rtl"] .note-card__more .icon { transform: scaleX(-1); }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: .8rem; }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: .95rem; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); color: var(--muted); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p:last-child { color: var(--muted); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .9em 1.5em; border-radius: 999px; font-family: var(--font-head); font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--plum); color: #fff; box-shadow: 0 10px 24px -12px rgba(42,33,49,.7); }
.btn--primary:hover { background: var(--orange); color: #fff; }
.btn--ghost { border-color: var(--plum); color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: #fff; }
.btn--sun { background: var(--sun); color: var(--plum); }
.btn--sun:hover { background: #fff; color: var(--plum); }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--plum); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 241, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(42,33,49,.5); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand__word { display: inline-flex; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; letter-spacing: .04em; direction: ltr; }
.brand__word span { display: inline-block; transition: transform .35s var(--ease); }
.brand__word span:nth-child(1) { color: var(--orange); }
.brand__word span:nth-child(3) { color: var(--plum-2); }
.brand:hover .brand__word span:nth-child(odd) { transform: translateY(-4px) rotate(-6deg); }
.brand:hover .brand__word span:nth-child(even) { transform: translateY(3px) rotate(5deg); }
.brand__by { font-size: .82rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__item > a { display: block; padding: 10px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.nav__item > a:hover, .nav__item > a[aria-current] { background: var(--paper-2); color: var(--orange-dark); }
.nav__item > a.is-ext::after { content: "↗"; font-size: .8em; margin-inline-start: 4px; opacity: .6; }
.nav__sub { list-style: none; margin: 0; padding: 10px; position: absolute; inset-inline-start: 0; top: 100%; min-width: 290px; max-height: 70vh; overflow: auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav__item.has-sub:hover .nav__sub, .nav__item.has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.nav__sub a:hover { background: var(--paper-2); color: var(--orange-dark); }
.langs { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; background: var(--paper-2); border-radius: 999px; }
.langs a { display: grid; place-items: center; min-width: 36px; height: 32px; padding: 0 8px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .82rem; }
.langs a[aria-current] { background: var(--plum); color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: var(--plum); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font: 700 .92rem var(--font-head); cursor: pointer; }

@media (max-width: 1020px) {
	.nav-toggle { display: inline-flex; }
	.brand__by { display: none; }
	.nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px clamp(16px, 4vw, 40px) 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(42,33,49,.4); max-height: calc(100vh - 74px); overflow: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; align-items: stretch; }
	.nav__item > a { padding: 12px 14px; font-size: 1.05rem; }
	.nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 6px; min-width: 0; max-height: none; display: none; }
	.nav__item.is-open .nav__sub { display: block; }
	.nav__item.has-sub > a::after { content: "▾"; margin-inline-start: 6px; font-size: .8em; }
	.langs { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 110px) clamp(56px, 8vw, 100px); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(246,196,83,.35), transparent 62%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: .88rem; color: var(--plum-2); }
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(127,209,185,.3); }
.hero__title { margin-top: .5em; }
.hero__title em { font-style: normal; color: var(--orange); position: relative; white-space: nowrap; }
.hero__title em::after { content: ""; position: absolute; inset-inline: -2%; bottom: .02em; height: .18em; background: var(--sun); border-radius: 99px; z-index: -1; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .6s; }
[dir="rtl"] .hero__title em::after { transform-origin: right; }
.hero__title.is-visible em::after { transform: none; }
.hero__lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); color: var(--muted); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero__words { position: absolute; inset: 0; pointer-events: none; }
.hero__words span { position: absolute; font-family: var(--font-head); font-weight: 700; color: rgba(65, 51, 74, .09); font-size: clamp(1.1rem, .8rem + 1.6vw, 2.4rem); white-space: nowrap; animation: drift calc(14s + var(--i) * 1.3s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.7s); }
@keyframes drift { from { transform: translate(0, 0) rotate(-4deg); } to { transform: translate(18px, -26px) rotate(4deg); } }

.hero__paper { position: relative; min-height: 340px; }
.paper { position: relative; z-index: 2; background: #fff; border-radius: 24px; padding: 26px 28px 30px; box-shadow: 0 30px 60px -28px rgba(42,33,49,.55); transform: rotate(-2.5deg); background-image: repeating-linear-gradient(transparent 0 37px, #EFE6DA 37px 38px); background-position: 0 66px; animation: paperFloat 7s ease-in-out infinite; }
.paper--back { position: absolute; inset: 18px -14px -14px 18px; z-index: 1; background: var(--orange); transform: rotate(4deg); animation: none; background-image: none; box-shadow: none; opacity: .9; }
[dir="rtl"] .paper--back { inset: 18px 18px -14px -14px; transform: rotate(-4deg); }
@keyframes paperFloat { 50% { transform: rotate(-1deg) translateY(-8px); } }
.paper__head { display: flex; gap: 6px; margin-bottom: 26px; }
.paper__head span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.paper__head span:first-child { background: var(--rose); }
.paper__head span:nth-child(2) { background: var(--sun); }
.paper__head span:nth-child(3) { background: var(--mint); }
.paper__type { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); line-height: 38px; min-height: 152px; margin: 0; color: var(--plum); }
.paper__caret { display: inline-block; width: 3px; height: 1em; background: var(--orange); vertical-align: -.12em; margin-inline-start: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.paper__scribble { width: 70%; height: auto; margin-top: 8px; }
.paper__scribble path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: scribble 2.4s var(--ease) 1s forwards; }
@keyframes scribble { to { stroke-dashoffset: 0; } }
.paper__by { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.hero__pen { position: absolute; z-index: 3; inset-inline-end: -6px; bottom: -18px; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--plum); color: var(--sun); box-shadow: var(--shadow); animation: penBob 3s ease-in-out infinite; }
.hero__pen .icon { width: 30px; height: 30px; }
@keyframes penBob { 50% { transform: translateY(-10px) rotate(-10deg); } }

/* ---------- Stats ---------- */
.stats { background: var(--plum); color: #fff; padding-block: clamp(34px, 5vw, 56px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 18px; border-inline-start: 3px solid var(--orange); }
.stat:nth-child(2) { border-color: var(--sun); }
.stat:nth-child(3) { border-color: var(--mint); }
.stat:nth-child(4) { border-color: var(--rose); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 4rem); line-height: 1; }
.stat__label { color: rgba(255,255,255,.75); font-weight: 600; }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.note { margin-top: 28px; padding: 20px 24px; border-radius: var(--r); background: var(--paper-2); border-inline-start: 5px solid var(--sun); }
.note p { margin: .3em 0 0; color: var(--muted); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.phase { position: relative; padding: 22px 24px 22px 86px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
[dir="rtl"] .phase { padding: 22px 86px 22px 24px; }
.phase h3 { margin-bottom: .25em; }
.phase p { margin: 0; color: var(--muted); }
.phase__icon { position: absolute; inset-inline-start: 22px; top: 22px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #FDE7D4; color: var(--orange-dark); }
.phase:nth-child(2) .phase__icon { background: #E3F5EF; color: #1F6450; }
.phase:nth-child(3) .phase__icon { background: #FDF1CF; color: #8A6410; }

/* ---------- Sessions ("the score") ---------- */
.sessions { background: #fff; position: relative; }
.sessions::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(transparent 0 23px, rgba(65,51,74,.05) 23px 24px); background-size: 100% 120px; mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); pointer-events: none; }
.score { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.note-card a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 22px 20px; border-radius: var(--r); background: var(--paper); text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, background .3s; }
.note-card a:hover { transform: translateY(-6px) rotate(calc(var(--rot, 0) * .4deg)); box-shadow: var(--shadow); background: #fff; }
.note-card__num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--plum); color: #fff; font: 800 1.15rem var(--font-head); margin-bottom: 6px; transition: background .3s, transform .4s var(--ease); }
.note-card:nth-child(4n+2) .note-card__num { background: var(--orange); }
.note-card:nth-child(4n+3) .note-card__num { background: #2E9C7E; }
.note-card:nth-child(4n+4) .note-card__num { background: var(--plum-2); }
.note-card--dinner .note-card__num { background: var(--sun); color: var(--plum); }
.note-card--dinner .note-card__num .icon { width: 22px; height: 22px; }
.note-card a:hover .note-card__num { transform: scale(1.1) rotate(-8deg); }
.note-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.note-card__text { color: var(--muted); font-size: .94rem; flex: 1; }
.note-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange-dark); font-size: .92rem; margin-top: 4px; }
.note-card__more .icon { transition: transform .25s var(--ease); }
.note-card a:hover .note-card__more .icon, .lib-card:hover .note-card__more .icon { transform: translateX(4px); }
[dir="rtl"] .note-card a:hover .note-card__more .icon, [dir="rtl"] .lib-card:hover .note-card__more .icon { transform: scaleX(-1) translateX(4px); }

/* ---------- Quote ---------- */
.quote { background: var(--orange); color: #fff; text-align: center; overflow: clip; }
.quote__fig { margin: 0 auto; max-width: 900px; position: relative; }
.quote__fig::before { content: "“"; position: absolute; inset-inline-start: 50%; top: -.55em; transform: translateX(-50%); font: 800 14rem/1 var(--font-head); color: rgba(255,255,255,.18); pointer-events: none; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 1.3rem + 3.2vw, 4rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
.quote figcaption { font-weight: 600; opacity: .85; }

/* ---------- Guests ---------- */
.guests__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guest { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 26px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.guest__mono { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; margin-bottom: 12px; background: var(--plum); color: var(--sun); font: 800 1.4rem var(--font-head); transform: rotate(-6deg); transition: transform .4s var(--ease); }
.guest:nth-child(2) .guest__mono { background: var(--orange); color: #fff; transform: rotate(5deg); }
.guest:nth-child(3) .guest__mono { background: #2E9C7E; color: #fff; }
.guest:hover .guest__mono { transform: rotate(0) scale(1.06); }
.guest__name { font: 700 1.2rem var(--font-head); }
.guest__role { color: var(--muted); }

/* ---------- Result + library ---------- */
.result { background: var(--paper-2); }
.result__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.lib-card { display: flex; flex-direction: column; gap: 6px; padding: 30px; border-radius: var(--r-lg); background: #fff; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.lib-card:hover { transform: translateY(-6px) rotate(-1deg); color: inherit; }
.lib-card .kicker { margin: 8px 0 0; }
.lib-card__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--sun); color: var(--plum); }
.lib-card__icon .icon { width: 26px; height: 26px; }
.lib-card__title { font: 800 1.6rem var(--font-head); }

/* ---------- Partners ---------- */
.thanks { padding-block: clamp(48px, 6vw, 80px); text-align: center; }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partners li { padding: 14px 24px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 700 1.05rem var(--font-head); color: var(--plum); }

/* ---------- CTA ---------- */
.cta { padding-bottom: clamp(56px, 8vw, 100px); }
.cta__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: var(--plum); color: #fff; position: relative; overflow: clip; }
.cta__box::after { content: "OPUS"; position: absolute; inset-inline-end: -10px; bottom: -.32em; font: 800 clamp(5rem, 3rem + 10vw, 12rem)/1 var(--font-head); color: rgba(255,255,255,.05); pointer-events: none; direction: ltr; }
.cta__box h2 { color: #fff; margin-bottom: .3em; }
.cta__box p { margin: 0; color: rgba(255,255,255,.8); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- Pages ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 90px) clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); }
.page-hero--404 { padding-block: 120px; }
.crumbs { margin-bottom: 1.2em; }
.crumbs a { text-decoration: none; font-weight: 700; }
.entry { padding-bottom: clamp(48px, 7vw, 90px); font-size: 1.08rem; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 1.7rem; margin-top: 1.8em; }
.entry h3 { font-size: 1.3rem; margin-top: 1.6em; }
.entry blockquote { margin: 1.5em 0; padding: 18px 24px; border-inline-start: 5px solid var(--orange); background: #fff; border-radius: 0 var(--r) var(--r) 0; font-size: 1.1em; }
[dir="rtl"] .entry blockquote { border-radius: var(--r) 0 0 var(--r); }
.entry img { border-radius: 16px; }
.entry em:only-child { color: var(--muted); }
.entry ul, .entry ol { padding-inline-start: 1.3em; }
.entry li + li { margin-top: .35em; }
.entry input[type="text"], .entry input[type="email"], .entry input[type="tel"], .entry textarea, .entry select { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; font: inherit; background: #fff; }
.entry input:focus, .entry textarea:focus { outline: none; border-color: var(--orange); }
.entry input[type="submit"], .entry button[type="submit"] { background: var(--plum); color: #fff; border: 0; padding: 12px 26px; border-radius: 999px; font: 700 1rem var(--font-head); cursor: pointer; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: clamp(48px, 7vw, 90px); }
.pager__link { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease); }
.pager__link:hover { transform: translateY(-4px); color: var(--ink); }
.pager__link small { color: var(--orange-dark); font-weight: 700; }
.pager__link span { font: 700 1.05rem var(--font-head); }
.pager__link--next { text-align: end; grid-column: 2; }
.post-list { list-style: none; margin: 0 0 60px; padding: 0; display: grid; gap: 14px; }
.post-list a { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: var(--r); background: #fff; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.post-list strong { font: 700 1.2rem var(--font-head); }
.post-list span, .post-list small { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-top: clamp(48px, 6vw, 72px); }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.site-footer__brand { font: 800 2.4rem var(--font-head); color: var(--sun); margin: 0 0 .2em; letter-spacing: .04em; }
.site-footer__links { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.site-footer__links a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.site-footer__links a:hover { color: var(--sun); }
.site-footer__links .icon { width: .9em; height: .9em; opacity: .6; }
.site-footer .langs { background: rgba(255,255,255,.08); display: inline-flex; }
.site-footer .langs a { color: rgba(255,255,255,.7); }
.site-footer .langs a[aria-current] { background: var(--sun); color: var(--ink); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.site-footer__base a { color: rgba(255,255,255,.7); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero__grid, .why__grid, .result__grid, .site-footer__grid { grid-template-columns: 1fr; }
	.hero__paper { max-width: 460px; margin-inline: auto; width: calc(100% - 20px); min-height: 0; }
	.stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
	.guests__list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.pager { grid-template-columns: 1fr; }
	.pager__link--next { grid-column: auto; }
	.hero__title em { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.paper__scribble path { stroke-dashoffset: 0; }
}

/* ---------- Photos ---------- */
.note-card__photo { display: block; margin: -22px -22px 14px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; background: var(--paper-2); }
.note-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .4s; filter: saturate(.9); }
.note-card a:hover .note-card__photo img { transform: scale(1.06); filter: saturate(1.1); }
.note-card.has-photo .note-card__num { position: relative; margin-top: -42px; margin-inline-start: 4px; box-shadow: 0 0 0 4px var(--paper); }
.note-card.has-photo a:hover .note-card__num { box-shadow: 0 0 0 4px #fff; }
.moments { padding-block: clamp(48px, 7vw, 90px) clamp(24px, 4vw, 40px); overflow: clip; }
.moments__track { display: flex; gap: clamp(14px, 2vw, 24px); padding: 18px max(clamp(16px, 4vw, 40px), calc((100% - var(--max)) / 2)) 30px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: max(clamp(16px, 4vw, 40px), calc((100% - var(--max)) / 2)); scrollbar-width: thin; scrollbar-color: var(--orange) transparent; }
.moment { flex: 0 0 auto; width: clamp(230px, 26vw, 340px); scroll-snap-align: start; position: relative; display: block; background: #fff; padding: 10px 10px 44px; border-radius: 6px; box-shadow: 0 18px 34px -18px rgba(42,33,49,.55); transform: rotate(calc(var(--rot, 0) * 1deg)); transition: transform .4s var(--ease), box-shadow .4s; text-decoration: none; color: var(--ink); }
.moment:nth-child(even) { margin-top: 26px; }
.moment:hover { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 26px 44px -18px rgba(42,33,49,.6); z-index: 2; color: var(--ink); }
.moment img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.moment__cap { position: absolute; inset-inline: 14px; bottom: 12px; font: 700 .92rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moment:nth-child(3n+1)::before { content: ""; position: absolute; top: -10px; inset-inline-start: 42%; width: 70px; height: 22px; background: rgba(246,196,83,.75); transform: rotate(-4deg); }
.moment:nth-child(3n+2)::before { content: ""; position: absolute; top: -10px; inset-inline-start: 38%; width: 70px; height: 22px; background: rgba(127,209,185,.75); transform: rotate(3deg); }
.page-photo { margin-block: 0 28px; }
.page-photo img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); }
