/* Self-hosted typefaces (SIL Open Font Licence, no external requests) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-standard-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-standard-italic.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2-variations");
}

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", Arial, Helvetica, sans-serif;
  --green-950: #053c2b;
  --green-900: #07563c;
  --green-800: #08704d;
  --green-100: #dcece4;
  --red-700: #bd1826;
  --red-600: #d21f2f;
  --ink: #13231d;
  --muted: #5e6b65;
  --cream: #f7f4ed;
  --sand: #ede6d8;
  --white: #ffffff;
  --line: rgba(5, 60, 43, 0.15);
  --shadow: 0 26px 70px rgba(10, 47, 35, 0.13);
  --radius-sm: 0.55rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(5, 60, 43, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 60, 43, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #f2b8be;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0.75rem 1rem;
  color: var(--green-950);
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--green-950);
  color: var(--white);
}

.section-dark::after {
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--red-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero-home .eyebrow {
  color: #ffbac0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48, "SOFT" 30;
}

.lead {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}

.section-dark .lead,
.hero-home .lead,
.page-hero .lead {
  color: rgba(255, 255, 255, 0.78);
}

.small-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.95);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  min-height: 5.15rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: clamp(10.8rem, 18vw, 14.5rem);
  height: auto;
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  min-height: 2.8rem;
  padding: 0.65rem 0.82rem;
  align-items: center;
  border-radius: 999px;
  color: #31433b;
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--green-100);
  color: var(--green-950);
}

.nav-cta {
  margin-left: 0.5rem;
  background: var(--red-700);
  color: var(--white);
}

.nav-cta:hover {
  background: #9f111e;
  color: var(--white);
}

.menu-toggle {
  display: none;
  min-width: 3rem;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--green-950);
  cursor: pointer;
  font-size: 1.35rem;
}

.hero-home {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 5.15rem);
  background: var(--green-950);
  color: var(--white);
}

.hero-home::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  background:
    linear-gradient(90deg, var(--green-950) 0%, rgba(5, 60, 43, 0.43) 42%, rgba(5, 60, 43, 0.12) 100%),
    url("../img/leadership/Home_Hero_Director_Office.webp") center / cover;
  content: "";
}

.hero-home::after {
  position: absolute;
  right: 5vw;
  bottom: -6rem;
  width: min(30vw, 25rem);
  aspect-ratio: 1;
  border: 2rem solid rgba(210, 31, 47, 0.7);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100vh - 5.15rem);
  padding: clamp(4rem, 9vw, 8rem) 0;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
  align-items: center;
  gap: 4rem;
}

.hero-copy {
  max-width: 51rem;
}

.hero-copy h1 {
  max-width: 12ch;
}

.hero-actions,
.button-row {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  padding: 0.8rem 1.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: var(--red-700);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #9f111e;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.button-outline {
  border-color: var(--green-900);
  background: transparent;
  color: var(--green-950);
}

.button-outline:hover {
  background: var(--green-100);
}

.trust-panel {
  position: relative;
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(5, 60, 43, 0.72);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  backdrop-filter: blur(12px);
}

.trust-panel strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.trust-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.trust-panel .text-link {
  color: var(--white);
}

.signal-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-item {
  min-height: 6rem;
  padding: 1.35rem;
  border-right: 1px solid var(--line);
}

.signal-item:last-child {
  border-right: 0;
}

.signal-item span {
  display: block;
  color: var(--red-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.signal-item strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.section-head {
  display: flex;
  margin-bottom: 2.5rem;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head > div:first-child {
  max-width: 48rem;
}

.text-link {
  color: var(--green-900);
  font-weight: 800;
}

.text-link:hover {
  color: var(--red-700);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.service-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5rem;
  height: 0.35rem;
  background: var(--red-700);
  content: "";
}

.service-card .number {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 900;
}

.service-card p {
  max-width: 36rem;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
}

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.media-frame {
  position: relative;
  min-height: 34rem;
}

.media-frame::before {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 7rem;
  height: 7rem;
  border-top: 0.55rem solid var(--red-700);
  border-left: 0.55rem solid var(--red-700);
  content: "";
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 34rem;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.media-caption {
  position: absolute;
  right: -1rem;
  bottom: 1.25rem;
  max-width: 18rem;
  border-radius: var(--radius-sm);
  background: var(--green-950);
  padding: 1rem 1.15rem;
  color: var(--white);
  box-shadow: var(--shadow);
}

.check-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  top: 0.83rem;
  left: 0;
  color: var(--red-700);
  content: "✓";
  font-weight: 900;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.property-card {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  border: 0;
  border-radius: var(--radius-md);
  background: #d6ded9;
  cursor: pointer;
  grid-column: span 4;
  text-align: left;
}

.property-card.wide {
  grid-column: span 8;
}

.property-card.tall {
  min-height: 31rem;
}

.property-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 420ms ease;
}

.property-card::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(4, 34, 25, 0.9));
  content: "";
}

.property-card:hover img {
  transform: scale(1.035);
}

.property-label {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  left: 1.1rem;
  z-index: 2;
  color: var(--white);
}

.property-label span {
  display: block;
  color: #f0c5c8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.property-label strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.filter-bar {
  display: flex;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-button {
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0.55rem 0.95rem;
  color: var(--green-950);
  cursor: pointer;
  font-weight: 800;
}

.filter-button[aria-pressed="true"],
.filter-button:hover {
  border-color: var(--green-900);
  background: var(--green-900);
  color: var(--white);
}

.property-card[hidden] {
  display: none;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-step {
  border-top: 2px solid var(--red-700);
  padding: 1.4rem 0.4rem 0;
}

.process-step span {
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.process-step h3 {
  margin-top: 0.8rem;
}

.process-step p {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--red-700);
  padding: clamp(2rem, 6vw, 4.5rem);
  color: var(--white);
}

.cta-band::after {
  position: absolute;
  top: -7rem;
  right: -5rem;
  width: 18rem;
  height: 18rem;
  border: 2rem solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.cta-band h2,
.cta-band p,
.cta-band .button-row {
  position: relative;
  z-index: 2;
}

.cta-band p {
  max-width: 45rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

.cta-band .button {
  background: var(--white);
  color: var(--red-700);
}

.cta-band .button:hover {
  background: var(--cream);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--green-950);
  color: var(--white);
}

.page-hero-grid {
  display: grid;
  min-height: 33rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  align-items: stretch;
}

.page-hero-copy {
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - var(--content)) / 2));
}

.page-hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.page-hero-image {
  min-height: 33rem;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-image::after {
  position: absolute;
  inset: 0 0 0 50%;
  background: linear-gradient(90deg, var(--green-950), transparent 35%);
  content: "";
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 7rem;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-item {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.detail-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.profile-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
}

.profile-card img {
  width: 100%;
  height: 100%;
  min-height: 30rem;
  object-fit: cover;
}

.profile-copy {
  padding: clamp(2rem, 6vw, 4.5rem);
}

.profile-copy p {
  color: var(--muted);
}

.profile-meta {
  display: inline-flex;
  margin-top: 1.2rem;
  border-left: 4px solid var(--red-700);
  padding-left: 1rem;
  flex-direction: column;
}

.profile-meta strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.profile-meta span {
  color: var(--muted);
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-card {
  border-radius: var(--radius-md);
  background: var(--green-950);
  padding: clamp(1.6rem, 5vw, 3rem);
  color: var(--white);
}

.contact-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list strong {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--white);
  font-size: 1.08rem;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  color: var(--green-950);
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid #bdc8c2;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-800);
  box-shadow: 0 0 0 3px rgba(8, 112, 77, 0.13);
  outline: none;
}

.consent-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 0.7rem;
}

.consent-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.3rem;
}

.consent-row label {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  padding: 0.8rem 1rem;
  color: var(--green-950);
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.footer {
  background: #032d21;
  color: var(--white);
}

.footer-main {
  display: grid;
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
  grid-template-columns: minmax(16rem, 1.3fr) repeat(2, minmax(10rem, 0.7fr));
  gap: 2.5rem;
}

.footer-brand img {
  width: min(18rem, 85%);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 28rem;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
  text-align: center;
}

.footer-bottom > * {
  max-width: calc(100% - 7rem);
}

.developer-credit {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.developer-credit:hover,
.developer-credit:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.floating-action {
  display: inline-flex;
  width: 3.35rem;
  height: 3.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--green-900);
  box-shadow: 0 8px 30px rgba(5, 60, 43, 0.28);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 900;
}

.floating-action.call {
  background: var(--red-700);
}

.lightbox {
  width: min(92vw, 70rem);
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--cream);
  padding: 0;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(2, 23, 16, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #071d16;
}

.lightbox-content {
  padding: 1rem 1.2rem 1.2rem;
}

.lightbox-content p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-950);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 900;
}

.empty-state {
  padding: 5rem 0;
  text-align: center;
}

.empty-state h1 {
  color: var(--green-950);
}

.empty-state p {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.75rem;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .hero-home::before {
    width: 100%;
    opacity: 0.34;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .trust-panel {
    max-width: 32rem;
    align-self: start;
  }

  .media-split,
  .detail-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .property-card,
  .property-card.wide {
    grid-column: span 6;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .page-hero-image {
    min-height: 24rem;
  }

  .page-hero-image::after {
    display: none;
  }

  .page-hero-copy {
    padding-inline: max(1rem, calc((100vw - var(--content)) / 2));
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card img {
    min-height: 26rem;
    max-height: 34rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .brand img {
    width: 10rem;
  }

  .hero-home,
  .hero-grid {
    min-height: calc(100svh - 5.15rem);
  }

  .hero-grid {
    padding: 3.5rem 0;
  }

  .signal-grid,
  .service-grid,
  .process-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .signal-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-card {
    min-height: 0;
  }

  .service-card .number {
    margin-bottom: 2rem;
  }

  .media-frame,
  .media-frame img {
    min-height: 26rem;
  }

  .media-caption {
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }

  .property-grid {
    display: block;
  }

  .property-card,
  .property-card.wide,
  .property-card.tall {
    width: 100%;
    min-height: 24rem;
    margin-bottom: 0.8rem;
  }

  .field-full,
  .consent-row,
  .form-status {
    grid-column: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom > * {
    max-width: calc(100% - 5.5rem);
  }
}

/* D6.3 visual elevation -------------------------------------------------- */
.hero-home-visual::before {
  display: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 29, 21, 0.98) 0%, rgba(3, 43, 31, 0.9) 43%, rgba(3, 43, 31, 0.34) 76%, rgba(3, 43, 31, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 29, 21, 0.56), transparent 48%);
  content: "";
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  transform: translate3d(0, var(--visual-shift, 0), 0) scale(1.035);
  animation: hero-cinema 16s ease-out both;
  will-change: transform;
}

