/* Ilsenby — hero: building section drawing with photo and film fragments that move at three speeds as you scroll (styles). */
.il-hero,
.il-hero-next {
  --il-hero-pad: clamp(20px, 3.3vw, 56px);
  --il-hero-frag-shadow: 0 1px 0 var(--line);
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
}

.il-hero {
  position: relative;
  overflow: clip;
}

.il-hero__stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto auto auto;
  column-gap: var(--space-5);
  padding: calc(var(--space-8) + var(--space-2)) var(--il-hero-pad) var(--space-8);
  box-sizing: border-box;
}

.il-hero__kicker {
  grid-column: 1 / 6;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-mono);
  color: var(--ink-2);
}

.il-hero__title {
  grid-column: 1 / 7;
  grid-row: 3;
  align-self: end;
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  position: relative;
  z-index: 2;
}

.il-hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.il-hero__line > span {
  display: inline-block;
  will-change: transform;
}

.il-hero__lead {
  grid-column: 1 / 6;
  grid-row: 4;
  margin: 0 0 var(--space-5);
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink-2);
  position: relative;
  z-index: 2;
}

.il-hero__cta {
  grid-column: 1 / 5;
  grid-row: 5;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-s);
  background: var(--button-bg);
  color: var(--button-ink);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  text-decoration: none;
  outline: none;
  transition: background-color var(--t-light) var(--ease-secondary);
  position: relative;
  z-index: 2;
}

.il-hero__cta::after {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: transform var(--t-light) var(--ease-secondary);
  transform-origin: left center;
}

.il-hero__cta:hover::after,
.il-hero__cta:focus-visible::after { transform: scaleX(1.6); }

.il-hero__cta:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--focus); }

.il-hero__plan {
  grid-column: 7 / 11;
  grid-row: 1 / 6;
  align-self: center;
  margin: 0;
  position: relative;
  z-index: 1;
  will-change: transform;
}

.il-hero__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.il-hero__lines line,
.il-hero__lines polyline,
.il-hero__lines path {
  stroke: var(--ink);
  stroke-width: var(--floor-line);
  vector-effect: non-scaling-stroke;
}

.il-hero__lines .il-hero__split { stroke: var(--line-2); stroke-dasharray: 4 4; }
.il-hero--drawing .il-hero__lines .il-hero__split { stroke-dasharray: 1; }

.il-hero__cell { stroke: none; }
.il-hero__cell--stone { fill: var(--zone-stone-tint); }
.il-hero__cell--oak { fill: var(--zone-oak-tint); }
.il-hero__cell--tile { fill: var(--zone-tile-tint); }
.il-hero__cell--ground { fill: var(--bg-2); }

.il-hero__floors text {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--ink-2);
}

.il-hero__tag rect {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.il-hero__tag text {
  font-family: var(--font-mono);
  font-size: 13px;
  text-anchor: middle;
  fill: var(--ink);
}

.il-hero__tag.is-lit rect { fill: var(--ink); }
.il-hero__tag.is-lit text { fill: var(--bg); }

.il-hero__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.il-hero__key { display: inline-flex; align-items: center; gap: var(--space-2); }
.il-hero__key::before { content: ""; width: 10px; height: 10px; border-radius: var(--radius-s); }
.il-hero__key--stone::before { background: var(--zone-stone); }
.il-hero__key--oak::before { background: var(--zone-oak); }
.il-hero__key--tile::before { background: var(--zone-tile); }

.il-hero__frag {
  position: absolute;
  margin: 0;
  z-index: 2;
  will-change: transform;
}

.il-hero__frag figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-mono);
  color: var(--ink-3);
}

.il-hero__frag--a { left: var(--il-hero-pad); top: 19%; width: clamp(104px, 8.5vw, 140px); }
.il-hero__frag--b { left: 25%; top: 26%; width: clamp(84px, 6.5vw, 110px); }
.il-hero__frag--c { right: var(--il-hero-pad); top: 8%; width: clamp(110px, 9.5vw, 160px); }
.il-hero__frag--film { right: calc(var(--il-hero-pad) + 4vw); bottom: 7%; width: clamp(150px, 15vw, 250px); }

.il-hero__img,
.il-hero__film {
  width: 100%;
  border-radius: var(--radius-0);
  background-color: var(--bg-2);
}

.il-hero__img--landing {
  aspect-ratio: 3 / 4;
  background-image:
    linear-gradient(180deg, transparent 0 58%, rgba(21, 23, 26, 0.18) 58% 60%, transparent 60%),
    repeating-linear-gradient(180deg, var(--il-plate-01) 0 14px, var(--il-plate-02) 14px 16px),
    linear-gradient(135deg, var(--il-plate-03), var(--il-plate-04));
  background-blend-mode: multiply, normal, normal;
}

.il-hero__img--plate {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background-image: radial-gradient(circle at 50% 50%, var(--il-plate-05) 0 34%, var(--il-plate-06) 35% 37%, var(--il-plate-07) 38%);
}

.il-hero__img--plate span {
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
  font-size: clamp(18px, 1.6vw, 26px);
  color: var(--ink);
}

