/* ==========================================================================
   Bernehed — main stylesheet
   Shared by the static prototype and the WordPress theme.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #101d32;
  --slate: #283c59;
  --ivory: #e9e5dd;
  --ivory-soft: #f3f0ea;
  --gold: #b39a75;
  --gold-ink: #6f5a3c;      /* gold for small text on light grounds (AA) */
  --white: #ffffff;
  --charcoal: #252525;

  --ink: var(--charcoal);
  --ink-muted: #5b5853;
  --rule-light: rgba(37, 37, 37, 0.14);
  --rule-dark: rgba(233, 229, 221, 0.16);
  --on-navy-muted: rgba(233, 229, 221, 0.7);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --section-y: clamp(96px, 13vw, 184px);
  --header-h: 84px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
figure { margin: 0; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ivory);
  color: var(--navy);
  font-size: 0.875rem;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type primitives ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.on-navy .label { color: var(--gold); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.375rem, 4.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--navy);
}
.display em,
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 300;
}
.on-navy .display { color: var(--ivory); }
.display em { color: var(--slate); }
.on-navy .display em { color: var(--gold); }

.lead {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 36em;
}
.on-navy .lead { color: var(--on-navy-muted); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.text-link .arrow { transition: transform 0.4s var(--ease); }
.text-link:hover .arrow { transform: translate(3px, -3px); }
.on-navy .text-link { color: var(--ivory); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--ivory); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.section-head__title { grid-column: 1 / span 7; }
.section-head__title .label { margin-bottom: 28px; }
.section-head__intro { grid-column: 9 / span 4; }
.section-head__intro .lead { font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--ivory);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), height 0.4s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.4s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--navy);
  box-shadow: 0 1px 0 var(--rule-dark);
}
.site-header.is-scrolled .site-header__inner { height: 68px; }
/* no backdrop-filter: it would become the containing block of the fixed mobile menu */
/* logged-in editors: keep the fixed header below the WordPress admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* below 600 px the admin bar scrolls away with the page */
@media (max-width: 600px) { .admin-bar .site-header.is-scrolled { top: 0; } }

/* Wordmark: vector outlines of Engraving Shaded CC (OFL), used as a mask so
   CSS sets the colour. No font file is loaded. Below ~16 px cap height the
   hatching closes up, so small sizes switch to the solid cut. */
.wordmark {
  --wm-width: 224px;
  display: inline-block;
  flex-shrink: 0;
  width: var(--wm-width);
  aspect-ratio: 12.466;
  color: var(--ivory);
  background-color: currentColor;
  -webkit-mask: url("../img/wordmark-shaded.svg") center / contain no-repeat;
  mask: url("../img/wordmark-shaded.svg") center / contain no-repeat;
}
.wordmark--solid {
  -webkit-mask-image: url("../img/wordmark-solid.svg");
  mask-image: url("../img/wordmark-solid.svg");
}
.wordmark--on-light { color: var(--navy); }
@media (forced-colors: active) {
  .wordmark { background-color: CanvasText; }
}

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__link {
  position: relative;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  padding: 8px 0;
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--ivory); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  padding-left: clamp(20px, 2.6vw, 36px);
  border-left: 1px solid var(--rule-dark);
}
.lang a,
.lang span[aria-current] {
  padding: 8px 6px;
  color: var(--on-navy-muted);
  transition: color 0.3s;
}
.lang a:hover { color: var(--ivory); }
.lang span[aria-current] { color: var(--gold); }
.lang__sep { color: var(--rule-dark); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--ivory);
  font: 500 0.6875rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 22px; height: 9px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero__crest {
  position: absolute;
  z-index: -1;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2));
  top: 50%;
  width: min(36vw, 560px);
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.hero__body {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 56px;
}
.hero__eyebrow { margin-bottom: clamp(32px, 4vw, 48px); }
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 7.4vw, 7.25rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: var(--ivory);
  max-width: 11.5em;
}
.hero__title em { color: var(--gold); }
.hero__rule {
  width: 72px;
  height: 1px;
  margin: clamp(36px, 4.5vw, 56px) 0 clamp(24px, 3vw, 32px);
  background: var(--gold);
}
.hero__lead { max-width: 33em; }

