/* =========================================================================
   CERVIN COLISEUM — shared design system
   Tokens, base typography, header, menu, footer, buttons, motion utilities.
   Page-specific layouts live in css/pages.css.
   ========================================================================= */

:root {
  /* colour */
  --bg: #0a0b0d;
  --bg-1: #0f1013;
  --bg-2: #14161a;
  --bg-3: #1b1e23;
  --ink: #ece7de;             /* off-white text */
  --ink-2: rgba(236, 231, 222, .68);
  --ink-3: rgba(236, 231, 222, .44);
  --ink-4: rgba(236, 231, 222, .22);
  --line: rgba(236, 231, 222, .12);
  --line-2: rgba(236, 231, 222, .2);
  --stone: #d8c4a3;           /* travertine / champagne */
  --stone-2: #b59c78;
  --stone-3: #6f604b;
  --red: #e30613;             /* FC Sion red — accent, use sparingly */
  --red-2: #ff2a36;

  /* type */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-mega: clamp(4.2rem, 15.2vw, 17.5rem);
  --fs-1: clamp(2.9rem, 7.4vw, 8.6rem);
  --fs-2: clamp(2.2rem, 4.9vw, 5.6rem);
  --fs-3: clamp(1.65rem, 2.9vw, 3.1rem);
  --fs-4: clamp(1.25rem, 1.7vw, 1.75rem);
  --fs-lead: clamp(1.12rem, 1.35vw, 1.4rem);
  --fs-body: clamp(.98rem, 1.02vw, 1.08rem);
  --fs-small: .875rem;
  --fs-label: .7rem;

  /* layout */
  --pad: clamp(20px, 4.2vw, 72px);
  --gap: clamp(14px, 1.6vw, 28px);
  --max: 1760px;
  --header-h: 76px;
  --radius: 4px;
  --section: clamp(80px, 10vw, 170px);

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- base ---------- */
html { background: var(--bg); color-scheme: dark; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 350;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--stone); color: #111; }

:focus-visible { outline: 1px solid var(--stone); outline-offset: 4px; border-radius: 2px; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 10px 16px;
  background: var(--ink); color: var(--bg); font-size: .85rem; transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* language switching: <span lang="fr">…</span><span lang="en">…</span><span lang="de">…</span><span lang="it">…</span> */
html:not([lang="fr"]) body [lang="fr"],
html:not([lang="en"]) body [lang="en"],
html:not([lang="de"]) body [lang="de"],
html:not([lang="it"]) body [lang="it"] { display: none !important; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- typography ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "wdth" 125;
  font-stretch: 125%;
  letter-spacing: -.035em;
  line-height: .92;
  text-transform: uppercase;
}
.display { font-size: var(--fs-mega); font-weight: 250; letter-spacing: -.05em; line-height: .82; }
.h1 { font-size: var(--fs-1); }
.h2 { font-size: var(--fs-2); line-height: .95; }
.h3 { font-size: var(--fs-3); line-height: 1; letter-spacing: -.025em; }
.h4 { font-size: var(--fs-4); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.serif, .h1 em, .h2 em, .h3 em, .display em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: normal;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -.02em;
}
.h1 em, .h2 em, .h3 em, .display em { font-size: 1.12em; line-height: .8; color: var(--stone); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); font-weight: 300; max-width: 38em; }
.lead strong, .prose strong { color: var(--ink); font-weight: 450; }
.prose p + p { margin-top: 1.1em; }
.prose { color: var(--ink-2); max-width: 36em; }
.label {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-3);
}
.label--ink { color: var(--ink); }
.label--stone { color: var(--stone); }
.label .dot, .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  vertical-align: middle; margin-right: .7em; transform: translateY(-1px);
}
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.stone { color: var(--stone); }
.red { color: var(--red); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--section); position: relative; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 96px); }

