/* Homepage: engineering studio typography, real project imagery, forest palette. */
.home-forest { background: #f4f6f2; color: #172c25; }
.home-forest main { overflow: clip; }
.home-forest :is(h1, h2, h3, p) { text-wrap: pretty; }
.home-forest .c-label { color: #176044; font: 600 0.72rem/1.4 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.14em; }
.home-forest .c-h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.25rem, 4.25vw, 4rem); line-height: 1.04; letter-spacing: -0.045em; }
.home-forest .forest-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #172c25; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #8eaa98; }
.home-forest .forest-text-link:hover { color: #176044; text-decoration-color: #176044; }

/* One full-width film; paper keeps the typography clear over every scene. */
.home-forest .forest-hero { position: relative; isolation: isolate; display: flex; align-items: center; width: 100%; height: min(100svh, 930px); min-height: 780px; padding: 150px var(--gut) 135px; background: #e5ece3; }
.forest-hero-poster, .forest-hero-film { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.forest-hero-film { z-index: -2; }
.home-forest .forest-hero::after { position: absolute; inset: 0; z-index: -1; pointer-events: none; content: ""; background: linear-gradient(90deg, #f4f6f2 0%, rgb(244 246 242 / 0.98) 24%, rgb(244 246 242 / 0.92) 39%, rgb(244 246 242 / 0.55) 55%, rgb(244 246 242 / 0.05) 78%), linear-gradient(0deg, rgb(23 44 37 / 0.6), transparent 20%); }
.forest-hero-content { width: min(55%, 730px); }
.forest-hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; color: #365647; font-size: 0.84rem; font-weight: 500; }
.forest-hero-kicker > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #176044; }
.forest-hero-title { margin: 0; font: 700 clamp(3.6rem, 6.2vw, 6rem)/0.99 "Inter Tight", system-ui, sans-serif; letter-spacing: -0.065em; color: #172c25; text-wrap: initial !important; }
.forest-hero-title em { color: #176044; font-style: normal; }
.forest-hero-description { max-width: 510px; margin: 30px 0 0; color: #344d40; font-size: clamp(1.05rem, 1.28vw, 1.2rem); line-height: 1.65; }
.forest-hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.forest-hero-actions .btn { min-height: 50px; padding-inline: 24px; font-weight: 600; }
.forest-hero-note { margin-top: 26px; max-width: 490px; color: #4a5b51; font-size: 0.875rem; line-height: 1.7; }
.forest-hero-note a { color: #172c25; text-decoration: underline; text-underline-offset: 3px; }
.forest-film-caption { position: absolute; right: var(--gut); bottom: 38px; left: var(--gut); max-width: calc(100% - 320px); color: #172c25; }
.forest-film-caption > span { font: 500 0.73rem/1.5 "Inter Tight", system-ui, sans-serif; letter-spacing: 0.13em; text-transform: uppercase; }
.forest-film-caption p { margin-top: 6px; font-size: 0.88rem; color: #365647; }
.forest-film-toggle { position: absolute; right: var(--gut); bottom: 38px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; min-width: 134px; padding: 10px 15px; border: 1px solid rgb(255 255 255 / 0.55); border-radius: 6px; background: rgb(23 44 37 / 0.75); color: #fff; font: 500 0.82rem/1.3 "Inter Tight", system-ui, sans-serif; }
.forest-film-toggle:hover { background: #176044; }
.forest-film-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* All projects stay in one touch, keyboard and button-controlled horizontal rail. */
.home-forest .c-work { padding: 88px var(--gut) 0; }
.home-forest .c-head { gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #aebdaf; align-items: end; }
.home-forest .c-head .c-label { margin-bottom: 10px; }
.home-forest .c-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 32%, 430px); grid-template-columns: none; grid-template-rows: auto; gap: 24px; width: 100%; max-width: 100%; min-width: 0; margin: 32px 0 0; padding: 8px 2px 20px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: thin; scrollbar-color: #7f9b89 #e3eadf; }
.home-forest .c-row::-webkit-scrollbar { display: block; height: 6px; }
.home-forest .c-row::-webkit-scrollbar-track { background: #e3eadf; }
.home-forest .c-row::-webkit-scrollbar-thumb { background: #7f9b89; border-radius: 3px; }
.home-forest .c-row > article { min-width: 0; scroll-snap-align: start; }
.home-forest .c-row .c-card { padding: 0 0 24px; border: 0; border-bottom: 1px solid #d5ddd2; border-radius: 0; background: transparent; color: #172c25; box-shadow: none; transform: none; }
.home-forest .c-row .c-card:hover { background: transparent; box-shadow: none; transform: none; }
.home-forest .c-tag { margin: 0 0 12px; padding: 0; background: none; color: #176044; font-size: 0.7rem; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; }
.home-forest .c-card :is(video, img) { margin-bottom: 20px; border-radius: 7px; aspect-ratio: 16 / 9; object-fit: cover; background: #e0e8df; }
.home-forest .c-card h3 { padding: 0; color: #172c25; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.18; }
.home-forest .c-card-description { padding: 0; margin-top: 10px; max-width: 56ch; color: #4a5b51; font-size: 1rem; line-height: 1.6; }
.home-forest .c-card-action { padding: 22px 0 0; color: #176044; font-size: 0.85rem; }

.forest-services { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); padding: 94px var(--gut) 0; }
.forest-section-intro > .c-label { margin-bottom: 16px; }
.forest-section-intro > p:not(.c-label) { max-width: 42ch; margin: 24px 0 16px; font-size: 1.05rem; line-height: 1.7; color: #4a5b51; }
.forest-service-list { margin: 0; padding: 0; list-style: none; }
.forest-service-list li { display: grid; grid-template-columns: 32px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid #c5d0c2; }
.forest-service-number { padding-top: 3px; color: #7a9282; font-size: 0.85rem; }
.forest-service-list h3 { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.03em; }
.forest-service-list p { margin-top: 10px; color: #4a5b51; font-size: 1rem; line-height: 1.6; }
.forest-industries { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 84px var(--gut) 0; padding: 40px 0; border-block: 1px solid #c5d0c2; }
.forest-industries h2 { margin-top: 15px; font-size: 1.65rem; line-height: 1.2; letter-spacing: -0.03em; }
.forest-industry-links { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 0 24px; }
.forest-industry-links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #d5ddd2; color: #176044; font-size: 0.95rem; }

/* Keep the original service, process and enquiry content in the new rhythm. */
.home-forest .c-tickers { margin-top: 60px; }
.home-forest .c-pill { font-family: "Inter Tight", system-ui, sans-serif; font-size: 1rem; font-weight: 500; }
.home-forest .c-scene { margin-top: 78px; padding: 36px 0 0; border-top: 1px solid #aebdaf; border-radius: 0; background: transparent; }
.home-forest .c-steps { gap: 30px; margin-top: 32px; }
.home-forest .c-steps li { padding: 24px 0; border-top: 1px solid #d5ddd2; border-radius: 0; background: transparent; }
.home-forest .c-steps h3 { font-weight: 600; }
.home-forest .c-final { margin-top: 70px; padding-top: 45px; border-top: 1px solid #aebdaf; }
.home-forest .c-form-card { padding: 28px; border: 1px solid #d5ddd2; border-radius: 8px; background: #fbfcf9; box-shadow: none; }
.home-forest .c-form-title { font-weight: 600; }
.home-forest .c-call { border-left: 2px solid #176044; background: transparent; }
.home-forest .c-path { gap: 16px; }
.home-forest .c-path li { border-radius: 4px; background: #e7ede4; }
.home-forest .calendly-wrap { background: transparent; border-color: #d5ddd2; }

@media (max-width: 1100px) {
  .home-forest .forest-hero { min-height: 760px; height: auto; }
  .forest-hero-content { width: 65%; }
  .forest-hero-title { font-size: clamp(3.5rem, 6.6vw, 5.25rem); }
  .home-forest .forest-hero::after { background: linear-gradient(90deg, #f4f6f2 0%, rgb(244 246 242 / .98) 30%, rgb(244 246 242 / .88) 47%, rgb(244 246 242 / .24) 83%), linear-gradient(0deg, rgb(23 44 37 / .65), transparent 23%); }
}
@media (max-width: 760px) {
  .home-forest .forest-hero { min-height: 960px; padding: 128px 24px 330px; align-items: flex-start; height: auto; }
  .forest-hero-content { width: 100%; }
  .forest-hero-title { font-size: clamp(3.05rem, 10.9vw, 4.9rem); line-height: 1.01; }
  .forest-hero-kicker { margin-bottom: 24px; font-size: .78rem; }
  .forest-hero-description { max-width: 34rem; margin-top: 24px; font-size: 1rem; }
  .forest-hero-actions { align-items: flex-start; gap: 12px 20px; margin-top: 24px; }
  .forest-hero-actions .btn { padding-inline: 18px; }
  .forest-hero-note { margin-top: 20px; font-size: .82rem; }
  .forest-hero-poster, .forest-hero-film { object-position: 65% bottom; }
  .home-forest .forest-hero::after { background: linear-gradient(180deg, #f4f6f2 0%, rgb(244 246 242 / .98) 45%, rgb(244 246 242 / .85) 61%, rgb(244 246 242 / .05) 80%), linear-gradient(0deg, rgb(23 44 37 / .68), transparent 28%); }
  .forest-film-caption { left: 24px; right: 24px; bottom: 88px; max-width: none; color: #fff; }
  .forest-film-caption p { max-width: 300px; font-size: .78rem; color: #edf4ec; }
  .forest-film-toggle { right: 24px; bottom: 25px; }
  .home-forest .c-work { padding-top: 55px; }
  .home-forest .c-head { align-items: start; gap: 16px; }
  .home-forest .c-row { grid-auto-columns: calc((100% - 18px) / 1.12); gap: 18px; margin-top: 26px; }
  .home-forest .c-card h3 { font-size: 1.55rem; }
  .home-forest .c-card :is(video, img) { margin-bottom: 16px; }
  .forest-services, .forest-industries { grid-template-columns: 1fr; gap: 32px; }
  .forest-services { padding-top: 55px; }
  .forest-industries { margin-top: 50px; padding-block: 30px; }
  .forest-industry-links { grid-template-columns: 1fr; }
  .home-forest .c-scene { margin-top: 50px; }
  .home-forest .c-steps { display: grid; grid-template-columns: 1fr; overflow: visible; margin: 24px 0 0; padding: 0; gap: 0; }
  .home-forest .c-steps li { width: auto; }
  .home-forest .c-final { margin-top: 45px; padding-top: 30px; }
  .home-forest .c-form-card { padding: 22px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .forest-hero-film { visibility: hidden; }
  .forest-hero.is-playing-manually .forest-hero-film { visibility: visible; }
}

/* Approved capability film: keep graphics below the navigation and in view. */
.forest-hero-poster, .forest-hero-film {
  top: 76px;
  height: calc(100% - 76px);
  object-fit: contain;
  object-position: right top;
}
@media (max-width: 760px) {
  .home-forest .forest-hero {
    min-height: 1090px;
    padding-bottom: 470px;
  }
  .forest-hero-poster, .forest-hero-film {
    top: auto;
    bottom: 150px;
    height: 320px;
    object-fit: cover;
    object-position: right center;
  }
  .home-forest .forest-hero::after { background: none; }
  .forest-film-caption { bottom: 84px; color: #172c25; }
  .forest-film-caption p { color: #365647; max-width: none; }
}

/* Keep sector choices and cross-industry capabilities distinct. */
.forest-capability-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; margin-top: 16px; color: #4a5b51; font-size: .85rem; }
.forest-capability-links a { display: inline-flex; align-items: center; min-height: 44px; color: #176044; text-decoration: underline; text-underline-offset: 4px; }
