* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #111;
  background: white;
}
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #e9e9e9 0%, #fff 85%);
  visibility: hidden;
}
#stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}
.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  clip-path: inset(50% 50% 50% 50%);
  will-change: clip-path;
}
.tile {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
  width: 0;
  height: 0;
  border-radius: 10px;
  background: linear-gradient(0deg, #0008, transparent 38%, transparent 85%, #0002);
}
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #111;
  color: white;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 500;
}
.tile strong {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 10px;
  font-size: clamp(14px, 1.35vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15%;
  pointer-events: none;
  z-index: 3;
}
#brand {
  position: absolute;
  width: clamp(100px, 10vw, 190px);
  max-height: 10vh;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
}
.tools {
  position: absolute;
  right: 4%;
  top: 32%;
  display: flex;
  gap: 24px;
}
.tools button {
  border: 0;
  background: none;
  padding: 0;
  width: 28px;
  height: 28px;
  opacity: 1;
}
.tools img {
  width: 100%;
  height: 100%;
}
#editorial {
  position: absolute;
  bottom: 5%;
  left: 4%;
  width: 56%;
  pointer-events: none;
}
h1 {
  font-size: clamp(24px, 3.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0 0 0px;
  font-weight: 800;
}
#editorial p {
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.45;
  max-width: 580px;
  margin: 0;
}
.word {
  display: inline-block;
  white-space: nowrap;
}
.letter {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.letter > span {
  display: inline-block;
}
#institutional {
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 20%;
  max-width: 300px;
  text-align: right;
  font-size: clamp(8px, 1vw, 14px);
  margin: 0;
}
#loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 25px;
}
#loader img {
  width: clamp(80px, 15vw, 100px);
}
.progress {
  width: clamp(140px, 15vw, 240px);
  height: 3px;
  background: #ddd;
  overflow: hidden;
}
#bar {
  height: 100%;
  width: 100%;
  background: #111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
#load-error {
  max-width: 80%;
  text-align: center;
  color: #a22;
}
@media (max-width: 700px) {
  #editorial {
    width: 90%;
    bottom: 7%;
  }
  #institutional {
    display: none;
  }
  .tools {
    gap: 12px;
  }
  .tools button {
    width: 22px;
    height: 22px;
  }
  .tag {
    font-size: 10px;
    left: 8px;
    top: 8px;
  }
  .tile strong {
    left: 8px;
  }
}

/* V2: clip complete words, not individual glyphs. */
.word {
  overflow: hidden;
  padding: 0.13em 0.07em 0.18em;
  margin: -0.13em -0.07em -0.18em;
  vertical-align: bottom;
  line-height: 1.25;
}
.letter {
  overflow: visible;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  display: inline-block;
}
.tile {
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  text-align: left;
  font-family: inherit;
  padding: 0;
}
.tile:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}
#detail {
  position: absolute;
  inset: 0;
  z-index: 5;
  color: white;
  pointer-events: none;
}
#detail[hidden] {
  display: none;
}
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36) 55%, transparent), linear-gradient(0deg, #0005, transparent 55%);
}
.detail-copy {
  position: absolute;
  left: 7%;
  bottom: 12%;
  width: min(760px, 82%);
  pointer-events: auto;
}
.detail-copy h2 {
  font-size: clamp(42px, 7vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 18px 0 24px;
}
.detail-copy p {
  font-size: clamp(16px, 1.45vw, 26px);
  line-height: 1.5;
  max-width: 620px;
  margin: 0 0 32px;
}
#detail-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
#detail-cta,
#close-detail {
  pointer-events: auto;
  color: white;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}
#detail-cta {
  display: inline-flex;
  gap: 32px;
  padding: 15px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
}
#close-detail {
  position: absolute;
  right: 4%;
  top: 5%;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 34px;
  line-height: 1;
}
#detail-cta:hover,
#close-detail:hover {
  background: white;
  color: #111;
}
#editorial p strong {
  font-weight: 700;
}

/* V4.1 — Shared SVG arrows and two-column card footer. */
.site-arrow {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.65em;
  height: 1.65em;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: url('../assets/svg/arrow-down.svg') center / contain no-repeat;
  mask: url('../assets/svg/arrow-down.svg') center / contain no-repeat;
}
.tile-footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
}
.tile .tile-footer strong {
  position: static;
  font-size: clamp(12px, 1.2vw, 23px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.tile-action {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: clamp(10px, .9vw, 16px);
  font-weight: 500;
  white-space: nowrap;
}
#detail-cta { align-items: center; }
#detail-cta .site-arrow { transform: rotate(-90deg); }
@media(max-width:700px) { .tile-footer { left: 8px; right: 8px; bottom: 10px; gap: 3px; } }
