/* The syllabics are carried by the site rather than borrowed from whatever
   the reader's machine happens to have, so the community names set the same
   way everywhere. Google's syllabics subset only — 21kB. */
@font-face {
  font-family: "Noto Sans Canadian Aboriginal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../Fonts/noto-sans-canadian-aboriginal-syllabics.woff2")
    format("woff2");
  unicode-range: U+02C7, U+02D8-02D9, U+02DB, U+0307, U+1400-167F, U+18B0-18F5,
    U+25CC, U+11AB0-11ABF;
}

.landing--v7 .stream__syllabic {
  font-family: "Noto Sans Canadian Aboriginal", "Euphemia UCAS", Gadugi,
    "Segoe UI", sans-serif;
}

/* The flat map only stands in when the 3D map can't be built. */
.landing--v7 .map-stage__fallback {
  opacity: 0;
}

/* A wheel zooms the map here and two fingers zoom it on a phone. Only one of
   the two namings is ever on the page. */
.landing--v7 .map-stage__gesture--touch {
  display: none;
}

.landing--v7 .map-stage.is-error .map-stage__fallback {
  opacity: 0.72;
}

.landing--v7 .identity-copy__practice + .identity-copy__practice {
  margin-top: 0.3rem;
}

/* A signal dot stands in for the comma between place and territory. */
.landing--v7 .identity-copy__location {
  display: flex;
  align-items: center;
}

.identity-copy__pip {
  flex: 0 0 auto;
  width: 0.22rem;
  height: 0.22rem;
  margin: 0 0.4rem;
  border-radius: 50%;
  background: var(--signal);
}

/* Lift the footer rule and the band so the email sits centred in its lane. */
.landing--v7 {
  --band-lane: 6.65rem;
  /* The map is the right half of this box and the type sits on the left.
     Past a large desktop the window would only add empty middle, so the
     composition stops here and the extra screen stays paper. */
  width: min(100%, 1760px);
  margin-inline: auto;
}

.landing--v7::after {
  bottom: var(--band-lane);
}

.landing--v7 .hero {
  padding-bottom: calc(
    clamp(3rem, 6vh, 5.5rem) + var(--band-height) + 1.8rem
  );
}

