/* The V1 journey with a centred cue between each change of scale. */
body { isolation: isolate; }
#landing { isolation: auto; }
#landing::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  height: auto;
  background:
    linear-gradient(180deg, #14283d38, #101e2e56 42%, #10181bc9),
    radial-gradient(ellipse 78% 69% at 44% 28%, #6397b53b, transparent 86%),
    url("assets/earth-to-home.webp") center var(--landscape-y, 18%) / auto max(168svh, 177.69vw) no-repeat;
  background-color: #1b3143;
  background-blend-mode: normal, normal, screen;
  mask-image: none;
}

@media (prefers-reduced-motion: reduce) {
  #landing::before {
    position: absolute;
    inset: calc(-1 * var(--utility-height)) 0 0;
    background-size: 100% 100%;
    background-position: center;
  }
}

.v2-top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.v1-preview {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.v1-preview:hover { color: var(--ink); border-color: var(--sano-ink); }
.v1-preview svg { width: 13px; height: 13px; color: var(--sano-ink); }

.band.story-beat { border-top: 0; }
.story-beat > .wrap:first-child { padding-top: clamp(16px, 2.35vw, 32px); }
.story-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 9px;
  text-align: center;
}
.story-bridge::before {
  content: "";
  width: 1px;
  height: clamp(21px, 3.2vw, 42px);
  margin-bottom: 8px;
  background: linear-gradient(transparent, #78c6ee8c);
}
.story-bridge .eyebrow { justify-content: center; }
.story-bridge .sec-title {
  max-width: 28ch;
  margin-inline: auto;
  text-wrap: balance;
}
.story-bridge .sec-note {
  max-width: 54ch;
  margin-inline: auto;
  color: var(--ink-2);
  text-wrap: pretty;
}
.story-bridge .view-switch { margin-top: 8px; }
#work .work-guide { width: min(100%, 860px); max-width: none; }
#work .work-guide .rail-ctl {
  justify-content: center;
  gap: 6px 18px;
  margin-top: 10px;
}
#work .work-guide .view-switch { margin: 0; }

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #121d28a8;
}
.view-switch button {
  min-height: 34px;
  padding: 3px clamp(8px, 1.2vw, 14px);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 600 13px/1.2 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.view-switch button:hover { color: var(--ink); }
.view-switch button[aria-pressed="true"] {
  border-color: #78c6ee4d;
  background: #274458;
  color: #e4f4fb;
}

/* Each card has its own image and independent technical drawing. */
#work .card-art {
  isolation: isolate;
  overflow: hidden;
  background: #151f2a;
}
#work .card-art .dwg {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: width .28s ease, opacity .28s ease;
}
.card-context {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: width .28s ease, opacity .28s ease;
}
.card-context-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid #dce8f133;
  border-radius: 5px;
  background: #0e1722e8;
  color: #edf3f7;
  font: 500 10px/1.35 var(--font-body);
}
.card-art[data-focus="coremods"] .card-context { object-position: 55% 56%; }
.card-art[data-focus="fin"] .card-context { object-position: 53% 66%; }
#work[data-art-view="layered"] .card-context {
  width: 72%;
  opacity: .92;
  mask-image: linear-gradient(90deg, transparent, #000b 27%, #000 57%);
}
#work[data-art-view="layered"] .card-art .dwg {
  width: 65%;
  mask-image: linear-gradient(90deg, #000 64%, #000d 82%, transparent);
}
#work[data-art-view="drawings"] .card-context,
#work[data-art-view="drawings"] .card-context-label,
#work[data-art-view="images"] .card-art .dwg {
  visibility: hidden;
  opacity: 0;
}
#work[data-art-view="images"] .card-context { width: 100%; }

.join-photo {
  aspect-ratio: 4 / 3;
  background: #121d27;
  border-radius: 0;
}
.join-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.join-street p {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 13px;
}
#delivery {
  --project-accent: #8be2f3;
  background: radial-gradient(ellipse at 28% 63%, #364e402b, transparent 75%);
}
#delivery > .delivery-bridge { padding-bottom: clamp(21px, 3vw, 36px); }
.delivery-bridge .dl-mark { margin: 0 0 7px; }
.delivery-bridge .sec-note { max-width: 66ch; color: #e1ebf2; }
#delivery > .homes-project {
  padding-top: 0;
  padding-bottom: clamp(10px, 1.35vw, 18px);
}
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 1.6vw, 22px);
}
.project-map,
.project-panel,
.project-cutaway {
  border: 1px solid #b1c3cc35;
  border-radius: 22px;
  background: #12202bd9;
}
.project-map { overflow: hidden; }
.project-focus,
.project-map-details { padding: clamp(16px, 1.7vw, 24px); }
.project-focus p:last-child,
.project-partner p,
.cutaway-intro p:last-child {
  margin: 8px 0 0;
  max-width: 49ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}
