@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Space+Mono:wght@400;700&display=swap");

:root {
  --paper: #f7f3ea;
  --paper-alt: #ebe6db;
  --paper-light: #fffdf8;
  --ink: #1f343b;
  --muted: #5c696b;
  --line: #d2cec3;
  --line-dark: #9ba4a1;
  --moss: #40594d;
  --moss-deep: #243d37;
  --moss-light: #dce5dc;
  --clay: #aa5138;
  --clay-dark: #873b29;
  --gold: #c4913e;
  --heading: "Newsreader", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --container: 1180px;
  --gutter: clamp(22px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
p { margin: 0 0 1.25rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--heading); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; }
h3 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
::selection { color: var(--paper-light); background: var(--moss-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--container), calc(100% - (2 * var(--gutter)))); margin-inline: auto; }

/* Header and navigation */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: #10110f;
  border-bottom: 1px solid #6e5937;
}
.nav-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 6px; }
.brand { display: block; width: 132px; flex: 0 0 132px; min-width: 0; }
.brand-logo { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); }
.desktop-nav > a:not(.button) { padding: 7px 0 6px; color: #e0d8c8; border-bottom: 1px solid transparent; font-size: .9rem; font-weight: 600; }
.desktop-nav > a:not(.button):hover,
.desktop-nav > a[aria-current="page"] { color: #fffdf8; border-bottom-color: #d6ad62; }
.site-header .button-dark { color: #10110f !important; background: #d6ad62; border-color: #d6ad62; }
.site-header .button-dark:hover { background: #ebc582; border-color: #ebc582; }
.mobile-nav { display: none; }

/* Links and actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.button, .button-ghost, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 47px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.button::after, .button-ghost::after, .text-link::after { content: "↗"; font-size: .98rem; }
.button { color: #fff; background: var(--clay); border-color: var(--clay); }
.button:hover { color: #fff; background: var(--clay-dark); border-color: var(--clay-dark); }
.button-dark { color: #fff !important; background: var(--ink); border-color: var(--ink); }
.button-dark:hover { background: var(--moss); border-color: var(--moss); }
.button-light { color: var(--ink); background: var(--paper-light); border-color: var(--paper-light); }
.button-light:hover { color: #fff; background: var(--clay); border-color: var(--clay); }
.button-ghost { color: var(--ink); background: transparent; }
.button-ghost:hover { color: #fff; background: var(--ink); }
.text-link { min-height: 0; padding: 5px 0 4px; border-width: 0 0 1px; border-radius: 0; color: var(--moss); }
.text-link:hover { color: var(--clay); border-bottom-color: var(--clay); }

/* Small labels */
.eyebrow, .index-label, .service-tag, .status, .mini-label {
  margin: 0;
  color: var(--moss);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .055em;
}
.eyebrow { margin-bottom: 20px; }
.index-label { color: var(--clay); }

/* Homepage hero */
.hero { padding: clamp(76px, 10vw, 130px) 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr);
  gap: clamp(54px, 9vw, 126px);
  align-items: start;
  padding-bottom: clamp(72px, 9vw, 112px);
}
.hero-copy-wrap { max-width: 790px; }
.hero h1 { max-width: 760px; font-size: clamp(3.5rem, 7.4vw, 6.6rem); text-wrap: balance; }
.hero h1 .accent, .page-hero h1 .accent { color: var(--clay); font-style: italic; }
.hero-summary { max-width: 650px; margin-top: 30px; font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.58; }
.hero-aside, .scope-panel {
  align-self: stretch;
  max-width: 370px;
  padding: 20px 0 0;
  border-top: 3px solid var(--moss);
}
.hero-aside h2, .scope-panel h2 { margin: 12px 0 18px; font-size: clamp(2rem, 3vw, 2.65rem); }
.hero-aside > p, .scope-panel > p { font-size: .96rem; }
.scope-list { margin: 25px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.scope-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .94rem; line-height: 1.35; }
.scope-list li::before { display: inline-block; width: 18px; content: "•"; color: var(--clay); font-size: 1rem; }
.scope-list span { display: none; }

.capability-strip { color: #fff; background: var(--moss-deep); border-block: 1px solid var(--moss-deep); }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.capability-item { min-height: 132px; padding: 22px 24px 22px 0; border-right: 1px solid rgba(255,255,255,.2); }
.capability-item:first-child { border-left: 0; }
.capability-item + .capability-item { padding-left: 24px; }
.capability-item span { display: block; margin-bottom: 25px; color: #b8c9bd; font-family: var(--mono); font-size: .64rem; letter-spacing: .035em; }
.capability-item strong { display: block; max-width: 200px; color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.3; }

/* Shared sections */
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section-tight { padding: clamp(52px, 7vw, 82px) 0; }
.section-intro { display: grid; grid-template-columns: minmax(170px, .48fr) minmax(0, 1.52fr); gap: clamp(34px, 7vw, 98px); margin-bottom: clamp(42px, 6vw, 72px); }
.section-intro h2, .page-section-title { max-width: 800px; font-size: clamp(2.65rem, 5vw, 4.65rem); text-wrap: balance; }
.section-intro .intro-copy { max-width: 650px; margin-top: 24px; font-size: 1.04rem; }
.service-index, .reason-list, .contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: minmax(150px, .36fr) minmax(220px, .8fr) minmax(260px, 1.05fr); gap: 28px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--line); }
.service-row .number { display: none; }
.service-row h3 { font-size: clamp(1.75rem, 2.8vw, 2.35rem); }
.service-row p { max-width: 570px; margin: 1px 0 0; font-size: .96rem; }
.service-row:hover h3 { color: var(--clay); }

.statement-band { color: var(--ink); background: var(--paper-alt); border-block: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: minmax(170px, .48fr) minmax(0, 1.52fr); gap: clamp(34px, 7vw, 98px); align-items: start; }
.statement-band .eyebrow { color: var(--moss); }
.statement { max-width: 800px; color: var(--ink); font-family: var(--heading); font-size: clamp(2.5rem, 4.9vw, 4.55rem); line-height: 1.02; text-wrap: balance; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line-dark); }
.process-step { min-height: 174px; padding: 22px 28px 12px 0; border-right: 1px solid var(--line); }
.process-step + .process-step { padding-left: 28px; }
.process-step:last-child { border-right: 0; }
.process-step span { display: block; margin-bottom: 28px; color: var(--clay); font-family: var(--mono); font-size: .66rem; font-weight: 700; }
.process-step h3 { margin-bottom: 9px; color: var(--ink); font-size: 1.7rem; }
.process-step p { max-width: 260px; font-size: .91rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .83fr); gap: clamp(50px, 9vw, 118px); align-items: start; }
.split-copy h2 { max-width: 710px; font-size: clamp(2.7rem, 4.8vw, 4.5rem); }
.split-copy > p { max-width: 650px; margin-top: 23px; }
.reason-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.reason-list .number { display: none; }
.reason-list li::before { content: ""; display: block; grid-column: 1; width: 28px; height: 2px; margin-top: 10px; background: var(--clay); }
.reason-list li > div { grid-column: 2; margin: 0; }
.reason-list h3 { margin-bottom: 7px; font-size: 1.75rem; }
.reason-list p { font-size: .92rem; }

.contact-band { color: #fff; background: var(--ink); }
.contact-band-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr); gap: clamp(50px, 8vw, 110px); align-items: end; }
.contact-band .eyebrow { color: #d6ad62; }
.contact-band h2 { max-width: 760px; color: #fff; font-size: clamp(2.7rem, 5vw, 4.65rem); }
.contact-band p { max-width: 650px; margin-top: 22px; color: #c6d0cb; }
.contact-data { border-top: 1px solid rgba(255,255,255,.45); }
.contact-data div { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact-data span { display: block; margin-bottom: 4px; color: #aebeb6; font-family: var(--mono); font-size: .64rem; letter-spacing: .055em; text-transform: uppercase; }
.contact-data strong { color: #fff; font-size: .94rem; font-weight: 500; }

/* Inner page hero and content */
.page-hero { padding: clamp(70px, 9vw, 112px) 0 clamp(62px, 8vw, 92px); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(160px, .34fr) minmax(0, 1.66fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.page-hero .index-label { padding-top: 10px; }
.page-hero h1 { max-width: 900px; font-size: clamp(3.2rem, 6.4vw, 6rem); text-wrap: balance; }
.page-hero .lead { max-width: 680px; margin-top: 26px; font-size: 1.08rem; line-height: 1.6; }
.service-catalog { border-top: 1px solid var(--ink); }
.catalog-row { display: grid; grid-template-columns: minmax(150px, .36fr) minmax(220px, .8fr) minmax(270px, 1.05fr); gap: 28px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.catalog-row .number { display: none; }
.catalog-row .service-tag { padding-top: 4px; }
.catalog-row h3 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); }
.catalog-row p { margin: 1px 0 0; font-size: .94rem; }

.positioning { padding: clamp(45px, 6vw, 70px) 0; color: #fff; background: var(--clay); }
.positioning p { max-width: 930px; color: #fff; font-family: var(--heading); font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.04; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 21px 55px 21px 0; cursor: pointer; color: var(--ink); font-family: var(--heading); font-size: 1.55rem; font-weight: 500; line-height: 1.12; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 18px; right: 5px; content: "+"; color: var(--clay); font-family: var(--mono); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 650px; padding: 0 55px 23px 0; font-size: .94rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(48px, 8vw, 110px); }
.contact-intro h2 { max-width: 640px; font-size: clamp(2.8rem, 4.8vw, 4.5rem); }
.contact-intro p { max-width: 620px; margin-top: 23px; }
.contact-list li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--moss); font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.contact-list strong { font-weight: 500; }
.section.rule { border-top: 1px solid var(--line); }

/* Footer */
.footer { padding: 48px 0 30px; color: #fff; background: #10110f; border-top: 1px solid #6e5937; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(260px, 1.1fr) minmax(170px, .58fr); gap: clamp(38px, 7vw, 90px); }
.footer-brand { display: block; width: 220px; max-width: 100%; }
.footer-brand img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.footer p { max-width: 520px; color: #b7c8bf; font-size: .88rem; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a { color: #dce5df; font-size: .85rem; }
.footer-nav a:hover { color: #e0b86e; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: #9bb0a6; font-family: var(--mono); font-size: .59rem; letter-spacing: .045em; text-transform: uppercase; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; color: #fffdf8; font-family: var(--mono); font-size: .68rem; font-weight: 700; list-style: none; letter-spacing: .055em; text-transform: uppercase; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after { content: "+"; color: #d6ad62; font-size: 1.05rem; }
  .mobile-nav[open] summary::after { content: "−"; }
  .mobile-panel { position: absolute; top: calc(100% + 34px); right: calc(-1 * var(--gutter)); width: min(360px, 100vw); display: grid; padding: 14px var(--gutter) 25px; color: #fff; background: #10110f; border-bottom: 4px solid #d6ad62; }
  .mobile-panel a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-family: var(--heading); font-size: 1.5rem; line-height: 1.1; }
  .mobile-panel a:last-child { margin-top: 13px; padding: 14px; border: 1px solid var(--clay); color: #fff; background: var(--clay); font-family: var(--body); font-size: .84rem; text-align: center; }
  .hero-grid, .contact-band-grid, .contact-layout { grid-template-columns: 1fr; }
  .hero-aside, .scope-panel { max-width: 620px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-item:nth-child(2) { border-right: 0; }
  .capability-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
  .section-intro, .statement-grid, .split { grid-template-columns: 1fr; gap: 22px; }
  .section-intro .eyebrow { margin-bottom: 0; }
  .service-row, .catalog-row { grid-template-columns: 140px minmax(210px, .8fr) minmax(250px, 1.05fr); gap: 20px; }
  .page-hero-grid { grid-template-columns: 110px 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav-inner { min-height: 88px; gap: 18px; }
  .brand { width: 100px; flex-basis: 100px; }
  .mobile-nav { flex: 0 0 auto; }
  .mobile-panel { top: calc(100% + 22px); }
  .hero { padding-top: 60px; }
  .hero-grid { gap: 52px; padding-bottom: 66px; }
  .hero h1 { font-size: clamp(3.05rem, 15vw, 4.85rem); }
  .hero-summary { margin-top: 23px; font-size: 1rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .button, .actions .button-ghost { width: 100%; }
  .hero-aside, .scope-panel { padding-top: 17px; }
  .scope-list { margin-top: 20px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-item, .capability-item + .capability-item { min-height: 102px; padding: 18px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .capability-item:last-child { border-bottom: 0; }
  .capability-item span { margin-bottom: 13px; }
  .section { padding: 66px 0; }
  .section-intro h2, .split-copy h2 { font-size: clamp(2.55rem, 12vw, 3.65rem); }
  .statement { font-size: clamp(2.35rem, 11vw, 3.5rem); }
  .process-grid { grid-template-columns: 1fr; margin-top: 45px; }
  .process-step, .process-step + .process-step { min-height: auto; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .process-step span { margin-bottom: 15px; }
  .service-row, .catalog-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .service-row p, .catalog-row p { margin-top: 1px; }
  .page-hero { padding: 58px 0 66px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-hero .index-label { padding-top: 0; }
  .page-hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .page-hero .lead { margin-top: 22px; font-size: 1rem; }
  .positioning p { font-size: clamp(2.15rem, 10vw, 3.15rem); }
  .reason-list li { grid-template-columns: 30px 1fr; gap: 15px; }
  .reason-list li > div { grid-column: 2; margin-left: 0; }
  .contact-band h2, .contact-intro h2 { font-size: clamp(2.55rem, 12vw, 3.6rem); }
  .contact-list li { grid-template-columns: 1fr; gap: 5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-base { flex-direction: column; gap: 8px; }
}

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