:root {
  --pine: #17372d;
  --pine-2: #244b3e;
  --pine-3: #0e2922;
  --sand: #f3ead8;
  --paper: #fffdf7;
  --ink: #18221e;
  --muted: #59625d;
  --line: #d8cfbd;
  --orange: #e56f2d;
  --orange-dark: #a84216;
  --white: #fff;
  --rail: 264px;
  --max: 1260px;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--orange-dark); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.mobile-bar { display: none; }
.site-shell { min-height: 100vh; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100vh; padding: 28px 22px; background: var(--pine); color: #f8f3e8; display: flex; flex-direction: column; z-index: 20; }
.brand { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #f5f4e9; box-shadow: 0 0 0 1px rgba(255,255,255,.28); }
.brand strong { display: block; font-family: Georgia, serif; font-size: 20px; letter-spacing: .01em; }
.brand small { display: block; margin-top: 2px; color: #bfcfc6; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.rail-label { margin: 38px 0 12px; color: #95ad9f; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.rail-nav { display: grid; gap: 3px; }
.rail-nav a { padding: 9px 10px; border-left: 2px solid transparent; text-decoration: none; color: #dbe5df; font-size: 14px; }
.rail-nav a:hover, .rail-nav a[aria-current="page"] { background: #24483c; border-color: var(--orange); color: #fff; }
.rail-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid #3c5d51; }
.rail-foot p { margin: 0 0 12px; color: #bfcfc6; font-size: 12px; line-height: 1.6; }
.rail-cta { display: block; padding: 12px; background: var(--orange-dark); color: #fff; text-align: center; text-decoration: none; font-weight: 800; }

.content { min-width: 0; }
.top-strip { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: #ebe1cf; color: #44534c; font-size: 12px; letter-spacing: .04em; }
.top-strip span:last-child { text-align: right; }
.page { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px) 72px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 0; color: var(--muted); font-size: 12px; }
.breadcrumb a { text-decoration: none; border-bottom: 1px solid var(--line); }

.hero-field { position: relative; min-height: 640px; margin: 0 calc(clamp(20px, 5vw, 72px) * -1); overflow: hidden; background: var(--pine); color: #fff; }
.hero-field > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-field::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,30,24,.94) 0%, rgba(8,30,24,.7) 38%, rgba(8,30,24,.08) 72%); }
.hero-copy { position: relative; z-index: 2; width: min(640px, 64%); padding: clamp(72px, 9vw, 120px) clamp(24px, 6vw, 84px); }
.kicker { margin: 0 0 16px; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.hero-copy h1, .feature-hero h1, .simple-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.hero-copy h1 { font-size: clamp(54px, 7.8vw, 108px); }
.hero-copy .lead { max-width: 570px; margin: 24px 0 0; color: #e7eee9; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 18px; border: 2px solid var(--orange-dark); background: var(--orange-dark); color: #fff; text-decoration: none; font-weight: 850; }
.button.alt { background: transparent; border-color: #d9e4dd; }
.button.dark { border-color: var(--pine); background: var(--pine); }
.hero-note { position: absolute; z-index: 3; right: 22px; bottom: 22px; max-width: 330px; padding: 12px 14px; background: rgba(255,253,247,.92); color: var(--ink); font-size: 12px; line-height: 1.5; }

.spec-bar { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 calc(clamp(20px, 5vw, 72px) * -1); background: var(--pine-3); color: #fff; }
.spec-bar div { min-height: 118px; padding: 25px clamp(18px, 3vw, 42px); border-right: 1px solid #36564c; }
.spec-bar span { display: block; color: #8fa89d; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.spec-bar strong { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }

.section { padding: clamp(62px, 8vw, 108px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(280px, 1.2fr); gap: 50px; align-items: end; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 68px); font-weight: 500; line-height: 1.02; letter-spacing: -.03em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.eyebrow { color: var(--orange-dark) !important; font-size: 11px !important; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.profile { min-height: 260px; padding: 28px; background: var(--paper); }
.profile b { display: block; color: var(--orange-dark); font-size: 12px; letter-spacing: .12em; }
.profile h3 { margin: 58px 0 12px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.profile p { margin: 0; color: var(--muted); line-height: 1.65; }

.system-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.system-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 38px; gap: 14px; align-items: start; min-height: 208px; padding: 24px; background: var(--paper); text-decoration: none; }
.system-row:hover { background: #eee3d0; }
.system-row .num { color: var(--orange-dark); font-weight: 900; }
.system-row h3 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.system-row p { grid-column: 2 / -1; margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.system-row .arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--pine); border-radius: 50%; }

.priority-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--line); }
.priority-index a { min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 18px; background: var(--paper); text-decoration: none; }
.priority-index a:hover { background: #eee3d0; }
.priority-index strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.priority-index span { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.feature-hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 570px; margin: 0 calc(clamp(20px, 5vw, 72px) * -1); background: var(--paper); }
.feature-media { min-height: 480px; overflow: hidden; background: #d8ccb6; }
.feature-media picture, .feature-media img { width: 100%; height: 100%; }
.feature-media img { object-fit: cover; }
.feature-copy { padding: clamp(48px, 7vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.feature-copy h1 { font-size: clamp(46px, 6vw, 82px); }
.feature-copy .lead, .simple-hero .lead { margin: 22px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.field-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.field-tags span { padding: 8px 10px; border: 1px solid var(--line); color: #4e5d56; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.index-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 54px; }
.index-aside { align-self: start; position: sticky; top: 26px; padding: 24px; background: var(--pine); color: #fff; }
.index-aside strong { font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.index-aside p { color: #bfd0c7; line-height: 1.65; }
.index-aside a { color: #fff; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.index-groups { display: grid; gap: 32px; }
.index-group { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.index-group .index-num { color: var(--orange-dark); font-weight: 900; }
.index-group h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.index-group ul { columns: 2; gap: 32px; margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.85; }

.decision-table { border-top: 2px solid var(--pine); }
.decision-row { display: grid; grid-template-columns: minmax(180px,.45fr) minmax(0,1fr); border-bottom: 1px solid var(--line); }
.decision-row strong { padding: 19px 20px 19px 0; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.decision-row span { padding: 19px 0 19px 24px; border-left: 1px solid var(--line); color: var(--muted); line-height: 1.65; }
.caution { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 28px; background: #f0d8c7; border-left: 5px solid var(--orange); }
.caution b { color: var(--orange-dark); font-size: 34px; }
.caution h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.caution p { margin: 0; line-height: 1.65; color: #61483a; }

.part-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.part-link { min-height: 180px; padding: 24px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.part-link:hover { border-color: var(--orange); transform: translateY(-2px); }
.part-link small { color: var(--orange-dark); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.part-link h3 { margin: 34px 0 8px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.part-link p { margin: 0; color: var(--muted); line-height: 1.55; }
.external-card { border-left: 5px solid var(--orange); background: #f6ead8; }
.external-card small::after { content: " ↗"; }
.company-route a { color: var(--orange-dark); font-weight: 800; text-underline-offset: 4px; }

.simple-hero { max-width: 930px; padding: clamp(70px, 10vw, 130px) 0 80px; }
.simple-hero h1 { font-size: clamp(52px, 7vw, 92px); }
.generation-list { border-top: 2px solid var(--pine); }
.generation { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.generation strong { font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.generation p { margin: 0; color: var(--muted); line-height: 1.65; }
.generation .years { color: var(--orange-dark); font-weight: 900; font-size: 12px; letter-spacing: .08em; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.step { min-height: 240px; padding: 24px; background: var(--paper); border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step::before { counter-increment: step; content: "0" counter(step); color: var(--orange-dark); font-weight: 900; }
.step h3 { margin: 70px 0 10px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; }

.quote-zone { margin: 70px calc(clamp(20px, 5vw, 72px) * -1) 0; padding: clamp(50px, 7vw, 92px); background: var(--pine); color: #fff; }
.quote-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; margin-bottom: 36px; }
.quote-intro h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 66px); font-weight: 500; line-height: 1; }
.quote-intro p { margin: 0; color: #c7d5ce; line-height: 1.7; }
.rfq-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.rfq-form label > span { display: block; margin-bottom: 7px; color: #d6e1dc; font-size: 12px; }
.rfq-form input, .rfq-form select, .rfq-form textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #557267; background: #fffdf7; color: var(--ink); border-radius: 0; }
.rfq-form textarea { min-height: 140px; resize: vertical; }
.privacy-check { display: flex; gap: 10px; align-items: flex-start; color: #d6e1dc; font-size: 12px; }
.privacy-check input { width: 18px; min-height: 18px; }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-status { min-height: 24px; color: #d6e1dc; }
.form-status.error { color: #ffd3c0; }
.form-status.success { color: #c8f2d5; }
.rfq-form button[disabled] { opacity: .6; cursor: wait; }

.faq { border-top: 2px solid var(--pine); }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: Georgia, serif; font-size: 21px; }
.faq p { max-width: 820px; color: var(--muted); line-height: 1.7; }
.oe-table { border-top: 3px solid var(--pine); }
.oe-row { display: grid; grid-template-columns: minmax(190px,.38fr) minmax(0,1fr); border-bottom: 1px solid var(--line); }
.oe-row > * { padding: 17px 20px; }
.oe-row strong { color: var(--pine); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; letter-spacing: .02em; }
.oe-row span { border-left: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
.oe-head { background: #e7dfd0; }
.oe-head strong, .oe-head span { color: var(--ink); font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.oe-source { max-width: 900px; margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.mobile-action-bar { display: none; }
.legal { max-width: 850px; }
.legal h2 { margin-top: 42px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; }

.footer { padding: 48px clamp(20px, 5vw, 72px); background: #0e2922; color: #cdd9d3; }
.footer-inner { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 1.2fr .8fr .7fr 1fr; gap: 36px; }
.footer h2, .footer h3 { color: #fff; font-family: Georgia, serif; font-weight: 500; }
.footer h2 { margin: 0 0 14px; font-size: 28px; }
.footer h3 { margin: 0 0 12px; font-size: 18px; }
.footer p, .footer a { color: #aebfb7; font-size: 13px; line-height: 1.7; }
.footer-links { display: grid; gap: 7px; }
.footer-contact a { color: #fff; text-underline-offset: 4px; }
.footer-contact p { margin-top: 18px; }
.footer-bottom { max-width: var(--max); margin: 34px auto 0; padding-top: 22px; border-top: 1px solid #315047; color: #8ea39a; font-size: 11px; line-height: 1.6; }

@media (max-width: 980px) {
  .mobile-bar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; background: var(--pine); color: #fff; }
  .mobile-bar .brand { grid-template-columns: 36px 1fr; }
  .mobile-bar .brand img { width: 36px; height: 36px; }
  .mobile-bar button { width: 44px; height: 40px; border: 1px solid #557267; background: transparent; color: #fff; }
  .site-shell { display: block; }
  .rail { position: fixed; top: 62px; left: 0; width: min(330px, 88vw); height: calc(100vh - 62px); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 12px 0 34px rgba(0,0,0,.2); }
  .rail.is-open { transform: translateX(0); }
  .rail > .brand { display: none; }
  .top-strip { display: none; }
  .feature-hero { grid-template-columns: 1fr; }
  .feature-media { min-height: 360px; }
  .index-layout { grid-template-columns: 1fr; }
  .index-aside { position: static; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .priority-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { padding-bottom: 62px; }
  .page { padding-left: 18px; padding-right: 18px; }
  .hero-field, .feature-hero, .quote-zone, .spec-bar { margin-left: -18px; margin-right: -18px; }
  .hero-field { min-height: 650px; }
  .hero-field::after { background: linear-gradient(0deg, rgba(8,30,24,.94) 0%, rgba(8,30,24,.65) 55%, rgba(8,30,24,.08) 100%); }
  .hero-copy { width: 100%; padding: 210px 24px 34px; }
  .hero-copy h1 { font-size: 48px; line-height: .96; }
  .hero-copy .kicker { font-size: 10px; letter-spacing: .14em; }
  .hero-copy .lead { font-size: 17px; line-height: 1.55; }
  .hero-note { position: relative; left: auto; right: auto; bottom: auto; max-width: none; margin: 0 18px 18px; }
  .spec-bar { grid-template-columns: repeat(2,1fr); }
  .spec-bar div:nth-child(2) { border-right: 0; }
  .spec-bar div:nth-child(-n+2) { border-bottom: 1px solid #36564c; }
  .section-head, .quote-intro { grid-template-columns: 1fr; gap: 18px; }
  .profile-grid, .part-links { grid-template-columns: 1fr; }
  .system-ledger { grid-template-columns: 1fr; }
  .priority-index { grid-template-columns: 1fr; }
  .system-row { grid-template-columns: 42px 1fr 36px; gap: 12px; min-height: 0; padding: 22px 18px; }
  .system-row p { grid-column: 2 / -1; }
  .index-group { grid-template-columns: 36px 1fr; }
  .index-group ul { columns: 1; }
  .decision-row { grid-template-columns: 1fr; }
  .decision-row strong { padding-bottom: 8px; }
  .decision-row span { border-left: 0; padding: 0 0 19px; }
  .oe-row { grid-template-columns: 1fr; }
  .oe-row span { border-left: 0; padding-top: 0; }
  .oe-head { display: none; }
  .generation { grid-template-columns: 1fr; gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .form-row, .footer-inner { grid-template-columns: 1fr; }
  .quote-zone { padding: 54px 22px; }
  .mobile-action-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 58px; border-top: 1px solid #36564c; background: #0e2922; box-shadow: 0 -8px 24px rgba(0,0,0,.2); }
  .mobile-action-bar a { display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 850; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
  .mobile-action-bar a:first-child { background: #1f6a4c; }
  .mobile-action-bar a:last-child { background: var(--orange); color: #1a241f; }
}
