/* ==========================================================================
   LANDOWNERS — landowners.html. The breadcrumb, section heads and buttons
   come from css/inner.css; the form section shares the enquiry form of
   css/contact.css (.ce, .cf), so both forms look and behave alike.

   §L1 the hero: words, and "from your land" — a plot with survey pegs, the
       design drawn over it, then the building, in three marked steps
   §L2 the message · §L3 the form (contact.css) · narrow · motion
   ========================================================================== */

/* --- §L1  The hero ---------------------------------------------------------------------- */
.lh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(680px, 100vh);
  min-height: max(680px, 100svh);
  background: #071324;
  color: var(--c-ivory);
}
.lh__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 36% at 72% 78%, rgb(208 173 103 / .14), transparent 70%),
    radial-gradient(70% 60% at 72% 40%, #12294a 0%, transparent 70%),
    linear-gradient(180deg, #08101f 0%, #0b1a30 55%, #071324 100%);
}
.lh__sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(208 173 103 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(208 173 103 / .06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 70% at 24% 46%, #000, transparent 78%);
  mask-image: radial-gradient(70% 70% at 24% 46%, #000, transparent 78%);
}
.lh::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(208 173 103 / .55) 30%, rgb(208 173 103 / .55) 70%, transparent);
}
.lh__in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--sp-lg) clamp(24px, 2.6vw, 48px);
  min-height: inherit;
  padding-block: clamp(120px, 15svh, 170px) clamp(56px, 8svh, 96px);
}
.lh__copy { display: grid; justify-items: start; gap: var(--sp-sm); padding-inline-start: clamp(0px, 3vw, 56px); }
.lh .crumbs__list { gap: 10px; color: var(--c-mist); }
.lh .crumbs__list li + li::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-inline-end: 10px; vertical-align: middle; background: var(--c-gold); }
.lh .crumbs__link { color: var(--c-ivory); }
.lh .crumbs__link:hover { color: var(--c-gold); }
.lh [aria-current="page"] { color: var(--c-gold); }
.lh__h {
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(48px, min(6vw, 11svh), 108px);
  font-weight: var(--fw-medium);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--c-ivory);
}
.lh__h em { font-style: italic; color: var(--c-gold); }
.lh__rule { width: min(300px, 60%); height: 1px; background: linear-gradient(90deg, var(--c-gold), transparent); box-shadow: 0 0 14px rgb(208 173 103 / .5); transform-origin: left center; }
.lh__lead { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--c-mist); }
.lh__actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-block-start: var(--sp-2xs); }

