/* Overlast · inner pages (vision, research, 404). Loaded after styles.css.
   One render mirrored across a centre axis, with dashed guides, "+" marks and small mono labels. */

.page .nav { --nav-logo: 1; }

.mono {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey-1);
}

/* ---------- frame ---------- */

.axis {
  --top: max(15%, 104px);     /* y of the top guide */
  --bottom: 88%;              /* y of the bottom guide */
  --side: 22%;                /* x of the left double guide (the right one mirrors it) */
  --dash: rgba(255, 255, 255, .3);

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: max(100svh, 680px);
  padding: 150px var(--gutter) 140px;
  overflow: hidden;
  isolation: isolate;
}

/* The render fills each half; the right half is the same image flipped, so the frame is symmetrical.
   Each page sets --art, --art-size and --art-x (where the subject's inner edge lands). */
.axis__art {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.axis__half {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: var(--art) var(--art-x) var(--art-y, 46%) / var(--art-size) no-repeat;
  filter: brightness(var(--art-lift, 1.5)) contrast(1.05);
}
.axis__half--r { left: auto; right: 0; transform: scaleX(-1); }

/* Soft shadows behind the four corner labels, so they stay readable over a lit edge. */
.axis__art::before {
  --lab-top: calc(var(--top) + 30px);
  --lab-bottom: calc(var(--bottom) - 30px);
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 300px 130px at 110px var(--lab-top), rgba(0, 0, 0, .85), transparent),
    radial-gradient(ellipse 300px 130px at calc(100% - 110px) var(--lab-top), rgba(0, 0, 0, .85), transparent),
    radial-gradient(ellipse 300px 130px at 110px var(--lab-bottom), rgba(0, 0, 0, .85), transparent),
    radial-gradient(ellipse 300px 130px at calc(100% - 110px) var(--lab-bottom), rgba(0, 0, 0, .85), transparent);
}

/* Fine grain over everything, like the reference prints. */
.axis::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain-light);
  opacity: .14;
  pointer-events: none;
}

/* ---------- guides ---------- */

.axis__guides { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.axis__guides > * { position: absolute; }

.g-v { top: 0; bottom: 0; width: 1px; background: repeating-linear-gradient(180deg, var(--dash) 0 4px, transparent 4px 9px); }
.g-h { left: 0; right: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--dash) 0 4px, transparent 4px 9px); }

.g-v--l1 { left: var(--side); }
.g-v--l2 { left: calc(var(--side) + 10px); }
.g-v--r1 { right: var(--side); }
.g-v--r2 { right: calc(var(--side) + 10px); }
.g-v--axis-top { left: 50%; bottom: auto; height: calc(var(--top) - 15px); }
.g-v--axis-bottom { left: 50%; top: var(--bottom); }
.g-h--top { top: var(--top); }
.g-h--bottom { top: var(--bottom); }

.g-plus { width: 11px; height: 11px; transform: translate(-50%, -50%); }
.g-plus::before,
.g-plus::after { content: ""; position: absolute; background: rgba(255, 255, 255, .7); }
.g-plus::before { left: 5px; top: 0; width: 1px; height: 11px; }
.g-plus::after { top: 5px; left: 0; width: 11px; height: 1px; }
.g-plus--tl1 { left: var(--side);                 top: var(--top); }
.g-plus--tl2 { left: calc(var(--side) + 10px);    top: var(--top); }
.g-plus--tr1 { left: calc(100% - var(--side));    top: var(--top); }
.g-plus--tr2 { left: calc(100% - var(--side) - 10px); top: var(--top); }
.g-plus--bl1 { left: var(--side);                 top: var(--bottom); }
.g-plus--bl2 { left: calc(var(--side) + 10px);    top: var(--bottom); }
.g-plus--br1 { left: calc(100% - var(--side));    top: var(--bottom); }
.g-plus--br2 { left: calc(100% - var(--side) - 10px); top: var(--bottom); }

.g-ring {
  left: 50%;
  top: var(--top);
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%);
}
.g-ring::before,
.g-ring::after { content: ""; position: absolute; background: rgba(255, 255, 255, .7); }
.g-ring::before { left: 14px; top: 9px; width: 1px; height: 11px; }
.g-ring::after { top: 14px; left: 9px; width: 11px; height: 1px; }

