@font-face {
  font-family: "Hero Anton";
  src: url("../../fonts/Anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hero Archivo";
  src: url("../../fonts/Archivo-wdth-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
}

.hero-world {
  --hero-gutter: max(32px, calc((100% - 1116px) / 2));
  --divider: rgb(111 194 176 / 28%);
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  padding: clamp(22px, 2.8vw, 42px) 0 clamp(24px, 3vw, 48px);
  background: var(--bg);
  color: var(--ink);
  font-family: "Hero Archivo", sans-serif;
}

.hero-photos,
.world-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world-frame {
  margin: 0;
  overflow: hidden;
  background: #6fc2b0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 550ms ease, visibility 0s 550ms;
}

.world-frame.on {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.world-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 39%;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}

.world-frame[data-photo="truefoundry"] img {
  object-position: center bottom;
}

.hero-world::after { content: none; }

/* Shade the type on the left and leave the people visible on the right. */
.world-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(13 11 7 / 88%), rgb(13 11 7 / 66%) 35%, transparent 72%),
    linear-gradient(0deg, rgb(13 11 7 / 80%), transparent 66%, rgb(13 11 7 / 32%));
}

.world-frame figcaption {
  position: absolute;
  z-index: 1;
  top: clamp(34px, 3.7vw, 56px);
  right: var(--hero-gutter);
  padding: 4px 9px;
  border-left: 2px solid var(--neon);
  background: rgb(21 18 12 / 90%);
  color: var(--ink);
  font: 600 11px/1.3 "Hero Archivo", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-mast,
.result-event,
.result-play,
.play-frames {
  display: flex;
  align-items: center;
}

.result-mast {
  width: fit-content;
  max-width: 100%;
  gap: 14px;
  color: var(--ink);
}

.result-event {
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.result-event strong {
  padding-left: 10px;
  border-left: 3px solid var(--neon);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-dates {
  padding-left: 12px;
  border-left: 1px solid var(--divider);
  white-space: nowrap;
}

.result-play {
  flex: none;
  gap: 7px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.result-play[hidden] { display: none; }

.play-icon,
.result-handle i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--divider);
  border-radius: 50%;
}

.play-icon::before {
  content: "";
  width: 7px;
  height: 8px;
  border-inline: 2px solid currentColor;
  box-sizing: border-box;
}

.result-play[data-paused] .play-icon::before {
  width: 0;
  margin-left: 2px;
  border: solid transparent;
  border-width: 4px 0 4px 6px;
  border-left-color: currentColor;
}

.play-frames { gap: 3px; }
.play-frames i { width: 8px; height: 3px; background: #cdb9a0; }
.hero-world:has([data-result="base44"].on) .play-frames i:nth-child(1),
.hero-world:has([data-result="fetch"].on) .play-frames i:nth-child(2),
.hero-world:has([data-result="truefoundry"].on) .play-frames i:nth-child(3) {
  background: var(--neon);
}

.result-play:hover .play-icon {
  border-color: var(--neon);
  color: var(--neon);
}

.hero #rot {
  display: grid;
  margin: clamp(28px, 3.9vw, 60px) 0 clamp(28px, 3.2vw, 48px);
  font: 400 clamp(76px, 10.7vw, 150px)/.97 "Hero Anton", Impact, sans-serif;
  text-transform: uppercase;
}

.hero #rot .line {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  grid-area: 1 / 1;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transform: none;
  transition: none;
}

.hero #rot .line.on { visibility: visible; opacity: 1; }

.result-count {
  color: var(--neon);
  font-weight: 400;
  letter-spacing: -.035em;
}

.result-phrase {
  display: grid;
  gap: clamp(5px, .65vw, 9px);
  min-width: 0;
  text-shadow: 0 1px 4px #15120c;
}

.result-phrase strong {
  font: 400 clamp(29px, 4.4vw, 62px)/1 "Hero Anton", Impact, sans-serif;
  letter-spacing: -.012em;
}

.result-phrase > span {
  font: 400 clamp(16px, 1.9vw, 26px)/1.15 "Hero Anton", Impact, sans-serif;
  letter-spacing: .025em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero #rot .line.arriving { animation: result-in 320ms var(--ease) backwards; }
}
@keyframes result-in {
  from { opacity: 0; transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero #rot .line:not(.on) { display: none !important; }
}

.result-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: clamp(15px, 1.45vw, 19px);
  font-weight: 600;
  line-height: 1.35;
}

.result-summary::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--divider);
}

#top .goals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 1.25vw, 18px);
  max-width: none;
  margin: 0;
}

.result-card {
  --target: 69.444%;
  --pad: clamp(16px, 1.65vw, 24px);
  min-width: 0;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: rgb(21 18 12 / 95%);
  line-height: 1.35;
  scroll-margin-block: 86px 20px;
}

.result-card[data-sponsor="fetch"] { --target: 95.238%; }
.result-card[data-sponsor="truefoundry"] { --target: 71.429%; }
.result-card:is(.hot, [open], :focus-within) { border-color: var(--neon); }

.result-card summary {
  display: grid;
  padding: var(--pad) var(--pad) 0;
  cursor: pointer;
  list-style: none;
}
.result-card summary::-webkit-details-marker { display: none; }
.result-card summary:focus-visible { outline-offset: 2px; }

