/* MOUND homepage — foundation layout (DESIGN.md §6, §9)
   Source: mound-concepts/dist/mound-group.html ("Nordic institutional editorialism") */

.fd-pad { padding-block: clamp(72px, 8vw, 120px); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 1. Hero ---------- */
.fd-hero {
  position: relative;
  min-height: 640px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--forest);
  color: var(--bone);
}
.fd-hero__image,
.fd-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fd-hero__image img { object-fit: cover; object-position: 58% center; }
.fd-hero__copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--site-top) + 40px);
  padding-bottom: 42px;
}
.fd-hero__kicker { margin-bottom: 24px; color: var(--brass-light); text-shadow: 0 1px 20px rgba(0, 0, 0, 0.28); }
/* Phones: keep the three-part label on one line */
@media (max-width: 599px) {
  .fd-hero__kicker { font-size: clamp(8px, 2.55vw, 11px); letter-spacing: 0.1em; white-space: nowrap; }
}
.fd-hero__title {
  max-width: 1220px;
  /* Never wider than the screen: "for commercial growth." is ~8.9x the font size,
     so on phones the size steps down to keep the headline on two lines. */
  font-size: min(var(--fs-hero), calc((100vw - 2 * var(--site-margin)) * 0.109));
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.28);
  text-wrap: initial;
}
.fd-hero__foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 240, 231, 0.42);
}
.fd-hero__foot p { max-width: 610px; font-size: clamp(15px, 1.5vw, 21px); line-height: normal; text-shadow: 0 1px 20px rgba(0, 0, 0, 0.28); }

/* ---------- 2. Connected partner ---------- */
.fd-intro { background: var(--bone); }
.fd-intro__title { max-width: 18ch; margin-bottom: 55px; }
.fd-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.fd-intro__grid .lead { max-width: none; }
.fd-intro__grid .button { margin-top: 32px; }
@media (min-width: 900px) {
  .fd-intro__grid { grid-template-columns: 1fr 1fr; gap: 7vw; }
}

