/* Farobiy's photographic home and ruled prospectus pages. */
:root {
  --cream: #f8f7f2;
  --navy: #092741;
  --green: #007654;
  --line: #d5dcd6;
}

header {
  background: #f8f7f2f5;
  backdrop-filter: blur(16px);
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
}
.home-intro .eyebrow {
  color: var(--green);
  margin-bottom: 1.15rem;
}
.home-intro h1 {
  color: var(--navy);
  font-family: var(--sans);
  font-size: clamp(4.2rem, 9vw, 9.6rem);
  font-weight: 580;
  letter-spacing: -.042em;
  word-spacing: .06em;
  line-height: .92;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.home-intro h1 em {
  color: var(--green);
  font-style: normal;
  font-weight: 330;
}
.home-intro-copy {
  border-top: 1px solid #aabfb3;
  padding-top: 1.15rem;
  max-width: 31ch;
}
.home-intro-copy p { font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.55; }
.home-intro-copy .button { margin-top: 1.35rem; }
.button { border-radius: 3px; }
.button:hover { transform: none; }

.hero-scene { padding-inline: max(24px, calc((100% - 1320px) / 2)); }
.hero-scene[data-motion-ready] { padding-inline: 0; }
.hero-frame {
  position: relative;
  height: clamp(320px, 55vw, 710px);
  border-radius: 20px;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}
.hero-scene[data-motion-ready] .hero-frame {
  border-radius: var(--scene-radius, 20px);
  transform: scale(var(--scene-scale, .92));
  transform-origin: 50% 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}
.hero-credit {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem clamp(1rem, 3vw, 3rem) 1.15rem;
  color: #fff;
  background: linear-gradient(transparent, #092741e8);
  font-size: .8125rem;
}
.hero-credit a { text-decoration: underline; text-underline-offset: .2em; }
.facts { padding-block: clamp(1.35rem, 3vw, 2.75rem); }
.facts strong { font-size: clamp(1.6rem, 2.7vw, 2.5rem); }
.facts span { font-size: .875rem; }

.home-paths {
  background-color: #eeeee6;
  background-image: linear-gradient(#0927410c 1px, transparent 1px), linear-gradient(90deg, #0927410c 1px, transparent 1px);
  background-size: 44px 44px;
  padding-block: clamp(3.3rem, 7vw, 7rem);
}
.study-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}
.study-heading h2 { overflow-wrap: anywhere; font-size: clamp(2.6rem, 5vw, 5.5rem); max-width: 15ch; }
.study-heading p { max-width: 40ch; }
.study-plate { margin-bottom: clamp(1.65rem, 4vw, 3.5rem); overflow: hidden; }
.study-plate-frame { background: #efe7d5; box-shadow: inset 0 0 0 1px #09274123; }
.study-plate[data-motion-ready] .study-plate-frame { transform: scale(var(--scene-scale, .98)); }
.study-plate img { width: 100%; height: auto; }
.features { gap: clamp(1rem, 3vw, 3.2rem); }
.feature { padding: 1.25rem 0 0; }
.feature h3 { font-size: clamp(1.6rem, 2.75vw, 2.55rem); }
.feature p { max-width: 35ch; }
.feature-link { transition: border-color .2s ease, color .2s ease; }
.feature:hover .feature-link { color: var(--navy); border-color: var(--navy); }

.heritage-section {
  background: var(--navy);
  color: white;
  padding-block: clamp(3rem, 7vw, 7.5rem);
}
.heritage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
}
.heritage-frame { aspect-ratio: 1.1; overflow: hidden; background: #173a53; }
.heritage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--photo-zoom, 1));
}
.heritage-photo figcaption { color: #cadae2; font-size: .8125rem; padding-top: .65rem; }
.heritage-copy h2 { font-size: clamp(2.8rem, 5vw, 5.7rem); }
.heritage-copy h2 em { color: #a7d9c1; }
.heritage-copy p { margin-top: 1.35rem; color: #e2ebef; max-width: 39ch; }
.heritage-copy .text-link { border-color: #a7d9c1; color: #d8eee2; }

.page-masthead {
  background: #f0f2eb;
  border-bottom: 1px solid #bccbc0;
  color: var(--navy);
  padding-block: 1.65rem clamp(2.9rem, 7vw, 6rem);
}
.breadcrumbs { color: #486071; }
.masthead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(1.8rem, 6vw, 6rem);
  align-items: end;
}
.masthead-layout h1 { margin: 0; font-size: clamp(2.95rem, 5.35vw, 6rem); }
.masthead-layout h1 em { color: var(--green); }
.masthead-layout p { color: #334d5d; margin: 0; line-height: 1.7; }
.page-masthead .masthead-pattern { opacity: .17; }
.page-masthead + .section { padding-top: clamp(2.8rem, 6vw, 5.2rem); }
.brandbook-band {
  height: clamp(24px, 3vw, 44px);
  background: #0b273e url('/assets/brandbook-pattern.png') repeat-x left center / auto 100%;
}

@media (max-width: 1050px) {
  html { scroll-padding-top: 95px; }
  .home-intro h1 { font-size: clamp(3.6rem, 8.8vw, 7rem); }
}
@media (max-width: 700px) {
  .home-intro, .study-heading, .heritage-grid, .masthead-layout { grid-template-columns: minmax(0, 1fr); }
  .home-intro { gap: 1.4rem; }
  .home-intro h1 { font-size: clamp(3.35rem, 13vw, 6rem); }
  .home-intro-copy { max-width: 44ch; }
  .hero-frame { height: clamp(290px, 76vw, 490px); }
  .hero-image { object-position: 64% 53%; }
  .study-heading { gap: .8rem; }
  .study-heading p { max-width: 48ch; }
  .heritage-grid { gap: 1.75rem; }
  .masthead-layout { gap: 1rem; }
  .breadcrumbs { margin-bottom: 1.4rem; }
  .features { grid-template-columns: 1fr; gap: 1.3rem; }
  .feature { padding-block: 1.1rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-frame, .study-plate-frame, .heritage-image { transform: none !important; }
  .hero-scene { padding-inline: max(24px, calc((100% - 1320px) / 2)) !important; }
  .hero-frame { border-radius: 12px !important; }
}