@keyframes hero-cinema {
  from { transform: translate3d(0, var(--visual-shift, 0), 0) scale(1.1); }
  to { transform: translate3d(0, var(--visual-shift, 0), 0) scale(1.035); }
}

.page-hero-image img {
  transform: translate3d(0, var(--visual-shift, 0), 0) scale(1.025);
  transition: transform 700ms var(--ease-out);
}

.hero-home-visual .hero-copy {
  text-shadow: 0 1px 28px rgba(0, 0, 0, 0.18);
}

.trust-pulse {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  margin: 0 0.55rem 0.2rem 0;
  border-radius: 50%;
  background: #7ee2b8;
  box-shadow: 0 0 0 0 rgba(126, 226, 184, 0.5);
  animation: trust-pulse 2.8s ease-out infinite;
}

@keyframes trust-pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 226, 184, 0.52); }
  65%, 100% { box-shadow: 0 0 0 0.8rem rgba(126, 226, 184, 0); }
}

.signal-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.signal-grid-five .signal-item {
  padding-inline: 1rem;
}

.signal-grid-five .signal-item strong {
  font-size: 0.92rem;
}

.service-grid-five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.service-grid-five .service-card {
  grid-column: span 2;
}

.service-grid-five .service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.media-frame-portrait {
  max-width: 36rem;
  justify-self: center;
}

