/* Homepage exploration. Shared page layouts remain in site.css. */
.home-document { scroll-padding-top: 0; }
.home-page { --wrap: 1360px; }
.home-panel { padding-block: clamp(72px, 9vh, 140px); }
.home-panel h2 { font-size: clamp(36px, 3.4vw, 52px); line-height: 1.16; text-wrap: balance; }
.home-eyebrow { font-size: 13px; line-height: 1.5; letter-spacing: .06em; margin-bottom: 23px; }
.home-panel .text-link { min-height: 44px; align-items: center; }
.home-panel .panel-intro > .text-link { margin-top: 22px; }
.panel-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: clamp(64px, 8vw, 150px); align-items: center; }
.panel-intro > p:not(.home-eyebrow) { margin-top: 25px; max-width: 510px; }
.panel-intro > p + p:not(.home-eyebrow) { margin-top: 18px; }
.home-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 25px; min-height: 52px; padding: 13px 21px; font-size: 15px; font-weight: 600; text-decoration: none; background: var(--paper); color: var(--navy); border: 1px solid var(--paper); }
.home-button:hover { background: var(--chalk); color: var(--navy); border-color: var(--chalk); }

.home-hero { background: var(--blue); color: #fff; padding-block: 54px 24px; display: flex; flex-direction: column; justify-content: center; }
.hero-layout { flex: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: clamp(50px, 6vw, 110px); align-items: center; padding-block: 16px 45px; }
.hero-copy h1 { color: #fff; font-size: clamp(48px, 4.8vw, 72px); max-width: 10.5em; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.home-hero .home-eyebrow { color: #dce8f3; letter-spacing: .025em; }
.hero-opening { margin-top: 30px; max-width: 540px; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 32px; }
.home-hero .text-link, .hero-base a { color: #fff; }
.hero-image { min-width: 0; }
.hero-image img { width: 100%; height: clamp(380px, 52svh, 690px); object-fit: cover; object-position: 53% 60%; }
.hero-image figcaption { color: #dce8f3; font-size: 12px; margin-top: 12px; }
.hero-base { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #ffffff40; padding-top: 17px; font-size: 12px; color: #dce8f3; }
.hero-base a { display: inline-flex; align-items: center; gap: 25px; min-height: 38px; text-decoration: none; }
.hero-base a:hover { text-decoration: underline; }
.home-hero a:focus-visible, .history-panel a:focus-visible, .enquiry-panel a:focus-visible { outline-color: #fff; }

.services-panel { background: var(--chalk); }
.services-panel .home-eyebrow { color: var(--blue); }
.home-service-row { display: block; padding: 26px 0 28px; border-top: 1px solid #b8c8d5; text-decoration: none; color: var(--ink); }
.home-service-row:last-child { border-bottom: 1px solid #b8c8d5; }
.home-service-row h3 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.35; padding-right: 38px; position: relative; }
.home-service-row h3 span { position: absolute; right: 0; font-weight: 400; }
.home-service-row p { margin-top: 11px; font-size: 16px; line-height: 1.65; max-width: 550px; }
.home-service-row:hover h3 { text-decoration: underline; text-underline-offset: 5px; }

.history-panel { background: var(--navy); color: #e1e9f0; }
.history-panel h2, .history-panel h3, .history-panel a { color: #fff; }
.history-panel .home-eyebrow { color: #b9cfe3; }
.home-history-evidence figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.home-history-evidence figcaption { font-size: 12px; margin-top: 10px; }
.home-accreditation { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 25px; margin-top: 32px; }
.home-accreditation > img { width: 116px; height: 116px; object-fit: contain; padding: 8px; }
.home-accreditation h3 { font-size: 18px; }
.home-accreditation p { font-size: 14px; margin-top: 7px; }
.home-accreditation .text-link { font-size: 14px; margin-top: 4px; }

.projects-panel { background: var(--paper); }
.projects-panel .home-eyebrow { color: var(--muted); }
.projects-panel .project-pack-note { font-size: 14px; color: var(--muted); max-width: 360px; }
.home-project-list > a { display: block; border-top: 1px solid #d3d4d2; padding: 20px 0 23px; text-decoration: none; }
.home-project-list > a:last-child { border-bottom: 1px solid #d3d4d2; }
.home-project-list h3 { font-size: 22px; line-height: 1.35; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.home-project-list > a > span { display: flex; justify-content: space-between; gap: 20px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.home-project-list > a > span > span { font-size: 18px; line-height: 1; color: var(--blue); }
.home-project-list > a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }

.enquiry-panel { background: var(--blue); color: #fff; }
.enquiry-panel h2, .enquiry-panel .home-contact-links a { color: #fff; }
.enquiry-panel .home-button { margin-top: 30px; }
.home-contact-links { border-left: 1px solid #ffffff55; padding-left: 50px; }
.home-contact-links > span { display: block; font-size: 13px; color: #dce8f3; }
.home-contact-links .home-phone { display: block; width: fit-content; font-size: clamp(30px, 3vw, 44px); line-height: 1.4; margin: 8px 0 28px; text-decoration: none; }
.home-contact-links .home-phone:hover { text-decoration: underline; }
.home-contact-links .email { display: inline-block; font-size: clamp(16px, 1.5vw, 22px); margin-top: 10px; }
.home-contact-links p { margin-top: 38px; font-size: 14px; color: #dce8f3; }

/* Viewport-sized chapters. Long content grows and remains freely readable. */
@media screen {
  .home-panel { min-height: 100svh; display: flex; align-items: center; }
  .home-hero { min-height: calc(100svh - var(--opening-header-height)); align-items: stretch; }
  .enquiry-panel { min-height: 70svh; }
}
@media (max-width: 1100px) {
  .panel-grid { gap: 55px; }
  .hero-layout { gap: 40px; }
  .hero-copy h1 { font-size: 51px; }
  .hero-opening { font-size: 17px; }
  .hero-image img { height: 430px; }
  .home-contact-links { padding-left: 30px; }
}
@media (max-width: 800px) {
  .home-panel { padding-block: 64px; }
  .home-hero { padding-block: 38px 18px; }
  .hero-layout { gap: 30px; padding-block: 0 32px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-opening { font-size: 16px; line-height: 1.7; margin-top: 23px; }
  .home-eyebrow { font-size: 12px; margin-bottom: 20px; }
  .hero-actions { gap: 10px 20px; margin-top: 24px; }
  .hero-image img { height: 440px; }
  .panel-grid { grid-template-columns: 1fr; gap: 38px; }
  .panel-intro > p:not(.home-eyebrow) { max-width: 640px; }
  .home-history-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .home-accreditation { grid-template-columns: 90px minmax(0, 1fr); gap: 18px; margin-top: 0; }
  .home-accreditation > img { width: 90px; height: 90px; }
  .home-contact-links { padding: 30px 0 0; border-left: 0; border-top: 1px solid #ffffff55; }
}
@media (max-width: 600px) {
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { font-size: clamp(37px, 9.7vw, 52px); max-width: 12em; }
  .hero-opening { max-width: 500px; }
  .hero-image img { height: auto; aspect-ratio: 16/10; }
  .hero-base { font-size: 11px; gap: 15px; }
  .hero-base a { gap: 12px; }
  .hero-base > span { max-width: 120px; }
  .home-panel h2 { font-size: 36px; }
  .home-service-row { padding-block: 23px; }
  .home-service-row h3 { font-size: 21px; }
  .home-service-row p { font-size: 16px; }
  .home-history-evidence { display: block; }
  .home-accreditation { margin-top: 27px; }
  .home-project-list h3 { font-size: 23px; }
  .enquiry-panel .home-button { margin-top: 25px; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .home-document { scroll-snap-type: y mandatory; }
  .home-panel { scroll-snap-align: start; scroll-snap-stop: always; }
  .home-hero { scroll-margin-top: var(--opening-header-height); }
  .home-page .site-footer { scroll-snap-align: end; scroll-snap-stop: always; }
}
@media print {
  .home-panel { min-height: 0; display: block; padding-block: 25px; background: #fff; color: var(--ink); }
  .home-panel h1, .home-panel h2, .home-panel h3, .home-panel a { color: var(--ink); }
  .home-panel p, .home-panel figcaption { color: var(--ink); }
  .hero-base { display: none; }
}
