:root {
  --bg: #f4efe6;
  --bg-elevated: #fffaf3;
  --ink: #1f1a16;
  --ink-soft: #3a322b;
  --muted: #6e6256;
  --line: rgba(31, 26, 22, 0.12);
  --accent: #e85d04;
  --accent-deep: #c2410c;
  --accent-soft: rgba(232, 93, 4, 0.12);
  --person: #e85d04;
  --career: #1d4ed8;
  --learning: #15803d;
  --contact: #7c3aed;
  --odoo: #714b67;
  --core: #fffaf3;
  --max: 44rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  background-color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(232, 93, 4, 0.12), transparent 55%),
    radial-gradient(700px 480px at 92% 18%, rgba(29, 78, 216, 0.1), transparent 50%),
    radial-gradient(640px 420px at 48% 100%, rgba(21, 128, 61, 0.08), transparent 48%),
    linear-gradient(180deg, #faf6ef 0%, var(--bg) 40%, #ebe4d8 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  /* fixed attachment causes white gaps / jump on many phones */
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (hover: hover) and (pointer: fine) {
  body {
    background-attachment: fixed;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--ink);
  color: var(--bg-elevated);
  z-index: 100;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  clip-path: none;
  border-radius: 0.5rem;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* —— Header —— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem var(--pad);
  transition:
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative;
  z-index: 22;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 22;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: linear-gradient(
    145deg,
    rgba(232, 93, 4, 0.1),
    rgba(29, 78, 216, 0.08)
  );
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.site-header.is-nav-open .nav-toggle__bars {
  background: transparent;
}

.site-header.is-nav-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-inline-start: auto;
  position: relative;
  z-index: 22;
}

html[dir="rtl"] .lang-switch {
  direction: ltr;
}

.lang-switch__btn {
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.92);
  color: var(--muted);
  border-radius: 0.45rem;
  padding: 0.28rem 0.45rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.lang-switch__btn.is-active {
  color: var(--ink);
  border-color: rgba(232, 93, 4, 0.5);
  background: #fffaf3;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-deep);
}

/* —— Stage / circle —— */

.stage {
  /* svh = stable “small” viewport — no jump when mobile chrome shows/hides */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3.5vh, 2.75rem);
  padding:
    calc(var(--header-h) + 1rem)
    var(--pad)
    2rem;
  text-align: center;
}

#top.stage {
  position: relative;
  isolation: isolate;
}

#top.stage::before {
  content: "";
  position: absolute;
  inset: calc(var(--header-h) + 0.75rem) var(--pad) 1.25rem;
  z-index: 0;
  border-radius: 1.4rem;
  background-color: #e8dfd2;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22)),
    image-set(
      url("/images/hero-stairs.webp") type("image/webp"),
      url("/images/hero-stairs.jpg") type("image/jpeg")
    );
  background-size:
    auto,
    cover;
  background-position:
    center,
    center;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 22, 0.05);
  pointer-events: none;
}

.stage__intro {
  max-width: 34rem;
  position: relative;
  z-index: 4;
  /* Solid plate: the staircase curves behind make bare text look wobbly */
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, #fffaf3 0%, #f4efe6 100%);
  box-shadow: 0 10px 28px rgba(31, 26, 22, 0.1);
}

.stage h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.circle-stage {
  width: min(100%, 48rem);
  position: relative;
  z-index: 1;
}

.previews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.preview {
  width: 70%;
  display: flex;
  opacity: 0;
  transform: translateY(10px);
}

.preview--person,
.preview--learning {
  justify-self: start;
}

.preview--career,
.preview--contact {
  justify-self: end;
}

html[dir="rtl"] .preview--person,
html[dir="rtl"] .preview--learning {
  justify-self: end;
}

html[dir="rtl"] .preview--career,
html[dir="rtl"] .preview--contact {
  justify-self: start;
}

.preview.is-in {
  opacity: 1;
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease);
}

.preview.is-in {
  transform: none;
}

.preview a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 7.25rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, #fffaf3 0%, #f4efe6 100%);
  box-shadow: 0 10px 28px rgba(31, 26, 22, 0.08);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.preview a:hover,