.hero__foot {
  border-top: 1px solid var(--rule-dark);
}
.hero__foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
}
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.sectors li { display: flex; align-items: center; }
.sectors li + li::before {
  content: "";
  width: 4px; height: 4px;
  margin: 0 clamp(14px, 2vw, 28px);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  white-space: nowrap;
}
.scroll-cue__line {
  position: relative;
  width: 1px; height: 40px;
  background: var(--rule-dark);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--gold);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue__line::after { animation: cue 2.6s var(--ease) infinite; }
}
@keyframes cue { to { top: 100%; } }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 64px;
  align-items: center;
}
.about__text { grid-column: 1 / span 6; }
.about__text .label { margin-bottom: 28px; }
.about__text .display { margin-bottom: clamp(32px, 4vw, 48px); }
.about__body { max-width: 31em; }
.about__body p { color: var(--ink-muted); font-size: 1.0625rem; }
.about__body p:first-child { color: var(--ink); }

.crest-figure {
  grid-column: 8 / span 5;
  position: relative;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 3.4vw, 48px) clamp(24px, 3vw, 40px);
  background: var(--ivory-soft);
}
.crest-figure::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(179, 154, 117, 0.45);
  pointer-events: none;
}
.crest-figure img { width: 100%; margin: 0 auto; }
.crest-figure figcaption {
  margin-top: clamp(20px, 2.4vw, 32px);
  padding-top: 18px;
  border-top: 1px solid var(--rule-light);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.crest-figure figcaption em {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: clamp(80px, 10vw, 136px);
}
.principle {
  padding-top: 28px;
  border-top: 1px solid var(--rule-light);
  padding-right: clamp(0px, 3vw, 48px);
}
.principle__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold-ink);
}
.principle h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 12px;
}
.principle p { font-size: 0.9375rem; color: var(--ink-muted); max-width: 22em; }

/* ---------- Investments ---------- */
.companies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--navy);
}
.company {
  display: flex;
  flex-direction: column;
  padding: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 44px) 8px;
  border-left: 1px solid var(--rule-light);
}
.company:first-child { border-left: 0; padding-left: 0; }
.company:last-child { padding-right: 0; }
.company__logo {
  height: 112px;
  display: flex;
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.company__logo img { max-height: 100%; width: auto; }
.company__logo--hanse-agrar img { height: 104px; }
.company__logo--capsule img { height: 52px; }
.company__logo--red-oak img { height: 76px; }
.company__wordmark {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
  padding: 18px 0 14px;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}
.company__cat {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
  min-height: 2.6em;
}
.company__name {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.3vw, 2.125rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
}
.company__text { font-size: 0.9375rem; color: var(--ink); }
.company__note { margin-top: 14px; font-size: 0.875rem; color: var(--ink-muted); }
.company__link { margin-top: auto; padding-top: 32px; }

/* ---------- Activities ---------- */
.activities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-dark);
}
.activity {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 24px;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--rule-dark);
}
.activity:nth-child(even) {
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: 0;
  border-left: 1px solid var(--rule-dark);
}
.activity__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 3rem;
  line-height: 0.9;
  color: var(--gold);
}
.activity h3 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 18px;
}
.activity p { color: var(--on-navy-muted); font-size: 0.9375rem; max-width: 30em; }
.basis {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.8125rem;
}
.basis__type {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  white-space: nowrap;
}
.basis__name { min-width: 0; color: var(--ivory); transition: color 0.3s; }
a.basis__name:hover { color: var(--gold); }
.activity--venture { position: relative; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin-top: 40px;
  font-size: 0.8125rem;
  color: var(--on-navy-muted);
}
.legend strong {
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 8px;
}

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 72px;
}
.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate);
  margin-bottom: 32px;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.025); }
