/* Front page designs (markup and behaviour in js/hero.js).
   Each design sets its own colours through --h-* and is scoped by [data-hero]. */
.hero { --h-acc: var(--amber); --h-acc-ink: var(--ink); }
.hero[data-hero] { background: var(--h-bg); color: var(--h-fg); }
.hero[data-hero]::after { content: none; }

/* ---------------------------------------------------------------- shared pieces */
.h-ln { display: block; overflow: hidden; padding-top: .05em; }
.h-ln > span { display: block; }
.h-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--h-fg2); }
.h-tag span { white-space: nowrap; }
.h-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); animation: ping 2.4s ease-out infinite; }
.h-tag .sep { opacity: .4; }
.h-name { font-weight: 800; text-transform: uppercase; letter-spacing: -.012em; line-height: .82; margin-left: -.03em; font-variation-settings: "wdth" 62; }
.h-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, calc(2.2vw * var(--k)), 36px); }
.h-facts b { display: block; font-size: clamp(28px, calc(3.3vw * var(--k)), 54px); line-height: 1; font-weight: 700; font-variation-settings: "wdth" 62; white-space: nowrap; }
.h-facts b.is-long { font-size: clamp(19px, calc(2.05vw * var(--k)), 34px); line-height: 1.1; padding: .28em 0 .3em; }
.h-facts b small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--amber); margin-left: 8px; }
.h-facts span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--h-fg2); max-width: 24ch; }
.h-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.h-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border: 1px solid var(--h-rule); border-radius: 999px; text-decoration: none; color: var(--h-fg);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.h-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-btn-solid { background: var(--h-acc); color: var(--h-acc-ink); border-color: var(--h-acc); }
.h-btn:hover, .h-btn:focus-visible { background: var(--h-fg); color: var(--h-bg); border-color: var(--h-fg); }

/* ---------------------------------------------------------------- orbit */
.ho-line { font-size: clamp(18px, calc(1.7vw * var(--k)), 27px); line-height: 1.22; font-weight: 500; font-variation-settings: "wdth" 88; max-width: 27ch; text-wrap: balance; }
.ho-line em { font-style: normal; color: var(--amber); }
.ho-facts { margin: clamp(20px, calc(3.4vh * var(--k)), 36px) var(--gut) clamp(22px, calc(3.4vh * var(--k)), 38px); padding-top: clamp(12px, calc(2vh * var(--k)), 22px); border-top: 1px solid var(--h-rule); }
.hero[data-hero="orbit"] { --h-bg: #06262A; --h-fg: #F1F4EF; --h-fg2: rgba(241, 244, 239, .78); --h-rule: rgba(241, 244, 239, .24); grid-template-rows: 1fr auto;
  background: radial-gradient(110% 95% at 68% 38%, #12909B 0%, #0B6A72 34%, #06262A 78%); }
.ho-scene { position: absolute; inset: 0; z-index: -2; perspective: 1800px; perspective-origin: 64% 40%; overflow: hidden; }
.ho-tilt { --mx: 0; --my: 0; position: absolute; left: 64%; top: 43%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(calc(-7deg - var(--my) * 3deg)) rotateY(calc(var(--mx) * 9deg)); }
.ho-ring { --n: 10; --w: clamp(300px, calc(34vw * var(--k)), 680px); --rf: 1.68; --r: calc(var(--w) * var(--rf)); position: absolute; width: var(--w); aspect-ratio: 16 / 9; left: calc(var(--w) / -2); top: calc(var(--w) * -.28125);
  transform-style: preserve-3d; animation: ho-spin 95s linear infinite; }
@keyframes ho-spin { from { transform: translateZ(calc(var(--r) * -1)) rotateY(0deg); } to { transform: translateZ(calc(var(--r) * -1)) rotateY(-360deg); } }
.hero.is-away .ho-ring, .ho-ring.is-held { animation-play-state: paused; }
.ho-card { position: absolute; inset: 0; display: block; border-radius: 14px; overflow: hidden; backface-visibility: hidden; background: #0B1216; border: 1px solid rgba(255, 255, 255, .18); cursor: pointer;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45); transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r)); transition: border-color .3s linear, box-shadow .4s linear, opacity .3s linear; }
.ho-card img, .ho-card video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform .7s var(--ease), filter .4s linear; }
.ho-cap, .ho-open { position: absolute; bottom: 12px; padding: 6px 11px; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.ho-cap { left: 12px; background: rgba(6, 20, 26, .86); color: #EEF2EE; }
.ho-open { right: 12px; background: var(--amber); color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity .3s linear, transform .4s var(--ease); }
.ho-card:hover, .ho-card:focus-visible { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 0 70px rgba(255, 196, 46, .22), 0 40px 90px rgba(0, 0, 0, .5); outline: none; }
.ho-card:hover img, .ho-card:focus-visible img, .ho-card:hover video, .ho-card:focus-visible video { transform: scale(1.035); }
.ho-card:hover .ho-open, .ho-card:focus-visible .ho-open { opacity: 1; transform: none; }
.ho-card.is-lifted { opacity: 0; }
.ho-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(6, 38, 42, .94) 0%, rgba(6, 38, 42, .62) 30%, rgba(6, 38, 42, 0) 58%), linear-gradient(180deg, rgba(6, 38, 42, .5) 0%, rgba(6, 38, 42, 0) 20%, rgba(6, 38, 42, 0) 66%, rgba(6, 38, 42, .94) 100%); }
.ho-in { align-self: end; width: min(100%, calc(44vw * var(--k))); padding: 110px 0 0 var(--gut); display: grid; gap: clamp(14px, calc(2.3vh * var(--k)), 26px); pointer-events: none; }
.ho-in > * { pointer-events: auto; }
.ho-name { font-size: clamp(64px, calc(11vw * var(--k)), 218px); text-shadow: 0 8px 50px rgba(6, 38, 42, .5); pointer-events: none !important; }
.ho-hint { display: flex; align-items: center; gap: 10px; color: var(--h-fg2); font-size: 10.5px; }
.ho-hint i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--amber); position: relative; }
.ho-hint i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--amber); animation: ping 2.4s ease-out infinite; }
.ho-facts { pointer-events: none; }

