/* ---------------------------------------------------------------------------
   THE CINEMATIC FIRST SCREEN (preview) — /hero-preview

   Target: 3d_ideas/Screenshot 2026-10-29. Every size below is measured from that
   frame (1408 x 1326) and expressed as a share of the stage the hero actually gets
   (--rx-view, the screen below the Ritexa header), so the proportions hold at any
   window size. The 3D is assets/js/hero/hero.js; this file is the words over it.

   Palette: champagne and rose-gold on the site's own black, as in the reference.
   --------------------------------------------------------------------------- */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.hx {
  --hx-serif: var(--rx-sans);         /* the site has one family now (ritexa.css): the Hero's live text is Inter too */
  --hx-champ: #f6efee;                 /* the lit face of the type and the solid button */
  --hx-rose: #ce9899;                  /* rose-gold mid-tone */
  --hx-bronze: #7b5a5b;                /* where the metal turns away from the light */
  --hx-ink: rgba(245, 238, 237, .86);  /* body copy */
  --hx-u: calc(var(--rx-view) / 1326); /* one pixel of the reference frame */
}

/* the walkthrough: a tall scroll section with the stage held in place below the header, as on Home.
   Its height is the length of the flight; journey.js turns the scroll through it into progress p. */
.hx-walk { position: relative; z-index: 2; height: calc(var(--rx-view) * 11.95); margin-top: var(--rx-header-h); }   /* above Home's fixed vignette and section canvas (ritexa.css), so the Hero looks exactly as approved */
.hx-hero { position: sticky; top: var(--rx-header-h); height: var(--rx-view); min-height: 520px; overflow: hidden; isolation: isolate; background: var(--rx-bg); }
.hx-black { position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; pointer-events: none; }
.hx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

/* film grain and the dark foot of the frame — both are in the reference and both hide banding */
.hx-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hx-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 14%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 4, 7, 0), rgba(3, 4, 7, .85)); }

/* ---- the words ------------------------------------------------------------------------------ */
.hx-copy { position: absolute; z-index: 2; left: var(--rx-pad); top: calc(var(--hx-u) * 150); width: min(52vw, calc(var(--hx-u) * 720)); }

/* Four lines, each lit from above: champagne at the top of the letters, bronze at the foot.
   The gradient is per line (each span is its own block), which is how the reference reads. */
