:root {
  --paper: #f5f3ec;
  --sheet: #fbfaf5;
  --ink: #1d2326;
  --muted: #5c6468;
  --line: #cfccc0;
  --grid: rgba(29, 35, 38, .045);
  --red: #c8321e;
  --civil: #4d5a60;
  --structure: #27639b;
  --furniture: #a9590f;
  --soft: #3f7a45;
  --tone: var(--ink);
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
h1, h2, h3, h4, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: 32px; }
.defs { position: absolute; }
.mono { font-family: var(--mono); white-space: nowrap; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; padding: 8px 12px; background: var(--ink); color: #fff; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--sheet);
  border-bottom: 1px solid var(--ink);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 16px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.site-nav a { text-decoration: none; white-space: nowrap; }
.site-nav a:not(.nav-cta):hover { color: var(--red); }
.site-nav b { font: 500 12px var(--mono); color: var(--muted); margin-right: 2px; }
.nav-cta { padding: 7px 14px; background: var(--ink); color: var(--sheet); font-weight: 600; }
.nav-cta:hover { background: var(--red); }

/* Hero */
.hero { padding: 56px 0 72px; }
.eyebrow, .sheet-tag { font: 500 13px var(--mono); letter-spacing: .06em; }
.eyebrow { color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: end; margin-bottom: 36px; }
h1 { font-size: clamp(38px, 5.4vw, 70px); line-height: 1.02; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.5; }

/* Drawings */
.drawing { background: var(--sheet); border: 1px solid var(--ink); }
.dwg-head {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--ink);
  font: 500 12.5px var(--mono);
}
.dwg-scroll { overflow-x: auto; }
.dwg { display: block; width: 100%; height: auto; min-width: 520px; padding: 6px; }
.dwg-hero { min-width: 860px; }
.dwg .t { font: 500 11.5px var(--mono); fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 3px; stroke-linejoin: round; }
.dwg .muted-t { fill: var(--muted); stroke: #e7e5dc; }
.dwg .red { fill: var(--red); }
.dwg .strong { font-weight: 600; font-size: 12.5px; }
.dwg .lead { stroke: var(--ink); stroke-width: .9; }
.dwg .ext { stroke: var(--red); stroke-width: .7; }
.dwg .dim { stroke: var(--red); stroke-width: 1; }
.dwg .balloon { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.4; }
.dwg .bal-t { font: 500 12.5px var(--mono); text-anchor: middle; fill: var(--ink); }

/* Hero layer interaction */
.layer-keys { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.key {
  flex: 1 1 160px;
  padding: 11px 14px;
  background: transparent;
  border: 0; border-right: 1px solid var(--line);
  color: var(--ink);
  font: 600 14.5px var(--sans);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--k);
}
.key:last-child { border-right: 0; }
.key b { font: 500 12.5px var(--mono); margin-right: 6px; }
.key:hover { background: rgba(29, 35, 38, .05); }
.key[aria-pressed="true"] { background: var(--k); color: #fff; }
.k-civil { --k: var(--civil); }
.k-structure { --k: var(--structure); }
.k-furniture { --k: var(--furniture); }
.k-soft { --k: var(--soft); }
.layer { transition: opacity .2s ease; }
.hero-drawing.has-focus .layer:not(.is-on) { opacity: .16; }

@media (prefers-reduced-motion: no-preference) {
  .layer { animation: rise .6s ease backwards; }
  .layer[data-layer="civil"] { animation-delay: .1s; }
  .layer[data-layer="structure"] { animation-delay: .4s; }
  .layer[data-layer="furniture"] { animation-delay: .7s; }
  .layer[data-layer="soft"] { animation-delay: 1s; }
  @keyframes rise { from { opacity: 0; } }
}

/* Generic blocks */
.block { padding: 72px 0; border-top: 1px solid var(--ink); }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.sheet-tag { display: inline-block; padding: 3px 9px; margin-bottom: 14px; color: #fff; background: var(--tone); }
.two-col { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; margin-bottom: 44px; }
.prose p + p { margin-top: 16px; }
.prose { max-width: 66ch; }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--sheet); }
caption {
  padding: 9px 14px;
  text-align: left;
  font: 500 12.5px var(--mono);
  background: var(--sheet);
  border: 1px solid var(--ink); border-bottom: 0;
}
.register { border: 1px solid var(--ink); min-width: 640px; }
.register th, .register td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); font-size: 15.5px; }
.register thead th { font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.register tbody tr:first-child td { border-top: 0; }
.register a { text-underline-offset: 3px; }
.register a:hover { color: var(--red); }
.spec { margin-top: 20px; border: 1px solid var(--ink); }
.spec th, .spec td { padding: 9px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--ink); }
.spec th { width: 40%; font-weight: 600; }
.spec td { font-family: var(--mono); font-size: 13px; }

