/*
 * home-b.css — rules that exist only on homepage variant B (b/index.html).
 * Version: v2026.11.18.2
 *
 * Loaded after style.css, which stays at v2026.10.25. If B wins the test,
 * these rules move into style.css and this file is deleted.
 *
 * Deliberate rule break: the site's "no new fonts" rule (README, skill) is
 * broken here on purpose. Redaction 35 Italic, self-hosted from /fonts/, is
 * the test subject of variant B: it marks the personal sentences (.voice).
 */

/* === SITE NAV (B) === first navigation on the site; mono labels, underlined like every link */
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-xs) var(--space-sm);
}
.site-nav {
  display: flex; gap: var(--space-sm);
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; } /* --color-accent, 13.4:1 on white */
@media (max-width: 480px) { .site-nav { width: 100%; } }
section[id] { scroll-margin-top: var(--space-md); }
/* .back-to-top-wrapper, .back-to-top and .back-to-top a already exist in style.css */

/* === VOICE (B) === personal sentences, Redaction 35 Italic 400, 18 px */
@font-face {
  font-family: 'Redaction 35'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/redaction-35-latin-400-italic.woff2) format('woff2');
}
:root { --font-voice: 'Redaction 35', Georgia, 'Times New Roman', serif; }

.voice {
  font-family: var(--font-voice); font-style: italic; font-weight: 400;
  font-size: 1.125rem; line-height: 1.4;   /* 18 px, owner's decision of 10.11.2026 (was 20 px) */
  color: var(--color-text);              /* 17.4:1 on white */
  max-width: 60ch;
  margin: var(--space-sm) 0 0;
}
.hero__voice { margin-bottom: var(--space-lg); }
.hero__voice .voice { margin-top: 0; }
.hero__voice .voice + .voice { margin-top: 0; } /* no blank line between the two hero paragraphs, owner's decision of 10.11.2026 */
.section__label + .voice { margin-top: 0; margin-bottom: var(--space-lg); }
.project__summary + .voice, .case-quote + .voice { margin-bottom: var(--space-sm); }

/* Addition for B: .section__label carries margin-bottom var(--space-lg) in style.css,
   which would leave a large gap before the voice sentence that follows it. */
.section__label:has(+ .voice) { margin-bottom: var(--space-xs); }

/* === COMPETENCY NETWORK HINT (B) === the hint "Hover or tab through the network" loses its grey box
   (owner's decision of 17.11.2026); like the timeline hint it sits bare on the white panel. style.css keeps the box for A. */
.net .hint { background: none; padding-left: 0; padding-right: 0; }

/* === HERO HEADLINE (B) === typed like model output; neon marker over the three goals.
   Timing lives in js/hero-headline.js. Without .motion everything is static (end state).
   Deliberate rule break, like Redaction 35: the site knows blue as its only accent
   (skill "webseite"); the marker colour below is a second accent that exists only in B. */
