/* Layout: Eco Elementum's section rhythm (top bar, photo-style hero, service grid, why-us, showcase, CTA band)
   in the logo's own palette: moss green structure, bark brown accents, white ground, survey-map contours. */
:root {
  /* Green: from the moss "R" and baobab canopy. Structure: header, footer, dark bands */
  --green-950: #151b08;  /* top bar, footer */
  --green-900: #222e10;  /* header, dark sections */
  --green-800: #2d3b16;  /* cards on dark */
  --green-line: #42532a; /* rules on dark */
  --moss: #4e5e1b;       /* green text on white: eyebrows, progress */
  --leaf: #aebd6c;       /* green text on dark: eyebrows, markers */
  /* Brown: from the wooden "G" and bark. Accents and actions */
  --bark: #6b3c10;       /* brown text/links on white, CTA band */
  --tan: #cf9c5f;        /* brown on dark: headings, figures, buttons */
  --tan-hover: #ddb07a;
  /* White ground */
  --white: #ffffff;
  --sand: #f6f3ec;       /* tinted ground behind white cards */
  --ink: #191d10;        /* body text on white (logo's green-black) */
  --slate: #5d5a4d;      /* muted text on white */
  --fog: #c5c8b3;        /* muted text on dark */
  --line-light: #e4ddcf; /* rules on white */

  --f-display: "Marcellus", "Trajan Pro", "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --radius: 6px;
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--green-900);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.light .eyebrow, .work .eyebrow { color: var(--moss); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.95rem/1 var(--f-body);
  padding: 14px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-primary { background: var(--tan); color: var(--green-950); }
.btn-primary:hover { background: var(--tan-hover); }
.btn-bark { background: var(--bark); color: var(--white); }
.btn-bark:hover { background: #854d17; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--tan); color: var(--tan); }
.btn-dark { background: var(--green-950); color: var(--white); }
.btn-dark:hover { background: var(--green-800); }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-950); font-size: 0.85rem; color: var(--fog); border-bottom: 1px solid var(--green-line); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; padding-block: 9px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; color: var(--tan); flex: none; }
@media (max-width: 640px) { .topbar .wrap { justify-content: flex-start; } .topbar .region { display: none; } }

