/* Power Future — Editorial Dark */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --fg: #f5f4ef;
  --fg-dim: #a8a59c;
  --fg-faint: #555048;
  --line: rgba(245, 244, 239, 0.12);
  --line-strong: rgba(245, 244, 239, 0.28);
  --accent: oklch(0.74 0.14 55);   /* warm amber */
  --accent-soft: oklch(0.74 0.14 55 / 0.15);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --maxw: 1440px;
}

[data-theme="light"] {
  --bg: #f5f3ed;
  --bg-2: #ebe8e0;
  --bg-3: #e0dcd1;
  --fg: #0c0b09;
  --fg-dim: #4a463e;
  --fg-faint: #8a857a;
  --line: rgba(12, 11, 9, 0.14);
  --line-strong: rgba(12, 11, 9, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ============ TYPE SCALE ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-size: clamp(56px, 9vw, 168px);
}
.display em { font-style: italic; color: var(--fg-dim); }
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(48px, 7vw, 120px);
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 4.5vw, 72px);
}
.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.lede {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--fg-dim);
  max-width: 56ch;
  text-wrap: pretty;
}
.body { font-size: 15px; line-height: 1.6; color: var(--fg-dim); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }

/* ============ LAYOUT ============ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.section { padding: 120px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 72px 0; } }

.row { display: flex; gap: 24px; }
.between { justify-content: space-between; align-items: center; }
.col { display: flex; flex-direction: column; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .nav { padding: 14px 20px; } }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-mark {
  width: 22px; height: 22px;
  background: var(--fg);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%);
}
.brand-name { display: flex; gap: 6px; }
.brand-name b { font-weight: 600; }
.brand-name span { color: var(--fg-dim); }

.nav-links {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding: 6px 0; color: var(--fg-dim); transition: color .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--accent);
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 20px; }

/* Language switcher */
.lang {
  display: flex; gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  position: relative;
}
.lang button {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--fg-dim);
  transition: color .25s ease;
  z-index: 1;
  position: relative;
}
.lang button.on { color: var(--bg); }
.lang-pill {
  position: absolute;
  top: 3px; bottom: 3px;
  background: var(--fg);
  border-radius: 999px;
  transition: left .4s cubic-bezier(.2,.8,.2,1), width .4s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}

.menu-btn {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .35s ease;
}

/* ── three lines: same 16px width ── */
.menu-btn span {
  display: block;
  width: 16px; height: 2px;
  background: var(--fg);
  border-radius: 1px;
  position: relative;
  /* middle line: fade by making it transparent (NOT opacity — that would also hide ::before/::after) */
  transition: background .2s ease .05s;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  /* outer lines: travel to centre + rotate */
  transition: transform .42s cubic-bezier(.4,0,.2,1), background .2s ease;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after  { top:  5px; }

/* ── X state ──
   top line  : moves down 5px → centre → rotates +45°
   mid line  : background → transparent (pseudo-elements stay visible)
   bot line  : moves up 5px  → centre → rotates −45°
   Result    : perfect X, same 16px footprint as hamburger            */
.menu-btn.is-open {
  border-color: var(--line-strong);
}
.menu-btn.is-open span {
  background: transparent;   /* hide middle bar only — pseudo-elements unaffected */
}
.menu-btn.is-open span::before {
  transform: translateY(5px) rotate(45deg);
}
.menu-btn.is-open span::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Mobile menu overlay — nav bar (z-index 100) sits on top so the
   hamburger/X button in the nav bar is always reachable */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 80px 32px 40px;   /* 80px top = clear nav bar (~60px) + breathing room */
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); pointer-events: auto; }
@media (max-width: 720px) {
  .mobile-menu { padding: 72px 20px 36px; }
}

/* Nav links inside mobile menu */
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(30px, 9.5vw, 44px);
  line-height: 1.1;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-dim);
  transition: color .2s ease;
}
.mobile-menu a:first-of-type { border-top: 1px solid var(--line); }
.mobile-menu a:hover { color: var(--fg); }
.mobile-menu a.active { color: var(--accent); }