.media-frame-portrait img {
  object-position: center top;
}

.director-feature {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.director-portrait {
  position: relative;
  max-width: 31rem;
}

.director-portrait::before {
  position: absolute;
  inset: -1rem 1rem 1rem -1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  content: "";
}

.director-portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.profile-role {
  display: inline-flex;
  margin: 0.2rem 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-soft {
  background: #eef3ef;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.identity-grid article {
  min-height: 9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 1.4rem;
}

.identity-grid span,
.video-card > div > span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--red-700);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.identity-grid strong {
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #071811;
  object-fit: cover;
}

.video-card > div {
  padding: 1.2rem 1.3rem 1.4rem;
}

.video-card h3 {
  margin-bottom: 0.65rem;
}

.video-card .text-link {
  color: #fff;
}

.commitment-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #e8efe9, #f8f5ee 58%, #f4e2e4);
  padding: clamp(1.6rem, 5vw, 3rem);
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.commitment-grid span {
  border: 1px solid rgba(5, 60, 43, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.72rem 0.9rem;
  color: var(--green-950);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.property-intro {
  padding-bottom: 0;
}

.property-intro .small-note {
  margin: 0 0 1rem;
}

.choice-group legend {
  color: var(--green-950);
  font-size: 0.9rem;
  font-weight: 800;
}

.property-card,
.insight-card,
.video-card,
.media-frame,
.director-portrait {
  transform: translateZ(0);
}

.property-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  transition: border-color 280ms ease, box-shadow 280ms ease;
}

.property-card:hover::before {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@media (max-width: 920px) {
  .signal-grid-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-grid-five .signal-item:last-child { grid-column: 1 / -1; }
  .service-grid-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid-five .service-card,
  .service-grid-five .service-card:nth-child(4) { grid-column: auto; }
  .service-grid-five .service-card:last-child { grid-column: 1 / -1; }
  .director-feature { grid-template-columns: 1fr; }
  .director-portrait { max-width: 28rem; }
}

@media (max-width: 640px) {
  .hero-backdrop img { object-position: 69% center; }
  .hero-backdrop::after { background: linear-gradient(90deg, rgba(2,29,21,.96), rgba(3,43,31,.76)); }
  .signal-grid-five,
  .service-grid-five,
  .identity-grid,
  .video-grid,
  .commitment-band,
  .commitment-grid { grid-template-columns: 1fr; }
  .signal-grid-five .signal-item:last-child,
  .service-grid-five .service-card:last-child { grid-column: auto; }
  .director-portrait::before { inset: -0.65rem 0.65rem 0.65rem -0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop img,
  .trust-pulse { animation: none; }
}

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

@media print {
  .header,
  .floating-actions,
  .button-row,
  .hero-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section,
  .section-tight {
    padding: 2rem 0;
  }
}

/* ============================================================
   D6.1 (v2) additions — motion, interaction and new sections.
   Everything below extends v1; no v1 rule is overridden except
   where a media query is widened for the larger navigation.
   ============================================================ */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-progress: 120;
  --z-toast: 130;
}

/* Header behaviour */
.header {
  transition: box-shadow 260ms var(--ease-out), background 260ms var(--ease-out);
}

.header.is-scrolled {
  background: rgba(247, 244, 237, 0.98);
  box-shadow: 0 10px 40px rgba(5, 60, 43, 0.08);
}

.header.is-scrolled .nav-shell {
  min-height: 4.4rem;
  transition: min-height 260ms var(--ease-out);
}

.nav-shell {
  transition: min-height 260ms var(--ease-out);
}

.nav-link {
  padding: 0.6rem 0.72rem;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-progress);
  width: 100%;
  height: 0.22rem;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--red-700);
  pointer-events: none;
}

/* Page-load sequence (one orchestrated moment on the hero) */
.hero-home .eyebrow,
.hero-home h1,
.hero-home .lead,
.hero-home .hero-actions,
.hero-home .trust-panel,
.page-hero .eyebrow,
.page-hero h1,
.page-hero .lead,
.page-hero .hero-actions,
.landing-hero .eyebrow,
.landing-hero h1,
.landing-hero .lead,
.landing-hero .hero-actions {
  opacity: 0;
  transform: translateY(1.2rem);
  animation: rise 820ms var(--ease-out) forwards;
}

.hero-home h1,
.page-hero h1,
.landing-hero h1 { animation-delay: 110ms; }
.hero-home .lead,
.page-hero .lead,
.landing-hero .lead { animation-delay: 220ms; }
.hero-home .hero-actions,
.page-hero .hero-actions,
.landing-hero .hero-actions { animation-delay: 330ms; }
.hero-home .trust-panel { animation-delay: 460ms; }

.page-hero-image img {
  animation: hero-image 1400ms var(--ease-out) forwards;
  transform-origin: center;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

.hero-home::before {
  animation: hero-image 1600ms var(--ease-out) forwards;
}

/* Decode-gate for lazy images
   A browser can start painting a WebP/JPEG before it has finished
   decoding, showing a warped or partial frame for a moment. Real
   visitors essentially never see this (decoding a photo this size
   takes milliseconds), but a fast automated screenshot taken right
   after navigation can land in that exact narrow window. Any image
   marked pending stays fully hidden until experience.js confirms
   img.decode() has resolved, so nothing is ever painted half-decoded.
   The !important guards this specific gate against being overridden
   by a component's own opacity rule (e.g. the reveal-fade wrapper);
   it is removed the moment the attribute is removed. */
img[data-pending-decode] {
  opacity: 0 !important;
}

/* Scroll reveal
   Hidden-by-default only applies once html.js-reveal confirms the reveal
   script is running (see the inline head script + experience.js safety
   net). If JS is blocked, slow, or a capture tool skips the scroll that
   triggers IntersectionObserver, content is never left invisible. */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
}

html.js-reveal [data-reveal].is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html.js-reveal [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
}

html.js-reveal [data-reveal-stagger].is-visible > *,
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-visible > :nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > :nth-child(2) { transition-delay: 90ms; }
[data-reveal-stagger].is-visible > :nth-child(3) { transition-delay: 180ms; }
[data-reveal-stagger].is-visible > :nth-child(4) { transition-delay: 270ms; }
[data-reveal-stagger].is-visible > :nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger].is-visible > :nth-child(6) { transition-delay: 450ms; }
[data-reveal-stagger].is-visible > :nth-child(7) { transition-delay: 540ms; }
[data-reveal-stagger].is-visible > :nth-child(8) { transition-delay: 630ms; }