.hx-title { margin: 0; font: 400 min(calc(var(--hx-u) * 122), 7.6vw)/.9 var(--hx-serif); text-transform: uppercase; letter-spacing: -.012em; word-spacing: .02em; }
html .hx-title { font-family: var(--hx-serif); letter-spacing: -.012em; word-spacing: .02em; }   /* (screen-reader copy: the visible headline is in the landing image) */
.hx-title span { display: block; width: max-content; padding-bottom: .04em;
  background: linear-gradient(180deg, #fbf3ea 0%, var(--hx-champ) 28%, var(--hx-rose) 62%, var(--hx-bronze) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .45)) drop-shadow(0 0 18px rgba(215, 206, 205, .08)); }

.hx-sub { margin: calc(var(--hx-u) * 40) 0 0; max-width: 34em; font: 400 max(14px, calc(var(--hx-u) * 24))/1.5 var(--rx-sans); color: var(--hx-ink); letter-spacing: -.005em; }

.hx-ctas { display: flex; flex-wrap: wrap; gap: calc(var(--hx-u) * 22); margin-top: calc(var(--hx-u) * 58); }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: max(44px, calc(var(--hx-u) * 70));
  padding: 0 max(22px, calc(var(--hx-u) * 34)); border-radius: 999px; font: 600 max(12px, calc(var(--hx-u) * 16.5))/1 var(--rx-sans);
  letter-spacing: .035em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .45s var(--rx-ease-out), box-shadow .45s var(--rx-ease-out), background-color .45s var(--rx-ease); }
.hx-btn i { font-style: normal; font-size: 1.15em; transition: transform .45s var(--rx-ease-out); }
.hx-btn--solid { color: #2b1e18; min-width: calc(var(--hx-u) * 238);
  background: linear-gradient(180deg, #f5f1f0 0%, #d5cbca 48%, #d39fa0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 6px rgba(104, 77, 77, .35), 0 0 0 1px rgba(255, 236, 222, .35), 0 0 28px rgba(215, 206, 205, .32), 0 10px 30px rgba(0, 0, 0, .45); }
.hx-btn--ghost { color: #f5eeed; min-width: calc(var(--hx-u) * 226); background: rgba(255, 245, 236, .03);
  box-shadow: inset 0 0 0 1.5px rgba(242, 235, 233, .34), inset 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) {
  .hx-btn:hover { transform: translateY(-2px); }
  .hx-btn--solid:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 6px rgba(104, 77, 77, .35), 0 0 0 1px rgba(255, 236, 222, .45), 0 0 40px rgba(215, 206, 205, .45), 0 14px 34px rgba(0, 0, 0, .5); }
  .hx-btn--ghost:hover { background: rgba(255, 245, 236, .07); }
  .hx-btn--ghost:hover i { transform: translateX(4px); }
}
.hx-btn:focus-visible, .hx-down:focus-visible { outline: 2px solid var(--hx-champ); outline-offset: 4px; }

/* the round scroll cue at the foot of the frame */
.hx-down { position: absolute; z-index: 2; left: 49.5%; bottom: calc(var(--hx-u) * 26); width: max(48px, calc(var(--hx-u) * 80)); aspect-ratio: 1;
  transform: translateX(-50%); display: grid; place-items: center; border-radius: 50%; background: rgba(38, 35, 34, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .5); color: #f5f0f0; transition: transform .45s var(--rx-ease-out); }
.hx-down svg { width: 42%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .hx-down:hover { transform: translateX(-50%) translateY(3px); } }

/* ---- the chapters ------------------------------------------------------------------------------ */
.hx-ch { position: absolute; z-index: 2; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity, transform; }
.hx-ch--left { left: var(--rx-pad); top: 50%; translate: 0 -50%; max-width: 30rem; }
/* a soft dark pool behind the words, so they read over a busy scene without a box around them */
.hx-ch--left::before, .hx-ch--centre::before { content: ""; position: absolute; z-index: -1; inset: -45% -35% -45% -30%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(3, 4, 7, .78), rgba(3, 4, 7, .4) 55%, rgba(3, 4, 7, 0)); }
.hx-ch--centre { left: 50%; top: 50%; translate: -50% -50%; text-align: center; max-width: 40rem; }
.hx-ch--end { left: 50%; top: 7%; translate: -50% 0; width: min(92vw, 52rem); text-align: center; pointer-events: auto; }   /* above the tiles */
.hx-ch--end .hx-ctas { justify-content: center; }
.hx-svc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 46rem; margin: 26px auto 6px; padding: 0; list-style: none; }
.hx-svc a { display: inline-block; padding: 8px 14px; border-radius: 999px; font: 500 13px/1 var(--rx-sans); letter-spacing: .02em; color: #f5eeed; text-decoration: none;
  background: rgba(20, 16, 14, .55); box-shadow: inset 0 0 0 1px rgba(242, 235, 233, .24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .3s var(--rx-ease); }
.hx-svc a:hover { background: rgba(60, 46, 40, .7); }
.hx-svc a:focus-visible { outline: 2px solid var(--hx-champ); outline-offset: 3px; }
.hx-ch__k { margin: 0 0 .5em; font: 600 clamp(28px, 3.2vw, 46px)/1 var(--rx-sans); color: var(--hx-champ); letter-spacing: -.01em; }
.hx-ch__k i { font-style: normal; color: var(--hx-rose); }
html .hx-ch__h { margin: 0; font: var(--rx-w-head) clamp(30px, 3.8vw, 58px)/1.04 var(--rx-sans); letter-spacing: -.025em; word-spacing: 0; text-transform: uppercase;
  color: var(--rx-ink);   /* the chapter headings are white; one part of each is picked out in rose gold (.hx-hl), as the site's own headings are */
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .65)); }
html .hx-ch__h .hx-hl { background: var(--rx-gold); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html .hx-ch--end .hx-ch__h { font: 400 clamp(40px, 6vw, 96px)/.95 var(--hx-serif); letter-spacing: -.01em; }
.hx-ch--end .hx-ch__h span { display: block; }
.hx-ch__p { margin: 1em 0 0; max-width: 26em; font: 400 clamp(14px, 1.1vw, 17px)/1.55 var(--rx-sans); color: var(--hx-ink); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hx-ch--centre .hx-ch__p { margin-inline: auto; }
/* chapter 03's three lines: each lights as its moment happens in the scene (journey.js writes --on, 0 → 1) */
.hx-guard { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font: 500 clamp(13px, 1vw, 15px)/1.3 var(--rx-sans); letter-spacing: .01em; }
.hx-guard li { --on: 0; display: flex; align-items: center; gap: 12px; color: rgba(245, 238, 237, calc(.28 + .67 * var(--on))); transition: color .2s linear; }
.hx-guard li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(227, 183, 180, .5);
  background: rgba(224, 177, 176, var(--on)); box-shadow: 0 0 calc(var(--on) * 12px) rgba(222, 174, 173, calc(var(--on) * .8)), inset 0 0 0 1px rgba(227, 183, 180, .5); }
.hx-guard b { font: 600 1.15em/1 var(--rx-sans); color: #f3edeb; font-variant-numeric: tabular-nums; margin-left: 2px; }

/* the length of the flight, as a hairline along the foot of the stage */
.hx-prog { position: absolute; z-index: 2; left: var(--rx-pad); right: var(--rx-pad); bottom: 14px; height: 1px; background: rgba(226, 218, 217, .12); }
.hx-prog i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--hx-rose), var(--hx-champ)); transform-origin: 0 50%; transform: scaleX(0); }

