/* ============================================================
   DIGITAL MAKERS — tokens
   ============================================================ */
:root {
  --ink: #0c0b0e;
  --charcoal: #17151a;
  --charcoal-2: #1f1c22;
  --paper: #f3eee7;
  --smoke: #948f97;
  --smoke-dim: #5e5a61;
  --ember: #e8642b;
  --ember-2: #ff9466;
  --voltage: #7fe9c9;
  --voltage-2: #b8fbe4;
  --line: rgba(243, 238, 231, 0.12);
  --line-strong: rgba(243, 238, 231, 0.22);

  --stage-color: var(--ember);
  --stage-color-soft: rgba(232, 100, 43, 0.35);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --fs-hero: clamp(2.6rem, 5.4vw + 1rem, 6.6rem);
  --fs-h2: clamp(2rem, 3.2vw + 1rem, 3.6rem);
  --fs-h3: clamp(1.3rem, 1vw + 1rem, 1.7rem);
  --fs-lead: clamp(1.2rem, 1.1vw + 1rem, 1.6rem);
  --fs-body: clamp(1rem, 0.2vw + 0.95rem, 1.1rem);
  --fs-mono: 0.8rem;

  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[lang="ar"] {
  --font-display: "El Messiri", ui-serif, Georgia, serif;
  --font-body: "Cairo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Cairo", ui-sans-serif, system-ui, sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ember);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--voltage);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100%;
  inset-inline-start: 1rem;
  z-index: 999;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   ATMOSPHERE — grain / filament / cursor glow
   ============================================================ */
.grain {
  position: fixed;
  inset: -10%;
  z-index: 400;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  margin-left: -240px;
  margin-top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stage-color-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }

.filament {
  position: fixed;
  top: 0;
  inset-inline-start: clamp(0.75rem, 2.4vw, 2.25rem);
  width: 1px;
  height: 100vh;
  background: var(--line);
  z-index: 300;
  pointer-events: none;
}
.filament-spark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--stage-color);
  box-shadow: 0 0 12px 2px var(--stage-color), 0 0 30px 6px var(--stage-color-soft);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
@media (max-width: 720px) {
  .filament { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.4rem var(--gutter);
  background: linear-gradient(to bottom, rgba(12, 11, 14, 0.92), rgba(12, 11, 14, 0.55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-logo span { color: var(--ember); }
.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.nav-links a {
  opacity: 0.75;
  transition: opacity 0.25s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--line-strong);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  border-color: var(--ember);
  background: rgba(232, 100, 43, 0.1);
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

.lang-switch { position: relative; }
.lang-current {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--line-strong);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-current:hover,
.lang-switch.is-open .lang-current {
  border-color: var(--voltage);
  background: rgba(127, 233, 201, 0.1);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  inset-inline-end: 0;
  min-width: 9rem;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 250;
}
.lang-switch.is-open .lang-menu { display: flex; }
.lang-menu button {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: start;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  color: var(--smoke);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-menu button:hover { background: var(--charcoal-2); color: var(--paper); }
.lang-menu button[aria-current="true"] { color: var(--stage-color); }

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stage-color);
  margin-bottom: 1.25rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: var(--section-pad) var(--gutter) 0;
  max-width: 72rem;
  margin: 0 auto;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: 3.5rem;
}
.lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 42ch;
  color: var(--paper);
}
.lead em, .hero-title em, .cta-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--stage-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--ember-2); }
.btn-ghost {
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }

