/* FIDES Environmental. One world: the surveyed site. Forest-dark floors, sage-tinted paper,
   lot-boundary chamfers and contour linework. */

@font-face {
  font-family: "Gambarino";
  src: url("/assets/fonts/gambarino-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest-950: #0b1d17;
  --forest-900: #10261e;
  --forest-800: #183529;
  --forest-700: #22473a;
  --moss-600: #35634a;
  --moss-500: #4b7a5e;
  --sage-300: #b3c7a4;
  --sage-200: #cfdcc0;
  --paper: #eef1e9;
  --paper-2: #e2e8dc;
  --paper-3: #d6decf;
  --ink: #12261f;
  --ink-2: #46594f;
  --on-dark: #eef1e9;
  --on-dark-2: #b9c6b8;
  --survey: #e6c447;
  --display: "Gambarino", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --cut: 14px;
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 6.25rem); }
h2 { font-size: clamp(2.1rem, 3.9vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--moss-600); }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--moss-500); outline-offset: 4px; }
::selection { background: var(--sage-200); color: var(--forest-900); }

.wrap { width: min(1320px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--paper); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }
.muted, .fine { color: var(--ink-2); }
.fine { font-size: .875rem; }
.intro { font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.6; max-width: 38ch; }
.section { padding: clamp(72px, 9vw, 128px) 0; }

/* Kept labels (categories, roles): plain type, not tracked caps */
.eyebrow { font-size: .875rem; font-weight: 650; color: var(--moss-600); margin-bottom: 10px; }

/* Dark floors share one tone; anything on them flips its ink */
.hero, .introduction, .page-hero, .service-hero, .service-highlights, .insights-hero, .cta, .footer {
  background-color: var(--forest-900);
  color: var(--on-dark);
}
:is(.hero, .introduction, .page-hero, .service-hero, .insights-hero, .cta, .footer) :is(h1, h2, h3) em { color: var(--sage-300); }
:is(.page-hero, .service-hero, .insights-hero, .cta, .introduction) .intro,
:is(.page-hero, .service-hero, .insights-hero, .cta, .introduction) p { color: var(--on-dark-2); }

/* Contour linework: one generated map, tinted per surface through a mask */
.contours { position: relative; isolation: isolate; }
.contours::before {
  content: "";
  position: absolute;
  inset: -12% 0;
  z-index: -1;
  background: var(--sage-200);
  opacity: .085;
  -webkit-mask: url("/assets/contours.svg") center / cover no-repeat;
  mask: url("/assets/contours.svg") center / cover no-repeat;
  pointer-events: none;
}

/* The boundary cut: dark floors end on a surveyed diagonal, never a flat seam */
.cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%); padding-bottom: calc(clamp(72px, 9vw, 128px) + 5vw); }
.cut-top { clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%); padding-top: calc(clamp(72px, 9vw, 128px) + 5vw); }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 26px 14px 22px;
  border: 0;
  background: var(--forest-900);
  color: var(--on-dark);
  font: 650 .95rem/1.2 var(--body);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.button:hover { background: var(--moss-600); }
