:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f4;
  --ink: #1c1c1e;
  --muted: #6d6d72;
  --accent: #4f8f5b;
  --accent-dark: #3d7248;
  --line: #ececea;
  --dark: #111113;
  --radius: 10px;
  --font-head: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 14px 44px rgba(20, 20, 22, 0.09);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.solid,
.site-header.scrolled {
  background: rgba(17, 17, 19, 0.96);
  backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-left { display: flex; gap: 34px; }
.nav-right { display: flex; gap: 34px; justify-content: flex-end; align-items: center; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.92;
  transition: opacity 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active { opacity: 1; color: #6fbc7d; }
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.site-header:not(.solid):not(.scrolled) .brand span { color: inherit; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
}
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: 0.3s; }
.mobile-nav { display: none; }

/* ---------- Social rail (plain, over hero) ---------- */
.social-rail {
  position: fixed;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 90;
}
.social-rail a {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}
.social-rail a:hover { opacity: 1; transform: translateX(-3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #191512;
}
.hero-media { position: absolute; inset: 0; }
.hero-media iframe {
  width: 100vw; height: 56.25vw;
  min-height: 100vh; min-width: 177.77vh;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 70% 30%, rgba(163, 108, 36, 0.5), transparent 62%),
    radial-gradient(ellipse 70% 60% at 25% 75%, rgba(84, 62, 40, 0.6), transparent 65%),
    #191512;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(14, 12, 10, 0.3); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; color: #fff; }
.hero-stat {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(3rem, 9.5vw, 8rem);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.hero-sub {
  margin-top: 24px;
  font-size: 0.9rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 500;
}
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 25px; height: 42px; border: 1.5px solid rgba(255,255,255,0.65); border-radius: 14px;
  z-index: 2;
}
.scroll-cue::after {
  content: ''; position: absolute; top: 8px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; background: #fff; border-radius: 2px;
  animation: cue 1.6s infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(15px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 120px 40px; position: relative; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); }

.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.headline {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  max-width: 1020px;
}
.headline .accent { color: var(--accent); }
.lead { margin-top: 26px; font-size: 1.15rem; color: var(--muted); max-width: 680px; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--bg); border-block: 1px solid var(--line); padding: 70px 40px; }
.stats-bar-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-item .num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; color: var(--ink); }
.stat-item .num span { color: var(--accent); }
.stat-item .lbl { color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; margin-top: 8px; font-weight: 600; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 32px; margin-top: 64px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Service cards */
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-visual {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #24478f00, #0000), linear-gradient(135deg, var(--accent), #2e5a38);
}
.service-card:nth-child(2n) .service-visual { background: linear-gradient(135deg, #2b2b2e, #131315); }
.service-body { padding: 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; align-items: flex-start; }
.service-body h3 { font-size: 1.35rem; font-weight: 700; }
.service-body p { color: var(--muted); font-size: 0.97rem; flex: 1; }

/* ---------- Logo marquee ---------- */
.logo-marquee { overflow: hidden; padding: 44px 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.logo-track { display: flex; gap: 90px; width: max-content; align-items: center; animation: marquee 32s linear infinite; }
.logo-cell { display: flex; align-items: center; justify-content: center; min-width: 130px; }
.logo-cell img { max-height: 52px; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: 0.6; transition: 0.3s; }
.logo-cell:hover img { filter: none; opacity: 1; }
.logo-cell span { font-family: var(--font-head); font-weight: 700; color: #c2c2bd; font-size: 1.3rem; white-space: nowrap; transition: color 0.3s; }
.logo-cell:hover span { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Philosophy ---------- */
.philosophy { text-align: center; }
.philosophy .lead {
  margin-inline: auto;
  font-size: 1.5rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.5;
  max-width: 850px;
}

/* ---------- Achievements ---------- */
.achievements-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; margin-top: 64px; }
.achievement-badge { text-align: center; }
.achievement-badge img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 18px; }
.badge-placeholder {
  width: 110px; height: 110px; margin: 0 auto 18px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  color: var(--accent); background: #fff;
}
.achievement-badge p { color: var(--muted); font-weight: 600; }

/* ---------- Testimonials ---------- */
.testi-carousel { margin-top: 64px; position: relative; overflow: hidden; }
.testi-track { display: flex; transition: transform 0.5s ease; }
.testi-slide { flex: 0 0 100%; text-align: center; padding: 10px 8%; }
.testi-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 28px; box-shadow: var(--shadow);
}
.testi-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--accent), #2e5a38);
  font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: #fff;
}
.testi-slide blockquote { font-size: 1.4rem; font-family: var(--font-head); font-weight: 500; line-height: 1.5; color: var(--ink); }
.testi-name { margin-top: 26px; font-weight: 700; }
.testi-title { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.testi-nav { display: flex; justify-content: center; gap: 14px; margin-top: 36px; }
.testi-nav button {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid #d8d8d2; background: #fff; color: var(--ink); font-size: 1.1rem;
  transition: 0.25s;
}
.testi-nav button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: var(--dark); color: #fff; }
.cta-band .headline { margin-inline: auto; }
.cta-band .btn { margin-top: 44px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 210px 40px 90px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; }

/* ---------- Archive cards ---------- */
.archive-list { display: flex; flex-direction: column; gap: 36px; }
.archive-card {
  display: grid; grid-template-columns: 340px 1fr; gap: 40px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.archive-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.archive-thumb { min-height: 250px; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-thumb-placeholder {
  width: 100%; height: 100%; min-height: 250px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 3.6rem; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, var(--accent), #2e5a38);
}
.archive-logo-box { width: 100%; height: 100%; min-height: 250px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; padding: 34px; }
.archive-logo-box img { max-height: 92px; width: auto; height: auto; object-fit: contain; }
.archive-body { padding: 34px 38px 34px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.archive-body h3 { font-size: 1.7rem; font-weight: 700; }
.archive-cat {
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 700;
}
.archive-text { color: var(--muted); }
.archive-socials { display: flex; gap: 12px; margin-top: 8px; }
.archive-socials a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #d8d8d2; border-radius: 50%;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  transition: 0.25s;
}
.archive-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- IP / video cards ---------- */
.ip-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
}
.ip-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.ip-card .cover { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.ip-card .cover-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--accent), #2e5a38);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: #fff;
}
.ip-card .body { padding: 28px; }
.ip-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.ip-card p { color: var(--muted); font-size: 0.96rem; }

.video-card {
  border-radius: var(--radius); overflow: hidden; background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.video-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.video-card .frame { aspect-ratio: 16 / 9; width: 100%; border: 0; display: block; }
.video-card .body { padding: 22px 26px; }
.video-card h3 { font-size: 1.1rem; font-weight: 700; }
.video-card p {
  color: var(--accent);
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  margin-top: 6px;
}

/* ---------- Forms ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h3 { font-size: 1.7rem; margin-bottom: 18px; }
.contact-info p, .contact-info a { color: var(--muted); display: block; margin-bottom: 10px; }
.contact-info a:hover { color: var(--accent); }
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  display: block;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d8d8d2;
  border-radius: 6px;
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }

.alert { padding: 16px 20px; border-radius: 8px; margin: 24px 0; font-weight: 500; }
.alert-success { background: rgba(79, 143, 91, 0.1); border: 1px solid var(--accent); color: var(--accent-dark); }
.alert-error { background: rgba(200, 60, 60, 0.07); border: 1px solid #c84040; color: #a83232; }

.empty-note {
  margin-top: 60px; color: var(--muted); font-size: 1.05rem;
  border: 1px dashed #cfcfc7; border-radius: var(--radius);
  padding: 50px; text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #eaeae6; }
.footer-top { text-align: center; padding: 80px 40px 10px; }
.footer-top .brand { color: #fff; }
.footer-top .brand span { color: var(--accent); }
.footer-tagline {
  color: #8f8f95; letter-spacing: 0.34em; text-transform: uppercase;
  font-size: 0.75rem; margin-top: 18px; font-weight: 500;
}
.newsletter-form { display: flex; gap: 12px; max-width: 500px; margin: 32px auto 0; }
.newsletter-form input {
  flex: 1; background: #1b1b1e; border: 1px solid #2e2e33; border-radius: 3px;
  color: #fff; padding: 13px 20px; font-family: var(--font-body); font-size: 0.95rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-note { margin-top: 14px; color: var(--accent); font-size: 0.9rem; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 60px 40px 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}
.footer-col h4 {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #8f8f95; margin-bottom: 18px;
}
.footer-col a { display: block; color: #bcbcc0; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: #bcbcc0; font-size: 0.95rem; }
.footer-socials { display: flex; gap: 18px; }
.footer-socials a { font-size: 0.8rem; font-weight: 600; text-transform: lowercase; margin-bottom: 0 !important; }
.footer-socials a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #232327; text-align: center; padding: 22px; color: #8f8f95; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-left, .nav-right { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; }
  .nav-toggle { display: block; justify-self: end; }
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(17, 17, 19, 0.98);
    color: #fff;
    padding: 16px 32px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .social-rail { display: none; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .archive-card { grid-template-columns: 1fr; }
  .archive-body { padding: 0 28px 30px; }
  .newsletter-form { flex-direction: column; }
  .section { padding: 84px 22px; }
  .hero-stat { white-space: normal; }
}