/* Two ways out to the work, sharing the address's treatment and its lane. */
.landing--v7 .footer {
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.landing--v7 .portal {
  position: relative;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0;
  color: inherit;
  font-size: clamp(0.72rem, 0.8vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

.landing--v7 .portal::after {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.landing--v7 .portal svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.25;
  transition: transform 0.45s var(--ease);
}

.landing--v7 .portal:hover::after {
  transform: scaleX(0.2);
  transform-origin: right;
}

.landing--v7 .portal:hover svg {
  transform: translate(0.18rem, -0.18rem);
}

.landing--v7 .portal:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 0.4rem;
}

/* Only shown on a phone, where it is the one person it concerns reading it. */
.landing--v7 .footer__note {
  display: none;
}

/* The period tips onto its next edge; origin is set to the square's centre. */
.landing--v7 .period {
  rotate: var(--period-turn, 0deg);
  transition:
    transform 0.24s var(--ease),
    rotate 0.62s cubic-bezier(0.34, 1.45, 0.64, 1);
}

/* The headline is display, not a text field — no I-beam over it. */
.landing--v7 .statement {
  position: relative;
  cursor: default;
  font-size: clamp(3.2rem, 9.4vw, 9.8rem);
}

/* Idle drift, added on top of the pointer parallax. Each word keeps its
   own timing so the two lines ease apart and back together. */
@property --float-design-x {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --float-design-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --float-understanding-x {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --float-understanding-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --scale-design {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@property --scale-understanding {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

.landing--v7 .statement__word--design {
  transform: translate3d(
      calc(var(--design-x, 0px) + var(--float-design-x)),
      calc(var(--design-y, 0px) + var(--float-design-y)),
      0
    )
    rotate(var(--design-rotate, 0deg))
    scale(var(--scale-design));
  /* The pointer values are already eased in script, and the float is eased
     by its own keyframes. A transition on this transform restarts on the
     first pointer move and lunges the word off its drift. */
  transition: none;
  animation:
    float-design 12s ease-in-out infinite,
    breathe-design 18s ease-in-out infinite;
}

.landing--v7 .statement__word--understanding {
  transform: translate3d(
      calc(var(--understanding-x, 0px) + var(--float-understanding-x)),
      calc(var(--understanding-y, 0px) + var(--float-understanding-y)),
      0
    )
    rotate(var(--understanding-rotate, 0deg))
    scale(var(--scale-understanding));
  transition: none;
  animation:
    float-understanding 15s ease-in-out infinite,
    breathe-understanding 18s ease-in-out infinite;
}

@keyframes float-design {
  0%,
  100% {
    --float-design-x: -9px;
    --float-design-y: 4px;
  }

  50% {
    --float-design-x: 10px;
    --float-design-y: -5px;
  }
}

/* One shared breath. Design only shrinks from its set size; Understanding
   grows by the same beat. Scale stays after the drift so the drift
   distance itself does not grow and shrink. */
@keyframes breathe-design {
  0%,
  100% {
    --scale-design: 1;
  }

  50% {
    --scale-design: 0.965;
  }
}

@keyframes breathe-understanding {
  0%,
  100% {
    --scale-understanding: 1;
  }

  50% {
    --scale-understanding: 1.04;
  }
}

@keyframes float-understanding {
  0%,
  100% {
    --float-understanding-x: 7px;
    --float-understanding-y: -3px;
  }

  50% {
    --float-understanding-x: -8px;
    --float-understanding-y: 4px;
  }
}

/* A few signal specks cross the words. Quiet on purpose. */
.landing--v7 .statement__drift {
  position: absolute;
  z-index: 1;
  inset: -0.08em -0.35em;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}

.landing--v7 .statement__flake {
  position: absolute;
  top: var(--flake-y);
  left: 0;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0;
  animation: flake var(--flake-time) linear infinite;
  animation-delay: var(--flake-delay);
}

.landing--v7 .statement__flake:nth-child(1) {
  --flake-y: 22%;
  --flake-time: 16s;
  --flake-delay: -2s;
  --flake-drop: 10px;
}

.landing--v7 .statement__flake:nth-child(2) {
  --flake-y: 38%;
  --flake-time: 21s;
  --flake-delay: -9s;
  --flake-drop: -8px;
}

.landing--v7 .statement__flake:nth-child(3) {
  --flake-y: 54%;
  --flake-time: 18s;
  --flake-delay: -5s;
  --flake-drop: 14px;
}

.landing--v7 .statement__flake:nth-child(4) {
  --flake-y: 70%;
  --flake-time: 24s;
  --flake-delay: -14s;
  --flake-drop: -6px;
}

.landing--v7 .statement__flake:nth-child(5) {
  --flake-y: 30%;
  --flake-time: 19s;
  --flake-delay: -17s;
  --flake-drop: 6px;
}

.landing--v7 .statement__flake:nth-child(6) {
  --flake-y: 62%;
  --flake-time: 22s;
  --flake-delay: -7s;
  --flake-drop: -12px;
}

.landing--v7 .statement__flake:nth-child(7) {
  --flake-y: 46%;
  --flake-time: 27s;
  --flake-delay: -20s;
  --flake-drop: 8px;
}

.landing--v7 .statement__flake:nth-child(8) {
  --flake-y: 16%;
  --flake-time: 17s;
  --flake-delay: -11s;
  --flake-drop: -4px;
}

.landing--v7 .statement__flake:nth-child(9) {
  --flake-y: 34%;
  --flake-time: 25s;
  --flake-delay: -3s;
  --flake-drop: 12px;
}

.landing--v7 .statement__flake:nth-child(10) {
  --flake-y: 50%;
  --flake-time: 20s;
  --flake-delay: -13s;
  --flake-drop: -10px;
}

.landing--v7 .statement__flake:nth-child(11) {
  --flake-y: 66%;
  --flake-time: 23s;
  --flake-delay: -6s;
  --flake-drop: 5px;
}

.landing--v7 .statement__flake:nth-child(12) {
  --flake-y: 78%;
  --flake-time: 15s;
  --flake-delay: -18s;
  --flake-drop: -14px;
}

@keyframes flake {
  0% {
    transform: translate3d(-0.6rem, 0, 0);
    opacity: 0;
  }

  14% {
    opacity: 0.55;
  }

  100% {
    transform: translate3d(100cqi, var(--flake-drop, 0px), 0);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .landing--v7 {
    --band-lane: 8.25rem;
    /* Masthead, map, list, headline, links. The headline's row takes the
       slack, so a tall screen opens space above the type rather than a gap
       under the map. */
    grid-template-rows: auto auto auto 1fr auto;
  }

  .landing--v7 .statement {
    font-size: clamp(3.15rem, 17vw, 5.75rem);
  }

  /* The viewport fades its top, which left the hint floating above the
     names. Sit it down in that fade. */
  .landing--v7 .stream__hint {
    position: relative;
    z-index: 2;
    margin-bottom: -1.35rem;
  }

  .landing--v7 .stream__viewport {
    touch-action: none;
  }

  /* A phone has no room to float the map behind the type. Held out of the
     flow it landed under the community list at every height we tried, so
     here it takes a square plate at the head of the stack and the page
     scrolls past it. A short plate leaves the territory too small to read
     the dots and the lines between them, which is the point of the map.
     One mask only: a second layer is ignored on some phones. */
  .landing--v7 .map-stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: min(88vw, 68vh);
    /* Turning the map is a sideways drag, so an upward one can still carry
       the page. Without this the plate would swallow every scroll. */
    touch-action: pan-y;
    mask-image: linear-gradient(180deg, black 0 86%, transparent 100%);
  }

  /* Version 4 drops this hint on a phone. Bring it back, in the words a
     touch screen answers to, held off the plate's right foot: the head of
     the plate is all landmass, which swallowed the grey type, and the last
     stretch of the foot is in the fade. The list's own hint takes the left
     corner below. */
  .landing--v7 .map-stage__instructions {
    top: auto;
    right: var(--pad);
    bottom: 16%;
    left: auto;
    display: flex;
  }

  .landing--v7 .map-stage__gesture--wheel {
    display: none;
  }

  .landing--v7 .map-stage__gesture--touch {
    display: inline;
  }

  /* Three links can't share a line on a phone; the links carry their own
     vertical padding, so the wrap reads as a list without a row gap. */
  .landing--v7 .footer {
    row-gap: 0;
  }

  /* Takes a row of its own below the links, quieter than any of them. */
  .landing--v7 .footer__note {
    display: block;
    flex-basis: 100%;
    margin: 0.5rem 0 0;
    color: rgba(17, 17, 15, 0.5);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* Only enough to clear the band: the slack this gives back goes to the
     map, which is the row that has to absorb it. */
  .landing--v7 .hero {
    padding-bottom: calc(var(--band-height) + 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing--v7 .statement__word--design,
  .landing--v7 .statement__word--understanding,
  .landing--v7 .statement__flake {
    animation: none;
  }
}
