/* Homepage composition, illustration and practical help. */

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-height, 120px) - var(--admin-offset, 0px));
  padding-bottom: clamp(0.75rem, 2svh, 1.5rem);
  background: radial-gradient(ellipse at 90% 28%, #d9eee6 0, transparent 54%), radial-gradient(ellipse at 8% 0%, #faeee2 0, transparent 40%), var(--paper);
}

.hero-inner {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1rem, 3svh, 2.5rem);
}

.hero h1 {
  margin-bottom: clamp(1rem, 2.5svh, 2rem);
  font-size: clamp(2.6rem, min(6.4vw, 10svh), 6.2rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.065em;
}

.hero h1 em {
  display: inline-block;
  color: var(--accent);
}

.hero-intro {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.85;
}

.hero-art {
  min-width: 0;
  display: grid;
  place-items: center;
}

.hero-illustration {
  display: block;
  width: 100%;
  height: clamp(200px, calc(100svh - var(--header-height, 120px) - var(--admin-offset, 0px) - 210px), 640px);
  object-fit: contain;
}

.hero-aside {
  flex-shrink: 0;
  margin-top: auto;
}

.help-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.3fr);
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: #ffffffed;
  box-shadow: 0 4px 16px #183e3b04;
}

.help-panel .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.6rem;
}

.help-panel h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
}

.help-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.help-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--charcoal);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 200ms ease;
}

.help-links a:is(:hover, :focus-visible) {
  border-color: var(--accent);
  background: var(--paper);
}

.help-links span[aria-hidden] {
  font-size: 1.25rem;
  transition: transform 220ms var(--motion-ease);
}

.news-section {
  background: white;
}

.editorial-news {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.editorial-news .news-card:first-child {
  color: white;
  background: linear-gradient(140deg, var(--steel), var(--charcoal));
  border-color: var(--charcoal);
}

.editorial-news .news-card:first-child h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.editorial-news .news-card:first-child :is(time, .news-card-body > p) {
  color: var(--on-dark-muted);
}

.editorial-news .news-card:first-child .news-card-body {
  padding: clamp(2rem, 3.5vw, 3rem);
}

.editorial-news .news-card:only-child {
  grid-column: 1 / -1;
}

.editorial-news:has(> :nth-child(3)) .news-card:first-child {
  grid-row: span 2;
}

.editorial-news:has(> :nth-child(3)) .news-card:first-child h3 {
  margin-top: auto;
}

.services-layout,
.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.services-layout .section-heading,
.team-layout .section-heading {
  margin-bottom: 0;
}

.services-layout .section-heading > p:not(.eyebrow),
.team-layout .section-heading > p:not(.eyebrow) {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.9rem;
}

.services-layout .section-heading .text-link {
  margin-top: 1.5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.about-copy h2 {
  font-size: clamp(2.75rem, 4.7vw, 4.4rem);
}

.about-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin-block: 2rem;
  color: var(--on-dark-muted);
  font-size: 0.93rem;
}

.about-statement {
  margin-block: 3rem 2rem;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid #ffffff33;
  list-style: none;
}

.commitment-grid li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--on-dark-muted);
  font-size: 0.73rem;
}

.commitment-grid li::before {
  content: "";
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  background-color: var(--accent-soft);
  -webkit-mask: url("../../svg/point.svg") center / contain no-repeat;
  mask: url("../../svg/point.svg") center / contain no-repeat;
}

.editorial-news .news-card:first-child :focus-visible {
  outline-color: var(--accent-soft);
}

@media (max-width: 1000px) {
  .help-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  .hero-inner {
    position: relative;
    isolation: isolate;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0.5rem;
    padding-block: 1rem;
  }

  .hero h1 {
    font-size: clamp(2rem, min(9vw, 6svh), 3.25rem);
  }

  .hero-intro {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .hero-art {
    position: absolute;
    inset: 1rem 0;
    z-index: -1;
    width: 100%;
    pointer-events: none;
  }

  .hero-illustration {
    height: 100%;
    max-height: 440px;
    object-position: right center;
    opacity: 0.12;
  }

  .help-panel {
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
  }

  .help-heading .eyebrow {
    display: none;
  }

  .help-panel h2 {
    font-size: 1.2rem;
  }

  .help-links {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .help-links a {
    min-height: 52px;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .help-links span[aria-hidden] {
    font-size: 1rem;
  }

  .editorial-news,
  .services-layout,
  .team-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .editorial-news:has(> :nth-child(3)) .news-card:first-child {
    grid-row: auto;
  }

  .services-layout,
  .team-layout {
    gap: 2rem;
  }

  .services-layout .section-heading > p:not(.eyebrow),
  .team-layout .section-heading > p:not(.eyebrow) {
    max-width: 550px;
  }

  .about-layout {
    gap: 2rem;
  }

  .about-statement {
    margin-top: 0;
  }
}

@media (max-width: 400px) {
  .commitment-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-art,
  .hero-aside {
    animation: entrance 600ms var(--motion-ease) backwards;
  }

  .hero-copy h1 {
    animation-delay: 60ms;
  }

  .hero-copy .hero-intro {
    animation-delay: 120ms;
  }

  .hero-art,
  .hero-aside {
    animation-delay: 180ms;
  }

  .help-links a:is(:hover, :focus-visible) > span[aria-hidden] {
    transform: translate(3px, -2px);
  }
}

.hero-copy > :focus-within,
.hero-aside:focus-within {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .help-links a,
  .help-links span {
    transition: none;
  }
}

@media print {
  .hero {
    min-height: 0;
    display: block;
    padding-bottom: 0;
  }

  .hero-art,
  .hero-aside {
    display: none;
  }

  .hero,
  .editorial-news .news-card:first-child {
    color: black;
    background: white;
  }

  .hero-inner {
    padding-block: 1rem;
  }

  .hero-inner,
  .services-layout,
  .team-layout,
  .about-layout {
    display: block;
  }

  .commitment-grid li,
  .editorial-news .news-card:first-child :is(time, .news-card-body > p) {
    color: black;
  }

  .hero-copy > *,
  .hero-art,
  .hero-aside {
    animation: none;
  }
}
