/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-raised: #f4f7f7;
  --teal-deep: #00343c;
  --teal: #005e6a;
  --teal-light: #0b7c89;
  --orange: #96530a;
  --text: #142524;
  --muted: #5c6d6e;
  --line: #e2e8e8;

  --font-display: "Roboto Slab", "Rockwell", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 12px;
  --max-width: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.15;
  color: var(--teal-deep);
}

.section { padding-block: clamp(56px, 9vw, 108px); position: relative; }

.section-divider { height: 1px; background: var(--line); }

.accent-text { color: var(--orange); }
.accent-teal { color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #ffffffee;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.logo-mark { display: block; flex-shrink: 0; }
footer .logo { font-size: 1.02rem; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--teal-deep); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--teal-deep); }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #ffffff; padding: 24px clamp(20px,5vw,48px);
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(72px, 11vw, 128px);
  padding-bottom: clamp(56px, 9vw, 92px);
  border-bottom: 1px solid var(--line);
}
.hero-content { max-width: 700px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-block: 18px 20px; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(28px, 6vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats .num { font-size: 1.4rem; color: var(--teal-deep); font-weight: 700; font-family: var(--font-display); }
.hero-stats .label { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Services ---------- */
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #ffffff;
  padding: 30px 26px;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--bg-raised); }
.service-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.service-icon svg { width: 19px; height: 19px; stroke: var(--teal); }
.service-card .tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.service-card h3 { font-size: 1.04rem; margin-bottom: 8px; color: var(--teal-deep); }
.service-scenarios {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-scenarios li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}
.service-scenarios li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.service-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}
.service-link:hover { color: var(--teal-deep); }
.service-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.service-back:hover { color: var(--teal); }
.process-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.scope-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 24px 28px;
}
.scope-note p { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.scope-note p:first-of-type { margin-top: 10px; }
.service-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }

.about-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg-raised);
}
.about-panel .row {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.about-panel .row:last-child { border-bottom: none; }
.about-panel .row span:first-child { color: var(--muted); }
.about-panel .row .val { color: var(--teal-deep); font-weight: 600; }

/* ---------- Insights ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr; } }

.insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}
.insight-card:hover { border-color: var(--teal); }
.insight-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.insight-card h3 { font-size: 1.02rem; margin-block: 12px 8px; }
.insight-card p { color: var(--muted); font-size: 0.92rem; }
.insight-card .meta { margin-top: 16px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  background: var(--bg-raised);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
}
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }

.contact-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.contact-card p { color: var(--muted); margin-bottom: 22px; }

.contact-links { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; color: var(--teal-deep); }
.contact-links a:hover { color: var(--teal); }

form.contact-form { display: flex; flex-direction: column; gap: 14px; }
.field label {
  display: block; font-size: 0.78rem;
  color: var(--muted); margin-bottom: 6px; font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.94rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6d6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}
.form-status { font-size: 0.85rem; min-height: 20px; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #b3392c; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 32px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .foot-links { display: flex; gap: 24px; font-size: 0.85rem; color: var(--muted); }
footer .foot-links a:hover { color: var(--teal-deep); }
footer .copy { font-size: 0.8rem; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
