/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: var(--wp-admin-bar-offset, 0px) 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  transition: background .3s var(--ease), inset-block-start .3s var(--ease);
}
.nav__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__logo { height: 34px; width: auto; }
:root[data-theme="dark"] .nav__logo { filter: brightness(0) invert(1) sepia(.15) hue-rotate(240deg) saturate(1.3); }

.nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  font-size: var(--step-0);
}
.nav__links a {
  padding: 8px 4px;
  color: var(--fg-soft);
  position: relative;
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 4px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: inline-flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .05em;
}
.lang-toggle button,
.lang-toggle a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang-toggle button[aria-pressed="true"],
.lang-toggle a[aria-current="true"] {
  background: var(--accent);
  color: #fff;
}
.theme-toggle {
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }

.nav__mobile-links {
  display: none;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) 12px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile-links::-webkit-scrollbar { display: none; }
.nav__mobile-links a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-soft);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  font-size: var(--step--1);
  white-space: nowrap;
}
.nav__mobile-links a:hover,
.nav__mobile-links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__mobile-links { display: flex; }
  .nav__inner { grid-template-columns: auto 1fr; padding-bottom: 10px; }
  .nav__cta { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .nav__cta .btn { display: none; }
  .nav__inner { gap: 14px; }
}

/* ==========================================================================
   HERO — redesigned
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(100px, 12vh, 150px);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 38% at 80% 22%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%),
    radial-gradient(ellipse 40% 45% at 12% 78%, color-mix(in srgb, var(--contrast-2) 12%, transparent), transparent 65%);
}

.hero__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(40px, 6vw, 72px);
  position: relative;
}

/* Top bar — status pill (left) + EST stamp (right) */
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vh, 60px);
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  color: var(--fg-soft);
  letter-spacing: .03em;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.hero__status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2AA876;
  box-shadow: 0 0 0 0 #2AA876;
  animation: hero-pulse 2.2s ease-out infinite;
}
@keyframes hero-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, #2AA876 55%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero__est {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  color: var(--fg-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ==== Bento split — lead column + side panels ==== */
.hero__bento {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: stretch;
}
@media (max-width: 920px) {
  .hero__bento { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
}

.hero__lead {
  display: grid;
  align-content: space-between;
  gap: clamp(22px, 3vw, 36px);
}
.hero__h1 {
  font-family: var(--ff-ar-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.6rem + 5vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
:root[lang="en"] .hero__h1 {
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
}
.hero__h1 em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--ff-accent);
  font-weight: 400;
  padding-inline: 4px;
}
.hero__sub {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 52ch;
  text-wrap: pretty;
  margin: 0;
}
.hero__actions { display: inline-flex; gap: 12px; flex-wrap: wrap; }

/* Side column — two stacked panels (mark + curated list) */
.hero__side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  min-width: 0;
}
@media (max-width: 920px) {
  .hero__side {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr);
    grid-template-rows: auto;
    align-items: stretch;
  }
}
@media (max-width: 640px) {
  .hero__side { grid-template-columns: 1fr; grid-template-rows: auto auto; }
}

.hero__panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* Top panel — animated brand mark inside a square frame */
.hero__panel--mark {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.5vw, 32px);
  background:
    radial-gradient(circle at 28% 32%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    var(--bg);
}
.hero__panel--mark .hero__mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
}

/* Bottom panel — curated "what we make" list */
.hero__panel--list {
  padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.5vw, 28px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.hero__panel-eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__panel--list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.hero__panel--list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: var(--step-0);
  color: var(--fg);
}
.hero__panel--list li:first-child { border-top: 0; padding-top: 4px; }
.hero__panel--list .num {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  color: var(--accent);
  letter-spacing: .04em;
}
.hero__panel-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.hero__panel-link:hover { gap: 14px; color: var(--contrast-2); }
.hero__panel-link svg { width: 14px; height: 14px; }