/* Footer row — language switcher + theme toggle */
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  border: 1px solid var(--line-strong);
}
.btn:hover { transform: translateY(-1px); }
.btn .dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.btn:hover .dot { transform: scale(1.4); }
.btn-primary {
  background: var(--fg); color: var(--bg);
  border-color: var(--fg);
}
.btn-primary .dot { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-accent { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.btn-accent .dot { background: #0a0a0a; }

/* ============ HERO ============ */
.hero {
  padding: 140px 32px 80px;   /* fixed spacing top/bottom — no viewport stretch */
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.025em;
  font-size: clamp(64px, 12vw, 220px);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line .inner { display: block; }
.hero-title em { font-style: italic; color: var(--fg-dim); }
.hero-title .accent { color: var(--accent); }

.scroll-indicator {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.scroll-indicator::before {
  content: ""; width: 1px; height: 36px; background: var(--fg-dim);
  animation: scrollLine 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); }
  40% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg);
}
.marquee-track {
  display: inline-flex; gap: 56px;
  animation: marquee 38s linear infinite;
}
.marquee-track > span {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  font-style: italic;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee-track > span::after {
  content: "✦"; color: var(--accent); font-style: normal;
  font-size: 0.7em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--bg);
  padding: 48px 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 220px;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.stat-num small {
  font-size: 0.4em;
  color: var(--accent);
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: auto;
}

/* ============ CARDS / GRID ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: var(--line-strong); }
.card-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.card-body { color: var(--fg-dim); font-size: 14px; line-height: 1.55; }
.card-arrow {
  align-self: flex-start;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  margin-top: auto;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.card:hover .card-arrow { background: var(--accent); color: #0a0a0a; transform: rotate(-45deg); border-color: var(--accent); }

/* ============ INDUSTRY LIST ============ */
.industry-list { display: flex; flex-direction: column; }
.industry-row {
  display: grid;
  grid-template-columns: 80px 1fr auto 80px;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: padding .35s cubic-bezier(.2,.8,.2,1);
}
.industry-row:last-child { border-bottom: 1px solid var(--line); }
.industry-row::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent-soft);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  z-index: 0; border-radius: 4px;
}
.industry-row:hover::before { transform: scaleX(1); }
.industry-row > * { position: relative; z-index: 1; }
.industry-row:hover { padding-left: 24px; padding-right: 24px; }
.industry-num { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.1em; }
.industry-name { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 56px); line-height: 1; }
.industry-tags { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.industry-arrow {
  font-family: var(--serif); font-size: 32px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  text-align: right;
}
.industry-row:hover .industry-arrow { transform: translateX(12px); color: var(--accent); }
@media (max-width: 720px) {
  .industry-row { grid-template-columns: 40px 1fr auto; padding: 20px 0; gap: 12px; }
  .industry-tags { display: none; }
}

/* ============ IMAGE PLACEHOLDER ============ */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-3) 0, var(--bg-3) 8px,
      var(--bg-2) 8px, var(--bg-2) 16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  overflow: hidden;
}
.img-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%);
  opacity: 0.3;
}
.img-placeholder span { position: relative; z-index: 1; padding: 8px 12px; background: var(--bg); border-radius: 4px; border: 1px solid var(--line); }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .4s; }

.line-reveal { overflow: hidden; }
.line-reveal > * {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.2,.85,.25,1);
}
.line-reveal.in > * { transform: translateY(0); }
.line-reveal.d1 > * { transition-delay: .1s; }
.line-reveal.d2 > * { transition-delay: .2s; }
.line-reveal.d3 > * { transition-delay: .3s; }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer li a { color: var(--fg); transition: color .25s ease; }
.footer li a:hover { color: var(--accent); }
.footer-big {
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-transform: uppercase;
  flex-wrap: wrap; gap: 12px;
}

/* ============ FORMS ============ */
.field {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.field input, .field textarea, .field select {
  background: none;
  border: none;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  padding: 4px 0;
  outline: none;
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field:focus-within { border-bottom-color: var(--accent); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: all .25s ease;
  cursor: pointer;
}
.chip:hover { color: var(--fg); border-color: var(--line-strong); }
.chip.on { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }

/* ============ ACCORDION ============ */
.accordion-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.accordion-item:last-child { border-bottom: 1px solid var(--line); }
.accordion-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.accordion-q {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}
.accordion-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  transition: transform .35s ease, background .25s ease;
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { background: var(--accent); color: #0a0a0a; border-color: var(--accent); transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.2,.8,.2,1);
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}
.accordion-item.open .accordion-body { max-height: 400px; padding-top: 16px; }

/* ============ PROCESS ============ */
.process { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  color: var(--accent);
}
@media (max-width: 720px) {
  .process-step { grid-template-columns: 1fr; gap: 12px; }
}

/* ============ CURSOR ============ */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 20px; height: 20px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease, border-radius .25s ease;
  mix-blend-mode: difference;
}
.cursor.hover { width: 60px; height: 60px; background: var(--fg); }
@media (max-width: 900px) { .cursor { display: none; } }

/* ============ PAGE TRANSITION ============ */
.page {
  animation: pageIn .8s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* page transition overlay */
.page-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--accent);
  transform: translateY(100%);
  pointer-events: none;
}
.page-overlay.in { animation: overlayIn .8s cubic-bezier(.7,0,.3,1) forwards; }
.page-overlay.out { animation: overlayOut .8s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes overlayIn { to { transform: translateY(0); } }
@keyframes overlayOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* ============ HOVER TEXT ============ */
.hover-stagger { display: inline-flex; }
.hover-stagger span {
  display: inline-block;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.hover-stagger:hover span { transform: translateY(-2px); color: var(--accent); }
.hover-stagger span:nth-child(2) { transition-delay: .03s; }
.hover-stagger span:nth-child(3) { transition-delay: .06s; }
.hover-stagger span:nth-child(4) { transition-delay: .09s; }
.hover-stagger span:nth-child(5) { transition-delay: .12s; }
.hover-stagger span:nth-child(6) { transition-delay: .15s; }
.hover-stagger span:nth-child(7) { transition-delay: .18s; }
.hover-stagger span:nth-child(8) { transition-delay: .21s; }
.hover-stagger span:nth-child(9) { transition-delay: .24s; }
.hover-stagger span:nth-child(10) { transition-delay: .27s; }

/* ============ MISC ============ */
.divider {
  height: 1px; background: var(--line);
  margin: 24px 0;
}
.tag-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.tag-row span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 32px;
}
.kicker::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}

