.home-page {
  --home-ink: #193d33;
  --home-frame: min(80rem, calc(100% - clamp(2rem, 7vw, 8rem)));
}
.home-page :is(.header .nav-wrap, #home-view .container) {
  width: var(--home-frame);
}
/* The picture belongs to its zoom link, and is positioned against the banner. */
#home.hero {
  position: relative;
  isolation: isolate;
  background: #eef5eb;
  padding: clamp(2.6rem, 4.5vw, 4.7rem) 0 clamp(1.25rem, 2.6vw, 2.5rem);
  border: 0;
  color: #fff;
  text-align: left;
}
#home.hero::before, #home .hero-aerial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#home .hero-aerial {
  z-index: -2;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: 55% 47%;
}
#home.hero::before {
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgb(248 251 244 / 98%) 0%, rgb(248 251 244 / 94%) 27%, rgb(248 251 244 / 78%) 46%, transparent 76%);
}
.home-lead { min-width: 0; }
.hero-story {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  min-height: clamp(10rem, 13vw, 13.5rem);
}
.home-intro { max-width: min(52rem, 100%); align-self: center; }
#home h1 {
  margin: 0;
  max-width: 100%;
  font: 800 clamp(2.4rem, 3.8vw, 3.85rem)/1.08 var(--site-font);
  text-transform: uppercase;
  letter-spacing: -.024em;
  color: #153d2d;
}
#home h1 span { display: block; color: inherit; }
#home h1 .hero-title-phrase { display: inline-block; white-space: nowrap; }
#home .hero-description {
  max-width: 54ch;
  margin: .8rem 0 0;
  line-height: 1.5;
  font-size: clamp(1.0625rem, 1.35vw, 1.2rem);
  color: #243e32;
}
.hero-credit {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  margin: 0;
  max-width: 100%;
}
.hero-credit a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border-radius: .45rem;
  color: white;
  background: rgb(10 43 36 / 91%);
  font-size: .98rem;
  line-height: 1.25;
  font-weight: 600;
}
.hero-credit a:hover { background: #0a362c; text-decoration: underline; }
.home-photo-open { cursor: zoom-in; }
#home .search-bar {
  display: block;
  margin: clamp(1.35rem, 2.3vw, 2.4rem) 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#home .hero-types {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  min-width: 0;
  margin: 0 0 .45rem;
  padding: 0;
  border: 0;
}
#home .hero-types label { position: relative; display: block; cursor: pointer; }
#home .hero-types input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
#home .hero-types label span {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .4rem 1rem;
  border: 1px solid #92aa9f;
  border-radius: 2rem;
  background: #f4f8ee;
  color: #214531;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
}
#home .hero-types input:checked + span { color: #fff; border-color: #176548; background: #176548; }
#home .hero-types input:focus-visible + span, #home .hero-credit a:focus-visible {
  outline: 3px solid #f2c96b;
  outline-offset: 3px;
}
.hero-search-fields {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: .4rem .85rem;
  padding: .65rem;
  border-radius: .8rem;
  background: white;
  color: #173d32;
  box-shadow: 0 .3rem 1.3rem rgb(0 20 15 / 15%);
}
#home .hero-search-fields label {
  display: flex;
  flex: 1 1 12rem;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: .35rem .7rem;
  text-align: left;
  cursor: pointer;
}
#home .hero-search-fields .hero-search-query { flex: 1.6 1 15rem; }
#home .hero-search-fields label + label { border-left: 1px solid #d9e2d9; padding-left: 1rem; }
#home .hero-search-fields label:focus-within { outline: 2px solid #367353; border-radius: .25rem; }
#home .hero-search-fields label > span { color: #425c50; font-size: .875rem; font-weight: 650; line-height: 1.25; }
#home .hero-search-fields :is(input, select) {
  min-height: 1.9rem; height: auto; padding: .1rem 0; margin: 0;
  width: 100%; color: #203c30; background: white;
  border: 0; border-radius: 0; outline: none; font-size: 1.1rem; font-weight: 700;
}
#home .hero-search-fields input::placeholder { color: #526457; opacity: 1; }
#home .hero-submit {
  flex: 0 0 auto;
  min-height: 3rem;
  padding: .65rem clamp(1.1rem, 2.6vw, 2.65rem);
  border: 1px solid #e5bf6d;
  border-radius: .48rem;
  background: #eac779;
  color: #233728;
  font-size: 1.13rem;
  font-weight: 750;
}
#home .hero-submit:hover { background: #f5d798; transform: none; }
#home #query { scroll-margin-top: 10rem; }
#home-view :is(.section-heading, .feng-heading, .home-guide-intro) h2,
#home-view #full-guide > h2 {
  color: var(--home-ink);
  font: 800 clamp(1.7rem, 2.4vw, 2.55rem)/1.2 var(--site-font);
  letter-spacing: -.035em;
  text-wrap: balance;
}
#home-view #projects { padding-top: clamp(1.5rem, 2.8vw, 2.75rem); }
#home-view #projects .section-heading { margin-bottom: 1.1rem; }
#home-view #projects .text-button { font-weight: 600; }
.home-page .floating-call { display: none; }

@media (max-width: 53rem) {
  #home.hero { padding-block: 2.1rem 1.25rem; }
  #home.hero::before {
    background: linear-gradient(180deg, rgb(250 252 246 / 97%) 0%, rgb(250 252 246 / 93%) 28%, rgb(250 252 246 / 22%) 55%, rgb(246 249 239 / 58%) 100%);
  }
  #home .hero-aerial { object-position: 70% 50%; }
  .hero-story { display: grid; justify-content: stretch; min-height: 0; gap: 2rem; }
  .home-intro { max-width: min(34rem,100%); margin: auto; text-align: center; }
  #home h1 { font-size: min(clamp(2.12rem, 6vw, 3.05rem), 13vw); }
  #home .hero-description { margin: .65rem auto 0; font-size: 1.0625rem; }
  .hero-credit { justify-content: center; }
  #home .search-bar { margin-top: 1.25rem; }
  #home #query { scroll-margin-top: 5.5rem; }
  #home-view #projects .section-heading { gap: .2rem 1rem; margin-bottom: .75rem; }
}
@media (max-width: 39rem) {
  #home .hero-search-fields { flex-direction: column; gap: .25rem; }
  #home .hero-search-fields :is(label, .hero-search-query) { flex: none; padding: .38rem .55rem; }
  #home .hero-search-fields .hero-search-query { flex: none; }
  #home .hero-search-fields label + label { border: 0; border-top: 1px solid #d9e2d9; padding: .57rem .55rem .38rem; }
  #home .hero-types { gap: .3rem; }
  #home .hero-types label span { padding-inline: .72rem; font-size: .96rem; }
  .hero-credit a { font-size: .92rem; padding-inline: .55rem; }
  #home .hero-submit { width: 100%; }
}
