/* ==========================================================================
   Hero: h1 (connection line), subline, statement, body, CTA
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4.25rem);  /* same as every section, top and bottom (14.11. / 15.11. tech check) */
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  font-size: var(--fs-h1);
  max-width: 18ch;
}

/* Subline: caps, Petrol, quieter than the h1 */
.hero-subline {
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--petrol-text);
}

/* The statement: the big message under the connection line */
.hero-statement {
  margin-top: 0.75rem;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-body {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 40rem;
}

.hero-cta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem 1.25rem;
}
.hero-cta-lead {
  font-size: var(--fs-lead);
  font-weight: 500;
}

/* Small round photo at the CTA: "you talk to a person", takes almost no space */
.hero-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Statement (23.10.): the two opening sentences carry the punch through size, not color
   (the hero keeps ONE Magenta accent: "strongest asset."). The rest continues in regular weight */
.hero-statement {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.5;
}
.hero-punch {
  display: block;
  margin-bottom: 1.5rem;
  font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.nowrap { white-space: nowrap; }

/* CTA (23.10.): photo + question + button as ONE unit. Photo in the same rounded shape as all other
   photos on the site, question and button stacked next to it, so nothing floats on its own */
.hero-cta {
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.25rem;
}
.hero-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: var(--radius);
}
.hero-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
/* (23.10., v2) Question and button side by side in one line, question in the same size as the button text */
.hero-cta-text {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.hero-cta-lead {
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
}
/* Narrower screens: photo + question side by side, the button gets its own full row below (never wraps inside) */
@media (max-width: 640px) {
  .hero-cta {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
  }
  .hero-avatar { width: 5.5rem; height: 5.5rem; }
  .hero-cta-text { display: contents; }
  .hero-cta .btn { grid-column: 1 / -1; justify-self: start; }
}
/* Photo bigger (26.10.): wider crop (head, shoulders, jacket), clearly a portrait instead of an icon */
.hero-avatar { width: 10rem; height: 10rem; }
@media (max-width: 640px) {
  .hero-avatar { width: 8rem; height: 8rem; }
}
/* Name next to the photo (26.10., option A): photo, name, role and button read as one card.
   Name and role stacked, button right below them */
.hero-cta { gap: 1.5rem; }
.hero-cta-text {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.hero-cta-name {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.3;
}
.hero-cta-name strong { font-size: var(--fs-lead); font-weight: 700; }

/* Meet block (26.10., v4): one column at every width. Photo card (photo + name centered below),
   the button right under it in exactly the card's width. No side-by-side switching */
.hero-meet {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 20rem;
  margin-top: 0.5rem;
}
.hero-meet .btn { justify-content: center; text-align: center; }
.hero-card .hero-cta-name {
  align-items: center;
  text-align: center;
  padding: 0.9rem 1rem 1.1rem;
}

/* Photo card (26.10., v2): ONE gradient frame like the photo cards on About */
.hero-card {
  width: 100%;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(var(--porzellan), var(--porzellan)) padding-box,
    var(--shift-gradient) border-box;
}
.hero-card-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-cta-name > span { font-size: var(--fs-small); color: var(--tinte-soft); }
.hero-cta-name .wordmark { font-weight: 700; color: var(--tinte); }

/* Asterisk (26.10., replaces the two circles): one large shift* asterisk, the real Space Grotesk glyph,
   drawn as a thin gradient outline, cropped at the top right corner. Wide screens only, never behind text */
.hero-asterisk { display: none; }
@media (min-width: 1280px) {
  .hero-asterisk {
    display: block;
    position: absolute;
    top: -4rem;
    right: -7rem;
    width: 24rem;
    height: 24rem;
    pointer-events: none;
    overflow: visible;
  }
  .hero-asterisk text {
    fill: none;
    stroke-width: 2.5;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }
}

/* Hero two columns (27.10., after Mira, approved by Franzi): wide screens only. Photo card + button move into a right column,
   next to the statement and the "Here's what 10+ years" paragraph, so face and button sit in the first screen.
   Same card size as before (20rem). Text stays left and leads. Phones and smaller screens unchanged */
@media (min-width: 1280px) {
  .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    column-gap: clamp(3rem, 5vw, 4.5rem);
    row-gap: 1.5rem;
    max-width: none;
  }
  .hero-content > * { grid-column: 1; }
  .hero-content > .hero-meet {
    grid-column: 2;
    grid-row: 4 / 6;
    align-self: start;
    margin-top: 0.75rem;  /* top edge level with the statement (it has the same 0.75rem) */
  }
}

/* Hero layout (31.10., approved by Franzi): photo card starts level with the headline, so face and button sit in the first screen on laptops too.
   The asterisk moves into the free space under the button, fully in view and cropped at the right edge */
@media (min-width: 1280px) {
  .hero-content > .hero-meet {
    grid-row: 1 / 6;
    margin-top: calc(var(--fs-h1) * 0.12);  /* top edge level with the tops of the headline letters */
  }
  /* (14.11.) anchored to the bottom right of the shorter hero, under the button, cropped at the right edge */
  .hero-asterisk { top: auto; bottom: 0.5rem; right: -4rem; width: 12.5rem; height: 12.5rem; }
  /* Headline in 3 lines at every wide size, so the button ends level with "nice-to-have." */
  .hero h1 {
    max-width: none;
  }
}

/* (14.11., Franzi) The early hero button is gone again: the hero ends with photo card + button on every screen */

/* (16.11.) The Contact asterisk rules moved to pages.css: Contact does not load hero.css, so the glyph showed huge and black */
