:root {
  --primary: #0E0F11;
  --neutral: #FCFBF7;
  --muted: #5E6065;
  --rule: #E5E0D5;
  --accent: #E85A1A;
  --accent-quiet: #FFE6D5;
  --accent-ink: #FCFBF7;
  --accent-hover: #D44A0F;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--neutral);
  color: var(--primary);
  font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--primary); color: var(--neutral);
  padding: 10px 16px; z-index: 200; transition: top 160ms ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; border-top: 1px solid var(--rule); }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.eyebrow {
  font-size: 12px; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 16px;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin-bottom: 16px; }
.section-lede { font-size: 18px; color: var(--muted); max-width: 700px; margin-bottom: 48px; }
.em { color: var(--accent); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(252, 251, 247, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.logo .dot { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-menu { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-menu a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color 180ms ease; }
.nav-menu a:hover { color: var(--primary); }

.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.lang a { text-decoration: none; color: var(--muted); padding: 4px 6px; min-height: 44px; display: inline-flex; align-items: center; }
.lang a.active { color: var(--primary); font-weight: 700; }
.lang .bar { color: var(--rule); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--rule);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); transition: transform 220ms ease, opacity 220ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-right { gap: 12px; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--neutral); border-bottom: 1px solid var(--rule);
    padding: 8px 24px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu li { border-bottom: 1px solid var(--rule); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a { display: block; padding: 16px 4px; font-size: 17px; color: var(--primary); min-height: 44px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  font-family: inherit; font-size: 15px; font-weight: 700; padding: 15px 26px; min-height: 52px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 180ms ease;
}
.btn-primary { background: var(--primary); color: var(--neutral); border-color: var(--primary); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- HERO (merged with about) ---------- */
.hero { padding-top: 56px; padding-bottom: 84px; border-top: none; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 22px; max-width: 980px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 52px; align-items: start; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--primary); max-width: 620px; margin-bottom: 24px; }
.hero .about p { font-size: 17px; color: var(--muted); margin-bottom: 16px; max-width: 620px; }
.hero .pull {
  font-style: italic; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; color: var(--primary);
  border-left: 3px solid var(--accent); padding-left: 22px; margin-top: 26px;
}
.hero-photo { border: 1px solid var(--rule); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-width: 230px; margin-left: auto; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { max-width: 200px; margin-left: 0; order: -1; }
}

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-top: 44px; }
.stat { padding: 26px 22px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.stat .num { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat .num .em { color: var(--accent); }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* ---------- PROJECTS ---------- */
.projects-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.swiper { padding-bottom: 8px; }
.project-card {
  height: auto; border: 1px solid var(--rule); background: var(--neutral);
  display: flex; flex-direction: column; text-decoration: none;
  transition: border-color 220ms ease, transform 220ms ease;
}
a.project-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.project-card .thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: 1px solid var(--rule); background: var(--accent-quiet); }
.project-card .thumb.contain { object-fit: contain; background: var(--primary); }
.project-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.project-card .cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.project-card h3 { font-size: 20px; line-height: 1.2; }
.project-card p { font-size: 14px; color: var(--muted); flex-grow: 1; }
.project-card .go { font-size: 13px; letter-spacing: 0.04em; color: var(--primary); font-weight: 700; }
.swiper-controls { display: flex; gap: 12px; }
.sw-btn {
  width: 48px; height: 48px; border: 1px solid var(--rule); background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: border-color 180ms ease;
}
.sw-btn:hover { border-color: var(--primary); }
.sw-btn.swiper-button-disabled { opacity: 0.35; cursor: default; }
.swiper-pagination { position: static; margin-top: 28px; }
.swiper-pagination-bullet { background: var(--muted); opacity: 0.4; }
.swiper-pagination-bullet-active { background: var(--accent); opacity: 1; }

/* ---------- TIMELINE ---------- */
.timeline { border-left: 2px solid var(--rule); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 36px 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--neutral);
}
.tl-item.now::before { background: var(--primary); box-shadow: 0 0 0 4px var(--accent-quiet); }
.tl-year { font-weight: 700; font-size: 18px; }
.tl-title { font-weight: 700; margin: 2px 0 4px; }
.tl-desc { color: var(--muted); font-size: 15px; max-width: 640px; }

/* ---------- BOOK ---------- */
.book { background: var(--primary); color: var(--neutral); border-top: none; }
.book .eyebrow { color: rgba(252,251,247,0.6); }
.book h2 { color: var(--neutral); }
.book-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.book-cover { border: 1px solid rgba(252,251,247,0.15); width: 100%; }
.book .quote-line { font-style: italic; font-size: clamp(20px, 2.6vw, 26px); color: var(--accent); margin: 0 0 18px; }
.book p { font-size: 17px; color: rgba(252,251,247,0.78); margin-bottom: 28px; max-width: 560px; }
.book .btn-ghost { color: var(--neutral); border-color: rgba(252,251,247,0.3); }
.book .btn-ghost:hover { border-color: var(--neutral); }
@media (max-width: 740px) { .book-grid { grid-template-columns: 1fr; gap: 32px; } .book-cover { max-width: 240px; } }

/* ---------- PARTNERSHIP (condensed) ---------- */
.partner { background: var(--accent-quiet); border-top: none; }
.partner p { font-size: 18px; max-width: 760px; }
.partner-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.pstat { background: var(--neutral); border: 1px solid var(--rule); padding: 14px 18px; }
.pstat .n { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.pstat .n .em { color: var(--accent); }
.pstat .t { font-size: 12px; color: var(--muted); margin-top: 2px; }
.partner .deal { font-size: 16px; color: var(--muted); max-width: 760px; margin-bottom: 28px; }
.partner .deal strong { color: var(--primary); }

/* ---------- TESTIMONIALS ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } }
.quote { border: 1px solid var(--rule); padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: 17px; line-height: 1.5; }
.quote .who { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--neutral);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0;
  object-fit: cover;
}
.quote .who .name { font-weight: 700; font-size: 15px; }
.quote .who .role { font-size: 13px; color: var(--muted); }

/* ---------- VALUES (2-column accordion on desktop) ---------- */
.accordion { border-top: 1px solid var(--rule); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-trigger {
  width: 100%; background: transparent; border: none; font-family: inherit; text-align: left;
  cursor: pointer; padding: 22px 4px; min-height: 44px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; color: var(--primary);
}
.acc-trigger h3 { font-size: clamp(17px, 2vw, 21px); display: inline; }
.acc-trigger .n { color: var(--muted); font-size: 13px; margin-right: 14px; }
.acc-icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--accent); transition: transform 240ms ease, opacity 240ms ease; }
.acc-icon::before { top: 11px; left: 2px; width: 20px; height: 2px; }
.acc-icon::after { left: 11px; top: 2px; width: 2px; height: 20px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height 320ms ease; }
.acc-panel-inner { padding: 0 4px 24px; color: var(--muted); font-size: 16px; max-width: 760px; }

@media (min-width: 900px) {
  .accordion { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: none; }
  .accordion .acc-item { border-top: 1px solid var(--rule); }
}

/* ---------- CTA ---------- */
.cta { background: var(--primary); color: var(--neutral); border-top: none; text-align: center; }
.cta .eyebrow { color: rgba(252,251,247,0.6); }
.cta h2 { color: var(--neutral); }
.cta .section-lede { color: rgba(252,251,247,0.72); margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }
.cta .btn-ghost { color: var(--neutral); border-color: rgba(252,251,247,0.3); }
.cta .btn-ghost:hover { border-color: var(--neutral); }

/* ---------- FOOTER ---------- */
footer { padding: 40px 0; border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: 14px; color: var(--muted); }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--primary); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
