/* EVCMN — shared styles */
:root {
  --paper: oklch(0.97 0.006 80);
  --paper-2: oklch(0.94 0.008 75);
  --ink: oklch(0.18 0.008 260);
  --ink-2: oklch(0.35 0.008 260);
  --ink-3: oklch(0.55 0.008 260);
  --rule: oklch(0.85 0.008 80);
  --rule-strong: oklch(0.3 0.008 260);
  --amber: oklch(0.65 0.15 55);
  --amber-deep: oklch(0.52 0.14 45);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1360px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-size: 16px; line-height: 1.55; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-mark {
  font-family: var(--serif); font-size: 28px; line-height: 1;
  letter-spacing: -0.02em; font-weight: 400;
}
.brand-sub {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; color: var(--ink-2);
  transition: color 0.15s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--amber);
}
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 13px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--rule); border-radius: 2px;
  font-family: var(--mono); font-size: 11px;
}
.lang-toggle button {
  padding: 6px 10px; color: var(--ink-3);
}
.lang-toggle button.on { background: var(--ink); color: var(--paper); }
.nav-burger { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 2px; }
  .nav-burger:hover { background: var(--ink); color: var(--paper); }
  .mobile-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 20px var(--pad-x); gap: 14px;
  }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 120px;
  border-top: 1px solid var(--rule);
  padding: 60px 0 32px;
  background: var(--paper);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer h4 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-3); margin-bottom: 16px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer a { font-size: 14px; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer-brand .brand-logo { height: 48px; }
.footer-brand .brand-mark { font-size: 40px; }
.footer-tag { font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--ink-2); margin-top: 16px; max-width: 320px; }
.footer-meta {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.12em;
  flex-wrap: wrap; gap: 12px;
}

/* ---------- Shared section pieces ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--amber);
}
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.02em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.04; letter-spacing: -0.015em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.01em; }
.lede { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--ink-2); }
.italic { font-style: italic; }
em { font-style: italic; color: var(--ink); }

.rule { height: 1px; background: var(--rule); border: 0; }
.rule-strong { height: 1px; background: var(--rule-strong); border: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 2px;
  font-size: 14px; transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--amber-deep); }
.btn-outline { border-color: var(--rule-strong); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { font-family: var(--serif); font-size: 18px; line-height: 1; }

/* Placeholder: striped SVG style for imagery we don't have yet */
.placeholder {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in oklch, var(--ink) 7%, transparent) 12px 13px),
    var(--paper-2);
  border: 1px solid var(--rule);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.placeholder.has-photo {
  background-repeat: no-repeat;
}
.placeholder.has-photo .placeholder-label,
.placeholder.has-photo .placeholder-tag {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.15);
  color: var(--ink);
}
.placeholder-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-2); background: var(--paper);
  padding: 4px 8px; border: 1px solid var(--rule);
}
.placeholder-tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-3);
}

/* ---------- Utility ---------- */
.hairline-top { border-top: 1px solid var(--rule); }
.hairline-bot { border-bottom: 1px solid var(--rule); }
.mono { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Focus */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- Page-specific sprinkles ---------- */
.hero {
  padding-top: clamp(60px, 9vw, 140px);
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
}
.hero-meta-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-top: 24px; flex-wrap: wrap;
}
.hero-meta {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
  display: flex; gap: 32px; flex-wrap: wrap;
}
.hero-meta span strong { display: block; color: var(--ink); font-weight: 500; margin-top: 4px; font-size: 13px; }

.marquee {
  overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  background: var(--paper);
}
.marquee-track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: marquee 55s linear infinite;
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px);
  color: var(--ink-2);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Numbered service row (editorial) */
.services-list { border-top: 1px solid var(--rule-strong); }
.service-row {
  display: grid; grid-template-columns: 80px 1fr 1fr 120px;
  gap: 32px; padding: 28px 0; align-items: start;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
  cursor: pointer;
}
.service-row:hover { background: color-mix(in oklch, var(--amber) 5%, transparent); }
.service-row .num {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.12em;
}
.service-row .title {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1; letter-spacing: -0.01em;
}
.service-row .desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.service-row .arrow {
  font-family: var(--serif); font-size: 28px; text-align: right;
  color: var(--ink-3); transition: color 0.2s, transform 0.2s;
}
.service-row:hover .arrow { color: var(--amber-deep); transform: translateX(6px); }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 40px 1fr; gap: 16px; }
  .service-row .desc { grid-column: 2; }
  .service-row .arrow { display: none; }
}

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stats > div {
  padding: 32px 24px;
  border-right: 1px solid var(--rule);
}
.stats > div:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: none; }
  .stats > div:nth-child(1), .stats > div:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* World regions */
.regions {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.regions > div {
  background: var(--paper); padding: 32px 28px;
  min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
}
.region-name { font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em; line-height: 1.1; }
.region-list { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.8; }
@media (max-width: 780px) {
  .regions { grid-template-columns: 1fr; }
}

/* Project cards grid */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card { cursor: pointer; }
.project-card .placeholder { aspect-ratio: 4/3; transition: transform 0.4s; }
.project-card:hover .placeholder { transform: scale(1.01); }
.project-card .meta { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 56px; }
.project-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; max-width: 70%; }
.project-card .tag { font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }
.project-card .loc { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* Testimonial / quote */
.quote {
  padding: clamp(60px, 8vw, 120px) 0;
  max-width: 1000px;
}
.quote-mark {
  font-family: var(--serif); font-size: 120px; line-height: 0.8;
  color: var(--amber); margin-bottom: -20px;
}
.quote-body {
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.15; letter-spacing: -0.015em;
}

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }

/* Cursor pulse dot */
.pulse {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}
.pulse::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--amber);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: 2px; padding: 16px; min-width: 220px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.2);
  display: none;
}
.tweaks-panel.on { display: block; }
.tweaks-panel h5 { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin-bottom: 10px; font-weight: 500; }
.tweaks-panel .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.tweaks-panel .row label { font-size: 13px; }

/* Print-friendly */
@media print {
  .nav, .footer, .tweaks-panel { display: none; }
}
