/* ==========================================================================
   FLINKTAX — Home: the newer sections, drawn with the original components
   Loads after flinktax.css (index.html only). Same tokens, eyebrows, 800-weight
   headings with the yellow dot, .btn, .card, .chip and rounded banners as the
   approved screens. Motion timing lives in assets/js/home-connect.js; the globe,
   typing word and scroll-lit statement come from assets/js/home-v2.js.
   ========================================================================== */

/* ---------- One spacing rhythm for the whole page ----------
   Every section below the receipt story gets the same padding, so the gap between
   any two blocks is 2 × --home-gap (120px desktop, 72px phone). The "German taxes,
   handled." heading introduces the turquoise card, so those two sit closer. */
:root { --home-gap: 60px; }
#main > section:where(:not(.hero, .rs)) { padding-top: var(--home-gap); padding-bottom: var(--home-gap); }
#main > section.hx-reach { padding-bottom: 0; }
#main > section.hx-band-wrap { padding-top: 48px; }
#main > section.hx-start { padding-bottom: calc(var(--home-gap) * 2); }   /* same 120px before the footer */

/* ---------- Hero: typing word ---------- */
.rotor { color: var(--teal); white-space: nowrap; }
.rotor.rotor-done .caret { display: none; }
.rotor .caret { display: inline-block; width: .07em; height: .78em; margin-left: .05em; background: var(--teal); border-radius: 2px; vertical-align: -.04em; animation: hx-blink 1s steps(1) infinite; }
@keyframes hx-blink { 50% { opacity: 0; } }

/* ---------- Line mask: a heading slides up out of its own clip ---------- */
.hx-mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hx-mask > span { display: block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
[data-lines].in .hx-mask > span { transform: none; }

/* ---------- Why Flinktax: white cards, two-colour icons, dotted links between them ---------- */
.hx-benefits { position: relative; gap: 24px; }
.benefit.hx-benefit { position: relative; padding: 32px 28px 34px; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); }
.benefit.hx-benefit .ic { position: relative; width: 88px; height: 88px; margin: 0 0 26px; border-radius: 50%; background: var(--teal-50); transform: scale(.6); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .15s; }
.benefit.hx-benefit.in .ic { transform: none; }
.benefit.hx-benefit .ic svg { position: absolute; left: 12px; top: 10px; width: 70px; height: 70px; overflow: visible; stroke-width: 3; }
.hx-benefit .b { stroke: var(--teal); }
.hx-benefit .b.f { fill: var(--teal); stroke: none; }
.hx-benefit .a { stroke: var(--yellow); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) .55s; }
.hx-benefit .a .dots { stroke-width: 4; }
.hx-benefit.in .a { transform: none; }
.hx-benefit:hover .ic { transform: scale(1.06); transition-delay: 0s; }
.hx-benefit:hover .a { transform: rotate(-8deg) scale(1.08); transition-delay: 0s; }
.benefit.hx-benefit h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.333; margin-bottom: 10px; }
.benefit.hx-benefit p { max-width: 240px; margin: 0; font-size: 15px; color: var(--gray); }
/* dotted arc from one icon to the next, drawn across the gap */
.hx-benefit:not(:last-child)::after { content: ""; position: absolute; z-index: -1; left: calc(100% - 18px); right: -42px; top: 46px; height: 30px; border-top: 2px dotted var(--teal-line); border-radius: 50% 50% 0 0; opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .3s, clip-path 1s var(--ease) .7s; }
.hx-benefit:nth-child(even):not(:last-child)::after { top: 64px; border-top: 0; border-bottom: 2px dotted var(--teal-line); border-radius: 0 0 50% 50%; }
.hx-benefit.in:not(:last-child)::after { opacity: .9; clip-path: inset(0 0 0 0); }

