* {
  box-sizing: border-box;
}

:root {
  --paper: #f0f2f5;
  --ink: #1a1a1a;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

body.home-anon {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

#section-home {
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   MAIN PAGE CONTENT (Paper layer)
   ========================================================================== */

.anon {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  background: transparent;
  padding:
    max(12px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0;
  overflow: hidden;
}

.anon__brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.anon__brand-strong,
.anon__brand-light,
.anon__brand-rule {
  font-weight: 600;
}

.anon__brand-light {
  color: var(--ink);
}

.anon__brand-rule {
  color: var(--ink);
}

.anon__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 0 clamp(2px, 0.8vw, 10px);
  text-align: center;
}

.anon__title {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
  font-weight: 400;
  font-optical-sizing: auto;
  text-transform: uppercase;
  color: var(--ink);
}

.anon__title-word {
  display: block;
  width: 100%;
  line-height: 0.78;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.anon__title-letter {
  position: relative;
  display: inline-block;
  vertical-align: top;
  cursor: default;
  perspective: 2.4em;
  -webkit-perspective: 2.4em;
  margin-inline: 0.01em;
}

/* Keeps real typographic metrics so letters don't collapse */
.anon__flap__sizer {
  display: block;
  visibility: hidden;
  line-height: 0.82em;
  pointer-events: none;
}

.anon__flap {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.anon__flap__static {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  background: var(--paper);
}

.anon__flap__static--top {
  top: 0;
  z-index: 1;
}

.anon__flap__static--bottom {
  bottom: 0;
  z-index: 0;
}

.anon__flap__glyph {
  display: block;
  line-height: 0.82em;
  color: var(--ink);
}

.anon__flap__glyph--bottom {
  transform: translateY(-50%);
}

.anon__flap__hinge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  z-index: 3;
  transform-origin: center bottom;
  -webkit-transform-origin: center bottom;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  pointer-events: none;
}

.anon__flap__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--paper);
}

.anon__flap__face--front {
  z-index: 2;
}

.anon__flap__face--back {
  z-index: 1;
  transform: rotateX(180deg);
}

.anon__title-letter.is-flipping .anon__flap__hinge {
  -webkit-animation: title-split-flap 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation: title-split-flap 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (max-width: 768px) {
  .anon__title-letter.is-flipping .anon__flap__hinge {
    -webkit-animation-duration: 0.9s;
    animation-duration: 0.9s;
  }
}

@keyframes title-split-flap {
  from {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
  }
  to {
    -webkit-transform: rotateX(-180deg);
    transform: rotateX(-180deg);
  }
}

@-webkit-keyframes title-split-flap {
  from {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
  }
  to {
    -webkit-transform: rotateX(-180deg);
    transform: rotateX(-180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anon__title-letter.is-flipping .anon__flap__hinge {
    animation: none;
  }
}

/* Full-bleed editorial stack — each line near viewport width */
.anon__title-word--terence {
  font-size: clamp(3rem, 17vw, 24rem);
  letter-spacing: 0.04em;
}

.anon__title-word--ntsako {
  font-size: clamp(2.4rem, 13.8vw, 19rem);
  letter-spacing: 0.2em;
  margin: -0.015em 0;
}

.anon__title-word--maluleke {
  font-size: clamp(2.7rem, 15.2vw, 21.5rem);
  letter-spacing: 0.02em;
}

.anon__tagline {
  margin: clamp(10px, 2vh, 18px) 0 0;
  padding: 0;
  max-width: none;
  text-align: center;
  font-size: clamp(9px, 1.1vw, 11px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  color: #5c5c5c;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.anon__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  margin-top: clamp(4px, 1vh, 12px);
  overflow: hidden;
}

.anon__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  align-content: end;
  width: 100%;
  gap: 0.237em;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: right;
}

.anon__list-item {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  color: inherit;
  text-decoration: none;
  font-size: clamp(12px, 1.35vw, 15px);
  line-height: 1.2;
  text-align: right;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.anon__list-name {
  display: inline-block;
  text-align: right;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

a.anon__list-item {
  cursor: pointer;
}

a.anon__list-item:hover,
a.anon__list-item:focus-visible {
  opacity: 0.45;
  outline: none;
  transform: translateX(-4px);
}

.anon__foot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: clamp(4px, 1vh, 10px);
  padding-top: 0;
}

.anon__clock {
  margin: 0;
  max-width: min(320px, 70vw);
  font-size: clamp(9px, 1vw, 11px);
  line-height: 1.35;
  color: #6a6a6a;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 900px) {
  .anon__title-word--terence {
    font-size: clamp(5rem, 16.5vw, 26rem);
    letter-spacing: 0.05em;
  }

  .anon__title-word--ntsako {
    font-size: clamp(3.8rem, 13.2vw, 20rem);
    letter-spacing: 0.24em;
  }

  .anon__title-word--maluleke {
    font-size: clamp(4.4rem, 14.6vw, 23rem);
    letter-spacing: 0.03em;
  }
}

@media (max-height: 700px) {
  .anon__title-word--terence {
    font-size: clamp(2.6rem, 14vw, 9rem);
  }

  .anon__title-word--ntsako {
    font-size: clamp(2rem, 11vw, 7rem);
    letter-spacing: 0.16em;
  }

  .anon__title-word--maluleke {
    font-size: clamp(2.3rem, 12.5vw, 8rem);
  }

  .anon__tagline {
    margin-top: clamp(4px, 1vh, 8px);
    font-size: 9px;
  }

  .anon__list {
    gap: 3.15px;
  }

  .anon__list-item {
    font-size: clamp(11px, 1.8vh, 13px);
    line-height: 1.15;
  }
}
