/*
  The Formation Academy — countdown season styles (ruled 2026-08-27).
  Three placements so nobody misses the opening: the herald bar on every
  page, the Academy room on the homepage, and the academy.html destination.
  The design is the ruled launch card translated to the web: navy field,
  gold frame, the portrait dissolved into the dark, the two-ink signature.
  At T-0 the countdown retires itself into "The doors are open."
*/

/* The hidden attribute must always win over any display rule below. */
[hidden] {
  display: none !important;
}

:root {
  --acad-navy: #101f36;
  --acad-navy-deep: #0a1526;
  --acad-gold: #c2a04a;
  --acad-gold-soft: #d9bd77;
  --acad-cream: #f4efe5;
}

/* ---------- The Herald: a slim bar above everything, every page ---------- */

.academy-herald {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.62rem 1rem;
  background: linear-gradient(150deg, var(--acad-navy) 0%, var(--acad-navy-deep) 100%);
  border-bottom: 1px solid rgba(194, 160, 74, 0.55);
  color: var(--acad-cream);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}

.academy-herald strong {
  color: var(--acad-gold-soft);
  font-weight: 700;
}

.academy-herald .herald-count {
  color: var(--acad-gold-soft);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.academy-herald .herald-go {
  border-bottom: 1px solid rgba(217, 189, 119, 0.6);
  padding-bottom: 1px;
}

.academy-herald:hover .herald-go,
.academy-herald:focus-visible .herald-go {
  color: var(--acad-gold-soft);
}

/* ---------- The Academy room (homepage) and the academy.html hero ---------- */

.academy-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 92%, rgba(194, 160, 74, 0.12), transparent 44%),
    linear-gradient(150deg, var(--acad-navy) 0%, var(--acad-navy-deep) 100%);
  color: var(--acad-cream);
}

.academy-hero .acad-portrait {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(46%, 620px);
  object-fit: cover;
  object-position: 62% 18%;
  filter: saturate(0.8) contrast(1.03) brightness(0.94);
  /*
    Two mask layers, intersected: the left dissolve and a bottom fade, so
    the photo itself is fully transparent before the section edge can cut
    it. Browsers without mask-composite still get the strengthened navy
    wash below as the fallback.
  */
  -webkit-mask-image:
    linear-gradient(to left, black 42%, rgba(0, 0, 0, 0.55) 68%, transparent 100%),
    linear-gradient(to top, transparent 2%, black 30%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, black 42%, rgba(0, 0, 0, 0.55) 68%, transparent 100%),
    linear-gradient(to top, transparent 2%, black 30%);
  mask-composite: intersect;
}

.academy-hero .acad-wash {
  position: absolute;
  inset: 0;
  /*
    The bottom band runs to FULL navy so the portrait melts into the field
    before the section edge can cut it (Bishop's hard-line correction).
  */
  background:
    linear-gradient(to top, #0a1526 7%, rgba(10, 21, 38, 0) 44%),
    linear-gradient(to right, rgba(16, 31, 54, 0.3) 46%, rgba(16, 31, 54, 0.06) 100%);
  pointer-events: none;
}

.academy-hero .acad-frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(194, 160, 74, 0.5);
  pointer-events: none;
  z-index: 3;
}

.academy-hero .acad-inner {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 6vw, 4rem);
}

.academy-hero .acad-eyebrow {
  color: var(--acad-gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 1rem;
}

.academy-hero .acad-name {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5.6vw, 3.9rem);
  line-height: 1.06;
  margin: 0;
  color: var(--acad-cream);
}

.academy-hero .acad-at {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--acad-gold);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  margin: 0.45rem 0 0;
}

.academy-hero .acad-rule {
  width: 96px;
  height: 1px;
  background: var(--acad-gold);
  margin: 1.5rem 0 1.2rem;
  position: relative;
}

.academy-hero .acad-rule::after {
  content: "";
  position: absolute;
  left: 44px;
  top: -3.5px;
  transform: rotate(45deg);
  width: 7px;
  height: 7px;
  background: var(--acad-gold);
}

.academy-hero .acad-line {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: rgba(244, 239, 229, 0.85);
  max-width: 30rem;
  margin: 0;
}

/* ---------- The countdown ---------- */

.acad-countdown {
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.8rem);
  margin: 1.9rem 0 0;
}

.acad-countdown .unit {
  text-align: center;
  min-width: 3.4rem;
}

.acad-countdown .num {
  display: block;
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1;
  color: var(--acad-gold-soft);
  font-variant-numeric: tabular-nums;
}

.acad-countdown .lab {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 229, 0.62);
  font-weight: 700;
}

.acad-date {
  margin: 1.5rem 0 0;
  color: var(--acad-gold-soft);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.acad-signature {
  width: min(240px, 56vw);
  margin-top: 1.6rem;
  display: block;
  opacity: 0.96;
}

.acad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.acad-cta {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--acad-gold);
  background: var(--acad-gold);
  color: #17130a;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.acad-cta:hover,
.acad-cta:focus-visible {
  background: var(--acad-gold-soft);
  border-color: var(--acad-gold-soft);
}

.acad-cta.ghost {
  background: transparent;
  color: var(--acad-gold-soft);
}

.acad-cta.ghost:hover,
.acad-cta.ghost:focus-visible {
  background: rgba(194, 160, 74, 0.12);
}

/* ---------- academy.html page body below the hero ---------- */

.acad-body {
  background: var(--acad-cream);
  padding: clamp(2.6rem, 6vw, 4.4rem) clamp(1.6rem, 6vw, 4rem);
}

.acad-body .acad-body-inner {
  max-width: 880px;
  margin: 0 auto;
}

.acad-body h2 {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: #20180f;
  margin: 0 0 1rem;
}

.acad-body p {
  color: #554a3d;
  line-height: 1.65;
  font-size: 1.02rem;
  margin: 0 0 1.1rem;
  max-width: 44rem;
}

.acad-open-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1rem;
}

.acad-open-list li {
  border: 1px solid rgba(154, 119, 30, 0.3);
  background: #fffdf8;
  padding: 1.1rem 1.3rem;
}

.acad-open-list .li-title {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #20180f;
  display: block;
}

.acad-open-list .li-note {
  display: block;
  margin-top: 0.3rem;
  color: #756958;
  font-size: 0.9rem;
}

.acad-open-list .li-flag {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #765b17;
  border: 1px solid rgba(154, 119, 30, 0.4);
  padding: 0.25rem 0.6rem;
}

.acad-return {
  display: inline-block;
  margin-top: 2rem;
  color: #765b17;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 119, 30, 0.5);
  padding-bottom: 2px;
}

@media (max-width: 720px) {
  .academy-hero .acad-portrait {
    width: 74%;
    opacity: 0.5;
  }
}

/* ---------- Hand someone the opening: the share row ---------- */

.acad-share {
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(154, 119, 30, 0.3);
}

.acad-share-title {
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: #20180f;
  margin: 0 0 0.4rem;
}

.acad-share-line {
  margin: 0 0 1rem;
}

.acad-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.acad-share-btn {
  display: inline-block;
  margin: 0;
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(154, 119, 30, 0.5);
  background: transparent;
  color: #765b17;
  font-family: "Lato", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.acad-share-btn:hover,
.acad-share-btn:focus-visible {
  border-color: #b8973a;
  background: rgba(184, 151, 58, 0.1);
}