/* Discipline sheets */
.s-civil { --tone: var(--civil); }
.s-structure { --tone: var(--structure); }
.s-furniture { --tone: var(--furniture); }
.s-soft { --tone: var(--soft); }
.sheet-head { max-width: 780px; margin-bottom: 40px; }
.sheet-sub { margin-top: 14px; font-size: 19px; line-height: 1.45; color: var(--muted); }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.scope li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
.scope li:first-child { border-top: 2px solid var(--tone); }
.code { font: 500 12.5px/1.9 var(--mono); color: var(--tone); }
.scope h3 { font-size: 18.5px; line-height: 1.3; font-weight: 600; margin-bottom: 4px; }
.scope p { font-size: 15.5px; line-height: 1.5; color: #3e4548; }

/* Method */
.chip { display: inline-block; width: 26px; text-align: center; font: 500 12.5px/24px var(--mono); color: #fff; }
.c-civil { background: var(--civil); }
.c-structure { background: var(--structure); }
.c-furniture { background: var(--furniture); }
.c-soft { background: var(--soft); }
.stages-title { margin: 52px 0 18px; font-size: 22px; font-weight: 600; }
.stages { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--ink); background: var(--sheet); }
.stages li { display: flex; flex-direction: column; padding: 16px 14px; border-right: 1px solid var(--line); }
.stages li:last-child { border-right: 0; }
.stages b { font: 500 13px var(--mono); color: var(--red); margin-bottom: 8px; }
.stages h4 { font-size: 16.5px; line-height: 1.25; font-weight: 600; margin-bottom: 8px; }
.stages p { font-size: 14.5px; line-height: 1.45; margin-bottom: 14px; color: #3e4548; }
.stages span { margin-top: auto; font: 500 12px/1.4 var(--mono); color: var(--muted); }

/* Contact */
.contact { background: var(--ink); color: var(--sheet); padding-bottom: 48px; }
.contact-lede { max-width: 62ch; margin: 14px 0 32px; font-size: 19px; line-height: 1.45; }
.titleblock { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--sheet); }
.tb-cell { padding: 12px 16px; border-right: 1px solid rgba(251, 250, 245, .35); border-bottom: 1px solid rgba(251, 250, 245, .35); min-width: 0; }
.tb-cell:nth-child(3n) { border-right: 0; }
.tb-cell:nth-last-child(-n+3) { border-bottom: 0; }
.tb-cell span { display: block; font: 500 12px var(--mono); opacity: .7; margin-bottom: 4px; }
.tb-cell strong { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.ph { color: #f0a58f; }
.note { margin-top: 18px; font: 400 12.5px/1.5 var(--mono); opacity: .75; max-width: 90ch; }

/* Responsive */
@media (max-width: 1040px) {
  .site-nav { gap: 14px; font-size: 13.5px; }
  .site-nav b { display: none; }
  .sheet-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .stages li:nth-child(3n) { border-right: 0; }
  .stages li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .head-row { flex-wrap: wrap; gap: 0; padding-block: 10px 0; }
  .site-nav { width: 100%; overflow-x: auto; padding: 8px 0 10px; }
  .nav-cta { position: absolute; top: 8px; right: 16px; }
  .hero { padding: 36px 0 48px; }
  .hero-grid, .two-col { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .block { padding: 52px 0; }
  .key { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stages li, .stages li:nth-child(3n) { border-right: 1px solid var(--line); }
  .stages li:nth-child(2n) { border-right: 0; }
  .stages li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .spec th { width: 42%; }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .tb-cell, .tb-cell:nth-child(3n) { border-right: 0; }
  .tb-cell:nth-last-child(-n+3) { border-bottom: 1px solid rgba(251, 250, 245, .35); }
  .tb-cell:last-child { border-bottom: 0; }
  html { scroll-padding-top: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Landscape theme: earthy palette, photography, serif display
   ========================================================== */
:root {
  --paper: #f6f1e4;
  --sheet: #fdfaf2;
  --ink: #1f2a22;
  --muted: #58624f;
  --line: #d9d0ba;
  --forest: #24452f;
  --moss: #5d7a3a;
  --terra: #b3562b;
  --structure: #2f6177;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}
body { background-image: none; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.012em; }
.sheet-tag { background: var(--tone, var(--forest)); border-radius: 3px; }
#profile .sheet-tag, #section-drawing .sheet-tag, #method .sheet-tag { background: var(--forest); }
.sheet-sub, .scope p, .stages p { color: var(--muted); }
.band { background: #ebe5d0; }
.s-structure, .s-soft { background: #eef0e0; }
.block { border-top-color: var(--line); }

/* Header */
.site-head { border-bottom-color: var(--line); }
.brand { font: 600 19px var(--display); letter-spacing: 0; color: var(--forest); }
.brand em { font-style: normal; font-weight: 400; color: var(--moss); }
.site-nav a:not(.nav-cta):hover { color: var(--terra); }
.nav-cta { background: var(--forest); border-radius: 4px; }
.nav-cta:hover { background: var(--terra); }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(86vh, 780px); padding: 120px 0 64px; color: #fff; background: var(--forest); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,30,20,.86) 0%, rgba(16,30,20,.62) 45%, rgba(16,30,20,.08) 80%), linear-gradient(0deg, rgba(16,30,20,.45), transparent 45%); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy > * { max-width: 680px; }
.hero .eyebrow { color: #dfe8c8; margin-bottom: 16px; }
h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1.02; font-weight: 500; }
.hero .lede { margin-top: 22px; font-size: 19.5px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 4px; background: var(--terra); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid var(--terra); }
.btn:hover { background: #99461f; border-color: #99461f; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.svc { display: block; text-decoration: none; }
.svc img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 12px; transition: opacity .2s ease; }
.svc:hover img { opacity: .86; }
.svc h3 { margin: 2px 0 4px; font-size: 19px; line-height: 1.25; font-weight: 600; }
.svc:hover h3 { color: var(--terra); }
.svc p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.svc .code { color: var(--moss); }
.photo-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* Section galleries */
.photo-band { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(380px, 42vw, 540px); margin-bottom: 44px; }
.photo-band figure { position: relative; min-height: 0; overflow: hidden; border-radius: 6px; background: #d9d0ba; }
.photo-band figure:nth-child(1) { grid-row: 1 / 3; }
.photo-band figure:nth-child(4) { grid-column: 2 / 4; }
.photo-band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; color: #fff; font-size: 13.5px; line-height: 1.3; background: linear-gradient(0deg, rgba(16,30,20,.78), transparent); }

/* Contact over planting */
.contact { position: relative; background: var(--forest); overflow: hidden; }
.contact-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact::after { content: ""; position: absolute; inset: 0; background: rgba(18,38,25,.86); }
.contact-inner { position: relative; z-index: 1; }

/* Credits */
.credits { padding: 36px 0 44px; background: var(--ink); color: #cfd3c5; font-size: 13px; line-height: 1.5; }
.credits h2 { margin-bottom: 6px; font: 600 15px var(--sans); letter-spacing: 0; color: #fff; }
.credits ol { margin-top: 14px; columns: 2; column-gap: 32px; }
.credits li { break-inside: avoid; margin-bottom: 6px; }
.credits a { color: #e6e9da; text-underline-offset: 2px; }

@media (max-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .brand { font-size: 17px; }
  .hero { min-height: 560px; padding: 72px 0 40px; }
  .hero::after { background: linear-gradient(0deg, rgba(16,30,20,.9) 0%, rgba(16,30,20,.68) 60%, rgba(16,30,20,.3) 100%); }
  .hero .lede { font-size: 17.5px; }
  .photo-band { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 150px; height: auto; margin-bottom: 32px; }
  .photo-band figure:nth-child(1) { grid-column: 1 / 3; grid-row: span 2; }
  .photo-band figure:nth-child(4) { grid-column: 1 / 3; }
  .credits ol { columns: 1; }
}
@media (max-width: 480px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================
   Brand: navy and gold from the vah-LEHR logo
   ========================================================== */
:root {
  --navy: #0b1f3a;
  --gold: #c19a4b;
  --gold-dark: #80621f;
  --forest: var(--navy);
  --ink: #18233a;
  --muted: #55604f;
  --moss: var(--gold-dark);
  --terra: var(--gold);
}

/* Header */
.site-head { background: var(--navy); border-bottom-color: var(--navy); color: #eef1f5; }
.brand { color: #fff; }
.brand em { color: var(--gold); }
.brand-mark { display: block; width: auto; height: 34px; }
.site-nav a:not(.nav-cta):hover { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--navy); }
.nav-cta:hover { background: #d7b268; }

/* Hero */
.hero-img { object-position: center 42%; }
.hero::after { background: linear-gradient(90deg, rgba(11,31,58,.9) 0%, rgba(11,31,58,.66) 45%, rgba(11,31,58,.08) 82%), linear-gradient(0deg, rgba(11,31,58,.5), transparent 45%); }
.hero .eyebrow { color: #e9d6a8; }
.btn { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn:hover { background: #d7b268; border-color: #d7b268; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* Cards and galleries */
.svc:hover h3 { color: var(--gold-dark); }
.photo-band figcaption { background: linear-gradient(0deg, rgba(11,31,58,.82), transparent); }

/* Contact and credits */
.contact { background: var(--navy); }
.contact::after { background: rgba(11,31,58,.89); }
.contact-logo { display: block; width: 190px; height: auto; margin-bottom: 26px; }
.tb-cell a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.tb-cell a:hover { color: var(--gold); }
.credits { background: #081729; }

@media (max-width: 760px) {
  .hero::after { background: linear-gradient(0deg, rgba(11,31,58,.92) 0%, rgba(11,31,58,.7) 60%, rgba(11,31,58,.3) 100%); }
  .brand-mark { height: 30px; }
  .site-head { color: #eef1f5; }
}
