/* ============================================================
   MASS-MARAM — homepage only: announcement, cinematic hero, invitation
   Everything else on the homepage uses the shared components in site.css.
   ============================================================ */

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  margin-top: calc(-1 * var(--nav-h));  /* sit under the transparent bar */
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

/* Ken Burns wrapper: image + reflection canvas move as one, so the
   animated light columns stay glued to their sources in the photo. */
.hero__bg { position: absolute; inset: 0; overflow: hidden; }

.hero__kb {
  position: absolute;
  inset: -1%;
  will-change: transform;
  transform-origin: 52% 42%;
  animation: kenburns 64s var(--ease-out) infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.015) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(-1.1%, -0.7%, 0); }
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.96) saturate(1.08) contrast(1.06);
}

.hero__lights {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: .85;
}

.hero__haze { position: absolute; left: -12%; width: 124%; mix-blend-mode: screen; pointer-events: none; }
.hero__haze--warm {
  top: 14%; height: 26%;
  background: radial-gradient(55% 90% at 68% 70%, rgba(238, 178, 110, .10), rgba(238, 178, 110, 0) 70%);
  filter: blur(10px);
  animation: hazeDriftA 70s ease-in-out infinite;
}
.hero__haze--cool {
  top: 0; height: 24%;
  background: radial-gradient(50% 80% at 26% 40%, rgba(140, 172, 212, .08), rgba(140, 172, 212, 0) 70%);
  filter: blur(12px);
  animation: hazeDriftB 86s ease-in-out infinite;
}
@keyframes hazeDriftA {
  0%   { transform: translate3d(-5%, 0, 0); opacity: .85; }
  50%  { transform: translate3d(4.5%, 1.6%, 0); opacity: 1; }
  100% { transform: translate3d(-5%, 0, 0); opacity: .85; }
}
@keyframes hazeDriftB {
  0%   { transform: translate3d(3.5%, 0, 0); opacity: .5; }
  50%  { transform: translate3d(-4.5%, .8%, 0); opacity: .8; }
  100% { transform: translate3d(3.5%, 0, 0); opacity: .5; }
}

.hero__dusk {
  position: absolute;
  left: 0; right: 0; top: 18%; height: 44%;
  background: radial-gradient(46% 60% at 78% 42%, rgba(255, 190, 110, .12), rgba(255, 190, 110, 0) 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: duskBreath 18s ease-in-out infinite;
}
@keyframes duskBreath { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

.hero__sheen {
  position: absolute;
  left: 0; right: 0; top: 54%; bottom: 0;
  background-image: repeating-linear-gradient(100deg, rgba(255, 255, 255, .022) 0 2px, rgba(255, 255, 255, 0) 2px 30px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: waterSheen 28s linear infinite;
}
@keyframes waterSheen {
  0%   { background-position: 0 0; opacity: .45; }
  50%  { opacity: .8; }
  100% { background-position: 340px 0; opacity: .45; }
}

.hero__grain {
  position: absolute;
  inset: -2%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .03;
  mix-blend-mode: overlay;
  animation: grainShift .9s steps(4) infinite;
  pointer-events: none;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1.5%, 1%); }
  50%  { transform: translate(1%, -1.5%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* legibility gradient + scrim behind the headline block */
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, .82) 0%, rgba(8, 10, 14, .36) 34%, rgba(8, 10, 14, .3) 58%, rgba(8, 10, 14, .88) 100%);
  pointer-events: none;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 58% 52% at 50% 52%, rgba(8, 10, 14, .52), rgba(8, 10, 14, .22) 55%, rgba(8, 10, 14, 0) 78%);
  pointer-events: none;
}

.hero__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: min(150vh, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(240, 239, 233, .05);
  mask-image: conic-gradient(from 0deg, #000 0 40%, transparent 55% 100%);
  -webkit-mask-image: conic-gradient(from 0deg, #000 0 40%, transparent 55% 100%);
  animation: ringSpin 90s linear infinite;
  pointer-events: none;
}
@keyframes ringSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------------- hero content ---------------- */

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px var(--gutter) 40px;
  will-change: transform;
}

.hero__eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-80);
  margin-bottom: 28px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 2px 14px rgba(0, 0, 0, .4);
  animation: eyebrowIn 1.3s var(--ease-out) .35s both;
}
@keyframes eyebrowIn {
  0% { opacity: 0; transform: translateY(20px); letter-spacing: .5em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: .32em; }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 1.05;
  letter-spacing: .005em;
  text-wrap: balance;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 6px 32px rgba(0, 0, 0, .4);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; animation: heroLine 1.35s var(--ease-out) both; }