:root { --color-marker: #00FFA9; }   /* neon mint (owner's choice of 17.11.2026, was #F5FF00); #1A1A1A on it 13,2:1. New colour, not in the system */
.h-cursor { display: inline-block; width: 0.07em; height: 0.85em; margin-left: 0.04em; vertical-align: -0.06em; background: var(--color-text); }
.h-cursor[hidden] { display: none; }   /* the display rule above would otherwise override the hidden attribute (the prototype had a global [hidden] rule) */
/* Marker geometry, timing and curve from Textmarker.html (16.11.2026); only the colour is ours. */
.h-mark {
  background-image: linear-gradient(var(--color-marker), var(--color-marker));
  background-repeat: no-repeat; background-size: 100% 75%; background-position: left 78%;   /* 75 % of the line, sits low; grows from the left */
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;   /* a marker that wraps closes at both line ends */
}
.h-mark:empty { padding: 0; }
.hero.motion .h-mark { background-size: 0% 75%; transition: background-size 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.hero.motion .h-mark.on { background-size: 100% 75%; }
/* Set by the inline script in <head> (no-preference only) until hero-headline.js has cleared the heading,
   so the end state never flashes before the typing starts. */
html.hero-pending .hero__heading { visibility: hidden; }

/* === STOP/PLAY (B) === WCAG 2.2.2: stops or replays the hero animation. Same look as the arrow
   (.scroll-fab in style.css), fixed bottom right at the content edge (the arrow stays centred; a menu button on
   the owner's case-study sites sits bottom left, this mirrors it). The icon is a text character like the arrow's.
   Shown by hero-headline.js only while motion is allowed. */
.scroll-fab--motion { left: auto; right: var(--space-md); transform: none; }
.scroll-fab--motion[hidden] { display: none; }   /* .scroll-fab sets display: flex, which would override the hidden attribute */

/* === CAREER TIMELINE (B) === "Experience": step sequencer, one row per year, one field per month.
   From the prototype "Timeline Variante B DesignSystem v11a" (18.11.2026, after user feedback): the roles and
   the gaps between them play one after another, the label above the grid names the role and stands still, one
   block below the grid shows role, logo, group, period, counter and courses. Logic in js/career-timeline.js.
   Patterns borrowed from the survey chart (hatching at 140°, 22 % fill, label box) and the competency network
   (data palette, pulsing hint, "View as table"). The group colours are the data colours of the competency
   network; green and orange already exist in style.css (survey chart), purple is new here. Data colours are used
   as fill, dot and label background only, never as text on white. No blue in the chart: blue stays with links
   and buttons. Radii are written as values like everywhere in style.css (there are no radius tokens). */
:root {
  --color-data-purple: #9c4297;   /* white on it and it on white 5,8:1 (AA). Third use of the network palette */
  --color-data-gap: #6b5300;      /* dark ochre for "Projects & learning"; white on it 7,3:1 (AAA). New colour outside the design system, owner's decision of 18.11.2026 */
}
.seq { --g: 3px; }
.seq .c0, .seq.c0 { --c: var(--color-data-purple); }   /* Leadership */
.seq .c1, .seq.c1 { --c: var(--color-data-orange); }   /* Interface & UI; white on it 5,6:1 (AA) */
.seq .c2, .seq.c2 { --c: var(--color-data-green); }    /* UX & Product; white on it 5,0:1 (AA) */
.seq .c3, .seq.c3 { --c: var(--color-data-gap); }      /* Projects & learning */
.seq__intro { font-size: 1.0625rem; margin-bottom: var(--space-md); max-width: 60ch; }
.seq__legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: var(--space-sm); font: 400 12px/1.65 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text); }
.seq__legend span { display: inline-flex; align-items: center; gap: 8px; }
.seq__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
/* grid, calm: the label stands still */
.seq__head, .seq__row { display: grid; grid-template-columns: 3.25rem repeat(12, 1fr); gap: var(--g); }
.seq__head { font: 400 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); padding-bottom: 6px; border-bottom: 1px solid var(--color-text); margin-bottom: 6px; }
.seq__grid { position: relative; display: flex; flex-direction: column; gap: var(--g); }
.seq__yr { font: 400 12px/1 var(--font-mono); letter-spacing: .04em; color: var(--color-text-muted); display: flex; align-items: center; }
.seq__pad { height: clamp(16px, 3vw, 22px); border: 0; padding: 0; border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1px var(--color-border); }
.seq__pad[data-s] { cursor: pointer; box-shadow: none; }
/* ahead: hatching like the selected row in the survey chart */
.seq__pad.is-next { background: repeating-linear-gradient(140deg, color-mix(in srgb, var(--c) 40%, transparent) 0 1.75px, transparent 1.75px 4px); }
/* played: 22 % fill like the bars in the survey chart */
.seq__pad.is-done { background: color-mix(in srgb, var(--c) 22%, transparent); }
.seq__pad.is-cur { background: var(--c); }
.seq__pad.is-future { opacity: .35; }
@media (prefers-reduced-motion: no-preference) { .seq__pad { transition: background-color .2s ease; } }
/* label with the role: box in the group colour, mono 11 px white, white 2 px rim so it reads on fields of the same
   colour; left edge on the first month of the entry, 30 px above; it stands still and fades in after the fill */
.seq__label { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--c);
  font: 500 11px/24px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; transform: translateY(-30px); opacity: 0; box-shadow: 0 0 0 2px var(--color-bg); }
