/* Brand: CT monogram, finale footer, first-visit intro curtain.
   The monogram glyphs (#ct-c, #ct-t) and the #ct-mono symbol are defined once
   inside the header .brand-mark SVG and reused by the about stamp, the footer,
   and the intro curtain via <use>. Built from Instrument Serif outlines. */

.ct-mono {
  display: block;
  overflow: visible;
  fill: currentColor;
}

/* Header mark: a same-colour stroke thickens the hairlines so the serif C
   survives at ~23px tall. The symbol's clay dot opts out with stroke="none". */
.brand-mark .ct-mono {
  width: auto;
  height: 23px;
  margin-left: 2px;
  stroke: currentColor;
  stroke-width: 14px;
  stroke-linejoin: round;
  transition: transform .5s var(--ease);
}

.brand:hover .brand-mark .ct-mono {
  transform: translateY(-1px) scale(1.04);
}

.about-stamp__mark {
  width: auto;
  height: 46px;
  margin-left: 4px;
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 128px) var(--page-x) 0;
  color: rgba(255, 255, 255, .72);
  background: #091a16;
}

.footer-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: 44px clamp(28px, 4vw, 72px);
  padding-bottom: clamp(44px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-person {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.footer-mono {
  width: auto;
  height: 66px;
  margin-bottom: 20px;
  color: var(--cream);
}

.footer-person strong {
  color: var(--white);
  font: 400 clamp(34px, 3.2vw, 46px)/1 var(--serif);
  letter-spacing: -.012em;
}

.footer-person span,
.footer-person a,
.footer-eho span,
.footer-label,
.footer-links,
.licenses summary,
.footer-bottom {
  font: 400 11px/1.55 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer-person span {
  margin-top: 8px;
}

.footer-person a {
  width: fit-content;
  margin-top: 4px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}

.footer-col {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 16px;
  padding-top: 10px;
}

.footer-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .45);
}

.footer-label::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--clay);
}

.movement-logo {
  width: min(190px, 100%);
  height: auto;
}

.footer-eho img {
  width: 46px;
  height: 46px;
  padding: 3px;
  filter: invert(1);
  opacity: .85;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links a,
.footer-disclosures a,
.footer-person a {
  transition: color .25s ease, text-decoration-color .25s ease;
}

.footer-links a,
.footer-disclosures a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}

.footer-links a:hover,
.footer-disclosures a:hover,
.footer-person a:hover,
.footer-bottom a:hover {
  color: var(--white);
  text-decoration-color: var(--clay);
}

.licenses {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.licenses summary {
  width: fit-content;
  cursor: pointer;
  color: rgba(255, 255, 255, .86);
}

.licenses p {
  max-width: 1400px;
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.8;
}

.footer-disclosures {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 72px);
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-disclosures p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: space-between;
  padding-top: 26px;
}

/* The grand close: the surname at type-as-image scale, full bleed, its lower
   quarter cropped by the page's bottom edge, rising into place on arrival. */
.footer-wordmark {
  height: .7em;
  margin: clamp(40px, 6vw, 96px) calc(var(--page-x) * -1) 0;
  overflow: hidden;
  font: 400 clamp(96px, 30.5vw, 680px)/1 var(--serif);
  letter-spacing: -.04em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.footer-wordmark span {
  display: inline-block;
  padding: 0 .06em;
  margin-top: -.09em;
  color: transparent;
  background: linear-gradient(180deg, rgba(242, 238, 228, .95) 26%, rgba(242, 238, 228, .2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
}

.js .footer-wordmark span {
  opacity: 0;
  transform: translateY(38%);
  transition: opacity 1.1s ease, transform 1.7s var(--ease);
}

.js .footer-wordmark.is-visible span {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-person {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  /* Carry the footer under the fixed mobile apply bar (body reserves that
     space) so the wordmark crop meets dark ground, not a paper strip. */
  .site-footer {
    margin-bottom: calc(var(--apply-bar-space) * -1);
    padding-bottom: var(--apply-bar-space);
  }
}

@media (max-width: 560px) {
  .brand-mark .ct-mono {
    height: 21px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-disclosures {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    display: grid;
    justify-content: start;
  }
}

/* ------------------------------------------------------- Intro curtain */

.intro-curtain {
  display: none;
}

.intro .intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 85% at 50% 42%, #133029 0%, var(--forest-dark) 62%);
  clip-path: inset(0 0 0 0);
  animation: intro-lift .46s .64s cubic-bezier(.76, 0, .24, 1) forwards;
}

.intro-curtain__mark {
  width: auto;
  height: clamp(96px, 16vh, 148px);
  overflow: visible;
  color: var(--cream);
  animation: intro-mark-out .42s .64s var(--ease) forwards;
}

.intro-curtain__c,
.intro-curtain__t {
  fill: var(--cream);
  fill-opacity: 0;
  stroke: var(--cream);
  stroke-width: 5px;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    intro-draw .56s var(--ease) forwards,
    intro-fill .3s .36s ease forwards;
}

.intro-curtain__t {
  animation-delay: .1s, .44s;
}

.intro-curtain__dot {
  fill: var(--clay);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: intro-dot .34s .5s var(--ease) forwards;
}

/* Hold the hero's own entrance until the curtain starts to lift. */
.intro-hold .hero,
.intro-hold .hero *,
.intro-hold .hero *::before,
.intro-hold .hero *::after {
  animation-play-state: paused !important;
}

@keyframes intro-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes intro-fill {
  to { fill-opacity: 1; stroke-width: 0; }
}

@keyframes intro-dot {
  to { transform: scale(1); }
}

@keyframes intro-mark-out {
  to { opacity: 0; transform: translateY(-18px); }
}

@keyframes intro-lift {
  to { visibility: hidden; clip-path: inset(0 0 100% 0); }
}

@media (prefers-reduced-motion: reduce) {
  .intro .intro-curtain {
    display: none;
  }

  .intro-hold .hero,
  .intro-hold .hero *,
  .intro-hold .hero *::before,
  .intro-hold .hero *::after {
    animation-play-state: running !important;
  }

  .js .footer-wordmark span {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand:hover .brand-mark .ct-mono {
    transform: none;
  }
}