/* placeholder for where the walkthrough begins */
.hx-next { min-height: 60vh; display: grid; place-items: center; color: var(--rx-dim); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* no canvas yet (or no WebGL): the copy still stands on the black, like the reference's left half */
.hx-hero.is-flat .hx-canvas { display: none; }

/* ---- phones: the words on top, the face below them ------------------------------------------- */
@media (max-width: 760px) {
  .hx-hero { min-height: 640px; }
  .hx-copy { left: var(--rx-pad); right: var(--rx-pad); top: 28px; width: auto; }
  .hx-title { font-size: min(12.2vw, 58px); }
  .hx-sub { font-size: 15px; margin-top: 18px; }
  .hx-ctas { gap: 12px; margin-top: 22px; }
  .hx-btn { min-height: 48px; min-width: 0; padding: 0 22px; font-size: 12.5px; }
  .hx-down { bottom: 18px; width: 52px; }
  .hx-walk { height: calc(var(--rx-view) * 11.95); }   /* 1.4 views more for 01 (journey.js PACE) */
  .hx-ch--left { right: var(--rx-pad); top: auto; bottom: 14%; translate: none; }
}

/* ---- the landing image's buttons, made real ------------------------------------------------------ */
.hx-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hx-hots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hx-hot { position: absolute; display: block; border-radius: 999px; pointer-events: auto; transition: box-shadow .4s var(--rx-ease-out), background-color .4s var(--rx-ease); }
@media (hover: hover) and (pointer: fine) {
  .hx-hot:hover { background: rgba(255, 240, 228, .06); box-shadow: 0 0 0 1px rgba(255, 232, 214, .35), 0 0 34px rgba(211, 201, 200, .28); }
  .hx-hot--solid:hover { background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(255, 236, 222, .5), 0 0 46px rgba(215, 206, 205, .45); }
}
.hx-hot:focus-visible { outline: 2px solid var(--hx-champ); outline-offset: 4px; }

/* ---- the close: the tagline under the logo ---------------------------------------------------------- */
.hx-ch--logo { left: 50%; bottom: 9%; translate: -50% 0; width: min(92vw, 44rem); text-align: center; pointer-events: auto; }
.hx-tag { margin: 0; font: 300 clamp(19px, 1.9vw, 30px)/1.25 var(--rx-sans); letter-spacing: -.01em; color: #f6f0ee; }
/* each word rises in turn as the card arrives (journey.js writes --o, 0 → 1) */
.hx-tag span { display: inline-block; opacity: clamp(0, calc(var(--o, 0) * 4 - var(--w) * 0.45), 1); translate: 0 calc((1 - clamp(0, calc(var(--o, 0) * 4 - var(--w) * 0.45), 1)) * 14px);
  background: linear-gradient(180deg, #fbf3ea, #d4a0a1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-onward { display: inline-flex; gap: .5em; margin-top: 18px; font: 500 13px/1 var(--rx-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 238, 237, .72); text-decoration: none;
  opacity: clamp(0, calc(var(--o, 0) * 3 - 2), 1); transition: color .3s var(--rx-ease); }
.hx-onward:hover { color: #fff; }
.hx-onward i { font-style: normal; transition: transform .35s var(--rx-ease-out); }
.hx-onward:hover i { transform: translateX(4px); }
.hx-onward:focus-visible { outline: 2px solid var(--hx-champ); outline-offset: 6px; }


/* ============================================================================================
   THE LANDING SCREEN, FROM THE FINAL REFERENCES (3d_ideas/landscape2.png, portrait2.png — 2026-11-15)

   The eyes are on the canvas. Everything here is the references' words, tags, pill and buttons as live text.
   hero.js writes where the picture is: --hx-x0 / --hx-y0 (its top-left corner on the stage) and --hx-s (stage
   pixels per image pixel). On a wide screen every part is placed in the LANDSCAPE reference's own pixels
   (2880 x 1800) through those three numbers, so the screen is that image at any size. On a phone the parts are
   one column, in the portrait reference's order, sized from the stage so it always fits one screen.
   The colours are the references' own (sampled), kept here apart from the rest of the site's palette.
   ============================================================================================ */
.hx { --hx-pink: #f0b3ac; --hx-pink-soft: #dcb4ae; --hx-white: #ece0de; --hx-dim: #a8918f; --hx-dark: #1e0c0d;
      --hx-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
      --hx-ital: "Instrument Serif", "Cormorant Garamond", Georgia, serif; }
.hx-down { display: none; }                                   /* the round cue is the pill in the references (.hx-land__scroll) */
.hx-land { position: absolute; inset: 0; z-index: 2; color: var(--hx-white); --u: calc(var(--hx-s, .8) * 1px); }
.hx-land p, .hx-land h1 { margin: 0; padding: 0; }
.hx-land em { font: italic 400 1em/1 var(--hx-ital); color: var(--hx-pink); letter-spacing: 0; }
/* the two labels */
.hx-land__tags { display: flex; gap: calc(12 * var(--u)); }
.hx-tag2 { display: inline-flex; align-items: center; height: calc(51 * var(--u)); padding: 0 calc(21 * var(--u)); border-radius: calc(4 * var(--u));
  font: 600 calc(16 * var(--u))/1 var(--hx-mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: var(--hx-white); box-shadow: inset 0 0 0 1.5px rgba(252,184,178,.62); background: rgba(9,5,6,.55); }
.hx-tag2--solid { color: var(--hx-dark); background: var(--hx-pink); box-shadow: 0 0 calc(26 * var(--u)) rgba(252,184,178,.3); }
/* the headline: one light line, one in the serif italic */
.hx-land__h { font: 400 calc(62 * var(--u))/1.1 var(--rx-sans); letter-spacing: -.028em; color: var(--hx-white); }
html .hx-land__h { font-family: var(--rx-sans); font-weight: 400; letter-spacing: -.028em; }
.hx-land__h em { display: block; font-size: 1.09em; line-height: 1.02; letter-spacing: -.012em; }
.hx-land__sub { font: 500 calc(26 * var(--u))/1.2 var(--rx-sans); letter-spacing: -.012em; color: var(--hx-white); }
.hx-land__sub { display: flex; align-items: center; gap: .3em; white-space: nowrap; }
/* THE CHANGING WORD. A window one line tall; the word in it rolls up and out as the next rolls up into its
   place, and the window's width eases to each word's own, so nothing beside or below it ever moves.
   Without script only the first word (Websites) is there. hero.js (rollWords) sets the width and the classes. */
.hx-roll { position: relative; display: inline-block; height: 1.3em; font-size: 1.16em; overflow: hidden; white-space: nowrap;
  transition: width .75s cubic-bezier(.7, 0, .2, 1); }
.hx-roll em { display: none; line-height: 1.3; font-size: 1em; }
.hx-roll em.is-on { display: block; }
.hx-roll.is-live em { display: block; position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(105%);
  transition: transform .75s cubic-bezier(.7, 0, .2, 1), opacity .5s ease; will-change: transform, opacity; }
.hx-roll.is-live em.is-on { opacity: 1; transform: none; }
.hx-roll.is-live em.is-out { opacity: 0; transform: translateY(-105%); }
.hx-roll.is-live em.is-wait { transition: none; }                 /* put back below the window, unseen, ready to come round again */
@media (prefers-reduced-motion: reduce) { .hx-roll, .hx-roll.is-live em { transition: none; } }
.hx-land__p { font: 400 calc(19 * var(--u))/1.62 var(--rx-sans); color: var(--hx-dim); }
/* scroll through our vision */
.hx-land__scroll { display: inline-flex; align-items: center; justify-content: center; gap: calc(22 * var(--u)); height: calc(62 * var(--u)); padding: 0 calc(28 * var(--u));
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(252,184,178,.85); background: rgba(9,5,6,.5); color: var(--hx-white); text-decoration: none; white-space: nowrap;
  font: 400 calc(20 * var(--u))/1 var(--rx-sans); letter-spacing: -.005em; transition: background-color .4s var(--rx-ease), box-shadow .4s var(--rx-ease); }
.hx-land__mouse { width: calc(18 * var(--u)); height: calc(29 * var(--u)); fill: none; stroke: var(--hx-pink); stroke-width: 1.5; }
.hx-land__arrow { width: calc(21 * var(--u)); height: calc(21 * var(--u)); fill: none; stroke: var(--hx-pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the two buttons */
.hx-land__ctas { display: flex; gap: calc(13 * var(--u)); }
.hx-cta { display: inline-flex; align-items: center; justify-content: center; gap: .9em; height: calc(62 * var(--u)); padding: 0 calc(22 * var(--u)); border-radius: calc(4 * var(--u));
  font: 700 calc(16 * var(--u))/1 var(--hx-mono); letter-spacing: .19em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--hx-white); background: rgba(9,5,6,.6); box-shadow: inset 0 0 0 1.5px rgba(252,200,195,.9);
  transition: transform .45s var(--rx-ease-out), box-shadow .45s var(--rx-ease-out), background-color .4s var(--rx-ease); }
.hx-cta i { font-style: normal; letter-spacing: 0; transition: transform .45s var(--rx-ease-out); }
.hx-cta--solid { color: var(--hx-dark); background: var(--hx-pink); box-shadow: 0 0 calc(30 * var(--u)) rgba(252,184,178,.38), 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(0,0,0,.4); }
.hx-land__foot { font: 500 calc(14 * var(--u))/1 var(--hx-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--hx-pink-soft); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .hx-cta:hover { transform: translateY(-2px); background: rgba(252,184,178,.1); }
  .hx-cta--solid:hover { background: #ffc9c4; box-shadow: 0 0 calc(44 * var(--u)) rgba(252,184,178,.55), 0 calc(14 * var(--u)) calc(34 * var(--u)) rgba(0,0,0,.45); }
  .hx-cta:hover i { transform: translateX(4px); }
  .hx-land__scroll:hover { background: rgba(252,184,178,.1); box-shadow: inset 0 0 0 1.5px var(--hx-pink); }
}
.hx-cta:focus-visible, .hx-land__scroll:focus-visible { outline: 2px solid var(--hx-pink); outline-offset: 4px; }

/* ---- A WIDE SCREEN: each part where the landscape reference has it (image pixels through --hx-x0/-y0/-s) ---- */
/* THE MARGINS ARE THE SITE'S, NOT THE PICTURE'S: the words start under the logo and the buttons end under "Let's Talk"
   (--rx-pad, the header's own margin), whatever the window's shape — the picture alone is fitted to the stage. */
.hx-hero[data-land="landscape"] .hx-land { --hx-l: var(--rx-pad); }
.hx-hero[data-land="landscape"] .hx-land > * { position: absolute; }
.hx-hero[data-land="landscape"] .hx-land__band { display: none; }
.hx-hero[data-land="landscape"] .hx-land__tags { left: var(--hx-l); top: 4px; gap: calc(21 * var(--u)); }   /* directly under the header, over the eyes' dark top-left corner */
.hx-hero[data-land="landscape"] .hx-tag2 { height: calc(89 * var(--u)); padding: 0 calc(31 * var(--u)); font-size: calc(26.5 * var(--u)); border-radius: calc(6 * var(--u)); }
.hx-hero[data-land="landscape"] .hx-land__h { left: calc(var(--hx-l) - 2 * var(--u)); top: calc(var(--hx-y0) + 1332 * var(--u)); white-space: nowrap; font-size: calc(88 * var(--u)); line-height: 1.02; }
.hx-hero[data-land="landscape"] .hx-land__h em { font-size: 1.1em; line-height: 1; margin-top: .03em; }
.hx-hero[data-land="landscape"] .hx-land__sub { left: var(--hx-l); top: calc(var(--hx-y0) + 1551 * var(--u)); font-size: calc(41 * var(--u)); }
.hx-hero[data-land="landscape"] .hx-land__p { left: var(--hx-l); top: calc(var(--hx-y0) + 1629 * var(--u)); width: calc(1060 * var(--u)); font-size: calc(30.5 * var(--u)); line-height: 1.36; }
.hx-hero[data-land="landscape"] .hx-land__scroll { right: var(--hx-l); top: calc(var(--hx-y0) + 1348 * var(--u)); width: calc(541 * var(--u)); height: calc(95 * var(--u)); padding: 0;
  font-size: calc(28.5 * var(--u)); gap: calc(26 * var(--u)); box-shadow: inset 0 0 0 1.5px rgba(240,179,172,.6); }
.hx-hero[data-land="landscape"] .hx-land__mouse { width: calc(24 * var(--u)); height: calc(38 * var(--u)); stroke-width: 1.4; } .hx-hero[data-land="landscape"] .hx-land__arrow { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.hx-hero[data-land="landscape"] .hx-land__ctas { right: var(--hx-l); top: calc(var(--hx-y0) + 1627 * var(--u)); width: calc(729 * var(--u)); gap: calc(25 * var(--u)); }
.hx-hero[data-land="landscape"] .hx-cta { height: calc(100 * var(--u)); font-size: calc(25.5 * var(--u)); border-radius: calc(6 * var(--u)); }
.hx-hero[data-land="landscape"] .hx-cta--solid { flex: 1.235; } .hx-hero[data-land="landscape"] .hx-cta:not(.hx-cta--solid) { flex: 1; }
.hx-hero[data-land="landscape"] .hx-land__foot { display: none; }                               /* (the desktop reference has no note or rule under the buttons) */

/* ---- A PHONE: one column, in portrait2's order — tags, the eyes, the scroll pill, the words, the two buttons.
   Every size is a share of the stage (1em = 16.8px on a 390 x 760 stage). --xtra is whatever height the stage has
   beyond what the column needs; it is shared out between the column's main gaps, so a tall phone gets more air
   between the parts and never an empty block at the top or the foot. ---- */
.hx-hero[data-land="portrait"] .hx-land { --u: .0625em; font-size: min(calc(var(--rx-view) / 43), 4.3vw); display: flex; flex-direction: column; padding: 0 calc((100% - var(--hx-col, 100%)) / 2 + 1.2em);   /* (--hx-col: the column, narrowed and centred on a short window — hero.js) */
  --xtra: max(0px, calc(var(--rx-view) - 29em - 47.9vw)); }
.hx-hero[data-land="portrait"] .hx-land__tags { order: 0; margin-top: .3em; gap: .5em; }
.hx-hero[data-land="portrait"] .hx-tag2 { height: 2.8em; padding: 0 1.25em; font-size: .6em; border-radius: 3px; }
.hx-hero[data-land="portrait"] .hx-land__band { order: 1; margin: calc(.5em + var(--xtra) * .1) -1.2em 0; aspect-ratio: 1170 / 560; flex: none; }
.hx-hero[data-land="portrait"] .hx-land__scroll { order: 2; align-self: center; height: 2.85em; padding: 0 1.5em; gap: 1em; margin-top: calc(.7em + var(--xtra) * .12); font-size: .82em;
  background: rgba(240,179,172,.06); box-shadow: inset 0 0 0 1px rgba(240,179,172,.5); }
.hx-hero[data-land="portrait"] .hx-land__mouse { width: .95em; height: 1.5em; } .hx-hero[data-land="portrait"] .hx-land__arrow { width: 1.1em; height: 1.1em; }
.hx-hero[data-land="portrait"] .hx-land__h { order: 3; font-size: 1.66em; font-weight: 500; margin-top: calc(.9em + var(--xtra) * .2); }
html .hx-hero[data-land="portrait"] .hx-land__h { font-weight: 500; }
.hx-hero[data-land="portrait"] .hx-land__sub { order: 4; font-size: min(1em, 4.2vw); margin-top: .8em; }
.hx-hero[data-land="portrait"] .hx-land__p { order: 5; font-size: .84em; line-height: 1.62; margin-top: .6em; color: #a8918f; }
.hx-hero[data-land="portrait"] .hx-land__ctas { order: 6; margin-top: calc(1.5em + var(--xtra) * .3); gap: .6em; }
.hx-hero[data-land="portrait"] .hx-cta { height: 4.2em; padding: 0 .6em; font-size: .64em; letter-spacing: .15em; border-radius: 4px; }
.hx-hero[data-land="portrait"] .hx-cta--solid { flex: 1.16; } .hx-hero[data-land="portrait"] .hx-cta:not(.hx-cta--solid) { flex: 1; }
.hx-hero[data-land="portrait"] .hx-land__foot { display: none; }      /* (portrait2 has no note at the foot) */

/* ---- NO 3D (the canvas could not start: .is-flat, set by hero.js) ----
   The eyes are then a plain image in the same place, faded to the band of eyes exactly as the canvas fades it. */
.hx-hero.is-flat .hx-canvas { display: none; }
.hx-hero.is-flat[data-land="landscape"]::before { content: ""; position: absolute; z-index: 1; left: var(--hx-px, 0px); top: var(--hx-py, 0px);
  width: calc(2880px * var(--hx-ps, .52)); height: calc(1800px * var(--hx-ps, .52)); background: url("../hero/landing-landscape.jpg") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 8.5%, #000 13%, #000 65.5%, transparent 70%); mask-image: linear-gradient(180deg, transparent 8.5%, #000 13%, #000 65.5%, transparent 70%); }
.hx-hero.is-flat[data-land="portrait"] .hx-land__band { background: url("../hero/landing-portrait.jpg") 0 16.89% / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 68%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 68%, transparent 100%); }

/* ---- THE FILM'S CONTROLS (.hx-auto; assets/js/hero/autoplay.js sets data-state: idle · auto · manual · end) ----
   Two small pills on the stage's foot, above the progress line: what the film is doing (and that scrolling takes
   it over) on the left, the way out on the right. Quiet enough to sit under any scene, clear enough to be found. */
.hx-auto { position: absolute; z-index: 3; left: var(--rx-pad); right: var(--rx-pad); bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--rx-ease), transform .6s var(--rx-ease-out); }
.hx-auto:not([data-state="idle"]) { opacity: 1; transform: none; }
.hx-auto__hint, .hx-auto__skip { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 999px;
  font: 500 11.5px/1 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  color: rgba(246,246,246,.9); background: rgba(9,5,6,.62); border: 0; box-shadow: inset 0 0 0 1px rgba(252,184,178,.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .35s var(--rx-ease), box-shadow .35s var(--rx-ease), opacity .4s var(--rx-ease); }
.hx-auto[data-state="idle"] .hx-auto__hint, .hx-auto[data-state="idle"] .hx-auto__skip { pointer-events: none; }
.hx-auto__hint em { font-style: normal; color: rgba(246,246,246,.62); }
.hx-auto__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hx-pink); box-shadow: 0 0 0 0 rgba(252,184,178,.6); animation: hx-auto-pulse 1.8s ease-out infinite; }
@keyframes hx-auto-pulse { 0% { box-shadow: 0 0 0 0 rgba(252,184,178,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(252,184,178,0); } }
.hx-auto__off { display: none; align-items: center; gap: 9px; } .hx-auto__off b { font-size: 9px; color: var(--hx-pink); }
.hx-auto[data-state="manual"] .hx-auto__on, .hx-auto[data-state="manual"] .hx-auto__dot { display: none; }
.hx-auto[data-state="manual"] .hx-auto__off { display: inline-flex; }
.hx-auto[data-state="end"] .hx-auto__hint { opacity: 0; pointer-events: none; }
.hx-auto__skip i { font-style: normal; transition: transform .35s var(--rx-ease-out); }
.hx-auto__skip-b, .hx-auto[data-state="end"] .hx-auto__skip-a { display: none; }
.hx-auto[data-state="end"] .hx-auto__skip-b { display: inline; }      /* on the logo there is no intro left to skip: it is simply the way on */
@media (hover: hover) and (pointer: fine) {
  .hx-auto__hint:hover, .hx-auto__skip:hover { background: rgba(252,184,178,.14); box-shadow: inset 0 0 0 1px var(--hx-pink); }
  .hx-auto__skip:hover i { transform: translateX(3px); }
}
.hx-auto__hint:focus-visible, .hx-auto__skip:focus-visible { outline: 2px solid var(--hx-pink); outline-offset: 3px; }
/* Skip intro: the stage dips to black for the cut */
.hx-hero .hx-black { transition: opacity .26s ease; z-index: 4; }
.hx-hero.is-skipping .hx-black { opacity: 1; }
@media (max-width: 640px) {
  .hx-auto { bottom: 26px; gap: 8px; }
  .hx-auto__hint, .hx-auto__skip { height: 34px; padding: 0 12px; font-size: 10px; letter-spacing: .08em; gap: 8px; }
  .hx-auto__hint em { display: block; }
}
@media (prefers-reduced-motion: reduce) { .hx-auto__dot { animation: none; } .hx-auto__hint { display: none; } }

/* ---- THE HEADER ON THE LANDING SCREEN ----
   The header throws a soft rose shadow just below itself (ritexa.css). Over the landing screen that shadow fell
   across the top of the hero as a pale strip, which read as a seam between the two. At the top of the Home page it
   is not drawn, so the hero begins directly under the header; once the page is scrolled it is as it always was. */
body:has(.hx-walk) .rx-header:not(.is-scrolled)::after { opacity: 0; }