/* ============================================================
   REVEAL SYSTEM
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* product mockups / device visuals: settle into place rather than slide */
[data-reveal="visual"] {
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal="visual"].in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--section-pad) + 3rem) var(--gutter) var(--section-pad);
  position: relative;
}
.hero-inner {
  max-width: 62rem;
  margin: 0 auto;
  width: 100%;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
.hero-title .line { display: block; overflow: visible; }
.hero-sub {
  font-size: var(--fs-lead);
  font-family: var(--font-display);
  color: var(--smoke);
  max-width: 46ch;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.hero-sub-secondary {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--smoke-dim);
  max-width: 36ch;
  margin-bottom: 2.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  inset-inline-start: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
}
.scroll-cue-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--stage-color), transparent);
  animation: cue-pulse 2.2s ease-in-out infinite;
}
@keyframes cue-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line { animation: none; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { padding: var(--section-pad) 0 0; }
.manifesto-hook {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.8vw + 1rem, 1.9rem);
  line-height: 1.3;
  max-width: 26ch;
  margin-bottom: 1.5rem;
  color: var(--paper);
}
.manifesto-lead-detail {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--smoke);
  max-width: 30ch;
  margin-top: 1.75rem;
}
.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}
.principles li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.2rem 0.6rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--smoke);
}
.principle-mark {
  color: var(--stage-color);
  font-size: 0.72rem;
}

/* ============================================================
   SERVICES / STATIONS
   ============================================================ */
.services { padding-bottom: var(--section-pad); }
.station {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.station:last-child { border-bottom: none; }
.station-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.station-text {
  color: var(--smoke);
  max-width: 46ch;
  margin-bottom: 1.25rem;
  font-size: var(--fs-body);
}
.station-tags {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--stage-color);
}

.station-visual {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--charcoal);
  overflow: hidden;
  position: relative;
}

/* -- original dashboard mockups (station 02 / 03) -- */
.dash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.6rem;
  background: var(--charcoal-2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.dash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}
.dash-path {
  margin-left: 0.5rem;
  font-size: 0.6rem;
  color: var(--smoke);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.7rem;
  min-height: 0;
}

/* chat mockup */
.dash-agent { display: flex; align-items: center; gap: 0.4rem; }
.dash-avatar {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--ember);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-agent-name strong {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--paper);
  display: block;
  line-height: 1.2;
}
.dash-agent-name small { font-size: 0.55rem; color: var(--smoke); }
.dash-status { margin-left: auto; font-size: 0.55rem; color: var(--voltage); white-space: nowrap; }

.dash-chat-log { display: flex; flex-direction: column; gap: 0.4rem; }
.dash-bubble {
  font-family: var(--font-body);
  font-size: 0.62rem;
  line-height: 1.35;
  padding: 0.4rem 0.55rem;
  border-radius: 0.6rem;
  max-width: 88%;
}
.dash-bubble-user {
  align-self: flex-end;
  background: var(--ember);
  color: var(--ink);
  border-bottom-right-radius: 0.15rem;
}
.dash-bubble-agent {
  align-self: flex-start;
  background: var(--charcoal-2);
  color: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 0.15rem;
}

.dash-tabs {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.dash-tabs span { font-size: 0.55rem; color: var(--smoke); }
.dash-tabs span.is-active { color: var(--voltage); }

/* automation flow mockup */
.dash-flow-body { padding-top: 0.9rem; }
.flow-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.3rem;
}
.flow-row::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--voltage);
  box-shadow: 0 0 8px 2px var(--voltage);
  animation: flow-travel 3.5s ease-in-out infinite;
}
@keyframes flow-travel {
  0% { left: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}
.flow-node {
  flex: 1;
  min-width: 0;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.4rem 0.3rem;
  font-family: var(--font-body);
  font-size: 0.56rem;
  line-height: 1.3;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: center;
}
.flow-node small {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--smoke);
}
.flow-trigger { border-color: var(--voltage); }
.flow-output { border-color: var(--ember); }
.flow-line {
  flex: 0 0 auto;
  align-self: center;
  width: 0.7rem;
  height: 1px;
  background: var(--line-strong);
}
.flow-log {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}
.flow-log-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
}
.flow-log-time { color: var(--smoke-dim); flex-shrink: 0; }
.flow-log-row span:nth-child(2) {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--paper);
  flex: 1;
}
.flow-log-check { color: var(--voltage); flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .flow-row::after { animation: none; opacity: 0; }
}