/* the transition from a screen on the ring to its project (js/hero.js: openProject) */
.h-fly { position: fixed; inset: 0; z-index: 400; }
.h-fly-bg { position: absolute; inset: 0; opacity: 0; background: radial-gradient(80% 70% at 50% 45%, #0B4F56 0%, #06262A 60%, #041A1D 100%); }
.h-fly-img { position: fixed; object-fit: cover; object-position: 50% 50%; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 50px 130px rgba(0, 0, 0, .6), 0 0 90px rgba(127, 214, 221, .16); will-change: left, top, width, height; }
.h-fly-t { position: absolute; left: 0; right: 0; bottom: clamp(18px, calc(4.6vh * var(--k)), 48px); display: grid; gap: 6px; justify-items: center; text-align: center; color: #F1F4EF; opacity: 0; }
.h-fly-t span { color: var(--amber); font-size: 10.5px; }
.h-fly-t b { font-size: clamp(24px, calc(3.2vw * var(--k)), 52px); line-height: 1; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 66; }
.h-fly-t i { font-style: normal; color: rgba(241, 244, 239, .72); font-size: 10.5px; }

/* ---------------------------------------------------------------- phones and small tablets
   The first screen is split in two: the interfaces on top, nothing over them, and the name, the line and the buttons below.
   The three facts follow after the first scroll. */
@media (max-width: 860px) {
  .hero[data-hero="orbit"] { min-height: 0; grid-template-rows: auto auto; }
  .ho-in { width: 100%; min-height: calc(100svh * var(--k)); box-sizing: border-box; align-content: end; padding: 0 var(--gut) clamp(22px, calc(3.4vh * var(--k)), 34px); gap: 14px; }
  .ho-name { font-size: clamp(60px, calc(18.5vw * var(--k)), 132px); }
  .ho-scene, .ho-shade { bottom: auto; height: calc(100svh * var(--k)); }
  .ho-scene { perspective-origin: 50% 25%; }
  .ho-tilt { left: 50%; top: 25%; } .ho-ring { --w: calc(80vw * var(--k)); }
  .ho-shade { background: linear-gradient(180deg, rgba(6, 38, 42, .55) 0%, rgba(6, 38, 42, 0) 12%, rgba(6, 38, 42, 0) 42%, #06262A 54%); }
  .ho-hint { display: none; } .ho-open { display: none; }
  .ho-facts { margin: 0 var(--gut); padding: 22px 0 44px; }
  .h-facts span { font-size: 12.5px; } .h-facts b small { display: block; margin: 8px 0 0; }
}
@media (max-width: 480px) { .h-cta { gap: 8px; } .h-btn { height: 46px; padding: 0 14px; gap: 8px; font-size: 10.5px; } }

