/*
Theme Name: Blatterfly
Theme URI: https://blatterfly.com
Author: Sinju · Yamzman·Morro
Author URI: https://blatterfly.com
Description: Blatterfly — a Moroccan branding studio + editorial journal. Bilingual (AR/EN), modernist glass + gradient aesthetic, hexagon DNA, butterfly metamorphosis system. Builds on the Morold v2.4 backend (yz_column, yz_edition CPTs + bilingual meta).
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blatterfly
Tags: editorial, magazine, agency, rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ====================================================================
   Blatterfly · Tokens, type, hexagon DNA, glassmorphism
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
  /* Surfaces */
  --paper: #FFFFFF;
  --halo:  #F3EFFE;
  --ink:   #2D1F4E;
  --ink-2: #1c1233;
  --char:  #4A4A4A;

  /* Accents */
  --gold:    #D9AD71;
  --gold-2:  #c1965a;
  --orchid:  #9465F0;
  --orchid-2:#7c4dd9;
  --lilac:   #b89af8;

  /* Type stacks — brand-locked from BLF v1.0 */
  --en-display: 'Futura PT Heavy', 'Futura Heavy', 'Futura PT', 'Futura', 'Trebuchet MS', 'Helvetica Neue', sans-serif;
  --ar:         'OoredooArabic', 'Ooredoo Arabic', 'Tajawal', 'Cairo', 'Segoe UI Arabic', sans-serif;
  --mono:       'Arial Rounded MT Bold', 'Arial Rounded MT', 'Helvetica Rounded', 'Nunito', Arial, sans-serif;

  /* Geometry */
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1320px;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;

  /* Safe zones */
  --header-h: 104px;
  --header-safe: 140px;
  --footer-safe: 80px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--en-display);
  font-weight: 500;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang^="ar"] body, body.rtl { font-family: var(--ar); }

/* ------------------ Hexagon pattern (DNA) ------------------ */
.hex-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hex-bg svg { width: 100%; height: 100%; display: block; }