.preview a:focus-visible {
  border-color: rgba(232, 93, 4, 0.4);
  box-shadow: 0 14px 32px rgba(31, 26, 22, 0.12);
  outline: none;
}

.preview__icon {
  flex-shrink: 0;
  width: 4.8rem;
  height: 4.8rem;
  overflow: hidden;
}

.preview__icon svg {
  width: 100%;
  height: 100%;
  max-width: 4.8rem;
  max-height: 4.8rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(31, 26, 22, 0.12));
}

.preview__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.preview__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.3rem;
}

.preview[data-preview="person"] .preview__tag {
  color: var(--person);
}

.preview[data-preview="career"] .preview__tag {
  color: var(--career);
}

.preview[data-preview="learning"] .preview__tag {
  color: var(--learning);
}

.preview[data-preview="contact"] .preview__tag {
  color: var(--contact);
}

.preview__text {
  font-size: 1.84rem;
  line-height: 1.35;
  color: var(--muted);
}

.preview__text-short {
  display: none;
}

.stage__scroll {
  margin: 0.25rem 0 0;
  position: relative;
  z-index: 1;
}

.stage__scroll a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.stage__scroll a:hover,
.stage__scroll a:focus-visible {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

/* —— Sections —— */

.section {
  padding: clamp(3.5rem, 10vh, 6rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.lead {
  margin: -0.5rem 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.section-back {
  margin: 2.5rem 0 0;
}

.section-back a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 63, 18, 0.35);
  transition: border-color 0.2s var(--ease);
}

.section-back a:hover,
.section-back a:focus-visible {
  border-bottom-color: var(--accent-deep);
}

/* —— Person beats —— */

.person-layout {
  width: min(100% - 2 * var(--pad), 72rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem) minmax(0, 1fr);
  grid-template-areas: "start copy end";
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}

.person-photo--start {
  grid-area: start;
}

.person-copy {
  grid-area: copy;
  min-width: 0;
}

.person-photo--end {
  grid-area: end;
}

.person-photo {
  margin: 0;
}

.person-photo picture,
.person-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.person-photo img {
  /* Match monkeytech frame (800×700); crop height, keep width */
  aspect-ratio: 8 / 7;
  object-fit: cover;
  object-position: center center;
}

.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.beat h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.beat p {
  margin: 0;
  color: var(--ink-soft);
}

/* —— Career halves —— */

.halves {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.6rem;
  margin-bottom: 1.75rem;
}

.half-tab[data-half="hightech"] {
  grid-column: 1;
}

.half-tab[data-half="business"] {
  grid-column: 3;
}

.half-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: rgba(31, 26, 22, 0.04);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--muted);
  box-shadow: none;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.half-tab:hover,
.half-tab:focus-visible {
  color: var(--ink);
  background: rgba(29, 78, 216, 0.08);
  outline: none;
}

.half-tab.is-active {
  color: var(--ink);
  background: linear-gradient(
    145deg,
    rgba(232, 93, 4, 0.22),
    rgba(29, 78, 216, 0.28)
  );
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.16);
}

.half-tab.is-active .half-tab__label {
  color: var(--career);
}

.half-tab.is-active .half-tab__meta {
  color: var(--ink-soft);
}

.half-tab__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.half-tab__meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* —— Odoo: the two halves merging —— */

.fusion {
  grid-column: 2;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fusion__arc {
  position: absolute;
  top: 50%;
  width: 2.9rem;
  height: 1.4rem;
  pointer-events: none;
}

.fusion__arc svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fusion__arc polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px currentColor);
  opacity: 0.3;
  animation: fusionDischarge 2.2s var(--ease) infinite;
}

.fusion__arc--hightech {
  right: 100%;
  margin-right: -0.35rem;
  color: var(--career);
  transform: translateY(-50%);
}

.fusion__arc--business {
  left: 100%;
  margin-left: -0.35rem;
  color: var(--accent);
  transform: translateY(-50%);
}

.fusion__arc--business polyline {
  animation-delay: 1.1s;
}