.button:focus-visible { outline-offset: -5px; outline-color: var(--sage-200); }
.button.white, :is(.service-hero, .page-hero, .insights-hero, .cta, .introduction) .button { background: var(--sage-200); color: var(--forest-900); }
.button.white:hover, :is(.service-hero, .page-hero, .insights-hero, .cta, .introduction) .button:hover { background: var(--paper); }
.button.white:focus-visible { outline-color: var(--forest-900); }
.arrow { display: inline-block; font-size: 1.05em; line-height: 1; transition: transform .3s var(--ease); }
a:hover > .arrow, button:hover > .arrow, a:focus-visible > .arrow { transform: translate(3px, -3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.text-link:hover { color: var(--moss-600); text-decoration-color: currentColor; }
:is(.introduction, .cta, .page-hero, .service-hero, .insights-hero) .text-link:hover { color: var(--sage-200); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
.header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
  padding: 8px 10px 8px 20px;
  background: color-mix(in srgb, var(--forest-950) 88%, transparent);
  color: var(--on-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  pointer-events: auto;
  transition: min-height .35s var(--ease), background-color .35s var(--ease);
}
.is-scrolled .header .wrap { --nav-h: 56px; background: var(--forest-950); }
/* Brand lockup: the real FIDES mark, with the name and motto set as live text so they stay legible. */
.lockup { display: flex; align-items: center; gap: .7em; width: fit-content; font-size: 1rem; }
.lockup img { flex: none; width: auto; height: 2.5em; transition: height .35s var(--ease); }
.lockup-text { display: grid; gap: .15em; line-height: 1.1; }
.lockup-name { font-weight: 650; font-size: 1.0625em; letter-spacing: .01em; color: var(--on-dark); white-space: nowrap; }
.lockup-tag { font-family: var(--display); font-size: .9em; color: var(--sage-300); white-space: nowrap; }
.logo { flex: 0 0 auto; }
.is-scrolled .logo img { height: 2.2em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); margin-left: auto; font-size: .9375rem; }
.nav a { color: var(--on-dark-2); transition: color .2s var(--ease); }
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--sage-200); font-weight: 650; }
.nav .header-phone { color: var(--on-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav .header-enquire { min-height: 46px; padding-block: 10px; font-size: .9rem; background: var(--sage-200); color: var(--forest-900); }
.nav .header-enquire:hover { background: var(--paper); color: var(--forest-900); }
.menu-button { display: none; }

/* ---------- Home hero: the surveyed site ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}
.hero-plate {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: max(100%, calc(max(640px, 100svh) * 2));
  aspect-ratio: 2 / 1;
  translate: -50% -50%;
  -webkit-mask: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,.92) 70%, rgba(0,0,0,.75) 78%, rgba(0,0,0,.5) 85%, rgba(0,0,0,.25) 91%, rgba(0,0,0,.08) 96%, transparent 100%);
  mask: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,.92) 70%, rgba(0,0,0,.75) 78%, rgba(0,0,0,.5) 85%, rgba(0,0,0,.25) 91%, rgba(0,0,0,.08) 96%, transparent 100%);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  grid-template-rows: auto 1fr auto;
  column-gap: 48px;
  padding: calc(var(--nav-h) + 72px) 0 clamp(28px, 4vw, 48px);
}
.hero-content::before {
  content: "";
  position: absolute;
  inset: 0 -20% auto;
  height: 62%;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(11,29,23,.72), rgba(11,29,23,.38) 55%, rgba(11,29,23,0));
  pointer-events: none;
}
.hero h1 { grid-column: 1 / -1; max-width: none; font-size: clamp(3rem, 7.6vw, 7.75rem); line-height: .98; text-shadow: 0 1px 24px rgba(11,29,23,.35); }
.hero h1 span, .hero h1 em { display: block; }
.hero-aside {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  padding: 26px 26px 24px;
  background: color-mix(in srgb, var(--forest-950) 84%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.hero-aside .intro { color: var(--on-dark); font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.hero-phone { font-family: var(--display); font-size: 1.5rem; letter-spacing: .01em; color: var(--on-dark); transition: color .2s var(--ease); }
.hero-phone:hover { color: var(--sage-200); }
.hero-foot { grid-column: 1; grid-row: 3; align-self: end; max-width: 30ch; color: var(--on-dark-2); font-size: .9375rem; text-shadow: 0 1px 12px rgba(11,29,23,.6); }

/* ---------- Home: introduction (dark, continues the hero floor) ---------- */
.introduction { margin-top: -1px; }
.introduction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px) clamp(32px, 7vw, 120px); }
.introduction-grid > div:first-child { grid-column: 1 / -1; }
.introduction-grid h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.introduction-copy { grid-column: 2; }
.introduction-copy { max-width: 46ch; }
@media (max-width: 900px) { .introduction-copy { grid-column: 1; } }
.introduction-copy p:first-child { color: var(--on-dark); font-size: 1.2rem; }
.introduction-copy .text-link { margin-top: 28px; }