/* ------------------ Layout primitives ------------------ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
section.blf-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: color-mix(in oklab, currentColor 65%, transparent);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.num { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Pill buttons */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--en-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s;
  cursor: pointer;
  border: 0;
}
.pill-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #efc88a 100%);
  color: var(--ink);
  box-shadow: 0 12px 32px -12px rgba(217,173,113,.55), inset 0 0 0 1px rgba(255,255,255,.4);
}
.pill-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(217,173,113,.7); }
.pill-ghost {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, currentColor 35%, transparent);
}
.pill-ghost:hover { background: color-mix(in oklab, currentColor 8%, transparent); }
.pill .arr { display: inline-block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.pill:hover .arr { transform: translateX(4px); }
[dir="rtl"] .pill:hover .arr { transform: translateX(-4px); }

/* Headings */
.h-display {
  font-family: var(--en-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-ar {
  font-family: var(--ar);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.h-sub {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.55;
  color: color-mix(in oklab, currentColor 75%, transparent);
  max-width: 56ch;
}
.divider-gold { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 0; }

/* Glass cards */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
}
.glass-light {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  border: 1px solid rgba(45,31,78,0.06);
  border-radius: var(--r-lg);
}

/* ====================================================================
   S0 — Cover strip
   ==================================================================== */
.s0 { background: var(--ink); color: var(--halo); border-bottom: 1px solid rgba(255,255,255,.06); }
.s0 .row { display: flex; align-items: center; justify-content: space-between; height: 44px; gap: 16px; }
.s0 .issue { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in oklab, var(--halo) 75%, transparent); }
.s0 .issue b { color: var(--gold); font-weight: 700; }
.s0 .links { display: flex; gap: 22px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.s0 .links a { color: inherit; text-decoration: none; opacity: .8; transition: opacity .2s; }
.s0 .links a:hover { opacity: 1; color: var(--gold); }
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: inherit;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.lang-toggle .on { color: var(--gold); } .lang-toggle .off { opacity: .5; }

/* ====================================================================
   NAV
   ==================================================================== */
.nav-wrap {
  position: absolute;
  top: 28px;
  inset-inline: 0;
  z-index: 5;
  padding-inline: var(--gutter);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.10);
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav .brand { display: flex; align-items: center; gap: 12px; color: var(--halo); text-decoration: none; }
.nav .brand .mark { width: 34px; height: 34px; display: block; }
.nav .brand .name { font-family: var(--en-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-menu a:hover { color: var(--gold); }
.nav .cta { padding: 9px 18px; font-size: 13px; }

/* ====================================================================
   S1 — Hero
   ==================================================================== */
.s1 {
  min-height: 100vh;
  background: var(--ink);
  color: var(--halo);
  display: flex;
  align-items: center;
  padding: calc(var(--header-safe) + 60px) 0 120px;
}
.s1 .glow-a, .s1 .glow-b, .s1 .glow-c { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(120px); z-index: 0; }
.s1 .glow-a { width: 700px; height: 700px; background: radial-gradient(circle, rgba(148,101,240,.45), transparent 65%); top: -200px; right: -150px; }
.s1 .glow-b { width: 520px; height: 520px; background: radial-gradient(circle, rgba(217,173,113,.28), transparent 70%); bottom: -120px; left: -100px; }
.s1 .glow-c { width: 320px; height: 320px; background: radial-gradient(circle, rgba(184,154,248,.35), transparent 70%); top: 30%; left: 35%; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero-l { display: flex; flex-direction: column; gap: 30px; }
.hero-pair { display: flex; flex-direction: column; gap: 18px; }
.hero-ar {
  font-family: var(--ar);
  font-weight: 900;
  font-size: clamp(48px, 6.5vw, 108px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--paper);
  direction: rtl;
  text-align: start;
  margin: 0;
}
.hero-en {
  font-family: var(--en-display);
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: color-mix(in oklab, var(--halo) 88%, transparent);
  margin: 0;
}
.hero-en em, .hero-ar em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-sub { font-size: 19px; line-height: 1.55; color: color-mix(in oklab, var(--halo) 75%, transparent); max-width: 38ch; margin: 0; }
.hero-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-r { position: relative; aspect-ratio: 1 / 1.05; display: flex; align-items: center; justify-content: center; }
.hero-art {
  position: relative; width: 100%; height: 100%;
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, rgba(148,101,240,.28), rgba(217,173,113,.1) 60%, rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.55);
}
.hero-butterfly {
  width: 64%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(148,101,240,.55));
  animation: hover 7s ease-in-out infinite;
}
@keyframes hover {
  0%, 100% { transform: translateY(-6px) rotate(-1deg); }
  50%      { transform: translateY(6px) rotate(1deg); }
}
.hero-tag {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(45,31,78,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217,173,113,.3);
  border-radius: 999px; padding: 7px 12px;
}
.hero-meta {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,.08);
}
.hero-meta .item .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in oklab, var(--halo) 60%, transparent); margin-bottom: 10px; }
.hero-meta .item .v { font-size: 16px; font-weight: 500; color: var(--halo); line-height: 1.4; }
.hero-meta .item .v .num { color: var(--gold); font-size: 32px; letter-spacing: -0.02em; display: block; margin-bottom: 4px; }

/* ====================================================================
   S2 — Manifesto
   ==================================================================== */
.s2 { background: var(--halo); color: var(--ink); padding: 140px 0; }
.s2-grid { display: grid; grid-template-columns: 0.4fr 0.6fr; gap: 60px; }
.s2-left { display: flex; flex-direction: column; gap: 22px; align-self: start; position: sticky; top: 80px; }
.s2-right { display: flex; flex-direction: column; gap: 28px; }
.s2-right p { font-size: 22px; line-height: 1.55; margin: 0; color: var(--ink); letter-spacing: -0.005em; }
.s2-right p.lead { font-size: 30px; line-height: 1.4; font-weight: 500; }
.s2-right p.ar { font-family: var(--ar); font-weight: 500; font-size: 24px; line-height: 1.8; color: color-mix(in oklab, var(--ink) 88%, transparent); direction: rtl; text-align: start; }
.s2-right p.pullquote { color: var(--orchid); font-style: italic; border-inline-start: 3px solid var(--gold); padding-inline-start: 24px; font-size: 24px; font-weight: 500; }
.s2-right p.pullquote.ar { font-style: normal; font-weight: 700; }
.s2-sig { display: flex; gap: 14px; align-items: center; margin-top: 20px; }
.s2-sig .avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--orchid), var(--gold)); display: grid; place-items: center; color: white; font-weight: 700; }
.s2-sig .name { font-weight: 600; font-size: 15px; }
.s2-sig .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: .65; }

/* ====================================================================
   S3 — Pillars
   ==================================================================== */
