/* =====================================================================
   Search Engine Optimization — The Journal of Search
   Design: editorial newsprint × open sky. Day (paper) / Night (stars).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f5efe3; --paper-2: #ebe2cf; --paper-3: #fffaf0;
  --ink: #12172c; --ink-2: #363c5a; --muted: #6c6f84;
  --line: rgba(18, 23, 44, .14); --rule: #12172c;
  --sky-a: #fff1dc; --sky-b: #ffd2b0; --sky-c: #ffa98f; --sky-d: #a9cfff; --sky-e: #4f74ff;
  --accent: #ff4d2d; --accent-ink: #fff; --blue: #2f55ff; --gold: #f2b134; --green: #19a974; --wa: #1fae5b;
  --cloud: #ffffff; --cloud-2: #fff7ee;
  --card: #fffaf1; --shadow: 0 1px 0 rgba(18,23,44,.08), 0 18px 40px -22px rgba(18,23,44,.35);
  --radius: 18px; --radius-sm: 10px;
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1240px;
  color-scheme: light;
}
[dir="rtl"] {
  --f-display: "Amiri", "Fraunces", serif;
  --f-body: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
}
[data-theme="dark"] {
  --paper: #0a0f24; --paper-2: #111938; --paper-3: #0d1430;
  --ink: #f3ecdc; --ink-2: #c9c4d8; --muted: #9298b5;
  --line: rgba(243, 236, 220, .14); --rule: #f3ecdc;
  --sky-a: #070b1d; --sky-b: #0e1640; --sky-c: #1d2466; --sky-d: #3b2f7a; --sky-e: #6f4bb8;
  --cloud: #1b2350; --cloud-2: #141b40;
  --card: #10183a; --shadow: 0 1px 0 rgba(0,0,0,.4), 0 24px 50px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  overflow-x: hidden;
}
[dir="rtl"] body { font-size: 18px; line-height: 1.85; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-optical-sizing: auto; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 999; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 32px, 1440px); }

/* Paper grain overlay (subtle texture) */
.grain { position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .05; }
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 400; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--blue)); }
[dir="rtl"] .progress span { transform-origin: right; }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.99); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
.page-enter { animation: page-in .8s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }
body.is-leaving main { opacity: 0; transform: translateY(-10px); transition: .3s var(--ease); }

/* ---------- Masthead ---------- */
.masthead { position: relative; z-index: 50; background: var(--paper); transition: background-color .6s var(--ease); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); }
[dir="rtl"] .topbar { letter-spacing: 0; font-size: 13.5px; }
.topbar__issue b { font-family: var(--f-mono); font-weight: 500; }
.topbar__edition { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 15px; }
.topbar__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: transform .4s var(--ease-spring), background .3s; }
.icon-btn:hover { transform: rotate(25deg) scale(1.08); background: var(--paper-2); }
.icon-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { display: none !important; }
[data-theme="dark"] .i-sun { display: none !important; }
[data-theme="dark"] .i-moon { display: block !important; fill: currentColor; }
.lang-switch { padding: 6px 14px; border: 1px solid var(--ink); border-radius: 99px; text-decoration: none; font-weight: 700; text-transform: none; letter-spacing: 0; transition: .3s var(--ease); }
.lang-switch:hover { background: var(--ink); color: var(--paper); }
.lang-switch:lang(ar) { font-family: "IBM Plex Sans Arabic", "Amiri", sans-serif; }

.brandrow { display: flex; justify-content: center; padding: 26px 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
.brand__mark { width: 64px; height: 64px; transition: transform .8s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-12deg) translateY(-4px); }
.brand__word { display: grid; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4.6vw, 58px); line-height: .95; letter-spacing: -.035em; font-variation-settings: "opsz" 144; }
[dir="rtl"] .brand__name { letter-spacing: 0; font-weight: 700; line-height: 1.2; }
.brand__note { font-family: var(--f-display); font-style: italic; color: var(--muted); font-size: clamp(13px, 1.4vw, 17px); margin-top: 6px; }