/* Marquee stats strip — replaces the 4-column grid */
.hero__stats {
  margin-top: clamp(36px, 6vw, 64px);
  padding-block: clamp(20px, 3vw, 36px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  position: relative;
  z-index: 1;
}
.hero__stats-track {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3.5vw, 48px);
  width: max-content;
  animation: hero-stats-scroll 48s linear infinite;
}
:root[lang="ar"] .hero__stats-track { animation-direction: reverse; }
.hero__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}
.hero__stat strong {
  font-family: var(--ff-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
}
.hero__stat-label {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  color: var(--fg-soft);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero__stat-sep {
  color: color-mix(in srgb, var(--line-strong) 80%, transparent);
  font-size: var(--step-2);
  user-select: none;
}
@keyframes hero-stats-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__stats-track { animation: none; }
  .hero__status .dot { animation: none; }
}

/* ==========================================================================
   Hero variant: MANIFESTO — pure typography, no mark
   ========================================================================== */
.hero--manifesto .hero__h1--manifesto {
  font-family: var(--ff-ar-display);
  font-weight: 500;
  font-size: clamp(3rem, 2rem + 6.5vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -.03em;
  margin: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vw, 64px);
  text-wrap: balance;
  max-width: 16ch;
}
:root[lang="en"] .hero--manifesto .hero__h1--manifesto {
  font-weight: 600;
  letter-spacing: -.04em;
}
.hero--manifesto .hero__h1--manifesto em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--ff-accent);
  font-weight: 400;
  padding-inline: 4px;
}
.hero--manifesto .hero__manifesto-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 3vw, 32px);
}
@media (max-width: 800px) {
  .hero--manifesto .hero__manifesto-foot { grid-template-columns: 1fr; }
}
.hero--manifesto .hero__rule {
  width: 56px; height: 1px;
  background: var(--accent);
  align-self: center;
  margin: 0;
  border: 0;
}
.hero--manifesto .hero__sub {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 48ch;
  margin: 0;
}

/* ==========================================================================
   Hero variant: MASTHEAD — giant wordmark + meta sidebar + headline
   ========================================================================== */
