/*
 * Allodial landing V8.
 * Layout and type: Paper "Allodial Brand Studio" / Landing / V7 (1440 artboard).
 * Motion: Vectura's published modules (Lenis 1.3.23, word appear 0.9s
 * [0.44,0,0.13,0.96] staggered 0.02s, springs bounce 0.1 / 1.2s, hero scale-in).
 * Shape: V7 is boxy. No radius anywhere; structure is drawn with hairlines.
 */

@font-face {
  font-family: "ABC Diatype";
  src: url("assets/v8/fonts/ABCDiatype-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "ABC Diatype";
  src: url("assets/v8/fonts/ABCDiatype-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ABC Diatype";
  src: url("assets/v8/fonts/ABCDiatype-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #262626;
  --muted: #656565;
  --line: rgb(38 38 38 / 12%);
  --line-soft: rgb(38 38 38 / 10%);
  --blue: #2463cf;
  --blue-deep: #1d52ad;
  --white: #ffffff;

  --gutter: clamp(20px, 4.4445vw, 64px);
  --content: 1312px;
  --nav-h: 56px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-word: cubic-bezier(0.44, 0, 0.13, 0.96);

  font-family: "ABC Diatype", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html, body { margin: 0; }
body { overflow-x: clip; }
h1, h2, h3, h4, p, ol, dl, figure { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.display {
  font-weight: 400;
  font-size: clamp(34px, calc(2.4vw + 13.4px), 48px);
  line-height: 1.0834; /* 52 / 48 */
  letter-spacing: -0.035em;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, calc(0.6vw + 11.4px), 20px);
  line-height: 1.5;
}

/* ---------- Buttons: square, solid survey blue ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  min-width: 166px;
  padding-inline: 18px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out);
}
.button:hover { background: var(--blue-deep); }
.button--small { height: 32px; min-width: 0; padding-inline: 14px; font-size: 12px; line-height: 16px; }

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  min-width: 166px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.button:hover .arrow,
.link-button:hover .arrow { transform: translate(2px, -2px); }
.link-button:hover .arrow--down { transform: translateY(3px); }

.button:focus-visible,
.link-button:focus-visible,
.nav a:focus-visible,
.nav__menu:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  background: var(--white);
}
.nav__inner {
  width: min(var(--content), 100% - 2 * var(--gutter));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__logo img { width: 120px; height: 25px; }
.nav__links { display: flex; gap: 28px; font-size: 14px; line-height: 20px; }
.nav__links a { position: relative; white-space: nowrap; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

/* The quiet sibling of the primary button: same box, no fill. */
.button--muted {
  position: relative;
  background: transparent;
  color: var(--ink);
}
.button--muted:hover { background: transparent; }
.button--muted::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.button--muted:hover::after { transform: scaleX(1); }
.nav__menu {
  display: none;
  justify-self: end;
  border: 0;
  padding: 8px 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.nav__sheet {
  position: absolute;
  inset: var(--nav-h) 0 auto 0;
  display: grid;
  gap: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet a:not(.button) {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.nav__sheet .button { margin-top: 20px; justify-self: start; }

/* ---------- Hero ---------- */

.hero { position: relative; }
.hero__stage {
  padding-bottom: 14px;
  background: var(--white);
}
.hero__frame {
  position: relative;
  height: clamp(260px, 44.1667vw, 760px); /* 636 at 1440 */
  overflow: hidden;
  background: #2b5f9e; /* the sky, while the art loads */
}
/* Without script the photo is a plain cover crop of the frame (Paper: 50% 64%).
   v8.js then sizes the photo to the image itself and positions it so the same
   crop shows at rest, with real image above the frame for the parallax to use. */
.hero__photo {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 64%;
}
.hero__copy {
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 936fr) minmax(0, 376fr);
  align-items: start;
}
.hero__title { max-width: 872px; }
.hero__aside { padding-top: 8px; }
.hero__lead { max-width: 360px; font-size: 16px; line-height: 21px; }
.hero__actions { display: flex; gap: 8px; margin-top: 16px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
  border-block: 1px solid var(--line);
}
.steps__cell {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 16px 48px 16px var(--gutter);
}
.steps__cell + .steps__cell { border-left: 1px solid var(--line); }
.steps__index { color: var(--blue); font-size: 12px; line-height: 14px; }
.steps__text { display: flex; flex-direction: column; gap: 2px; }
.steps__title { font-size: 18px; line-height: 20px; }
.steps__sub { color: var(--muted); font-size: 14px; line-height: 16px; }

/* ---------- Sections ---------- */

.section {
  position: relative;
  z-index: 1;
  background: var(--white);
}
.section--layers { padding: 144px 0 136px; }
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.intro__main { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.intro__main .lead { max-width: 700px; }
.intro__aside {
  flex: 0 0 352px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}


/* ---------- 01 / Layers ---------- */

.layers {
  display: grid;
  grid-template-columns: 196px repeat(3, minmax(0, 340px));
  justify-content: space-between;
  column-gap: 32px;
  row-gap: 28px;
  margin-top: 80px;
}
.layers__legend {
  position: relative;
  grid-row: 1;
  grid-column: 1;
}
.layers__legend li {
  position: absolute;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.6s var(--ease-out);
}
.layers__legend [data-legend="mail"] { top: 14.04%; }
.layers__legend [data-legend="owners"] { top: 36.52%; }
.layers__legend [data-legend="parcels"] { top: 59.01%; }
.layers__legend [data-legend="route"] { top: 81.5%; }
.layers__name { font-size: 15px; line-height: 20px; }
.layers__kind { color: #757575; font-size: 13px; line-height: 18px; }

.layers__stack {
  margin: 0;
  display: grid;
  grid-row: 1 / span 2;
  grid-template-rows: subgrid;
}
.layers__art {
  position: relative;
  aspect-ratio: 362.4 / 668;
}
.layers__art > img,
.layers__art > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stack__layer, .stack__drop, .stack__layer > g { transform-box: view-box; }

.layers__chip {
  position: absolute;
  left: 58.2%;
  top: 34.6%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--white);
  border: 1px solid rgb(38 38 38 / 14%);
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
}

.layers__caption {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
}
.layers__caption::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgb(38 38 38 / 12%);
  transform-origin: 0 50%;
}
.layers__stack--allodial .layers__caption::before { height: 2px; background: #d4a13a; }
.layers__title { font-size: 20px; line-height: 26px; }
.layers__text { max-width: 320px; color: var(--muted); font-size: 16px; line-height: 24px; }

html.motion .layers:not(.is-built) .layers__caption::before { transform: scaleX(0); }
html.motion .layers:not(.is-built) .layers__caption > *,
html.motion .layers:not(.is-built) [data-caller] { opacity: 0; }
html.motion .layers:not(.is-built) .layers__legend li { opacity: 0.28; }
html.motion .brief:not(.is-built) .campaign__owner,
html.motion .brief:not(.is-built) .campaign__status,
html.motion .brief:not(.is-built) .campaign__step > span { opacity: 0; }
html.motion .brief:not(.is-built) .campaign__line { transform: scaleX(0); }
html.motion .brief:not(.is-built) .campaign__track .dot--done { background: var(--white); border-color: #b5b4af; }
html.motion .layers.is-drawing:not(.is-built) .layers__caption::before {
  transform: scaleX(1);
  transition: transform 1s var(--ease-out);
}
html.motion .layers.is-drawing:not(.is-built) .layers__stack:nth-of-type(2) .layers__caption::before { transition-delay: 0.16s; }
html.motion .layers.is-drawing:not(.is-built) .layers__stack:nth-of-type(3) .layers__caption::before { transition-delay: 0.32s; }


/* ---------- 02 / Project brief ---------- */

.section--brief {
  padding: 136px 0;
  background: #f7f3e9;
  border-top: 0;
}
.brief-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.brief-intro__lead {
  flex: 0 0 440px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 27px;
}

.brief {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid rgb(38 38 38 / 10%);
  box-shadow: 0 32px 64px -32px rgb(25 24 21 / 20%);
}
.brief__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
}
.brief__identity { display: flex; flex-direction: column; gap: 8px; }
.brief__title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brief__title { font-weight: 400; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.brief__stage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  background: #f7f3e9;
  color: #3b3a36;
  font-size: 13px;
  line-height: 16px;
}
.brief__stage-dot { width: 7px; height: 7px; border-radius: 50%; background: #d4a13a; }
.brief__kind { color: var(--muted); font-size: 15px; line-height: 22px; }

.brief__stats { display: flex; margin: 0; }
.brief__stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
  width: 128px;
  padding-left: 20px;
  border-left: 1px solid rgb(38 38 38 / 10%);
}
.brief__stats dt { color: #757575; font-size: 13px; line-height: 18px; }
.brief__stats dd {
  margin: 0;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.02em;
}

.brief__map {
  position: relative;
  aspect-ratio: 1310 / 360;
  overflow: hidden;
  background: #191815;
}
.brief__map img { width: 100%; height: 100%; object-fit: cover; }
.brief__credit {
  position: absolute;
  right: 20px;
  bottom: 10px;
  color: rgb(255 255 255 / 60%);
  font-size: 10px;
  line-height: 14px;
  text-align: right;
}

.campaign { overflow-x: auto; }
.campaign__head, .campaign__labels, .campaign__rows, .campaign__foot { min-width: 1280px; }
.campaign__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px 0;
}
.campaign__title { font-weight: 400; font-size: 22px; line-height: 28px; }
.campaign__key { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; line-height: 18px; }
.campaign__key .dot + .dot, .campaign__key .dot:not(:first-child) { margin-left: 11px; }

.campaign__labels,
.campaign__row {
  display: grid;
  grid-template-columns: 420px 456px 340px;
  column-gap: 0;
  padding-inline: 32px;
}
.campaign__labels {
  position: relative;
  height: 104px;
  align-items: end;
  padding-bottom: 6px;
  color: #757575;
  font-size: 13px;
  line-height: 18px;
}
.campaign__col--status { grid-column: 3; margin-left: 30px; }
.campaign__steps {
  position: relative;
  grid-column: 2;
  align-self: stretch;
}
.campaign__step {
  position: absolute;
  left: calc(38px + var(--i) * 76px);
  bottom: -6px;
  width: 1px;
  height: 6px;
  background: #bcbbb6;
}
.campaign__step > span {
  position: absolute;
  left: -3px;
  top: -20px;
  color: #3b3a36;
  white-space: nowrap;
  rotate: -45deg;
  transform-origin: 0 0;
}

.campaign__rows { margin: 0; }
.campaign__row {
  align-items: center;
  height: 58px;
  border-top: 1px solid rgb(38 38 38 / 8%);
}
.campaign__owner { display: flex; flex-direction: column; gap: 1px; }
.campaign__name { font-size: 15px; line-height: 20px; }
.campaign__sub { color: #757575; font-size: 13px; line-height: 18px; }
.campaign__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 76px);
  justify-items: center;
  align-items: center;
  height: 58px;
}
.campaign__line {
  position: absolute;
  left: 38px;
  top: 28px;
  width: calc(var(--span) * 76px);
  height: 2px;
  background: var(--ink);
  transform-origin: 0 50%;
}
.campaign__status { margin-left: 30px; font-size: 14px; line-height: 20px; }
.campaign__status--muted { color: #757575; }

.dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid #b5b4af;
}
.dot--done { background: var(--ink); border-color: var(--ink); }
.dot--won { background: #d4a13a; border-color: #d4a13a; }
.dot--key { width: 10px; height: 10px; }

.campaign__foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px 18px;
  border-top: 1px solid rgb(38 38 38 / 10%);
  color: #757575;
  font-size: 13px;
  line-height: 18px;
}


/* ---------- 03 / Records ---------- */

.section--records { padding: 136px 0 120px; }
.records-intro { display: flex; flex-direction: column; gap: 20px; }
.records-intro .lead { max-width: 760px; }

.records {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.record { display: flex; flex-direction: column; }
.record__visual {
  position: relative;
  aspect-ratio: 416 / 372;
  overflow: hidden;
}
.record__visual--sage { background: #eef2ed; }
.record__visual--night { background: #191815; }
.record__ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.record__parcel {
  position: absolute;
  left: 4.81%;
  top: 5.38%;
  width: 90.38%;
  height: 52%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.record:hover .record__ground,
.record:hover .record__parcel { transform: scale(1.035); }

/* Product fragments on the record cards: square avatar and icon tiles, chips
   for state. Colour is spent on status only: green for done, gold for open. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 16px; height: 16px; flex-shrink: 0; }
.ico--sm { width: 14px; height: 14px; }
.ico--xs { width: 12px; height: 12px; }

.ui-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 16px 36px -14px rgb(38 38 38 / 30%);
  font-size: 13px;
  line-height: 18px;
}
.ui-card--contact { right: 20px; top: 20px; width: 300px; gap: 12px; padding: 16px; }
.ui-card--sources { left: 20px; top: 20px; width: 300px; gap: 12px; padding: 16px; }
.ui-card--property {
  left: 20px;
  right: 20px;
  bottom: 20px;
  gap: 10px;
  padding: 14px;
  box-shadow: 0 16px 36px -14px rgb(0 0 0 / 45%);
}
.ui-card__head { display: flex; align-items: center; gap: 7px; color: #656565; font-size: 12px; line-height: 16px; }
.ui-card__head--split { justify-content: space-between; color: var(--ink); font-size: 13px; }
.ui-card__head--split > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.ui-count { color: #757575; font-size: 12px; }
.ui-dot { width: 7px; height: 7px; border-radius: 50%; }
.ui-dot--gold { background: #d4a13a; }

.ui-owner { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgb(38 38 38 / 10%); }
.ui-owner__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ui-owner__name { font-size: 16px; line-height: 20px; }
.ui-owner__meta { display: inline-flex; align-items: center; gap: 5px; color: #757575; font-size: 12px; line-height: 16px; }
.ui-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: #f7f3e9;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ui-avatar--unknown {
  width: 28px;
  height: 28px;
  background: #fbf6ea;
  color: #8a6a1f;
  outline: 1px dashed #d4a13a;
  outline-offset: -1px;
}

.ui-rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ui-rows--tight { gap: 8px; }
.ui-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ui-row__text { display: flex; flex-direction: column; min-width: 0; }
.ui-row__label { color: #757575; font-size: 11px; line-height: 14px; }
.ui-row__value { font-size: 13px; line-height: 18px; text-wrap: pretty; }
.ui-row__value--muted { color: #757575; }
.ui-tile {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #f3f2ee;
  color: #3b3a36;
}
.ui-tile--gap { background: transparent; outline: 1px dashed #bcbbb6; outline-offset: -1px; color: #979691; }
.ui-tile--gold { background: #f7eedb; color: #7a5a16; }

.ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  background: #f3f2ee;
  color: #3b3a36;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}
.ui-chip--ok { background: #eaf1ea; color: #3e6644; }
.ui-chip--gap { background: transparent; outline: 1px dashed #bcbbb6; outline-offset: -1px; color: #757575; }
.ui-chip--open { background: #f7eedb; color: #7a5a16; }
.ui-check { display: grid; place-items: center; width: 18px; height: 18px; background: #eaf1ea; color: #3e6644; }

.ui-next {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: #eef4fc;
  color: #1d52ad;
  font-size: 12px;
  line-height: 16px;
}
.ui-next b { font-weight: 500; }

.ui-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ui-metric { display: flex; align-items: center; gap: 10px; padding: 8px; background: #fafaf8; }
.ui-metric b { display: block; font-weight: 400; font-size: 17px; line-height: 20px; letter-spacing: -0.01em; }
.ui-metric small { display: block; color: #757575; font-size: 11px; line-height: 14px; }

.ui-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; height: 4px; }
.ui-progress span { background: #e9e8e4; transform-origin: 0 50%; }
.ui-progress .is-done { background: #4e7a54; }
.ui-progress .is-open { background: transparent; outline: 1px solid #d4a13a; outline-offset: -1px; }

.record__title { margin-top: 24px; font-weight: 400; font-size: 22px; line-height: 28px; }
.record__text { margin-top: 8px; max-width: 380px; color: var(--muted); font-size: 16px; line-height: 24px; }

.basis {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgb(38 38 38 / 10%);
  color: #757575;
  font-size: 13px;
  line-height: 18px;
}


/* ---------- 04 / Tools ---------- */

.section--tools {
  position: relative;
  overflow: clip;
  padding: 136px 0 120px;
  background: #1d5fc4;
  color: var(--white);
}
.tools__backdrop { position: absolute; inset: 0; overflow: hidden; }
.tools__sky {
  position: absolute;
  inset: -8% 0 0;
  background: url("assets/v8/tools-backdrop.webp") 50% 100% / cover no-repeat;
  will-change: transform;
}
.tools__inner { position: relative; }
.tools-intro { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.tools-intro__lead { max-width: 700px; color: rgb(255 255 255 / 86%); font-size: 20px; line-height: 30px; }

.tool { background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(11 31 58 / 45%); }
.tool--mail { display: grid; grid-template-columns: 480fr 832fr; margin-top: 56px; min-height: 620px; }
.tool__copy { display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.tool__head { display: flex; flex-direction: column; gap: 18px; }
.tool__body { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.tool__index { color: #757575; font-size: 14px; line-height: 20px; }
.tool__title { font-weight: 400; font-size: 24px; line-height: 30px; letter-spacing: -0.01em; }
.tool__title--lg { font-size: 34px; line-height: 40px; letter-spacing: -0.02em; }
.tool__text { max-width: 540px; color: var(--muted); font-size: 16px; line-height: 24px; }
.tool__text--lg { max-width: 384px; font-size: 17px; line-height: 26px; }

.button--ink {
  height: auto;
  min-width: 0;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  background: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  cursor: pointer;
}
.button--ink:hover { background: #000; }
.button--ink:hover .arrow { transform: translateX(3px); }

.tool__stage { position: relative; overflow: clip; background: #f2f2f0; }
.tool__stage--mail { min-height: 620px; }
.mock-depth { position: absolute; inset: 0; pointer-events: none; }
.mock-depth .mock { pointer-events: auto; }
.mock { position: absolute; display: block; height: auto; }
.mock--letter { left: 4.81%; top: 22px; width: 67.31%; box-shadow: 0 24px 48px -20px rgb(38 38 38 / 28%), 0 2px 6px rgb(38 38 38 / 6%); }
.mock--envelope { left: 40.87%; top: 392px; width: 55.77%; box-shadow: 0 28px 50px -18px rgb(38 38 38 / 32%), 0 2px 6px rgb(38 38 38 / 8%); }

.tools-more { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.tool--small { display: flex; flex-direction: column; }
.tool__stage--small { aspect-ratio: 640 / 312; }
.tool__copy--small { justify-content: flex-start; gap: 10px; padding: 28px 36px 34px; }
.mock--page { left: 8.75%; top: 10.9%; width: 82.5%; box-shadow: 0 18px 40px -16px rgb(38 38 38 / 25%); }
.mock--email { left: 14.375%; top: 12.82%; width: 71.25%; box-shadow: 0 18px 40px -16px rgb(38 38 38 / 25%); }
.mock--second { left: 20.31%; top: 78.85%; width: 62.5%; box-shadow: 0 14px 30px -14px rgb(38 38 38 / 22%); }
.tool--small .mock { transition: transform 0.8s var(--ease-out); }
.tool--small:hover .mock--page,
.tool--small:hover .mock--email { transform: translateY(-4px); }

.tools__note { margin-top: 28px; color: rgb(255 255 255 / 78%); font-size: 13px; line-height: 18px; }

.letter-dialog {
  width: min(560px, calc(100% - 40px));
  max-height: calc(100% - 40px);
  padding: 0;
  border: 0;
  overflow: auto;
  background: var(--white);
  box-shadow: 0 40px 80px -30px rgb(11 31 58 / 55%);
}
.letter-dialog::backdrop { background: rgb(15 37 35 / 55%); }
.letter-dialog img { width: 100%; height: auto; }
.letter-dialog__close {
  position: sticky;
  top: 0;
  float: right;
  margin: 12px 12px -48px 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}


/* ---------- Live map-lab embeds ---------- */

.live-map {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.live-map.is-live { opacity: 1; }
.live-map__gl { width: 100%; height: 100%; }
.live-map .maplibregl-canvas { outline: none; }
html.motion .brief__map:not(.is-revealed) .live-map { opacity: 0 !important; }
.brief__credit { z-index: 2; }

/* ---------- 06 / Closing: the market, live ---------- */

.closing { position: relative; z-index: 1; background: #191815; }
.closing__stage {
  position: relative;
  height: 640px;
  overflow: clip;
  background: #191815;
}
.closing__poster {
  position: absolute;
  left: -20.833%;
  top: -10.94%;
  width: 120.833%;
  height: 120.78%;
  max-width: none;
  object-fit: cover;
}
.closing__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #191815 0%, rgb(25 24 21 / 0%) max(0px, calc((100% - 1440px) / 2 + 40px))),
    linear-gradient(270deg, #191815 0%, rgb(25 24 21 / 0%) max(0px, calc((100% - 1440px) / 2 + 40px))),
    radial-gradient(120% 90% at 40% 50%, rgb(25 24 21 / 0%) 55%, rgb(25 24 21 / 55%) 100%);
}
.closing__card {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - var(--content)) / 2 - 24px));
  top: 80px;
  width: 480px;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 44px 40px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 55%);
}
.closing__top { display: flex; flex-direction: column; gap: 18px; }
.closing__title { font-weight: 400; font-size: 40px; line-height: 44px; letter-spacing: -0.035em; }
.closing__text { max-width: 380px; color: var(--muted); font-size: 17px; line-height: 26px; }
.closing__bottom { display: flex; flex-direction: column; gap: 14px; }
.closing__count { display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; color: var(--muted); font-size: 13px; line-height: 18px; }
.closing__num { color: var(--ink); font-size: 28px; line-height: 30px; letter-spacing: -0.02em; }
.closing__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding-inline: 20px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  line-height: 20px;
  transition: background-color 0.25s var(--ease-out);
}
.closing__cta span:last-child { font-size: 18px; transition: transform 0.35s var(--ease-out); }
.closing__cta:hover { background: var(--blue-deep); }
.closing__cta:hover span:last-child { transform: translate(2px, -2px); }
.closing__email { color: var(--muted); font-size: 14px; line-height: 20px; }
.closing__legend {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  line-height: 16px;
}
.closing__swatch { width: 18px; height: 3px; background: #d4a13a; }
.closing__attrib {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 12px;
  color: rgb(255 255 255 / 45%);
  font-size: 10px;
  line-height: 14px;
}

/* ---------- 07 / Footer: the landscape ---------- */

.footer {
  position: relative;
  z-index: 1;
  height: 706px;
  overflow: clip;
  background: #fdf7e8;
}
.footer__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(252 249 240 / 30%) 0%, rgb(252 249 240 / 10%) 42%, rgb(252 249 240 / 0%) 70%),
    linear-gradient(90deg, rgb(252 249 240 / 18%) 0%, rgb(252 249 240 / 0%) 44%, rgb(252 249 240 / 4%) 100%);
}
.footer__inner {
  position: relative;
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 86px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer__logo { width: 222px; height: 46px; }
.footer__line { max-width: 380px; padding-top: 26px; color: rgb(38 38 38 / 78%); font-size: 16px; line-height: 24px; }
.footer__email { display: flex; align-items: center; gap: 12px; padding-top: 18px; font-size: 14px; line-height: 18px; }
.footer__copy {
  padding: 6px 10px;
  border: 1px solid rgb(38 38 38 / 24%);
  background: rgb(252 249 240 / 62%);
  color: #6f5314;
  font: inherit;
  font-size: 13px;
  line-height: 16px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out);
}
.footer__copy:hover { background: rgb(252 249 240 / 95%); }
.footer__cols { display: flex; gap: 58px; padding-top: 4px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; width: 146px; }
.footer__head { padding-bottom: 9px; color: #7a5a16; font-size: 13px; line-height: 18px; }
.footer__col a { color: rgb(38 38 38 / 76%); font-size: 14px; line-height: 18px; transition: color 0.2s; }
.footer__col a:hover { color: var(--ink); }
.footer__base {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: min(var(--content), 100% - 2 * var(--gutter));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 17px;
  border-top: 1px solid rgb(38 38 38 / 24%);
  color: rgb(38 38 38 / 70%);
  font-size: 12px;
  line-height: 16px;
}
.footer__base-right { display: flex; align-items: center; gap: 28px; }
.footer__base a { color: var(--ink); }

/* ---------- Motion start states (only when motion runs) ---------- */

.word { display: inline-block; white-space: pre; }

html.motion:not(.motion-done) [data-intro="nav"],
html.motion:not(.motion-done) [data-intro="rise"],
html.motion:not(.motion-done) .hero .word,
html.motion:not(.motion-done) .steps__cell > * { opacity: 0; }
html.motion:not(.motion-done) [data-intro="frame"] { clip-path: inset(14% 9% 14% 9%); }
html.motion:not(.motion-done) .steps { border-color: transparent; }
html.motion:not(.motion-done) .steps__cell + .steps__cell { border-color: transparent; }

.steps__rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
  pointer-events: none;
}
.steps__vrule {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  transform-origin: 50% 0;
  pointer-events: none;
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .nav__inner { grid-template-columns: 1fr auto auto; gap: 28px; }
  .hero__copy { grid-template-columns: 1fr; gap: 28px; }
  .hero__aside { padding-top: 0; }
  .steps__cell { padding-right: 24px; }
  .intro { flex-direction: column; align-items: flex-start; }
  .intro__aside { flex-basis: auto; max-width: 560px; }
  .layers { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .layers__legend {
    grid-column: 1 / -1;
    grid-row: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .layers__legend li { position: static; }
  .layers__stack { grid-row: auto / span 2; }
  .brief-intro { flex-direction: column; align-items: flex-start; gap: 24px; }
  .brief-intro__lead { flex-basis: auto; max-width: 560px; }
  .brief__head { flex-direction: column; align-items: flex-start; }
  .brief__stats > div:first-child { padding-left: 0; border-left: 0; }
  .records { grid-template-columns: 1fr 1fr; }
  .record:last-child { grid-column: 1 / -1; max-width: calc(50% - 16px); }
  .tool--mail { grid-template-columns: 1fr; }
  .tool__copy { gap: 32px; }
  .tool__stage--mail { min-height: 0; aspect-ratio: 832 / 620; }
  .mock--letter { top: 3.55%; }
  .mock--envelope { top: 63.2%; }
  .footer__inner { flex-direction: column; gap: 40px; }
}

/* Keep the expanded navigation clear of the actions on narrow tablets. */
@media (min-width: 810px) and (max-width: 960px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links, .nav__actions { display: none; }
  .nav__menu { display: block; }
}

/* Section links settle below the sticky header, including native anchors. */
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---------- Phone ---------- */

@media (max-width: 809px) {
  :root { --nav-h: 64px; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__logo img { width: 134px; height: 28px; }
  .nav__links, .nav__actions { display: none; }
  .nav__menu { display: block; }
  .hero__frame { height: 260px; }
  .hero__img { object-position: 86% 64%; }
  .hero__copy { margin-top: 36px; gap: 24px; }
  .hero__title br { display: none; }
  .hero__lead { font-size: 17px; line-height: 26px; }
  .hero__actions { margin-top: 28px; flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr; margin-top: 40px; }
  .steps__cell { padding-inline: var(--gutter); }
  .steps__cell + .steps__cell { border-left: 0; border-top: 1px solid var(--line); }
  .section--layers { padding: 96px 0; }
  .layers {
    display: flex;
    gap: 20px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .layers::-webkit-scrollbar { display: none; }
  .layers__legend { display: none; }
  .layers__stack { flex: 0 0 76%; display: flex; flex-direction: column; gap: 24px; scroll-snap-align: start; }
  .section--brief { padding: 96px 0; }
  .brief { margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
  .brief__head { padding: 24px var(--gutter); }
  .brief__stats { display: grid; grid-template-columns: repeat(3, auto); row-gap: 16px; }
  .brief__stats > div { width: auto; padding-right: 20px; }
  .brief__stats > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .brief__map { aspect-ratio: 4 / 3; }
  .brief__map img { object-position: 46% 50%; }
  .campaign__head { padding-inline: var(--gutter); }
  .campaign__foot { flex-direction: column; gap: 4px; }
  .section--records { padding: 96px 0; }
  .records { grid-template-columns: 1fr; gap: 48px; }
  .record:last-child { max-width: none; }
  .ui-card--contact, .ui-card--sources { width: auto; left: 16px; right: 16px; }
  .section--tools { padding: 96px 0; }
  .tool { margin-inline: calc(var(--gutter) * -1); }
  .tool__copy { padding: 32px var(--gutter); }
  .tools-more { grid-template-columns: 1fr; gap: 24px; }
  .tool__copy--small { padding: 24px var(--gutter) 32px; }
  .closing__stage { height: auto; padding-top: 340px; padding-bottom: 72px; }
  .closing__poster { left: -40%; top: 0; width: 180%; height: 380px; }
  .closing__card { position: relative; right: auto; top: auto; width: auto; height: auto; margin-inline: var(--gutter); gap: 40px; padding: 32px 24px; }
  .closing__title { font-size: 32px; line-height: 36px; }
  .closing__title br { display: none; }
  .closing__legend { bottom: 36px; }
  .closing__attrib { display: none; }
  .footer { height: auto; padding-bottom: 260px; }
  .footer__art { top: auto; bottom: 0; height: 360px; object-position: 60% 100%; }
  .footer__cols { flex-wrap: wrap; gap: 32px; }
  .footer__base { position: relative; left: auto; transform: none; bottom: auto; margin: 56px auto 0; flex-direction: column; align-items: flex-start; gap: 10px; }
}