.hero__title .line:nth-child(1) > span { animation-delay: .5s; }
.hero__title .line:nth-child(2) > span { animation-delay: .68s; }
@keyframes heroLine {
  0% { opacity: 0; transform: translateY(105%); filter: blur(3px); }
  45% { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero__sub {
  font-size: clamp(16.5px, 1.2vw + 10px, 19px);
  line-height: 1.65;
  color: var(--ink-90);
  max-width: 600px;
  margin: 30px auto 0;
  text-wrap: pretty;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55), 0 3px 18px rgba(0, 0, 0, .4);
  animation: riseIn 1.2s var(--ease-out) 1.05s both;
}

.hero__cta {
  margin-top: 40px;
  animation: riseIn 1.2s var(--ease-out) 1.25s both;
}
.hero__cta .quiet-link { color: var(--ink); text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.hero__whisper {
  margin-top: 34px;
  color: var(--ink-80);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  animation: riseIn 1.2s var(--ease-out) 1.4s both;
}

/* ---------------- today / with MA ---------------- */

.hero__contrast {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 34px auto 0;
  text-align: left;
  background: rgba(10, 13, 18, .64);
  border: 1px solid rgba(240, 239, 233, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: riseIn 1.2s var(--ease-out) 1.15s both;
}
.hero__contrast-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(240, 239, 233, .1);
}
.hero__contrast-kind {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__contrast-dots { display: flex; gap: 6px; }
.hero__contrast-dots button {
  width: 22px; height: 22px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero__contrast-dots button::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(240, 239, 233, .28);
  transition: background-color .3s ease;
}
.hero__contrast-dots button[aria-pressed="true"]::before { background: var(--ink); }
.hero__contrast-set { display: none; }
.hero__contrast-set.is-on { display: block; animation: fadeIn .45s ease both; }
.hero__contrast-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 22px;
}
.hero__contrast-row + .hero__contrast-row { border-top: 1px solid rgba(240, 239, 233, .1); }
.hero__contrast-k {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.hero__contrast-v { font-size: 16px; line-height: 1.55; color: var(--ink-70); text-wrap: pretty; }
.hero__contrast-row--ma .hero__contrast-k, .hero__contrast-row--ma .hero__contrast-v { color: var(--ink); }

.hero__trust {
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  animation: riseIn 1.2s var(--ease-out) 1.45s both;
}
.hero__trust a { color: var(--ink); border-bottom: 1px solid rgba(240, 239, 233, .3); }
.hero__trust a:hover { color: var(--accent); border-color: var(--accent-40); }

/* ---------------- proof strip ---------------- */

.hero__strip {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 34px;
  animation: fadeIn 1.8s ease 1.8s both;
}
.hero__strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-80);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
.hero__strip-row > span { padding: 0 18px; }
.hero__strip-row > span + span { border-left: 1px solid rgba(240, 239, 233, .22); }

/* reduced motion: freeze the film, show everything */
@media (prefers-reduced-motion: reduce) {
  .hero__kb { animation: none; }
  .hero__lights, .hero__grain, .hero__ring { display: none; }
}

/* ---------------- invitation ---------------- */

.invitation {
  position: relative;
  padding: var(--section) var(--gutter);
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}
.invitation__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55) saturate(.9);
}
.invitation__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, .88), rgba(8, 10, 14, .6) 50%, rgba(8, 10, 14, .92));
}
.invitation__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.invitation__inner .lede { margin: 22px auto 0; color: var(--ink-90); }
.invitation__inner .mm-form { margin-top: 44px; background: rgba(12, 16, 23, .92); }
.invitation__inner .form-outcome { margin-top: 44px; background: rgba(12, 16, 23, .92); border-color: var(--accent-40); }
.invitation__foot { margin-top: 40px; }
.invitation__foot .whisper { margin-top: 26px; color: var(--ink-70); }

@media (max-width: 760px) {
  .hero__strip-row > span { padding: 0 12px; }
  .hero__strip-row > span:first-child { flex-basis: 100%; border-left: 0; }
}
@media (max-width: 560px) {
  .hero__contrast-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 18px; }
  .hero__contrast-head { padding: 11px 18px; }
  .hero__content { padding: 40px 20px 32px; }
  .hero__strip { padding: 0 20px 26px; }
  .hero__strip-row > span,
  .hero__strip-row > span + span { flex-basis: 100%; border-left: 0; padding: 0; }
  .hero__cta { width: 100%; }
}
