/* ==========================================================================
   Tokens
   Colours are semantic tokens defined once with light-dark(); the active
   scheme comes from the system preference (first visit) or from
   <html data-theme="light|dark"> (manual choice, set by assets/js).
   ========================================================================== */
@font-face {
  font-family: "Inter Variable";
  src: url("../fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback to limit layout shift while Inter loads */
/* Allura: registered only; not applied to any element yet. Self-hosted, SIL OFL (see assets/fonts/allura/OFL.txt). */
@font-face {
  font-family: "Allura";
  src: url("../fonts/allura/allura-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.5%;
  descent-override: 22.6%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;

  --font-sans: "Inter Variable", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Surfaces and text */
  --color-bg: light-dark(#faf8f4, #181b1d);
  --color-surface: light-dark(#f3efe7, #212527);       /* sand */
  --color-surface-alt: light-dark(#e8eee9, #263030);   /* grey-green */
  --color-text: light-dark(#1e2224, #ece9e3);
  --color-muted: light-dark(#4b5357, #b2b8b5);
  --color-border: light-dark(#d4cec2, #3a4343);
  --color-border-strong: light-dark(#8a9490, #6d7977);

  /* Accent (muted sage / blue-green) */
  --color-accent: light-dark(#2a6860, #8ccdbf);
  --color-accent-hover: light-dark(#184840, #bde8dd);
  --color-accent-soft: light-dark(#dbe7e2, #2a3a37);
  --color-on-accent: light-dark(#faf8f4, #12201e);
  --color-focus: light-dark(#1b5f8c, #9fd0f0);

  /* Employer tones: subtle hints only, never corporate branding */
  --tone-otp-accent: light-dark(#2f5d46, #93c9a8);            /* muted forest / sage */
  --tone-otp-tint: light-dark(#edf3ee, #1b201e);
  --tone-vodafone-accent: light-dark(#85435a, #dba3b5);       /* muted dusty rose */
  --tone-vodafone-tint: light-dark(#f7eef0, #201c1e);
  --tone-docler-accent: light-dark(#6a5640, #d6c1a2);         /* warm sand / taupe */
  --tone-docler-tint: light-dark(#f3ede3, #201e1a);
  --tone-realszisztema-accent: light-dark(#735510, #d9b45c);  /* muted ochre, graphite ink */
  --tone-realszisztema-tint: light-dark(#f1ecd6, #1e1d19);

  /* About: one warm editorial family */
  --about-open-bg: light-dark(#f4ece0, #211d19);
  --about-karate-bg: light-dark(#efe5d6, #26201a);   --about-karate-accent: light-dark(#a23a2a, #f2937f);
  --about-reading-bg: light-dark(#f4efe5, #201f1c);  --about-reading-accent: light-dark(#6f5222, #d8b57b);
  --about-music-bg: light-dark(#e9dbc8, #2b2118);    --about-music-accent: light-dark(#8f3f12, #f1a874);
  --about-travel-bg: light-dark(#e6eae3, #1f2422);   --about-travel-accent: light-dark(#1d6761, #84d3cb);
  --about-ai-bg: light-dark(#e5e3ee, #1e1f2d);       --about-ai-accent: light-dark(#423d9c, #b7b4f4);
  --about-line: color-mix(in srgb, var(--color-text) 24%, transparent);

  /* Scale */
  --subhead-fs: 1.125rem;     /* shared subsection heading (Music: Concerts, Festivals) */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 5rem;
  --radius: .875rem;          /* cards: 14px */
  --radius-sm: .5rem;         /* controls */
  --measure: 70ch;
  --wrap: 75rem;              /* 1200px */
  --dur: 220ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --reveal-dur: 600ms;
  --reveal-ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-y: clamp(3rem, 7vw, 6rem);
  --block-gap: clamp(2.5rem, 5vw, 4rem);
  --card-pad: var(--space-3);
  --built-fs: 1.0625rem;          /* one body size for every normal paragraph in Built */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --tone-dur: 600ms;
  --header-h: 3.8125rem;      /* measured by main.js; this is the no-JS desktop estimate */
}
@media (max-width: 40rem) { :root { --header-h: 5rem; } }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-2)); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--space-2), var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), 90rem); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-2); }

a {
  color: var(--color-accent);
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--color-accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-2); top: -4rem;
  padding: var(--space-1) var(--space-2);
  background: var(--color-text); color: var(--color-bg);
  border-radius: var(--radius-sm); z-index: 10;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-1); color: var(--color-bg); }

/* ==========================================================================
   Header: sticky, translucent, theme-aware. No auto-hide, no resizing on scroll.
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg);                       /* fallback: opaque when backdrop-filter is unavailable */
  border-bottom: 1px solid transparent;              /* reserved so the border never shifts layout */
  transition: border-color var(--dur) var(--ease);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--color-bg) 72%, transparent);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
    backdrop-filter: blur(10px) saturate(1.05);
  }
}
.site-header.is-scrolled, .no-js .site-header { border-bottom-color: var(--color-border); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0 var(--space-3);
  padding-block: .25rem;
}
.brand { color: var(--color-text); font-size: 1rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.brand:hover { color: var(--color-accent); }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); }
.nav-list a, .theme-toggle {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--color-text); text-decoration: none; font-size: .875rem; font-weight: 500; letter-spacing: .08em;
}
.nav-list a:hover { color: var(--color-accent); text-decoration: underline; }
.lang-switch { font-weight: 650; padding-inline: .75rem; }
.nav-list .lang-switch {
  min-height: 2.25rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
}
.theme-toggle {
  justify-content: center; width: 2.75rem; padding: 0; cursor: pointer;
  background: none; border: 0; border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease);
}
.theme-toggle:hover { color: var(--color-accent); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 40rem) {
  /* Two stable rows on phones (brand, then navigation); never a third */
  .header-inner nav { width: 100%; }
  .nav-list { flex-wrap: nowrap; justify-content: space-between; gap: 0 .5rem; }
  .nav-list a { font-size: .75rem; letter-spacing: .05em; }
  .nav-list .lang-switch { padding-inline: .5rem; }
  .theme-toggle { width: 2.5rem; }
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }

/* ==========================================================================
   Hero and sections
   ========================================================================== */
.hero {
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}
.hero__inner { flex: 1; display: flex; flex-direction: column; container-type: inline-size; padding-block: clamp(2rem, 6svh, 4.5rem) clamp(1rem, 3svh, 2rem); }
.hero__main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { margin: 0 0 var(--space-3); color: var(--color-muted); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 {
  --hero-fs: 16.5cqi;                         /* mobile: line 3 breaks once, after its first words */
  margin: 0 0 var(--space-4); font-size: min(var(--hero-fs), 14svh);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 760; text-wrap: initial;
}
@media (min-width: 40rem) { .hero h1 { --hero-fs: 15cqi; } }
@media (min-width: 64rem) { .hero h1 { --hero-fs: 9.4cqi; } }
html[lang="hu"] .hero h1 { --hero-fs: 12.2cqi; }
@media (min-width: 40rem) { html[lang="hu"] .hero h1 { --hero-fs: 9cqi; } }
@media (min-width: 64rem) { html[lang="hu"] .hero h1 { --hero-fs: 9.2cqi; } }
@media (max-height: 48rem) {
  .hero__inner { padding-block: 1.25rem .5rem; }
  .eyebrow { margin-bottom: var(--space-2); }
  .hero h1 { margin-bottom: var(--space-3); }
  .hero__cta { margin-top: var(--space-3); }
}
.hero__line { display: block; }
.hero__line--accent { color: var(--color-accent); }
.hero .nb { white-space: nowrap; }
.lead { max-width: 44rem; margin: 0; text-wrap: balance; font-size: clamp(1.125rem, 1rem + .6vw, 1.4rem); color: var(--color-muted); }
.hero__cta { margin-top: var(--space-4); }
.btn {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.5rem;
  font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  color: var(--color-on-accent); background: var(--color-accent); border-radius: var(--radius-sm);
  transition: background-color var(--dur) var(--ease);
}
.btn:hover { color: var(--color-on-accent); background: var(--color-accent-hover); }
.scroll-cue {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem;
  color: var(--color-muted); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.scroll-cue:hover { color: var(--color-text); text-decoration: none; }
.scroll-cue svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.section { padding-block: var(--section-y); border-top: 1px solid var(--color-border); }
.section--tint { background: var(--color-surface); }
.section__head { margin-bottom: var(--space-3); max-width: var(--measure); }
.section__head h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -.02em; font-weight: 720; }
.section__head p { margin-top: var(--space-2); color: var(--color-muted); }
.subhead { margin: 0 0 var(--space-2); font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); letter-spacing: -.015em; font-weight: 680; }

/* ==========================================================================
   Shared small-caps labels (one definition; colour set per component)
   ========================================================================== */
.proof-label, .facts-label, .stage__kind, .stage__flow dt, .csap__eyebrow, .about-ch__label,
.evidence__block h4, .results-practice h4 {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase;
}
.proof-label, .facts-label { color: var(--color-muted); }

/* ==========================================================================
   Cards and disclosures
   ========================================================================== */
.card-grid { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* With JS the grid aligns to the top and main.js gives every collapsed card the same height,
   so an expanded card grows alone and never leaves empty space in its neighbours. */
.js .card-grid { align-items: start; }
.card-grid > li { display: flex; }
.card {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  padding: var(--card-pad); border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); transition: border-color var(--dur) var(--ease);
}
.section--tint .card { background: var(--color-bg); }
.card:hover, .card:focus-within { border-color: var(--color-border-strong); }
.card__title { font-size: 1.25rem; font-weight: 680; letter-spacing: -.01em; transition: color var(--dur) var(--ease); }
.card:hover .card__title, .card:focus-within .card__title { color: var(--color-accent); }
.card__claim { margin: var(--space-1) 0 var(--space-2); }
.card__sub { margin-top: .25rem; color: var(--color-muted); font-size: .9375rem; }
.proof-card .disclosure-btn { margin-top: auto; align-self: flex-start; }

.disclosure-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem;
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--color-accent); cursor: pointer;
  background: transparent; border: 1px solid var(--color-accent); border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.disclosure-btn:hover { background: var(--color-accent-soft); color: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.disclosure-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.disclosure-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.disclosure-panel__inner > :first-child { margin-top: var(--space-3); }
.disclosure-panel__inner > * + * { margin-top: var(--space-2); }
.proof-points { display: grid; gap: var(--space-1); padding-left: 1.25rem; list-style: disc; }
.proof-points li::marker { color: var(--color-accent); }
.deep-link { display: inline-block; font-weight: 600; }
.deep-link::after { content: " \2192"; }

/* With JS: panels collapse. Without JS: buttons are hidden and all content stays visible. */
.no-js .disclosure-btn { display: none; }
.no-js .disclosure-panel__inner > :first-child { margin-top: var(--space-2); }
.js .disclosure-panel {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.js .disclosure-btn[aria-expanded="true"] + .disclosure-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.js .disclosure-panel__inner { overflow: hidden; min-height: 0; }
.js .disclosure-panel.is-instant { transition: none; }

.btn--ghost { color: var(--color-accent); background: transparent; border: 1px solid var(--color-accent); }
.btn--ghost:hover { color: var(--color-accent-hover); background: var(--color-accent-soft); }
.coming-soon { margin-left: .5rem; white-space: nowrap; padding: .1rem .5rem; border: 1px solid currentColor; border-radius: 99px; font-size: .6875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
[aria-disabled="true"] { cursor: not-allowed; }
.btn--ghost[aria-disabled="true"] { color: var(--color-muted); border-color: var(--color-border-strong); background: transparent; }

/* ==========================================================================
   Story disclosure (accordion): teaser and full story share one area.
   The area animates between two measured heights and returns to natural height
   when idle, so nothing can stay clipped. No JS: the full story is shown.
   ========================================================================== */
.story__btn { margin-top: var(--space-2); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.story__stage { position: relative; }
.no-js .story__teaser, .no-js .story__btn { display: none; }
.js .story__stage { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; transition: height 600ms var(--ease-out); }
.js .story.is-open > .story__stage, .js .story.is-open .story__stage { transition-duration: 650ms; }
.js .story[data-state="opening"] .story__stage, .js .story[data-state="closing"] .story__stage { overflow: hidden; }
.js .story__teaser, .js .story__full { grid-area: 1 / 1; min-width: 0; }
.js .story:not([data-state]) .story__full, .js .story[data-state="closed"] .story__full, .js .story[data-state="open"] .story__teaser { display: none; }
.js .story__teaser { opacity: 1; transition: opacity 400ms var(--ease-out) 200ms; }
.js .story.is-open .story__teaser { opacity: 0; transition: opacity 240ms ease; }
.js .story__full { opacity: 0; transform: translateY(10px); transition: opacity 240ms ease, transform 240ms ease; }
.js .story.is-open .story__full { opacity: 1; transform: none; transition: opacity 450ms var(--ease-out) 200ms, transform 550ms var(--ease-out) 200ms; }
.story__teaser > * + *, .story__full > * + * { margin-top: var(--space-2); }

/* ==========================================================================
   Built
   ========================================================================== */
.story__teaser p, .story__full p, .csap__overview p, .portfolio-card .prose p, .stage__endpoint, .journey-lead {
  font-size: var(--built-fs); line-height: 1.65; color: var(--color-text);
}
.journey-lead { color: var(--color-muted); }
.story__full .facts-label { font-size: .75rem; line-height: 1.4; }
.story__full .story__note { color: var(--color-muted); font-size: .9375rem; font-style: italic; }
.reporting { max-width: var(--measure); }
.journey-intro, .built-more { margin-top: var(--block-gap); }
.built-more { display: grid; gap: var(--space-4); }
.journey-lead { margin-bottom: var(--space-2); }
.journey-path { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-bottom: var(--space-4); color: var(--color-muted); font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.journey-path li { display: inline-flex; align-items: center; gap: .5rem; }
.journey-path li:not(:last-child)::after { content: "\2192"; }
.journey-path a { display: inline-block; padding-block: .625rem; color: inherit; text-decoration: none; }
.journey-path a:hover { color: var(--color-accent); text-decoration: underline; }

/* Automation Journey: one continuous far-left timeline with numbered circles.
   Desktop: left summary (circle, eyebrow, title, progression) + right story. Mobile: title, story, control, progression. */
.journey { --journey-progress: 0; position: relative; isolation: isolate; display: grid; gap: var(--block-gap); padding-left: 2.25rem; counter-reset: stage; }
.journey::before, .journey::after { content: ""; position: absolute; z-index: -1; left: .6875rem; top: .75rem; width: 2px; border-radius: 2px; }
.journey::before { bottom: var(--journey-end, .75rem); background: var(--color-border); }
.journey::after { height: 0; background: var(--color-accent); }
.journey.is-live::after { height: calc((100% - .75rem - var(--journey-end, .75rem)) * var(--journey-progress)); }
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2) var(--space-5); }
.stage::before {
  counter-increment: stage; content: counter(stage);
  position: absolute; left: -2.25rem; top: .15rem; width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center; border-radius: 50%; font-size: .75rem; font-weight: 700;
  color: var(--color-muted); background: var(--color-bg); border: 2px solid var(--color-border-strong);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stage.is-reached::before { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.stage--end::before { content: ""; counter-increment: none; }
.stage__summary { display: contents; }
.stage__head { order: 1; }
.stage__endbody { order: 2; }
.stage__endbody .stage__more { margin-top: var(--space-1); }
.stage > .story { order: 2; }
.stage__flow { order: 3; }
@media (min-width: 62rem) {
  .stage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .stage__summary { display: block; position: sticky; align-self: start; top: calc(var(--header-h) + var(--ctx-offset, 0px) + var(--space-3)); }
  .stage > .story { order: 0; max-width: var(--measure); }
}
.stage__kind { margin-bottom: .375rem; color: var(--color-accent); }
.stage h4 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -.015em; }
.stage__more { margin-top: var(--space-1); }
.deep-link-arrow { display: inline-block; padding-block: .5rem; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.deep-link-arrow::after { content: " \2192"; }
/* Permanent three-stage progression: separated by spacing, type and horizontal rules only */
.stage__flow { display: grid; margin-top: var(--space-3); }
.stage__flow > div { padding: var(--space-2) 0; border-top: 1px solid var(--color-border); }
.stage__flow > div:last-child { border-bottom: 1px solid var(--color-border); }
.stage__flow dt { margin-bottom: .25rem; color: var(--color-muted); }
.stage__flow > div:nth-child(2) dt { color: var(--color-accent); }
.stage__flow > div:last-child dt { color: var(--color-text); }
.stage__flow dd { font-size: .9375rem; line-height: 1.5; }
/* Journey disclosure control: simple text link when the layout is a single column */
@media (max-width: 61.99rem) {
  .stage .story__btn { min-height: 2.75rem; margin-top: var(--space-1); padding: 0 .5rem; margin-left: -.5rem; border: 0; border-radius: var(--radius-sm); background: transparent; }
  .stage .story__btn:hover { background: transparent; text-decoration: underline; }
  .stage .story__btn svg { display: none; }
  .stage .story__btn::after { content: "\2193"; }
  .stage .story__btn[aria-expanded="true"]::after { content: "\2191"; }
}
.media-link { font-weight: 600; text-decoration-thickness: 2px; }

.facts-list { display: grid; gap: .375rem; margin-top: .5rem; padding-left: 1.1rem; list-style: disc; font-size: .9375rem; }
.facts-list li::marker { color: var(--color-accent); }
.dot-list { display: flex; flex-wrap: wrap; margin-top: .375rem; font-weight: 550; }
.dot-list li:not(:last-child)::after { content: "\00b7"; margin-inline: .6rem; color: var(--color-muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chips li { padding: .3rem .75rem; border: 1px solid var(--color-border-strong); border-radius: 99px; background: var(--color-bg); font-size: .875rem; font-weight: 550; }
.principle { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.principle__statement { margin-top: .25rem; font-size: var(--built-fs); font-weight: 650; }
.principle__own { display: grid; gap: .25rem; margin-top: .5rem; color: var(--color-muted); font-size: .9375rem; }

.csap, .portfolio-card { padding: var(--card-pad); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
@media (min-width: 48rem) { .csap, .portfolio-card { padding: var(--space-4); } }
.csap { border-top: 4px solid var(--color-accent); }
.csap__eyebrow { margin-bottom: .25rem; color: var(--color-accent); }
.csap__title { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 720; letter-spacing: -.02em; }
.csap__overview { max-width: var(--measure); margin-top: var(--space-3); }
.csap__capability { margin-top: var(--space-3); }
.csap__capability .principle { margin-top: var(--space-2); }
.csap__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.csap__controls .story__btn { margin-top: 0; min-height: 3rem; }
.csap .story__full { padding-top: var(--space-4); }
.csap .story__full > p { max-width: var(--measure); }
.csap__lists { display: grid; gap: var(--space-3); margin-top: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.portfolio-card__title { font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2rem); }
.portfolio-card .prose { margin-top: var(--space-2); max-width: var(--measure); }
.portfolio-card .prose > * + *, .csap__overview > * + * { margin-top: var(--space-2); }

/* Reusable media components: markup is prepared (as comments) in the pages; nothing renders until media exists */
.media-figure { margin: 0; }
.media-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.media-figure figcaption { margin-top: .5rem; color: var(--color-muted); font-size: .875rem; }
.media-pair { display: grid; gap: var(--space-2); margin-top: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

/* ==========================================================================
   Career: employer chapters, role progression, tone transitions
   Tone (set on #career by main.js from the dominant employer; per chapter without JS)
   changes only: background tint, markers, heading accents, links, result details.
   ========================================================================== */
.career { --t-accent: var(--tone-otp-accent); --t-tint: var(--tone-otp-tint); }
.career[data-tone="vodafone"] { --t-accent: var(--tone-vodafone-accent); --t-tint: var(--tone-vodafone-tint); }
.career[data-tone="docler"] { --t-accent: var(--tone-docler-accent); --t-tint: var(--tone-docler-tint); }
.career[data-tone="realszisztema"] { --t-accent: var(--tone-realszisztema-accent); --t-tint: var(--tone-realszisztema-tint); }
.no-js .employer[data-employer="vodafone"] { --t-accent: var(--tone-vodafone-accent); }
.no-js .employer[data-employer="docler"] { --t-accent: var(--tone-docler-accent); }
.no-js .employer[data-employer="realszisztema"] { --t-accent: var(--tone-realszisztema-accent); }
.career { background-color: var(--t-tint); transition: background-color var(--tone-dur) var(--ease); }
.career a { color: var(--t-accent); transition: color var(--tone-dur) var(--ease); }
.career a:hover { color: color-mix(in srgb, var(--t-accent) 65%, var(--color-text)); }

.employers { display: grid; gap: var(--space-5); }
.employer { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 3px solid var(--t-accent); transition: border-color var(--tone-dur) var(--ease); }
@media (min-width: 62rem) {
  .employer { grid-template-columns: minmax(14rem, 1fr) 3fr; gap: var(--space-4); align-items: start; }
  .employer__label { position: sticky; top: calc(var(--header-h) + var(--ctx-offset, 0px) + var(--space-3)); }
}
.employer__name { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); font-weight: 720; letter-spacing: -.015em; }
.employer__mark { display: inline-block; width: .6em; height: .6em; margin-right: .5em; background: var(--t-accent); transition: background-color var(--tone-dur) var(--ease); }
[data-employer="otp"] .employer__mark { border-radius: 50%; }
[data-employer="vodafone"] .employer__mark { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
[data-employer="docler"] .employer__mark { border-radius: 18%; }
[data-employer="realszisztema"] .employer__mark { clip-path: polygon(50% 5%, 100% 95%, 0 95%); }
.employer__period { margin-top: .25rem; color: var(--color-muted); font-weight: 550; font-variant-numeric: tabular-nums; }
.progression { display: grid; gap: .5rem; margin-top: var(--space-2); }
.progression li { position: relative; padding-left: 1.5rem; font-size: .9375rem; line-height: 1.35; }
.progression li::before { content: ""; position: absolute; left: 0; top: .2em; width: .75rem; height: .75rem; border-radius: 50%; border: 2px solid var(--t-accent); background: var(--color-bg); transition: border-color var(--tone-dur) var(--ease), background-color var(--tone-dur) var(--ease); }
.progression li.is-latest::before { background: var(--t-accent); }
.progression li:not(:last-child)::after { content: ""; position: absolute; left: calc(.375rem - 1px); top: 1.1em; bottom: -.6em; width: 2px; background: var(--color-border-strong); }
.employer__body > * + * { margin-top: var(--space-3); }
.employer__summary { max-width: var(--measure); font-size: 1.0625rem; }
.roles { display: grid; gap: var(--space-4); max-width: var(--measure); }
.role { padding-left: var(--space-3); border-left: 2px solid var(--t-accent); transition: border-color var(--tone-dur) var(--ease); }
.role h4 { font-size: 1.125rem; font-weight: 680; }
.role__period { margin-top: .125rem; color: var(--color-muted); font-size: .9375rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.bullets { display: grid; gap: var(--space-2); margin-top: var(--space-2); padding-left: 1.25rem; list-style: disc; }
.bullets li::marker { color: var(--t-accent); }
.prose--career { max-width: var(--measure); }
.prose--career > * + * { margin-top: var(--space-2); }
.results-practice { max-width: var(--measure); }
.results-practice h4, .evidence__block h4 { margin-bottom: .5rem; color: var(--t-accent); transition: color var(--tone-dur) var(--ease); }
.evidence__grid { display: grid; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); }
@media (min-width: 48rem) { .evidence__grid { grid-template-columns: 1fr 1fr; } }
.evidence__list { display: grid; gap: .5rem; padding-left: 1.1rem; list-style: disc; font-size: .9375rem; }
.evidence__list li::marker { color: var(--t-accent); }
.evidence__block--recognition { padding-left: var(--space-2); border-left: 3px solid var(--t-accent); transition: border-color var(--tone-dur) var(--ease); }
.evidence__block--recognition h4::before { content: "\2605\00a0"; }
.recognition + .recognition { margin-top: var(--space-2); }
.recognition__title { font-weight: 680; }
/* Recognition proof images: each sits directly under its own item, same frame, natural aspect ratio */
.proof { display: block; margin-top: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); line-height: 0; }
.proof img { display: block; width: 100%; height: auto; }
.proof--certificate { max-width: 18rem; }
.proof--award { max-width: 15rem; }
.proof:focus-visible { border-radius: var(--radius-sm); }
/* Image enlargement: the button exists only when JavaScript upgrades .proof[data-enlarge] */
.proof__btn { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: 0; cursor: zoom-in; }
.proof__btn:focus-visible { outline-offset: -5px; }
.proof__btn::after { content: ""; position: absolute; right: .5rem; bottom: .5rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: linear-gradient(#fff, #fff) center / .75rem 2px no-repeat, linear-gradient(#fff, #fff) center / 2px .75rem no-repeat, rgba(20, 24, 22, .78); }
.proof img, .img-modal__img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.img-modal { box-sizing: border-box; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); border: 0; background: transparent; color: #fff; overflow: hidden; }
.img-modal::backdrop { background: rgba(10, 14, 13, .86); }
.img-modal[open] { display: grid; place-items: center; }
.img-modal__panel { position: relative; max-width: 100%; max-height: 100%; display: grid; justify-items: center; }
.img-modal__img { display: block; max-width: 100%; max-height: calc(100dvh - 2rem - 3.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); width: auto; height: auto; margin-top: 3.5rem; border-radius: var(--radius-sm); background: var(--color-surface); }
.img-modal__close { position: absolute; top: 0; right: 0; min-width: 2.75rem; min-height: 2.75rem; padding: 0 1rem; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; background: rgba(20, 24, 22, .9); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.img-modal__close:focus-visible { outline: 3px solid #9fd0f0; outline-offset: 3px; }
@supports (overflow: clip) { html:has(.img-modal[open]) { overflow: clip; } }
.disclosure-btn--tone { color: var(--t-accent); border-color: var(--t-accent); }
.disclosure-btn--tone:hover { color: color-mix(in srgb, var(--t-accent) 65%, var(--color-text)); border-color: currentColor; background: color-mix(in srgb, var(--t-accent) 12%, transparent); }
.career .disclosure-btn { transition: color var(--tone-dur) var(--ease), border-color var(--tone-dur) var(--ease), background-color var(--dur) var(--ease); }

/* Mobile-only page context bar (created by main.js, aria-hidden): one sticky bar under the fixed header, primary + secondary title */
/* Active on phones (portrait and landscape) and touch tablets up to 1366px wide; never on mouse-driven desktop windows */
@media (max-width: 40rem), (pointer: coarse) and (max-width: 85.4rem) { :root { --ctx-offset: 3rem; } }
@media (max-width: 40rem) and (orientation: landscape) and (max-height: 32rem), (pointer: coarse) and (max-width: 85.4rem) and (orientation: landscape) and (max-height: 32rem) { :root { --ctx-offset: 2.625rem; } }
.page-ctx { display: none; }
@media (max-width: 40rem), (pointer: coarse) and (max-width: 85.4rem) {
  .page-ctx {
    --ctx-h: var(--ctx-offset); --ctx-accent: var(--color-accent); --ctx-bg: var(--color-bg);
    display: flex; flex-direction: column; justify-content: center; box-sizing: border-box;
    position: sticky; top: var(--header-h); z-index: 5; height: var(--ctx-h); margin-bottom: calc(-1 * var(--ctx-h));
    padding: 0 max(var(--space-2), env(safe-area-inset-right)) 0 max(var(--space-2), env(safe-area-inset-left));
    border-bottom: 1px solid color-mix(in srgb, var(--ctx-accent) 35%, transparent);
    background: color-mix(in srgb, var(--ctx-bg) 96%, transparent);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 200ms var(--ease), visibility 0s linear 200ms, background-color 300ms var(--ease);
  }
  .page-ctx.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
  @supports (backdrop-filter: blur(1px)) { .page-ctx { backdrop-filter: blur(8px); } }
  .page-ctx[data-tone="otp"] { --ctx-accent: var(--tone-otp-accent); --ctx-bg: var(--tone-otp-tint); }
  .page-ctx[data-tone="vodafone"] { --ctx-accent: var(--tone-vodafone-accent); --ctx-bg: var(--tone-vodafone-tint); }
  .page-ctx[data-tone="docler"] { --ctx-accent: var(--tone-docler-accent); --ctx-bg: var(--tone-docler-tint); }
  .page-ctx[data-tone="realszisztema"] { --ctx-accent: var(--tone-realszisztema-accent); --ctx-bg: var(--tone-realszisztema-tint); }
  .page-ctx[data-tone="about"] { --ctx-bg: var(--about-open-bg); }
  .page-ctx[data-tone="karate"] { --ctx-accent: var(--about-karate-accent); --ctx-bg: var(--about-karate-bg); }
  .page-ctx[data-tone="reading"] { --ctx-accent: var(--about-reading-accent); --ctx-bg: var(--about-reading-bg); }
  .page-ctx[data-tone="music"] { --ctx-accent: var(--about-music-accent); --ctx-bg: var(--about-music-bg); }
  .page-ctx[data-tone="travel"] { --ctx-accent: var(--about-travel-accent); --ctx-bg: var(--about-travel-bg); }
  .page-ctx[data-tone="ai"] { --ctx-accent: var(--about-ai-accent); --ctx-bg: var(--about-ai-bg); }
  .page-ctx__primary, .page-ctx__secondary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-ctx__primary { color: var(--ctx-accent); font-size: .875rem; font-weight: 700; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase; }
  .page-ctx__primary.is-long { font-size: .75rem; letter-spacing: .02em; }
  .page-ctx__secondary { color: var(--color-text); font-size: .75rem; line-height: 1.3; }
  .page-ctx__secondary[hidden] { display: none; }
  .employer, .role { scroll-margin-top: var(--ctx-offset); }
}
/* ==========================================================================
   Reveal system: opt in with [data-reveal]. Armed only by JS (class set in
   theme-init.js), never for reduced motion. Transform/opacity only: no layout shift.
   ========================================================================== */
.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease);
}
.reveal-ready [data-reveal].is-revealed { opacity: 1; transform: none; }
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   About: one warm editorial family. Chapters differ tonally, never dramatically.
   Every hobby block uses the same header: thin line, small label, creative title.
   ========================================================================== */
.about-open { padding-block: clamp(3rem, 6vw, 5rem); background: var(--about-open-bg); border-top: 1px solid var(--color-border); }
.about-open__inner { display: grid; gap: var(--space-4); align-items: start; }
.about-open__text { max-width: 44rem; }
/* Two-column composition only when a portrait figure is present */
@media (min-width: 56rem) { .about-open__inner:has(> .about-open__art) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-5); align-items: center; } }
@media (min-width: 56rem) and (max-width: 64rem) { .about-open__inner:has(> .about-open__art) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.about-open h2 { margin-block: var(--space-2) var(--space-3); font-size: clamp(3.25rem, 1.8rem + 7vw, 7.5rem); font-weight: 780; letter-spacing: -.04em; line-height: .95; }
.about-open .eyebrow { margin-bottom: 0; max-width: 28rem; }
.about-open__body { max-width: 49.5rem; margin-top: var(--space-2); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.65; }
.about-open h2 + .about-open__body { margin-top: var(--space-3); }
@media (min-width: 56rem) { .about-open__body { font-size: 1.0625rem; } }
.about-open__more { margin-top: var(--space-3); max-width: 40rem; color: var(--color-muted); font-size: 1rem; font-weight: 600; line-height: 1.5; }
.portrait { margin: 0; }
.portrait__frame { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(165deg, light-dark(#e9d3b8, #3a2f26), light-dark(#d9b48f, #2a221c)); }
.portrait img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 55.99rem) { .about-open__inner > .about-open__art { display: none; } }
/* Portrait inside the text block (EN): reading order eyebrow, ABOUT, portrait, paragraphs. Stacked by default;
   two columns (wider text, narrower portrait) on desktop, tablet landscape and short landscape phones. */
.about-open__text:has(> .about-open__art) { max-width: none; }
.about-open__text > .about-open__art { width: min(100%, 18rem); margin-top: var(--space-3); }
@media (min-width: 56rem), (orientation: landscape) and (max-height: 32rem) and (min-width: 36rem) {
  .about-open__text:has(> .about-open__art) { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; column-gap: var(--space-4); align-items: start; }
  .about-open__text:has(> .about-open__art) > :not(.about-open__art) { grid-column: 1; }
  .about-open__text > .about-open__art { grid-column: 2; grid-row: 1 / span 5; align-self: center; width: 100%; margin-top: 0; }
}
@media (min-width: 56rem) {
  .about-open__text:has(> .about-open__art) { grid-template-columns: minmax(0, 8.4fr) minmax(0, 2.8fr); column-gap: var(--space-4); }
}
@media (min-width: 64rem) { .about-open__text:has(> .about-open__art) { column-gap: var(--space-5); } }
/* Portrait sits a little further left, into the unused space beside the text column (column widths unchanged) */
@media (min-width: 75rem) { .about-open__text > .about-open__art { margin-left: -3.5rem; } }
/* Tablet portrait: the opening is content-driven instead of filling the viewport (the portrait slot stays in the markup) */
@media (min-width: 48rem) and (max-width: 64rem) and (orientation: portrait) { .about-open { min-height: 0; } }

.about-ch { padding-block: var(--section-y); background: var(--ch-bg); color: var(--color-text); }
.about-ch--karate { --ch-bg: var(--about-karate-bg); --ch-accent: var(--about-karate-accent); }
.about-ch--reading { --ch-bg: var(--about-reading-bg); --ch-accent: var(--about-reading-accent); }
.about-ch--music { --ch-bg: var(--about-music-bg); --ch-accent: var(--about-music-accent); padding-bottom: 0; }
.about-ch--travel { --ch-bg: var(--about-travel-bg); --ch-accent: var(--about-travel-accent); }
.about-ch--ai { --ch-bg: var(--about-ai-bg); --ch-accent: var(--about-ai-accent); }
.about-ch__head { margin-bottom: var(--space-3); }
.about-ch__label { margin-bottom: var(--space-1); color: var(--ch-accent); }
.about-ch__title { padding-top: var(--space-1); border-top: 1px solid var(--about-line); }
.about-ch__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); font-weight: 780; letter-spacing: -.02em; line-height: 1.02; text-transform: uppercase; text-wrap: balance; }
.about-ch .facts-label { color: var(--ch-accent); }
.about-ch__grid { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 56rem) { .about-ch__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-5); } }
.about-ch__grid--reading { grid-template-columns: minmax(0, 1fr); }
.about-ch__grid--travel { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) {
  .about-ch__grid--reading { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .about-ch__grid--travel { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
}
.prose--wide { max-width: 40rem; }
/* Music introduction: body-copy size inherited like the other hobby paragraphs; measure about 70 characters per line */
.about-ch__intro { max-width: 44rem; margin-bottom: var(--space-4); }
.cutout img { display: block; max-height: 22rem; max-width: 100%; width: auto; height: auto; margin-inline: auto; }
@media (min-width: 56rem) { .cutout img { max-height: 29rem; margin-inline: 0 auto; } .about-ch__grid:has(.cutout) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-4); } }
/* The decorative belt mark gives way to the real cut-out when one is present */
.about-ch__grid:has(.cutout) .karate-mark { display: none; }

.karate-mark { position: relative; align-self: center; justify-self: start; width: min(100%, 20rem); height: 3.25rem; border: 1px solid var(--color-border-strong); border-radius: 4px; background: light-dark(#fffdf8, #f3efe8); transform: rotate(-6deg); }
.karate-mark__stripe { position: absolute; top: -1px; bottom: -1px; right: 18%; width: .75rem; background: var(--ch-accent); }
@media (max-width: 55.99rem) { .karate-mark { width: 12rem; height: 2.25rem; } }

.music-block .prose { max-width: 48rem; margin-top: .5rem; }
.concerts { display: grid; gap: var(--space-2); margin-block: var(--space-3) var(--space-5); }
@media (min-width: 48rem) { .concerts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); } }
.concert { padding-top: var(--space-2); border-top: 3px solid var(--ch-accent); }
.concert__photo { margin-bottom: var(--space-2); }
.concert__photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.concert__name { margin: 0; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 740; letter-spacing: -.015em; line-height: 1.15; }
.concert__meta { margin-top: .25rem; color: var(--color-muted); font-weight: 550; letter-spacing: .04em; }
.fest { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); background: color-mix(in srgb, var(--ch-accent) 7%, var(--ch-bg)); border-top: 1px solid var(--about-line); }
.fest__bg { position: absolute; inset: -2rem; z-index: -2; width: calc(100% + 4rem); height: calc(100% + 4rem); max-width: none; object-fit: cover; filter: blur(14px); }
/* Only when a Fishing background image is added: dark overlay and light text for contrast */
.fest:has(.fest__bg) { --ch-accent: #f1b27d; color: #eef2ee; background: #1d2724; }
.fest:has(.fest__bg) .concert__meta, .fest:has(.fest__bg) .artist-wall { color: #c9d3cd; }
.fest:has(.fest__bg)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 20, 18, .66); }
.fest .prose { max-width: 40rem; margin-top: .5rem; }
/* Closing statement: Allura at regular weight, plain white, handwritten-note feel. Two lines with an offset second line and a slight tilt on wide screens; natural wrapping and no tilt on narrow ones. */
.fest__sign { max-width: 40rem; margin-top: var(--space-4); font-family: "Allura", cursive; font-weight: 400; font-style: normal; font-synthesis: none; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); line-height: 1.2; color: #fff; opacity: .85; text-decoration: none; width: fit-content; margin-inline: auto; text-align: center; transform-origin: center; }
@media (min-width: 40rem) { .fest__sign { transform: rotate(-.75deg); } }
@media (min-width: 56rem) {
  .fest__sign { position: relative; top: var(--space-3); margin-block: 0 -2.4em; transform: translateX(-.011em) rotate(-1.5deg); text-align: left; }
  .fest__sign span { display: block; }
  .fest__sign span + span { margin-left: 2.25rem; transform: translateY(.12em); }
}
/* Wide columns: the paragraph no longer ends on a second line, so one body line of space keeps the note where it sat. */
@media (min-width: 63.875rem) { .fest__sign { margin-top: 1.75rem; } }
@media (min-width: 56rem) and (max-width: 61.99rem) { .fest__inner:has(.fest__sign) { padding-bottom: var(--space-4); } }
.fest__inner { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 56rem) { .fest__inner:has(.fest__photo) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-5); } }
.fest__photo img { border-radius: var(--radius-sm); }
.artist-wall { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: var(--space-3); color: var(--color-muted); font-size: .9375rem; }
.artist-wall li:not(:last-child)::after { content: "\00b7"; margin-left: 1rem; }

.someday { display: grid; gap: .5rem; font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem); font-weight: 780; line-height: 1.02; letter-spacing: -.02em; text-transform: uppercase; }
.someday__dot { display: none; }
.someday span:last-child { color: var(--ch-accent); }
.prose cite { font-style: italic; }
.reading-figure { margin-top: var(--space-3); max-width: 28rem; }
.reading-figure img { border-radius: var(--radius); box-shadow: 0 0 0 1px light-dark(transparent, rgb(255 255 255 / .08)); }
/* Travel: one image group. Warsaw is primary; Milan above the Yann Tiersen image forms a secondary column whose height matches Warsaw.
   One shared gap; every frame uses the same radius via .media-figure. Mobile stacks Warsaw, Milan, Yann Tiersen. */
.city-images { --city-gap: var(--space-2); display: grid; gap: var(--city-gap); max-width: 50rem; grid-template-columns: minmax(0, 1fr); }
.city--milan { display: grid; gap: var(--city-gap); }
.city-images .media-figure { overflow: hidden; border-radius: var(--radius-sm); }
.city-images img { height: 100%; object-fit: cover; }
.city--primary .media-figure { aspect-ratio: 1 / 1; }
.city--primary img { object-position: 50% 35%; }
.city--milan .media-figure:first-child { aspect-ratio: 1 / 1; }
.city--milan .media-figure:first-child img { object-position: 50% 30%; }
.city__concert { aspect-ratio: 4 / 3; }
@media (min-width: 40rem) {
  .city-images { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .city--primary .media-figure { aspect-ratio: 6 / 7; }
  /* contain: size lets the Warsaw frame set the row height; the secondary column then fills exactly that height */
  .city--milan { contain: size; grid-template-rows: minmax(0, 1fr) auto; }
  .city--milan .media-figure:first-child { aspect-ratio: auto; min-height: 0; }
}
@media (min-width: 56rem) { .about-ch__grid--travel .city-images { grid-column: 1 / -1; } }

.cycle { display: grid; align-content: start; counter-reset: cyc; }
.cycle li { position: relative; padding: .75rem 0 .75rem 2.5rem; border-bottom: 1px solid color-mix(in srgb, var(--ch-accent) 35%, transparent); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 740; letter-spacing: .06em; text-transform: uppercase; counter-increment: cyc; }
.cycle li::before { content: counter(cyc); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border: 2px solid var(--ch-accent); border-radius: 50%; color: var(--ch-accent); font-size: .8125rem; font-weight: 700; letter-spacing: 0; }
.cycle li:last-child { border-bottom: 0; color: var(--ch-accent); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { max-width: 60rem; }
.contact__lead { max-width: var(--measure); font-size: 1.125rem; }
.contact__links { display: grid; gap: var(--space-2); margin-top: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.contact__links li { display: flex; }
.contact-cta {
  flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem; min-height: 3.5rem; padding: .5rem 1.25rem;
  border: 1px solid var(--color-accent); border-radius: var(--radius-sm); background: transparent;
  color: var(--color-accent); font-size: 1rem; font-weight: 650; text-align: center; text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
a.contact-cta[href]:hover { color: var(--color-accent-hover); background: var(--color-accent-soft); }
.contact-cta[aria-disabled="true"] { color: var(--color-muted); border-color: var(--color-border-strong); }

.music-sub { margin-bottom: var(--space-1); color: var(--ch-accent); font-size: var(--subhead-fs); font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }

/* Karate: controlled line breaks. The paragraph measure is unchanged, so the break is only honoured where the first line
   ("... starts with being" / "... beginner, focusing", about 687px at 17px) physically fits the text column; below that it wraps naturally. */
.karate-br { display: none; }
@media (min-width: 73rem) { .karate-br { display: inline; } }
