/* ==========================================================================
   home.css, carlpayne.com
   Layout for index.html only: hero, statement, work menu, the sitting.
   Requires base.css to be loaded first.
   ========================================================================== */

/* ----- Hero: copy left, full-height image right ---------------------------- */
.hero {
  height: 100svh;
  min-height: 40rem;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 3.2rem 3rem 3.2rem;
  border-right: 1px solid var(--hairline-soft);
}

.hero-copy .est { margin-bottom: 2.2rem; }

/* The name. Embossed caps, the site's visual signature. */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: var(--relief);
}

h1 .surname { color: var(--brass); }

.hero-line {
  margin-top: 2rem;
  max-width: 34ch;
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-line em { font-style: italic; color: var(--bone-dim); }

.hero-ctas { margin-top: 2.6rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }

.hero-img { position: relative; overflow: hidden; }

.hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-img figcaption {
  position: absolute;
  bottom: 1.1rem;
  right: 1.4rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(234, 227, 214, .75);
  background: rgba(22, 19, 16, .55);
  padding: .35rem .6rem;
  backdrop-filter: blur(2px);
}

/* Gentle entrance for the hero copy. */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero-copy > * { animation: rise .9s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-copy > *:nth-child(4) { animation-delay: .36s; }

@media (max-width: 880px) {
  /* Stack: image on top, copy below. */
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 0; }
  .hero-img { order: -1; height: 62svh; }
  .hero-copy {
    padding: 2.4rem 1.4rem 2.8rem;
    border-right: none;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .hero-copy .est { margin-bottom: 1.4rem; }
}

/* ----- Statement: one centered paragraph with a footnote -------------------- */
.statement {
  padding: 7rem 2rem;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--hairline-soft);
}

.statement p {
  max-width: 46ch;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.6;
  font-weight: 300;
  text-align: center;
}

.statement .footnote-ref { color: var(--brass); font-style: normal; }

.statement .footnote {
  display: block;
  margin-top: 2.4rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}


/* ----- The Company: who this is for ------------------------------------------ */
.company {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2rem 7rem;
  text-align: center;
}

.company-eyebrow { display: block; margin-bottom: 1.6rem; }

.company-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  margin-bottom: 1.6rem;
}

.company-body { color: var(--bone); margin-bottom: 2.2rem; }

/* Footnote in ticket mono, same wink device as the statement. */
.company-note {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ----- The Work: galleries listed like menu courses ------------------------- */
.work { max-width: 1060px; margin: 0 auto; padding: 4rem 2rem 8rem; }

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.1rem;
  margin-bottom: .5rem;
}

.work-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* One course row: thumbnail | name … leaders … description */
.course {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.8rem;
  align-items: center;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: background .3s;
}

.course:hover { background: var(--ground-2); }

.course .thumb {
  width: 96px;
  height: 96px;
  overflow: hidden;
  filter: grayscale(18%);
  transition: filter .4s;
}

.course:hover .thumb { filter: grayscale(0); }

.course .thumb img { width: 100%; height: 100%; object-fit: cover; }

.course-line { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }

.course-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: .05em;
  white-space: nowrap;
}

/* Dotted menu leaders, retired from course rows (description now stacks
   below the name) but kept for possible reuse elsewhere. */
.leaders { display: none; }

.course-desc {
  font-style: italic;
  color: var(--bone-dim);
  font-size: 1.02rem;
}

.course-sub {
  grid-column: 2;
  margin-top: .35rem;
  max-width: 52ch;
  color: var(--bone-dim);
  font-size: .95rem;
}

.course-wrap { display: block; }
.course-wrap:hover .course-name { color: var(--brass); }

@media (max-width: 640px) {
  .course { grid-template-columns: 72px 1fr; gap: 1.1rem; }
  .course .thumb { width: 72px; height: 72px; }
  .course-name { font-size: 1.25rem; }
  .course-desc { font-size: .92rem; }
  .course-sub { display: none; }
}

/* ----- The Sitting: commission block ----------------------------------------- */
.sitting {
  border-top: 1px solid var(--hairline);
  background: var(--ground-2);
  padding: 6.5rem 2rem;
}

.sitting-inner { max-width: 680px; margin: 0 auto; text-align: center; }

.sitting h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  margin: 1.1rem 0 1.6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sitting p { max-width: 54ch; margin: 0 auto 1.1rem; }
.sitting p em { color: var(--bone-dim); }

/* "Market price" chit. */
.mp {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  margin: 1.2rem 0 2rem;
  border: 1px solid rgba(180, 154, 102, .35);
  padding: .6rem 1rem;
}
