.offer-grid { border-bottom: 1px solid var(--line); }
.projects-grid { gap: 18px; }
#about,
#experience,
#mentoring,
#projects { border-top: 0; }
#projects .project-card {
  min-height: 280px;
  padding: 27px;
  border: 1px solid var(--line);
  background: #fff4;
}
.timeline li:last-child { border-bottom: 0; }
.pencil-trail { z-index: 2; }
.skip-link { z-index: 3; }
.about-heading { position: relative; align-self: start; }
.clear-step-note {
  position: absolute;
  top: calc(100% + 0.06em);
  left: 50%;
  color: #fff;
  font: 700 1.25em/0.92 Arial, Helvetica, sans-serif;
  letter-spacing: -0.045em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.08em);
  transition: opacity 3200ms ease 350ms, transform 3200ms ease 350ms;
}
.about-heading.is-revealing .clear-step-note {
  opacity: 0.45;
  transform: translate(-50%, 0);
  transition: opacity 1800ms ease 80ms, transform 1800ms ease 80ms;
}

.quiet-link,
.text-link,
.button {
  display: inline-flex;
  transition: font-style 160ms ease;
}
.quiet-link:hover,
.text-link:hover,
.button:hover {
  font-style: oblique 12deg;
}

.hero {
  position: relative;
  min-height: 0;
  padding: 82px 0 0;
  overflow: clip;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .button { width: max-content; }
.hero-media {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 12px;
  pointer-events: none;
}
.hero-portrait {
  display: block;
  width: clamp(170px, 55vw, 230px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0.92;
  filter: grayscale(0.22) contrast(0.95);
  transform-origin: center bottom;
  transition: transform 180ms ease-out, filter 220ms ease;
  will-change: transform;
}
.hero:hover .hero-portrait { filter: grayscale(0.05) contrast(0.98); }

@media (min-width: 720px) {
  .offer-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
  #projects .project-card.featured { min-height: 330px; }
}

@media (min-width: 600px) and (max-width: 879px) {
  .hero {
    padding: clamp(90px, 12vw, 120px) 0 20px;
  }
  .hero-media {
    margin-top: -40px;
  }
  .hero-portrait { width: clamp(210px, 32vw, 270px); }
}

@media (min-width: 720px) and (max-width: 879px) {
  .copy-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (min-width: 880px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 650px) minmax(240px, 1fr);
    align-items: end;
    gap: clamp(28px, 4vw, 64px);
    min-height: 72vh;
    padding: clamp(120px, 17vw, 210px) 0 100px;
  }
  .hero-copy { grid-column: 1; }
  .hero-media {
    grid-column: 2;
    align-items: flex-end;
    width: 100%;
    margin-top: 0;
  }
  .hero-portrait { width: clamp(280px, 30vw, 430px); }
}

@media (max-width: 599px) {
  .offer-grid article:last-child { border-bottom: 0; }
}

@media (min-width: 820px) and (max-height: 560px) and (orientation: landscape) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    align-items: end;
    gap: 24px;
    min-height: calc(100svh - 55px);
    padding: 24px 0;
  }
  .hero-copy { grid-column: 1; }
  .hero-media {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-end;
    width: 100%;
    margin-top: 0;
  }
  .hero-portrait {
    width: min(28vw, 260px);
    max-height: calc(100svh - 100px);
  }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lede {
    margin-bottom: 20px;
    font-size: 0.95rem;
  }
}
