/* Full-width hero with a desktop crop anchored to the desk and book. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  aspect-ratio: 1672 / 941;
  min-height: 0;
  background: #e9ded1;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(250,248,244,.95) 0%, rgba(250,248,244,.85) 30%, rgba(250,248,244,.4) 46%, rgba(250,248,244,0) 62%);
}
.hero-copy {
  width: 47%;
  max-width: 760px;
  padding: clamp(36px, 4vw, 76px) 0;
  margin-left: 5.5%;
  align-self: center;
}
.hero-copy .eyebrow {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .12em;
  margin-bottom: 26px;
}
.hero h1 {
  max-width: 100%;
  font-size: clamp(44px, 4vw, 72px);
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.hero h1 em { display: block; }
.hero-copy > p {
  max-width: 490px;
  margin: 26px 0 30px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.8;
  color: #514a46;
}
.hero-actions { gap: 22px; }
.hero-actions .button, .hero-actions .text-link { white-space: nowrap; }
.hero-note { margin-top: 30px; color: #514a46; font-size: 13px; }
h2 { letter-spacing: -.025em; line-height: 1.17; }
@media (min-width: 1101px) {
  .hero {
    aspect-ratio: auto;
    min-height: 640px;
    height: calc(100svh - 100px);
  }
  .hero-background {
    object-fit: cover;
    object-position: center bottom;
  }
  .hero-copy {
    align-self: start;
    padding-top: clamp(32px, 2.4vw, 46px);
    padding-bottom: 32px;
  }
  .section, footer { padding-left: max(5.5%, calc((100% - 1480px) / 2)); padding-right: max(5.5%, calc((100% - 1480px) / 2)); }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(50px, 6vw, 100px); }
  .about { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(50px, 6vw, 100px); }
  .section-heading > div { flex: 1 1 58%; min-width: 0; }
  .section-heading > p { flex: 0 1 36%; }
  .method-heading h2 { flex: 1 1 68%; }
  .method-heading > p { flex: 0 1 27%; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-copy { width: 49%; margin-left: 4%; padding: 32px 0; }
  .hero h1 { font-size: clamp(36px, 4.3vw, 47px); }
  .hero-copy .eyebrow { font-size: 10px; margin-bottom: 20px; }
  .hero-copy > p { font-size: 15px; line-height: 1.7; margin: 20px 0 24px; }
  .hero-actions { gap: 16px; }
  .hero-actions .button { padding: 13px 18px; }
  .hero-note { margin-top: 20px; font-size: 12px; }
  .hero::before { background: linear-gradient(90deg, #faf8f4ed 0%, #faf8f4d9 35%, #faf8f46b 51%, transparent 66%); }
}
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; aspect-ratio: auto; background: var(--paper); }
  .hero::before { display: none; }
  .hero-background { position: relative; inset: auto; z-index: auto; order: 2; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; }
  .hero-copy { width: auto; max-width: none; margin: 0; padding: 42px 7% 32px; }
  .hero h1 { font-size: clamp(36px, 8.5vw, 58px); line-height: 1.14; }
  .hero-copy .eyebrow { font-size: 9px; letter-spacing: .08em; margin-bottom: 22px; }
  .hero-copy > p { font-size: 16px; margin: 22px 0 26px; }
  .hero-actions { gap: 20px; }
  .hero-note { margin-top: 25px; font-size: 12px; }
}

/* The photograph stays anchored to the viewport while the hero scrolls. */
.hero { clip-path: inset(0); }
.hero-background {
  position: fixed;
  inset: 100px 0 auto;
  height: calc(100svh - 100px);
  object-fit: cover;
  object-position: center bottom;
}
@media (min-width: 1101px) {
  .hero-background { min-height: 640px; }
}
@media (max-width: 760px) {
  .hero { padding-bottom: 56.28vw; }
  .hero-background {
    position: fixed;
    inset: 82px 0 auto;
    z-index: -2;
    height: calc(100svh - 82px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 65% center;
  }
  .hero-copy { background: var(--paper); }
}
@media (min-width: 761px) and (max-width: 1100px) { .hero-background { height: 56.28vw; } }
/* Art-directed portrait source for phones; desktop composition stays intact. */
.hero-picture { display: contents; }
@media (max-width: 760px) {
  .hero { padding-bottom: min(145vw, 760px); }
  .hero-background { object-position: center bottom; }
  .hero-copy { padding: 34px 7% 32px; }
  .hero h1 { font-size: clamp(34px, 8.6vw, 52px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-actions .button { width: 100%; }
}
@media (max-width: 760px) {
  .hero { padding-bottom: 0; }
  .hero-picture { display: block; order: 2; width: 100%; }
  .hero-background { position: relative; inset: auto; z-index: auto; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; }
}

/* Mobile art direction: full portrait with a localized cream transition. */
@media (max-width: 760px) {
  .hero { min-height: calc(100svh - 82px); background: var(--paper); }
  .hero-copy { position: relative; z-index: 1; padding: 34px clamp(20px, 6vw, 24px) 22px; background: var(--paper); }
  .hero-copy .eyebrow { font-size: 9px; line-height: 1.6; letter-spacing: .08em; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); line-height: 1.08; letter-spacing: -.025em; overflow-wrap: normal; }
  .hero-copy > p { font-size: 16px; line-height: 1.65; margin: 22px 0 26px; }
  .hero-actions { gap: 16px; }
  .hero-actions .button { min-height: 56px; display: flex; align-items: center; justify-content: center; padding: 14px 16px; }
  .hero-note { margin-top: 28px; font-size: 12px; line-height: 1.6; }
  .hero-picture { position: relative; }
  .hero-picture::after { content: ''; position: absolute; inset: -1px 0 auto; height: 16%; background: linear-gradient(180deg, var(--paper) 0%, rgba(250,248,244,.88) 22%, rgba(250,248,244,.35) 60%, rgba(250,248,244,0) 100%); pointer-events: none; }
  .hero-background { aspect-ratio: 941 / 1672; object-fit: contain; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .hero-copy .eyebrow, .hero-actions { animation: hero-mobile-fade 600ms ease-out both; }
  .hero h1 { animation: hero-mobile-arrive 650ms ease-out both; }
}
@keyframes hero-mobile-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-mobile-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Keep the portrait and wall logo below the navigation on wide screens. */
@media (min-width: 761px) {
  .hero-background { object-position: center top; }
}
