:root {
  --primary: #2D5A27;
  --primary-deep: #1E3E1A;
  --sage-light: #B8D4A8;
  --blue: #1F5FA6;
  --blue-soft: rgba(31, 95, 166, 0.35);
  --paper: #FAF9F4;
  --paper-deep: #F1EFE6;
  --ink: #171B17;
  --ink-muted: #565D56;
  --border: #D8E2CF;
  --bg: var(--paper);
  --bg-alt: #F4F2E9;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'Fragment Mono', monospace;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; }

.mono { font-family: var(--font-mono); }
em { font-style: normal; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- technical grid (the sheet) ---------- */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--blue-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.16;
}

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: var(--paper); box-shadow: 0 2px 12px rgba(23,27,23,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .02em; color: var(--ink); }
.brand-name i { color: var(--blue); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { padding: 9px 18px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle .bar { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-block; border-radius: 999px; font-weight: 600; text-decoration: none;
  font-family: var(--font-body); transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn-primary { background: var(--primary); color: #fff; padding: 14px 30px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(45,90,39,.25); }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); padding: 12px 28px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh;
  background: var(--paper); padding: 150px 0 120px; width: 100%; max-width: 100vw; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; max-width: 100%; }
.hero-text { max-width: 100%; overflow-wrap: break-word; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 6vw, 76px);
  line-height: .98; letter-spacing: .01em; color: var(--ink); margin: 18px 0 22px; overflow-wrap: break-word; }
.hero h1 em { color: var(--primary); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px;
  background: var(--sage-light); opacity: .45; z-index: -1; }
.hero-sub { font-size: 17px; color: var(--ink-muted); max-width: 520px; margin-bottom: 30px; overflow-wrap: break-word; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { font-size: 12px; color: var(--ink-muted); letter-spacing: .04em; text-transform: uppercase; }

.dim-line { display: flex; align-items: center; gap: 12px; }
.dim-line::before { content: ""; height: 1px; background: var(--blue); width: 56px; position: relative; }
.dim-line::after { content: ""; height: 1px; background: var(--blue); width: 56px; position: relative; }
.dim-line span { font-family: var(--font-mono); font-size: 11px; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; }
.dim-line-top { margin-bottom: 6px; }

/* hero draft visual */
.hero-visual { position: relative; height: 340px; max-width: 460px; margin: 0 auto; width: 100%; }
.draft { width: 100%; height: auto; display: block; }
.draft .dim-txt { font-family: var(--font-mono); font-size: 10px; fill: var(--blue); }
.draft .tag-txt { font-family: var(--font-mono); font-size: 10px; fill: var(--primary); letter-spacing: .1em; }
.draft .stamp-main { font-family: var(--font-mono); font-size: 15px; fill: var(--primary); letter-spacing: .08em; }
.draft-frame rect { animation: draw-in 1.2s ease forwards; stroke-dasharray: 800; stroke-dashoffset: 800; }
.draft-box rect, .draft-box line, .draft-box circle, .draft-tags rect, .draft-tags text { animation: draw-in 1.4s ease forwards; stroke-dasharray: 500; stroke-dashoffset: 500; }
.draft-stamp { opacity: 0; animation: stamp-in .5s ease .9s forwards; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes stamp-in { to { opacity: 1; } }

/* cut line */
.cut-line { position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px dashed var(--blue); opacity: .5; }
.cut-line::before, .cut-line::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px;
  border: 2px solid var(--blue); background: var(--paper); }
.cut-line::before { left: 0; }
.cut-line::after { right: 0; }
.cut-line span { position: absolute; left: 50%; transform: translateX(-50%); top: -12px;
  background: var(--paper); padding: 0 10px; font-family: var(--font-mono); font-size: 10px; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; max-width: 100%; }
.section-tag { display: inline-block; font-size: 11px; color: var(--blue); text-transform: uppercase;
  letter-spacing: .14em; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--blue); position: relative; }
.section-tag::after { content: ""; position: absolute; right: -14px; bottom: -3px; width: 6px; height: 6px; background: var(--primary); transform: rotate(45deg); }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.02; letter-spacing: .005em; color: var(--ink); overflow-wrap: break-word; }
.section-body { color: var(--ink-muted); margin-top: 16px; max-width: 640px; overflow-wrap: break-word; }

/* spec grid (overview) */
.spec-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; max-width: 100%; }
.spec-lead { font-size: 19px; line-height: 1.5; color: var(--ink); max-width: 100%; overflow-wrap: break-word; }
.measure-list { display: grid; gap: 20px; max-width: 100%; }
.measure { display: flex; gap: 14px; align-items: flex-start; }
.measure-mark { flex-shrink: 0; width: 14px; height: 14px; margin-top: 6px; border: 2px solid var(--primary); transform: rotate(45deg); position: relative; }
.measure-mark::after { content: ""; position: absolute; inset: 3px; background: var(--sage-light); }
.measure p { font-size: 15px; color: var(--ink-muted); max-width: 100%; overflow-wrap: break-word; }
.measure strong { color: var(--ink); font-weight: 600; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--paper); border: 1px solid var(--blue-soft); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--ink-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- spec cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; max-width: 100%; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 4px 16px rgba(23,27,23,.05); transition: transform .2s, border-color .2s; position: relative; max-width: 100%; }
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.spec-card::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 4px, transparent 4px 8px); opacity: .5; }
.spec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.spec-no { font-size: 11px; color: var(--blue); letter-spacing: .1em; }
.card-icon { display: none; }
.card-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: .005em; }
.card-text { font-size: 15px; color: var(--ink-muted); overflow-wrap: break-word; }
#industry .card { text-align: left; }
#industry .card-title { font-size: 24px; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 12px 0 32px; display: grid; gap: 34px; position: relative; max-width: 100%; }
.timeline::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: 23px; width: 0; border-left: 2px dashed var(--blue); }
.timeline-item { display: flex; gap: 22px; align-items: flex-start; max-width: 100%; }
.timeline-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--primary); font-size: 13px; border: 2px solid var(--primary); box-shadow: 0 0 0 4px var(--sage-light); }
.timeline-title { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--ink); }
.timeline-text { color: var(--ink-muted); font-size: 15px; }