/* -- 01 site preview mockup -- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.site-nav-logo {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--ember);
  flex-shrink: 0;
}
.site-nav-link {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}
.site-nav-cta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.02em;
  color: var(--smoke);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.18rem 0.4rem;
  white-space: nowrap;
}
.site-hero {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.site-hero-line {
  height: 7px;
  border-radius: 3px;
  background: var(--line-strong);
}
.site-hero-line-lg { width: 82%; height: 11px; }
.site-hero-line-sm { width: 56%; }
.site-hero-btn {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(232, 100, 43, 0.5);
  animation: btn-pulse 2.8s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 100, 43, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(232, 100, 43, 0); }
}
.site-cards {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.7rem;
}
.site-card {
  flex: 1;
  aspect-ratio: 4 / 3;
  border-radius: 0.4rem;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.site-card-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 100, 43, 0.28), transparent 65%);
}
.dash-site-body .dash-tabs { margin-top: 0.6rem; }
.dash-site-body .dash-tabs span.is-active { color: var(--ember); }

/* -- 04 content: post composer mockup -- */
.content-typing {
  font-family: var(--font-body);
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--paper);
}
.content-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: var(--ember);
  animation: caret 1s steps(1) infinite;
}
.content-draft-line {
  font-family: var(--font-body);
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--smoke);
  margin-top: 0.45rem;
}
.content-draft-line-short { width: 70%; }
.content-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.content-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.02em;
  color: var(--smoke);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}
.content-chip-video { color: var(--voltage); border-color: var(--voltage); }
.content-chip-audio { color: var(--voltage); }
.content-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}
.content-wave i {
  width: 2px;
  border-radius: 1px;
  background: var(--voltage);
  animation: wave-bounce 1.1s ease-in-out infinite;
}
.content-wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.content-wave i:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.content-wave i:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.content-wave i:nth-child(4) { height: 60%; animation-delay: 0.45s; }
.content-wave i:nth-child(5) { height: 90%; animation-delay: 0.6s; }
@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-hero-btn, .content-wave i { animation: none; }
}

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 780px) {
  .station { grid-template-columns: 1fr; }
  .station-visual { max-width: 220px; }
}

/* ============================================================
   AGENT ANIMATION — abstract talking face
   ============================================================ */
.agent-anim {
  padding: calc(var(--section-pad) * 0.65) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.agent-face {
  position: relative;
  width: clamp(150px, 18vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: radial-gradient(circle at 38% 34%, var(--charcoal-2) 0%, var(--ink) 78%);
  box-shadow: 0 0 50px 10px var(--stage-color-soft);
  margin-bottom: 0.5rem;
}
.agent-eye {
  position: absolute;
  top: 36%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--voltage);
  box-shadow: 0 0 10px 3px var(--voltage);
  animation: agent-blink 4.5s ease-in-out infinite;
}
.agent-eye-left { left: 34%; }
.agent-eye-right { right: 34%; }
@keyframes agent-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.15); }
}
.agent-mouth {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}
.agent-mouth span {
  width: 4px;
  border-radius: 2px;
  background: var(--ember);
  box-shadow: 0 0 8px 1px var(--ember-2);
  transform: scaleY(0.35);
  transform-origin: bottom;
  transition: transform 0.2s ease;
}
/* mouth only animates while the reply is actually being spoken — toggled
   in voice-agent.js on speechSynthesis start/end, not a permanent loop */
.agent-mouth.is-speaking span { animation: agent-talk 1.1s ease-in-out infinite; }
.agent-mouth.is-speaking span:nth-child(1) { height: 30%; animation-delay: 0s; animation-duration: 1.3s; }
.agent-mouth.is-speaking span:nth-child(2) { height: 60%; animation-delay: 0.15s; animation-duration: 0.9s; }
.agent-mouth.is-speaking span:nth-child(3) { height: 100%; animation-delay: 0.3s; animation-duration: 1.1s; }
.agent-mouth.is-speaking span:nth-child(4) { height: 55%; animation-delay: 0.1s; animation-duration: 1s; }
.agent-mouth.is-speaking span:nth-child(5) { height: 35%; animation-delay: 0.25s; animation-duration: 1.2s; }
@keyframes agent-talk {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
.agent-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lead);
  color: var(--smoke);
  max-width: 32ch;
}
.agent-face.is-recording { box-shadow: 0 0 0 3px var(--voltage), 0 0 50px 12px var(--stage-color-soft); animation: va-pulse 1.4s ease-in-out infinite; }
.agent-face.is-thinking { box-shadow: 0 0 0 3px var(--stage-color), 0 0 50px 12px var(--stage-color-soft); }
@keyframes va-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .agent-eye, .agent-mouth.is-speaking span, .agent-face.is-recording { animation: none; }
  .agent-mouth span { transform: scaleY(0.6); }
}

