:root {
  --cream: #F5F0E5;
  --ink: #191714;
  --rust: #B44E2B;
  --stone: #7D756D;
  --pale: #EAE3D4;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --px: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1D1A16;
    --ink: #EDE7DC;
    --rust: #D4714A;
    --stone: #988F85;
    --pale: #29251F;
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── GRAIN ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--px);
  z-index: 100;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245, 240, 229, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px var(--px);
  border-color: var(--pale);
}
@media (prefers-color-scheme: dark) {
  .nav.scrolled { background: rgba(29, 26, 22, 0.96); }
}
.nav-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px;
  color: var(--rust);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid var(--rust);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: opacity 0.18s;
}
.nav-cta:hover { opacity: 0.7; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid var(--pale);
  padding-left: 24px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 400;
  padding: 0;
  transition: color 0.18s;
  line-height: 1;
}
.lang-btn.active { color: var(--ink); font-weight: 500; }
.lang-dot { font-size: 11px; color: var(--pale); }

/* ── HERO ── */
.hero {
  padding: 160px var(--px) 100px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--stone);
  font-weight: 400;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s ease forwards 0.3s;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8.5vw, 110px);
  font-weight: 300;
  line-height: 1.01;
  letter-spacing: -0.03em;
  max-width: 14ch;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s ease forwards 0.5s;
}
.hero-h1 .r { color: var(--rust); }
.hero-rule {
  width: 44px;
  height: 1px;
  background: var(--stone);
  opacity: 0;
  margin: 48px 0;
  animation: fadeUp 0.6s ease forwards 0.8s;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 21px);
  max-width: 50ch;
  line-height: 1.62;
  color: var(--stone);
  font-weight: 300;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s ease forwards 1s;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── SECTIONS ── */
.sec {
  padding: 100px var(--px);
  border-top: 1px solid var(--pale);
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--stone);
  font-weight: 400;
  margin-bottom: 64px;
  display: block;
}

/* ── SERVICE CARDS ── */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.card {
  background: var(--pale);
  padding: 44px 38px;
  transition: background 0.22s;
}
.card:hover { background: #F2EDE3; }
@media (prefers-color-scheme: dark) { .card:hover { background: #312C25; } }
.card-num {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--rust);
  letter-spacing: 0.1em;
  font-weight: 300;
  margin-bottom: 24px;
  display: block;
}
.card-for {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--stone);
  font-weight: 400;
  margin-bottom: 6px;
  display: block;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.card-body { font-size: 15px; line-height: 1.76; color: var(--stone); font-weight: 300; }

/* ── MANDATE CARDS ── */
.mandates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pale);
}
.mandate-card {
  background: var(--cream);
  padding: 48px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mandate-logo { height: 126px; display: flex; align-items: center; justify-content: center; }
.mandate-logo img {
  height: 100%;
  width: auto;
  max-width: 450px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
}
.mandate-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--stone);
  font-weight: 300;
  text-align: center;
}

/* ── LOGOS MARQUEE ── */
.logos-sec {
  padding: 80px 0;
  border-top: 1px solid var(--pale);
}
.logos-header { padding: 0 var(--px); margin-bottom: 52px; }
.logos-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.logos-sub { font-size: 15px; color: var(--stone); font-weight: 300; line-height: 1.55; }
.logos-marquee { overflow: hidden; width: 100%; position: relative; }
.logos-marquee::before,
.logos-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.logos-marquee::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.logos-marquee::after  { right: 0; background: linear-gradient(to left, var(--cream), transparent); }
.logos-track {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: marquee 90s linear infinite;
  width: max-content;
  padding: 10px 0;
}
.logos-track:hover { animation-play-state: paused; }
.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.45;
  transition: opacity 0.25s;
  flex-shrink: 0;
}
.logo-img:hover { opacity: 0.8; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── PROCESS ── */
.proc-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 72px; align-items: start; }
.proc-sub {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 16px;
  line-height: 1.2;
}
.proc-body { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.73; font-weight: 300; }
.proc-body p + p { margin-top: 24px; }

/* ── ABOUT ── */
.about {
  background: var(--ink);
  color: var(--cream);
  padding: 100px var(--px);
  border-top: 1px solid var(--pale);
}
.about-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 88px; align-items: start; }
.about-img {
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
  background: #262118;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #333029;
}
.about-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #504B45;
  font-weight: 400;
  margin-bottom: 30px;
  display: block;
}
.about-body { font-size: clamp(15px, 1.4vw, 19px); line-height: 1.76; font-weight: 300; color: #C5BBB0; }
.about-body p + p { margin-top: 20px; }
.about-meta {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid #262118;
  font-size: 11px;
  color: #504B45;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  border-top: 1px solid #201D19;
  padding: 36px var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-name { font-family: var(--serif); font-size: 15px; color: #645D55; }
.footer-links { display: flex; align-items: center; gap: 28px; }
.footer-cta {
  font-size: 13px;
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
  padding-bottom: 1px;
}
.footer-email { font-size: 13px; color: #645D55; text-decoration: none; transition: color 0.18s; }
.footer-email:hover { color: #9A9088; }
.footer-copy { font-size: 12px; color: #443F3A; letter-spacing: 0.06em; }

/* ── SCROLL REVEALS ── */
.rev {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.rev.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  :root { --px: 24px; }

  .nav { padding: 20px var(--px); }
  .nav.scrolled { padding: 16px var(--px); }
  .nav-links li:not(:last-child) { display: none; }
  .nav-right { gap: 16px; }
  .lang-toggle { padding-left: 16px; }

  .hero { padding: 120px var(--px) 64px; min-height: 90svh; }
  .hero-rule { margin: 36px 0; }

  .sec { padding: 72px var(--px); }
  .eyebrow { margin-bottom: 44px; }

  .grid3 { grid-template-columns: 1fr; }
  .mandates-grid { grid-template-columns: 1fr; }

  .logos-header { margin-bottom: 36px; }

  .proc-wrap { grid-template-columns: 1fr; gap: 36px; }
  .proc-sub { margin-top: 8px; }

  .about { padding: 72px var(--px); }
  .about-wrap { grid-template-columns: 1fr; gap: 44px; }
  .about-img { aspect-ratio: 4/3; max-height: 280px; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px var(--px);
  }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 14px; }
}