.hero--masthead { padding-top: clamp(80px, 10vh, 130px); }
.hero--masthead .hero__wordmark {
  display: flex;
  justify-content: center;
  font-family: var(--ff-ar-display);
  font-weight: 500;
  letter-spacing: clamp(.06em, 1vw, .14em);
  font-size: clamp(3.5rem, 2rem + 9vw, 11rem);
  line-height: 0.85;
  color: var(--fg);
  padding-inline: var(--gutter);
  margin-bottom: 18px;
  user-select: none;
}
:root[lang="en"] .hero--masthead .hero__wordmark {
  font-weight: 700;
  letter-spacing: clamp(.04em, .8vw, .12em);
}
.hero--masthead .hero__rule {
  height: 1px;
  background: var(--fg);
  border: 0;
  margin: 0;
  width: 100%;
}
.hero--masthead .hero__masthead-grid {
  margin-top: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 800px) {
  .hero--masthead .hero__masthead-grid { grid-template-columns: 1fr; }
}
.hero--masthead .hero__masthead-meta {
  display: grid;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  color: var(--fg-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.hero--masthead .hero__h1 {
  font-family: var(--ff-ar-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.5rem + 4.5vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 clamp(16px, 2vw, 24px);
  text-wrap: balance;
}
:root[lang="en"] .hero--masthead .hero__h1 { font-weight: 600; letter-spacing: -.03em; }
.hero--masthead .hero__h1 em { font-family: var(--ff-accent); font-style: italic; color: var(--accent); font-weight: 400; padding-inline: 4px; }
.hero--masthead .hero__sub {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-soft);
  margin: 0 0 22px;
  max-width: 56ch;
}

/* ==========================================================================
   Hero variant: MARQUEE — scrolling headline
   ========================================================================== */
.hero--marquee { padding-bottom: 0; }
.hero--marquee .hero__marquee-h1 {
  margin: clamp(28px, 4vw, 48px) 0 clamp(24px, 4vw, 40px);
  padding-block: clamp(6px, 1vw, 14px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.hero--marquee .hero__marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  width: max-content;
  animation: hero-marquee-scroll 50s linear infinite;
}
:root[lang="ar"] .hero--marquee .hero__marquee-track { animation-direction: reverse; }
.hero--marquee .hero__marquee-word {
  font-family: var(--ff-ar-display);
  font-weight: 500;
  font-size: clamp(3rem, 2rem + 6vw, 8rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--fg);
  white-space: nowrap;
}
:root[lang="en"] .hero--marquee .hero__marquee-word { font-weight: 600; letter-spacing: -.03em; }
.hero--marquee .hero__marquee-sep {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  color: var(--accent);
  line-height: 1;
}
@keyframes hero-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .hero--marquee .hero__marquee-track { animation: none; } }

.hero--marquee .hero__marquee-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  padding-top: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
@media (max-width: 900px) {
  .hero--marquee .hero__marquee-foot { grid-template-columns: 1fr; }
}
.hero--marquee .hero__sub {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 48ch;
  margin: 0;
}
.hero--marquee .hero__marquee-mark {
  width: clamp(120px, 14vw, 180px);
  height: clamp(80px, 9vw, 120px);
  justify-self: end;
  display: grid;
  place-items: center;
  opacity: .9;
}

/* ==========================================================================
   Hero variant: VOLUME — mega "N° XX" anchor + content
   ========================================================================== */
.hero--volume .hero__volume-grid {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: clamp(180px, 22vw, 280px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  position: relative;
}
.hero--volume .hero__volume-grid::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: clamp(180px, 22vw, 280px);
  width: 1px;
  background: var(--fg);
  transform: translateX(calc(clamp(28px, 4vw, 64px) / -2));
}
:root[lang="ar"] .hero--volume .hero__volume-grid::after,
:root[dir="rtl"] .hero--volume .hero__volume-grid::after {
  transform: translateX(calc(clamp(28px, 4vw, 64px) / 2));
}
@media (max-width: 800px) {
  .hero--volume .hero__volume-grid { grid-template-columns: 1fr; }
  .hero--volume .hero__volume-grid::after { display: none; }
}
.hero--volume .hero__volume-big {
  display: grid;
  align-content: center;
  gap: 10px;
}
.hero--volume .hero__volume-label {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero--volume .hero__volume-number {
  font-family: var(--ff-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(6rem, 4rem + 12vw, 14rem);
  line-height: .85;
  color: var(--fg);
  letter-spacing: -.05em;
}
.hero--volume .hero__volume-years {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero--volume .hero__volume-body { display: grid; align-content: center; gap: clamp(16px, 2vw, 24px); }
.hero--volume .hero__h1 {
  font-family: var(--ff-ar-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.6rem + 4.5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
  max-width: 16ch;
}
:root[lang="en"] .hero--volume .hero__h1 { font-weight: 600; letter-spacing: -.035em; }
.hero--volume .hero__h1 em { font-family: var(--ff-accent); font-style: italic; color: var(--accent); font-weight: 400; padding-inline: 4px; }
.hero--volume .hero__sub {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 48ch;
  margin: 0;
}

/* ==========================================================================
   Hero variant: CONVERSATION — italic question + answer + qualifier
   ========================================================================== */
.hero--conversation .hero__conv-grid {
  margin-top: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 800px) {
  .hero--conversation .hero__conv-grid { grid-template-columns: 1fr; }
}
.hero--conversation .hero__question {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: clamp(1.25rem, 0.9rem + 1.5vw, 1.875rem);
  color: var(--accent);
  line-height: 1.2;
  margin: 0 0 clamp(20px, 3vw, 32px);
  letter-spacing: -.005em;
}
.hero--conversation .hero__answer {
  font-family: var(--ff-ar-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.6rem + 5.5vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 clamp(16px, 2vw, 24px);
  text-wrap: balance;
  max-width: 18ch;
}
:root[lang="en"] .hero--conversation .hero__answer { font-weight: 600; letter-spacing: -.04em; }
.hero--conversation .hero__qualifier {
  font-family: var(--ff-mono);
  font-size: var(--step-0);
  color: var(--fg-soft);
  letter-spacing: .02em;
  margin: 0 0 clamp(20px, 3vw, 32px);
  max-width: 48ch;
}
.hero--conversation .hero__conv-mark {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 28% 32%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    var(--bg);
}
.hero--conversation .hero__conv-mark .hero__mark-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* Inline-SVG mark — used inside .hero__panel--mark.
   Sizing is handled by the panel; here we only style the SVG-internal
   layers (base shapes, traced loops, glow). */
.hero__mark-base { opacity: .14; }
:root[data-theme="dark"] .hero__mark-base { opacity: .35; }
.hero__mark-loop {
  fill: none;
  stroke: #ffffff;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  filter: url(#muz-glow);
  animation: muzamna-mark-trace 4.5s ease-in-out infinite;
}
@keyframes muzamna-mark-trace {
  0%   { stroke-dashoffset: 3000; opacity: 0; }
  6%   { opacity: 1; }
  38%  { stroke-dashoffset: 0; opacity: 1; }
  44%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__mark-loop { animation: none; opacity: 0; }
}
:root[data-hero="centered"] .hero__panel--mark { display: none; }
