﻿.home {
  --green: #173d35;
  --paper: #f8faf8;
  --line: #d9e3dd;
  --muted: #4c625a;
  --tint: #edf4ef;
  font-size: 1rem;
}

.home header { background: #f8faf8f5; }
.home header img { display: block; }
.home section { padding: clamp(2.75rem, 6vw, 5.5rem) 7%; }
.home .hero {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  min-height: auto;
}
.home .eyebrow {
  margin: 0;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home h1 { font-size: clamp(3rem, 6.7vw, 6.25rem); }
.home h2 { font-size: clamp(2.125rem, 4.3vw, 4rem); margin-top: 0; }
.home .lead { max-width: 38rem; font-size: clamp(1.125rem, 2vw, 1.3rem); }
.home .note, .home .field-hint { color: var(--muted); font-size: .875rem; }
.home .button { border-radius: 8px; }
.home a:focus-visible, .home button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.home .founder-card {
  max-width: 27rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--tint);
}
.home .founder-card img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}
.home .founder-card h2 { margin: 1.25rem 0 .75rem; font-size: 2rem; }
.home .founder-card p { color: var(--muted); }
.home .founder-card a, .home .services a { font-weight: 650; text-underline-offset: .2em; }
.home #capabilities, .home #request { background: #fff; }
.home .services { gap: 1rem; border: 0; }
.home .services article {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.home .services h3, .home .services p { margin: 0; }
.home .services p { font-size: 1rem; }
.home .services a { margin-top: auto; padding-top: .5rem; }
.home .split { align-items: start; background: var(--tint); color: var(--green); }
.home .split p { margin-bottom: 0; color: var(--muted); }
.home .split ol { margin: 0; padding-left: 1.5rem; }
.home .split li + li { margin-top: 1rem; }
.home .formsection { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 5%; }
.home #request-form {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 1.5rem;
  background: var(--paper);
  border-radius: 14px;
}
.home fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.home fieldset .note { grid-column: 1 / -1; margin: 0; }
.home legend { padding: 0 0 .65rem; font-size: 1.125rem; font-weight: 650; }
.home label { font-size: .9375rem; }
.home input, .home textarea, .home select { font-size: 1rem; font-weight: 400; }
.home select {
  appearance: none;
  padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23173d35' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1rem center;
}
.home .field-hint { font-weight: 400; }
.home .consent { display: grid; grid-template-columns: auto 1fr; gap: .65rem; }
.home .consent input { accent-color: var(--green); margin-left: 0; }
.home #confirmation { border-radius: 14px; background: var(--tint); }
.home #confirmation h3 { margin-top: 0; }
.home footer { padding: 1.75rem 7%; background: var(--paper); color: var(--muted); }
.home footer .footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; font-size: .875rem; }

@media (max-width: 800px) {
  .home section { padding-inline: 5%; }
  .home .hero, .home .split, .home .formsection { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .home .services { grid-template-columns: minmax(0, 1fr); }
  .home .founder-card { max-width: none; }
  .home footer { padding-bottom: 100px; }
  .home .mobile-action span { display: none; }
}
@media (max-width: 560px) {
  .home fieldset { grid-template-columns: minmax(0, 1fr); }
}

.home .hero {
  background: radial-gradient(ellipse at 83% 16%, #e3efe8, transparent 57%), var(--paper);
}
.home .hero-side { display: grid; gap: 1rem; min-width: 0; margin-top: 1.5rem; }
.home .research-map {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #ccdcd3;
  border-radius: 20px;
  background: #ffffffdd;
  box-shadow: 0 16px 45px #173d3510;
}
.home .research-map h2 { margin: 0; font-size: clamp(1.65rem, 2.5vw, 2.25rem); }
.home .map-prompt { margin: .4rem 0 1.2rem; color: var(--muted); }
.home .map-branches {
  position: relative;
  display: grid;
  gap: .55rem;
  padding-left: 1.25rem;
  background: linear-gradient(#8bae9e, #8bae9e) .25rem 0 / 1px 100% no-repeat;
}
.home .map-branches details {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.home .map-branches details::before {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1px;
  left: calc(-1rem - 1px);
  top: 1.35rem;
  background: #8bae9e;
}
.home .map-branches details[open] {
  background: var(--tint);
  border-color: #9ab9aa;
}
.home .map-branches summary { cursor: pointer; padding: .55rem .75rem; font-weight: 650; }
.home .map-branches summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.home .map-branches details p, .home .map-branches details a { margin: 0 .75rem .6rem; font-size: .875rem; }
.home .map-branches details p { color: var(--muted); }
.home .map-branches details a { display: inline-block; font-weight: 650; text-underline-offset: .2em; }
.home .map-outcome {
  margin: 0;
  padding: .75rem 0 0 1.25rem;
  background: linear-gradient(#8bae9e, #8bae9e) .25rem 0 / 1px 1.5rem no-repeat;
  font-size: .875rem;
  font-weight: 650;
}
.home .hero .founder-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .875rem;
  max-width: none;
  padding: 1rem;
  background: #ffffffb8;
}
.home .hero .founder-card h2 { margin: 0; font: 650 1rem/1.4 system-ui, sans-serif; letter-spacing: 0; }
.home .hero .founder-card p { margin: .25rem 0 .4rem; font-size: .875rem; }
.home .hero .founder-card a { font-size: .875rem; }
.home .split .process {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  background: linear-gradient(#8bae9e, #8bae9e) .4rem .55rem / 1px calc(100% - 1.1rem) no-repeat;
}
.home .process li { position: relative; padding-bottom: .25rem; }
.home .process li::before {
  content: "";
  position: absolute;
  top: .45rem;
  left: -2rem;
  width: .85rem;
  height: .85rem;
  border: 2px solid #527c69;
  border-radius: 50%;
  background: var(--tint);
}
.home .process strong { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .home .hero > div:first-child { animation: home-enter .55s ease-out both; }
  .home .hero-side { animation: home-enter .65s .1s ease-out both; }
  .home .map-branches details[open] > :not(summary) { animation: home-enter .25s ease-out both; }
  .home .services article { transition: border-color .2s, box-shadow .2s, transform .2s; }
  .home .services article:is(:hover, :focus-within) {
    transform: translateY(-3px);
    border-color: #9ab9aa;
    box-shadow: 0 12px 25px #173d3510;
  }
  .home .in-view { animation: home-enter .55s ease-out both; }
}

@keyframes home-enter {
  from { opacity: .45; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