.project-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 3px 14px;
  color: var(--ink-2);
  font-size: 12px;
}
.project-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font: 500 10px/1.25 var(--font-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project-mode i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--project-accent);
  box-shadow: 0 0 11px #8be2f365;
}
.project-plan {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1064 / 642;
  background: #172a31;
}
/* Frame only the map region of the supplied reference image. */
.project-plan > img {
  position: absolute;
  top: -33.18%;
  left: -1.88%;
  width: 149.06%;
  max-width: none;
  height: auto;
}
.project-plot-outlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.project-plot-outlines path {
  fill: #8be2f32b;
  stroke: var(--project-accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity .2s ease;
}
.project-map[data-selected-site="a"] [data-plot="a"],
.project-map[data-selected-site="b"] [data-plot="b"],
.project-map[data-selected-site="c"] [data-plot="c"] { opacity: 1; }
.project-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  width: 44px;
  height: 44px;
  padding: 0;
  isolation: isolate;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--project-accent);
  cursor: pointer;
  font: 600 16px/1 var(--font-body);
}
.project-pin::before {
  position: absolute;
  content: "";
  z-index: -1;
  inset: 4px;
  border: 2px solid var(--project-accent);
  border-radius: 50%;
  background: #122831;
}
.project-pin:hover::before { box-shadow: 0 0 0 5px #8be2f33b; }
.project-pin[aria-pressed="true"] { color: #13262c; }
.project-pin[aria-pressed="true"]::before { background: var(--project-accent); }
.project-all {
  min-height: 44px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: var(--project-accent);
  cursor: pointer;
}
.project-all[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.project-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  padding: clamp(14px, 1.6vw, 23px);
  background: linear-gradient(155deg, #223543ed, #13212bea);
}
.project-focus h3,
.project-panel h3,
.cutaway-intro h3 {
  margin: 7px 0 0;
  font: 400 clamp(27px, 2.8vw, 37px)/1.08 var(--font-display);
  letter-spacing: -.034em;
}
.project-status { --project-accent: #c6dda9; color: #c6dda9; }
.project-map-details { border-top: 1px solid var(--rule); padding-block: 14px 10px; }
.project-reading .eyebrow {
  --accent: var(--project-accent);
  margin: 0 0 5px;
  color: var(--ink-2);
  font-size: 10.5px;
}
.project-reading h4 {
  margin: 0;
  font: 400 clamp(20px, 2vw, 25px)/1.15 var(--font-display);
  letter-spacing: -.023em;
}
.project-reading p:last-child {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}
.project-document { margin: 0; min-width: 0; }
.project-document .fig-btn {
  aspect-ratio: 1.85;
  border-radius: 10px;
  background: #fff;
}
.project-boundary .fig-btn { aspect-ratio: 1.7; }
.project-document img { width: 100%; height: 100%; object-fit: contain; }
.project-document figcaption { margin-top: 5px; color: var(--ink-2); font-size: 12.5px; }
.project-studies { display: grid; gap: 7px; }
.project-study-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.project-partner { display: grid; justify-items: start; gap: 12px; }
.project-partner p { margin: 0; }
.project-partner .btn { background: var(--homes-ink); border-color: var(--homes-ink); }
.project-compare summary {
  min-height: 44px;
  padding-block: 10px;
  color: var(--project-accent);
  font-weight: 600;
  cursor: pointer;
}
.project-compare summary { text-underline-offset: 5px; }
.project-compare summary:hover { text-decoration: underline; }
.project-compare summary span { margin-left: 5px; }
.project-compare[open] summary span { display: none; }
.project-compare dl { display: grid; gap: 9px; margin: 2px 0 0; }
.project-compare dl > div {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #14202a99;
  font-size: 14px;
  line-height: 1.4;
}
.project-compare dt { font-weight: 600; }
.project-compare dd { margin: 3px 0 0; color: var(--ink-2); }
.project-ask {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(13px, 1.8vw, 22px);
  padding: 7px 8px 7px 17px;
  border: 1px solid #b1c3cc57;
  border-radius: 20px;
  background: #283a46e8;
}
.project-ask:focus-within { border-color: var(--project-accent); }
.project-ask input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: clamp(16px, 1.6vw, 20px);
}
.project-ask input::placeholder { color: var(--ink-2); }
.project-ask button {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--project-accent);
  color: #122630;
  cursor: pointer;
}
.project-ask button:hover { background: #c1f1fa; }
.project-cutaway {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "drawing intro" "drawing controls";
  align-items: start;
  gap: 12px clamp(18px, 3vw, 36px);
  max-width: 940px;
  margin: clamp(16px, 2.5vw, 28px) auto 0;
  padding: clamp(13px, 2vw, 24px);
}
.cutaway-intro { grid-area: intro; align-self: end; }
.cutaway-intro .eyebrow { margin: 0; }
.project-cutaway > .sheet { grid-area: drawing; align-self: center; }
.project-cutaway > .dl-controls { grid-area: controls; }
.project-cutaway .link {
  gap: 5px;
  min-height: 44px;
  margin-top: 3px;
  color: var(--homes-ink);
}
.project-cutaway .link .ico { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-panel { padding: clamp(14px, 4vw, 22px); }
  .project-cutaway {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "drawing" "controls";
  }
  .project-pin::before { inset: 6px; }
}

#mission .mission-in {
  grid-template-columns: minmax(0, 1fr);
  gap: 17px;
  padding-top: clamp(8px, 1vw, 14px);
}
#mission .story-bridge { gap: 7px; }
#mission .story-bridge::before { height: clamp(16px, 1.95vw, 26px); margin-bottom: 4px; }
#mission .mission-body > .mission-lede {
  margin-inline: auto;
  max-width: 40ch;
  text-align: center;
  text-wrap: balance;
}
#mission .pillars { max-width: 880px; margin-inline: auto; }
#portfolio .pf-field { margin-inline: auto; }
#portfolio .pf-legend { justify-content: center; }

@media (max-width: 520px) {
  #mission .mission-title span { display: block; }
  #work .work-guide .rail-ctl { gap: 5px 10px; }
  #work .work-guide .view-switch { flex: 0 0 auto; }
  .story-bridge .sec-title { text-wrap: pretty; }
  .story-bridge .sec-note { padding-inline: 3px; }
}
