:root {
  color-scheme: light;
  --ink: #182126;
  --ink-soft: #34434b;
  --graphite: #253039;
  --stone: #eef2ef;
  --paper: #fbfcf8;
  --line: #d7ded9;
  --steel: #6e7f89;
  --teal: #2e6f73;
  --copper: #a66232;
  --focus: #0f6d7a;
  --shadow: 0 20px 60px rgba(24, 33, 38, 0.14);
  --shell: min(1120px, calc(100vw - 40px));
  --radius: 8px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3f6f2;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid rgba(215, 222, 217, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.primary-nav a {
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  content: "";
}

.nav-toggle-lines::before {
  transform: translateY(-6px);
}

.nav-toggle-lines::after {
  transform: translateY(4px);
}

.section {
  padding: 96px 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 108px;
  background:
    linear-gradient(90deg, rgba(251, 252, 248, 0.96), rgba(238, 242, 239, 0.86)),
    repeating-linear-gradient(0deg, rgba(24, 33, 38, 0.05) 0, rgba(24, 33, 38, 0.05) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(90deg, rgba(24, 33, 38, 0.04) 0, rgba(24, 33, 38, 0.04) 1px, transparent 1px, transparent 42px);
}

.hero-grid,
.section-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 5.9rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-lede,
.section-intro p,
.approach-header p,
.contact-grid > div > p {
  color: var(--ink-soft);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 750;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.78);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.architecture-panel {
  margin: 0;
  padding: 22px;
  background: rgba(251, 252, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.architecture-panel img {
  width: 100%;
  aspect-ratio: 720 / 520;
  object-fit: cover;
  background: #f7f9f6;
  border: 1px solid rgba(215, 222, 217, 0.8);
}

.architecture-panel figcaption {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.credibility-band {
  background: var(--ink);
  color: var(--paper);
  padding: 36px 0;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 250, 242, 0.18);
}

.credibility-grid div {
  min-height: 138px;
  padding: 24px;
  background: var(--ink);
}

.credibility-grid strong,
.credibility-grid span {
  display: block;
}

.credibility-grid strong {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.credibility-grid span {
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.94rem;
}

.section-intro {
  align-self: start;
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  grid-row: 1 / span 2;
  color: var(--copper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.service-item h3,
.service-item p {
  grid-column: 2;
}

.service-item p {
  max-width: 58ch;
}

.service-item p,
.principle-grid p,
.stall-list p,
.path-grid p,
.about-copy p,
.quote-block p,
.contact-card p {
  color: var(--ink-soft);
}

.stall-section {
  background: var(--paper);
}

.stall-list {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238, 242, 239, 0.72);
}

.stall-list p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.engagement-section {
  background:
    linear-gradient(180deg, rgba(251, 252, 248, 0.95), rgba(243, 246, 242, 0.95)),
    repeating-linear-gradient(90deg, rgba(166, 98, 50, 0.06) 0, rgba(166, 98, 50, 0.06) 1px, transparent 1px, transparent 28px);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-grid article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.84);
}

.path-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--copper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.path-grid p {
  margin-bottom: 0;
}

.contrast-section {
  background: var(--stone);
}

.approach-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.principle-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 252, 248, 0.72);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 60px;
  align-items: center;
}

.quote-block {
  border-left: 4px solid var(--copper);
  padding-left: 28px;
}

.quote-block p {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.25;
}

.about-section {
  background:
    linear-gradient(180deg, rgba(251, 252, 248, 0.94), rgba(238, 242, 239, 0.94)),
    repeating-linear-gradient(135deg, rgba(46, 111, 115, 0.08) 0, rgba(46, 111, 115, 0.08) 1px, transparent 1px, transparent 18px);
}

.about-copy {
  columns: 2 260px;
  column-gap: 36px;
}

.about-copy p {
  break-inside: avoid;
}

.contact-section {
  background: var(--graphite);
  color: var(--paper);
}

.contact-section .eyebrow {
  color: #9fc8c4;
}

.contact-grid > div > p {
  color: rgba(255, 250, 242, 0.76);
}

.contact-card {
  padding: 30px;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.08);
}

.contact-card h3 {
  color: var(--paper);
}

.contact-card p {
  color: rgba(255, 250, 242, 0.76);
}

.contact-card .button.primary {
  margin-top: 8px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 250, 242, 0.76);
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--paper);
  text-decoration: none;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .primary-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav .nav-cta {
    justify-content: center;
    margin-top: 16px;
    padding: 0 16px;
    border-bottom: 0;
  }

  body.nav-open .primary-nav {
    transform: translateY(0);
    visibility: visible;
  }

  .hero-grid,
  .section-grid,
  .contact-grid,
  .split-panel {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .credibility-grid,
  .principle-grid,
  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100vw - 28px, 1120px);
    --header-height: 68px;
  }

  .brand span:last-child {
    max-width: 190px;
    line-height: 1.15;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding-top: 76px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .credibility-grid,
  .principle-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-number,
  .service-item h3,
  .service-item p {
    grid-column: 1;
  }

  .service-number {
    grid-row: auto;
  }

  .principle-grid article,
  .path-grid article {
    min-height: 0;
  }

  .architecture-panel {
    padding: 14px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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