.country-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 720px) { .country-grid { grid-template-columns: repeat(2, 1fr); } }
.country-cell {
  background: var(--bg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 120px;
  transition: background .3s ease;
}
.country-cell:hover { background: var(--bg-2); }
.country-flag {
  width: 32px; height: 22px;
  border-radius: 3px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.country-name { font-family: var(--serif); font-size: 22px; line-height: 1; }
.country-count { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.06em; margin-top: auto; }

/* ============ REGISTRATION WIZARD MODAL ============ */
.wizard-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: backdropIn .4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes backdropIn {
  from { opacity: 0; backdrop-filter: blur(0); }
  to { opacity: 1; backdrop-filter: blur(16px); }
}
.wizard {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: wizardIn .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes wizardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wizard-progress {
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.wizard-progress-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}

.wizard-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.wizard-step-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.wizard-step-label b { color: var(--accent); font-weight: 400; }
.wizard-close {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s ease, color .25s ease, transform .35s ease;
  font-family: var(--mono);
  font-size: 14px;
}
.wizard-close:hover { background: var(--fg); color: var(--bg); transform: rotate(90deg); border-color: var(--fg); }

.wizard-body {
  padding: 36px 28px 28px;
  overflow-y: auto;
  flex: 1;
}
.wizard-step {
  animation: stepIn .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}
.wizard-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.wizard-title em { font-style: italic; color: var(--fg-dim); }
.wizard-sub {
  font-size: 15px;
  color: var(--fg-dim);
  margin-bottom: 28px;
  line-height: 1.5;
  max-width: 50ch;
}

.wizard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.wizard-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .wizard-grid { grid-template-columns: 1fr; }
}

.wizard-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .wizard-options { grid-template-columns: 1fr; } }
.wizard-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
  text-align: left;
  background: none;
  font-size: 15px;
  color: var(--fg);
}
.wizard-option:hover { border-color: var(--line-strong); background: var(--bg-2); }
.wizard-option .check {
  width: 20px; height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative; flex-shrink: 0;
  transition: background .25s ease, border-color .25s ease;
}
.wizard-option.on { border-color: var(--accent); background: var(--accent-soft); }
.wizard-option.on .check { background: var(--accent); border-color: var(--accent); }
.wizard-option.on .check::after {
  content: ""; position: absolute;
  left: 5px; top: 9px;
  width: 8px; height: 4px;
  border-left: 1.5px solid #0a0a0a;
  border-bottom: 1.5px solid #0a0a0a;
  transform: rotate(-45deg);
}

.wizard-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  gap: 16px;
}
.wizard-back, .wizard-next {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.wizard-back { color: var(--fg-dim); }
.wizard-back:hover { color: var(--fg); }
.wizard-back:disabled { opacity: 0.3; pointer-events: none; }
.wizard-next {
  background: var(--accent); color: #0a0a0a; border-color: var(--accent);
}
.wizard-next:hover { transform: translateX(2px); }
.wizard-next:disabled { opacity: 0.4; pointer-events: none; }
.wizard-next .arrow { transition: transform .3s ease; }
.wizard-next:hover .arrow { transform: translateX(4px); }

.wizard-dots {
  display: flex; gap: 6px;
  align-items: center;
}
.wizard-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background .35s ease, width .35s ease;
}
.wizard-dot.on { background: var(--accent); width: 24px; border-radius: 3px; }
.wizard-dot.done { background: var(--fg-dim); }

