:root {
  color-scheme: light;
  --paper: #fafbf8;
  --white: #fff;
  --ink: #102f25;
  --green: #103d2c;
  --accent: #45782d;
  --muted: #455950;
  --line: #d6e1d5;
  --pale: #eef4eb;
  --gutter: clamp(20px, 4.5vw, 72px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.62; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
.site-header a, .site-footer a, .btn, .text-link, .service-card, .feature-project { text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid #649637; outline-offset: 4px; }
p { margin: 0 0 1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }
h1,h2,h3,h4 { line-height: 1.12; letter-spacing: -.035em; margin: 0 0 .55em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 5.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.52rem); }
.shell, .container { width: min(100% - 2 * var(--gutter), 1410px); margin-inline: auto; }
.section { padding-block: clamp(42px, 6vw, 90px); }
.skip { position: absolute; top: -100px; left: 20px; z-index: 9; background: white; padding: 10px 18px; }
.skip:focus { top: 12px; }
.eyebrow { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.site-header { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.header-line, #main-nav { display: flex; align-items: center; }
.header-line { min-height: 82px; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; font-size: clamp(.76rem,1vw,1rem); font-weight: 850; letter-spacing: .065em; line-height: 1.12; color: var(--green); }
.brand img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.brand span { border-inline-start: 1px solid #8aaa76; padding-inline-start: 13px; }
#main-nav { gap: clamp(16px,2.1vw,32px); font-size: .94rem; font-weight: 650; }
#main-nav a:hover:not(.btn), .nav-group summary:hover { color: var(--accent); }
.nav-group { position: relative; }
.nav-group summary { list-style: none; white-space: nowrap; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary span { display: inline-block; margin: 0 0 3px 7px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.nav-flyout { min-width: 218px; position: absolute; top: calc(100% + 14px); left: -14px; display: grid; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px #103d2c12; }
.nav-flyout a { padding: 10px 12px; border-radius: 6px; }
.nav-flyout a:hover { background: var(--pale); }
.nav-toggle { display: none; }
.btn, .career-submit, .detail-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; max-width: 100%; padding: 10px 19px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: white; font-weight: 750; font-size: .94rem; text-align: center; transition: background .18s, transform .18s; }
.btn:hover, .career-submit:hover { background: #20543d; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green); border-color: #719262; }
.btn-outline:hover { background: var(--pale); }
.btn-white, .btn-white:hover { background: var(--white); color: var(--green); border-color: white; }
.hero { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(24px,4vw,62px); padding-block: clamp(40px,7.5vw,118px); }
.hero h1 { margin-bottom: 23px; font-size: clamp(2.8rem,5.15vw,5.55rem); letter-spacing: -.07em; line-height: 1.04; }
.hero-sub { max-width: 34ch; font-size: clamp(1.04rem,1.55vw,1.35rem); margin-bottom: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #f5f9f1; }
.hero-art img { width: 100%; }
.home-about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px,5vw,65px); border-top: 1px solid #a9c1a4; padding-top: clamp(32px,5vw,60px); }
.home-about > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(24px,4vw,58px); }
.home-about p:not(.eyebrow) { max-width: 55ch; }
.md { display: grid; grid-template-columns: minmax(68px,112px) 1fr; align-items: start; gap: clamp(13px,2vw,24px); }
.md img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 9px; }
.md h2 { font-size: clamp(1.15rem,2.2vw,1.8rem); }
.text-link { font-size: .95rem; color: var(--green); font-weight: 800; text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }
.page-head { background: var(--pale); border-bottom: 1px solid var(--line); padding-block: clamp(48px,8vw,96px); }
.page-head h1, .contact-hub-intro h1 { max-width: 20ch; margin-bottom: 18px; font-size: clamp(2.6rem,5.1vw,4.7rem); }
.page-head p { max-width: 60ch; font-size: clamp(1rem,1.45vw,1.2rem); }
.page-head-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 30px 50px; align-items: center; }
.page-head-grid > .sketch-light { width: 100%; border: 1px solid var(--line); border-radius: 16px; }
.crumb, .detail-breadcrumb { display: flex; flex-wrap: wrap; gap: .6em; margin-bottom: 20px; color: var(--muted); font-size: .85rem; }
.section-cream { background: #f7f9f5; }
.section-head { margin-bottom: 30px; max-width: 76ch; }
.section-head p { max-width: 70ch; }
.service-grid,.project-feature-grid,.team-grid,.gallery-grid,.workflow-grid,.client-logo-grid,.contact-quick { display: grid; gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.project-feature-grid,.team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.service-card,.feature-project,.gallery-grid figure,.workflow-grid article,.client-logo-card,.contact-quick a,.person,.detail-list { background: var(--white); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.service-card,.feature-project { display: flex; flex-direction: column; height: 100%; transition: transform .18s,border-color .18s; }
.service-card:hover,.feature-project:hover { border-color: #799a70; transform: translateY(-3px); }
.service-image img,.feature-project img,.gallery-grid img,.portfolio-case-media img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #f5f8ef; }
.service-text,.feature-project > div,.gallery-grid figcaption,.workflow-grid article,.client-logo-card { padding: clamp(16px,2vw,26px); }
.service-text span:last-child,.feature-project span:last-child { color: var(--accent); font-weight: 750; }
.gallery-grid figcaption { font-weight: 750; }
.workflow { border-block: 1px solid var(--line); background: var(--pale); }
.workflow h2 { margin-bottom: 25px; }
.client-logo-stage:empty { display: none; }
.page-our-clients .section-head { display: none; }
.portfolio-cases { display: grid; gap: 22px; }
.portfolio-case { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: stretch; border: 1px solid var(--line); border-radius: 15px; background: white; overflow: hidden; }
.portfolio-case-media { display: grid; align-items: center; background: #f5f8ef; }
.portfolio-case-content { padding: clamp(20px,3vw,40px); }
.portfolio-case-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-block: 12px; }
.portfolio-case-details dt,.portfolio-case-kicker { font-size: .8rem; font-weight: 800; color: var(--accent); }
.portfolio-case-details dd { margin: 0; }
.portfolio-photo-note { font-size: .87rem; margin-top: 14px; }
.team-md,.person { display: grid; grid-template-columns: minmax(84px,32%) minmax(0,1fr); align-items: center; gap: clamp(13px,3vw,32px); }
.team-md { background: var(--pale); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px,4vw,42px); margin-bottom: 25px; }
.team-photo img { width: min(100%,290px); }
.team-photo img,.person-photo img { aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 8px; }
.person { padding: clamp(13px,2vw,24px); }
.detail-body { padding-block: clamp(42px,6vw,90px); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 26px; }
.detail-list { padding: clamp(18px,3vw,36px); align-self: start; }
.detail-list ul { padding-inline-start: 1.3em; margin-bottom: 0; }
.detail-list li + li { margin-top: .5em; }
.detail-photo { display: none; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.equipment-table { width: 100%; background: white; border-collapse: collapse; text-align: start; }
.equipment-table th,.equipment-table td { text-align: start; padding: .85em 1em; border-bottom: 1px solid var(--line); }
.equipment-table th { background: var(--pale); }
.equipment-table tr:last-child td { border-bottom: 0; }
.cta-panel { background: var(--green); color: white; display: flex; justify-content: space-between; align-items: center; gap: 18px 36px; border-radius: 15px; padding: clamp(24px,4vw,55px); }
.cta-panel h2 { margin-bottom: .25em; }
.cta-panel p { color: #deeee0; }
.cta-panel a { flex-shrink: 0; }
.contact-hub { padding-block: clamp(44px,7vw,95px); }
.contact-hub-intro { margin-bottom: 26px; }
.contact-quick a { padding: 17px 19px; text-decoration: none; overflow-wrap: anywhere; }
.contact-quick a:hover { border-color: #799a70; }
.contact-quick a > * { display: block; }
.contact-workspace { margin-top: 28px; padding: clamp(16px,3.5vw,47px); background: white; border: 1px solid var(--line); border-radius: 14px; }
.contact-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin: 16px 0 24px; }
.contact-tab { border: 1px solid var(--line); padding: 9px 15px; border-radius: 7px; background: var(--pale); color: var(--ink); font-weight: 700; }
.contact-tab[aria-selected=true] { background: var(--green); color: white; }
.career-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 18px 0; }
.career-full-width,.signature-wide { grid-column: 1/-1; }
.career-field label { display: block; color: var(--ink); font-weight: 690; margin-bottom: 4px; }
.career-field input:not([type=checkbox]),.career-field textarea,.career-field select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #a9bca9; border-radius: 7px; padding: 9px 11px; background: var(--paper); color: var(--ink); }
.career-field textarea { min-height: 112px; resize: vertical; }
.career-consent { display: flex !important; align-items: baseline; gap: 9px; }
.form-help,.career-privacy-note,.form-error { font-size: .87rem; margin-top: .65em; }
.form-error { color: #8a2e23; }
.site-footer { color: #f4faf3; background: #0e3024; padding-top: 50px; }
.site-footer p { color: #c8ddcb; margin-top: .5em; }
.footer-layout { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 22px; padding-bottom: 34px; }
.footer-layout > div { display: flex; flex-direction: column; gap: 7px; }
.footer-layout h2 { margin: 0 0 6px; font-size: 1rem; letter-spacing: 0; }
.footer-layout a,.footer-end a { color: #e0eddf; font-size: .88rem; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-end { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid #456457; padding-block: 18px; }
.welcome { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; position: fixed; z-index: 3; right: max(12px,env(safe-area-inset-right)); bottom: max(12px,env(safe-area-inset-bottom)); width: min(400px,calc(100% - 24px)); padding: 12px; background: #f7faf4; border: 1px solid #a6c2a3; border-radius: 12px; box-shadow: 0 12px 30px #153e3025; animation: welcome-in .28s ease-out both; }
.welcome-icon { color: var(--accent); background-color: var(--pale); display: grid; place-items: center; padding: 5px; border-radius: 6px; }
.welcome strong,.welcome span { display: block; }
.welcome strong { font-size: .94rem; }
.welcome span { font-size: .83rem; color: var(--muted); }
.welcome button { background: transparent; color: var(--ink); border: 0; width: 42px; height: 42px; font-size: 1.55rem; border-radius: 6px; }
.welcome button:hover { background: var(--pale); }
.draft-line { stroke-dasharray: 1; animation: drafting 1.05s .08s ease both; }
@keyframes drafting { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes welcome-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media(max-width: 940px) {
  .header-line { flex-wrap: wrap; min-height: 68px; padding-block: 10px; gap: 10px; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 11px; border: 1px solid #8ba989; border-radius: 7px; color: var(--green); background: var(--white); font-weight: 750; }
  .nav-toggle span { width: 17px; height: 12px; border-block: 2px solid currentColor; position: relative; }
  .nav-toggle span::before { content: ""; inset: 3px 0 auto; height: 2px; background: currentColor; position: absolute; }
  #main-nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; }
  .js #main-nav:not(.is-open) { display: none; }
  .js #main-nav.is-open { display: grid; gap: 0; padding: 7px 0; }
  .js #main-nav > a:not(.btn),.js .nav-group summary { padding: 8px 2px; display: block; min-height: 44px; }
  .nav-flyout { position: static; min-width: 0; box-shadow: none; }
  .js .nav-cta { justify-self: start; margin-top: 8px; }
  .hero { gap: 24px; }
  .hero h1 { font-size: clamp(2.5rem,5.5vw,4.1rem); }
}
@media(max-width: 700px) {
  .hero,.home-about,.page-head-grid,.portfolio-case,.detail-layout { grid-template-columns: minmax(0,1fr); }
  .hero { padding-top: 35px; }
  .hero h1 { font-size: clamp(2.25rem,8.6vw,3.85rem); }
  .hero-sub { margin-bottom: 20px; }
  .home-about > div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .service-grid,.gallery-grid,.client-logo-grid,.footer-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workflow-grid,.contact-quick,.team-grid { grid-template-columns: minmax(0,1fr); }
  .cta-panel { align-items: flex-start; flex-direction: column; }
}
@media(max-width: 460px) {
  .service-grid,.project-feature-grid,.career-form-grid,.portfolio-case-details { grid-template-columns: minmax(0,1fr); }
  .gallery-grid { gap: 10px; }
  .gallery-grid figcaption { font-size: .85rem; }
  .brand img { width: 40px; height: 40px; }
  .brand { gap: 8px; }
  .brand span { padding-inline-start: 8px; }
  .actions .btn { padding-inline: 12px; font-size: .85rem; }
}
@media(prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.two-col,.value-cards { display: grid; gap: 18px; }
.two-col { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(22px,5vw,68px); }
.value-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
.value-cards article { background: white; border: 1px solid var(--line); border-radius: 13px; padding: clamp(18px,3vw,32px); }
.value-cards article > span { display: none; }
ul.detail-list { padding-inline-start: clamp(32px,4vw,52px); }
.contact-tab { display: flex; align-items: center; gap: 9px; text-align: start; }
.contact-tab small { display: block; font-weight: 500; }
@media(max-width: 700px) {
  .two-col,.value-cards { grid-template-columns: minmax(0,1fr); }
}
.person-text { grid-template-columns: 1fr; align-items: start; }

.service-image img,.feature-project img,.gallery-grid img,.portfolio-case-media img {
  object-fit: contain;
  background: #f7f9f4;
}

/* Single green light pass across each engineering sketch */
.sketch-light {
  display: block;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.sketch-light img { width: 100%; }
.sketch-light.is-lit::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 26%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 8%, #a4d96b32 37%, #c5f09a65 51%, #a4d96b32 63%, transparent 90%);
  animation: green-light-pass 1.25s ease-in-out both;
}
@keyframes green-light-pass {
  from { transform: translateX(-105%); }
  to { transform: translateX(395%); }
}
@media (prefers-reduced-motion: reduce) {
  .sketch-light.is-lit::after { display: none; }
}

/* Compact text-first project cards */
.compact-project-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(10px,1.5vw,18px);
  align-items: stretch;
}
.compact-project-grid .portfolio-case {
  display: flex;
  min-width: 0;
  border-radius: 11px;
}
.compact-project-grid .portfolio-case-content,
.compact-project-grid .feature-project > div {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: clamp(11px,1.7vw,23px);
  overflow-wrap: anywhere;
}
.compact-project-grid .portfolio-case-kicker {
  margin-bottom: 7px;
  font-size: .69rem;
  letter-spacing: .075em;
}
.compact-project-grid h3 {
  font-size: clamp(1rem,1.65vw,1.28rem);
  line-height: 1.2;
}
.compact-project-grid p {
  font-size: clamp(.79rem,1.25vw,.95rem);
  line-height: 1.4;
  margin-bottom: 9px;
}
.compact-project-grid .portfolio-case-details {
  grid-template-columns: minmax(0,1fr);
  gap: 7px;
  margin: 0 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.compact-project-grid .portfolio-detail {
  display: grid;
  gap: 1px;
}
.compact-project-grid .portfolio-detail span {
  font-size: .65rem;
  letter-spacing: .055em;
  color: var(--muted);
}
.compact-project-grid .portfolio-detail strong,
.compact-project-grid .portfolio-case-link,
.compact-project-grid .feature-project b {
  font-size: clamp(.75rem,1.17vw,.91rem);
  line-height: 1.4;
}
.compact-project-grid .portfolio-case-link,
.compact-project-grid .feature-project b {
  margin-top: auto;
  padding-top: 5px;
  font-weight: 750;
  color: var(--green);
}
@media (max-width: 767px) {
  .compact-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.page-head.page-head-compact { padding-block: clamp(26px,4.25vw,56px); }
.page-head-compact .crumb { margin-bottom: 12px; }
.page-head-compact h1 { font-size: clamp(1.85rem,3.6vw,3.15rem); margin-bottom: 10px; }
.page-head-compact p { font-size: clamp(.95rem,1.4vw,1.08rem); }
.page-about .brand-sketch { width: min(100%,420px); justify-self: end; }
.client-logo-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.client-logo-card {
  display: grid;
  place-items: center;
  padding: clamp(14px,2vw,25px);
}
.client-logo-stage {
  position: relative;
  width: min(100%,220px);
  height: clamp(64px,7vw,94px);
}
.client-logo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 850px) {
  .client-logo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .page-about .brand-sketch { width: min(100%,340px); justify-self: start; }
}