.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-block: 3px double var(--rule); transition: background-color .6s var(--ease), box-shadow .4s; }
.nav.is-stuck { box-shadow: 0 10px 30px -20px rgba(0,0,0,.4); }
.nav__inner { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.nav__mini { width: 0; opacity: 0; overflow: hidden; transition: .5s var(--ease); flex: none; }
.nav.is-stuck .nav__mini { width: 28px; opacity: 1; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center; }
.nav__list a { position: relative; display: block; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.nav__list a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: var(--from, left); transition: transform .45s var(--ease); }
[dir="rtl"] .nav__list a::after { --from: right; }
.nav__list a:hover::after, .nav__list a[aria-current]::after { transform: scaleX(1); }
.nav__search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding-inline: 14px 4px; background: var(--paper-3); transition: .4s var(--ease); width: 220px; }
.nav__search:focus-within { width: 300px; border-color: var(--ink); }
.nav__search input { border: 0; background: transparent; outline: 0; padding: 8px 0; min-width: 0; flex: 1; font-size: 14px; }
.nav__search button { border: 0; background: var(--ink); color: var(--paper); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.nav__search svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 10px; height: 2px; background: var(--ink); transition: .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons & small things ---------- */
.btn { --bg: var(--ink); --fg: var(--paper); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 99px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg); font-weight: 700; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--accent), var(--gold)); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { box-shadow: 0 14px 30px -14px var(--accent); color: #fff; }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(4px); }
[dir="rtl"] .btn i { transform: scaleX(-1); }
[dir="rtl"] .btn:hover i { transform: scaleX(-1) translateX(4px); }
.btn svg { width: 18px; fill: currentColor; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); padding: 12px 22px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--wa { --bg: var(--wa); --fg: #fff; border-color: var(--wa); font-size: 17px; padding: 18px 30px; }
.btn--wa svg { width: 24px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
[dir="rtl"] .kicker { font-family: var(--f-body); letter-spacing: 0; font-size: 15px; }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.kicker .dot { display: none; }
.tag { --c: var(--blue); display: inline-block; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-size: 12.5px; font-weight: 700; text-decoration: none; }
[data-theme="dark"] .tag { background: color-mix(in srgb, var(--c) 26%, transparent); color: color-mix(in srgb, var(--c) 45%, #fff); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 14.5px; }
.arrow-link i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.arrow-link:hover i { transform: translateX(6px); }
[dir="rtl"] .arrow-link i { transform: scaleX(-1); }
[dir="rtl"] .arrow-link:hover i { transform: scaleX(-1) translateX(6px); }

/* =====================================================================
   HERO — the sky
   ===================================================================== */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 56px 0 170px;
  background: linear-gradient(180deg, var(--sky-e) -30%, var(--sky-d) 20%, var(--sky-c) 55%, var(--sky-b) 78%, var(--sky-a) 100%); }
[data-theme="dark"] .hero { background: radial-gradient(120% 80% at 70% 0%, var(--sky-e) 0%, transparent 55%), linear-gradient(180deg, var(--sky-a), var(--sky-b) 40%, var(--sky-c) 80%, var(--sky-d)); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky__sun { position: absolute; top: 14%; inset-inline-end: 12%; width: clamp(140px, 18vw, 260px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6d8, #ffd27a 45%, #ff8e5e 100%); box-shadow: 0 0 80px 30px rgba(255, 196, 120, .55), 0 0 200px 80px rgba(255, 160, 110, .3);
  display: grid; place-items: center; animation: sun-rise 2.4s var(--ease) both, sun-breathe 6s 2.4s ease-in-out infinite; }
.sky__sun span { font: 800 clamp(40px, 6vw, 86px)/1 var(--f-display); color: rgba(120, 40, 10, .25); font-style: italic; }
[data-theme="dark"] .sky__sun { background: radial-gradient(circle at 35% 30%, #fffdf3, #e9e4ff 50%, #b9b3e6 100%); box-shadow: 0 0 60px 20px rgba(200, 190, 255, .35), 0 0 180px 60px rgba(140, 120, 255, .18); }
[data-theme="dark"] .sky__sun span { color: rgba(60, 50, 120, .25); }
@keyframes sun-rise { from { transform: translateY(160px) scale(.8); opacity: 0; } }
@keyframes sun-breathe { 50% { transform: scale(1.04); } }
.sky__clouds { position: absolute; inset-inline: -5%; width: 110%; bottom: -2px; height: 46%; fill: var(--cloud); will-change: transform; }
.sky__clouds.layer-back { opacity: .45; bottom: 18%; height: 30%; animation: drift 60s linear infinite alternate; }
.sky__clouds.layer-mid { opacity: .75; bottom: 6%; height: 36%; fill: var(--cloud-2); animation: drift 40s linear infinite alternate-reverse; }
.sky__clouds.layer-front { fill: var(--paper); height: 30%; }
@keyframes drift { to { translate: -4% 0; } }
.sky__trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sky__trail path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.plane { position: absolute; top: 0; left: 0; width: 64px; height: 64px; will-change: transform; filter: drop-shadow(0 12px 14px rgba(20, 30, 80, .35)); }
.plane svg { width: 100%; height: 100%; }
.plane__body { fill: #fff; stroke: #12172c; stroke-width: 1.4; stroke-linejoin: round; }
.plane__fold { fill: #dfe6ff; stroke: #12172c; stroke-width: 1.4; stroke-linejoin: round; }

.hero__inner { position: relative; }
.hero__kicker { color: var(--ink); background: rgba(255,255,255,.55); padding: 9px 16px; border-radius: 99px; backdrop-filter: blur(8px); }
[data-theme="dark"] .hero__kicker { background: rgba(255,255,255,.08); color: var(--ink); }
.hero__kicker::before { display: none; }
.hero__kicker .dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(25,169,116,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(25,169,116,0); } 100% { box-shadow: 0 0 0 0 rgba(25,169,116,0); } }
.hero__title { font-size: clamp(44px, 6.4vw, 100px); font-weight: 800; line-height: .92; letter-spacing: -.045em; margin: 10px 0 26px; max-width: 13ch; color: #12172c; font-variation-settings: "opsz" 144; }
[data-theme="dark"] .hero__title { color: var(--ink); }
[dir="rtl"] .hero__title { line-height: 1.3; letter-spacing: 0; font-size: clamp(42px, 6.2vw, 96px); max-width: 14ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > * { display: inline-block; animation: line-up 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > * { animation-delay: .12s; }
.hero__title .line:nth-child(3) > * { animation-delay: .24s; }
@keyframes line-up { from { transform: translateY(110%) rotate(3deg); } }
.sky-text { font-style: italic; font-weight: 400; background: linear-gradient(100deg, #1f3bff 0%, #6f4bb8 35%, var(--accent) 65%, #e58a00 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: line-up 1.1s .12s var(--ease) both, shimmer 6s 1.2s ease-in-out infinite; padding-inline-end: .1em; }
[data-theme="dark"] .sky-text { background-image: linear-gradient(100deg, #fff 0%, #ffd27a 40%, #ff8e5e 70%, #fff 100%); }
@keyframes shimmer { 50% { background-position: 100% 0; } }
.hero__text { font-size: clamp(17px, 1.6vw, 21px); max-width: 560px; color: #23294a; animation: fade-up 1s .5s var(--ease) both; }
[data-theme="dark"] .hero__text { color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 46px; animation: fade-up 1s .65s var(--ease) both; }
.hero .btn--ghost { --fg: #12172c; border-color: #12172c; background: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
[data-theme="dark"] .hero .btn--ghost { --fg: var(--ink); border-color: var(--ink); background: rgba(255,255,255,.05); }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 40px; margin: 0; justify-content: start; animation: fade-up 1s .8s var(--ease) both; }
.stats div { border-inline-start: 2px solid rgba(18,23,44,.8); padding-inline-start: 14px; }
[data-theme="dark"] .stats div { border-color: var(--ink); }
.stats dd { margin: 0; font: 800 clamp(30px, 3.6vw, 48px)/1 var(--f-display); color: #12172c; order: -1; }
[data-theme="dark"] .stats dd { color: var(--ink); }
.stats dt { font-size: 13px; font-weight: 600; color: #2b3152; }
[data-theme="dark"] .stats dt { color: var(--ink-2); }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }

.serp-float { position: absolute; inset-inline-end: 6%; bottom: 22%; width: 330px; margin: 0; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -30px rgba(20,30,90,.6);
  transform: rotate(-4deg); animation: float 7s ease-in-out infinite, fade-up 1.2s 1s var(--ease) both; color: #12172c; font-size: 12px; }
[dir="rtl"] .serp-float { transform: rotate(4deg); }
[data-theme="dark"] .serp-float { background: rgba(16, 24, 58, .8); color: var(--ink); }
.serp-float__bar { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.serp-float__bar span { width: 9px; height: 9px; border-radius: 50%; background: #ff6159; }
.serp-float__bar span:nth-child(2) { background: #ffbd2e; } .serp-float__bar span:nth-child(3) { background: #28c941; }
.serp-float__bar b { margin-inline-start: 8px; font: 500 11px var(--f-mono); opacity: .7; direction: ltr; }
.serp-float__res { position: relative; display: grid; padding: 9px 10px; border-radius: 10px; opacity: .45; }
.serp-float__res small { color: var(--green); }
.serp-float__res strong { color: #1a3cff; font-size: 14px; font-family: var(--f-body); }
[data-theme="dark"] .serp-float__res strong { color: #9fb2ff; }
.serp-float__res.is-you { opacity: 1; background: linear-gradient(90deg, rgba(255,77,45,.12), rgba(242,177,52,.12)); outline: 1.5px solid var(--accent); }
.serp-float__res i { color: var(--gold); font-style: normal; letter-spacing: 2px; }
.serp-float__res em { position: absolute; inset-inline-end: 10px; top: 50%; translate: 0 -50%; font: 800 26px var(--f-display); color: var(--accent); font-style: italic; }
@keyframes float { 50% { translate: 0 -14px; } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--rule); background: var(--ink); color: var(--paper); padding: 14px 0; }
.ticker__track { display: flex; gap: 28px; width: max-content; animation: ticker 50s linear infinite; font: 500 italic 22px var(--f-display); white-space: nowrap; }
[dir="rtl"] .ticker__track { animation-name: ticker-rtl; font-style: normal; }
.ticker b { color: var(--gold); font-style: normal; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section.wrap { padding-inline: 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.section__head .kicker { margin: 0; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; border: 0; }
.section__title { font-size: clamp(34px, 5vw, 66px); max-width: 18ch; margin: 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .section__head { border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.section--ink .card { background: color-mix(in srgb, var(--paper) 6%, var(--ink)); color: var(--paper); border-color: color-mix(in srgb, var(--paper) 14%, transparent); }
.section--ink .card__excerpt, .section--ink .card__meta { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* ---------- Front page (journal) ---------- */
.frontpage { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; }
.cover-story { display: grid; gap: 22px; align-content: start; padding-inline-end: 40px; border-inline-end: 1px solid var(--line); }
.cover-story__media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1200/630; background: var(--paper-2); }
.cover-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cover-story:hover .cover-story__media img { transform: scale(1.05); }
.badge { position: absolute; top: 16px; inset-inline-start: 16px; background: var(--accent); color: #fff; font: 700 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; }
[dir="rtl"] .badge { font-family: var(--f-body); letter-spacing: 0; font-size: 13px; }
.cover-story__title { font-size: clamp(30px, 3.8vw, 52px); margin: 6px 0 14px; }
.cover-story__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); }
[dir="rtl"] .cover-story__title a { background-position: 100% 100%; }
.cover-story__title a:hover { background-size: 100% 2px; }
.cover-story__lead { font-size: 18.5px; color: var(--ink-2); }
.dropcap::first-letter { float: inline-start; font: 800 4.2em/.8 var(--f-display); margin: .08em .1em 0 0; color: var(--accent); }
[dir="rtl"] .dropcap::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
.columns { display: grid; gap: 28px; align-content: start; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), background-color .6s; transform-style: preserve-3d; }
.card:hover { box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 30px 60px -28px rgba(18,23,44,.55); }
.card__media { position: relative; display: block; aspect-ratio: 1200/630; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 1s; }
.card:hover .card__media img { transform: scale(1.07); }
.play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .5s var(--ease-spring); }
.play svg { width: 26px; fill: #12172c; margin-inline-start: 4px; }
[dir="rtl"] .play svg { transform: scaleX(-1); margin: 0 4px 0 0; }
.card:hover .play { transform: scale(1.15); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); margin: 0; }
.card__title { font-size: 23px; margin: 0; line-height: 1.18; }
[dir="rtl"] .card__title { font-size: 25px; line-height: 1.45; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt { color: var(--ink-2); font-size: 15.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.card__foot .arrow-link { color: var(--ink); position: relative; z-index: 2; }
.section--ink .card__foot .arrow-link { color: var(--paper); }
.card a.tag { position: relative; z-index: 2; }
.card--compact { flex-direction: row; box-shadow: none; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding-bottom: 22px; }
.card--compact .card__media { width: 132px; flex: none; aspect-ratio: 1; border-radius: 12px; }
.card--compact .card__body { padding: 0 18px; }
.card--compact .card__title { font-size: 19px; }
[dir="rtl"] .card--compact .card__title { font-size: 21px; }
.card--compact .card__foot { border: 0; padding: 0; }
.card--wide { grid-column: span 2; flex-direction: row; }
.card--wide .card__media { width: 58%; aspect-ratio: auto; flex: none; }
.card--wide .card__title { font-size: 34px; }
.card--wide .card__body { padding: 32px; justify-content: center; }

/* ---------- Flight path ---------- */
.flight { position: relative; background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--sky-d) 30%, var(--paper)) 60%, var(--paper)); overflow: hidden; }
.altitudes { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: end; counter-reset: alt; }
.alt { position: relative; padding: 28px 24px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: calc(var(--i) * 46px); }
.alt::before { content: ""; position: absolute; inset-inline-start: -22px; bottom: 30px; width: 22px; border-top: 2px dashed var(--accent); }
.alt:first-child::before { display: none; }
.alt__num { font: 800 54px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.alt__ft { position: absolute; top: 22px; inset-inline-end: 20px; font: 500 12px var(--f-mono); color: var(--accent); }
.alt h3 { font-size: 26px; margin: 14px 0 8px; }
.alt p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ---------- Features & topics ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--rule); }
.feature { padding: 34px 26px; border-inline-end: 1px solid var(--line); transition: background .5s var(--ease); }
.feature:last-child { border: 0; }
.feature:hover { background: var(--paper-2); }
.feature__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--paper-2); font-size: 28px; margin-bottom: 20px; transition: transform .6s var(--ease-spring); }
.feature:hover .feature__icon { transform: rotate(-10deg) scale(1.1); background: var(--card); }
.feature h3 { font-size: 24px; }
.feature p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 12px; }
.topic { --c: var(--blue); display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 99px; border: 1.5px solid var(--ink); text-decoration: none; font-family: var(--f-display); font-size: 22px; transition: .45s var(--ease); }
.topic span { font: 600 12px var(--f-mono); background: var(--c); color: #fff; border-radius: 99px; padding: 4px 9px; }
.topic:hover { background: var(--c); color: #fff; border-color: var(--c); transform: translateY(-4px) rotate(-1.5deg); }
.topic:hover span { background: #fff; color: var(--c); }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; margin: 20px 0 clamp(60px, 9vw, 110px); padding: clamp(36px, 6vw, 70px); border-radius: 28px; text-align: center; overflow: hidden; color: #12172c;
  background: radial-gradient(circle at 20% 120%, rgba(255,255,255,.7), transparent 50%), linear-gradient(135deg, #a9cfff, #ffd2b0 60%, #ffa98f); }
[data-theme="dark"] .newsletter { color: var(--ink); background: radial-gradient(circle at 80% -20%, #6f4bb8, transparent 50%), linear-gradient(135deg, #111938, #1d2466); }
.newsletter h2 { font-size: clamp(30px, 4.4vw, 54px); }
.newsletter p { max-width: 520px; margin: 0 auto 28px; font-size: 18px; }
.newsletter__plane { position: absolute; top: 24px; inset-inline-start: -80px; width: 70px; animation: across 12s linear infinite; }
.newsletter__plane svg { fill: #fff; stroke: #12172c; stroke-width: 1.5; stroke-linejoin: round; }
@keyframes across { 0% { transform: translate(0, 40px) rotate(-8deg); } 100% { transform: translate(110vw, -20px) rotate(4deg); } }
[dir="rtl"] .newsletter__plane { animation-name: across-rtl; } [dir="rtl"] .newsletter__plane svg { transform: scaleX(-1); }
@keyframes across-rtl { 0% { transform: translate(0, 40px) rotate(8deg); } 100% { transform: translate(-110vw, -20px) rotate(-4deg); } }
.sub-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; background: rgba(255,255,255,.75); padding: 7px; border-radius: 99px; }
[data-theme="dark"] .sub-form { background: rgba(255,255,255,.08); }
.sub-form input { flex: 1; border: 0; background: transparent; padding: 0 18px; outline: 0; min-width: 0; }

/* ---------- Page hero ---------- */
.phero { position: relative; overflow: hidden; padding: 70px 0 60px; isolation: isolate; border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky-d) 55%, var(--paper)), var(--paper)); }
.phero__sky { position: absolute; inset: 0; z-index: -1; }
.phero__title { font-size: clamp(40px, 7vw, 96px); max-width: 16ch; margin: 0 0 16px; }
.phero__text { font-size: 19px; color: var(--ink-2); max-width: 640px; margin: 0; }
.cloud { position: absolute; width: 220px; height: 70px; background: var(--cloud); border-radius: 99px; opacity: .7; filter: blur(1px); animation: cloud-move 38s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 110px; height: 110px; top: -50px; left: 30px; }
.cloud::after { width: 80px; height: 80px; top: -34px; left: 110px; }
.cloud.c1 { top: 22%; left: -240px; }
.cloud.c2 { top: 55%; left: -240px; transform: scale(.6); animation-duration: 52s; animation-delay: -20s; opacity: .5; }
.cloud.c3 { top: 10%; left: -240px; transform: scale(.4); animation-duration: 64s; animation-delay: -40s; opacity: .4; }
@keyframes cloud-move { to { left: 110%; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 13.5px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 6px; opacity: .5; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.crumbs li[aria-current] { color: var(--ink); max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chips a { --c: var(--ink); padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: .35s var(--ease); }
.chips a small { opacity: .6; font-family: var(--f-mono); }
.chips a:hover, .chips a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pager span { background: var(--ink); color: var(--paper); }
.pager a:hover { border-color: var(--ink); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); font-size: 20px; font-family: var(--f-display); font-style: italic; }

/* ---------- Article ---------- */
.article__head { padding: 50px 0 30px; max-width: 920px; }
.article__title { font-size: clamp(38px, 6vw, 76px); margin: 18px 0; }
.article__dek { font: 400 italic clamp(19px, 2vw, 24px)/1.5 var(--f-display); color: var(--ink-2); max-width: 760px; }
[dir="rtl"] .article__dek { font-style: normal; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.byline img { border-radius: 50%; background: var(--paper-2); padding: 4px; }
.byline div { display: grid; line-height: 1.4; }
.byline a { font-weight: 700; }
.byline small { color: var(--muted); }
.article__cover { margin: 10px auto 50px; }
.article__cover img { width: 100%; border-radius: 22px; aspect-ratio: 1200/630; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 60px; justify-content: center; padding-bottom: 40px; }
.article__layout:not(:has(.toc)) { grid-template-columns: minmax(0, 760px); }
.toc { position: sticky; top: 90px; align-self: start; font-size: 14.5px; }
.toc summary { font: 600 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); cursor: pointer; margin-bottom: 14px; list-style: none; }
[dir="rtl"] .toc summary { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 16px; text-decoration: none; color: var(--muted); border-inline-start: 2px solid transparent; margin-inline-start: -2px; transition: .3s; }
[dir="rtl"] .toc li a { padding: 6px 16px 6px 0; }
.toc li.lv3 a { padding-inline-start: 30px; font-size: 13.5px; }
.toc li a:hover, .toc li a.is-active { color: var(--ink); border-color: var(--accent); }

.prose { font-size: 19px; line-height: 1.78; }
[dir="rtl"] .prose { font-size: 20px; line-height: 1.95; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose--dropcap > p:first-of-type::first-letter { float: inline-start; font: 800 4.4em/.78 var(--f-display); margin: .06em .1em 0 0; color: var(--accent); }
[dir="rtl"] .prose--dropcap > p:first-of-type::first-letter { float: none; font: inherit; margin: 0; color: inherit; }
.prose h2 { font-size: clamp(28px, 3.2vw, 40px); margin-top: 2em; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 1.6em; }
.prose a { color: var(--blue); text-decoration-thickness: 1.5px; }
[data-theme="dark"] .prose a { color: #9fb2ff; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin: 1.8em 0; padding: 6px 0 6px 28px; border-inline-start: 4px solid var(--accent); font: 400 italic 1.25em/1.5 var(--f-display); color: var(--ink); }
[dir="rtl"] .prose blockquote { padding: 6px 28px 6px 0; font-style: normal; }
.prose img { border-radius: 16px; margin-inline: auto; }
.prose figure { margin: 2em 0; } .prose figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose code { font-family: var(--f-mono); font-size: .85em; background: var(--paper-2); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--ink); color: var(--paper); padding: 22px; border-radius: 14px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; direction: ltr; text-align: left; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.prose th { font-family: var(--f-display); font-size: 17px; border-bottom: 2px solid var(--rule); }
.prose .callout { padding: 22px 24px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 16%, var(--paper)); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); font-size: 17px; }
.prose .callout strong:first-child { display: block; font-family: var(--f-display); font-size: 20px; margin-bottom: 4px; }
.prose hr { border: 0; text-align: center; margin: 2.4em 0; } .prose hr::before { content: "✦ ✦ ✦"; color: var(--accent); letter-spacing: 1em; }
.faq { margin-top: 3em; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 21px/1.35 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-family: var(--f-body); font-size: 26px; line-height: 1; transition: transform .4s var(--ease); color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-top: 12px; color: var(--ink-2); font-size: 17.5px; animation: fade-up .5s var(--ease); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3em; padding-top: 24px; border-top: 3px double var(--rule); font-size: 14.5px; }
.share span { font-weight: 700; margin-inline-end: 6px; }
.share a, .share button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; text-decoration: none; cursor: pointer; font-weight: 600; transition: .3s; color: var(--ink) !important; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--paper) !important; }
.kw-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.kw-tags a { color: var(--muted) !important; text-decoration: none; }
.kw-tags a:hover { color: var(--accent) !important; }
.preview-bar { position: sticky; top: 61px; z-index: 40; background: var(--gold); color: #12172c; text-align: center; font-weight: 700; padding: 8px; }

/* ---------- Video player ---------- */
.player { position: relative; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.player img, .player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45)); pointer-events: none; transition: opacity .5s; }
.player.is-playing::after { opacity: 0; }
.player__btn { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: pulse 2.4s infinite; }
.player__btn svg { width: 38px; fill: #12172c; margin-inline-start: 6px; }
[dir="rtl"] .player__btn svg { transform: scaleX(-1); margin: 0 6px 0 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.player__soon { position: absolute; bottom: 24px; inset-inline-start: 24px; z-index: 2; background: rgba(255,255,255,.9); color: #12172c; padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.video-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: center; margin-bottom: 60px; }
.video-feature h2 { font-size: clamp(30px, 3.4vw, 46px); }
.video-feature h2 a { text-decoration: none; }
.video-feature p { color: var(--ink-2); }

/* ---------- Contact & forms ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ccard { display: grid; gap: 4px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: transform .5s var(--ease); min-width: 0; }
.ccard span { font-size: 30px; margin-bottom: 8px; }
.ccard strong { font-family: var(--f-display); font-size: 20px; }
.ccard bdi { color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 14.5px; }
.form input, .form textarea, .big-search input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); transition: border-color .3s, box-shadow .3s; outline: 0; }
.form input:focus, .form textarea:focus, .big-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 12px; font-weight: 600; margin: 0; }
.alert--ok { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.alert--bad { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.big-search { display: flex; gap: 10px; max-width: 700px; margin: 0 auto 50px; }

/* ---------- 404 ---------- */
.lost { position: relative; overflow: hidden; text-align: center; padding: 80px 0 100px; background: linear-gradient(180deg, color-mix(in srgb, var(--sky-d) 60%, var(--paper)), var(--paper)); }
.lost__sky { position: absolute; inset: 0; }
.lost__inner { position: relative; }
.lost__code { font: 800 clamp(120px, 24vw, 300px)/1 var(--f-display); margin: 0; display: flex; justify-content: center; align-items: center; letter-spacing: -.04em; direction: ltr; }
.lost__plane { display: inline-block; width: .8em; animation: lost 4s ease-in-out infinite; }
.lost__plane svg { fill: #fff; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
@keyframes lost { 0%,100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(14deg) translateY(-24px); } }
.lost h1 { font-size: clamp(36px, 5vw, 64px); }
.lost .big-search { margin: 30px auto 20px; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--accent); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255,255,255,.06) 22px 44px); }
.cta-band__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(28px, 3.6vw, 46px); margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 18px; opacity: .92; }
.footer { position: relative; background: var(--ink); color: color-mix(in srgb, var(--paper) 78%, transparent); padding: 90px 0 30px; }
.footer__horizon { position: absolute; top: -1px; left: 0; width: 100%; height: 60px; fill: var(--accent); transform: scaleY(-1); }
.footer a { text-decoration: none; } .footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h3 { color: var(--paper); font-size: 20px; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.brand--footer { color: var(--paper); gap: 12px; margin-bottom: 18px; }
.brand--footer .brand__name { font-size: 26px; }
.footer p { font-size: 15px; max-width: 380px; }
.mini-sub { display: flex; gap: 8px; max-width: 380px; }
.mini-sub input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); background: transparent; color: var(--paper); }
.footer .btn { --bg: var(--paper); --fg: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a { padding: 6px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); font-size: 13px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent); font-size: 13.5px; }
[data-theme="dark"] .footer { background: #050816; color: #b7b3c7; }
[data-theme="dark"] .footer h3, [data-theme="dark"] .brand--footer { color: #f3ecdc; }
[data-theme="dark"] .section--ink { background: #050816; color: #f3ecdc; }
[data-theme="dark"] .ticker { background: #050816; color: #f3ecdc; }

.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(31,174,91,.7); animation: pop 1s 1.5s var(--ease-spring) both; }
.wa-float svg { width: 32px; fill: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }
@keyframes pop { from { transform: scale(0) rotate(-90deg); } }
.toast { position: fixed; bottom: 96px; left: 50%; z-index: 500; translate: -50% 30px; opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 14px; font-weight: 600; transition: .5s var(--ease); max-width: calc(100% - 40px); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--d) * 45ms); }
.split.is-in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .serp-float { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .altitudes { grid-template-columns: repeat(2, 1fr); }
  .alt { margin-bottom: 0; } .alt::before { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-inline-end: 0; } .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article__layout { grid-template-columns: minmax(0, 760px); }
  .toc { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
}
@media (max-width: 900px) {
  .frontpage, .video-feature, .contact { grid-template-columns: 1fr; }
  .cover-story { padding: 0; border: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: auto; flex-direction: column; } .card--wide .card__media { width: 100%; aspect-ratio: 1200/630; } .card--wide .card__body { padding: 20px 22px; } .card--wide .card__title { font-size: 24px; }
  .burger { display: block; margin-inline-start: auto; }
  .nav__search { order: 2; width: auto; flex: 1; } .nav__search:focus-within { width: auto; }
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav__list { position: fixed; inset: 0; top: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: var(--paper); clip-path: circle(0 at calc(100% - 40px) 30px); transition: clip-path .8s var(--ease); }
  [dir="rtl"] .nav__list { clip-path: circle(0 at 40px 30px); }
  .nav__list.is-open { clip-path: circle(150% at calc(100% - 40px) 30px); }
  [dir="rtl"] .nav__list.is-open { clip-path: circle(150% at 40px 30px); }
  .nav__list a { font: 600 clamp(32px, 8vw, 48px)/1.2 var(--f-display); }
  .nav__list a::after { bottom: 0; }
  .nav__inner { flex-wrap: nowrap; }
  .burger { order: 3; z-index: 2; }
  .topbar__edition { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__mark { width: 46px; height: 46px; }
  .brandrow { padding: 18px 0 14px; }
  .brand__note { display: none; }
  .hero { min-height: auto; padding: 40px 0 140px; }
  .sky__sun { top: 3%; inset-inline-end: -30px; width: 120px; opacity: .85; }
  .sky__sun span { font-size: 30px; }
  .stats { grid-template-columns: repeat(2, auto); gap: 18px 30px; }
  .plane { width: 44px; height: 44px; }
  .grid--3, .grid--4, .altitudes, .features, .footer__grid, .form__row, .contact__cards { grid-template-columns: 1fr; }
  .feature { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .card--compact .card__media { width: 96px; }
  .prose { font-size: 17.5px; } [dir="rtl"] .prose { font-size: 18.5px; }
  .sub-form, .big-search { flex-direction: column; border-radius: 20px; }
  .sub-form input { padding: 12px 14px; }
  .topbar__issue time { display: none; }
  .cta-band__inner .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .grain { display: none; }
}
@media print {
  .masthead .nav, .topbar, .cta-band, .footer, .wa-float, .share, .toc, .grain, .progress, .newsletter { display: none !important; }
  body { background: #fff; color: #000; }
}
