/* =========================================================
   HERO · Variante K (aus dem Design-Test A–K, entschieden Dezember 2026)
   Gehört zu hero-strings.js: Saiten-Ebenen, Foto und Namensblock.
   Einige allgemeine Regeln (hs-classic, Saitennamen …) stammen aus dem Test und sind ungenutzt.
   Maße in Entwurfs-Pixeln (Desktop 1440×810, Handy 390×844). hero-strings.js setzt
   --hs-k (kleineres Verhältnis Fenster : Entwurf, für Schriftgrößen und Abstände)
   und --hs-ky (Höhe : Entwurf, für die senkrechte Lage).
   "aktuell" (die bisherige Fassung) nutzt nichts von hier außer dem Ausblenden der Zusätze.
   ========================================================= */

/* ---------- string layers: behind Sara, and in front of her lower half (K) ---------- */
.hero__vstrings { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__vstrings--back { z-index: 0; }
.hero__vstrings--front { z-index: 1;
  /* strings in front of Sara melt into the hero's lower edge like the photo does */
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 14%); mask-image: linear-gradient(to top, transparent 0, #000 14%); }

/* the current hero's canvas and string names step aside while a variant shows */
.hero.hs-legacy-off .hero__strings { visibility: hidden; }
.hero__string-name { transition: opacity .6s var(--ease); }
.hero.hs-legacy-off .hero__string-name { opacity: 0; }

/* string names of a variant (A, C: in the left margin on their string; D: across the strings) */
.hero__vlabels { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.hero__vlabel { position: absolute; left: 0; top: 0; font: 500 11px/1 var(--sans); letter-spacing: .04em; color: rgba(21, 22, 26, .6); white-space: nowrap; }

/* parts of the name block only some variants use */
.hero__rule, .hero__sub { display: none; }
.hero__rule > i { display: block; height: 100%; background: rgba(255, 255, 255, var(--rule-a, .75)); opacity: var(--hs-sfade, 1); }
.hero__sub-in { opacity: var(--hs-sfade, 1); }
.hs-ghost { pointer-events: none; }

/* ---------- name block: common ---------- */
.hero__content[data-v]:not([data-v="aktuell"]) {
  --u: calc(var(--hs-k, 1) * 1px);
  position: absolute; z-index: 2; margin: 0; max-width: none;
  left: calc(var(--vx) * var(--u));
  top: calc(var(--vy) * var(--hs-ky, 1) * 1px);
}
.hero__content[data-v]:not([data-v="aktuell"]) .hero__title {
  font-size: calc(var(--fs) * var(--u)); line-height: var(--lh, 1); letter-spacing: var(--ls, 0); font-weight: var(--fw, 400);
}
.hero__content[data-v]:not([data-v="aktuell"]) .hero__role {
  position: static; top: auto; font-size: calc(var(--role) * var(--u)); letter-spacing: var(--role-ls, .02em);
  font-style: italic; line-height: 1.1; white-space: nowrap;
}
html[lang="ja"] .hero__content[data-v] { --fw: 500; }
/* E, G, K: both name lines upright (only "Furuichi" in A–D and F leans) */
.hero__content.hs-upright .hero__title .line > span { font-style: normal; }

/* A, C, D: "Furuichi" steps in under "Sara", "Viola" on its baseline (like the current hero) */
.hero__content.hs-classic {
  display: grid; grid-template-columns: max-content max-content; align-items: last baseline;
  column-gap: calc(var(--gap) * var(--u));
}
.hero__content.hs-classic .hero__title .line:nth-child(2) { padding-left: var(--indent, .5em); }

/* B, E, F, G, K: a white rule on the left, the name, a second line, "Viola" */
.hero__content.hs-ruled {
  display: grid; grid-template-columns: max-content max-content 1fr; align-items: baseline;
  column-gap: 0; row-gap: calc(var(--rowgap, 0) * var(--u));
}
.hero__content.hs-stack { grid-template-areas: "rule title title" "rule sub sub" "rule role role"; }
.hero__content.hs-row { grid-template-areas: "rule title title" "rule role sub"; }
.hs-ruled .hero__rule {
  display: none;   /* kein weißer Strich neben dem Namen mehr; der Block beginnt links bündig (--vx) */ grid-area: rule; align-self: stretch; width: calc(var(--rule-w, 1) * 1px);
  margin: calc(var(--rpad, 0) * -1 * var(--u)) calc(var(--rgap) * var(--u)) calc(var(--rpad, 0) * -1 * var(--u)) 0;
  transform-origin: 50% 0;
}
.hs-ruled .hero__title { grid-area: title; }
.hs-ruled .hero__title .line:nth-child(2) { padding-left: var(--indent, 0); }
.hs-ruled .hero__role { grid-area: role; margin-top: calc(var(--role-mt, 0) * var(--u)); }
.hs-ruled .hero__sub {
  display: block; grid-area: sub; margin: calc(var(--sub-mt, 0) * var(--u)) 0 0 calc(var(--sub-gap, 0) * var(--u));
  font-family: var(--serif); font-weight: 400; font-style: normal; font-size: calc(var(--sub) * var(--u));
  letter-spacing: var(--sub-ls, .5em); line-height: 1.2; color: var(--ink); white-space: nowrap; pointer-events: none;
}
/* no second line (DE/EN): the empty row goes away, "Viola" follows the name directly */
.hero__content.hs-nosub .hero__sub { display: none; }
.hero__content.hs-nosub .hero__role { margin-top: calc(var(--role-mt-ns, 16) * var(--u)); }
/* both words of the name on one line (F; E and K on the Japanese page) */
.hero__content.hs-oneline .hero__title { display: flex; align-items: baseline; column-gap: var(--tgap, .25em); }
.hero__content.hs-oneline .hero__title .line:nth-child(2) { padding-left: 0; }

/* ---------- photo: Sara cut out, so strings can run behind her ---------- */
@media (min-width: 761px) {
  .hero[data-hero]:not([data-hero="aktuell"]) .hero__photo {
    right: 0; width: min(calc(540px * var(--hs-ky, 1)), 62vw);
    /* the cut-out ends at the frame: it melts into the backdrop at the bottom, no edge */
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 13%); mask-image: linear-gradient(to top, transparent 0, #000 13%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .hero[data-hero]:not([data-hero="aktuell"]) .hero__photo img { object-position: 50% 100%; }
  .hero[data-hero="K"] .hero__photo {
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 97%); mask-image: linear-gradient(to bottom, #000 80%, transparent 97%);
  }
}
@media (max-width: 760px) {
  /* K: Sara stands a little higher, her lower half fades out above the edge */
  .hero[data-hero="K"] .hero__photo {
    left: -3%; right: auto; width: 106%; height: 73.5%; bottom: 7.6%;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 98%); mask-image: linear-gradient(to bottom, #000 78%, transparent 98%);
  }
}

/* =========================================================
   Variants. Desktop values, then phone values, then the Japanese page
   (kanji name; the designs E and K were drawn in Japanese).
   --vx/--vy position, --fs/--lh/--ls name, --role/--role-ls "Viola", --gap name–Viola,
   --rule-w/--rule-a/--rgap/--rpad white rule, --rowgap rows, --sub/--sub-ls/--sub-gap/--sub-mt second line
   ========================================================= */

/* ---------- K · Saras zweiter Vorschlag (drawn in Japanese; latin: two lines, the second stepped in by the same .5em) ---------- */
.hero__content[data-v="K"] { --vx: 150; --vy: 230; --fs: 84; --lh: 1; --ls: .1em; --fw: 500; --indent: 0; --role: 36; --role-ls: .3em;
  --rule-w: 2; --rule-a: .85; --rgap: 54; --rpad: 2; --sub: 16; --sub-ls: .55em; --sub-mt: 34; --role-mt: 26; }
html[lang="ja"] .hero__content[data-v="K"] { --ls: .14em; --tgap: .5em; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .hero__content[data-v="K"] { --vx: 28; --vy: 92; --fs: 40; --rgap: 22; --rpad: 2; --sub: 10; --sub-ls: .5em; --sub-mt: 16; --role: 20; --role-mt: 14; --role-mt-ns: 8; --rule-w: 1.5; }
  html[lang="ja"] .hero__content[data-v="K"] { --fs: 40; }
}
