:root {
  color-scheme: dark;
  --background: #111513;
  --surface: #171c18;
  --text: #f0f1e9;
  --muted: #a4ada4;
  --accent: #c1dda0;
  --line: #303831;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
p { line-height: 1.7; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: var(--accent); color: var(--background); z-index: 20; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(17, 21, 19, .97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { font-size: 30px; font-weight: 700; letter-spacing: -1.5px; }
.wordmark span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 38px; }
nav a { font-size: 13px; padding: 12px 0; color: #c5cbc2; transition: color .2s; }
nav a:hover, .text-link:hover, .back-top:hover { color: var(--accent); }
nav .nav-contact { border: 1px solid #56604f; padding: 12px 18px; color: var(--text); }
.nav-contact span { margin-left: 26px; color: var(--accent); }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 50px; padding-top: 72px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 500; letter-spacing: 1.65px; line-height: 1.6; margin-bottom: 30px; }
.eyebrow > span { color: var(--accent); }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }
h1 { font-size: clamp(76px, 8.5vw, 122px); font-weight: 500; line-height: .99; letter-spacing: -.065em; margin-bottom: 30px; }
h1 > span { color: var(--accent); }
.hero-description { color: var(--muted); font-size: 16px; max-width: 410px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 17px 20px; font-size: 12px; font-weight: 600; transition: background .2s, transform .2s; }
.button-primary { background: var(--accent); color: #182016; }
.button-primary:hover { background: #d3e9b9; transform: translateY(-2px); }
.text-link { display: inline-flex; gap: 22px; align-items: center; padding-block: 12px; font-size: 12px; transition: color .2s; }
.text-link span { color: var(--accent); font-size: 17px; }
.hero-visual { align-self: center; min-width: 0; padding-top: 10px; }
.visual-topline, .visual-bottomline { display: flex; justify-content: space-between; gap: 16px; font-family: monospace; font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.visual-topline { border-top: 1px solid var(--line); padding-top: 15px; }
.architecture { display: block; width: 100%; height: auto; margin-block: 10px; }
.visual-bottomline { border-bottom: 1px solid var(--line); padding-bottom: 16px; font-size: 7px; }
.visual-bottomline i { display: inline-block; width: 4px; height: 4px; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.hero-footnote { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.hero-footnote a { color: var(--text); }
.hero-footnote a span { margin-left: 20px; color: var(--accent); }
.section { padding-block: 108px; }
.about-section { margin-top: 16px; border-block: 1px solid var(--line); background: var(--surface); }
.section-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; }
.section-label { padding-top: 8px; align-self: start; }
h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.15; letter-spacing: -.045em; font-weight: 400; margin-bottom: 28px; }
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.about-copy p { color: var(--muted); font-size: 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 22px; }
.section-heading > p { max-width: 310px; color: var(--muted); font-size: 14px; margin-bottom: 3px; }
.service { display: grid; grid-template-columns: 45px 1.1fr 1fr 110px; gap: 28px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-number { color: var(--accent); font-family: monospace; font-size: 11px; }
.service h3 { font-size: 21px; font-weight: 400; letter-spacing: -.6px; margin: 0; }
.service p { font-size: 13px; color: var(--muted); margin: 0; max-width: 350px; }
.service-tag { font-size: 8px; letter-spacing: 1px; color: var(--muted); text-align: right; }
.principles-section { padding-top: 0; }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.principle { padding: 32px 26px 30px; background: var(--surface); }
.principle + .principle { border-left: 1px solid var(--line); }
.principle-symbol { color: var(--accent); display: block; font-family: monospace; font-size: 26px; margin-bottom: 46px; }
.principle h3 { font-size: 20px; font-weight: 400; letter-spacing: -.5px; margin-bottom: 14px; }
.principle p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.contact-section { background: var(--accent); color: #192016; padding-block: 86px; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.contact-section .eyebrow > span { color: #465b37; }
.contact-section h2 { font-size: clamp(42px, 5vw, 68px); margin-bottom: 20px; }
.contact-section p:last-child { margin-bottom: 0; font-size: 14px; color: #3c4d32; }
.contact-email { font-size: clamp(18px, 2.3vw, 32px); letter-spacing: -.8px; padding-block: 20px; border-bottom: 1px solid #687f53; display: flex; align-items: center; gap: 40px; }
.contact-email:hover { border-bottom-color: #192016; }
.contact-email:focus-visible { outline-color: #192016; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 36px; }
.footer-inner .wordmark { font-size: 24px; }
.footer-inner p, .back-top { font-size: 11px; color: var(--muted); margin: 0; }
.back-top span { margin-left: 16px; }
/* Shared multi-page components extend the existing visual system. */
nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }
.service h3 a { display: inline-block; }
.service h3 a:hover { color: var(--accent); }
.page-intro h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.08; letter-spacing: -.045em; }
.page-lead { max-width: 760px; color: var(--muted); font-size: 17px; margin-bottom: 0; }
.service-details { padding-bottom: 80px; }
.service-detail { padding-block: 54px; border-top: 1px solid var(--line); }
.service-detail h2 { font-size: clamp(28px, 3vw, 38px); }
.detail-description { color: var(--muted); font-size: 14px; }
.capabilities { margin: 0; }
.capabilities > div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.capabilities > div:first-child { padding-top: 0; }
.capabilities dt { font-size: 16px; margin-bottom: 8px; }
.capabilities dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; padding-bottom: 108px; }
.contact-layout > *, .section-layout > * { min-width: 0; }
.email-address { font-size: clamp(17px, 2vw, 24px); overflow-wrap: anywhere; }
.contact-form { padding: 32px; background: var(--surface); border: 1px solid var(--line); }
.contact-form h2 { font-size: 28px; }
.form-notice { color: var(--accent); font-size: 14px; }
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-size: 14px; margin-bottom: 10px; }
.form-field label span { color: var(--muted); }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #56604f; border-radius: 0; padding: 13px; background: var(--background); color: var(--text); font: inherit; }
.form-field textarea { resize: vertical; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact-form :disabled { cursor: not-allowed; }
.contact-form button { border: 0; }
.contact-form button:disabled { background: #82956d; color: #111513; transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Only hide reveal elements once JavaScript has observed them. */
.reveal.is-pending { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .6s ease, transform .6s ease; }

@media (min-width: 1500px) { .hero { padding-top: 88px; } }
@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 24px; }
  .visual-bottomline { flex-direction: column; gap: 8px; }
  .section-layout { gap: 30px; grid-template-columns: 1fr 2.5fr; }
  .service { grid-template-columns: 25px 1fr 1fr; gap: 22px; }
  .service-tag { display: none; }
  .principle { padding: 26px 20px; }
}
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: 68px; }
  .contact-form { padding: 24px 20px; }
  .service-detail { padding-block: 36px; }
  .service-details { padding-bottom: 48px; }
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 0; }
  .wordmark { font-size: 27px; }
  nav { width: 100%; justify-content: space-between; gap: 12px; padding-bottom: 16px; }
  nav a { font-size: 12px; }
  nav .nav-contact { padding: 10px; }
  .nav-contact span { margin-left: 10px; }
  .nav-ready .menu-toggle { display: flex; align-items: center; gap: 18px; color: var(--text); background: transparent; border: 1px solid var(--line); padding: 12px 14px; font-size: 12px; cursor: pointer; }
  .menu-toggle span { color: var(--accent); font-size: 18px; line-height: 1; }
  .nav-ready nav { display: none; }
  .nav-ready nav.is-open { display: flex; }
  .hero { padding-top: 44px; grid-template-columns: 1fr; }
  .eyebrow { font-size: 9px; letter-spacing: 1.3px; margin-bottom: 26px; }
  h1 { font-size: clamp(76px, 17vw, 112px); }
  .hero-description { font-size: 15px; max-width: 450px; }
  .hero-visual { width: min(100%, 430px); justify-self: center; margin-top: 28px; }
  .visual-bottomline { flex-direction: row; }
  .hero-footnote { margin-top: 12px; font-size: 10px; }
  .hero-footnote > span { max-width: 175px; line-height: 1.6; }
  .hero-footnote a { align-self: center; white-space: nowrap; }
  .hero-footnote a span { margin-left: 8px; }
  .section { padding-block: 68px; }
  .section-layout, .about-copy { grid-template-columns: 1fr; gap: 8px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading > p { margin-top: 22px; max-width: 400px; }
  .service { grid-template-columns: 24px 1fr; gap: 12px 16px; padding-block: 26px; }
  .service h3 { font-size: 20px; }
  .service p { grid-column: 2; max-width: none; }
  .principles-section { padding-top: 0; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
  .principle-symbol { margin-bottom: 30px; }
  .contact-section { padding-block: 60px; }
  .contact-inner { display: block; }
  .contact-email { margin-top: 30px; justify-content: space-between; max-width: 420px; font-size: 23px; }
  .footer-inner { flex-wrap: wrap; padding-block: 28px; }
  .back-top { display: inline-flex; padding-block: 12px; }
}
@media (max-width: 380px) {
  .hero-actions { gap: 12px; }
  .button { padding-inline: 14px; gap: 16px; }
  .principle { padding: 24px 14px; }
  .visual-bottomline { font-size: 6px; letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .button-primary:hover { transform: none; }
}