.result-logo {
  width: auto;
  height: 19px;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1);
}

.result-figure {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 18px 0 12px;
}

.result-figure b {
  font: 400 clamp(56px, 5.6vw, 84px)/1 "Hero Anton", Impact, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.03em;
}

.result-figure > span { font-size: clamp(16px, 1.45vw, 21px); font-weight: 650; }
.result-comparison {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
}
.result-comparison strong { color: var(--neon); }
.result-comparison i {
  flex: 1;
  height: 5px;
  border-inline-end: 1px solid var(--neon);
  background:
    linear-gradient(to right, var(--neon) var(--target), transparent var(--target)),
    repeating-linear-gradient(125deg, transparent 0 2px, var(--neon) 2px 3px, transparent 3px 4px);
}
.result-note {
  margin: 7px 0 14px;
  color: #cdb9a0;
  font-size: 14px;
}
.result-handle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  font-weight: 650;
}
.result-short { display: none; }
.result-handle i::before,
.result-handle i::after {
  content: "";
  grid-area: 1 / 1;
  width: 9px;
  height: 1px;
  background: currentColor;
}
.result-handle i::after { transform: rotate(90deg); }
.result-card[open] .result-handle i::after { transform: none; }
.result-card:is(.hot, [open]) .result-handle i { color: var(--neon); border-color: currentColor; }

.result-detail { padding: 0 var(--pad) 8px; }
.result-detail p { margin: 0; font-size: 15px; }
.result-detail a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  color: var(--neon);
  font-size: 14px;
  font-weight: 700;
}
.result-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

@media (max-width: 759px) {
  .hero-world {
    --hero-gutter: 16px;
    --photo-height: clamp(260px, 67vw, 365px);
    padding: 12px 0 22px;
  }

  /* Two landscape frames keep faces in view on a portrait screen. */
  .hero-photos::before {
    content: "";
    position: absolute;
    inset: var(--photo-height) 0 0;
    background: linear-gradient(rgb(31 26 18 / 65%), rgb(21 18 12 / 80%)),
      url("../cut-sf-room.webp") center / cover no-repeat;
  }
  .world-frame { bottom: auto; height: var(--photo-height); }
  .world-frame figcaption { top: 69px; }
  .world-frame::after {
    background: linear-gradient(to bottom, rgb(13 11 7 / 76%), rgb(13 11 7 / 52%) 52px,
      transparent 78px, transparent 100px, rgb(13 11 7 / 66%) 150px, rgb(13 11 7 / 80%));
  }

  .result-mast { width: 100%; justify-content: space-between; gap: 8px; }
  .result-event { gap: 3px 10px; font-size: 12px; }
  .result-event strong { flex-basis: 100%; }
  .event-dates { padding-left: 10px; }
  .hero #rot {
    margin: clamp(72px, 20vw, 130px) 0 18px;
    font-size: clamp(65px, 19.5vw, 108px);
  }
  .result-phrase strong { font-size: clamp(29px, 8.7vw, 48px); }
  .result-phrase > span { font-size: clamp(15px, 4vw, 20px); }
  .result-summary { margin-bottom: 10px; }
  #top .goals { grid-template-columns: 1fr; gap: 8px; }
  .result-card { --pad: 14px; }
  .result-card summary {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 11px var(--pad);
  }
  .result-logo, .result-figure, .result-comparison, .result-note { grid-column: 1; }
  .result-logo { height: 15px; }
  .result-figure { flex-direction: row; align-items: center; gap: 10px; margin: 5px 0; }
  .result-figure b { font-size: 43px; }
  .result-figure > span { font-size: 15px; line-height: 1.12; }
  .result-note { margin: 5px 0 0; font-size: 13px; }
  .result-handle {
    grid-column: 2;
    grid-row: 1 / span 4;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 5px;
    padding-left: 12px;
    border-top: 0;
    border-left: 1px solid var(--divider);
    font-size: 12px;
  }
  .result-method { display: none; }
  .result-short { display: inline; }
}

/* Round 2 (18 Nov): each sponsor card is one link to its report. */
a.result-card {
  display: grid;
  align-content: start;
  padding: var(--pad) var(--pad) 0;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s;
}
a.result-card:hover { border-color: var(--neon); }
a.result-card:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
a.result-card .result-comparison { margin-bottom: 14px; }
a.result-card .result-handle { color: var(--neon); }
a.result-card .result-handle span { font-size: 15px; }
@media (max-width: 759px) {
  a.result-card {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 11px var(--pad);
  }
  a.result-card .result-comparison { margin-bottom: 0; }
  a.result-card .result-handle {
    grid-row: 1 / span 3;
    flex-direction: column;
    white-space: nowrap;
  }
}

/* Round 2b (18 Nov): static hero title. */
.hero .hero-title {
  max-width: 15ch;
  margin: clamp(28px, 3.9vw, 60px) 0 clamp(22px, 2.6vw, 38px);
  font: 400 clamp(44px, 7.2vw, 104px)/.98 "Hero Anton", Impact, sans-serif;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 1px 4px #15120c;
}
@media (max-width: 759px) {
  .hero .hero-title {
    margin: clamp(72px, 20vw, 130px) 0 18px;
    font-size: clamp(44px, 12.4vw, 70px);
  }
}
