:root {
  --ink: #15202b;
  --muted: #5d6873;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --line: #d9ddd9;
  --accent: #245a4a;
  --accent-dark: #173d33;
  --accent-soft: #e7efeb;
  --max-width: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(21, 32, 43, .1);
  background: rgba(247, 246, 242, .94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 14px;
}

.main-nav a {
  color: #39434d;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--accent); }

.main-nav .nav-contact {
  padding: 9px 15px;
  border: 1px solid #9ca8a2;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 11vw, 150px) 0 clamp(72px, 9vw, 116px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -7vw;
  bottom: -22vw;
  width: 48vw;
  height: 48vw;
  border: 1px solid rgba(36, 90, 74, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(36, 90, 74, .035), 0 0 0 14vw rgba(36, 90, 74, .025);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 6.3vw, 76px);
  font-weight: 610;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.hero-lead {
  max-width: 760px;
  margin: 32px 0 0;
  color: #48545e;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { color: var(--accent); }
.button-secondary:hover { background: var(--accent-soft); }

.hero-note {
  padding: 26px 0 4px 28px;
  border-left: 1px solid #aeb8b3;
}

.hero-note p { margin: 0; }
.hero-note .note-label { margin-bottom: 13px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-note .note-detail { margin-top: 18px; color: var(--muted); font-size: 13px; }

.section { padding: clamp(82px, 10vw, 132px) 0; }
.section-tinted { border-block: 1px solid var(--line); background: #eef1ed; }

.section-heading { max-width: 760px; margin-bottom: clamp(44px, 7vw, 72px); }
.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 610;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.section-heading > p:last-child,
.contact-section p:not(.eyebrow) { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.service-card { position: relative; min-height: 270px; padding: 36px 56px 38px 0; border-bottom: 1px solid var(--line); }
.service-card:nth-child(odd) { padding-right: 56px; border-right: 1px solid var(--line); }
.service-card:nth-child(even) { padding-left: 56px; }
.card-index { color: #7b8982; font-size: 12px; letter-spacing: .12em; }
.service-card h3 { max-width: 18ch; margin: 44px 0 15px; font-size: 25px; font-weight: 630; letter-spacing: -.025em; line-height: 1.2; }
.service-card p { max-width: 48ch; margin: 0; color: var(--muted); }

.project-list { border-top: 1px solid #bcc5bf; }
.project-item {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  gap: clamp(32px, 7vw, 100px);
  padding: 38px 0 42px;
  border-bottom: 1px solid #bcc5bf;
}
.project-meta { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.project-item h3 { max-width: 760px; margin: 0; font-size: clamp(22px, 2.6vw, 31px); font-weight: 620; letter-spacing: -.03em; line-height: 1.24; }
.project-item p { max-width: 770px; margin: 16px 0 0; color: var(--muted); }

.contact-section { padding: clamp(72px, 9vw, 112px) 0; background: var(--ink); color: white; }
.contact-section .eyebrow { color: #8fc4b2; }
.contact-section p:not(.eyebrow) { color: #b7c0c8; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr); gap: clamp(58px, 10vw, 130px); align-items: end; }
.contact-links { border-top: 1px solid #46515b; }
.contact-links a { display: flex; flex-direction: column; gap: 3px; padding: 21px 0 23px; border-bottom: 1px solid #46515b; text-decoration: none; }
.contact-links span { color: #9da8b1; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.contact-links strong { font-size: clamp(19px, 2.3vw, 27px); font-weight: 560; letter-spacing: -.02em; }
.contact-links a:hover strong { color: #a8d4c5; }

.site-footer { padding: 24px 0; border-top: 1px solid #2e3943; background: var(--ink); color: #89959e; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }
.footer-links a,
.footer-links button { color: #aeb8c0; font: inherit; text-decoration: none; }
.footer-links button { padding: 0; border: 0; background: none; cursor: pointer; }
.footer-links a:hover,
.footer-links button:hover { color: white; }

.legal-main { padding: clamp(64px, 8vw, 104px) 0; }
.legal-header { max-width: 850px; margin-bottom: 52px; }
.legal-header h1 { max-width: 900px; font-size: clamp(38px, 5.5vw, 64px); }
.legal-header .legal-updated { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.legal-content { max-width: 860px; }
.legal-content section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 16px; font-size: clamp(23px, 3vw, 31px); font-weight: 630; letter-spacing: -.025em; line-height: 1.25; }
.legal-content h3 { margin: 24px 0 10px; font-size: 18px; }
.legal-content p { margin: 0 0 14px; color: #46525c; }
.legal-content ul { margin: 12px 0 18px; padding-left: 22px; color: #46525c; }
.legal-content li + li { margin-top: 7px; }
.legal-content a { color: var(--accent); }
.legal-note { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.legal-table th,
.legal-table td { padding: 13px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: #eef1ed; font-weight: 680; }

:focus-visible { outline: 3px solid #6da58f; outline-offset: 4px; }

@media (max-width: 860px) {
  .main-nav a:not(.nav-contact) { display: none; }
  .hero-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 560px; }
  .contact-grid { align-items: start; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 30px, var(--max-width)); }
  .header-inner { min-height: 66px; }
  .hero { padding-top: 64px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(odd),
  .service-card:nth-child(even) { min-height: 0; padding: 30px 0 34px; border-right: 0; }
  .service-card h3 { margin-top: 28px; }
  .project-item { grid-template-columns: 1fr; gap: 22px; }
  .project-meta { flex-direction: row; gap: 14px; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .footer-inner { align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td { display: block; width: 100%; }
  .legal-table tr + tr { margin-top: 14px; }
  .legal-table th { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