.slot {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 40px);
  background:
    linear-gradient(90deg, rgba(233, 229, 221, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(233, 229, 221, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(160deg, var(--slate), var(--navy));
  color: var(--ivory);
}
.slot::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid rgba(179, 154, 117, 0.35);
  pointer-events: none;
}
.slot__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 1;
  color: rgba(179, 154, 117, 0.55);
}
.slot__name {
  position: relative;
  margin-top: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.slot__tag {
  display: none;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.project__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.project__name {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  color: var(--navy);
}
.project__status {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.project__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.project__text { color: var(--ink-muted); font-size: 0.9375rem; max-width: 34em; margin-bottom: 28px; }
.facts { border-top: 1px solid var(--rule-light); }
.facts div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 0.875rem;
}
.facts dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.35em;
}
.facts dd { color: var(--ink); }

/* ---------- People ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 96px);
  row-gap: 72px;
}
.person {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
}
.person__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ivory);
  overflow: hidden;
}
.person__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); }
.person__portrait .monogram {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: 0.06em;
  color: var(--gold-ink);
}
.person__portrait .monogram::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(179, 154, 117, 0.5);
}
.person__role { margin-bottom: 14px; }
.person__role.label::before { width: 20px; }
.person__name {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 2.6vw, 2.5rem);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 20px;
}
.person__bio { font-size: 0.9375rem; color: var(--ink-muted); }
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.areas li {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border: 1px solid var(--rule-light);
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 56px;
  align-items: end;
}
.contact__main { grid-column: 1 / span 7; }
.contact__main .label { margin-bottom: 28px; }
.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ivory);
  margin-bottom: 32px;
}
.contact__details { grid-column: 9 / span 4; }
.contact__details dl div {
  padding: 16px 0;
  border-top: 1px solid var(--rule-dark);
}
.contact__details dl div:last-child { border-bottom: 1px solid var(--rule-dark); }
.contact__details dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact__details dd { font-size: 1rem; color: var(--ivory); }
.contact__details dd a { border-bottom: 1px solid var(--rule-dark); transition: border-color 0.3s; }
.contact__details dd a:hover { border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  font-size: 0.8125rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--rule-dark);
}
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-brand img { width: 64px; height: auto; opacity: 0.85; }
.footer-brand .wordmark { --wm-width: 260px; }
.footer-brand small {
  display: block;
  margin-top: 8px;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
.footer-nav a,
.footer-legal a { transition: color 0.3s; }
.footer-nav a:hover,
.footer-legal a:hover { color: var(--ivory); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.75rem;
}
.footer-legal { display: flex; gap: 24px; }
.footer-disclaimer { max-width: 40em; opacity: 0.8; }

/* ---------- Legal / simple pages ---------- */
.page-hero {
  background: var(--navy);
  color: var(--ivory);
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 88px);
}
.page-hero .label { margin-bottom: 24px; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1;
  color: var(--ivory);
}
.legal {
  padding: clamp(64px, 8vw, 112px) 0 var(--section-y);
}
.legal__body { max-width: 46rem; }
.legal__body h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--navy);
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
}
.legal__body p, .legal__body li { color: var(--ink-muted); font-size: 0.9375rem; }
.legal__body strong { color: var(--ink); font-weight: 500; }
.legal-intro { font-size: 1.0625rem !important; color: var(--ink) !important; }
.legal-dl div,
.legal-dl { display: grid; grid-template-columns: 13em minmax(0, 1fr); }
.legal-dl dt,
.legal-dl dd {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 0.9375rem;
}
.legal-dl dt { color: var(--ink-muted); padding-right: 16px; }
.legal-dl dd { color: var(--ink); }
.legal-date { margin-top: 48px; font-size: 0.8125rem !important; }
.legal__back { margin-top: 64px; }