.g-pill {
  left: 50%;
  top: var(--bottom);
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: #000;
  color: var(--white);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

/* ---------- corner labels ---------- */

.axis__label {
  position: absolute;
  z-index: 1;
  margin: 0;
  /* Keeps the small labels legible where they cross a lit edge of the render. */
  text-shadow: 0 0 10px #000, 0 0 3px #000;
}
.axis__label--tl { left: var(--gutter); top: calc(var(--top) + 14px); }
.axis__label--tr { right: var(--gutter); top: calc(var(--top) + 14px); text-align: right; }
.axis__label--bl { left: var(--gutter); bottom: calc(100% - var(--bottom) + 14px); }
.axis__label--br { right: var(--gutter); bottom: calc(100% - var(--bottom) + 14px); text-align: right; }
.axis__label::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin-top: 10px;
  background: var(--white);
}
.axis__label--tr::after,
.axis__label--br::after { margin-left: auto; }
.axis__label--bl::after,
.axis__label--br::after { display: none; }
a.axis__label { text-decoration: none; transition: color .2s ease; }
a.axis__label:hover { color: var(--white); }

/* ---------- copy ---------- */

.axis__copy {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  text-align: center;
}

.axis__quote { margin: 0; }
.axis__quote p,
.axis__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  text-wrap: balance;
}
.axis__quote b { font-weight: 650; }
.axis__quote footer { margin-top: 18px; }
.axis__title .muted { color: #8e8e93; }

.axis__body {
  margin-top: 28px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #c7c7cc;
  text-wrap: pretty;
}

.axis__copy .status-line { margin-top: 22px !important; }

/* 404 */
.axis__link {
  display: inline-block;
  margin-top: 28px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 14px;
  text-decoration: none;
}

/* ---------- phones and small tablets: art as a band on top, copy below ---------- */

@media (max-width: 900px) {
  .axis {
    --band: 44svh;
    --top: var(--band);
    --bottom: calc(100% - 64px);
    --side: 6px;      /* just outside the labels, which sit at the gutter */
    display: block;
    min-height: 0;
    padding: calc(var(--band) + 48px) var(--gutter) 128px;
  }
  .axis__art { bottom: auto; height: var(--band); }
  .axis__art::before { --lab-top: 92px; --lab-bottom: -200px; }
  /* Fade the band into the black below it. */
  .axis__art::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(transparent, #000);
  }
  .axis__half { background-position: var(--art-x-sm) var(--art-y, 46%); background-size: var(--art-size-sm); }
  .g-v--axis-top { height: calc(var(--band) - 15px); }
  /* Side guides stay inside the band so they never cross the text. */
  .g-v--l1, .g-v--l2, .g-v--r1, .g-v--r2 { bottom: auto; height: var(--band); }
  .g-plus--bl1, .g-plus--bl2, .g-plus--br1, .g-plus--br2 { display: none; }
  .axis__label--tl,
  .axis__label--tr { top: 76px; }
  .axis__label::after { display: none; }
  .axis__copy { margin: 0 auto; }
  .axis__body { font-size: 15px; }
}

/* 404: no render, so a shorter band on phones. */
@media (max-width: 900px) {
  .axis--plain { --band: 26svh; }
}

/* ---------- research: three findings ---------- */

/* Open columns between the same dashed lines as the frame above. */
.facts {
  --dash-line: 1px dashed rgba(255, 255, 255, .3);
  padding: 40px var(--gutter) 72px;
}
.facts__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
/* An h2 for structure, styled like the other small labels (overrides the global h2). */
.facts__head h2.mono {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-stretch: normal;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .04em;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--dash-line);
  border-bottom: var(--dash-line);
}
.fact {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 26px 32px 28px;
}
.fact + .fact { border-left: var(--dash-line); }
.fact__top { display: flex; justify-content: space-between; }
.fact__top a { text-decoration: none; transition: color .2s ease; }
.fact__top a:hover { color: var(--white); }
.fact__num {
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(48px, 5vw, 76px);
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--white);
}
.fact__num .dim { color: var(--grey-2); }
.fact__num small {
  font-size: .42em;
  font-weight: 400;
  letter-spacing: -.02em;
  color: #8e8e93;
}
.fact__text {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #c7c7cc;
  text-wrap: pretty;
}
.fact__src { margin-top: 20px; }

.after {
  padding: 0 var(--gutter) 80px;
  text-align: center;
}
.sources {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  color: var(--grey-2);
}
.sources li + li { margin-top: 8px; }
.sources a { color: var(--grey-1); text-decoration: none; overflow-wrap: anywhere; }
.sources a:hover { color: var(--white); }

@media (max-width: 900px) {
  .facts { padding-top: 24px; }
  .facts__grid { grid-template-columns: 1fr; border-bottom: 0; }
  .fact { min-height: 0; padding: 24px 0 28px; border-bottom: var(--dash-line); }
  .fact + .fact { border-left: 0; }
  .fact__num { padding-top: 28px; font-size: 56px; }
}