.s3 { background: var(--paper); color: var(--ink); padding: 140px 0; }
.s3-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: 64px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative;
  padding: 32px 30px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(243,239,254,.5), rgba(255,255,255,.6));
  border: 1px solid rgba(45,31,78,.08);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .3s;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.pillar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(148,101,240,.12), transparent 60%); opacity: 0; transition: opacity .4s; z-index: -1; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(148,101,240,.25); box-shadow: 0 30px 60px -30px rgba(45,31,78,.25); }
.pillar:hover::before { opacity: 1; }
.pillar .roman { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.pillar .roman::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217,173,113,.5), transparent); }
.pillar h3 { font-family: var(--en-display); font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 6px; }
.pillar h3.ar { font-family: var(--ar); font-weight: 900; font-size: 30px; line-height: 1.15; margin-bottom: 4px; direction: rtl; text-align: start; }
.pillar .pillar-en { font-family: var(--en-display); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; color: color-mix(in oklab, var(--ink) 60%, transparent); margin-bottom: 18px; }
.pillar p { font-size: 15px; line-height: 1.55; color: color-mix(in oklab, var(--ink) 70%, transparent); margin: 0 0 24px; }
.pillar .read { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orchid); text-decoration: none; }
.pillar .read .arr { transition: transform .3s; }
.pillar:hover .read .arr { transform: translateX(4px); }

/* ====================================================================
   S4 — Method
   ==================================================================== */
.s4 { background: var(--ink); color: var(--halo); padding: 160px 0; position: relative; }
.s4 .glow { position: absolute; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, rgba(148,101,240,.25), transparent 65%); top: 50%; left: 50%; transform: translate(-50%,-50%); filter: blur(100px); z-index: 0; }
.s4-head { text-align: center; max-width: 720px; margin: 0 auto 80px; }
.s4-head .h-display, .s4-head .h-ar { color: var(--paper); }
.s4-head .h-display em { color: var(--gold); font-style: italic; font-weight: 500; }
.method-stage { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.method-stages { display: flex; flex-direction: column; gap: 14px; }
.stage-card {
  padding: 24px 28px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all .4s cubic-bezier(.2,.8,.2,1);
  display: grid; grid-template-columns: 50px 1fr auto; gap: 22px; align-items: center;
}
.stage-card.active { background: rgba(148,101,240,0.12); border-color: rgba(217,173,113,0.35); box-shadow: 0 30px 60px -30px rgba(148,101,240,.4); }
.stage-card .num-big { font-family: var(--mono); font-weight: 700; font-size: 32px; color: var(--gold); line-height: 1; }
.stage-card .stage-body h4 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--paper); }
.stage-card .stage-body h4 .ar { font-family: var(--ar); font-weight: 900; font-size: 22px; margin-inline-start: 14px; color: color-mix(in oklab, var(--halo) 80%, transparent); }
.stage-card .stage-body p { margin: 0; font-size: 14px; line-height: 1.5; color: color-mix(in oklab, var(--halo) 65%, transparent); }
.stage-card .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .3s, transform .3s; }
.stage-card.active .dot { background: var(--gold); transform: scale(1.4); box-shadow: 0 0 16px var(--gold); }
.method-viz {
  position: relative; aspect-ratio: 1/1; border-radius: 32px;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(148,101,240,.08));
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center; overflow: hidden;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.method-viz img { width: 65%; height: 65%; object-fit: contain; }
.method-viz .label { position: absolute; bottom: 22px; left: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.method-viz .stage-name { position: absolute; bottom: 22px; right: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ====================================================================
   S5 — Featured case
   ==================================================================== */
.s5 { background: var(--paper); color: var(--ink); padding: 140px 0; }
.case-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.case-media {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #d9ad71 0%, #efc88a 35%, #f3efee 100%);
  box-shadow: 0 60px 120px -50px rgba(45,31,78,.35);
}
.case-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-media .badge { position: absolute; top: 24px; left: 24px; background: rgba(45,31,78,.85); backdrop-filter: blur(10px); color: var(--gold); font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(217,173,113,.3); }
.case-media .placeholder-label { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(45,31,78,.4); font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.case-media .tag-row { position: absolute; bottom: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: end; color: var(--ink); }
.case-media .tag-row .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; background: rgba(255,255,255,0.85); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.case-r .eyebrow { color: var(--orchid); }
.case-r h2 { font-family: var(--en-display); font-weight: 700; font-size: clamp(36px, 4.2vw, 64px); line-height: 1.0; letter-spacing: -0.025em; margin: 24px 0 14px; }
.case-r h2 .ar { display: block; font-family: var(--ar); font-weight: 900; font-size: clamp(40px, 4.5vw, 68px); line-height: 1.1; margin-bottom: 8px; direction: rtl; text-align: start; }
.case-r .dek { font-size: 19px; line-height: 1.55; color: color-mix(in oklab, var(--ink) 70%, transparent); margin: 0 0 28px; max-width: 46ch; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 28px 0; border-top: 1px solid rgba(45,31,78,.08); border-bottom: 1px solid rgba(45,31,78,.08); margin: 32px 0; }
.case-stats .stat .v { font-family: var(--mono); font-weight: 700; font-size: 32px; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.case-stats .stat .v small { font-size: 16px; color: var(--gold); margin-inline-start: 4px; }
.case-stats .stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklab, var(--ink) 60%, transparent); }

/* ====================================================================
   S6 — Recent thinking
   ==================================================================== */
.s6 { background: var(--halo); color: var(--ink); padding: 140px 0; }
.thinking-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: 64px; }
.thinking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article { display: flex; flex-direction: column; gap: 18px; cursor: pointer; text-decoration: none; color: inherit; }
.article .thumb { aspect-ratio: 4/5; border-radius: var(--r-md); position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(148,101,240,.18), rgba(217,173,113,.1)); border: 1px solid rgba(45,31,78,.06); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.article:hover .thumb { transform: translateY(-6px); }
.article .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(45,31,78,.35); font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.article .thumb .pa-tag { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.85); color: var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.article .article-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orchid); }
.article h3 { font-family: var(--en-display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.article h3 .ar { display: block; font-family: var(--ar); font-weight: 900; font-size: 24px; line-height: 1.25; margin-bottom: 4px; direction: rtl; text-align: start; }
.article .article-dek { font-size: 14.5px; line-height: 1.55; color: color-mix(in oklab, var(--ink) 65%, transparent); margin: 0; }
.article .article-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklab, var(--ink) 55%, transparent); display: flex; gap: 14px; align-items: center; }
.article .article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ====================================================================
   S7 — Practice gates
   ==================================================================== */