/* ---------- Placeholders & review mode ---------- */
.tbc { }
.review .tbc,
.review [data-verify] {
  outline: 1px dashed #c0563f;
  outline-offset: 3px;
  position: relative;
}
.review [data-verify]:hover::after,
.review .tbc:hover::after {
  content: attr(data-verify);
  position: absolute;
  left: 0; top: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 280px;
  padding: 8px 10px;
  background: #c0563f;
  color: #fff;
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.review .slot__tag { display: block; }
.review-banner {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 90;
  padding: 10px 14px;
  background: #c0563f;
  color: #fff;
  font: 500 0.75rem/1.4 var(--sans);
}

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  /* hero animates on load with CSS alone, so it never waits for script or observers */
  .js .hero [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    animation: bh-rise 1.4s var(--ease) var(--delay, 0s) both;
  }
}
@keyframes bh-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .section-head__title { grid-column: 1 / -1; }
  .section-head__intro { grid-column: 1 / span 8; }
  .about__text { grid-column: 1 / span 7; }
  .crest-figure { grid-column: 8 / span 5; }
  .person { grid-template-columns: 1fr; row-gap: 28px; }
  .person__portrait { max-width: 320px; }
  .contact__main { grid-column: 1 / -1; }
  .contact__details { grid-column: 1 / span 7; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .menu-toggle { display: inline-flex; }
  .site-header .wordmark { --wm-width: 196px; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    padding: 96px var(--gutter) 48px;
    background: var(--navy);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.45s var(--ease); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.25rem, 9vw, 3rem);
    letter-spacing: 0;
    text-transform: none;
    color: var(--ivory);
  }
  .nav__link::after { display: none; }
  .lang { padding-left: 0; border-left: 0; font-size: 0.75rem; margin-left: -6px; }

  .hero__crest {
    width: min(92vw, 520px);
    right: 50%;
    top: 46%;
    transform: translate(50%, -50%);
    opacity: 0.06;
  }
  .hero__foot-inner { min-height: 0; padding-top: 24px; padding-bottom: 28px; }
  .sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; letter-spacing: 0.16em; }
  .sectors li { align-items: baseline; }
  .sectors li::before,
  .sectors li + li::before {
    content: "";
    flex-shrink: 0;
    position: relative;
    top: -2px;
    width: 4px; height: 4px;
    margin: 0 10px 0 0;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
  }
  .scroll-cue { display: none; }

  .about__text,
  .crest-figure { grid-column: 1 / -1; }
  .crest-figure { max-width: 560px; }
  .principles { grid-template-columns: 1fr; row-gap: 40px; }

  .companies { grid-template-columns: 1fr; }
  .company,
  .company:first-child,
  .company:last-child {
    padding: 40px 0 48px;
    border-left: 0;
    border-bottom: 1px solid var(--rule-light);
  }
  .company__cat { min-height: 0; }

  .activities { grid-template-columns: 1fr; }
  .activity,
  .activity:nth-child(even) { padding: 40px 0; border-left: 0; }

  .projects,
  .people { grid-template-columns: 1fr; }

  .contact__details { grid-column: 1 / -1; }

  .site-footer__top { grid-template-columns: 1fr; justify-items: start; gap: 32px; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .section-head__intro { grid-column: 1 / -1; }
  .activity { grid-template-columns: 1fr; row-gap: 20px; }
  .activity__num { font-size: 2.25rem; }
  .project__head { flex-direction: column; gap: 10px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .facts dt { padding-top: 0; }
  .legal-dl { grid-template-columns: 1fr; }
  .legal-dl dt { border-bottom: 0; padding-bottom: 0; }
  .legal-dl dd { padding-top: 2px; }
  .company__logo { height: 96px; }
  .company__logo--hanse-agrar img { height: 92px; }
  .company__logo--red-oak img { height: 68px; }
}

/* People: the two cards share one row grid (subgrid), so role labels, names,
   biographies and areas line up across columns even when one name wraps. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 901px) {
    .people { grid-template-rows: repeat(4, auto) minmax(0, 1fr); row-gap: 0; }
    .person { grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .person:nth-child(n + 3) { margin-top: 72px; }
    .person > div:last-child { display: contents; }
    .person__portrait { grid-column: 1; grid-row: 1 / -1; }
    .person__role { grid-column: 2; grid-row: 1; justify-self: start; }
    .person__name { grid-column: 2; grid-row: 2; }
    .person__bio { grid-column: 2; grid-row: 3; }
    .person .areas { grid-column: 2; grid-row: 4; align-self: start; }
  }
  @media (min-width: 901px) and (max-width: 1100px) {
    .people { grid-template-rows: repeat(5, auto); }
    .person__portrait { grid-column: 1; grid-row: 1; margin-bottom: 28px; }
    .person__role { grid-column: 1; grid-row: 2; }
    .person__name { grid-column: 1; grid-row: 3; }
    .person__bio { grid-column: 1; grid-row: 4; }
    .person .areas { grid-column: 1; grid-row: 5; }
  }
}

@media print {
  .site-header, .scroll-cue, .hero__crest { display: none; }
  .hero { min-height: 0; }
  .section { padding: 48px 0; }
}