/* Interaction feedback */
.button:active,
.filter-button:active,
.floating-action:active,
.share-button:active {
  transform: translateY(1px) scale(0.985);
}

.service-card,
.insight-card,
.pathway-card {
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
}

.service-card:hover,
.insight-card:hover,
.pathway-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 60, 43, 0.3);
  box-shadow: 0 18px 44px rgba(5, 60, 43, 0.1);
}

.property-card .property-label {
  transition: transform 360ms var(--ease-out);
}

.property-card:hover .property-label,
.property-card:focus-visible .property-label {
  transform: translateY(-0.35rem);
}

.property-card.is-leaving {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
}

.property-card.is-entering {
  animation: card-enter 380ms var(--ease-out);
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(0.8rem) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.filter-count {
  margin: -0.6rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Process line animation (enquiry path) */
.process-step {
  position: relative;
  border-top-color: rgba(255, 255, 255, 0.18);
}

.process-step::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--red-700);
  content: "";
  transition: transform 900ms var(--ease-out);
}

.process-grid.is-visible .process-step::before { transform: scaleX(1); }
.process-grid.is-visible .process-step:nth-child(2)::before { transition-delay: 220ms; }
.process-grid.is-visible .process-step:nth-child(3)::before { transition-delay: 440ms; }
.process-grid.is-visible .process-step:nth-child(4)::before { transition-delay: 660ms; }

/* Lightbox navigation */
.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-950);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox-counter {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 8.6rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green-950);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(0.6rem);
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  z-index: var(--z-toast);
  max-width: calc(100% - 2rem);
  border-radius: 999px;
  background: var(--green-950);
  padding: 0.8rem 1.25rem;
  color: var(--white);
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 0.8rem);
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Social directory */
.social-directory {
  display: flex;
  margin: 1.4rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}

.social-chip {
  display: inline-flex;
  min-height: 2.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-950);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.social-chip::before {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--white);
  content: attr(data-initial);
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1.5rem;
  text-align: center;
}

a.social-chip:hover {
  transform: translateY(-2px);
  border-color: var(--green-900);
  background: var(--green-100);
}

.social-chip.is-pending {
  border-style: dashed;
  color: var(--muted);
  cursor: help;
}

.social-chip.is-pending::before {
  background: #c5cfc9;
}