.s7 { background: var(--paper); color: var(--ink); padding: 140px 0; }
.gates-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 56px; }
.gates { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gate { position: relative; aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden; background: var(--halo); cursor: pointer; isolation: isolate; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; border: 1px solid rgba(45,31,78,.08); text-decoration: none; }
.gate::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(45,31,78,.6) 100%); z-index: 1; transition: opacity .35s; }
.gate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--orchid), var(--gold)); opacity: 0; z-index: 0; transition: opacity .4s; }
.gate:hover::after { opacity: 1; }
.gate:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(148,101,240,.4); }
.gate:hover .gate-content { color: white; }
.gate:hover .gate-num { color: rgba(255,255,255,.7); }
.gate .gate-content { position: absolute; z-index: 2; inset-inline-start: 18px; right: 18px; bottom: 18px; color: var(--ink); transition: color .4s; }
.gate .gate-num { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 14px; transition: color .4s; }
.gate h4 { font-family: var(--ar); font-weight: 900; font-size: 22px; line-height: 1.1; margin: 0 0 4px; direction: rtl; text-align: start; }
.gate .gate-en { font-family: var(--en-display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; margin-bottom: 8px; }
.gate .count { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: .7; }

/* ====================================================================
   S8 — Visual notebook
   ==================================================================== */
.s8 { background: var(--ink); color: var(--halo); padding: 160px 0; }
.s8-head { text-align: center; max-width: 720px; margin: 0 auto 80px; }
.s8 .h-display, .s8 .h-ar { color: var(--paper); }
.notebook { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.note { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; border: 1px solid rgba(255,255,255,.08); cursor: pointer; isolation: isolate; transition: transform .5s cubic-bezier(.2,.8,.2,1); text-decoration: none; }
.note:hover { transform: translateY(-8px); }
.note .note-bg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--orchid-2) 0%, var(--ink) 60%); z-index: 0; }
.note.n1 .note-bg { background: linear-gradient(160deg, #5e3eb0 0%, #2d1f4e 70%); }
.note.n2 .note-bg { background: linear-gradient(160deg, #7c4dd9 0%, #1c1233 70%); }
.note.n3 .note-bg { background: linear-gradient(160deg, #d9ad71 0%, #2d1f4e 75%); }
.note.n4 .note-bg { background: linear-gradient(160deg, #b89af8 0%, #1c1233 65%); }
.note .roman-plate { position: absolute; top: 28px; right: 28px; font-family: var(--mono); font-weight: 700; font-size: 88px; letter-spacing: -0.02em; color: rgba(217,173,113,.85); line-height: 1; z-index: 1; }
.note .placeholder-img { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.25); font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; z-index: 1; }
.note img.note-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.note .note-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; z-index: 2; background: linear-gradient(180deg, transparent, rgba(28,18,51,.75)); }
.note .note-content h3 { font-family: var(--en-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 4px; color: var(--paper); }
.note .note-content h3 .ar { display: block; font-family: var(--ar); font-weight: 900; font-size: 28px; margin-bottom: 4px; direction: rtl; text-align: start; color: var(--gold); }
.note .note-content p { font-size: 14px; line-height: 1.5; color: color-mix(in oklab, var(--halo) 75%, transparent); margin: 0; max-width: 50ch; }

/* ====================================================================
   S9 — Contact + Letter
   ==================================================================== */
.s9 { background: var(--ink-2); color: var(--halo); padding: 160px 0; position: relative; }
.s9 .glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(217,173,113,.25), transparent 65%); top: -100px; left: 50%; transform: translateX(-50%); filter: blur(100px); z-index: 0; }
.s9-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-block, .letter-block { position: relative; }
.contact-block .h-display, .letter-block .h-display { color: var(--paper); }
.contact-block .h-display em, .letter-block .h-display em { color: var(--gold); font-style: italic; font-weight: 500; }
.contact-block .sub, .letter-block .sub { font-size: 18px; line-height: 1.55; color: color-mix(in oklab, var(--halo) 70%, transparent); margin: 22px 0 36px; max-width: 42ch; }
.contact-block .ar-sub, .letter-block .ar-sub { font-family: var(--ar); font-size: 19px; line-height: 1.8; margin: 14px 0 0; direction: rtl; text-align: start; color: color-mix(in oklab, var(--halo) 65%, transparent); }
.letter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(20px); margin-bottom: 16px; }
.letter-form input { background: transparent; border: 0; color: var(--paper); padding: 14px 22px; font-family: var(--en-display); font-size: 15px; outline: none; }
.letter-form input::placeholder { color: rgba(255,255,255,.4); }
.letter-form button { background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 24px; font-family: var(--en-display); font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .25s, background .25s; }
.letter-form button:hover { transform: scale(1.03); background: #efc88a; }
.letter-fine { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklab, var(--halo) 55%, transparent); }

/* ====================================================================
   S10 — Footer
   ==================================================================== */
.s10 { background: var(--halo); color: var(--ink); padding: 120px 0 var(--footer-safe); position: relative; }
.foot-wordmark { font-family: var(--en-display); font-weight: 700; font-size: clamp(80px, 16vw, 240px); line-height: 0.85; letter-spacing: -0.045em; margin: 0 0 60px; color: var(--ink); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-wordmark .gold { color: var(--gold); font-weight: 700; }
.foot-wordmark img { width: clamp(72px, 14vw, 180px); height: auto; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 30px 0; border-top: 1px solid rgba(45,31,78,.12); border-bottom: 1px solid rgba(45,31,78,.12); flex-wrap: wrap; }
.foot-row .nav-l, .foot-row .nav-r { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.foot-row a { color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; transition: color .2s; }
.foot-row a:hover { color: var(--orchid); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklab, var(--ink) 65%, transparent); flex-wrap: wrap; gap: 12px; }

/* ====================================================================
   Singles (post / pillar / case) + Archives
   ==================================================================== */
.blf-single { padding: calc(var(--header-safe) + 40px) 0 120px; background: var(--halo); color: var(--ink); position: relative; }
.blf-single.dark { background: var(--ink); color: var(--halo); }
.blf-single .single-head { max-width: 880px; margin: 0 auto 60px; text-align: center; }
.blf-single .breadcrumbs { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in oklab, currentColor 60%, transparent); margin-bottom: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.blf-single .breadcrumbs a { color: inherit; text-decoration: none; }
.blf-single .breadcrumbs a:hover { color: var(--gold); }
.blf-single .breadcrumbs .sep { color: var(--gold); }
.blf-single h1.single-title { font-family: var(--en-display); font-weight: 700; font-size: clamp(36px, 4.5vw, 72px); line-height: 1.0; letter-spacing: -0.025em; margin: 14px 0 8px; }
.blf-single h1.single-title-ar { font-family: var(--ar); font-weight: 900; font-size: clamp(40px, 5vw, 80px); line-height: 1.1; margin: 0 0 14px; direction: rtl; text-align: center; }
.blf-single .single-dek { font-size: 22px; line-height: 1.55; color: color-mix(in oklab, currentColor 70%, transparent); max-width: 56ch; margin: 14px auto 0; }
.blf-single .single-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in oklab, currentColor 60%, transparent); margin-top: 30px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.blf-single .single-meta .dot { color: var(--gold); }
.blf-single .featured-hero { aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; max-width: 1080px; margin: 60px auto; background: linear-gradient(160deg, var(--orchid-2), var(--gold)); }
.blf-single .featured-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blf-single .single-content { max-width: 720px; margin: 0 auto; font-size: 19px; line-height: 1.7; }
.blf-single .single-content p { margin: 0 0 24px; }
.blf-single .single-content h2 { font-family: var(--en-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; margin: 56px 0 18px; }
.blf-single .single-content h3 { font-family: var(--en-display); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; margin: 36px 0 12px; }
.blf-single .single-content blockquote { border-inline-start: 3px solid var(--gold); padding-inline-start: 24px; margin: 36px 0; font-size: 24px; line-height: 1.5; color: var(--orchid); font-style: italic; font-weight: 500; }
.blf-single .single-content a { color: var(--orchid); text-decoration: underline; text-decoration-color: rgba(148,101,240,.4); text-underline-offset: 4px; }
.blf-single .pullquote-block { max-width: 880px; margin: 48px auto; padding: 40px; border-radius: var(--r-lg); background: rgba(217,173,113,.08); border: 1px solid rgba(217,173,113,.25); }
.blf-single .pullquote-block p { font-size: 30px; line-height: 1.4; margin: 0 0 14px; color: var(--orchid); }
.blf-single .pullquote-block .attr { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in oklab, currentColor 60%, transparent); }
.blf-archive { padding: calc(var(--header-safe) + 40px) 0 120px; background: var(--paper); position: relative; }
.blf-archive .archive-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 100; transition: width .1s; }
.blf-404 { padding: 200px 0; background: var(--ink); color: var(--halo); text-align: center; min-height: 80vh; display: grid; place-items: center; }
.blf-404 img { width: 180px; margin-bottom: 40px; filter: drop-shadow(0 30px 60px rgba(148,101,240,.45)); animation: hover 7s ease-in-out infinite; }

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 980px) {
  .hero-grid, .s2-grid, .case-grid, .s9-grid, .method-stage { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .thinking-grid { grid-template-columns: repeat(2, 1fr); }
  .gates { grid-template-columns: repeat(3, 1fr); }
  .notebook { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .s2-left { position: static; }
  .nav-menu { display: none; }
  .blf-section { padding: 80px 0 !important; }
  .s1 { padding-top: 140px !important; }
}
@media (max-width: 600px) {
  .pillars, .thinking-grid, .gates { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .case-stats .stat .v { font-size: 24px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-row .nav-l, .foot-row .nav-r { flex-wrap: wrap; gap: 16px; }
}

/* RTL */
[dir="rtl"] .pillar .roman::after { background: linear-gradient(-90deg, rgba(217,173,113,.5), transparent); }
[dir="rtl"] .eyebrow::before { content: none; }
[dir="rtl"] .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

/* WordPress core blocks safety */
.wp-block-image img { max-width: 100%; height: auto; }
.alignwide { max-width: 1080px; margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

/* ====================================================================
   S1 — Hero cover image (v1.1.0)
   Three switchable layouts: A · Full-bleed cinematic,
   B · Asymmetric split, C · Framed inset. Driven by
   data-cover-layout="a|b|c" on .s1 (set from PHP via Customizer).
   ==================================================================== */

.s1 { position: relative; overflow: hidden; }

/* (a) Photo plate — bottom-most absolute layer, full-bleed by default.
   A radial mask feathers the photo into the surrounding backdrop. */
.s1 .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  -webkit-mask: radial-gradient(
    ellipse 108% 105% at 50% 55%,
    #000 55%,
    rgba(0,0,0,0.78) 78%,
    rgba(0,0,0,0.30) 94%,
    transparent 100%
  );
          mask: radial-gradient(
    ellipse 108% 105% at 50% 55%,
    #000 55%,
    rgba(0,0,0,0.78) 78%,
    rgba(0,0,0,0.30) 94%,
    transparent 100%
  );
}
.s1 .hero-photo img,
.s1 .hero-photo .hero-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cover-pos, 50% 50%);
}
/* Empty-state placeholder when no cover image is set in Customizer */
.s1 .hero-photo[data-empty="1"] {
  background:
    radial-gradient(60% 70% at 75% 35%, rgba(229,168,35,0.16), transparent 60%),
    radial-gradient(80% 100% at 20% 85%, rgba(94,62,176,0.28), transparent 65%),
    linear-gradient(170deg, #2A1A52 0%, #1A0E2E 60%, #120825 100%);
}
.s1 .hero-photo[data-empty="1"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(250,247,242,0.025) 0 1px,
    transparent 1px 80px
  );
  pointer-events: none;
}
.s1 .hero-photo[data-empty="1"] .hero-photo-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 70%);
  text-align: center;
  font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.55);
  line-height: 1.7;
  pointer-events: none;
}

/* (b) Cinematic color grade — overlay blend over the photo */
.s1 .hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 82% 18%, rgba(229,168,35,0.22) 0%, transparent 60%),
    radial-gradient(80% 90% at 15% 95%, rgba(26,14,46,0.55) 0%, transparent 60%),
    linear-gradient(180deg, rgba(26,14,46,0.18) 0%, rgba(26,14,46,0.32) 100%);
  mix-blend-mode: overlay;
}

