/* maa.com — Mary Ann Anane, Writer & Director */

:root {
  --navy: #001a46;
  --navy-deep: #001236;
  --greige: #b0a8a5;
  --greige-dim: rgba(176, 168, 165, 0.62);
  --greige-faint: rgba(176, 168, 165, 0.22);

  --font-display: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;

  --gutter: clamp(1.5rem, 4vw, 4rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--navy);
  color: var(--greige);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ---------- masthead ---------- */

.masthead {
  flex: 0 0 auto;
  padding: clamp(1.25rem, 3vh, 2.25rem) var(--gutter);
  display: flex;
  justify-content: center;
}

.monogram {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* optically re-centre the tracked text */
  text-decoration: none;
  color: var(--greige);
  transition: opacity 0.3s ease;
}

.monogram:hover { opacity: 0.65; }

/* ---------- stage ---------- */

.stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  padding: clamp(1rem, 3vh, 2.5rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

/* ---------- portrait + reveal slider ---------- */

/* The portrait is roughly 2:3 (678x1024), so cap the width by the available
   height (45vh ≈ 68vh of height) as well as by the viewport width. Capping
   height directly would make the library's overflow:hidden crop the bottom
   of the photograph. */
.portrait {
  flex: 0 1 min(34vw, 460px, 45vh);
  min-width: 240px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.compare {
  width: 100%;
  line-height: 0;
  background-color: var(--navy);
}

/* Only style the un-mounted state — once the library adds `.icv` it owns the
   sizing of .icv__img-a / .icv__img-b, and overriding it misaligns the layers. */
.compare:not(.icv) img { width: 100%; height: auto; display: block; }

/* Before mount, show only the silhouette (the last image) so there is no
   flash of the two stacked images. */
.compare:not(.icv) img:first-child { display: none; }

.hint {
  margin: 0;
  padding-top: 0.85rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  color: var(--greige);
}

.hint__arrow {
  display: inline-block;
  animation: nudge 2.6s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(-18%); opacity: 0.55; }
  50%      { transform: translateX(18%);  opacity: 1; }
}

/* ---------- bio ---------- */

.bio {
  flex: 0 1 34rem;
  max-width: 34rem;
}

.bio__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  color: var(--greige);
}

.bio__role {
  margin: clamp(0.9rem, 2vh, 1.4rem) 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--greige-dim);
}

.bio__body {
  margin-top: clamp(1.5rem, 3.5vh, 2.4rem);
  padding-top: clamp(1.5rem, 3.5vh, 2.4rem);
  border-top: 1px solid var(--greige-faint);
  font-size: clamp(0.94rem, 1.05vw, 1.02rem);
  color: var(--greige-dim);
  max-width: 46ch;
}

.bio__body p { margin: 0 0 1.15em; }
.bio__body p:last-child { margin-bottom: 0; }

.bio__contact {
  margin: clamp(1.6rem, 3.5vh, 2.4rem) 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bio__contact a {
  text-decoration: none;
  color: var(--greige);
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--greige-faint);
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.bio__contact a:hover {
  border-bottom-color: var(--greige);
  opacity: 0.85;
}

/* ---------- footer ---------- */

.footer {
  flex: 0 0 auto;
  padding: 0 var(--gutter) clamp(1.1rem, 2.5vh, 1.75rem);
  text-align: center;
}

.footer p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(176, 168, 165, 0.4);
}

/* ---------- slider chrome ---------- */

.icv__control-line { box-shadow: none; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .stage {
    flex-direction: column;
    gap: clamp(2rem, 5vh, 3rem);
    text-align: center;
  }

  .portrait { flex: 0 0 auto; width: min(78vw, 340px); }
  .compare { max-height: none; }

  .bio { flex: 0 0 auto; }
  .bio__body { max-width: none; margin-left: auto; margin-right: auto; }
}

@media (max-width: 540px) {
  .portrait { width: min(88vw, 320px); }
  .bio__body { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hint__arrow { animation: none; opacity: 0.8; }
  * { transition-duration: 0.01ms !important; }
}