.seq__label.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .seq__label { transition: opacity .3s ease; } }
/* the one block below the grid: changes once per entry, text always in the text colours */
.seq__now { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; min-height: 5rem; padding: var(--space-sm) 0; border-top: 1px solid var(--color-text); border-bottom: 1px solid var(--color-border); margin-top: var(--space-sm); }
.seq__txt { min-width: 0; }
.seq__role { font-size: 1.125rem; font-weight: 600; line-height: 1.4; margin: 0; }
.seq__desc { font-size: 1rem; line-height: 1.5; color: var(--color-text); margin: 2px 0 0; }
.seq__desc[hidden] { display: none; }
.seq__logo { grid-row: 1; grid-column: 2; height: 28px; display: flex; align-items: center; justify-content: flex-end; align-self: center; }
.seq__logo img { max-height: 100%; max-width: 10rem; display: block; }
.seq__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 0; font: 400 12px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.seq__meta .grp { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text); }
.seq__meta .grp i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.seq__meta .cnt { margin-left: auto; }
.seq__crs { grid-column: 1 / -1; margin-top: 8px; font-size: .9375rem; line-height: 1.55; }
.seq__crs b { display: block; font: 400 12px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 2px; }
.seq__crs-by { color: var(--color-text-muted); }
.seq__crs:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .seq__now.swap .seq__txt, .seq__now.swap .seq__logo { animation: seq-fadein .5s ease both; }
  @keyframes seq-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
/* controls: the pill is .hero__cta from style.css. Play/Pause/Replay, ← and → are round outline buttons
   with a text glyph, the outlined twin of the hero Stop/Play button (.scroll-fab). */
.seq__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-md); }
.seq__ctrl .hero__cta { font-family: var(--font); line-height: 1.5; background: transparent; cursor: pointer; }
.seq__btn--icon { padding: 0; width: 44px; height: 44px; font-size: 1.125rem; font-weight: 400; }   /* a true circle, glyph size like .scroll-fab (2.75rem) */
/* Hover only where hovering exists: on touch screens :hover sticks after a tap, and style.css's .hero__cta:hover
   turned the text white on a transparent pill (18.11.2026, iPhone). Same pattern as the drawer. */
.seq .hero__cta:hover { background: transparent; color: var(--color-accent); }
@media (hover: hover) { .seq .hero__cta:hover { background: var(--color-accent); color: var(--color-on-accent); } }
/* hint like the competency network: pulsing dot */
.seq__hint { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font: 400 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); transition: opacity .4s; }
.seq__hint.gone { opacity: 0; }
.seq__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--color-text); flex: none; }
@media (prefers-reduced-motion: no-preference) { .seq__pulse { animation: seq-pulse 1.6s ease-out infinite; } @keyframes seq-pulse { 0% { box-shadow: 0 0 0 0 rgba(26, 26, 26, .45); } 100% { box-shadow: 0 0 0 9px rgba(26, 26, 26, 0); } } }
/* table like "View as table"; open in the HTML so it shows without JavaScript; second list: courses */
details.seq__table { margin-top: 2.5rem; }
details.seq__table summary { list-style: none; display: inline-flex; }
details.seq__table summary::-webkit-details-marker { display: none; }
.seq__table .when-open { display: none; }
.seq__table[open] .when-open { display: inline; }
.seq__table[open] .when-closed { display: none; }
.seq__table ol { list-style: none; margin-top: var(--space-md); padding: 0; }
.seq__table li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline; padding: 7px 0 7px 10px; border-bottom: 1px solid var(--color-border); border-left: 3px solid var(--c); font-size: 15px; line-height: 1.4; }
.seq__table li small { display: block; font-size: 13px; color: var(--color-text-muted); }
.seq__table li .m { font: 400 12px var(--font-mono); color: var(--color-text-muted); white-space: nowrap; }
.seq__thd { margin: var(--space-md) 0 0; font: 400 12px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.seq__courses li { --c: var(--color-text); border-left-width: 1px; }
.seq__source { margin-top: var(--space-md); font-size: 13px; color: var(--color-text-muted); }
@media (max-width: 480px) { .seq__head, .seq__row { grid-template-columns: 2.4rem repeat(12, 1fr); } .seq { --g: 2px; } .seq__hint { margin-left: 0; width: 100%; } .seq__logo { height: 26px; } .seq__logo img { max-width: 7rem; } }