/* Bright head of the discharge racing into the core */
.fusion__spark {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px 4px currentColor;
  opacity: 0;
  animation: fusionSparkTravel 2.2s var(--ease) infinite;
}

.fusion__arc--business .fusion__spark {
  left: auto;
  right: 0;
  animation-name: fusionSparkTravelBack;
  animation-delay: 1.1s;
}

.fusion__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.fusion__core::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-elevated);
  z-index: 1;
}

.fusion__core::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(113, 75, 103, 0.55);
  opacity: 0;
  z-index: 0;
}

.fusion__core:hover,
.fusion__core:focus-visible {
  outline: none;
  transform: scale(1.07);
  filter: drop-shadow(0 10px 20px rgba(113, 75, 103, 0.35));
}

.fusion__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--odoo) 40%,
    var(--career) 70%,
    var(--accent)
  );
  animation: fusionSpin 18s linear infinite;
}

.fusion__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--odoo);
}

.fusion__tip {
  position: absolute;
  bottom: calc(100% + 0.7rem);
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: 14rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: #fdf9f3;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.fusion__tip-link {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f0c9e4;
}

.fusion__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: var(--ink);
  transform: translateX(-50%);
}

.fusion__core:hover + .fusion__tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Merge sequence: discharges rush in, the core bursts out of them */

.halves.is-fusion-ready .fusion__core {
  opacity: 0;
}

.halves.is-fused .fusion__core {
  animation: fusionPop 0.85s var(--ease) 0.55s both;
}

.halves.is-fused .fusion__core::after {
  animation: fusionShock 0.9s var(--ease) 0.62s both;
}

.halves.is-fused .half-tab[data-half="hightech"] {
  animation: fusionPullRight 0.95s var(--ease) 0.1s both;
}

.halves.is-fused .half-tab[data-half="business"] {
  animation: fusionPullLeft 0.95s var(--ease) 0.1s both;
}

@keyframes fusionDischarge {
  0%,
  100% {
    opacity: 0.28;
    stroke-width: 2;
  }
  18% {
    opacity: 1;
    stroke-width: 3;
  }
  50% {
    opacity: 0.95;
    stroke-width: 2.5;
  }
  70% {
    opacity: 0.35;
    stroke-width: 2;
  }
}