/* the drawing */
.lh__art { display: grid; gap: 18px; min-width: 0; }
.pl {
  position: relative;
  width: min(100%, calc(64svh * 1000 / 560));
  margin-inline: auto;
  aspect-ratio: 1000 / 560;
}
.pl__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl__svg :is(path, circle) { vector-effect: non-scaling-stroke; }
.pl .el-tl { fill: none; stroke-linecap: round; }
.pl .el-tree--front .el-tl { stroke: #ece4d2; stroke-opacity: .84; }
.pl .el-tree--back .el-tl { stroke: var(--c-mist); stroke-opacity: .28; }
.pl .el-tl0 { stroke-width: 4.6; } .pl .el-tl1 { stroke-width: 2.9; } .pl .el-tl2 { stroke-width: 1.9; } .pl .el-tl3 { stroke-width: 1.3; }
.pl .el-tl4 { stroke-width: .95; } .pl .el-tl5 { stroke-width: .7; } .pl .el-tl6 { stroke-width: .5; } .pl .el-tl7 { stroke-width: .38; }
.pl .el-tree { transform-box: fill-box; transform-origin: 50% 100%; }
.pl-star { fill: #f3e6c4; }
.pl-bound { fill: none; stroke: var(--c-gold); stroke-width: 1.6; stroke-dasharray: 8 6; }
.pl-stake { fill: none; stroke: #ece4d2; stroke-width: 2; }
.pl-flag { fill: var(--c-gold); filter: drop-shadow(0 0 6px rgb(240 200 120 / .7)); }
.pl-peg { transform-box: view-box; }
.pl-cons { fill: none; stroke: var(--c-gold); stroke-width: .9; stroke-opacity: .85; }
.pl-storey { fill: none; stroke: var(--c-gold); stroke-opacity: .32; stroke-width: .7; stroke-dasharray: 3 4; }
.pl-glass { fill: #0c2036; }
.pl-lit { fill: url(#pl-warm); }
.pl-mull { fill: none; stroke: #0a1626; stroke-width: 1.8; }
.pl-rail { fill: none; stroke: #b8c4cf; stroke-opacity: .55; stroke-width: 1; }
.pl-conc { fill: #d2c9b7; }
#pl-st path { fill: #13283d; fill-opacity: .4; }
.pl-tie { fill: #13283d; fill-opacity: .36; }
.pl-sh { fill: #13283d; fill-opacity: .26; }
.pl-post { fill: none; stroke: #2a3a4d; stroke-width: 3; }
.pl-slat { fill: none; stroke: #2a3a4d; stroke-width: 1.4; }
.pl-shrub { fill: #13283d; stroke: #ece4d2; stroke-opacity: .4; stroke-width: .7; }
.pl-ink { fill: none; stroke: #0f2238; stroke-opacity: .7; stroke-width: 1; }
.pl-hedge { fill: #13283d; stroke: #ece4d2; stroke-opacity: .32; stroke-width: .8; }
.pl-dim { fill: none; stroke: var(--c-gold); stroke-opacity: .7; stroke-width: .9; }
.pl-gap { fill: #0a1729; }
.pl-dim-t { fill: var(--c-gold); font: 600 9.5px var(--font-body); letter-spacing: .16em; text-anchor: middle; }
.pl-ground { fill: none; stroke: var(--c-gold); stroke-width: 1.2; filter: drop-shadow(0 0 6px rgb(208 173 103 / .6)); }
.pl-far { transform: translate(calc(var(--mx, 0) * 5px), calc(var(--my, 0) * 3px)); }
.pl-mid { transform: translate(calc(var(--mx, 0) * -4px), calc(var(--my, 0) * -2px)); }
.pl-near { transform: translate(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -5px)); }

/* the three steps under the drawing, lit in turn as the story plays */
.pl__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, calc(64svh * 1000 / 560));
  margin-inline: auto;
  padding-block-start: 22px;
}
.pl__steps::before,
.pl__steps::after {                           /* the rail, and the gold progress along it */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgb(248 245 239 / .16);
}
.pl__steps::after { background: linear-gradient(90deg, var(--c-gold), #f3dfae); box-shadow: 0 0 10px rgb(208 173 103 / .6); transform-origin: left center; }
.pl__step { position: relative; display: grid; gap: 4px; padding-inline-end: 12px; color: var(--c-ivory); }
.pl__step::before { content: ""; position: absolute; top: -26px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 0 4px rgb(208 173 103 / .2); }
.pl__step b { font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .16em; color: var(--c-gold); }
.pl__step span { font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 22px); font-weight: var(--fw-medium); line-height: 1.1; }

/* --- arrival: the words; then the land, the design, the building --------------------------- */
.js:not(.page-in) .lh [data-in] { opacity: 0; }
.page-in .lh [data-in] { animation: phero-rise 1.1s var(--ease-css) both; }
.page-in .lh [data-in="2"] { animation-delay: .12s; }
.page-in .lh [data-in="3"] { animation-delay: .24s; }
.page-in .lh [data-in="4"] { animation-delay: .4s; }
.page-in .lh [data-in="5"] { animation-delay: .54s; }
.js:not(.page-in) .lh__rule { transform: scaleX(0); }
.page-in .lh__rule { animation: phero-line 1.4s cubic-bezier(.65, 0, .35, 1) .34s both; }

.pl [pathLength] { stroke-dasharray: 1 1; }
.js:not(.page-in) .pl [pathLength] { stroke-dashoffset: 1; }
.js:not(.page-in) :is(.pl-star, .pl-dawn, .pl-act1, .pl-storey, .pl-solid, .pl-lit, .pl-hedge, .pl-anno, .pl__step) { opacity: 0; }
.js:not(.page-in) .pl__steps::after { transform: scaleX(0); }
/* act 1, the land */
.page-in .pl-star { animation: pl-fade 1.4s ease-out both, pl-twinkle 4s ease-in-out calc(1.6s + var(--s)) infinite; }
.page-in .pl-dawn { animation: pl-fade 2.4s ease-out .2s both; }
.page-in .pl-ground { animation: pl-draw 1.1s cubic-bezier(.65, 0, .35, 1) .2s both; }
.page-in .pl-act1 { animation: pl-fade .8s ease-out .6s both; }
.page-in .pl-peg { animation: pl-plant .7s cubic-bezier(.34, 1.56, .64, 1) .7s both; }
.page-in .pl-peg + .pl-peg { animation-delay: .85s; }
.page-in .pl-flag { animation: pl-wave 2.6s ease-in-out 2s infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
/* act 2, the design */
.page-in .pl-cons { animation: pl-draw 1.5s cubic-bezier(.6, 0, .3, 1) 1.7s both; }
.page-in .pl-storey { animation: pl-fade .9s ease-out 2.3s both; }
/* act 3, the building, floor by floor */
.page-in .pl-solid { animation: pl-rise 2.4s cubic-bezier(.45, 0, .25, 1) 3.2s both; }
.page-in .pl-lit { animation: pl-fade .7s ease-out calc(5.4s + var(--w)) both; }
.page-in .pl .el-tree--back .el-tl { animation: pl-draw .5s ease-out calc(4.6s + var(--l) * .2s) both; }
.page-in .pl .el-tree--front .el-tl { animation: pl-draw .5s ease-out calc(4.9s + var(--l) * .2s) both; }
.page-in .pl-hedge { animation: pl-fade 1s ease-out 5s both; }
.page-in .pl-anno { animation: pl-fade 1.1s ease-out 5.6s both; }
.page-in .pl .el-tree--front { animation: pl-sway 7s ease-in-out 7s infinite alternate; }
.page-in .pl .el-tree--back { animation: pl-sway-s 9s ease-in-out 7.4s infinite alternate; }
/* the steps follow the acts */
.page-in .pl__steps::after { animation: pl-progress 5.8s cubic-bezier(.45, 0, .25, 1) .4s both; }
.page-in .pl__step { animation: phero-rise .8s var(--ease-css) both; }
.page-in .pl__step:nth-child(1) { animation-delay: .6s; }
.page-in .pl__step:nth-child(2) { animation-delay: 1.8s; }
.page-in .pl__step:nth-child(3) { animation-delay: 3.4s; }
@keyframes pl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-plant { from { transform: translateY(-26px); opacity: 0; } }
@keyframes pl-wave { from { transform: skewY(0deg) scaleX(1); } to { transform: skewY(6deg) scaleX(.86); } }
@keyframes pl-rise { from { clip-path: inset(100% -30px 0 -30px); } to { clip-path: inset(-50px -30px 0 -30px); } }
@keyframes pl-progress { 0% { transform: scaleX(0); } 22% { transform: scaleX(.17); } 50% { transform: scaleX(.5); } 100% { transform: scaleX(1); } }
@keyframes pl-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pl-sway { from { transform: rotate(-.7deg); } to { transform: rotate(.7deg); } }
@keyframes pl-sway-s { from { transform: rotate(.5deg); } to { transform: rotate(-.5deg); } }

/* --- §L2  The message ---------------------------------------------------------------------- */
.lm { position: relative; background: var(--c-ivory); color: var(--c-ink); }
.lm__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: var(--sp-xl) clamp(40px, 6vw, 112px);
  align-items: start;
  padding-block: var(--section-gap) var(--sp-lg);
}
.lm > .container:last-child { padding-block-end: var(--section-gap); }
.lm__head { display: grid; gap: var(--sp-sm); position: sticky; top: calc(clamp(70px, 5.833vw, 112px) + 40px); }
.lm__head .sec-h { max-width: 11ch; }
.lm__note { max-width: 32ch; font-size: var(--fs-small); line-height: 1.65; color: var(--c-slate); }

/* the letter */
.lm__letter {
  position: relative;
  padding: clamp(28px, 3.4vw, 56px);
  border: 1px solid rgb(23 62 98 / .1);
  border-radius: 26px;
  background:
    linear-gradient(rgb(127 95 40 / .045) 1px, transparent 1px) 0 0 / 100% 34px,
    #fbf8f1;
  box-shadow: 0 2px 6px rgb(var(--scrim) / .06), 0 50px 90px -50px rgb(var(--scrim) / .45);
}
.lm__letter::before {                        /* the gold seam */
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}
.lm__q { display: block; height: 52px; margin-block-end: 6px; font-family: var(--font-display); font-size: 120px; line-height: .9; color: var(--c-gold); }
.lm__lead { font-family: var(--font-display); font-size: clamp(24px, 2.1vw, 34px); font-weight: var(--fw-medium); line-height: 1.3; letter-spacing: -.005em; color: var(--c-navy); }
.lm__lead em { font-style: italic; color: var(--c-gold-ink); }
.lm__p { margin-block-start: var(--sp-sm); font-size: var(--fs-text); line-height: 1.8; color: var(--c-slate); }
.lm__sign { display: flex; align-items: center; gap: 16px; margin-block-start: var(--sp-md); }
.lm__sign::before { content: ""; width: 48px; height: 1px; background: var(--c-gold-ink); }
.lm__sign span { display: grid; gap: 3px; }
.lm__sign b { font-family: var(--font-display); font-size: 22px; font-style: italic; font-weight: var(--fw-medium); color: var(--c-navy); }
.lm__sign small { font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }
.lm__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-block-start: var(--sp-md);
  padding-block-start: var(--sp-sm);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-text);
  color: var(--c-slate);
}
.lm__cta a:not(.btn-navy) { font-weight: var(--fw-semi); color: var(--c-navy); text-decoration: underline; text-decoration-color: rgb(127 95 40 / .5); text-underline-offset: 4px; }
.lm__cta a:not(.btn-navy):hover { color: var(--c-gold-ink); }

/* the record, on a gold datum */
.lm__figs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block-start: 26px; }
.lm__figs::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--c-gold-ink), rgb(127 95 40 / .2)); }
.lm__fig { position: relative; display: grid; gap: 8px; padding-inline-end: 16px; }
.lm__fig::before { content: ""; position: absolute; top: -33px; left: 0; width: 1px; height: 14px; background: var(--c-gold-ink); }
.lm__fig dt { font-family: var(--font-display); font-size: clamp(44px, 4.4vw, 72px); font-weight: var(--fw-medium); line-height: .9; font-variant-numeric: lining-nums tabular-nums; color: var(--c-navy); }
.lm__fig sup { font-size: .45em; color: var(--c-gold-ink); vertical-align: .9em; }
.lm__fig dd { font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }

/* --- §L3  The form: extras on top of css/contact.css ------------------------------------------ */
#land-form { scroll-margin-top: 60px; }
.cf__unit { position: relative; display: block; }
.cf__unit .cf__input { padding-inline-end: 72px; }
.cf__unit-k {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  padding-inline: 14px;
  border-radius: 10px;
  background: rgb(23 62 98 / .06);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-navy);
  pointer-events: none;
}
.cf__input[type="number"] { -moz-appearance: textfield; }
.cf__input[type="number"]::-webkit-inner-spin-button,
.cf__input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* --- narrow ------------------------------------------------------------------------------------ */
@media (max-width: 959px) {
  .lh { min-height: 0; }
  .lh__in { grid-template-columns: minmax(0, 1fr); padding-block: 120px 40px; gap: clamp(28px, 6vw, 48px); }
  .lh__copy { padding-inline-start: 0; }
  .pl { width: 100vw; margin-inline: calc(50% - 50vw); }
  .pl__steps { width: 100%; }
  .lm__grid { grid-template-columns: minmax(0, 1fr); }
  .lm__head { position: static; }
  .lm__head .sec-h { max-width: 16ch; }
}

@media (max-width: 639px) {
  .lh__in { padding-block: 104px 28px; }
  .lh__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .lh__actions > a { justify-content: space-between; }
  .pl-dim-t { display: none; }
  .pl__step span { font-size: 15px; }
  .lm__letter { padding: 26px 20px; border-radius: 22px; }
  .lm__q { font-size: 90px; height: 40px; }
  .lm__figs { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding-block-start: 0; }
  .lm__figs::before { display: none; }
  .lm__fig { padding-block-start: 16px; border-top: 1px solid rgb(127 95 40 / .35); }
  .lm__fig::before { top: -8px; }
}

/* --- motion reduced -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .page-in .lh [data-in],
  .page-in .lh__rule,
  .page-in .pl *,
  .page-in .pl__steps::after,
  .page-in .pl__step { animation: none !important; }
  .js:not(.page-in) .lh [data-in],
  .js:not(.page-in) :is(.pl-star, .pl-dawn, .pl-act1, .pl-storey, .pl-solid, .pl-lit, .pl-hedge, .pl-anno, .pl__step) { opacity: 1; }
  .js:not(.page-in) .pl [pathLength] { stroke-dashoffset: 0; }
  .js:not(.page-in) .lh__rule,
  .js:not(.page-in) .pl__steps::after { transform: none; }
  .pl g { transition: none; }
}