@media (min-width: 821px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline-item:nth-child(odd) { justify-self: end; text-align: right; }
  .timeline-item:nth-child(odd) .timeline-num { order: 2; }
  .timeline-item:nth-child(odd) > div { order: 1; }
  .timeline-item:nth-child(even) { justify-self: start; }
  .timeline-item:nth-child(5) { grid-column: 1 / -1; justify-self: center; text-align: left; }
  .timeline::before { left: 50%; transform: translateX(-1px); }
}

/* ---------- tools ---------- */
.tools-list { display: grid; gap: 14px; max-width: 640px; margin-top: 8px; }
.tool-item { display: flex; align-items: center; gap: 14px; background: var(--paper);
  border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; color: var(--ink); max-width: 100%; }
.tool-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ---------- engagement ---------- */
.engagement-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; max-width: 100%; }
.engagement-list { list-style: none; margin-top: 8px; display: grid; gap: 14px; }
.engagement-item { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px 16px 40px; color: var(--ink-muted); max-width: 100%; }
.engagement-item::before { content: ""; position: absolute; left: 22px; top: 50%; width: 10px; height: 1px; background: var(--blue); }
.engagement-item::after { content: ""; position: absolute; left: 18px; top: 50%; width: 1px; height: 10px; background: var(--blue); transform: translateY(-50%); }
.engagement-item strong { color: var(--primary); }
.availability-card { position: relative; border-radius: var(--radius); color: #fff; padding: 34px;
  background: linear-gradient(160deg, var(--primary) 0%, #4A7A3F 100%); }
.availability-card::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(255,255,255,.35); border-radius: 8px; pointer-events: none; }
.availability-badge { display: inline-block; background: var(--sage-light); color: var(--primary);
  font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 4px; padding: 6px 12px; margin-bottom: 20px; }
.availability-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin-bottom: 12px; letter-spacing: .005em; }
.availability-text { color: rgba(255,255,255,.92); font-size: 15px; }

/* ---------- works ---------- */
.work-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: 0 4px 16px rgba(23,27,23,.05); margin-top: 8px; position: relative; max-width: 100%; }
.work-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--ink); }
.work-text { color: var(--ink-muted); max-width: 560px; overflow-wrap: break-word; }
.work-stats { display: flex; gap: 56px; margin-top: 28px; flex-wrap: wrap; }
.work-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--primary); line-height: 1; }
.work-label { font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; }
.tolerance { display: flex; align-items: center; gap: 0; margin-top: 30px; max-width: 480px; }
.tol-mark { font-family: var(--font-mono); color: var(--blue); font-size: 16px; }
.tol-line { flex: 1; height: 2px; background: var(--blue); position: relative; }
.tol-line::before, .tol-line::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border: 2px solid var(--blue); background: var(--paper); }
.tol-line::before { left: 0; }
.tol-line::after { right: 0; }
.tol-line i { position: absolute; left: 50%; top: -7px; transform: translateX(-50%); font-style: normal; }
.tol-line i::after { content: "TOL \00B1 0.2"; font-family: var(--font-mono); font-size: 10px; color: var(--primary); background: var(--paper); padding: 0 8px; letter-spacing: .08em; white-space: nowrap; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; max-width: 100%; }
.team-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px 26px; text-align: center; position: relative; max-width: 100%; }
.team-avatar { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-deep); border: 2px solid var(--primary); color: var(--primary);
  font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.team-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); }
.team-line { display: block; width: 70%; height: 1px; margin: 14px auto 0; background: var(--border); position: relative; }
.team-line::after { content: "APPROVED"; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; color: var(--ink-muted); letter-spacing: .14em; }

/* ---------- contact ---------- */
.contact-section { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.contact-section .section-head { text-align: left; }
.btn-lg { padding: 18px 40px; font-size: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary); color: #fff; padding: 52px 0 44px; text-align: center; }
.footer-inner { display: grid; gap: 14px; justify-items: center; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name i { color: var(--sage-light); }
.footer-logo { filter: brightness(0) invert(1); opacity: .92; }
.footer-text { color: rgba(255,255,255,.85); font-size: 14px; }
.footer-link { color: var(--sage-light); text-decoration: none; font-weight: 600; font-family: var(--font-mono); font-size: 13px; }
.footer-link:hover { text-decoration: underline; }
.footer-copy { color: rgba(255,255,255,.6); font-size: 12px; font-family: var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .container { padding: 0 16px; max-width: 100%; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); padding: 20px 16px; gap: 18px; box-shadow: 0 12px 24px rgba(23,27,23,.12); }
  .nav-links.open { display: flex; }
  .hero { padding: 120px 20px 100px; }
  .hero h1 { font-size: clamp(38px, 11vw, 58px); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: auto; max-width: 100%; }
  .cut-line span { white-space: nowrap; font-size: 8px; }
  .section { padding: 80px 0; }
  .section-title { font-size: clamp(30px, 9vw, 44px); }
  .spec-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat-strip { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .work-num { font-size: 36px; }
  .draft .dim-txt { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .draft-frame rect, .draft-box rect, .draft-box line, .draft-box circle, .draft-tags rect, .draft-tags text { animation: none; stroke-dashoffset: 0; }
  .draft-stamp { opacity: 1; animation: none; }
}
