/* ============================================================
   cpfischer.com: per-section layouts
   ============================================================ */

/* ---------- Hero ---------- */
.hero { padding-top: clamp(7rem, 16vh, 12rem); padding-bottom: clamp(3rem, 8vh, 7rem); }

.hero__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: clamp(2rem, 6vh, 4.5rem);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--t-hero);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__title .accent { color: var(--accent); }
.hero__title .pull { display: block; }

.hero__foot { margin-top: clamp(2.5rem, 7vh, 5rem); align-items: end; }
.hero__ctas { grid-column: 1 / 7; display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); }
.hero__status { grid-column: 9 / 13; align-self: end; justify-self: end; text-align: right; }
.hero__status .blip {
  display: inline-block; width: 0.5rem; height: 0.5rem;
  background: var(--accent); border-radius: 50%;
  margin-right: 0.6ch; vertical-align: middle;
  animation: blip-pulse 2.4s var(--ease) infinite;
}
@keyframes blip-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (max-width: 860px) {
  .hero__ctas { grid-column: 1 / 13; }
  .hero__status { grid-column: 1 / 13; justify-self: start; text-align: left; margin-top: 1.5rem; }
}

/* ---------- Section header ---------- */
.sec { padding-block: clamp(4rem, 12vh, 9rem); }
.sec__head { align-items: baseline; padding-bottom: clamp(2rem, 6vh, 4rem); }
.sec__head .label { grid-column: 1 / 4; }
.sec__head .title {
  grid-column: 4 / 13;
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--t-h2);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.sec__head .title .accent { color: var(--accent); }
@media (max-width: 720px) {
  .sec__head .label { grid-column: 1 / 13; padding-bottom: 0.75rem; }
  .sec__head .title { grid-column: 1 / 13; }
}

/* ---------- About ---------- */
.about__fig { grid-column: 1 / 5; }
.about__body { grid-column: 6 / 12; }
.about__body p { font-size: var(--t-lead); line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.about__body p + p { margin-top: 1.4rem; color: var(--ink-soft); font-size: var(--t-body); line-height: 1.6; }
.about__style {
  margin-top: 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about__sig {
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.about__sig .dot { color: var(--accent); }
@media (max-width: 860px) {
  .about__fig { grid-column: 1 / 7; margin-bottom: 2rem; }
  .about__body { grid-column: 1 / 13; }
}

/* ---------- Footer / Contact (the dark moment) ---------- */
.foot {
  background: var(--foot-bg);
  color: var(--foot-fg);
  padding-block: clamp(4rem, 12vh, 9rem);
  margin-top: clamp(3rem, 8vh, 6rem);
}
.foot ::selection { background: var(--accent); color: var(--foot-bg); }
.foot__label { grid-column: 1 / 13; color: var(--foot-mute); margin-bottom: 1.5rem; }
.foot__label .idx { color: var(--accent); }

.foot__cta {
  grid-column: 1 / 13;
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--t-hero);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.foot__cta a { transition: color var(--t-fast) var(--ease); }
.foot__cta a:hover, .foot__cta a:focus-visible { color: var(--accent); }
.foot__cta .dot { color: var(--accent); }

.foot__links { grid-column: 1 / 13; margin-top: clamp(3rem, 8vh, 5rem); align-items: start; row-gap: 2rem; }
.foot__col { grid-column: span 3; }
.foot__col .mono { color: var(--foot-mute); display: block; margin-bottom: 0.8rem; }
.foot__col a, .foot__col p { color: var(--foot-fg); display: block; line-height: 1.7; overflow-wrap: anywhere; }
.foot__col a { position: relative; width: fit-content; }
.foot__col a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.foot__col a:hover::after, .foot__col a:focus-visible::after { transform: scaleX(1); }

.foot__colophon {
  grid-column: 1 / 13;
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--foot-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot__colophon .mono { color: var(--foot-mute); }

@media (max-width: 720px) {
  .foot__col { grid-column: span 6; }
  /* larger tap targets for footer links on touch screens */
  .foot__col a { padding-block: 0.55rem; }
  .foot__col a::after { bottom: 0.55rem; }
}