/* -- voice agent widget -- */
.va-hint {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--smoke-dim);
  max-width: 34ch;
}
.va-widget {
  width: 100%;
  max-width: 30rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.va-mic {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.va-mic:hover { border-color: var(--stage-color); transform: translateY(-2px); }
.va-mic.is-recording { border-color: var(--voltage); background: rgba(127, 233, 201, 0.1); }
.va-mic:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.va-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stage-color);
  min-height: 1.2em;
}
.va-transcript {
  width: 100%;
  max-height: 16rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: start;
}
.va-transcript:empty { display: none; }
.va-turn {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  background: var(--charcoal);
}
.va-turn-user { align-self: flex-end; background: var(--charcoal-2); }
.va-turn-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--smoke);
  margin-bottom: 0.25rem;
}
.va-textform {
  width: 100%;
  display: flex;
  gap: 0.6rem;
}
.va-textform input {
  flex: 1;
  min-width: 0;
  background: var(--charcoal);
  border: 1px solid var(--line);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.va-textform input:focus { border-color: var(--stage-color); }
.va-textform button {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.va-textform button:hover { border-color: var(--paper); }
:root[lang="ar"] .va-turn-role { letter-spacing: normal; text-transform: none; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding: var(--section-pad) 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--stage-color);
  margin-bottom: 1.25rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.step p {
  color: var(--smoke);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY
   ============================================================ */
.why { padding: calc(var(--section-pad) * 0.6) 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.why-grid h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.why-grid p {
  color: var(--smoke);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (max-width: 780px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta {
  padding: var(--section-pad) 0 calc(var(--section-pad) * 1.2);
  text-align: start;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.05;
  margin-bottom: 1.75rem;
}
.cta-subhead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.5vw + 1rem, 1.6rem);
  color: var(--paper);
  max-width: 34ch;
  margin-bottom: 1.25rem;
}
.email-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--paper);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cta-email:hover {
  color: var(--stage-color);
  border-color: var(--stage-color);
}
.copy-email {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--smoke);
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 0.2rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.copy-email:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}
.copy-email.is-copied {
  color: var(--voltage);
  border-color: var(--voltage);
}
.socials {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--smoke);
}
.socials a { transition: color 0.25s var(--ease); }
.socials a:hover { color: var(--paper); }

/* -- contact grid: book a call / write directly -- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 3rem 0 3.5rem;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.contact-card .eyebrow { margin-bottom: 0; }
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
}
.contact-card-text {
  color: var(--smoke);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.contact-card > .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.25rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smoke);
}
.form-row input,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.5rem 0.1rem;
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--stage-color);
}
.contact-form > .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-height: 1.2em;
  color: var(--smoke);
}
.form-status.is-success { color: var(--voltage); }
.form-status.is-error { color: var(--ember-2); }

.contact-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ============================================================
   TRAVAUX (work grid page)
   ============================================================ */
.work-header {
  padding: calc(var(--section-pad) + 3rem) var(--gutter) 2rem;
  max-width: 72rem;
  margin: 0 auto;
}
.work-header .h2 { max-width: 28ch; margin-bottom: 1rem; }
.work-header .lead { margin-bottom: 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem var(--gutter) var(--section-pad);
  max-width: 72rem;
  margin: 0 auto;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--charcoal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
a.work-card:hover {
  border-color: var(--stage-color);
  transform: translateY(-3px);
}
.work-card-image {
  aspect-ratio: 16 / 10;
  background: var(--charcoal-2) center / cover no-repeat;
}
.work-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.work-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
}
.work-card p {
  color: var(--smoke);
  font-size: 0.95rem;
  line-height: 1.5;
}
.work-empty {
  color: var(--smoke);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 2rem var(--gutter) var(--section-pad);
  max-width: 72rem;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.5rem var(--gutter) 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--smoke-dim);
  border-top: 1px solid var(--line);
}
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a, .footer-legal button {
  color: var(--smoke-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--paper); }