.il-hero__img--window {
  aspect-ratio: 4 / 5;
  background-image:
    linear-gradient(90deg, transparent 0 47%, var(--il-plate-08) 47% 53%, transparent 53%),
    linear-gradient(180deg, transparent 0 47%, var(--il-plate-08) 47% 53%, transparent 53%),
    linear-gradient(160deg, var(--il-plate-09), var(--il-plate-10) 70%, var(--il-plate-11));
  box-shadow: inset 0 0 0 10px #3f6e6a;
}

.il-hero__film {
  aspect-ratio: 9 / 13;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, var(--il-plate-12), var(--il-plate-13) 60%, var(--il-plate-14));
}

.il-hero__film::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: linear-gradient(170deg, transparent 35%, var(--il-plate-15) 48%, transparent 62%);
  animation: il-hero-light 9s linear infinite;
  will-change: transform;
}

.il-hero__film::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(21, 23, 26, 0.16) 22px 23px);
}

@keyframes il-hero-light {
  from { transform: translateY(-40%); }
  to { transform: translateY(40%); }
}

.il-hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-mono);
  color: var(--ink-2);
  text-decoration: none;
  outline: none;
}

.il-hero__cue-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--ink) 0 0) top / 1px 40% no-repeat, var(--line-2);
  animation: il-hero-cue 2.4s var(--ease-primary) infinite;
}

@keyframes il-hero-cue {
  0% { background-position: 0 -40%; }
  100% { background-position: 0 140%; }
}

.il-hero__cue:focus-visible span:first-child { box-shadow: 0 1px 0 var(--focus); }

.il-hero-next {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-5);
  padding: 0 var(--il-hero-pad) var(--space-9);
}

.il-hero-next__img {
  grid-column: 1 / 8;
  aspect-ratio: 4 / 3;
  background-image:
    repeating-linear-gradient(115deg, rgba(21, 23, 26, 0.12) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, var(--il-plate-16), var(--il-plate-17));
  will-change: transform;
}

.il-hero-next__copy {
  grid-column: 9 / 13;
  align-self: end;
  position: relative;
}

.il-hero-next__label {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.il-hero-next__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
}

.il-hero-next__copy p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-2); }

.il-hero-next__frags { display: flex; gap: var(--space-4); margin-top: var(--space-6); }
.il-hero-next__frag {
  width: 45%;
  aspect-ratio: 3 / 4;
  background-image: repeating-linear-gradient(45deg, var(--zone-tile-tint) 0 10px, var(--il-plate-18) 10px 20px);
  will-change: transform;
}
.il-hero-next__frag--b { margin-top: var(--space-7); background-image: linear-gradient(90deg, var(--il-plate-19), var(--il-plate-20)); }

.il-js .il-hero:not(.is-on):not(.is-static) [data-il-hero-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.il-js .il-hero:not(.is-on):not(.is-static) [data-il-hero-cell],
.il-js .il-hero:not(.is-on):not(.is-static) [data-il-hero-tag],
.il-js .il-hero:not(.is-on):not(.is-static) [data-il-hero-in],
.il-js .il-hero:not(.is-on):not(.is-static) [data-il-hero-frag] { opacity: 0; }
.il-js .il-hero:not(.is-on):not(.is-static) [data-il-hero-line] { transform: translateY(110%); }

.il-hero--static [data-il-speed],
.il-hero--static [data-il-hero-line] { transform: none !important; }

@media (max-width: 1023px) {
  .il-hero__plan { grid-column: 7 / 13; }
  .il-hero__frag--film { right: var(--il-hero-pad); width: clamp(130px, 16vw, 180px); }
}

@media (max-width: 759px) {
  .il-hero__stage {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: calc(var(--space-8) - var(--space-3));
    padding-bottom: var(--space-7);
  }
  .il-hero__title { order: 2; align-self: stretch; margin-top: var(--space-4); }
  .il-hero__lead { order: 3; }
  .il-hero__cta { order: 4; }
  .il-hero__plan { order: 5; margin-top: var(--space-6); }
  .il-hero__frag { position: relative; inset: auto; order: 6; }
  .il-hero__frag--a { width: 46%; margin-top: var(--space-5); }
  .il-hero__frag--b { width: 34%; align-self: flex-end; margin-top: calc(-1 * var(--space-8)); }
  .il-hero__frag--c { display: none; }
  .il-hero__frag--film { width: 58%; align-self: center; margin-top: var(--space-5); }
  .il-hero__cue { display: none; }
  .il-hero-next { display: block; }
  .il-hero-next__copy { margin-top: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  .il-hero__film::before,
  .il-hero__cue-arrow { animation: none; }
}

@media (min-width: 768px) and (max-width: 1599px) {
  .il-hero__floors text { font-size: 24px; }
  .il-hero__tag rect { x: -20px; y: -5px; width: 100px; height: 44px; }
  .il-hero__tag text { font-size: 24px; dominant-baseline: central; }
}
@media (min-width: 1600px) {
  .il-hero__tag text { font-size: 15px; }
}

@media (max-width: 767px) {
  .il-hero__floors text { font-size: 22px; }
  .il-hero__tag rect { x: -20px; y: -5px; width: 100px; height: 44px; }
  .il-hero__tag text { font-size: 22px; dominant-baseline: central; }
}
@media (max-width: 389px) {
  .il-hero__floors text, .il-hero__tag text { font-size: 23px; }
}