/* ---------- Home: services index with live image ---------- */
.expertise-section { padding: clamp(40px, 6vw, 96px) 0 clamp(72px, 9vw, 128px); }
.expertise-layout {
  width: min(1320px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.expertise-index h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.expertise-rows { display: grid; gap: 4px; margin-bottom: 32px; }
.expertise-rows a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.1;
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color .3s var(--ease), color .3s var(--ease), padding .4s var(--ease);
}
.expertise-rows a .arrow { font-family: var(--body); font-size: 1.1rem; color: var(--moss-600); }
.expertise-rows a:hover, .expertise-rows a:focus-visible, .expertise-rows a.is-active { background: var(--paper-2); padding-left: 26px; }
.expertise-image { position: sticky; top: 100px; }
.expertise-image .frame { position: relative; }
.expertise-image .frame img + img { position: absolute; inset: 0; }

/* Chamfered image frames: the lot-boundary corner */
.frame, .expertise-image, .ecology-visual, .split-image, .service-hero-image, .project-gallery figure > div, .insight-photo, .service-tile > img, .article figure img, .insight-lead-image img {
  --chamfer: clamp(18px, 2.4vw, 34px);
}
.expertise-image img, .ecology-visual img, .split-image img, .service-hero-image img, .project-gallery img, .insight-photo img, .service-tile > img, .article figure img, .support-hero-image {
  width: 100%;
  object-fit: cover;
}
.expertise-image .frame, .ecology-visual .frame, .split-image, .service-hero-image .frame, .project-gallery .frame, .insight-photo, .service-tile > .frame, .article figure .frame {
  overflow: hidden;
  background: var(--paper-3);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.expertise-image img { aspect-ratio: 4 / 5; height: auto; transition: opacity .6s var(--ease); }
figcaption { margin-top: 12px; color: var(--ink-2); font-size: .875rem; }

/* ---------- Home: notices ---------- */
.notice-banner { padding-top: 0; padding-bottom: 0; }
.introduction { padding-top: clamp(40px, 5vw, 72px); }
.notice-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 7vw, 120px);
  align-items: end;
  padding: clamp(36px, 5vw, 64px);
  background: var(--paper-2);
  --chamfer: clamp(22px, 3vw, 40px);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.notice-layout h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.notice-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 28px; }

/* ---------- Home: ecology ---------- */
.ecology-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 112px); align-items: center; }
.ecology-visual img { aspect-ratio: 4 / 3.4; height: auto; }
.split-copy h2 { margin-bottom: 26px; }
.split-copy .text-link { margin-top: 30px; }
.value-list, .article ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.value-list li, .article ul li { position: relative; padding-left: 28px; }
.value-list li::before, .article ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .55em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--moss-500);
  rotate: 45deg;
}

/* ---------- Home: civil gallery, staggered like a site walk ---------- */
.section-heading { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-heading > div:nth-child(2), .section-heading > p { max-width: 46ch; }
.section-heading .text-link { margin-top: 22px; }
.project-gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(14px, 2vw, 28px); align-items: start; }
.project-gallery figure:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
.project-gallery figure:nth-child(3) { margin-top: clamp(20px, 3vw, 48px); }
.project-gallery img { aspect-ratio: 4 / 5; height: auto; }
.project-gallery figure:first-child img { aspect-ratio: 5 / 6; }
.project-gallery figcaption { display: flex; flex-direction: column; gap: 2px; }
.project-gallery figcaption strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--ink); }

/* ---------- Home: process as a pegged survey line ---------- */
.process-section.contours::before { background: var(--moss-600); opacity: .07; }
.process { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 56px; }
.process::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--moss-500) 0 18px, transparent 18px 30px);
}
.process article { position: relative; }
.process .number {
  position: absolute;
  top: -56px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-right: 14px;
  background: var(--paper);
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 38px;
  color: var(--moss-600);
}
.process .number::before {
  content: "";
  width: 14px;
  height: 14px;
  margin: 0 6px 0 4px;
  background: var(--paper);
  border: 3px solid var(--moss-600);
  rotate: 45deg;
}
.process h3 { margin-bottom: 12px; }
.process p { color: var(--ink-2); max-width: 34ch; }

