@font-face {
  font-family: "Smiley Sans";
  src: url("assets/fonts/smiley-sans-display.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #f4f2eb;
  --paper-light: #fbfaf6;
  --ink: #141a18;
  --muted: #4d5a55;
  --green: #123f35;
  --green-deep: #082c25;
  --green-light: #dce9e2;
  --copper: #ad4f22;
  --cyan: #16727b;
  --line: #b9c0ba;
  --focus: #007e8a;
  --max: 1440px;
  --page: clamp(20px, 4vw, 72px);
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 86px; }
body { margin: 0; background: var(--paper); min-width: 320px; }
body.menu-open { overflow: hidden; }
::selection { background: var(--copper); color: #fff; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--green); border: 3px solid var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Smiley Sans", "Segoe UI", sans-serif; font-weight: 700; }
h1, h2 { text-wrap: balance; letter-spacing: -.025em; }
p { line-height: 1.75; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 12px 16px; background: var(--ink); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px var(--page);
  background: rgba(244, 242, 235, .96);
  border-bottom: 1px solid var(--line);
}
.brand { min-height: 52px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; color: var(--green); stroke-width: 2; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: clamp(14px, 1.25vw, 19px); letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.desktop-nav a { padding: 14px 0; color: var(--muted); text-decoration: none; font-size: 14px; border-bottom: 1px solid transparent; }
.desktop-nav a:hover { color: var(--green); border-color: var(--copper); }
.menu-button { display: none; width: 48px; height: 48px; border: 1px solid var(--green); background: transparent; color: var(--green); cursor: pointer; }
.menu-button span { display: block; width: 20px; height: 1px; margin: 5px auto; background: currentColor; }

.mobile-menu { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 20px; border: 0; background: var(--green-deep); color: var(--paper-light); }
.mobile-menu::backdrop { background: rgba(8, 44, 37, .72); }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.28); }
.menu-close { width: 48px; height: 48px; color: inherit; border: 1px solid rgba(255,255,255,.62); background: transparent; cursor: pointer; }
.menu-close svg { width: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 28px 0; }
.mobile-menu nav a { min-height: 58px; display: flex; align-items: center; font: 700 30px/1 "Smiley Sans", sans-serif; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.mobile-menu > p { max-width: 28ch; color: #d7e9e1; }

.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: minmax(340px, .88fr) minmax(500px, 1.12fr); border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(72px, 9vw, 132px) var(--page); overflow: hidden; }
.trace-diagram { position: absolute; top: 7%; left: 0; width: 94%; height: 150px; color: var(--copper); }
.trace-diagram svg { width: 100%; height: 100%; overflow: visible; }
.trace-base { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.trace-live { fill: none; stroke: var(--copper); stroke-width: 2; stroke-dasharray: 1200; stroke-dashoffset: 1200; vector-effect: non-scaling-stroke; animation: route-draw 1.8s cubic-bezier(.16,1,.3,1) .25s forwards; }
.trace-diagram circle { fill: var(--paper); stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
.hero h1 { position: relative; max-width: 13ch; margin-bottom: 30px; font-size: clamp(48px, 5.5vw, 84px); line-height: 1.03; }
.hero h1 span { color: var(--green); }
.hero-copy > p { max-width: 38em; color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--green); border-radius: 0; cursor: pointer; text-decoration: none; font-weight: 700; }
.button--primary { background: var(--green); color: #fff; }
.button--primary:hover { background: var(--green-deep); }
.button:disabled { cursor: not-allowed; background: #87938d; border-color: #87938d; color: #f5f5f1; }
.text-link { min-height: 48px; display: inline-flex; align-items: center; color: var(--green); font-weight: 700; }
.hero-media { position: relative; min-height: 620px; background: var(--green); overflow: hidden; }
.hero-media img { object-position: 58% center; }
.hero-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(8,44,37,.92); color: #fff; }
.hero-media figcaption span { padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.28); font-size: 13px; }

.route-strip { height: 56px; display: flex; align-items: center; padding: 0 var(--page); background: var(--paper-light); border-bottom: 1px solid var(--line); }
.route-strip span { flex: 1; height: 1px; background: var(--copper); }
.route-strip i { width: 12px; height: 12px; margin: 0 12px; border: 2px solid var(--copper); background: var(--paper-light); border-radius: 50%; }
.section { padding: clamp(78px, 9vw, 140px) var(--page); border-bottom: 1px solid var(--line); }
.section-heading { max-width: var(--max); display: grid; grid-template-columns: minmax(280px, 5fr) minmax(280px, 4fr); gap: clamp(44px, 8vw, 130px); margin: 0 auto clamp(52px, 7vw, 100px); align-items: end; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(40px, 4.7vw, 72px); line-height: 1.08; }
.section-heading p { max-width: 48ch; margin-bottom: 0; color: var(--muted); }

.service-ledger { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 1.1fr .9fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.service-image { min-height: 620px; border-right: 1px solid var(--ink); overflow: hidden; }
.service-lines { display: grid; }
.service-lines article { display: grid; align-content: center; padding: 32px clamp(24px, 3.5vw, 58px); border-bottom: 1px solid var(--line); }
.service-lines article:last-child { border-bottom: 0; }
.service-lines h3 { margin-bottom: 9px; font-size: 24px; }
.service-lines p { max-width: 36ch; margin-bottom: 0; color: var(--muted); }

.fields-section { padding-left: 0; padding-right: 0; background: var(--green-deep); color: #fff; }
.fields-section .section-heading { padding-inline: var(--page); }
.section-heading--inverse p { color: #d7e9e1; }
.field-ribbon { max-width: 1660px; margin: auto; border-top: 1px solid rgba(255,255,255,.28); }
.field-ribbon article { min-height: 270px; display: grid; grid-template-columns: .78fr 1.22fr; border-bottom: 1px solid rgba(255,255,255,.28); }
.field-ribbon article > div { display: flex; flex-direction: column; justify-content: center; padding: 42px var(--page); }
.field-ribbon h3 { margin-bottom: 12px; font-size: clamp(30px, 3vw, 48px); }
.field-ribbon p { max-width: 37ch; margin-bottom: 0; color: #d7e9e1; }
.field-ribbon figure { min-height: 270px; overflow: hidden; }
.field-ribbon article:nth-child(2) > div { order: 2; }
.field-text { grid-template-columns: 1fr 1fr !important; }
.field-text span { display: flex; align-items: center; justify-content: center; padding: 32px; overflow: hidden; color: rgba(255,255,255,.18); font: 700 clamp(28px, 5vw, 78px)/.9 "Smiley Sans", sans-serif; letter-spacing: -.02em; text-align: center; }

.route-section { background: var(--paper-light); }
.process { max-width: var(--max); margin: 0 auto 56px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.process li { position: relative; min-height: 220px; padding: 24px 22px 30px; border-right: 1px solid var(--line); }
.process li:last-child { border-right: 0; }
.process li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; right: -6px; top: 47px; width: 10px; height: 10px; border: 2px solid var(--copper); border-radius: 50%; background: var(--paper-light); }
.process span { display: block; margin-bottom: 50px; color: var(--copper); font-variant-numeric: tabular-nums; }
.process h3 { margin-bottom: 8px; font-size: 24px; }
.process p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.route-media { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.route-media figure { position: relative; min-height: 340px; overflow: hidden; background: var(--green); }
.route-media figcaption { position: absolute; left: 0; bottom: 0; padding: 13px 16px; background: var(--green-deep); color: #fff; font-size: 13px; }

.responsibility { display: grid; grid-template-columns: .95fr 1.05fr; padding: 0; background: var(--green-light); }
.responsibility-copy { padding: clamp(72px, 8vw, 130px) var(--page); }
.responsibility h2 { max-width: 12ch; margin-bottom: 30px; font-size: clamp(40px, 4.5vw, 70px); line-height: 1.08; }
.responsibility-copy > p { max-width: 58ch; color: #2c443b; }
.responsibility-lines { margin-top: 46px; border-top: 1px solid var(--green); }
.responsibility-lines article { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid #9fb4a8; }
.responsibility-lines h3, .responsibility-lines p { margin-bottom: 0; }
.responsibility-lines p { color: #2c443b; }
.responsibility > figure { min-height: 760px; }

.contact-section { max-width: calc(var(--max) + var(--page) * 2); margin: auto; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(56px, 9vw, 140px); }
.contact-copy h2 { max-width: 10ch; margin-bottom: 30px; font-size: clamp(44px, 5vw, 76px); line-height: 1.05; }
.contact-copy > p { max-width: 44ch; color: var(--muted); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding-top: 4px; }
.contact-form label { margin-top: 13px; color: var(--green); font-weight: 700; font-size: 14px; }
.contact-form label:nth-of-type(odd), .contact-form input:nth-of-type(odd) { grid-column: 1; }
.contact-form label:nth-of-type(even), .contact-form input:nth-of-type(even) { grid-column: 2; }
.contact-form label[for="stage"], .contact-form select, .contact-form label[for="message"], .contact-form textarea, .contact-form button, .form-status { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #68756f; border-radius: 0; background: var(--paper-light); color: var(--ink); caret-color: var(--copper); }
.contact-form input:disabled, .contact-form select:disabled, .contact-form textarea:disabled { background: #e5e4df; color: #68726d; }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; min-width: 160px; margin-top: 22px; }
.form-status { min-height: 28px; margin: 5px 0 0; color: var(--green); font-weight: 700; }
.contact-form.is-invalid .form-status { color: #8d311d; }
.noscript-note { margin: 0; padding: 18px var(--page); background: #8d311d; color: #fff; text-align: center; }

.site-footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 42px; padding: 28px var(--page); background: var(--green-deep); color: #fff; }
.footer-brand { min-height: 48px; display: inline-flex; align-items: center; font-family: "Smiley Sans", sans-serif; font-size: 20px; text-decoration: none; }
.site-footer nav { display: flex; gap: 26px; }
.site-footer nav a { min-height: 48px; display: inline-flex; align-items: center; color: #d7e9e1; font-size: 14px; }
.site-footer p { margin: 0; color: #d7e9e1; font-size: 13px; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; flex: 0 0 auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 640px; }
  .hero-media { min-height: 640px; }
  .service-ledger { grid-template-columns: 1fr; }
  .service-image { min-height: 520px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .process { grid-template-columns: 1fr 1fr; }
  .process li { min-height: 180px; border-bottom: 1px solid var(--line); }
  .process li:nth-child(2n) { border-right: 0; }
  .process li:last-child { grid-column: 1 / -1; }
  .process li:not(:last-child)::after { display: none; }
  .route-media { grid-template-columns: 1fr; }
  .route-media figure { min-height: 420px; }
  .responsibility { grid-template-columns: 1fr; }
  .responsibility > figure { min-height: 600px; }
  .contact-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 680px) {
  :root { --page: 20px; }
  html { scroll-padding-top: 74px; }
  .site-header { min-height: 74px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { max-width: 15em; font-size: 14px; }
  .brand small { display: none; }
  .hero-copy { min-height: 600px; padding-top: 108px; }
  .trace-diagram { top: 5%; width: 100%; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-media { min-height: 480px; }
  .hero-media figcaption { grid-template-columns: 1fr; }
  .hero-media figcaption span { padding: 11px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .section-heading h2 { font-size: 42px; }
  .service-image { min-height: 360px; }
  .service-lines article { padding: 28px 20px; }
  .field-ribbon article { grid-template-columns: 1fr; }
  .field-ribbon article:nth-child(2) > div { order: 0; }
  .field-ribbon figure { min-height: 260px; }
  .field-text { grid-template-columns: 1fr !important; }
  .field-text span { min-height: 160px; }
  .process { grid-template-columns: 1fr; }
  .process li, .process li:last-child { grid-column: auto; border-right: 0; }
  .process span { margin-bottom: 24px; }
  .route-media figure { min-height: 310px; }
  .responsibility h2, .contact-copy h2 { font-size: 42px; }
  .responsibility-lines article { grid-template-columns: 1fr; gap: 8px; }
  .responsibility > figure { min-height: 440px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label, .contact-form input, .contact-form select, .contact-form textarea, .contact-form button, .form-status { grid-column: 1 !important; }
  .site-footer nav { flex-wrap: wrap; gap: 8px 20px; }
}

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