/* ==========================================================================
   Rmoniz® — home.css
   ========================================================================== */

/* --------------------------------------------------------------- hero
   The live site set #FEFCF8 headline type directly on this photograph with
   no scrim: 2.10:1 average, 1.02:1 at worst. The scrim below is the fix —
   a plum-deep gradient anchored to the text side, so the copy clears 4.5:1
   against every part of the image it covers while the portrait stays visible.
   Height is content-driven, not 100vh, so the page never gets pushed out of
   the first frame.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 3rem + 12vw, 9.5rem);
  min-height: min(78dvh, 760px);
  display: grid;
  align-items: end;
  background: var(--plum-deep);
}

.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 28%;
}

/* Sits inside .hero__media, which is its own stacking context, so this needs
   a POSITIVE z-index to paint above the photograph rather than behind it. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(29, 10, 34, .93) 0%,
      rgba(29, 10, 34, .86) 34%,
      rgba(29, 10, 34, .52) 58%,
      rgba(29, 10, 34, .22) 100%),
    linear-gradient(to top, rgba(29, 10, 34, .55), transparent 42%);
}

.hero__inner { position: relative; }
.hero__copy { max-width: 58ch; }

.hero h1 {
  color: #FFFFFF;
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.02;
}

.hero__lede {
  margin-top: var(--gap-m);
  max-width: 52ch;
  font-size: var(--step-1);
  line-height: 1.58;
  color: rgba(255, 255, 255, .9);
}
.hero__lede .say {
  font-family: var(--mono);
  font-size: .82em;
  letter-spacing: .04em;
  color: var(--gold-on-plum);
  white-space: nowrap;
}

.hero .actions { margin-top: var(--gap-l); }
.hero .tlink { color: #FFFFFF; border-color: rgba(255, 255, 255, .38); }
.hero .tlink:hover { border-color: #FFFFFF; }

.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

@media (max-width: 700px) {
  .hero__media img { object-position: 66% 22%; }
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(29, 10, 34, .95) 12%, rgba(29, 10, 34, .78) 52%, rgba(29, 10, 34, .55) 100%);
  }
}

/* --------------------------------------------------------------- thesis */
.thesis { background: var(--paper); }
.thesis h2 { max-width: 15ch; }

/* ---------------------------------------------------------------- doors
   Two panels, not three equal cards. Separated by a hairline rather than
   boxed in borders and shadows, so the emphasis stays on the type.
   -------------------------------------------------------------------------- */
.doors { background: var(--paper-2); }
.doors__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.door {
  display: grid;
  gap: var(--gap-s);
  align-content: start;
  padding: var(--gap-l) var(--gap-l) var(--gap-l) 0;
}
.door + .door {
  border-left: 1px solid var(--rule);
  padding-left: var(--gap-l);
  padding-right: 0;
}
.door__tag {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.door h3 { max-width: 20ch; font-size: var(--step-3); }
.door p { color: var(--ink-2); max-width: 46ch; }
.door .tlink { justify-self: start; margin-top: .35rem; }

@media (max-width: 820px) {
  .doors__grid { grid-template-columns: 1fr; }
  .door { padding: var(--gap-m) 0; }
  .door + .door {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: var(--gap-l);
  }
}

/* ------------------------------------------------------------ framework */
.framework__img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.pillars {
  list-style: none;
  margin: var(--gap-m) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
}
.pillars li span {
  display: inline-block;
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-on-plum);
}

/* -------------------------------------------------------------- founder */
.founder { background: var(--paper); }
.credentials li { font-size: var(--step--1); }

/* ---------------------------------------------------------------- guide */
.guide { background: var(--paper-2); padding-bottom: var(--sec-bottom); }
.guide__core {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-l);
  align-items: start;
}
.guide__core h2 { font-size: var(--step-3); max-width: 18ch; }
.guide__core .lede { font-size: var(--step-1); }
@media (max-width: 860px) {
  .guide__core { grid-template-columns: 1fr; gap: var(--gap-m); }
}