/* ---------- Header ---------- */
.header { background: var(--green-900); border-bottom: 1px solid var(--green-line); position: relative; z-index: 5; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font: 400 2rem/1 var(--f-display); letter-spacing: 0.12em; color: var(--white); }
.wordmark b i { font-style: normal; color: var(--tan); }
.wordmark small { font: 500 0.6rem/1 var(--f-body); letter-spacing: 0.32em; color: var(--fog); margin-top: 6px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.link { text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--white); padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { border-color: var(--tan); }
.nav .btn { padding: 11px 16px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--green-line); color: var(--white); border-radius: var(--radius); padding: 9px 10px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; display: block; }
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--green-900); border-bottom: 1px solid var(--green-line);
         padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a.link { padding-block: 14px; border-bottom: 1px solid var(--green-line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 40%, #36461b 0%, var(--green-900) 55%, var(--green-950) 100%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 80px 88px; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); letter-spacing: 0.005em; }
.hero h1 em { font-style: normal; color: var(--tan); }
.hero .lede { font-size: 1.15rem; color: #e6e7da; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--fog); }
.creds span { display: inline-flex; align-items: center; gap: 8px; }
.creds span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.logo-plate {
  background: #ffffff;
  border-radius: 10px;
  padding: clamp(14px, 2.5vw, 28px);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.55);
  min-width: 0;
}
.logo-plate img { mix-blend-mode: multiply; width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 64px; }
}

/* ---------- Stats ---------- */
.stats { background: var(--green-950); border-block: 1px solid var(--green-line); }
.stats ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.stats li { padding: 28px 20px; border-left: 1px solid var(--green-line); display: grid; gap: 4px; }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { font: 400 2.5rem/1 var(--f-display); color: var(--tan); font-variant-numeric: tabular-nums; }
.stats span { font-size: 0.9rem; color: var(--fog); line-height: 1.35; }
@media (max-width: 900px) {
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li { border-left: 0; border-top: 1px solid var(--green-line); padding-left: 0; }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .stats li:first-child { grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.section-head p { color: var(--fog); font-size: 1.08rem; }
.light { background: var(--white); color: var(--ink); }
.light .section-head p { color: var(--slate); }
@media (max-width: 720px) { .section { padding-block: 64px; } }

/* About */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about > * { min-width: 0; }
.photo-ph {
  aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(107,60,16,.06) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #f0eadd, #e2d7c2);
  display: flex; align-items: flex-end;
  padding: 20px;
  border: 1px dashed #c9bb9e;
}
.photo-ph span { font-family: var(--f-mono); font-size: 0.75rem; color: var(--slate); background: rgba(255,255,255,.85); padding: 6px 10px; border-radius: 4px; }
.about-copy { display: grid; gap: 20px; }
.about-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.about-copy p { color: #3a3a2e; font-size: 1.05rem; max-width: 36em; }
.regs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.reg { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.reg small { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bark); }
.reg strong { font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.reg code { font-family: var(--f-mono); font-size: 0.85rem; color: var(--slate); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--bark); }
.text-link svg { width: 15px; height: 15px; transition: transform .2s; }
.text-link:hover svg { transform: translate(2px, -2px); }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .photo-ph { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) { .regs { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc {
  background: var(--green-800);
  border: 1px solid var(--green-line);
  border-radius: 8px;
  padding: 28px 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s, transform .25s;
}
.svc:hover { border-color: var(--tan); transform: translateY(-3px); }
.svc .ico { width: 46px; height: 46px; color: var(--tan); margin-bottom: 6px; }
.svc h3 { font-size: 1.45rem; color: var(--tan); }
.svc .tag { font-weight: 600; color: var(--white); }
.svc p.desc { color: var(--fog); font-size: 0.95rem; }
.svc .deliv { font-family: var(--f-mono); font-size: 0.74rem; color: #a7a98f; letter-spacing: 0.02em; border-top: 1px solid var(--green-line); padding-top: 12px; margin-top: auto; }
.svc .text-link { color: var(--tan); font-size: 0.9rem; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.process li { position: relative; padding: 0 20px 0 0; display: grid; gap: 10px; align-content: start; }
.process li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 0.8rem; color: var(--bark);
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 2px solid var(--line-light);
}
.process li:first-child::before { border-bottom-color: var(--bark); }
.process h3 { font-size: 1.2rem; line-height: 1.25; }
.process p { color: var(--slate); font-size: 0.93rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 26px; }
  .process li { padding: 0 0 0 64px; }
  .process li::before { position: absolute; left: 0; top: 2px; border: 0; padding: 0; }
}

/* Why */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.why-grid > * { min-width: 0; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.why-list li { display: grid; grid-template-columns: 34px 1fr; gap: 0 16px; }
.why-list li::before { content: ""; height: 2px; background: var(--tan); margin-top: 0.85em; grid-row: span 2; }
.why-list h3 { font: 600 1.15rem/1.4 var(--f-body); color: var(--tan); }
.why-list p { color: var(--fog); }
.why-list code { font-family: var(--f-mono); font-size: 0.85em; color: var(--white); }
.quote { border-left: 2px solid var(--leaf); padding-left: 22px; margin-top: 28px; display: grid; gap: 10px; }
.quote p { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.4; color: #efede2; }
.quote small { font-family: var(--f-mono); font-size: 0.75rem; color: var(--fog); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Projects */
.projects-band { position: relative; overflow: hidden; background: var(--green-950); }
.projects-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.projects-band .wrap { position: relative; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proj {
  background: rgba(45,59,22,.86);
  backdrop-filter: blur(4px);
  border: 1px solid var(--green-line);
  border-radius: 8px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.proj .meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); }
.proj .sector { color: var(--leaf); }
.proj h3 { font: 600 1.13rem/1.35 var(--f-body); color: var(--tan); }
.proj p { color: #d6d8c7; font-size: 0.94rem; }
.proj .where { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--green-line); font-family: var(--f-mono); font-size: 0.75rem; color: #a7a98f; display: flex; align-items: center; gap: 8px; }
.proj .where svg { width: 13px; height: 13px; color: var(--tan); flex: none; }
.sectors { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sectors > span:first-child { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); margin-right: 8px; }
.chip { border: 1px solid var(--green-line); background: rgba(21,27,8,.6); border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; color: #e6e7da; }
.footnote { margin-top: 18px; font-size: 0.82rem; color: #a09f88; }
@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

/* CTA band */
.cta { background: var(--bark); color: var(--white); }
.cta .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-block: 64px; }
.cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.cta p { font-size: 1.08rem; margin-top: 12px; color: #f1e6d6; max-width: 32em; }
.contact-card { background: var(--white); border-radius: 8px; padding: 26px; display: grid; gap: 14px; color: var(--ink); box-shadow: 0 20px 40px -24px rgba(21,27,8,.6); }
.contact-card .row { display: grid; gap: 2px; }
.contact-card small { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bark); }
.contact-card strong { font-size: 1.12rem; font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.contact-card .btn { justify-content: center; margin-top: 6px; }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--green-950); color: var(--fog); font-size: 0.93rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 64px 48px; }
.footer .cols > * { min-width: 0; }
.footer h4 { font: 600 0.78rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--tan); }
.footer .about-f { display: grid; gap: 18px; max-width: 26em; }
.footer .legal { border-top: 1px solid var(--green-line); }
.footer .legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; font-size: 0.82rem; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .about-f { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer .cols { grid-template-columns: 1fr; } }

.topbar .mock-tag { margin-right: auto;
  font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--leaf); color: var(--green-950); padding: 5px 8px; border-radius: 3px; }

/* Status pills (shared with consultation page) */
.pill { display: inline-flex; align-items: center; gap: 7px; width: fit-content; font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-open { background: #e6ecce; color: #3f4f12; }
.pill-soon { background: #f3e1c8; color: #7a4511; }
.pill-closed { background: #e9e6de; color: #5d5a4d; }
.pill-upcoming { background: #dfe8ef; color: #2f4d63; }
.pill-draft { background: #efe9dc; color: #6b5a33; }

/* Homepage consultation teaser */
.pc-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pc-teaser > * { min-width: 0; }
.pc-copy { display: grid; gap: 18px; justify-items: start; }
.pc-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.pc-copy p { color: #3a3a2e; font-size: 1.05rem; max-width: 34em; }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pc-list a { display: grid; gap: 8px; text-decoration: none; background: var(--white); border: 1px solid var(--line-light); border-radius: 8px; padding: 20px 22px; transition: border-color .2s, transform .2s; }
.pc-list a:hover { border-color: var(--bark); transform: translateY(-2px); }
.pc-list strong { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.pc-list small { font-family: var(--f-mono); font-size: 0.78rem; color: var(--slate); }
@media (max-width: 900px) { .pc-teaser { grid-template-columns: 1fr; gap: 32px; } }

/* Page hero & work area */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 90% 0%, #36461b 0%, var(--green-900) 50%, var(--green-950) 100%); }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-hero .wrap { position: relative; display: grid; gap: 16px; padding-block: 64px 56px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
.page-hero p { color: #e6e7da; font-size: 1.1rem; max-width: 44em; }
.page-hero .law { font-family: var(--f-mono); font-size: 0.78rem; color: var(--fog); }

.work { background: var(--sand); color: var(--ink); }
.work > .wrap { padding-block: 48px 88px; }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: 500 0.9rem/1 var(--f-body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-light); background: var(--white); color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--green-950); border-color: var(--green-950); color: var(--white); }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.8rem; color: var(--slate); }
.field .hint.warn { color: #9a4c12; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: 400 0.95rem var(--f-body); padding: 11px 12px; border: 1px solid #d6cfbf; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bark); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: #3a3a2e; }
.check input { margin-top: 4px; accent-color: var(--bark); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { display: flex; gap: 8px; align-items: center; border: 1px solid #d6cfbf; border-radius: var(--radius); padding: 10px 14px; background: var(--white); cursor: pointer; font-size: 0.92rem; }
.radio input { accent-color: var(--bark); }
.drop { border: 2px dashed #cdbfa6; border-radius: 10px; background: #faf8f3; padding: 26px 18px; text-align: center; display: grid; gap: 8px; justify-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--bark); background: #f3ecdf; }
.drop svg { width: 34px; height: 34px; color: var(--bark); }
.drop strong { font-weight: 600; }
.drop small { color: var(--slate); font-size: 0.82rem; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.file-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; border: 1px solid var(--line-light); border-radius: 8px; padding: 10px 12px; background: var(--white); }
.file-item input { font: 400 0.9rem var(--f-body); padding: 8px 10px; border: 1px solid #d6cfbf; border-radius: 5px; width: 100%; min-width: 0; color: var(--ink); background: var(--white); }
.file-item small { font-family: var(--f-mono); font-size: 0.72rem; color: var(--slate); grid-column: 1 / -1; overflow-wrap: anywhere; }
.icon-btn { background: none; border: 1px solid var(--line-light); border-radius: 5px; padding: 7px 9px; cursor: pointer; color: var(--slate); font: 500 0.8rem var(--f-body); }
.icon-btn:hover { color: #9a2f12; border-color: #d9a493; }
.form-msg { font-size: 0.92rem; }

/* ===== Inner pages ===== */
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn-line { border: 1px solid var(--line-light); background: var(--white); color: var(--ink); cursor: pointer; }
.btn-line:hover { border-color: var(--bark); color: var(--bark); }
.btn-sm { padding: 10px 14px; font-size: 0.88rem; }
.sec-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.muted { color: var(--slate); }

/* Sub-navigation (services) */
.subnav { position: sticky; top: 0; z-index: 4; background: var(--white); border-bottom: 1px solid var(--line-light); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.92rem; padding: 8px 12px; border-radius: 999px; }
.subnav a:hover { background: var(--sand); color: var(--bark); }

/* About */
.bio { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.bio > * { min-width: 0; }
.bio .photo-ph { position: sticky; top: 24px; }
.bio-copy { display: grid; gap: 18px; }
.bio-copy p { font-size: 1.06rem; color: #3a3a2e; max-width: 38em; }
.bio-copy .lead { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.4; color: var(--ink); }
.facts-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fact-chip { background: var(--white); border: 1px solid var(--line-light); border-radius: 999px; padding: 8px 14px; font-size: 0.88rem; }
.fact-chip b { font-weight: 600; color: var(--bark); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 32px; padding: 26px 0; border-top: 1px solid var(--green-line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .yr { font-family: var(--f-mono); font-size: 0.85rem; color: var(--tan); padding-top: 4px; }
.timeline h3 { font-size: 1.45rem; }
.timeline p { color: var(--fog); margin-top: 6px; max-width: 46em; }
.timeline .orgs { font-family: var(--f-mono); font-size: 0.78rem; color: #a7a98f; margin-top: 10px; line-height: 1.7; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; } }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line-light); border-radius: 10px; padding: 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card h3 { font-size: 1.35rem; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plain li { display: grid; gap: 2px; }
.plain strong { font-weight: 600; line-height: 1.35; }
.plain small { font-family: var(--f-mono); font-size: 0.76rem; color: var(--slate); }
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pubs li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
.pubs .y { font-family: var(--f-mono); font-size: 0.85rem; color: var(--bark); padding-top: 2px; }
.pubs p { color: #3a3a2e; }
@media (max-width: 1000px) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .bio { grid-template-columns: 1fr; gap: 32px; } .bio .photo-ph { position: static; aspect-ratio: 16 / 10; } }
@media (max-width: 640px) { .cols-3 { grid-template-columns: 1fr; } }

/* Services detail */
.svc-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding-block: 72px; border-top: 1px solid var(--line-light); scroll-margin-top: 64px; align-items: start; }
.svc-detail:first-child { border-top: 0; padding-top: 24px; }
.svc-main { display: grid; gap: 18px; min-width: 0; }
.svc-main .ico { width: 52px; height: 52px; color: var(--bark); }
.svc-main h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.svc-main > p { font-size: 1.06rem; color: #3a3a2e; max-width: 38em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.ticks li { position: relative; padding-left: 26px; color: #34342a; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--bark); border-bottom: 2px solid var(--bark); transform: rotate(-45deg); }
.deliv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.deliv-chips span { font-family: var(--f-mono); font-size: 0.76rem; background: var(--white); border: 1px solid var(--line-light); border-radius: 4px; padding: 6px 9px; color: #45443a; }
.label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bark); }
.exp-box { background: var(--green-950); color: var(--white); border-radius: 10px; padding: 26px; display: grid; gap: 16px; min-width: 0; }
.exp-box .label { color: var(--tan); }
.exp-box ul { list-style: none; margin: 0; padding: 0; display: grid; }
.exp-box li { padding: 12px 0; border-top: 1px solid var(--green-line); display: grid; gap: 2px; }
.exp-box li:first-child { border-top: 0; padding-top: 0; }
.exp-box strong { font-weight: 600; line-height: 1.35; }
.exp-box small { font-family: var(--f-mono); font-size: 0.75rem; color: var(--fog); }
.exp-box .text-link { color: var(--tan); font-size: 0.92rem; }
.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.also .svc .ico { width: 40px; height: 40px; }
@media (max-width: 900px) { .svc-detail { grid-template-columns: 1fr; gap: 28px; padding-block: 56px; } }
@media (max-width: 1000px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } .also { grid-template-columns: 1fr; } }

/* Projects page */
.proj-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 26px; }
.count { font-family: var(--f-mono); font-size: 0.8rem; color: var(--slate); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pcard { background: var(--white); border: 1px solid var(--line-light); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color .2s, transform .2s; }
.pcard:hover { border-color: var(--bark); transform: translateY(-2px); }
.pcard .meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.pcard .sector { color: #8f561c; }
.pcard h3 { font: 600 1.08rem/1.35 var(--f-body); color: var(--ink); }
.pcard p { color: #45443a; font-size: 0.93rem; }
.pcard .svcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-light); }
.pcard .svcs span { font-size: 0.75rem; background: var(--sand); border-radius: 4px; padding: 4px 8px; color: #45443a; }
.pcard .where { font-family: var(--f-mono); font-size: 0.75rem; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.pcard .where svg { width: 12px; height: 12px; color: var(--bark); flex: none; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-side { display: grid; gap: 16px; min-width: 0; }
.big-contact { display: grid; gap: 2px; }
.big-contact strong { font-size: 1.25rem; font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.notice { border-radius: 8px; padding: 14px 16px; font-size: 0.92rem; }
.notice-ok { background: #eaf0d8; border: 1px solid #cbd6a6; color: #34430f; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Photography ===== */
.hero { background:
  linear-gradient(90deg, rgba(21,27,8,.95) 0%, rgba(34,46,16,.86) 45%, rgba(34,46,16,.5) 100%),
  url(img/hero-home.jpg) center 55% / cover; }
.page-hero[class*="ph-"] { background-size: cover; background-position: center; }
.ph-about { background-image: linear-gradient(90deg, rgba(21,27,8,.94) 0%, rgba(34,46,16,.78) 55%, rgba(34,46,16,.45) 100%), url(img/hero-about.jpg); background-position: center 40% !important; }
.ph-services { background-image: linear-gradient(90deg, rgba(21,27,8,.94) 0%, rgba(34,46,16,.8) 55%, rgba(34,46,16,.55) 100%), url(img/hero-services.jpg); }
.ph-projects { background-image: linear-gradient(90deg, rgba(21,27,8,.94) 0%, rgba(34,46,16,.82) 55%, rgba(34,46,16,.55) 100%), url(img/hero-projects.jpg); }
.ph-consultation { background-image: linear-gradient(90deg, rgba(21,27,8,.95) 0%, rgba(34,46,16,.84) 55%, rgba(34,46,16,.6) 100%), url(img/hero-consultation.jpg); }
.ph-contact { background-image: linear-gradient(90deg, rgba(21,27,8,.94) 0%, rgba(34,46,16,.8) 55%, rgba(34,46,16,.5) 100%), url(img/hero-contact.jpg); }
.why-photo { background:
  linear-gradient(90deg, rgba(21,27,8,.95) 0%, rgba(34,46,16,.9) 50%, rgba(34,46,16,.78) 100%),
  url(img/bg-why.jpg) center 70% / cover; }
.projects-band { background:
  linear-gradient(rgba(21,27,8,.9), rgba(21,27,8,.94)),
  url(img/bg-projects.jpg) center / cover; }
.photo { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; }
.bio .photo { position: sticky; top: 24px; }
@media (max-width: 900px) { .photo { aspect-ratio: 16 / 11; } .bio .photo { position: static; } }
.svc-side { display: grid; gap: 16px; min-width: 0; }
.svc-img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }

/* From the field gallery */
.field-strip { background: var(--sand); color: var(--ink); }
.field-strip .section-head p { color: var(--slate); }
.field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.field-grid img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; display: block; transition: transform .4s ease; }
.field-grid li { overflow: hidden; border-radius: 6px; }
.field-grid li:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Dedication ===== */
.memorial { background: var(--sand); color: var(--ink); }
.memorial .wrap { max-width: 760px; text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: 96px; }
.memorial .eyebrow { color: var(--moss); }
.memorial .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.memorial-photo { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 10px 30px -14px rgba(21,27,8,.45); }
.memorial-photo.ph { display: flex; align-items: center; justify-content: center; background: var(--white); border: 2px dashed #c9bb9e; box-shadow: none; font: 500 0.72rem/1.4 var(--f-mono); color: var(--slate); padding: 20px; text-align: center; }
.memorial h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: var(--bark); }
.memorial .dates { font-family: var(--f-mono); font-size: 0.85rem; letter-spacing: 0.12em; color: var(--slate); }
.memorial p.tribute { font-family: var(--f-display); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.6; color: #3a3a2e; max-width: 34em; }
.memorial .sprig { width: 64px; height: 40px; color: var(--moss); opacity: .8; }
.tbc { background: #fff3c4; border-bottom: 1px dashed #b5762f; padding: 0 3px; border-radius: 2px; }
.footer .memory { font-size: 0.85rem; color: var(--fog); }
.footer .memory a { color: var(--tan); text-decoration: none; border-bottom: 1px solid rgba(207,156,95,.4); }
.footer .memory a:hover { color: var(--tan-hover); }
.tribute-quote { margin: 6px 0 0; display: grid; gap: 16px; justify-items: center; }
.memorial .signed { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss); display: inline-flex; align-items: center; gap: 10px; }
.memorial .signed::before { content: ""; width: 22px; height: 1px; background: currentColor; }