/* ---------- media ---------- */
.media { position: relative; overflow: hidden; background: var(--bg-2); }
picture { display: contents; }
.media > img, .media > video, .media > picture > img { width: 100%; height: 100%; object-fit: cover; }
.media--fill { position: absolute; inset: 0; }
.media .shade { position: absolute; inset: 0; pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--ink);
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: border-color .5s var(--ease), color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); border-radius: inherit;
  transition: transform .6s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 14px; height: 14px; transition: transform .6s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--solid { background: var(--stone); color: #16130e; border-color: var(--stone); }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { color: #111; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red::before { background: #fff; }
.btn--red:hover { color: var(--red); border-color: #fff; }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .7s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); }
.link-line .arrow { width: 13px; height: 13px; transition: transform .6s var(--ease); }
.link-line:hover .arrow { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .7s var(--ease), background-color .6s var(--ease), backdrop-filter .6s;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
  opacity: 0; transition: opacity .6s;
}
.site-header.is-scrolled { background: rgba(10, 11, 13, .62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.site-header.is-scrolled::after { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand svg { width: 38px; height: 24px; flex: none; }
.brand__word {
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-stretch: 125%;
  font-weight: 400; font-size: .86rem; letter-spacing: .2em; line-height: 1.05; text-transform: uppercase;
}
.brand__word small { display: block; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .22em; color: var(--ink-3); margin-top: 3px; font-weight: 400; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  position: relative; font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); padding: 8px 0;
  transition: color .4s var(--ease);
}
.nav a sup { font-family: var(--f-mono); font-size: .56rem; color: var(--ink-4); margin-right: 6px; letter-spacing: .05em; vertical-align: 4px; transition: color .4s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] sup { color: var(--red); }

.h-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; height: 38px; padding: 0 4px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em;
}
.lang-toggle span { padding: 6px 9px; border-radius: 999px; color: var(--ink-3); transition: color .4s, background-color .4s; }
html[lang="fr"] .lang-toggle [data-l="fr"], html[lang="en"] .lang-toggle [data-l="en"], html[lang="de"] .lang-toggle [data-l="de"], html[lang="it"] .lang-toggle [data-l="it"] { color: var(--bg); background: var(--ink); }
.lang-toggle:hover { border-color: var(--line-2); }

.btn-3d {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 20px 0 16px;
  border-radius: 999px; background: var(--ink); color: #0c0c0c;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease);
}
.btn-3d::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); border-radius: inherit;
  transform: scale(0, 1); transform-origin: left; transition: transform .6s var(--ease);
}
.btn-3d:hover { color: #fff; }
.btn-3d:hover::before { transform: scale(1, 1); }
.btn-3d .cube { width: 18px; height: 18px; flex: none; }
.btn-3d .cube path { transition: transform .8s var(--ease); transform-origin: 50% 50%; }
.btn-3d:hover .cube { animation: spin3d 1.6s var(--ease) infinite; }
@keyframes spin3d { 0% { transform: rotate(0); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--ink); transition: transform .6s var(--ease), top .6s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
html.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
html.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 450; background: var(--bg-1);
  padding: calc(var(--header-h) + 28px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s .9s;
}
html.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-in-out), visibility 0s 0s; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-stretch: 125%; font-weight: 300;
  font-size: clamp(1.7rem, 7.6vw, 3.4rem); text-transform: uppercase; letter-spacing: -.03em; line-height: 1;
  transform: translateY(30px); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.menu__links a sup { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); letter-spacing: .1em; }
.menu__links a[aria-current="page"] sup { color: var(--red); }
html.menu-open .menu__links a { transform: none; opacity: 1; }
html.menu-open .menu__links li:nth-child(2) a { transition-delay: .06s; }
html.menu-open .menu__links li:nth-child(3) a { transition-delay: .12s; }
html.menu-open .menu__links li:nth-child(4) a { transition-delay: .18s; }
html.menu-open .menu__links li:nth-child(5) a { transition-delay: .24s; }
.menu__foot { display: flex; flex-direction: column; gap: 22px; }
.menu__foot .btn-3d { height: 56px; justify-content: center; font-size: .75rem; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; }
.f-cta {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
  padding-block: clamp(64px, 8vw, 140px) clamp(56px, 7vw, 110px);
}
.f-cta__title { font-size: var(--fs-1); }
.f-cta__title a { display: inline-block; transition: color .6s var(--ease); }
.f-cta__title a:hover { color: var(--stone); }
.f-cta .label { margin-bottom: 26px; display: block; }
.f-orb {
  position: relative; width: clamp(130px, 13vw, 200px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; text-align: center;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5;
  transition: transform .7s var(--ease), background-color .5s;
}
.f-orb:hover { transform: scale(1.06); background: var(--red-2); }
/* anneau centré sur le cercle quel que soit le layout : même centre, rotation autour de ce centre */
.f-orb svg.ring { position: absolute; top: 50%; left: 50%; width: calc(100% + 28px); height: calc(100% + 28px); max-width: none; translate: -50% -50%; transform-origin: 50% 50%; overflow: visible; pointer-events: none; animation: rot 22s linear infinite; }
.f-orb svg.ring text { fill: var(--ink-3); font-family: var(--f-mono); font-size: 7.2px; letter-spacing: 2.4px; text-transform: uppercase; }
@keyframes rot { to { transform: rotate(360deg); } }

.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: var(--gap); padding-block: 48px; border-top: 1px solid var(--line); }
.f-col h3 { margin-bottom: 18px; }
.f-col li + li { margin-top: 8px; }
.f-col a, .f-col address { color: var(--ink-2); font-style: normal; font-size: .92rem; line-height: 1.7; transition: color .3s; }
.f-col a:hover { color: var(--ink); }
.f-about { color: var(--ink-2); font-size: .92rem; max-width: 26em; }
.f-logos { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); flex-wrap: wrap; }
.f-logos a { opacity: .78; transition: opacity .4s; display: block; }
.f-logos a:hover { opacity: 1; }
.f-logos .l-ccsa { width: 210px; height: auto; }
.f-logos { row-gap: 22px; }
.f-logos .l-fcs { height: 58px; width: auto; }
.f-logos .l-sion { height: 38px; width: auto; filter: brightness(0) invert(.92); }
.f-word {
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-stretch: 125%; font-weight: 200;
  font-size: 12.1vw; line-height: .78; letter-spacing: -.055em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--ink-4);
  margin: 12px 0 -1.2vw calc(var(--pad) * -0.2); user-select: none; pointer-events: none;
}
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 26px; border-top: 1px solid var(--line); }
.f-bottom .label a:hover { color: var(--ink); }
.to-top { display: inline-flex; gap: 10px; align-items: center; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 800; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink);
  mix-blend-mode: difference; opacity: 0; transition: opacity .3s, width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s;
  display: grid; place-items: center;
}
.cursor.is-on { opacity: 1; }
/* état interactif (lien, bouton…) : anneau fin + point central, au lieu de disparaître */
.cursor::before { content: ""; grid-area: 1 / 1; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: 0; transition: opacity .25s; }
.cursor__txt { grid-area: 1 / 1; }
.cursor.is-hover {
  width: 30px; height: 30px; margin: -15px 0 0 -15px; background: transparent; box-shadow: inset 0 0 0 1px var(--ink);
  transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .25s, box-shadow .25s;
}
.cursor.is-hover::before { opacity: 1; }
.cursor.is-label {
  width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--ink);
}
.cursor__txt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__txt { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
/* curseur système masqué seulement si le curseur personnalisé tourne (classe posée par le JS) */
@media (hover: hover) and (pointer: fine) {
  html.custom-cursor-enabled, html.custom-cursor-enabled * { cursor: none !important; }
}

/* ---------- page transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 950; pointer-events: none; background: var(--bg-1);
  transform: translateY(100%);
}
.curtain::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 42px; height: 26px; margin: -13px 0 0 -21px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24' fill='none' stroke='%23ece7de' stroke-width='1.2'%3E%3Cellipse cx='20' cy='16' rx='18' ry='6.5'/%3E%3Cpath d='M5 15.5C8 3 32 3 35 15.5'/%3E%3C/svg%3E");
  opacity: .8;
}
html.is-entering .curtain { transform: translateY(0); animation: curtainSafety .01s 4s forwards; }
@keyframes curtainSafety { to { transform: translateY(-100%); } }
html.is-entered .curtain { transform: translateY(-100%); transition: transform 1s var(--ease-in-out); }
html.is-leaving .curtain { transform: translateY(0); transition: transform .75s var(--ease-in-out); }

/* ---------- reveal utilities (only hidden when JS + motion OK) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.wi { display: inline-block; will-change: transform; transition: transform 1.3s var(--ease); }
html.js.motion [data-split]:not(.is-in) .wi { transform: translateY(108%); }
html.js.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
html.js.motion [data-clip]:not(.is-in) { clip-path: inset(100% 0 0 0); }
html [data-reveal] { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
[data-clip] { transition: clip-path 1.5s var(--ease-in-out); }
[data-clip] > img, [data-clip] > picture > img, [data-clip] > video { transition: transform 2s var(--ease); }
html.js.motion [data-clip]:not(.is-in) > img, html.js.motion [data-clip]:not(.is-in) > picture > img, html.js.motion [data-clip]:not(.is-in) > video { transform: scale(1.25); }
.hr-grow { transform-origin: left; }
html.js.motion .hr-grow:not(.is-in) { transform: scaleX(0); }
.hr-grow { transition: transform 1.6s var(--ease-in-out); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav, .h-actions .lang-toggle, .h-actions .btn-3d { display: none; }
  .burger { display: block; }
  .f-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand__word { font-size: .74rem; letter-spacing: .16em; }
  .brand svg { width: 32px; }
  .f-cta { grid-template-columns: 1fr; gap: 36px; }
  .h1, .h2, .h3 { font-variation-settings: "wdth" 112; font-stretch: 112%; overflow-wrap: break-word; }
  .h1 { font-size: clamp(2.2rem, 10.4vw, 3.4rem); }
  .h2 { font-size: clamp(1.8rem, 8.4vw, 2.8rem); }
  .f-orb { margin-left: 14px; }
  .f-grid { grid-template-columns: 1fr; }
  .f-word { font-size: 12.4vw; }
  .btn { --h: 48px; padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
}
.lang-toggle span { padding: 6px 7px; cursor: pointer; }
.lang-toggle span:hover { color: var(--ink); }