/* ============================================================
   LEGAL PAGES (mentions légales / confidentialité)
   ============================================================ */
.legal-header {
  padding: calc(var(--section-pad) + 3rem) var(--gutter) 2rem;
  max-width: 72rem;
  margin: 0 auto;
}
.legal-header .h2 { max-width: none; margin-bottom: 0.5rem; }
.legal-updated { color: var(--smoke); font-family: var(--font-mono); font-size: 0.8rem; }
.legal-content {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  color: var(--paper);
}
.legal-content p, .legal-content li {
  color: var(--smoke);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 68ch;
}
.legal-content p + p { margin-top: 0.9rem; }
.legal-content ul { margin-top: 0.5rem; padding-inline-start: 1.2rem; list-style: disc; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--voltage); text-decoration: underline; }
.placeholder {
  background: rgba(232, 100, 43, 0.22);
  color: var(--paper);
  padding: 0.1em 0.5em;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ============================================================
   COOKIE CONSENT BANNER — injected by cookies.js
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 500;
  max-width: 46rem;
  margin: 0 auto;
  background: var(--charcoal);
  border: 1px solid var(--line-strong);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.cookie-banner h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--paper);
}
.cookie-banner p {
  color: var(--smoke);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 60ch;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.cookie-actions button {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.cookie-actions button:hover { transform: translateY(-1px); }
.cookie-accept-all, .cookie-reject-all {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  font-weight: 600;
}
.cookie-accept-all:hover, .cookie-reject-all:hover { background: var(--ember-2); border-color: var(--ember-2); }
.cookie-customize { background: none; color: var(--smoke); }
.cookie-customize:hover { border-color: var(--paper); color: var(--paper); }

.cookie-panel {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cookie-panel[hidden] { display: none; }
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.cookie-category-copy h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--paper);
  margin-bottom: 0.2rem;
}
.cookie-category-copy p { font-size: 0.82rem; margin: 0; }
.cookie-toggle {
  position: relative;
  width: 2.6rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--charcoal-2);
  cursor: pointer;
}
.cookie-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--smoke);
  transition: inset-inline-start 0.2s var(--ease), background 0.2s var(--ease);
}
.cookie-toggle.is-on { border-color: var(--voltage); }
.cookie-toggle.is-on::after { inset-inline-start: calc(100% - 1.3rem); background: var(--voltage); }
.cookie-toggle.is-disabled { opacity: 0.5; cursor: not-allowed; }
.cookie-save {
  align-self: flex-start;
  background: var(--ember);
  color: var(--ink);
  border-color: var(--ember);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}
@media (max-width: 560px) {
  .cookie-banner { padding: 1.25rem; }
  .cookie-actions button { flex: 1 1 auto; }
}

/* ============================================================
   RTL / ARABIC — tracked-out mono type doesn't work on Arabic script,
   letters need to stay joined and untransformed
   ============================================================ */
:root[lang="ar"] .eyebrow,
:root[lang="ar"] .section-tag,
:root[lang="ar"] .nav-links a,
:root[lang="ar"] .nav-cta,
:root[lang="ar"] .lang-current,
:root[lang="ar"] .lang-menu button,
:root[lang="ar"] .scroll-cue,
:root[lang="ar"] .principles li,
:root[lang="ar"] .station-tags,
:root[lang="ar"] .form-row label,
:root[lang="ar"] .hero-title,
:root[lang="ar"] .h2,
:root[lang="ar"] .step-num {
  letter-spacing: normal;
  text-transform: none;
}