/* ---------- Article cards ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.insight-card { display: grid; grid-template-rows: auto 1fr; }
.insight-photo { display: block; margin-bottom: 22px; }
.insight-photo img { aspect-ratio: 3 / 2; height: auto; transition: scale .8s var(--ease); }
.insight-card:hover .insight-photo img { scale: 1.04; }
.insight-card-copy { display: flex; flex-direction: column; align-items: flex-start; }
.insight-card h2, .insight-card h3 { font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.15; margin: 8px 0 12px; }
.insight-card h2 a, .insight-card h3 a { transition: color .2s var(--ease); }
.insight-card:hover h2 a, .insight-card:hover h3 a { color: var(--moss-600); }
.insight-card-copy > p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 18px; }
.insight-card-copy .text-link { margin-top: auto; }
.insight-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-2); font-size: .875rem; }
.insight-card .eyebrow { margin-bottom: 4px; }
.insights-home h2 + .insight-grid { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.faq-layout > div:first-child p { margin-top: 20px; max-width: 34ch; }
.faq-list { display: grid; gap: 6px; }
.faq-list details { background: var(--paper-2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); transition: background-color .3s var(--ease); }
.faq-list details[open] { background: var(--paper-3); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 22px 64px 22px 24px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--moss-600);
  transition: rotate .35s var(--ease);
}
.faq-list summary::after { rotate: 90deg; }
.faq-list details[open] summary::after { rotate: 0deg; }
.faq-list details p { padding: 0 24px 24px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Closing call and footer: one dark floor ---------- */
.cta { padding-bottom: clamp(56px, 7vw, 96px); }
.cta .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.cta h2 { font-size: clamp(2.6rem, 5.6vw, 5.25rem); margin-bottom: 22px; }
.cta p { max-width: 42ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cta .phone { font-family: var(--display); font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; letter-spacing: .01em; color: var(--sage-200); font-variant-numeric: lining-nums; transition: color .2s var(--ease); }
.cta .phone:hover { color: var(--paper); }

.footer { position: relative; overflow: hidden; padding-top: clamp(40px, 5vw, 72px); margin-top: -1px; }
main:not(:has(.cta)) + .footer { clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%); padding-top: calc(clamp(40px, 5vw, 72px) + 5vw); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.1fr; gap: clamp(24px, 4vw, 56px); }
.footer .footer-brand { display: flex; padding: 0; font-size: 1.25rem; margin-bottom: 20px; }
.footer-description { color: var(--on-dark-2); font-size: .9375rem; max-width: 30ch; }
.footer h3 { font-family: var(--body); font-size: .9375rem; font-weight: 650; color: var(--on-dark); margin-bottom: 14px; letter-spacing: 0; }
.footer-main > div > a { display: block; width: fit-content; padding: 4px 0; color: var(--on-dark-2); font-size: .9375rem; overflow-wrap: anywhere; transition: color .2s var(--ease); }
.footer-main > div > a:hover { color: var(--on-dark); }
.footer .footer-phone { font-family: var(--display); font-size: 1.6rem; color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: clamp(40px, 5vw, 64px); color: var(--on-dark-2); font-size: .875rem; }
.footer-bottom a:hover { color: var(--on-dark); }
.footer-wordmark {
  margin: clamp(24px, 4vw, 48px) 0 0;
  font-family: var(--display);
  font-size: clamp(7rem, 30vw, 30rem);
  line-height: .74;
  letter-spacing: .06em;
  text-align: center;
  color: var(--forest-800);
  margin-bottom: -.02em;
  user-select: none;
  pointer-events: none;
  padding-left: .06em;
}

/* ---------- Inner page heroes ---------- */
.page-hero, .insights-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(72px, 9vw, 120px)) 0 clamp(64px, 7vw, 104px); }
.page-hero h1, .insights-hero h1 { max-width: 16ch; margin-bottom: 24px; }
.insight-article-hero h1 { max-width: 22ch; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--on-dark-2); font-size: .875rem; }
.breadcrumbs a:hover { color: var(--on-dark); }
.page-hero .eyebrow, .insights-hero .eyebrow { color: var(--sage-300); }
.insights-hero .insight-meta { color: var(--on-dark-2); margin-top: 22px; }
.insight-topics { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; }
.insight-topics a { color: var(--on-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); transition: color .2s var(--ease); }
.insight-topics a:hover { color: var(--sage-200); text-decoration-color: currentColor; }