/* ---------- 4. Two advisory arms ---------- */
.fd-practices {
  background: var(--forest);
  color: var(--bone);
  padding-block: clamp(68px, 7vw, 105px);
}
.fd-block-title { max-width: 16ch; margin-bottom: clamp(42px, 4vw, 64px); }
.fd-practice-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1000px) {
  .fd-practice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.fd-practice {
  min-height: 370px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.fd-practice:hover { transform: translateY(-3px); }
.fd-practice--clay { background: var(--clay); color: var(--bone); }
.fd-practice--brass { background: var(--brass); color: var(--forest); }
.fd-practice--stone { background: var(--limestone); color: var(--evergreen); }
.fd-practice p { max-width: 610px; }
.fd-practice p + p { margin-top: 20px; }
.fd-practice__lead {
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.15vw, 32px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-transform: none;
}
.fd-practice p.fd-practice__tags {
  padding-top: 16px;
  border-top: 1px solid rgba(244, 240, 231, 0.45);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.fd-practice--brass .fd-practice__tags { border-top-color: rgba(13, 37, 31, 0.35); }
.fd-practice--stone .fd-practice__tags { border-top-color: rgba(24, 55, 47, 0.35); }

/* ---------- 5. Capabilities ---------- */
.fd-capabilities { background: var(--evergreen); color: var(--bone); padding-top: clamp(72px, 8vw, 120px); }
.fd-capabilities__head { padding-bottom: clamp(48px, 5vw, 74px); }
.fd-capabilities__head h2 { max-width: 18ch; }
.fd-capabilities__head > p { max-width: 720px; margin-top: 30px; color: rgba(244, 240, 231, 0.75); font-size: 18px; }

.fd-capability-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-on-dark); }
.fd-capability {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-items: center;
  padding-block: 26px;
  padding-inline: max(var(--site-margin), calc((100% - var(--container)) / 2));
  border-bottom: 1px solid var(--rule-on-dark);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.fd-capability:hover { background: var(--bone); color: var(--ink); }
.fd-capability__meta { grid-column: 1 / -1; display: flex; flex-direction: row; gap: 10px; color: var(--brass); font-size: 11px; }
.fd-capability__meta i { font-style: normal; }
.fd-capability__meta em { font-size: 9px; font-style: normal; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.fd-capability h3 { font-size: clamp(28px, 3vw, 46px); line-height: 1; }
.fd-capability p { grid-column: 1 / -1; max-width: 580px; opacity: 0.75; }
.fd-capability b { grid-column: 2; grid-row: 2; font-size: 24px; font-weight: 300; }
.fd-capability:hover .fd-capability__meta { color: var(--clay-deep); }
@media (min-width: 900px) {
  .fd-capability { min-height: 142px; grid-template-columns: 1.2fr 7.2fr 10fr auto; gap: 35px; }
  .fd-capability__meta { grid-column: auto; flex-direction: column; gap: 8px; }
  .fd-capability p { grid-column: auto; }
  .fd-capability b { grid-column: auto; grid-row: auto; }
}

.fd-section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 38px 72px;
}
.fd-section-cta p { color: rgba(244, 240, 231, 0.75); font-family: var(--font-serif); font-size: 22px; line-height: 1.25; }

/* ---------- 6. Central question ---------- */
.fd-question {
  display: grid;
  grid-template-columns: 1fr;
  padding: 14px;
  background: var(--forest);
  color: var(--bone);
}
.fd-question__image { position: relative; display: block; min-height: 430px; overflow: hidden; }
.fd-question__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.fd-question__copy { padding: 55px 20px; display: flex; flex-direction: column; justify-content: center; }
.fd-question__copy h2 { margin-bottom: 38px; }
.fd-question__copy p { max-width: 610px; font-size: 18px; opacity: 0.8; }
@media (min-width: 1050px) {
  .fd-question { min-height: 720px; padding: 22px; grid-template-columns: 1.08fr 0.92fr; }
  .fd-question__image { min-height: 0; }
  .fd-question__copy { padding: clamp(55px, 7vw, 110px); }
}

/* ---------- 7. Mandate fit ---------- */
.fd-fit { display: grid; grid-template-columns: 1fr; background: var(--bone); }
.fd-fit__intro {
  padding: clamp(58px, 6vw, 86px) max(var(--site-margin), 5.5vw);
  background: var(--clay);
  color: var(--bone);
}
.fd-fit__intro h2 { margin-bottom: 32px; }
.fd-fit__intro > p { max-width: 560px; font-size: 18px; }
.fd-fit__profile { max-width: 650px; margin: 36px 0 30px; border-top: 1px solid rgba(244, 240, 231, 0.4); }
.fd-fit__profile div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 240, 231, 0.4);
}
.fd-fit__profile dt { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.fd-fit__profile dd { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
.fd-fit__grid {
  align-self: start;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}
.fd-fit__grid article {
  min-height: 170px;
  padding: 24px max(var(--site-margin), 26px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
}
.fd-fit__grid .eyebrow { color: var(--clay-deep); }
.fd-fit__grid p + p { max-width: 430px; margin-top: 14px; font-family: var(--font-serif); font-size: clamp(17px, 1.25vw, 19px); line-height: 1.32; }
@media (min-width: 720px) {
  .fd-fit__grid { grid-template-columns: 1fr 1fr; border-right: 1px solid var(--rule); }
  .fd-fit__grid article { min-height: 178px; padding: 24px 26px; border-left: 1px solid var(--rule); }
}
@media (min-width: 1050px) {
  .fd-fit { grid-template-columns: 0.74fr 1.26fr; }
  /* The four criteria fill the full height of the clay module beside them */
  .fd-fit__grid { align-self: stretch; grid-auto-rows: 1fr; border-top: 0; }
  .fd-fit__grid article { min-height: 0; padding: clamp(44px, 4vw, 64px) clamp(32px, 3.4vw, 56px); justify-content: space-between; gap: 40px; }
  .fd-fit__grid p + p { max-width: 520px; margin-top: 0; font-size: clamp(24px, 2.05vw, 31px); line-height: 1.18; letter-spacing: -0.01em; }
}

/* ---------- 8. Perspectives ---------- */
.fd-perspectives { background: var(--forest); color: var(--bone); }
.fd-perspectives__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 60px;
}
.fd-perspectives__head h2 { max-width: 18ch; }
.fd-perspective-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.fd-perspective {
  min-height: 500px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.fd-perspective h3 { margin: auto 0 25px; font-size: clamp(32px, 3.5vw, 55px); line-height: 0.96; letter-spacing: -0.025em; }
.fd-perspective > p:not(.eyebrow) { margin-bottom: 35px; opacity: 0.8; }
.fd-perspective__more {
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.fd-perspective:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.fd-perspective--image { padding: 0 0 30px; }
.fd-perspective--image > *:not(.fd-perspective__art) { margin-inline: 30px; }
.fd-perspective__art {
  height: 315px;
  margin-bottom: 30px;
  background:
    linear-gradient(180deg, rgba(13, 37, 31, 0.04), rgba(13, 37, 31, 0.26)),
    url("/assets/images/hero-landscape-1200.webp") 52% 45% / cover;
}
.fd-perspective--clay { background: var(--clay); }
.fd-perspective--stone { background: var(--limestone); color: var(--evergreen); }
@media (min-width: 720px) {
  .fd-perspective-grid { grid-template-columns: 1fr 1fr; }
  .fd-perspective--image { grid-column: 1 / -1; }
}
@media (min-width: 1050px) {
  .fd-perspective-grid { grid-template-columns: 1.25fr 0.75fr 0.75fr; }
  .fd-perspective--image { grid-column: auto; }
  .fd-perspective { min-height: 590px; }
}

/* ---------- 9. Close ---------- */
.fd-close { display: grid; grid-template-columns: 1fr; background: var(--bone); color: var(--evergreen); }
.fd-close__mark { min-height: 420px; padding: 48px; display: flex; align-items: center; justify-content: center; background: var(--limestone); }
.fd-close__mark svg { width: min(400px, 90%); height: auto; }
.fd-close__copy { padding: clamp(80px, 10vw, 150px) max(var(--site-margin), 5.5vw); display: flex; flex-direction: column; justify-content: center; }
.fd-close__copy h2 { margin-bottom: 44px; font-size: clamp(56px, 7.5vw, 110px); font-weight: 300; line-height: 0.86; letter-spacing: -0.05em; }
.fd-close__button { align-self: flex-start; min-width: 280px; padding: 18px 22px; }
@media (min-width: 900px) {
  .fd-close { min-height: 720px; grid-template-columns: 0.8fr 1.2fr; }
}