/* upload */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone .upload-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
  transition: background .25s ease, color .25s ease;
}
.upload-zone:hover .upload-icon { background: var(--accent); color: #0a0a0a; }
.upload-zone p { color: var(--fg); font-size: 15px; margin: 0; }
.upload-zone small {
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Success */
.wizard-success {
  text-align: center;
  padding: 40px 20px;
}
.wizard-success .success-mark {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 48px;
  margin: 0 auto 24px;
  animation: pop .5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.wizard-success h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.wizard-success p { color: var(--fg-dim); font-size: 17px; max-width: 44ch; margin: 0 auto; line-height: 1.5; }

.wizard-summary {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.wizard-summary h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.wizard-summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.wizard-summary-row:first-of-type { border-top: none; }
.wizard-summary-row span:first-child { color: var(--fg-dim); }
.wizard-summary-row span:last-child { color: var(--fg); text-align: right; max-width: 60%; }

/* Map */
.map-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.map-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.map-dot::after {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%; background: var(--accent);
  opacity: 0.3; animation: pulse 2s ease-out infinite;
}
.map-dot.home::before {
  content: ""; position: absolute; inset: -3px;
  border: 1px solid var(--fg); border-radius: 50%;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Job listing rows */
.job-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 60px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  transition: padding .3s ease;
  cursor: pointer;
}
.job-row:last-child { border-bottom: 1px solid var(--line); }
.job-row:hover { padding-left: 16px; padding-right: 16px; background: var(--bg-2); }
.job-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.job-meta { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.job-arrow {
  font-family: var(--serif); font-size: 28px;
  transition: transform .3s ease, color .3s ease;
}
.job-row:hover .job-arrow { color: var(--accent); transform: translateX(6px); }
@media (max-width: 720px) {
  .job-row { grid-template-columns: 1fr 60px; gap: 8px; padding: 16px 0; }
  .job-row .job-meta { display: none; }
}

/* ============ MOBILE RESPONSIVE IMPROVEMENTS ============ */

/* NAV: on very small screens hide the lang switcher from the top bar
   (it is available inside the mobile menu instead) */
@media (max-width: 520px) {
  .nav-right .lang { display: none; }
}

/* HERO: reduce top padding on all mobile/tablet sizes (nav is ~60px) */
@media (max-width: 900px) { .hero { padding-top: 120px; } }
@media (max-width: 720px) { .hero { padding-top: 108px; padding-bottom: 60px; padding-left: 20px; padding-right: 20px; } }
/* prevent title from being oversized on tiny phones */
@media (max-width: 420px) {
  .hero-title { font-size: clamp(42px, 13.5vw, 220px); }
}

/* SECTION: tighter vertical rhythm on mobile */
@media (max-width: 600px) { .section { padding: 64px 0; } }
@media (max-width: 420px) { .section { padding: 48px 0; } }

/* STATS: tighter padding on small screens */
@media (max-width: 600px) {
  .stat { padding: 28px 18px; min-height: 160px; }
}

/* CARDS: tighter padding */
@media (max-width: 600px) { .card { padding: 20px 16px; } }

/* INDUSTRY LIST: smaller name font on very small screens */
@media (max-width: 480px) {
  .industry-name { font-size: clamp(22px, 7.5vw, 56px); }
}

/* FOOTER: 1-column layout on small mobile */
@media (max-width: 600px) {
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-big { font-size: clamp(48px, 16vw, 220px); padding: 20px 0; }
}

/* BLOG ADMIN: tighter wrap padding + responsive grids */
@media (max-width: 600px) {
  .admin-main  { padding: 20px 16px 56px !important; }
  .admin-meta-grid { grid-template-columns: 1fr !important; }
  .admin-tabs-bar  { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 2px !important; }
  .admin-tabs-bar button { padding: 7px 12px !important; font-size: 10px !important; white-space: nowrap; }
}
/* Admin top bar: tighter on mobile */
@media (max-width: 600px) {
  .admin-topbar { padding: 14px 16px !important; }
}

/* Hero side padding is inherited from .wrap — no override needed */

/* BUTTON TOUCH TARGETS: ensure min 44px height on mobile */
@media (max-width: 900px) {
  .btn { min-height: 44px; padding: 12px 20px; }
  .chip { min-height: 40px; padding: 9px 14px; }
}

/* DISPLAY TEXT: avoid overflow on very small screens */
@media (max-width: 480px) {
  .display { font-size: clamp(40px, 11vw, 168px); }
}

/* WIZARD: tighter padding on mobile */
@media (max-width: 480px) {
  .wizard-body { padding: 24px 20px 20px; }
  .wizard-foot { padding: 16px 20px; }
  .wizard-head { padding: 16px 20px; }
}
