/* ==========================================================================
   home.css — sections that appear only on the home page.
   ========================================================================== */

/* --- Hero -----------------------------------------------------------------
   Full-viewport looping video, with the wordmark and one line of text set
   quietly at the bottom left. This is the page's single orchestrated moment:
   the overlay fades up once on load and nothing else on the page animates
   without the visitor asking for it.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stills fallback: three frames cross-fading on a slow drift, so the hero
   still moves before the montage exists. Drop a <video class="hero__media">
   in and this layer can be deleted outright — see index.html. */
.hero__stills { position: absolute; inset: 0; }
.hero__stills img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-cycle 24s ease-in-out infinite;
  will-change: opacity, transform;
}
.hero__stills img:nth-child(2) { animation-delay: -16s; }
.hero__stills img:nth-child(3) { animation-delay: -8s; }

@keyframes hero-cycle {
  0%            { opacity: 0; transform: scale(1.0); }
  5%, 28%       { opacity: 1; }
  33%           { opacity: 0; }
  100%          { opacity: 0; transform: scale(1.09); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__stills img { animation: none; opacity: 0; }
  .hero__stills img:first-child { opacity: 1; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 24, 15, 0.55) 0%,
    rgba(23, 24, 15, 0.1) 26%,
    rgba(23, 24, 15, 0.22) 48%,
    rgba(23, 24, 15, 0.62) 72%,
    rgba(23, 24, 15, 0.88) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(2.5rem, 7vw, 5rem);
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
  animation: hero-in 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 0.25s;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: none; }
}

.hero__wordmark {
  font-size: var(--t-wordmark);
  letter-spacing: 0.16em;
  line-height: 0.95;
  margin: 0 0 0.6rem;
  /* Cortese's letterspacing adds a trailing gap; pull it back so the
     wordmark optically aligns with the line beneath it. */
  margin-right: -0.16em;
}

.hero__line {
  font-family: var(--display);
  /* Sized to hold the slogan on a single line from roughly 700px up.
     Below that it wraps rather than shrink past readability. */
  font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  letter-spacing: 0.01em;
  line-height: 1.25;
  max-width: none;
  margin: 0;
  text-wrap: nowrap;
}

@media (max-width: 700px) {
  .hero__line { text-wrap: pretty; }
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 7vw, 5rem);
  z-index: 2;
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  color: rgba(234, 231, 220, 0.7);
  text-decoration: none;
}
.hero__scroll:hover { color: var(--paper); }

@media (max-width: 640px) {
  .hero__scroll { display: none; }
}

/* --- Story ---------------------------------------------------------------- */

.story__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.25rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(23, 24, 15, 0.2);
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  color: var(--stone);
}

.story__signoff {
  font-family: var(--display);
  font-size: var(--t-md);
  line-height: 1.35;
  margin-top: 2.5rem;
}

/* --- Process -------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.process > div { padding-top: 1.1rem; border-top: 1px solid rgba(234, 231, 220, 0.3); }
.process h3 { font-size: var(--t-lg); margin-bottom: 0.6rem; }
.process p  { font-size: var(--t-sm); max-width: 34ch; }

@media (max-width: 820px) {
  .process { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* --- What we're not -------------------------------------------------------
   Three claims, each paired with one of Astra's own frames rather than a
   line icon. The photograph is the evidence for the claim.
   -------------------------------------------------------------------------- */

.nots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.nots figure { margin: 0; }
.nots img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1.25rem;
}
.nots h3 { font-size: var(--t-md); margin-bottom: 0.5rem; }
.nots p  { font-size: var(--t-sm); color: var(--stone); max-width: 34ch; }

@media (max-width: 820px) {
  .nots { grid-template-columns: 1fr; }
  .nots img { aspect-ratio: 3 / 2; }
}

/* --- Contact -------------------------------------------------------------- */

.contact__email {
  display: inline-block;
  font-family: var(--display);
  /* Sized to sit on one line in the narrow column at every width. */
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.3;
  margin-top: 1.75rem;
  white-space: nowrap;
}
.contact__email:hover { color: var(--nasturtium); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.75rem;
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

.form__status {
  min-height: 1.6em;
  margin: 1rem 0 0;
  font-size: var(--t-sm);
}

/* --- Newsletter ----------------------------------------------------------- */

.newsletter {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  background: var(--paper-warm);
}
.newsletter__inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem 3rem;
}
.newsletter p {
  font-family: var(--display);
  font-size: var(--t-lg);
  line-height: 1.2;
  margin: 0;
  max-width: 24ch;
}
