@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --forest: #102019;
  --forest-light: #1c3025;
  --ink: #19271f;
  --paper: #f5f6f1;
  --sage: #e3e9dc;
  --accent: #c8f077;
  --light-text: #f4f5ea;
  --light-muted: #c2cdc0;
  --dark-muted: #415043;
  --gutter: clamp(1.25rem, 4.6vw, 5rem);
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
body { font-size: 1rem; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #578629; outline-offset: 4px; }
.hero :focus-visible, .masthead :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
::selection { color: var(--forest); background: var(--accent); }
.frame { width: min(100%, 1536px); padding-inline: var(--gutter); margin-inline: auto; }
.section-space { padding-block: clamp(4.25rem, 6.9vw, 6.75rem); }
section[id] { scroll-margin-top: 1.25rem; }
.skip-link { position: fixed; z-index: 10; top: .6rem; left: 1rem; transform: translateY(-180%); padding: .65rem 1rem; color: var(--forest); background: var(--accent); }
.skip-link:focus { transform: none; }
.masthead, .hero, .contact, .site-footer { background: var(--forest); color: var(--light-text); }
.masthead-inner { min-height: 5.2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.masthead { background: #14261c; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: .67rem; width: max-content; white-space: nowrap; font-size: clamp(1.3rem, 1.65vw, 1.6rem); font-weight: 650; letter-spacing: -.055em; line-height: 1; }
.brand img { width: 2.45rem; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(1.45rem, 3.0vw, 3rem); font-size: .97rem; font-weight: 520; }
.mobile-menu { display: none; }
.main-nav a:not(.nav-cta):hover, .back-top:hover, .quiet-link:hover { color: var(--accent); }
.nav-cta, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.15rem; width: max-content;
  min-height: 3.15rem; padding: .75rem 1.22rem; border: 0; border-radius: 3px;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  transition: background-color .18s, color .18s, transform .18s;
}
.nav-cta { min-height: 2.65rem; padding: .66rem 1.05rem; background: #334638; font-size: .93rem; }
.nav-cta:hover { background: var(--paper); color: var(--forest); }
.button span, .nav-cta span, .quiet-link span, .email-link span { display: inline-block; font-size: 1.18em; font-weight: 480; transition: transform .18s; }
.button:hover span, .nav-cta:hover span, .email-link:hover span { transform: translate(2px, -2px); }
.button:active, .nav-cta:active { transform: translateY(1px); }
.button-accent { color: var(--forest); background: var(--accent); }
.button-accent:hover { background: #dafa9b; }
.button:disabled { opacity: .72; cursor: progress; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  align-items: center; column-gap: clamp(1.2rem, 3.7vw, 4rem);
  padding-block: clamp(2.75rem, 4.3vw, 4.4rem) clamp(2.8rem, 4.6vw, 4.6rem);
}
.hero-copy { padding-block: .35rem 1rem; }
h1, h2, h3 { font-weight: 535; }
h1 { font-size: clamp(3.6rem, 5.8vw, 5.65rem); line-height: .99; letter-spacing: -.072em; }
h1 em { font-style: normal; color: var(--accent); }
.hero-description { max-width: 32rem; margin-top: clamp(1.35rem, 2vw, 2rem); color: var(--light-muted); font-size: clamp(1.08rem, 1.45vw, 1.38rem); line-height: 1.5; letter-spacing: -.018em; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem clamp(1rem, 1.9vw, 2rem); margin-top: clamp(1.75rem, 2.65vw, 2.65rem); }
.quiet-link { display: inline-flex; align-items: center; gap: .55rem; padding-block: .72rem; font-weight: 530; font-size: .96rem; }
.quiet-link:hover span { transform: translateY(2px); }
.board-view { min-width: 0; }
.board-image { position: relative; overflow: hidden; isolation: isolate; background: #0e1e15; aspect-ratio: 1.48; }
.board-image > img { width: 100%; height: 100%; object-fit: cover; }
.register { position: absolute; width: .85rem; height: .85rem; opacity: .75; border-color: #b9c9a8; border-style: solid; }
.tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.board-view figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.65rem; padding-top: .35rem; color: var(--light-muted); font-size: .9rem; }
.view-caption { display: inline-flex; align-items: center; gap: .52rem; }
.view-dot { width: .47rem; height: .47rem; border: 1.5px solid var(--accent); border-radius: 50%; }
.view-controls { display: inline-flex; align-items: center; gap: .1rem; }
.view-controls button { display: grid; place-content: center; width: 2.75rem; min-height: 2.75rem; background: transparent; border: 0; border-radius: 2px; font-size: 1.35rem; line-height: 1; }
.view-controls button:hover { background: var(--forest-light); color: var(--accent); }
h2 { font-size: clamp(2.55rem, 4.2vw, 4.15rem); line-height: 1.03; letter-spacing: -.063em; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(15rem, .52fr); align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 3.2vw, 3.1rem); }
.section-heading p, .process-intro p { color: var(--dark-muted); font-size: clamp(1.02rem, 1.34vw, 1.22rem); line-height: 1.48; text-wrap: pretty; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.75vw, 2rem); }
.service-image { overflow: hidden; background: var(--sage); aspect-ratio: 1.65; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.service h3 { margin-top: 1.2rem; font-size: clamp(1.42rem, 2.05vw, 2rem); line-height: 1.15; letter-spacing: -.048em; }
.service p { max-width: 42ch; margin-top: .6rem; color: var(--dark-muted); font-size: 1.02rem; line-height: 1.6; }
.process { background: var(--sage); }
.process-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 9rem); }
.process-intro p { margin-top: 1.3rem; max-width: 27rem; }
.trace { width: clamp(8rem, 14vw, 13rem); height: auto; color: #92a886; margin-top: 2.7rem; }
.steps { display: grid; gap: .3rem; align-self: start; }
.steps details { padding-inline: clamp(1rem, 1.8vw, 1.7rem); background: #d6dfcf; }
.steps details[open] { background: #f2f4ea; }
.steps summary { list-style: none; display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.22rem 0; font-size: clamp(1.24rem, 1.9vw, 1.7rem); line-height: 1.25; letter-spacing: -.04em; font-weight: 540; }
.steps summary::-webkit-details-marker { display: none; }
.steps summary:hover { color: #3a6029; }
.toggle-icon { position: relative; width: 22px; height: 22px; flex: none; }
.toggle-icon::before, .toggle-icon::after { position: absolute; content: ""; background: currentColor; width: 15px; height: 2px; top: 10px; left: 4px; }
.toggle-icon::after { transform: rotate(90deg); transition: transform .18s; }
details[open] .toggle-icon::after { transform: rotate(0); }
.steps p { color: var(--dark-muted); max-width: 55ch; padding: 0 1.6rem 1.45rem 0; font-size: 1.05rem; line-height: 1.55; }
.contact-copy h2 { font-size: clamp(3rem, 5.25vw, 5.1rem); }
.contact-copy h2 span, .email-link { color: var(--accent); }
.contact-copy p { margin-top: 1.5rem; max-width: 28rem; font-size: 1.13rem; color: var(--light-muted); }
.email-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem; padding-block: .2rem; font-weight: 540; }
.email-link:hover { text-decoration: underline; text-underline-offset: .26em; }
.contact-form { position: relative; }
.input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.18rem; }
.contact-form label { display: flex; flex-direction: column; gap: .45rem; font-size: .96rem; font-weight: 540; }
.contact-form input, .contact-form textarea { display: block; min-width: 0; width: 100%; padding: .75rem .84rem; border: 1px solid #788777; border-radius: 2px; color: var(--light-text); background: #172a20; font-weight: 400; }
.contact-form textarea { min-height: 7.5rem; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #b7c4b5; }
.contact-form .bot-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-bottom { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.15rem; }
.form-bottom p { max-width: 23ch; font-size: .87rem; color: var(--light-muted); }
.form-status { margin-top: 1.2rem; color: var(--accent); }
.form-status[data-error="true"] { color: #ffcfad; }
.site-footer { background: #0c1913; }
.footer-inner { display: flex; align-items: center; gap: 2.4rem; min-height: 5.6rem; }
.site-footer .brand { font-size: 1.1rem; }
.site-footer .brand img { width: 1.8rem; }
.site-footer p, .back-top { color: var(--light-muted); font-size: .9rem; }
.back-top { margin-left: auto; padding-block: .7rem; }
.back-top span { margin-left: .4rem; }
.message-page { min-height: 100svh; display: grid; align-content: center; background: var(--forest); color: var(--light-text); }
.message-page h1 { line-height: 1.06; margin-top: 2rem; }
.message-page .message { max-width: 52ch; color: var(--light-muted); margin: 1.4rem 0 2rem; font-size: 1.15rem; }
.message-page .message a { color: var(--accent); text-decoration: underline; }

@media (min-width: 761px) and (max-width: 1030px) {
  h1 { font-size: 5.75vw; }
  .hero-actions { gap: .15rem 1rem; }
  .hero-actions .button { padding: .68rem .88rem; }
  .process-grid, .contact-grid { gap: 2.4rem; }
}
@media (max-width: 760px) {
  :root { --gutter: clamp(1.18rem, 5.1vw, 2.25rem); }
  .masthead-inner { min-height: 4.2rem; gap: .5rem; }
  .brand { font-size: 1.34rem; gap: .45rem; }
  .brand img { width: 2rem; }
  .main-nav { gap: .35rem; }
  .main-nav > a:not(.nav-cta) { display: none; }
  .nav-cta { font-size: .85rem; gap: .5rem; min-height: 2.5rem; padding: .6rem .73rem; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { display: grid; place-items: center; width: 2.75rem; min-height: 2.75rem; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu > div { position: absolute; z-index: 5; right: 0; top: calc(100% + .45rem); min-width: 11.5rem; display: grid; padding: .45rem; background: #2a4031; }
  .mobile-menu a { padding: .7rem .8rem; }
  .mobile-menu a:hover { background: var(--forest); }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.5rem 1.25rem; gap: 1.9rem; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(2.85rem, 11.4vw, 5rem); }
  .hero-description { margin-top: 1.1rem; max-width: 33rem; font-size: 1.03rem; }
  .hero-actions { margin-top: 1.35rem; gap: .25rem .95rem; }
  .hero-actions .button { min-height: 2.85rem; font-size: .91rem; padding: .65rem .9rem; gap: .65rem; }
  .quiet-link { font-size: .88rem; gap: .35rem; }
  .board-image { aspect-ratio: 1.47; }
  .board-view figcaption { font-size: .84rem; min-height: 2.5rem; }
  .section-heading, .service-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-heading { gap: .9rem; margin-bottom: 1.7rem; }
  .service-grid { gap: 2.35rem; }
  .service-image { aspect-ratio: 1.8; }
  .service h3 { margin-top: .94rem; font-size: 1.55rem; }
  .service p { margin-top: .4rem; }
  .process-grid, .contact-grid { gap: 2.2rem; }
  .trace { display: none; }
  .process-intro p, .contact-copy p { margin-top: .92rem; }
  .steps summary { padding: 1.05rem 0; }
  .input-pair { gap: .85rem; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: .65rem 1rem; padding-block: 1.4rem; }
  .site-footer .brand { grid-column: 1; }
  .site-footer p { grid-column: 1; grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 390px) {
  .input-pair { grid-template-columns: 1fr; }
  .form-bottom { gap: .85rem; }
  .form-bottom p { font-size: .82rem; }
}
@media (max-width: 350px) {
  .main-nav .nav-cta { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes appear { from { opacity: .25; transform: translateY(.7rem); } to { opacity: 1; transform: none; } }
  @keyframes focus-board { from { transform: scale(1.035); } to { transform: none; } }
  .hero-copy > * { animation: appear .52s ease-out backwards; }
  .hero-copy h1 { animation-delay: .06s; }
  .hero-description { animation-delay: .12s; }
  .hero-actions { animation-delay: .18s; }
  .board-image > img { animation: focus-board .78s ease-out; }
  .in-view { animation: appear .48s ease-out both; }
  .service-image img { transition: transform .5s ease; }
  .service:hover .service-image img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