.social-chip.is-pending small {
  color: var(--red-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-dark .social-chip,
.footer .social-chip {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.section-dark a.social-chip:hover,
.footer a.social-chip:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.section-dark .social-chip.is-pending,
.footer .social-chip.is-pending {
  color: rgba(255, 255, 255, 0.6);
}

.section-dark .social-chip.is-pending small,
.footer .social-chip.is-pending small {
  color: #ffbac0;
}

.social-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-dark .social-note {
  color: rgba(255, 255, 255, 0.6);
}

/* Share row (works without any Earth Trust social account) */
.share-row {
  display: flex;
  margin-top: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-row > span {
  margin-right: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.share-button {
  display: inline-flex;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-950);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 800;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.share-button:hover {
  background: var(--green-100);
  transform: translateY(-2px);
}

/* Insights (blog) */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.insight-card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  flex-direction: column;
}

.insight-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.insight-card:hover img {
  transform: scale(1.04);
}

.insight-card-body {
  display: flex;
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  flex-direction: column;
}

.insight-card-body .meta {
  margin: 0 0 0.6rem;
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-card-body p {
  margin: 0.7rem 0 1.2rem;
  color: var(--muted);
}

.insight-card-body .text-link {
  margin-top: auto;
}

.insight-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.insight-card.featured img {
  height: 100%;
  min-height: 22rem;
  aspect-ratio: auto;
}

.insight-card.featured h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.article-hero {
  background: var(--green-950);
  color: var(--white);
}

.article-hero .container {
  max-width: 52rem;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.article-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.article-hero .meta {
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-body {
  max-width: 44rem;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-body h2 {
  margin: 2.6rem 0 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.article-body h3 {
  margin: 1.8rem 0 0.6rem;
}

.article-body p,
.article-body li {
  color: #2e3d37;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
}

.article-body li + li {
  margin-top: 0.45rem;
}

.article-body .callout {
  margin: 2rem 0;
  border-left: 4px solid var(--red-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  padding: 1.2rem 1.4rem;
}

.article-body .callout p {
  margin: 0;
}

.article-body .callout strong {
  color: var(--green-950);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 7rem;
}

.article-aside .aside-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 1.4rem;
}

.article-aside .aside-box + .aside-box {
  margin-top: 1rem;
}

.article-aside h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-aside ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.article-aside li + li {
  margin-top: 0.5rem;
}

.article-aside a {
  color: var(--green-900);
  font-weight: 700;
}

.article-aside a:hover {
  color: var(--red-700);
}

/* FAQ */
.faq-toolbar {
  display: grid;
  margin-bottom: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.faq-search {
  position: relative;
}

.faq-search input {
  width: 100%;
  min-height: 3.4rem;
  border: 1px solid #bdc8c2;
  border-radius: 999px;
  background: var(--white);
  padding: 0.8rem 1.2rem 0.8rem 3rem;
  color: var(--ink);
}

.faq-search::before {
  position: absolute;
  top: 50%;
  left: 1.15rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--green-900);
  border-radius: 50%;
  content: "";
  transform: translateY(-60%);
}

.faq-search::after {
  position: absolute;
  top: 50%;
  left: 1.95rem;
  width: 0.45rem;
  height: 2px;
  background: var(--green-900);
  content: "";
  transform: translateY(0.15rem) rotate(45deg);
}

.faq-search input:focus {
  border-color: var(--green-800);
  box-shadow: 0 0 0 3px rgba(8, 112, 77, 0.13);
  outline: none;
}

.faq-groups {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-jump {
  position: sticky;
  top: 7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-jump li + li {
  margin-top: 0.3rem;
}

.faq-jump a {
  display: block;
  border-left: 3px solid transparent;
  padding: 0.4rem 0.8rem;
  color: var(--muted);
  font-weight: 700;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.faq-jump a:hover,
.faq-jump a.is-active {
  border-left-color: var(--red-700);
  color: var(--green-950);
}

.faq-group + .faq-group {
  margin-top: 3rem;
}

.faq-group h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  padding: 1.1rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--green-950);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: inline-flex;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red-700);
  content: "+";
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: transform 260ms var(--ease-out), background 260ms var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--green-100);
}

.faq-item summary:hover::after {
  background: var(--green-100);
}

.faq-answer {
  max-width: 46rem;
  padding: 0 0 1.3rem;
  color: var(--muted);
  animation: faq-open 320ms var(--ease-out);
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 0.7rem;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-0.4rem); }
  to { opacity: 1; transform: none; }
}

.faq-item[hidden],
.faq-group[hidden] {
  display: none;
}

.faq-empty {
  display: none;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.faq-empty.is-visible {
  display: block;
}

/* Pathway cards (Work with us) */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pathway-card {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  flex-direction: column;
}

.pathway-card .glyph {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.4rem;
  border-radius: 0.8rem;
  background: var(--green-100);
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 3rem;
  text-align: center;
}

.pathway-card p {
  margin: 0.8rem 0 1.4rem;
  color: var(--muted);
}

.pathway-card .text-link {
  margin-top: auto;
}

/* Key facts panel (property detail) */
.facts-panel {
  border-radius: var(--radius-md);
  background: var(--green-950);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--white);
}

.facts-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.facts-list li {
  display: flex;
  padding: 0.85rem 0;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.facts-list span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  font-weight: 700;
}

.facts-list strong {
  text-align: right;
}

.status-flag {
  display: inline-block;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-grid-gallery {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}

.gallery {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #071d16;
  aspect-ratio: 16 / 10;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 320ms var(--ease-out), transform 620ms var(--ease-out);
}

.gallery-main img.is-fading {
  opacity: 0;
  transform: scale(1.03);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-thumb {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb[aria-pressed="true"] {
  border-color: var(--red-700);
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

/* Trust and safety checklist */
.checklist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 18rem;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  border-top: 1px solid var(--line);
}

.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.checklist label {
  display: grid;
  padding: 1.1rem 0;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 1rem;
  cursor: pointer;
}

.checklist input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.2rem 0 0;
  accent-color: var(--green-900);
}

.checklist strong {
  display: block;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.1rem;
  transition: color 200ms;
}

.checklist p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.checklist input:checked ~ div strong {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--red-700);
}

.progress-card {
  position: sticky;
  top: 7rem;
  border-radius: var(--radius-md);
  background: var(--green-950);
  padding: 1.6rem;
  color: var(--white);
  text-align: center;
}

.progress-ring {
  position: relative;
  width: 9rem;
  height: 9rem;
  margin: 0.5rem auto 1rem;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 9;
}

.progress-ring .track {
  stroke: rgba(255, 255, 255, 0.15);
}

.progress-ring .bar {
  stroke: var(--red-600);
  stroke-linecap: round;
  stroke-dasharray: 251.3;
  stroke-dashoffset: 251.3;
  transition: stroke-dashoffset 600ms var(--ease-out);
}

.progress-ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.progress-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.progress-card .button {
  width: 100%;
  margin-top: 1.2rem;
}

/* Campaign landing hero */
.landing-hero {
  position: relative;
  overflow: hidden;
  min-height: 34rem;
  background: var(--green-950);
  color: var(--white);
}

.landing-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: landing-image 1600ms var(--ease-out) forwards;
}

@keyframes landing-image {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 0.55; transform: scale(1); }
}

.landing-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 60, 43, 0.96) 0%, rgba(5, 60, 43, 0.72) 55%, rgba(5, 60, 43, 0.3) 100%);
  content: "";
}

.landing-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 34rem;
  padding: clamp(4rem, 8vw, 7rem) 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.landing-hero h1 {
  max-width: 12ch;
}

.landing-form {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  padding: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: rise 820ms var(--ease-out) 460ms both;
}

.landing-form h2 {
  font-size: 1.5rem;
}

.landing-form .form-grid {
  margin-top: 1.2rem;
}

.landing-form .form-grid {
  grid-template-columns: 1fr;
}

.landing-form .small-note {
  margin: 0.8rem 0 0;
}

.highlight-list {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.highlight-list li {
  border-top: 2px solid var(--red-700);
  padding-top: 1rem;
}

.highlight-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.highlight-list p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* Leadership profiles */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.leader-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.leader-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.leader-card-body {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.leader-card-body p {
  color: var(--muted);
}

.leader-card.is-placeholder {
  border: 1px dashed rgba(5, 60, 43, 0.35);
  background: transparent;
  box-shadow: none;
}

.leader-card.is-placeholder .leader-silhouette {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: var(--sand);
  color: var(--muted);
  font-weight: 800;
}

/* Testimonials (activated only when configured) */
.testimonial-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial {
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 1.6rem;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

/* Alerts band */
.alerts-band {
  display: grid;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.alerts-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.alerts-band p {
  max-width: 34rem;
  color: var(--muted);
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-form input,
.inline-form select {
  min-width: 0;
  min-height: 3.25rem;
  flex: 1 1 12rem;
  border: 1px solid #bdc8c2;
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0.75rem 0.85rem;
}

.inline-form input:focus,
.inline-form select:focus {
  border-color: var(--green-800);
  box-shadow: 0 0 0 3px rgba(8, 112, 77, 0.13);
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Fieldset chips (radio groups presented as choices) */
.choice-group {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice-group legend {
  margin-bottom: 0.5rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex;
  min-height: 2.7rem;
  padding: 0.5rem 0.95rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-950);
  cursor: pointer;
  font-weight: 700;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.choice input:checked + span {
  border-color: var(--green-900);
  background: var(--green-900);
  color: var(--white);
}

.choice input:focus-visible + span {
  outline: 3px solid #f2b8be;
  outline-offset: 3px;
}

.choice span:hover {
  transform: translateY(-1px);
}

/* Footer additions */
.footer-main {
  grid-template-columns: minmax(16rem, 1.3fr) repeat(3, minmax(9rem, 0.7fr));
}

.footer-connect {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-connect h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-connect .social-directory {
  margin-top: 1rem;
}

.footer-connect .social-note {
  color: rgba(255, 255, 255, 0.55);
}

/* Responsive adjustments for v2 components */
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }

  .nav-list {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.75rem;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-list.is-open {
    display: flex;
    animation: rise 320ms var(--ease-out);
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-cta {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 920px) {
  .insight-grid,
  .pathway-grid,
  .testimonial-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-card.featured {
    grid-template-columns: 1fr;
  }

  .insight-card.featured img {
    min-height: 16rem;
  }

  .article-layout,
  .faq-groups,
  .checklist-layout,
  .alerts-band,
  .leadership-grid,
  .detail-grid-gallery {
    grid-template-columns: 1fr;
  }

  .article-aside,
  .faq-jump,
  .progress-card {
    position: static;
  }

  .faq-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .faq-jump a {
    border: 1px solid var(--line);
    border-radius: 999px;
    border-left-width: 1px;
  }

  .faq-jump a.is-active {
    border-color: var(--green-900);
    background: var(--green-900);
    color: var(--white);
  }

  .landing-hero .container {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .insight-grid,
  .pathway-grid,
  .testimonial-wall,
  .highlight-list {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .faq-toolbar {
    grid-template-columns: 1fr;
  }

  .to-top {
    bottom: 8.4rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .article-body {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-home .eyebrow,
  .hero-home h1,
  .hero-home .lead,
  .hero-home .hero-actions,
  .hero-home .trust-panel,
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero .lead,
  .page-hero .hero-actions,
  .landing-hero .eyebrow,
  .landing-hero h1,
  .landing-hero .lead,
  .landing-hero .hero-actions,
  .landing-form,
  .page-hero-image img,
  .hero-home::before {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .landing-hero-image {
    opacity: 0.55;
    transform: none;
    animation: none;
  }

  .process-step::before {
    transform: scaleX(1);
  }

  .scroll-progress {
    display: none;
  }
}

/* ============================================================
   D6.2 (v3) additions — typography, motion graphics and tools
   ============================================================ */

/* Page transitions (progressively enhanced) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-out 180ms ease forwards;
}

::view-transition-new(root) {
  animation: page-in 320ms var(--ease-out);
}

@keyframes page-out {
  to { opacity: 0; }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(0.4rem); }
}

/* Paper grain */
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

/* Survey-line motif: boundary lines drawn to beacons */
.survey-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.survey-lines path,
.survey-lines polyline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2600ms var(--ease-out) 300ms forwards;
}

.survey-lines .beacon {
  fill: var(--red-600);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: beacon 700ms var(--ease-out) forwards;
}

.survey-lines .beacon:nth-of-type(1) { animation-delay: 900ms; }
.survey-lines .beacon:nth-of-type(2) { animation-delay: 1400ms; }
.survey-lines .beacon:nth-of-type(3) { animation-delay: 1900ms; }
.survey-lines .beacon:nth-of-type(4) { animation-delay: 2400ms; }

.survey-lines .beacon-ring {
  fill: none;
  stroke: rgba(210, 31, 47, 0.7);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: beacon-ring 2800ms ease-out 2600ms infinite;
}

.survey-lines .label {
  fill: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: rise 600ms var(--ease-out) 2600ms forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes beacon {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes beacon-ring {
  0% { opacity: 0.8; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(2.6); }
}

.hero-home .hero-grid { z-index: 2; }

.hero-home .survey-lines { opacity: 0.42; }

/* Word-by-word headline reveal */
.words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.words .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 760ms var(--ease-out) forwards;
}

@keyframes word-up {
  to { transform: translateY(0); }
}

.hero-home h1.words,
.page-hero h1.words,
.landing-hero h1.words,
.article-hero h1.words {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Ambient drift on dark sections */
.section-dark::after {
  animation: drift 26s ease-in-out infinite alternate;
}

.hero-home::after {
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-3rem, -2rem) rotate(12deg); }
}

/* Spotlight cards */
.service-card,
.pathway-card,
.insight-card,
.leader-card {
  --mx: 50%;
  --my: 50%;
}

.service-card::after,
.pathway-card::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(28rem circle at var(--mx) var(--my), rgba(8, 112, 77, 0.09), transparent 45%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out);
}

.pathway-card {
  position: relative;
  overflow: hidden;
}

.service-card:hover::after,
.pathway-card:hover::after {
  opacity: 1;
}

.service-card > *,
.pathway-card > * {
  position: relative;
  z-index: 1;
}

/* Image wipe reveal */
[data-reveal-stagger] .property-card img,
[data-reveal-stagger] .insight-card img,
[data-reveal-stagger] .leader-card img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 900ms var(--ease-out), transform 600ms var(--ease-out);
}

[data-reveal-stagger].is-visible .property-card img,
[data-reveal-stagger].is-visible .insight-card img,
[data-reveal-stagger].is-visible .leader-card img {
  clip-path: inset(0 0 0 0);
}

[data-reveal-stagger].is-visible > :nth-child(2) img { transition-delay: 120ms; }
[data-reveal-stagger].is-visible > :nth-child(3) img { transition-delay: 240ms; }
[data-reveal-stagger].is-visible > :nth-child(4) img { transition-delay: 360ms; }

/* Button arrow nudge */
.button span[aria-hidden],
.text-link {
  transition: transform 200ms var(--ease-out), color 200ms var(--ease-out);
}

.button:hover span[aria-hidden] {
  transform: translateX(0.3rem);
}

.text-link {
  display: inline-block;
}

.text-link:hover {
  transform: translateX(0.2rem);
}

/* Lightbox entrance */
.lightbox[open] {
  animation: lightbox-in 320ms var(--ease-out);
}

.lightbox[open]::backdrop {
  animation: backdrop-in 320ms ease;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.94) translateY(1rem); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
}

/* FAQ smooth open where supported */
@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    height: 0;
    overflow: clip;
    transition: height 340ms var(--ease-out), content-visibility 340ms allow-discrete;
  }

  .faq-item[open]::details-content {
    height: auto;
  }
}

/* Form success mark */
.form-status.is-visible {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.form-status.is-visible::before {
  display: inline-grid;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--white);
  content: "✓";
  font-size: 0.85rem;
  animation: pop 420ms var(--ease-out);
}

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* WhatsApp attention ring (three pulses after load) */
.floating-action {
  position: relative;
  transition: transform 220ms var(--ease-out);
}

.floating-action:hover {
  transform: translateY(-3px) scale(1.04);
}

.floating-action[data-whatsapp-interest]::before {
  position: absolute;
  inset: -0.2rem;
  border: 2px solid var(--green-800);
  border-radius: 50%;
  content: "";
  opacity: 0;
  animation: ping 2400ms ease-out 1800ms 3;
}

@keyframes ping {
  0% { opacity: 0.9; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.9); }
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.82);
  padding: 0.7rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: ticker 48s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  white-space: nowrap;
}

.ticker-track span::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red-600);
  content: "";
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Shortlist */
.shortlist-toggle {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(5, 60, 43, 0.55);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out);
}

.shortlist-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill 220ms var(--ease-out);
}

.shortlist-toggle:hover {
  transform: scale(1.08);
  background: rgba(5, 60, 43, 0.85);
}

.shortlist-toggle[aria-pressed="true"] {
  background: var(--red-700);
  border-color: var(--red-700);
}

.shortlist-toggle[aria-pressed="true"] svg {
  fill: var(--white);
  animation: pop 420ms var(--ease-out);
}

.property-card-shell {
  position: relative;
  min-width: 0;
}

.property-card-shell .property-card {
  width: 100%;
  height: 100%;
}

.shortlist-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  z-index: 95;
  display: flex;
  max-width: calc(100% - 7rem);
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--green-950);
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  color: var(--white);
  box-shadow: var(--shadow);
  transform: translate(-50%, 6rem);
  transition: transform 360ms var(--ease-out);
}

.shortlist-bar.is-visible {
  transform: translate(-50%, 0);
}

.shortlist-bar strong {
  font-family: var(--font-display);
  white-space: nowrap;
}

.shortlist-bar .button {
  min-height: 2.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.shortlist-bar .clear {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Land size converter */
.tool-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.tool-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.tool-card p {
  color: var(--muted);
}

.converter {
  display: grid;
  gap: 1rem;
}

.converter-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: end;
}

.converter-row .times {
  padding-bottom: 0.9rem;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.converter-results {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
}

.converter-results li {
  border-radius: var(--radius-sm);
  background: var(--cream);
  padding: 0.85rem 1rem;
}

.converter-results span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.converter-results strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  transition: color 300ms;
}

.converter-results strong.is-updated {
  color: var(--red-700);
}

/* Site search */
.search-toggle {
  display: inline-flex;
  min-width: 2.8rem;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--green-950);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 200ms var(--ease-out);
}

.search-toggle:hover {
  background: var(--green-100);
}

.search-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.search-toggle kbd {
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.05rem 0.35rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
}

.site-search {
  width: min(94vw, 40rem);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: 0;
  box-shadow: var(--shadow);
}

.site-search::backdrop {
  background: rgba(2, 23, 16, 0.7);
  backdrop-filter: blur(4px);
}

.site-search[open] {
  animation: lightbox-in 280ms var(--ease-out);
}

.site-search .faq-search {
  margin: 1rem;
}

.search-results {
  max-height: 60vh;
  margin: 0;
  padding: 0 1rem 1rem;
  overflow: auto;
  list-style: none;
}

.search-results li + li {
  margin-top: 0.4rem;
}

.search-results a {
  display: block;
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0.85rem 1rem;
  transition: background 160ms, transform 160ms var(--ease-out);
}

.search-results a:hover,
.search-results a:focus-visible {
  background: var(--green-100);
  transform: translateX(0.2rem);
}

.search-results span {
  display: block;
  color: var(--red-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-results strong {
  display: block;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.search-results p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.search-results mark {
  background: #ffe3a3;
  border-radius: 0.2rem;
}

.search-hint {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Sticky enquiry bar (property page, small screens) */
.sticky-enquire {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 92;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.96);
  padding: 0.7rem 5rem 0.7rem 1rem;
  backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 320ms var(--ease-out);
}

.sticky-enquire.is-visible {
  transform: none;
}

.sticky-enquire strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.sticky-enquire .button {
  min-height: 2.7rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .search-toggle kbd,
  .search-toggle .search-label {
    display: none;
  }

  .nav-list.is-open li {
    opacity: 0;
    transform: translateX(-0.6rem);
    animation: menu-item 320ms var(--ease-out) forwards;
  }

  .nav-list.is-open li:nth-child(2) { animation-delay: 40ms; }
  .nav-list.is-open li:nth-child(3) { animation-delay: 80ms; }
  .nav-list.is-open li:nth-child(4) { animation-delay: 120ms; }
  .nav-list.is-open li:nth-child(5) { animation-delay: 160ms; }
  .nav-list.is-open li:nth-child(6) { animation-delay: 200ms; }
  .nav-list.is-open li:nth-child(7) { animation-delay: 240ms; }
  .nav-list.is-open li:nth-child(8) { animation-delay: 280ms; }
}

@keyframes menu-item {
  to { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .tool-card {
    grid-template-columns: 1fr;
  }

  .sticky-enquire {
    display: flex;
  }

  body[data-page="property-detail"] .floating-actions {
    bottom: 4.6rem;
  }

  body[data-page="property-detail"] .to-top {
    display: none;
  }
}

@media (max-width: 640px) {
  .survey-lines {
    opacity: 0.35;
  }

  .shortlist-bar {
    max-width: calc(100% - 5.5rem);
    left: 1rem;
    transform: translate(0, 6rem);
  }

  .shortlist-bar.is-visible {
    transform: translate(0, 0);
  }

  .shortlist-bar strong {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .survey-lines path,
  .survey-lines polyline {
    stroke-dashoffset: 0;
    animation: none;
  }

  .survey-lines .beacon,
  .survey-lines .label {
    opacity: 1;
    animation: none;
  }

  .survey-lines .beacon-ring {
    display: none;
  }

  .words .word > span {
    transform: none;
    animation: none;
  }

  .section-dark::after,
  .hero-home::after,
  .ticker-track,
  .floating-action[data-whatsapp-interest]::before {
    animation: none;
  }

  [data-reveal-stagger] .property-card img,
  [data-reveal-stagger] .insight-card img,
  [data-reveal-stagger] .leader-card img {
    clip-path: none;
    transition: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Shortlist shells inherit the grid spans of the cards they wrap */
.property-card-shell {
  grid-column: span 4;
}

.property-card-shell.wide {
  grid-column: span 8;
}

.property-card-shell.tall .property-card {
  min-height: 31rem;
}

.property-card-shell:has(.property-card[hidden]) {
  display: none;
}

@media (max-width: 920px) {
  .property-card-shell,
  .property-card-shell.wide {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .property-card-shell {
    width: 100%;
    margin-bottom: 0.8rem;
  }

  .property-card-shell .property-card,
  .property-card-shell.wide .property-card,
  .property-card-shell.tall .property-card {
    margin-bottom: 0;
  }
}