/* (c) Hex backdrop sits OVER the photo so the lattice blends; lower the
   lattice opacity so cells read as atmosphere over the image. */
.s1 .hex-bg { z-index: 1; }
.s1 .hex-bg .layer-lattice { opacity: 0.55; }
.s1 .hex-bg .layer-tint    { opacity: 0.70; }
.s1 .hex-bg .layer-fog     { opacity: 0.04; }
.s1 .hex-bg .layer-vignette {
  background: radial-gradient(
    ellipse 80% 78% at 50% 55%,
    transparent 45%,
    rgba(0,0,0,0.42) 100%
  );
}

/* (d) Typography legibility fades — top + bottom dark masks (layout A) */
.s1 .cover-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(20,12,40,0.62) 0%,
    rgba(20,12,40,0.35) 45%,
    transparent 100%);
}
.s1 .cover-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 58%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg,
    rgba(8,4,18,0.78) 0%,
    rgba(8,4,18,0.55) 28%,
    rgba(8,4,18,0.18) 65%,
    transparent 100%);
}

/* (e) Layout A — Full-bleed cinematic (default).
   Cluster pinned bottom-left over the dark bottom fade. */
.s1[data-cover-layout="a"] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 !important;
  min-height: 100vh;
}
.s1[data-cover-layout="a"] .nav-wrap { z-index: 4; position: relative; }
.s1[data-cover-layout="a"] .wrap {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-bottom: 80px;
  padding-top: 60px;
}
.s1[data-cover-layout="a"] .hero-grid { display: block; }
.s1[data-cover-layout="a"] .hero-r { display: none; }
.s1[data-cover-layout="a"] .hero-l {
  max-width: 760px;
  gap: 24px;
}
.s1[data-cover-layout="a"] .hero-pair h1 {
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 28px rgba(0,0,0,0.45);
}
.s1[data-cover-layout="a"] .eyebrow,
.s1[data-cover-layout="a"] .hero-sub {
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.s1[data-cover-layout="a"] .hero-sub { max-width: 560px; }
.s1[data-cover-layout="a"] .hero-meta {
  margin-top: 56px;
  border-top: 1px solid rgba(250,247,242,0.14);
}
@media (min-height: 1100px) {
  .s1[data-cover-layout="a"] { min-height: 1080px; }
}

/* (f) Layout B — Asymmetric split (editorial).
   Image right 55%, atmospheric backdrop left 45%, hard gold seam. */
.s1[data-cover-layout="b"] .hero-photo {
  inset: 0 0 0 45%;
  -webkit-mask: none;
          mask: none;
}
.s1[data-cover-layout="b"] .cover-fade-top,
.s1[data-cover-layout="b"] .cover-fade-bottom { display: none; }
.s1[data-cover-layout="b"] .hex-bg::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 44%;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(229,168,35,0.18) 30%,
    rgba(229,168,35,0.28) 50%,
    rgba(229,168,35,0.18) 70%,
    transparent 100%);
  z-index: 3;
  pointer-events: none;
}
.s1[data-cover-layout="b"] {
  align-items: stretch;
}
.s1[data-cover-layout="b"] .wrap {
  margin-top: 0;
  align-self: center;
  padding: calc(var(--header-safe) + 40px) 0 80px 0;
  max-width: 100%;
}
.s1[data-cover-layout="b"] .hero-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 0;
  align-items: center;
}
.s1[data-cover-layout="b"] .hero-l {
  max-width: 560px;
  padding: 0 60px 0 80px;
}
.s1[data-cover-layout="b"] .hero-r {
  display: block;
  visibility: hidden;
}
.s1[data-cover-layout="b"] .hero-pair h1 {
  font-size: clamp(44px, 4.6vw, 72px);
}
.s1[data-cover-layout="b"] .hero-meta {
  grid-column: 1 / 2;
  margin-top: 56px;
  padding: 0 60px 0 80px;
  max-width: 560px;
  box-sizing: border-box;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
/* RTL — flip image to LEFT */
[dir="rtl"] .s1[data-cover-layout="b"] .hero-photo { inset: 0 45% 0 0; }
[dir="rtl"] .s1[data-cover-layout="b"] .hex-bg::after { left: auto; right: 44%; }
[dir="rtl"] .s1[data-cover-layout="b"] .hero-grid { grid-template-columns: 55% 45%; }
[dir="rtl"] .s1[data-cover-layout="b"] .hero-l { grid-column: 2; padding: 0 80px 0 60px; }
[dir="rtl"] .s1[data-cover-layout="b"] .hero-r { grid-column: 1; }

/* (g) Layout C — Framed inset (collected).
   16:10 frame inset 80px, center-right, thin gold rim. */
.s1[data-cover-layout="c"] .hero-photo {
  inset: auto 80px auto auto;
  top: 50%;
  transform: translateY(-50%);
  width: min(58%, calc((100vh - 160px) * 1.6));
  height: calc(100vh - 160px);
  max-height: 920px;
  -webkit-mask: none;
          mask: none;
  border-radius: 2px;
  outline: 1px solid rgba(229,168,35,0.18);
  outline-offset: -1px;
}
@media (min-height: 1100px) {
  .s1[data-cover-layout="c"] .hero-photo { height: 920px; }
}
.s1[data-cover-layout="c"] .cover-fade-top,
.s1[data-cover-layout="c"] .cover-fade-bottom { display: none; }
.s1[data-cover-layout="c"] {
  align-items: stretch;
}
.s1[data-cover-layout="c"] .wrap {
  margin-top: 0;
  padding: calc(var(--header-safe) + 24px) 80px 80px 80px;
  max-width: 100%;
  align-self: stretch;
}
.s1[data-cover-layout="c"] .hero-grid { display: block; }
.s1[data-cover-layout="c"] .hero-l {
  max-width: 38%;
  min-width: 420px;
}
.s1[data-cover-layout="c"] .hero-pair h1 {
  font-size: clamp(40px, 4.2vw, 64px);
}
.s1[data-cover-layout="c"] .hero-meta {
  max-width: 38%;
  min-width: 420px;
  margin-top: 48px;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
[dir="rtl"] .s1[data-cover-layout="c"] .hero-photo {
  inset: auto auto auto 80px;
  top: 50%;
}

/* Mobile — collapse all layouts to stacked single column */
@media (max-width: 980px) {
  .s1[data-cover-layout="a"] .wrap,
  .s1[data-cover-layout="b"] .wrap,
  .s1[data-cover-layout="c"] .wrap {
    padding: calc(var(--header-safe) + 24px) 24px 56px !important;
  }
  .s1[data-cover-layout="b"] .hero-grid,
  .s1[data-cover-layout="c"] .hero-l {
    grid-template-columns: 1fr;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }
  .s1[data-cover-layout="b"] .hero-photo,
  .s1[data-cover-layout="c"] .hero-photo {
    inset: 0;
    width: 100%;
    height: 100%;
    top: 0;
    transform: none;
    max-height: none;
  }
  .s1[data-cover-layout="b"] .hex-bg::after,
  .s1[data-cover-layout="b"] .hero-r { display: none; }
  .s1 .hero-pair h1 { font-size: clamp(36px, 8vw, 56px) !important; }
}