/* ---------- Language banner: turquoise, dotted globe with an orbit ---------- */
.banner.hx-lang { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); min-height: 340px; color: #fff; background: var(--teal-text); }
.hx-lang .copy { position: relative; z-index: 1; padding: 56px 0 56px 56px; }
.hx-lang h2 { margin: 4px 0 16px; font-size: clamp(28px, 3vw, 36px); line-height: 1.222; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hx-lang p { max-width: 520px; margin-bottom: 28px; font-size: 18px; color: rgba(255, 255, 255, .85); }
.hx-lang .langs { color: var(--navy); box-shadow: var(--shadow-md); }
.hx-lang-art { position: relative; }
.hx-lang-art canvas { position: absolute; left: 10px; top: 14px; width: 560px; height: 560px; }
.hx-orbit { position: absolute; left: -70px; top: 150px; width: 600px; height: 230px; transform: rotate(-16deg); }
.hx-orbit svg { width: 100%; height: 100%; overflow: visible; }
.hx-orbit ellipse { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hx-orbit i { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(230, 176, 32, .25); offset-path: path("M10,115 a290,105 0 1,0 580,0 a290,105 0 1,0 -580,0"); offset-rotate: 0deg; }
.hx-orbit .o1 { offset-distance: 9%; }
.hx-orbit .o2 { offset-distance: 52%; width: 9px; height: 9px; }
.hx-orbit .o3 { animation: hx-orbit 16s linear infinite; }
@keyframes hx-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* ---------- Reach: heading that leads into the turquoise card ---------- */
.hx-reach .h2 { max-width: 760px; margin: 0 auto; }
.hx-reach .lead { margin: 14px auto 0; }

/* ---------- Turquoise card: statement + the Flinktax Method ----------
   Yellow fails contrast on teal, so the highlight is navy here. */
.hx-band-wrap { position: relative; z-index: 1; }
.hx-band {
  position: relative; overflow: hidden;
  padding: 88px 72px 80px;
  border-radius: var(--r-2xl);
  background: var(--teal-text);
  color: #fff;
  transform: scale(calc(1 - var(--band-in, 0) * .06)); transform-origin: 50% 0;
}
.hx-eyebrow { color: #fff; font-size: 12px; }
.hx-statement { max-width: 920px; font-size: clamp(28px, 3vw, 36px); line-height: 1.222; font-weight: 700; letter-spacing: -.02em; }
.hx-statement em { font-style: normal; }
.hx-statement .w { color: rgba(255, 255, 255, .38); transition: color .35s var(--ease); }
.hx-statement .w.on { color: #fff; }
.hx-statement em .w.on { color: var(--navy); }
.hx-method { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-top: 88px; padding-top: 72px; border-top: 1px solid rgba(255, 255, 255, .24); }
.hx-method .h2 { color: #fff; margin-bottom: 20px; }
.hx-method p { color: rgba(255, 255, 255, .9); font-size: 16px; margin-bottom: 32px; max-width: 480px; }
.hx-method p b { color: #fff; font-weight: 600; }
.hx-video { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-lg); transform: scale(var(--vs, 1)); transform-origin: 50% 0; }
.hx-video img { transition: transform .8s var(--ease); }
.hx-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 24, 70, 0) 45%, rgba(13, 24, 70, .7)); }
.hx-video:hover img { transform: scale(1.03); }
.hx-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--teal-text); box-shadow: var(--shadow-lg); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.hx-play svg { width: 28px; height: 28px; margin-left: 4px; }
.hx-video:hover .hx-play { background: var(--navy); color: #fff; transform: scale(1.06); }
.hx-cap { position: absolute; left: 20px; bottom: 16px; z-index: 1; font-size: 14px; font-weight: 600; color: #fff; }

/* ---------- Deadline banner ---------- */
.hx-deadline { display: grid; grid-template-columns: 340px 1fr; min-height: 300px; color: var(--navy); }
.hx-year { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 32px; background: var(--teal-text); color: #fff; }
.hx-year::before { content: ""; position: absolute; right: -40%; top: -50%; width: 140%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255, 255, 255, .2) 0 1px, transparent 1px 14px); animation: hx-breathe 7s ease-in-out infinite alternate; }
@keyframes hx-breathe { to { transform: scale(1.08) rotate(6deg); } }
.hx-year .yr { position: relative; display: flex; font-size: clamp(72px, 8vw, 116px); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
/* Each digit sits in a 1em-tall window, so a 100% slide moves it fully out of sight */
.hx-year .dg { position: relative; display: block; height: 1em; overflow: hidden; line-height: 1; }
.hx-year .dg > span { display: block; height: 1em; transform: translateY(105%); transition: transform .9s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 90ms); }
.hx-deadline.in .dg > span { transform: none; }
.hx-year .dg > .nx { position: absolute; inset: 0; }
.hx-deadline .copy { padding: 48px 56px; }
.hx-deadline .chip svg { width: 14px; height: 14px; }
.hx-deadline h2 { margin: 16px 0 12px; font-size: clamp(28px, 3vw, 36px); line-height: 1.222; font-weight: 700; letter-spacing: -.02em; }
.hx-deadline p { max-width: 520px; margin-bottom: 26px; color: var(--gray); font-size: 16px; }

/* ---------- Guides: the blog's cards ---------- */
.hx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.hx-head p { margin-top: 14px; color: var(--gray); font-size: 16px; }
.hx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hx-posts .post { display: flex; flex-direction: column; overflow: hidden; color: inherit; }
.hx-posts .post .photo { height: 200px; }
.hx-posts .post .photo img { transition: transform .5s var(--ease); }
.hx-posts .post .body { display: flex; flex-direction: column; flex: 1; padding: 22px 20px; }
.hx-posts .post h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.333; }
.hx-posts .post p { font-size: 15px; color: var(--gray); }
.hx-posts .post:hover h3 { color: var(--teal-text); }
.hx-posts .post:hover .photo img { transform: scale(1.03); }

/* ---------- "Get started" marquee ---------- */
.hx-start { overflow: hidden; }
.hx-marquee { display: block; color: var(--navy); }
.hx-marquee-row { display: flex; width: max-content; animation: hx-marq 30s linear infinite; }
.hx-marquee.js-driven .hx-marquee-row { animation: none; will-change: transform; }
@keyframes hx-marq { to { transform: translateX(-50%); } }
.hx-marquee-row span { display: inline-flex; align-items: center; padding-right: .45em; font-size: clamp(64px, 10vw, 156px); font-weight: 700; letter-spacing: -.045em; line-height: 1.1; white-space: nowrap; transition: color .3s var(--ease); }
.hx-marquee-row .dot { font-style: normal; }
.hx-marquee-row svg { width: .55em; height: .55em; margin-left: .2em; fill: none; stroke: var(--teal); stroke-width: 2; }
.hx-marquee:hover .hx-marquee-row span { color: var(--teal-text); }

/* ---------- Reviews: a drifting row of cards (the set is doubled by JS for a seamless loop) ---------- */
.hx-rv-track { overflow: hidden; padding: 8px 0 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hx-rv-row { display: flex; align-items: flex-start; width: max-content; }
.hx-rv-track.loop .hx-rv-row { animation: hx-marq var(--rv-dur, 70s) linear infinite; }
.hx-rv-track:hover .hx-rv-row, .hx-rv-track:focus-within .hx-rv-row, .hx-rv-track.open .hx-rv-row { animation-play-state: paused; }
.hx-rv { position: relative; flex: none; width: 380px; margin: 0 24px 0 0; padding: 28px 28px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: 0 10px 30px -18px rgba(13, 24, 70, .25); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.hx-rv:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(13, 24, 70, .35); }
/* Quote badge above the text (an icon, so it never sits on top of the words) */
.hx-rv::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231C7680' d='M4 18.5v-5.2C4 9.4 6.1 6.8 9.6 5.5l.9 1.6C8.6 8 7.6 9.4 7.5 11.2H10v7.3H4zm9.5 0v-5.2c0-3.9 2.1-6.5 5.6-7.8l.9 1.6c-1.9.9-2.9 2.3-3 4.1h2.5v7.3h-6z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.hx-rv blockquote { margin: 0; }
.hx-rv p { position: relative; color: var(--navy-soft); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hx-rv.open p { -webkit-line-clamp: unset; display: block; }
.hx-rv .more { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--teal-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hx-rv .more:hover { text-decoration: underline; }
.hx-rv figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.hx-rv .av { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--teal-50); color: var(--teal-text); font-weight: 700; font-size: 17px; }
.hx-rv:nth-child(3n+2) .av { background: var(--yellow-50); color: var(--warning); }
.hx-rv:nth-child(3n) .av { background: var(--navy); color: #fff; }
.hx-rv figcaption b { display: block; color: var(--navy); font-size: 15px; }
.hx-rv figcaption small { color: var(--gray-light); font-size: 13px; }
.hx-rv-cta { display: flex; justify-content: center; margin-top: 28px; }
.hx-rv-cta .g { width: 18px; height: 18px; flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hx-benefit::after { display: none; }
  .banner.hx-lang { grid-template-columns: 1fr; }
  .hx-lang .copy { padding: 48px 40px 0; }
  .hx-lang-art { height: 260px; }
  .hx-lang-art canvas { left: 50%; top: 24px; width: 460px; height: 460px; transform: translateX(-50%); }
  .hx-orbit { left: 50%; top: 70px; transform: translateX(-50%) rotate(-16deg) scale(.8); }
  .hx-band { padding: 72px 48px; }
  .hx-method { grid-template-columns: 1fr; gap: 40px; }
  .hx-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  :root { --home-gap: 36px; }
  #main > section.hx-band-wrap { padding-top: 32px; }
  .benefit.hx-benefit { padding: 26px 22px 28px; }
  .benefit.hx-benefit .ic { width: 76px; height: 76px; margin-bottom: 20px; }
  .benefit.hx-benefit .ic svg { width: 60px; height: 60px; }
  .hx-lang .copy { padding: 40px 24px 0; }
  .hx-lang-art { height: 220px; }
  .hx-lang-art canvas { width: 380px; height: 380px; }
  .hx-orbit { top: 40px; transform: translateX(-50%) rotate(-16deg) scale(.62); }
  .hx-band { padding: 56px 24px; border-radius: var(--r-xl); }
  .hx-method { margin-top: 56px; padding-top: 48px; }
  .hx-deadline { grid-template-columns: 1fr; }
  .hx-year { min-height: 160px; padding: 24px; }
  .hx-deadline .copy { padding: 28px 24px 32px; }
  .hx-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  /* Guides: swipeable row instead of three full-height cards */
  .hx-posts { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px; scroll-padding-left: var(--gutter); scrollbar-width: none; }
  .hx-posts::-webkit-scrollbar { display: none; }
  .hx-posts .post { flex: 0 0 82%; scroll-snap-align: start; }
  .hx-posts .post .photo { height: 160px; }
  .hx-posts .post .body { padding: 18px 16px; }
  .hx-posts .post p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  /* Why choose: compact rows, icon beside the text */
  .hx-benefits { gap: 12px; }
  .benefit.hx-benefit { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; padding: 18px 18px 18px 16px; }
  .benefit.hx-benefit .ic { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
  .benefit.hx-benefit .ic svg { left: 9px; top: 7px; width: 50px; height: 50px; }
  .benefit.hx-benefit h3 { font-size: 18px; margin: 0 0 2px; align-self: end; }
  .benefit.hx-benefit p { max-width: none; font-size: 14px; align-self: start; }
  /* Teal band: the statement reads as a paragraph, not a poster */
  .hx-statement { font-size: 22px; line-height: 1.36; }
  .hx-band { padding: 40px 20px; }
  .hx-method { margin-top: 40px; padding-top: 36px; }
  .hx-method .btn { width: 100%; }
  .hx-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .hx-cap { left: 14px; right: 14px; bottom: 12px; font-size: 13px; }
  .hx-rv { width: 290px; margin-right: 14px; padding: 22px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .rotor .caret, .hx-year::before, .hx-marquee-row, .hx-orbit .o3 { animation: none; }
  .hx-rv-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .hx-rv { scroll-snap-align: center; transition: none; }
  .hx-orbit .o3 { offset-distance: 74%; }
  .benefit.hx-benefit .ic, .hx-benefit .a { transform: none; transition: none; }
  .hx-benefit:not(:last-child)::after { opacity: .9; clip-path: none; transition: none; }
  .hx-mask > span, .hx-year .dg > span { transform: none; transition: none; }
  .hx-band, .hx-video { transform: none; }
  .hx-statement .w { color: #fff; }
  .hx-statement em .w { color: var(--navy); }
}

/* Home film playing in place (YouTube, after the click) */
.hx-video.is-playing { transform: none; }
.hx-video.is-playing::after { display: none; }
.hx-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Home film: cover in the brand look ---------- */
.hx-video:has(.hx-cover) { background: var(--navy); }
.hx-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 8% 46% 14% 7%; color: #fff;
  background:
    radial-gradient(60% 70% at 85% 25%, rgba(35, 138, 150, .55), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(230, 176, 32, .18), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--navy);
  transition: transform .8s var(--ease);
}
.hx-video:hover .hx-cover { transform: scale(1.03); }
.hx-cover-brand { position: absolute; right: 7%; top: 7%; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.hx-cover-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.hx-cover-logo img { width: 20px; height: 20px; }
.hx-cover-title { display: flex; flex-direction: column; font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.hx-cover-title .y { color: var(--yellow); }
.hx-cover-sub { font-size: clamp(13px, 1.1vw, 15px); color: rgba(255, 255, 255, .78); line-height: 1.4; max-width: 260px; }
/* Right side: a tax document with a euro badge; the play button sits on it */
.hx-cover-art { position: absolute; right: 9%; top: 50%; width: 30%; aspect-ratio: 3 / 3.6; transform: translateY(-50%) rotate(6deg); }
.hx-cover-art .doc { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9%; padding: 16% 14%; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.hx-cover-art .doc::before { content: ""; height: 9%; width: 55%; border-radius: 4px; background: var(--teal); }
.hx-cover-art .doc i { height: 5%; border-radius: 3px; background: #DDE3E6; }
.hx-cover-art .doc i:nth-child(2) { width: 80%; }
.hx-cover-art .doc i:nth-child(4) { width: 60%; }
.hx-cover-art .doc b { margin-top: auto; height: 12%; width: 45%; align-self: flex-end; border-radius: 4px; background: var(--teal-50); }
.hx-cover-art .euro { position: absolute; left: -16%; bottom: -10%; display: grid; place-items: center; width: 38%; aspect-ratio: 1; border-radius: 14px; background: var(--yellow); color: var(--navy); font-size: clamp(18px, 2vw, 28px); font-weight: 800; transform: rotate(-14deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.hx-video:has(.hx-cover) .hx-play { left: 76%; top: 50%; background: var(--teal); color: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .22), 0 12px 28px rgba(0, 0, 0, .35); }
.hx-video:has(.hx-cover):hover .hx-play { background: var(--yellow); color: var(--navy); }
.hx-video:has(.hx-cover)::after { background: linear-gradient(180deg, rgba(13, 24, 70, 0) 70%, rgba(13, 24, 70, .55)); }
@media (max-width: 767px) {
  .hx-video:has(.hx-cover) { aspect-ratio: 4 / 3.3; }
  .hx-cover { padding: 20% 44% 20% 6%; gap: 6px; }
  .hx-cover-brand { top: 6%; right: 6%; font-size: 11px; }
  .hx-cover-logo { width: 24px; height: 24px; border-radius: 7px; }
  .hx-cover-logo img { width: 16px; height: 16px; }
  .hx-cover-title { font-size: 18px; }
  .hx-cover-sub { font-size: 12px; }
  .hx-cover-art { right: 8%; width: 32%; }
}
/* Video cover colours: light and warm, so it stands out on the teal band */
.hx-video:has(.hx-cover) { background: var(--cream); }
.hx-cover {
  color: var(--navy);
  background:
    radial-gradient(55% 65% at 88% 20%, rgba(230, 176, 32, .32), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(35, 138, 150, .18), transparent 70%),
    linear-gradient(rgba(35, 138, 150, .09) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(35, 138, 150, .09) 1px, transparent 1px) 0 0 / 26px 26px,
    #FFFDF6;
}
.hx-cover-brand { color: var(--navy); }
.hx-cover-logo { background: var(--teal-50); }
.hx-cover-title .y { color: var(--teal-text); }
.hx-cover-sub { color: var(--navy-soft); }
.hx-cover-art .doc { border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(13, 24, 70, .16); }
.hx-cover-art .euro { box-shadow: 0 10px 24px rgba(13, 24, 70, .2); }
.hx-video:has(.hx-cover)::after { display: none; }
.hx-video:has(.hx-cover) .hx-cap { color: var(--navy); }
.hx-video:has(.hx-cover) .hx-play { box-shadow: 0 0 0 8px rgba(35, 138, 150, .16), 0 12px 28px rgba(13, 24, 70, .25); }

/* ---------- Language banner: support chat in four languages ---------- */
.hx-chat { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 40px 48px 40px 8px; }
.hx-chat .msg {
  position: relative; max-width: 300px; padding: 10px 14px 11px; border-radius: 16px 16px 16px 4px;
  background: #fff; color: var(--navy); font-size: 14px; line-height: 1.4; box-shadow: 0 8px 22px rgba(13, 24, 70, .16);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.hx-chat .msg small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-text); }
.hx-chat .msg.in { align-self: flex-start; }
.hx-chat .msg.out { align-self: flex-end; border-radius: 16px 16px 4px 16px; }
.hx-chat .msg.y { background: var(--yellow); }
.hx-chat .msg.y small { color: var(--navy); opacity: .7; }
.hx-chat .msg.t { background: var(--teal-50); }
/* One after another once the banner scrolls into view */
.hx-chat.in .msg { opacity: 1; transform: none; }
.hx-chat.in .msg:nth-child(2) { transition-delay: .35s; }
.hx-chat.in .msg:nth-child(3) { transition-delay: .7s; }
.hx-chat.in .msg:nth-child(4) { transition-delay: 1.05s; }
.hx-chat.in .msg:nth-child(5) { transition-delay: 1.4s; }
/* "Typing…" bubble: the dots bounce a few times and then rest (under 5 seconds) */
.hx-chat .typing { display: inline-flex; gap: 4px; width: auto; padding: 12px 14px; }
.hx-chat .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-light); animation: hx-dot 1.1s ease-in-out 1.8s 3 both; }
.hx-chat .typing i:nth-child(2) { animation-delay: 1.95s; }
.hx-chat .typing i:nth-child(3) { animation-delay: 2.1s; }
@keyframes hx-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.motion-paused .hx-chat .typing i { animation: none; }
@media (max-width: 1100px) { .hx-chat { height: auto; padding: 28px 40px 44px; align-items: flex-start; } .hx-chat .msg { max-width: 340px; } }
@media (max-width: 767px) { .hx-chat { height: auto; padding: 24px 24px 32px; gap: 8px; } .hx-chat .msg { max-width: 88%; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .hx-chat .msg { opacity: 1; transform: none; transition: none; } .hx-chat .typing i { animation: none; } }