:root {
  color-scheme: dark;
  --bg: #07100c;
  --surface: #0d1712;
  --surface-strong: #132019;
  --text: #f2f6f3;
  --muted: #aab8b0;
  --line: rgba(224, 236, 229, 0.15);
  --green: #00a44f;
  --green-bright: #18c86a;
  --green-deep: #007b3b;
  --shadow: rgba(0, 0, 0, 0.34);
  --header: rgba(7, 16, 12, 0.88);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-strong: #e7eee9;
  --text: #102018;
  --muted: #52665b;
  --line: rgba(16, 32, 24, 0.14);
  --shadow: rgba(16, 32, 24, 0.12);
  --header: rgba(244, 247, 245, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
  transition: background-color 180ms ease, color 180ms ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 16px;
  background: #fff;
  color: #08110c;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 4.5%;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled {
  background: var(--header);
  border-color: var(--line);
  box-shadow: 0 12px 32px var(--shadow);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark {
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 750; line-height: 1.15; color: #fff; }
.brand-name span { color: #aebcb4; font-weight: 500; }
html[data-theme="light"] .site-header.is-scrolled .brand-name { color: var(--text); }
html[data-theme="light"] .site-header.is-scrolled .brand-name span { color: var(--muted); }

.desktop-nav { display: flex; gap: 30px; align-items: center; }
.desktop-nav a { position: relative; color: #e8efeb; font-size: 14px; font-weight: 650; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--green-bright);
  transition: right 180ms ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
html[data-theme="light"] .site-header.is-scrolled .desktop-nav a { color: var(--text); }

.header-actions { justify-self: end; display: flex; gap: 10px; }
.theme-toggle, .menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(6, 16, 11, 0.45);
  color: #fff;
  cursor: pointer;
}
.theme-toggle span {
  position: absolute;
  inset: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 7px -7px 0 -4px currentColor;
}
html[data-theme="light"] .site-header.is-scrolled .theme-toggle,
html[data-theme="light"] .site-header.is-scrolled .menu-toggle { color: var(--text); border-color: var(--line); background: var(--surface); }
.menu-toggle { display: none; padding: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: 92vh;
  height: 860px;
  max-height: 980px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #07100c;
}
.hero-image { position: absolute; inset: -3% 0; width: 100%; height: 106%; object-fit: cover; object-position: center; will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: rgba(3, 10, 7, 0.42); }
.hero-content { position: relative; z-index: 2; width: min(760px, 48%); margin-left: 7%; padding-top: 54px; color: #fff; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--green-bright); font-size: 13px; line-height: 1.2; font-weight: 800; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; font-size: 64px; line-height: 1.02; font-weight: 790; }
.hero-tagline { margin: 25px 0 0; font-size: 22px; font-weight: 650; color: #c8d5cd; }
.hero-copy { max-width: 590px; margin: 17px 0 0; color: #d9e2dc; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 14px 34px rgba(0, 164, 79, 0.25); }
.button-primary:hover { background: var(--green-bright); color: #07100c; }
.button-secondary { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: rgba(3, 10, 7, 0.44); }
.button-secondary:hover { border-color: #fff; background: rgba(3, 10, 7, 0.7); }
.hero-scroll { position: absolute; z-index: 2; left: 7%; bottom: 27px; display: inline-flex; align-items: center; gap: 10px; color: #d9e2dc; font-size: 12px; text-transform: uppercase; font-weight: 700; }
.hero-scroll span { width: 42px; height: 1px; background: var(--green-bright); }

.section { padding: 112px 0; }
.section-shell { width: min(1180px, 88%); margin: 0 auto; }
.section-heading { max-width: 650px; }
.section-heading-wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; max-width: none; align-items: end; }
.section-heading-wide .kicker { grid-column: 1 / -1; }
.section-heading-wide p:last-child { margin: 0 0 8px; color: var(--muted); }
h2 { margin: 0; font-size: 42px; line-height: 1.16; font-weight: 760; }
h3 { margin: 0; font-size: 21px; line-height: 1.3; }
p { margin-top: 0; }
.intro { background: var(--surface); }
.intro-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 90px; align-items: start; }
.intro-copy { font-size: 20px; color: var(--muted); }
.intro-copy p:last-child { margin-bottom: 0; }

.services { background: var(--bg); }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 60px; }
.service-card { grid-column: span 2; min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 18px 42px transparent; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(24, 200, 106, 0.52); box-shadow: 0 24px 50px var(--shadow); }
.service-card > span { display: block; margin-bottom: 42px; color: var(--green-bright); font-size: 13px; font-weight: 800; }
.service-card p { margin: 15px 0 0; color: var(--muted); }

.vision { background: var(--green-deep); color: #fff; }
.vision-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 100px; }
.vision .kicker { color: #bbf6d5; }
.vision-lead h2 { max-width: 690px; }
.mission { padding: 30px; border-left: 1px solid rgba(255, 255, 255, 0.35); }
.mission ul { display: grid; gap: 15px; margin: 0; padding-left: 20px; }

.process { background: var(--surface); }
.process-list { margin-top: 55px; border-top: 1px solid var(--line); }
.process-item { display: grid; grid-template-columns: 100px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.process-item > span { color: var(--green); font-weight: 800; }
.process-item div { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 40px; }
.process-item p { margin: 0; color: var(--muted); }

.reasons { background: var(--bg); }
.reasons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: stretch; }
.check-list { display: grid; gap: 15px; margin: 36px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 13px; height: 7px; border-left: 2px solid var(--green-bright); border-bottom: 2px solid var(--green-bright); transform: rotate(-45deg); }
.partner-panel { padding: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 26px 58px var(--shadow); }
.partner-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.partner-tags span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 13px; }

.philosophy { background: var(--surface-strong); }
.philosophy-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 90px; align-items: center; }
.philosophy-mark { position: relative; min-height: 390px; display: grid; place-items: center; perspective: 900px; }
.philosophy-mark::before, .philosophy-mark::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid var(--line); border-radius: 8px; transform: rotate(8deg) translate(18px, 18px); }
.philosophy-mark::after { transform: rotate(-5deg) translate(-15px, 10px); }
.philosophy-mark img { position: relative; z-index: 1; width: 260px; height: 260px; padding: 16px; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 34px 70px var(--shadow); transform: rotateY(-10deg) rotateX(3deg); }
.philosophy-copy p { color: var(--muted); font-size: 18px; }
.philosophy-copy h2 { margin-bottom: 25px; }

.contact { padding: 92px 0; background: var(--green); color: #fff; }
.contact .kicker { color: #d8ffe8; }
.contact-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; align-items: center; }
.contact-layout h2 { max-width: 720px; }
.contact-layout > div > p:last-child { margin: 20px 0 0; color: #d7f5e3; }
.contact-actions { display: grid; gap: 9px; justify-items: start; }
.button-light { margin-bottom: 12px; background: #fff; color: #07331d; }
.contact-actions > a:not(.button) { border-bottom: 1px solid rgba(255, 255, 255, 0.48); }

.site-footer { padding: 34px 0; background: #050b08; color: #aab8b0; }
.footer-layout { display: grid; grid-template-columns: 1fr auto auto; gap: 36px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand img { width: 40px; height: 40px; padding: 4px; background: #fff; border-radius: 5px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand span { color: #93a49a; font-size: 12px; }
.footer-layout p { margin: 0; font-size: 13px; }
.admin-link { font-size: 12px; color: #93a49a; text-decoration: underline; text-underline-offset: 4px; }

.error-page { min-height: 100vh; width: min(620px, 88%); margin: auto; display: grid; place-content: center; justify-items: start; gap: 18px; }
.error-page img { padding: 8px; border-radius: 8px; background: #fff; }
.error-page h1 { margin: 0; font-size: 42px; line-height: 1.1; }
.error-page p { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid #5de99c; outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 5%; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu {
    position: absolute;
    top: 68px;
    right: 5%;
    width: min(320px, 90vw);
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 50px var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }
  .mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; }
  .mobile-menu a { padding: 13px 14px; border-bottom: 1px solid var(--line); font-weight: 650; }
  .mobile-menu a:last-child { border-bottom: 0; }
  .hero { height: 800px; }
  .hero-content { width: 64%; }
  .hero h1 { font-size: 52px; }
  .section { padding: 88px 0; }
  .intro-grid, .vision-grid, .reasons-grid, .philosophy-grid, .contact-layout { gap: 55px; }
  .section-heading-wide { grid-template-columns: 1fr; }
  .section-heading-wide .kicker { grid-column: auto; }
  .service-card { grid-column: span 3; }
  .service-card:nth-child(4) { grid-column: span 3; }
  .process-item div { grid-template-columns: 1fr; gap: 9px; }
}

@media (max-width: 720px) {
  .site-header { height: 68px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 12px; }
  .theme-toggle, .menu-toggle { width: 42px; height: 42px; }
  .hero { min-height: 780px; height: 92vh; max-height: 860px; align-items: flex-end; }
  .hero-image { object-position: 65% center; }
  .hero-shade { background: rgba(3, 10, 7, 0.62); }
  .hero-content { width: 90%; margin: 0 auto; padding: 0 0 100px; }
  .hero h1 { font-size: 38px; }
  .hero-tagline { margin-top: 20px; font-size: 19px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .section { padding: 72px 0; }
  .section-shell { width: 90%; }
  h2 { font-size: 32px; }
  .intro-grid, .vision-grid, .reasons-grid, .philosophy-grid, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .intro-copy { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .service-card, .service-card:nth-child(4) { grid-column: auto; min-height: 220px; }
  .service-card > span { margin-bottom: 30px; }
  .mission { padding: 25px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.35); }
  .process-item { grid-template-columns: 45px 1fr; gap: 15px; }
  .partner-panel { padding: 26px; }
  .philosophy-mark { min-height: 310px; order: 2; }
  .philosophy-mark img, .philosophy-mark::before, .philosophy-mark::after { width: 210px; height: 210px; }
  .contact-actions { width: 100%; }
  .contact-actions .button { width: 100%; }
  .footer-layout { grid-template-columns: 1fr; gap: 20px; justify-items: start; }
  .error-page h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-image { transform: none !important; }
}