.about-hero, .contact-hero { min-height: min(86svh, 820px); display: flex; align-items: flex-end; isolation: isolate; }
.support-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  -webkit-mask: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.8) 70%, rgba(0,0,0,.45) 84%, rgba(0,0,0,.15) 94%, transparent 100%);
  mask: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.8) 70%, rgba(0,0,0,.45) 84%, rgba(0,0,0,.15) 94%, transparent 100%);
}
.about-hero .wrap, .contact-hero .wrap { position: relative; }
.about-hero .wrap::before, .contact-hero .wrap::before {
  content: "";
  position: absolute;
  inset: -40% -30% -20% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(11,29,23,.72), rgba(11,29,23,0));
  pointer-events: none;
}
.about-hero h1, .contact-hero h1 { text-shadow: 0 1px 24px rgba(11,29,23,.4); }
.about-hero .intro, .contact-hero .intro { color: var(--on-dark); }

/* ---------- Service pages ---------- */
.service-hero { padding: calc(var(--nav-h) + clamp(64px, 8vw, 108px)) 0 0; overflow: hidden; }
.service-layout { width: min(1320px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.service-hero-copy { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: clamp(28px, 6vw, 96px); align-items: end; }
.service-hero-copy .breadcrumbs { grid-column: 1 / -1; }
.service-hero-copy h1 { grid-row: 2 / span 2; font-size: clamp(2.8rem, 6vw, 5.75rem); }
.service-hero-copy .intro { grid-column: 2; }
.service-hero-copy .hero-actions { grid-column: 2; }
.service-hero-image { margin-top: clamp(40px, 5vw, 72px); }
.service-hero-image img { height: clamp(260px, 46vw, 620px); }
.service-highlights { padding: 22px 0 26px; }
.service-highlights.cut-bottom { padding-bottom: calc(26px + 5vw); }
.service-highlights .wrap { display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 4vw, 56px); }
.service-highlights span { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); font-weight: 600; }
.service-highlights span::before { content: ""; width: 8px; height: 8px; border: 2px solid var(--sage-300); rotate: 45deg; }

.page-content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.page-content .sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 100px; display: grid; gap: 20px; }
.page-content .article { grid-column: 1; grid-row: 1; }
.article { max-width: 760px; }
.article > section + section, .article > section + figure, .article > figure + section, .article > * + .note { margin-top: clamp(40px, 5vw, 64px); }
.article h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 18px; }
.article p { color: var(--ink-2); }
.article p a:not(.source-ref), .article li a { color: var(--moss-600); text-decoration: underline; text-underline-offset: 4px; }
.article figure img { aspect-ratio: 16 / 9; height: auto; }
.note {
  padding: 22px 26px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: .9375rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.note strong { color: var(--ink); }
.side-nav { display: grid; gap: 2px; }
.side-nav h3 { font-family: var(--body); font-size: .9375rem; font-weight: 650; margin-bottom: 10px; letter-spacing: 0; }
.side-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; color: var(--ink-2); font-size: .9375rem; transition: background-color .2s var(--ease), color .2s var(--ease); }
.side-nav a:hover { background: var(--paper-2); color: var(--ink); }
.side-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--paper-2); }
.side-box {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 26px;
  background: var(--forest-900);
  color: var(--on-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.side-box h2, .side-box h3 { font-size: 1.6rem; }
.side-box p { color: var(--on-dark-2); font-size: .9375rem; }
.side-box .button { background: var(--sage-200); color: var(--forest-900); }
.side-box .button:hover { background: var(--paper); }
.side-box > a:not(.button):not(.text-link) { font-family: var(--display); font-size: 1.4rem; }
.side-box .text-link:hover { color: var(--sage-200); }

/* Services index */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px) clamp(20px, 2.6vw, 40px); }
.service-tile { display: grid; grid-template-rows: auto 1fr; }
.service-tile > .frame img { aspect-ratio: 4 / 3; height: auto; transition: scale .8s var(--ease); }
.service-tile:hover > .frame img { scale: 1.04; }
.service-tile-inner { display: flex; flex-direction: column; align-items: flex-start; padding-top: 20px; }
.service-tile h2 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.1; margin-bottom: 10px; }
.service-tile p { color: var(--ink-2); margin-bottom: 18px; }
.service-tile .text-link { margin-top: auto; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 112px); align-items: center; }
.split-image img { aspect-ratio: 4 / 4.6; height: auto; }
.split-copy p { color: var(--ink-2); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.team-card { padding: clamp(28px, 3.4vw, 48px); background: var(--paper-2); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
.team-card h3 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: 16px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-details h2 { margin-bottom: 20px; }
.contact-details > p { color: var(--ink-2); max-width: 44ch; }
.contact-method { display: grid; gap: 2px; margin-top: 28px; }
.contact-method span { font-size: .875rem; font-weight: 650; color: var(--moss-600); }
.contact-method a, .contact-method p { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; overflow-wrap: anywhere; }
.contact-method a:hover { color: var(--moss-600); }
.contact-method a[href^="mailto:"] { font-size: clamp(1.05rem, 5.2vw, 1.9rem); overflow-wrap: normal; }
.contact-details .note { margin-top: 36px; }
.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.6vw, 48px);
  background: var(--paper-2);
  --chamfer: clamp(18px, 2.4vw, 32px);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.form h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.form > p { color: var(--ink-2); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9375rem; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--forest-900) 22%, transparent);
  border-radius: 2px;
  background: var(--paper);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--forest-900) 40%, transparent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--moss-500); outline-offset: 1px; border-color: var(--moss-500); background: #fff; }