@keyframes fusionSparkTravel {
  0% {
    left: 0;
    opacity: 0;
    transform: scale(0.5);
  }
  12% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    left: 100%;
    opacity: 1;
    transform: scale(1.3);
  }
  60%,
  100% {
    left: 100%;
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes fusionSparkTravelBack {
  0% {
    right: 0;
    opacity: 0;
    transform: scale(0.5);
  }
  12% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    right: 100%;
    opacity: 1;
    transform: scale(1.3);
  }
  60%,
  100% {
    right: 100%;
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes fusionPop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-30deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.18) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes fusionShock {
  0% {
    opacity: 0.85;
    transform: scale(0.35);
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes fusionPullRight {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: translateX(0.6rem);
  }
}

@keyframes fusionPullLeft {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: translateX(-0.6rem);
  }
}

@keyframes fusionSpin {
  to {
    transform: rotate(1turn);
  }
}

/* RTL mirrors the side-by-side columns, so the discharges swap sides with them */
@media (min-width: 901px) {
  html[dir="rtl"] .fusion__arc--business {
    color: var(--career);
  }

  html[dir="rtl"] .fusion__arc--hightech {
    color: var(--accent);
  }

  html[dir="rtl"] .halves.is-fused .half-tab[data-half="hightech"] {
    animation-name: fusionPullLeft;
  }

  html[dir="rtl"] .halves.is-fused .half-tab[data-half="business"] {
    animation-name: fusionPullRight;
  }
}

.half-panel {
  animation: panelIn 0.4s var(--ease);
}

.half-panel[hidden] {
  display: none;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .half-panel {
    animation: none;
  }

  .fusion__ring,
  .fusion__arc polyline,
  .fusion__spark,
  .halves.is-fused .fusion__core,
  .halves.is-fused .fusion__core::after,
  .halves.is-fused .half-tab {
    animation: none;
  }

  .fusion__arc polyline {
    opacity: 0.5;
    stroke-width: 2;
  }

  .fusion__spark {
    opacity: 0;
  }

  .halves.is-fusion-ready .fusion__core {
    opacity: 1;
  }

  .preview {
    opacity: 1;
    transform: none;
  }

  .preview.is-in {
    transition: none;
  }

  .nav {
    transition: none;
  }

  .lang-switch {
    position: relative;
    z-index: 22;
  }
}

.half-panel h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.half-panel__when {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.half-panel > p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.proof {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
}

.proof li + li {
  margin-top: 0.35rem;
}

.path {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.path li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.path span {
  font-weight: 700;
  color: var(--ink);
  min-width: 7.5rem;
}

.metrics {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--career);
  line-height: 1;
}

.metric__label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cv-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: linear-gradient(
    145deg,
    rgba(232, 93, 4, 0.08),
    rgba(29, 78, 216, 0.06)
  );
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.cv-link:hover,
.cv-link:focus-visible {
  border-color: rgba(196, 92, 38, 0.45);
  background: var(--accent-soft);
  outline: none;
}

.cv-link__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.cv-link__action {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* —— Learning line —— */

.learn-line {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.learn-line::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--learning),
    var(--accent),
    var(--career)
  );
  opacity: 0.55;
  border-radius: 1px;
}

.learn-line__item {
  position: relative;
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 1rem;
  padding: 0 0 1.5rem 0.15rem;
}

.learn-line__item:last-child {
  padding-bottom: 0;
}

.learn-line__mark {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  z-index: 1;
}

.learn-line__item--open .learn-line__mark {
  border-color: var(--learning);
  background: var(--learning);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

.learn-line__item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.learn-line__when {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.learn-line__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* —— Contact —— */

.section--contact .contact__rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.copy-email,
.phone-block__number {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.phone-block__number {
  direction: ltr;
  unicode-bidi: isolate;
}

.copy-email:hover,
.copy-email:focus-visible,
.phone-block__number:hover,
.phone-block__number:focus-visible {
  color: var(--accent-deep);
  outline: none;
}

.copy-email__hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.contact-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.contact-link__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.contact-link__value {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s var(--ease);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent-deep);
  outline: none;
}

.contact-link:hover .contact-link__value,
.contact-link:focus-visible .contact-link__value {
  border-bottom-color: var(--accent);
}

.phone-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phone-block__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.phone-block__channels a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 63, 18, 0.35);
}

.phone-block__channels a:hover,
.phone-block__channels a:focus-visible {
  border-bottom-color: var(--accent-deep);
}

/* —— Reveal —— */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Toast / footer —— */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(8px);
  padding: 0.65rem 1.1rem;
  background: var(--ink);
  color: var(--bg-elevated);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer__inner a {
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}

.footer__inner a:hover,
.footer__inner a:focus-visible {
  text-decoration: underline;
}

/* —— Responsive —— */

/* Phones / tablets: sandwich nav + compact one-screen hero */
@media (max-width: 900px) {
  .site-header {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(0.78rem, 3.3vw, 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    flex: 0 0 auto;
  }

  .lang-switch {
    order: 2;
    margin-inline-start: 0;
    flex: 0 0 auto;
  }

  .nav {
    order: 4;
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    padding:
      calc(var(--header-h) + 0.75rem)
      var(--pad)
      1.25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: rgba(244, 239, 230, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(31, 26, 22, 0.12);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.3s var(--ease),
      opacity 0.3s var(--ease);
    z-index: 21;
  }

  .site-header.is-nav-open .nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.85rem 0.9rem;
    border-radius: 0.75rem;
    color: var(--ink);
    background: linear-gradient(
      145deg,
      rgba(232, 93, 4, 0.08),
      rgba(29, 78, 216, 0.06)
    );
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: var(--accent-deep);
    background: linear-gradient(
      145deg,
      rgba(232, 93, 4, 0.16),
      rgba(29, 78, 216, 0.12)
    );
  }

  /* One phone screen: header → Scroll the story */
  .stage {
    height: auto;
    min-height: 100dvh;
    min-height: 100svh;
    justify-content: flex-start;
    gap: 0.65rem;
    padding:
      calc(var(--header-h) + 0.35rem)
      var(--pad)
      max(0.65rem, env(safe-area-inset-bottom, 0px));
  }

  #top.stage::before {
    inset: calc(var(--header-h) + 0.35rem) var(--pad) 0.6rem;
    border-radius: 1rem;
    background-image:
      linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.26)),
      image-set(
        url("/images/hero-stairs.webp") type("image/webp"),
        url("/images/hero-stairs.jpg") type("image/jpeg")
      );
    background-size:
      auto,
      cover;
    background-position:
      center,
      58% center;
  }

  .stage__intro {
    flex: 0 0 auto;
    max-width: 22rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.8rem;
  }

  .stage h1 {
    font-size: clamp(1.05rem, 4.5vw, 1.3rem);
    line-height: 1.3;
  }

  .circle-stage {
    flex: 0 0 auto;
    width: min(100%, 36rem);
    min-height: 0;
  }

  .preview {
    width: 70%;
  }

  .preview a {
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.75rem;
  }

  .preview__icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .preview__icon svg {
    max-width: 2.35rem;
    max-height: 2.35rem;
  }

  .preview__tag {
    font-size: 0.95rem;
  }

  .preview__text {
    font-size: 0.75rem;
  }

  .preview__text-full {
    display: none;
  }

  .preview__text-short {
    display: inline;
  }

  .stage__scroll {
    flex: 0 0 auto;
    margin: auto 0 0;
  }

  .halves {
    grid-template-columns: 1fr;
  }

  .half-tab[data-half="hightech"] {
    grid-column: 1;
    grid-row: 1;
  }

  .fusion {
    grid-column: 1;
    grid-row: 2;
    padding: 1.6rem 0;
  }

  .half-tab[data-half="business"] {
    grid-column: 1;
    grid-row: 3;
  }

  .fusion__arc {
    top: 50%;
    left: 50%;
    right: auto;
    margin: 0;
    transform-origin: center center;
  }

  .fusion__arc--hightech {
    transform: translate(-50%, -50%) rotate(90deg) translateX(-3.3rem);
  }

  .fusion__arc--business {
    transform: translate(-50%, -50%) rotate(90deg) translateX(3.3rem);
  }

  .halves.is-fused .half-tab[data-half="hightech"] {
    animation-name: fusionPullDown;
  }

  .halves.is-fused .half-tab[data-half="business"] {
    animation-name: fusionPullUp;
  }

  @keyframes fusionPullDown {
    0%,
    100% {
      transform: none;
    }
    45% {
      transform: translateY(0.5rem);
    }
  }

  @keyframes fusionPullUp {
    0%,
    100% {
      transform: none;
    }
    45% {
      transform: translateY(-0.5rem);
    }
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .person-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "copy copy"
      "start end";
    align-items: stretch;
    gap: 1rem;
  }

  .person-photo img {
    aspect-ratio: 8 / 7;
    object-fit: cover;
    object-position: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  @media (max-width: 900px) {
    .preview,
    .preview.is-in {
      transform: none;
    }
  }
}

/* Very small screens: keep orbit layout, shrink further */
@media (max-width: 380px) {
  .stage {
    gap: 0.45rem;
  }

  .stage h1 {
    font-size: 1rem;
  }

  .circle-stage {
    width: min(100%, 100%);
  }

  .previews {
    grid-template-columns: 1fr;
  }

  .preview a {
    padding: 0.45rem 0.55rem;
  }

  .preview__icon {
    width: 2.1rem;
    height: 2.1rem;
  }

  .preview__icon svg {
    max-width: 2.1rem;
    max-height: 2.1rem;
  }

  .preview__tag {
    font-size: 0.85rem;
  }

  .preview__text {
    font-size: 0.68rem;
  }

  .logo {
    font-size: 0.78rem;
  }

  .lang-switch__btn {
    padding: 0.24rem 0.36rem;
    font-size: 0.68rem;
  }
}