.form .button { justify-self: start; }
.form-status { display: grid; gap: 14px; padding: 22px; background: var(--paper); }
.form-status:focus { outline: 2px solid var(--moss-500); }
.prepared-email { margin: 0; padding: 16px; max-height: 260px; overflow: auto; background: var(--paper-2); font: .875rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

/* Articles */
.insight-listing > .wrap > .insight-featured { margin-bottom: clamp(48px, 6vw, 88px); }
.insight-featured { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.insight-featured .insight-photo { margin-bottom: 0; }
.insight-featured h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.insight-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.insight-aside { position: sticky; top: 100px; display: grid; gap: 22px; }
.insight-lead-image img { aspect-ratio: 16 / 9; }
.insight-lead-image figcaption { margin-top: 10px; }
.insight-takeaway { margin: clamp(32px, 4vw, 48px) 0; padding: 26px 28px; background: var(--paper-2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.insight-takeaway p:not(.eyebrow) { color: var(--ink); font-family: var(--display); font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.3; }
.source-ref { font-size: .75em; vertical-align: super; line-height: 0; margin-left: 2px; color: var(--moss-600); font-weight: 650; }
.insight-sources ol { padding-left: 1.3em; display: grid; gap: 8px; color: var(--ink-2); }
.insight-sources .fine { margin-top: 18px; }
.insights-home > .wrap > h2 { margin-bottom: 0; }

/* Mobile quick contact: one split bar */
.mobile-contact { display: none; }

/* ---------- Motion (scroll-authored, never gating content) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span, .hero h1 em { animation: rise 1.1s var(--ease) both; }
  .hero h1 em { animation-delay: .12s; }
  .process::before { animation: survey 2.8s linear infinite; }

  @supports (animation-timeline: view()) {
    .hero-plate { animation: plate linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .contours::before { animation: drift linear both; animation-timeline: view(); }
    .frame img, .split-image img, .ecology-visual img, .service-hero-image img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
    .project-gallery figure:nth-child(2) { animation: lift-a linear both; animation-timeline: view(); }
    .project-gallery figure:nth-child(3) { animation: lift-b linear both; animation-timeline: view(); }
  }
}
@keyframes rise { from { translate: 0 .35em; } to { translate: 0 0; } }
@keyframes survey { to { background-position: 30px 0; } }
@keyframes plate { to { scale: 1.08; } }
@keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
@keyframes settle { from { scale: 1.1; } to { scale: 1; } }
@keyframes lift-a { from { translate: 0 40px; } to { translate: 0 -40px; } }
@keyframes lift-b { from { translate: 0 20px; } to { translate: 0 -20px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    background: var(--forest-800);
    color: var(--on-dark);
    font-weight: 650;
    transition: background-color .2s var(--ease);
  }
  .menu-button:hover { background: var(--forest-700); }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 20px 24px;
    background: var(--forest-950);
    font-size: 1.15rem;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .nav.open { visibility: visible; clip-path: inset(0 0 -2px 0); transition: clip-path .45s var(--ease); }
  .nav a:not(.button) { padding: 12px 0; }
  .nav .header-phone { padding-top: 18px; font-family: var(--display); font-size: 1.6rem; }
  .nav .header-enquire { justify-self: start; margin-top: 8px; }
  .header .wrap { clip-path: none; position: relative; }
  .header .wrap::after { content: ""; position: absolute; inset: 0; z-index: -1; }
}

@media (max-width: 900px) {
  .introduction-grid, .expertise-layout, .notice-layout, .ecology-layout, .section-heading, .faq-layout, .cta .wrap,
  .split, .contact-layout, .page-content, .insight-article-layout, .service-hero-copy, .insight-featured { grid-template-columns: 1fr; }
  .expertise-image { position: static; order: -1; }
  .expertise-image img { aspect-ratio: 16 / 10; }
  .project-gallery { grid-template-columns: 1fr 1fr; }
  .project-gallery figure:first-child { grid-column: 1 / -1; }
  .project-gallery figure:first-child img { aspect-ratio: 16 / 10; }
  .project-gallery figure:nth-child(2) { margin-top: 0; }
  .project-gallery figure:nth-child(3) { margin-top: 40px; }
  .insight-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; gap: 44px; padding-top: 0; }
  .process::before { display: none; }
  .process article { padding-top: 56px; }
  .process article::before { content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--moss-500) 0 18px, transparent 18px 30px); }
  .process .number { top: 0; z-index: 1; }
  .page-content .sidebar, .page-content .article { grid-column: 1; grid-row: auto; }
  .page-content .sidebar { position: static; order: 2; }
  .insight-aside { position: static; }
  .service-hero-copy h1 { grid-row: auto; margin-bottom: 22px; }
  .service-hero-copy .intro, .service-hero-copy .hero-actions { grid-column: 1; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
  .hero-content { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
  .hero-aside { grid-column: 1; grid-row: 3; margin-top: 32px; }
  .hero-foot { grid-row: 4; margin-top: 20px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 64px; font-size: 1rem; }
  .header { inset: 8px 0 auto; }
  .header .wrap { width: calc(100% - 16px); padding-left: 14px; }
  .logo { font-size: clamp(.8125rem, 3.9vw, .9375rem); }
  .header .wrap { gap: 12px; }
  .menu-button { padding: 0 12px; }
  .hero h1 { font-size: clamp(2.7rem, 12.5vw, 4rem); }
  .hero { min-height: 0; }
  .hero-plate { top: 0; width: calc(max(560px, 92svh) * 2); translate: -47% 0; }
  .hero-content { padding-top: calc(var(--nav-h) + 56px); grid-template-rows: auto; }
  .hero-content::before { height: 40%; }
  .hero-aside { margin-top: calc(max(560px, 92svh) - var(--nav-h) - 330px); background: var(--forest-950); }
  .hero-foot { display: none; }
  .insight-grid, .service-grid, .team-grid, .field-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery figure:nth-child(3) { margin-top: 0; }
  .project-gallery img, .project-gallery figure:first-child img { aspect-ratio: 4 / 3; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-wordmark { font-size: 33vw; }
  .mobile-contact {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--forest-950);
    padding: 2px 2px max(2px, env(safe-area-inset-bottom));
  }
  .mobile-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    background: var(--forest-900);
    color: var(--on-dark);
    font-weight: 650;
    font-size: .95rem;
  }
  .mobile-contact a + a { background: var(--sage-200); color: var(--forest-900); }
  .cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); padding-bottom: calc(clamp(72px, 9vw, 128px) + 28px); }
  .cut-top { clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); padding-top: calc(clamp(72px, 9vw, 128px) + 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
