/* ==========================================================
   TUNE IT — styles.css
   ========================================================== */
:root {
  --bg: #08090D;
  --bg-2: #101116;
  --bg-3: #14151b;
  --red: #E34242;
  --red-hot: #FF454F;
  --text: #FFFFFF;
  --muted: #A1A1AA;
  --line: rgba(227, 66, 66, .32);
  --line-soft: rgba(255, 255, 255, .09);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 64px;
  --curve: clamp(32px, 6vw, 84px);
  --r-card: 28px;
  --r-field: 16px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -70px; z-index: 300; background: var(--red-hot); color: #08090D; padding: 10px 18px; font-weight: 600; border-radius: 999px; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.curve-top { border-radius: var(--curve) var(--curve) 0 0; margin-top: calc(var(--curve) * -1); padding-top: calc(var(--curve) + clamp(64px, 9vw, 120px)); }
.red { color: var(--red-hot); }

.display { font-family: var(--font-display); font-weight: 600; line-height: 1.03; letter-spacing: -.02em; font-size: clamp(2.2rem, 5.8vw, 4.4rem); overflow-wrap: anywhere; }
.display--xl { font-size: clamp(2.4rem, 7.2vw, 5.8rem); }
.lead { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.4; color: #fff; margin-top: 22px; max-width: 30ch; }
.section-head { margin-bottom: clamp(36px, 6vw, 70px); }
.section-head .lead { color: var(--muted); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--center .display { max-width: 16ch; margin: 0 auto; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: .01em; line-height: 1.2;
  padding: 15px 30px; border: 1px solid var(--red); border-radius: 999px; color: #fff; background: transparent;
  transition: box-shadow .35s var(--ease), background .35s var(--ease), transform .35s var(--ease), border-color .35s;
}
.btn--primary { background: linear-gradient(135deg, #E34242, #FF454F); color: #0a0a0d; border-color: transparent; box-shadow: 0 8px 30px -10px rgba(255,69,79,.6); }
.btn--ghost { border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(8,9,13,.25); }
.btn--small { padding: 10px 22px; font-size: .88rem; }
.btn--large { padding: 18px 38px; font-size: 1.05rem; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--red-hot), 0 0 34px rgba(255,69,79,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: #fff; box-shadow: 0 0 30px rgba(255,69,79,.25); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Navigation (floating pill) ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 100; padding: 0 var(--gutter); pointer-events: none; }
.nav__inner { pointer-events: auto; height: var(--nav-h); max-width: var(--container); margin: 0 auto; padding: 0 10px 0 24px; display: flex; align-items: center; justify-content: space-between; border-radius: 999px; border: 1px solid transparent; transition: background .4s, border-color .4s, backdrop-filter .4s, box-shadow .4s; }
.nav.is-scrolled .nav__inner, .nav.is-solid .nav__inner, .nav.menu-open .nav__inner { background: rgba(12,13,18,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-soft); box-shadow: 0 10px 40px -20px rgba(0,0,0,.8); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__word { font-family: var(--font-display); font-weight: 700; letter-spacing: .22em; font-size: .95rem; }
.brand__word b { color: var(--red-hot); font-weight: 700; }
.brand__icon { transition: transform .8s var(--ease); }
.brand:hover .brand__icon { transform: rotate(180deg); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav__links a:not(.btn) { font-size: .92rem; color: #D4D4D8; position: relative; padding: 6px 0; transition: color .25s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--red-hot); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:not(.btn):hover { color: #fff; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-soft); border-radius: 50%; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding-bottom: var(--curve); }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; --dim: .5;
  background:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 44% 14%, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 78%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 78% 30%, rgba(255,255,255,.85) 50%, transparent 52%),
    radial-gradient(1px 1px at 90% 62%, rgba(255,255,255,.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 6% 84%, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(1px 1px at 52% 46%, rgba(255,255,255,.5) 50%, transparent 52%),
    radial-gradient(ellipse 70% 60% at 78% 85%, rgba(227,66,66,.24), transparent 65%),
    radial-gradient(ellipse 60% 50% at 10% 5%, rgba(255,69,79,.09), transparent 60%),
    var(--bg);
}
.hero__video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; opacity: 0; transition: opacity 1.4s ease; background: transparent; }
.hero__video.is-playing { opacity: 1; }
.hero__overlay { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,9,13,calc(var(--dim) + .3)) 0%, rgba(8,9,13,calc(var(--dim) + .05)) 55%, rgba(8,9,13,calc(var(--dim) * .5)) 100%),
    linear-gradient(180deg, rgba(8,9,13,.35) 0%, transparent 25%, transparent 65%, var(--bg) 100%); }
.hero__glow { position: absolute; width: 70vmax; height: 70vmax; right: -28vmax; bottom: -42vmax; background: radial-gradient(circle, rgba(227,66,66,.26), transparent 62%); filter: blur(20px); animation: breathe 9s ease-in-out infinite; }
.hero__orbits { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.orbit { transform-origin: 600px 400px; animation: spin 90s linear infinite; }
.orbit--b { animation-duration: 140s; animation-direction: reverse; }
.orbit--c { animation-duration: 200s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.hero__content { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: calc(var(--nav-h) + 50px) var(--gutter) 110px; }
.hero__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(2rem, 6.2vw, 5.2rem); min-height: 2.25em; }
.hero__type .hl { display: block; }
.red-word { color: var(--red-hot); text-shadow: 0 0 40px rgba(255,69,79,.35); }
.cursor { display: inline-block; width: .055em; min-width: 2px; height: .85em; margin-left: .07em; background: var(--red-hot); vertical-align: -.06em; border-radius: 2px; box-shadow: 0 0 12px var(--red-hot); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__sub { margin-top: 24px; max-width: 34ch; color: #E4E4E7; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.5; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__aud { margin-top: 30px; font-size: .85rem; color: var(--muted); letter-spacing: .04em; }

.scroll-cue { position: absolute; left: 50%; bottom: calc(var(--curve) + 14px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-display); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); transition: color .3s; z-index: 2; }
.scroll-cue:hover { color: #fff; }
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--red-hot), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 60%; background: #fff; animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 140%; } }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, #0b0c11, var(--bg-2)); z-index: 2; }
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.prose { margin-top: 28px; display: grid; gap: 16px; color: var(--muted); max-width: 46ch; font-size: 1.05rem; }
.chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: .85rem; color: #fff; border: 1px solid var(--line); background: rgba(227,66,66,.08); padding: 8px 16px; border-radius: 999px; }
.about__visual { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: center; }
.about__visual svg { width: 100%; height: 100%; overflow: visible; }
.spin { transform-origin: 250px 250px; animation: spin 40s linear infinite; }
.spin--slow { animation-duration: 70s; }
.spin--rev { animation-duration: 55s; animation-direction: reverse; }
.pulse { transform-origin: 250px 250px; animation: pulse 3.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .45; } }

/* ---------- The Path ---------- */
.path { background: var(--bg-2); z-index: 3; }
.path-progress { position: sticky; top: 84px; z-index: 20; width: max-content; max-width: 100%; margin: 0 auto 24px; display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-radius: 999px; background: rgba(16,17,22,.88); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--font-display); font-size: .85rem; letter-spacing: .04em; }
.path-progress__bar { width: clamp(80px, 18vw, 180px); height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.path-progress__bar i { display: block; height: 100%; width: 20%; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--red-hot)); box-shadow: 0 0 10px var(--red-hot); transition: width .6s var(--ease); }
.no-js .path-progress { display: none; }

.path-wrap { position: relative; }
.path-curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.path-curve path { fill: none; stroke-width: 2; stroke-linecap: round; }
.path-curve__track { stroke: rgba(255,255,255,.1); stroke-dasharray: 2 7; }
.path-curve--fill { clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); }
.path-curve--fill svg { width: 100%; height: 100%; }
.path-curve--fill path { stroke: var(--red-hot); filter: drop-shadow(0 0 6px rgba(255,69,79,.8)); }

.stages { position: relative; display: grid; grid-auto-rows: 1fr; }
.stage { position: relative; display: flex; align-items: center; padding: 18px 0; }
.stage:nth-child(odd) { justify-content: flex-end; }
.stage:nth-child(even) { justify-content: flex-start; }
.stage__card { position: relative; width: min(100%, 44%); padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-card); border: 1px solid var(--line-soft); background: linear-gradient(160deg, #181920, #101116); transition: border-color .6s, box-shadow .6s, transform .6s var(--ease), opacity .6s; opacity: .55; }
.stage.is-active .stage__card { opacity: 1; border-color: var(--line); box-shadow: 0 24px 60px -34px rgba(255,69,79,.55), inset 0 0 40px rgba(227,66,66,.05); }
.stage__card:hover { transform: translateY(-4px); }
.stage__tag { font-family: var(--font-display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 14px; }
.stage__card h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.1vw, 1.65rem); font-weight: 600; line-height: 1.2; margin-bottom: 10px; }
.stage__card p:not(.stage__tag):not(.stage__next) { color: var(--muted); }
.stage__next { margin-top: 18px; font-size: .85rem; color: #D4D4D8; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.05); }
.stage__node { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .5s, box-shadow .5s; z-index: 2; }
.stage__node::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #55555d; transition: background .5s; }
.stage:nth-child(odd) .stage__node { left: 56%; }
.stage:nth-child(even) .stage__node { left: 44%; }
.stage.is-active .stage__node { border-color: var(--red-hot); box-shadow: 0 0 22px rgba(255,69,79,.7); }
.stage.is-active .stage__node::after { background: var(--red-hot); }
/* connector from node to card */
.stage__card::before { content: ""; position: absolute; top: 50%; height: 1px; width: 6%; background: var(--line); }
.stage:nth-child(odd) .stage__card::before { left: -6.5%; }
.stage:nth-child(even) .stage__card::before { right: -6.5%; }
.stage--static .stage__card { opacity: 1; width: min(100%, 560px); margin: 0 auto; }
.stage--static .stage__card::before { display: none; }

.destination { position: relative; margin: clamp(40px, 6vw, 80px) auto 0; max-width: 640px; text-align: center; padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 48px); border-radius: calc(var(--r-card) + 12px); border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(227,66,66,.22), transparent 70%), #12131a; overflow: hidden; }
.destination__ring { position: absolute; left: 50%; top: -120px; width: 340px; height: 340px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(255,69,79,.3); box-shadow: 0 0 0 40px rgba(227,66,66,.04), 0 0 0 80px rgba(227,66,66,.025); pointer-events: none; }
.destination > *:not(.destination__ring) { position: relative; }
.destination__kicker { font-family: var(--font-display); font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--red-hot); }
.destination h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 600; line-height: 1.15; margin: 12px 0; }
.destination p:not(.destination__kicker) { color: var(--muted); margin-bottom: 26px; }

/* ---------- Projects ---------- */
.projects { background: var(--bg); z-index: 4; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.project { border-radius: var(--r-card); border: 1px solid var(--line-soft); background: linear-gradient(180deg, #101117, var(--bg)); overflow: hidden; transition: border-color .5s, transform .6s var(--ease), box-shadow .6s; }
.project:nth-child(2) { margin-top: 48px; }
.project:hover { border-color: var(--line); transform: translateY(-6px); box-shadow: 0 24px 60px -30px rgba(227,66,66,.5); }
.project__visual { aspect-ratio: 5/3; background: radial-gradient(ellipse at 50% 120%, rgba(227,66,66,.22), transparent 65%), #0a0b10; overflow: hidden; margin: 10px 10px 0; border-radius: calc(var(--r-card) - 10px); border: 1px solid var(--line-soft); }
.project__art, .project__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project:hover .project__art { transform: scale(1.06); }
.project__body { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 8px; }
.project__idx { font-family: var(--font-display); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red-hot); }
.project h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.15; }
.project__cat { color: #D4D4D8; font-size: .9rem; }
.project__text { color: var(--muted); font-size: .95rem; }
.status { margin-top: 8px; justify-self: start; font-size: .78rem; color: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; background: rgba(227,66,66,.08); }
.note { margin-top: 40px; color: var(--muted); font-size: .88rem; text-align: center; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(180deg, var(--bg-2), #0b0c11); overflow: hidden; z-index: 5; text-align: center; }
.cta__halo { position: absolute; left: 50%; top: 50%; width: min(820px, 120vw); aspect-ratio: 1; transform: translate(-50%, -45%); border-radius: 50%; border: 1px solid rgba(227,66,66,.2); box-shadow: 0 0 0 80px rgba(227,66,66,.025), 0 0 0 160px rgba(227,66,66,.015), inset 0 0 120px rgba(227,66,66,.08); pointer-events: none; }
.cta__inner { position: relative; }
.cta .display { max-width: 15ch; margin: 0 auto; }
.cta .lead { margin-left: auto; margin-right: auto; color: var(--muted); }
.cta__actions { margin-top: 38px; }

/* ---------- Footer ---------- */
.footer { background: #06070a; border-top: 1px solid var(--line-soft); padding: 64px 0 28px; position: relative; z-index: 6; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__brand { font-family: var(--font-display); font-weight: 700; letter-spacing: .2em; font-size: 1.1rem; text-transform: uppercase; }
.footer__slogan { margin-top: 12px; color: var(--red-hot); font-family: var(--font-display); }
.footer__desc { margin-top: 8px; color: var(--muted); max-width: 36ch; }
.footer__label { font-family: var(--font-display); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: #D4D4D8; transition: color .25s; }
.footer__links a:hover { color: var(--red-hot); }
.footer__bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .85rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .project.reveal:nth-child(2) { transition-delay: .1s; }
.js .project.reveal:nth-child(3) { transition-delay: .2s; }

/* ==========================================================
   BOOKING PAGE
   ========================================================== */
.book-page { position: relative; padding: calc(var(--nav-h) + 64px) 0 100px; overflow: hidden; }
.book-page__halo { position: absolute; left: 50%; top: -260px; width: min(1000px, 130vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(227,66,66,.18); box-shadow: 0 0 0 90px rgba(227,66,66,.025), 0 0 0 180px rgba(227,66,66,.015), inset 0 0 140px rgba(227,66,66,.1); pointer-events: none; }
.book-head { position: relative; text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.book-head .display { max-width: 12ch; margin: 0 auto; }
.book-head .lead { margin-left: auto; margin-right: auto; color: var(--muted); max-width: none; }
.steps-bar { width: min(320px, 70%); height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); margin: 28px auto 10px; overflow: hidden; }
.steps-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--red), var(--red-hot)); box-shadow: 0 0 12px var(--red-hot); transition: width .6s var(--ease); }
.steps-label { font-size: .85rem; color: var(--muted); font-family: var(--font-display); letter-spacing: .06em; }

.book-layout { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.bform { display: grid; gap: 22px; }
.block { border: 1px solid var(--line-soft); border-radius: var(--r-card); background: rgba(16,17,22,.86); padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; transition: border-color .5s; }
.block.is-done { border-color: var(--line); }
.block legend { float: left; width: 100%; padding: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.block legend + * { clear: both; }
.block__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--red-hot); font-size: .95rem; flex: none; transition: background .5s, color .5s; }
.block.is-done .block__num { background: var(--red-hot); color: #0a0a0d; border-color: transparent; }
.block__hint { color: var(--muted); font-size: .92rem; margin-top: -6px; }

.options { display: grid; gap: 10px; }
.opt-card, .chip { position: relative; display: block; cursor: pointer; }
.opt-card input, .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-card span { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 20px; border: 1px solid var(--line-soft); background: #0c0d12; transition: border-color .3s, background .3s, box-shadow .3s; }
.opt-card b { font-weight: 500; font-size: 1rem; }
.opt-card small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.opt-card:hover span { border-color: var(--line); }
.opt-card input:checked + span { border-color: var(--red-hot); background: rgba(227,66,66,.12); box-shadow: 0 0 0 1px var(--red-hot), 0 0 24px rgba(255,69,79,.2); }
.opt-card input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--red-hot); outline-offset: 2px; }

.dates, .times { display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.times { flex-wrap: wrap; overflow: visible; }
.chip span { display: grid; place-items: center; text-align: center; min-width: 76px; padding: 10px 14px; border-radius: 18px; border: 1px solid var(--line-soft); background: #0c0d12; line-height: 1.25; transition: border-color .3s, background .3s; font-size: .92rem; }
.chip span small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.chip span b { font-weight: 600; font-family: var(--font-display); }
.times .chip span { min-width: 92px; border-radius: 999px; padding: 12px 18px; }
.chip:hover span { border-color: var(--line); }
.chip input:checked + span { border-color: var(--red-hot); background: rgba(227,66,66,.16); }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { opacity: .35; text-decoration: line-through; }
.empty { color: var(--muted); font-size: .92rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; color: #D4D4D8; }
.opt { color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: #fff; background: #0a0b10; border: 1px solid var(--line-soft); border-radius: var(--r-field); padding: 14px 18px; transition: border-color .3s, box-shadow .3s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-hot); box-shadow: 0 0 0 3px rgba(255,69,79,.18); }
.field .invalid { border-color: var(--red-hot); }
#submit-btn { justify-self: start; }
.form__status { font-size: .95rem; color: var(--muted); min-height: 1.4em; }
.form__status.is-error { color: #FF8A91; }
.form__status.is-ok { color: #fff; }

.summary { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px); background: radial-gradient(ellipse at 50% 0%, rgba(227,66,66,.18), transparent 70%), rgba(16,17,22,.92); display: grid; gap: 14px; }
.summary__cal { width: 100%; max-width: 190px; }
.summary h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.summary__list { display: grid; gap: 12px; }
.summary__list dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.summary__list dd { color: #fff; }
.summary__list dd.is-empty { color: #6b6b74; }
.summary__note, .summary__alt { color: var(--muted); font-size: .88rem; }
.summary__alt a { color: var(--red-hot); text-decoration: underline; text-underline-offset: 3px; }

.confirm { grid-column: 1 / -1; text-align: center; border: 1px solid var(--line); border-radius: calc(var(--r-card) + 8px); padding: clamp(36px, 6vw, 70px) clamp(22px, 4vw, 48px); background: radial-gradient(ellipse at 50% 0%, rgba(227,66,66,.22), transparent 70%), #12131a; }
.confirm h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; margin: 10px 0; }
.confirm p { color: var(--muted); max-width: 46ch; margin: 0 auto 8px; }
.confirm .when { color: #fff; font-family: var(--font-display); font-size: 1.15rem; margin: 18px auto 26px; }
.confirm__tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--red-hot); box-shadow: 0 0 30px rgba(255,69,79,.4); color: var(--red-hot); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 360px; order: -1; }
  .project-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .project:nth-child(2) { margin-top: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: span 2; }
  .book-layout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; grid-template-columns: 1fr; }
  .summary__cal { display: none; }
  .stage__card { width: 46%; }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__inner { padding-left: 20px; padding-right: 8px; }
  .nav__links { position: absolute; top: calc(var(--nav-h) + 8px); left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 24px; border-radius: 28px; background: rgba(10,11,16,.97); border: 1px solid var(--line-soft); pointer-events: auto; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity .35s, transform .35s var(--ease), visibility .35s; }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a:not(.btn) { padding: 16px 0; font-size: 1.12rem; border-bottom: 1px solid var(--line-soft); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 20px; padding: 15px; }
  .no-js .nav__toggle { display: none; }
  .no-js .nav__links { position: static; flex-direction: row; flex-wrap: wrap; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0; }
}

@media (max-width: 760px) {
  .hero__title { font-size: clamp(1.9rem, 8.6vw, 3rem); min-height: 3.4em; }
  .hero__content { padding-bottom: 140px; }
  .hero__actions .btn { width: 100%; }
  .scroll-cue { bottom: calc(var(--curve) + 6px); }

  /* path becomes a single left-hand rail */
  .path-curve { display: none; }
  .stages { grid-auto-rows: auto; position: relative; padding-left: 0; }
  .stages::before, .stages::after { content: ""; position: absolute; left: 13px; top: 0; width: 2px; border-radius: 2px; }
  .stages::before { height: 100%; background: repeating-linear-gradient(rgba(255,255,255,.14) 0 4px, transparent 4px 10px); }
  .stages::after { height: calc(var(--p, 0) * 100%); background: var(--red-hot); box-shadow: 0 0 10px var(--red-hot); }
  .stage, .stage:nth-child(odd), .stage:nth-child(even) { justify-content: flex-start; padding: 0 0 22px 46px; align-items: flex-start; }
  .stage__card { width: 100%; }
  .stage__card::before { display: none; }
  .stage__node, .stage:nth-child(odd) .stage__node, .stage:nth-child(even) .stage__node { left: 14px; top: 28px; }
  .stage--static .stage__card { margin: 0; }
  .path-progress { top: 78px; font-size: .8rem; padding: 8px 16px; }
}

@media (max-width: 600px) {
  .grid2 { grid-template-columns: 1fr; }
  .opt-card span { flex-direction: column; align-items: flex-start; gap: 2px; }
  #submit-btn { justify-self: stretch; width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > div:first-child { grid-column: auto; }
  .hero__orbits { opacity: .6; }
  .confirm .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .cursor { opacity: 1; }
  .stage__card { opacity: 1; }
  .hero__video { display: none; }
}


/* ---------- Language toggle (العربية / English) ---------- */
.lang-toggle { font-family: inherit; font-size: .92rem; font-weight: 600; line-height: 1.2; color: #fff; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: background .25s, border-color .25s; }
.lang-toggle[lang="ar"] { font-family: "Cairo", system-ui, sans-serif; }
.lang-toggle:hover { background: rgba(255,69,79,.12); border-color: var(--red-hot); }
.lang-toggle:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 2px; }
@media (max-width: 820px) { .lang-toggle { margin-top: 14px; padding: 13px; font-size: 1.05rem; width: 100%; } }

/* ---------- Arabic / right-to-left ---------- */
html[dir="rtl"] { --font-display: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif; --font-body: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif; }
/* letter-spacing and caps break Arabic letter joining */
html[dir="rtl"] body *:not(.brand__word):not(.brand__word *):not(.footer__brand) { letter-spacing: 0 !important; text-transform: none !important; }
html[dir="rtl"] .hero__title, html[dir="rtl"] .display { line-height: 1.3; }
html[dir="rtl"] .hero__sub, html[dir="rtl"] .lead { line-height: 1.6; }
html[dir="rtl"] .nav__inner { padding: 0 24px 0 10px; }
html[dir="rtl"] .nav__links a:not(.btn)::after { transform-origin: right; }
html[dir="rtl"] .cursor { margin-left: 0; margin-right: .07em; }
html[dir="rtl"] .hero__overlay { background:
  linear-gradient(270deg, rgba(8,9,13,calc(var(--dim) + .3)) 0%, rgba(8,9,13,calc(var(--dim) + .05)) 55%, rgba(8,9,13,calc(var(--dim) * .5)) 100%),
  linear-gradient(180deg, rgba(8,9,13,.35) 0%, transparent 25%, transparent 65%, var(--bg) 100%); }
html[dir="rtl"] .hero__glow { right: auto; left: -28vmax; }
/* the path curve is drawn left-to-right; keep its layout and flip only the text */
html[dir="rtl"] .path-wrap { direction: ltr; }
html[dir="rtl"] .stage__card { direction: rtl; text-align: right; }
@media (max-width: 820px) { html[dir="rtl"] .nav__inner { padding: 0 20px 0 8px; } }

/* ---------- About heading (now the section's main line) ---------- */
.about__text .display { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 16ch; line-height: 1.08; }
.about__text .prose { margin-top: 26px; }

/* ---------- Project media: clickable thumbnail + viewer ---------- */
.project__open { display: block; width: calc(100% - 20px); padding: 0; font: inherit; color: inherit; cursor: pointer; position: relative; appearance: none; -webkit-appearance: none; }
.project__open:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
.project__visual { position: relative; }
.project__open:hover img { transform: scale(1.05); }
.project__badge { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(8,9,13,.72); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); pointer-events: none; transition: transform .35s var(--ease), background .35s; }
.project__open:hover .project__badge { transform: scale(1.08); background: var(--red); }
.project__badge--video::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.project__badge--image::after { content: ""; position: absolute; left: 13px; top: 13px; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 4px; background: linear-gradient(135deg, transparent 55%, rgba(255,255,255,.85) 56%); }
.project--skeleton { min-height: 360px; background: linear-gradient(110deg, #101117 30%, #181a22 50%, #101117 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.project-grid.is-loading .project--skeleton:nth-child(2) { margin-top: 48px; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(14px, 4vw, 48px); background: rgba(4,5,8,.92); backdrop-filter: blur(8px); animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__box { width: min(1100px, 100%); max-height: 100%; display: grid; place-items: center; }
.lightbox__media { width: 100%; max-height: 82vh; border-radius: 14px; background: #000; }
.lightbox__frame { aspect-ratio: 16 / 9; border: 0; }
.lightbox__img { width: auto; max-width: 100%; height: auto; object-fit: contain; }
video.lightbox__media { aspect-ratio: 16 / 9; }
.lightbox__close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: var(--red); border-color: var(--red); }
.lightbox__close:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
html.has-lightbox { overflow: hidden; }
html[dir="rtl"] .project__badge { right: auto; left: 12px; }
html[dir="rtl"] .lightbox__close { right: auto; left: 18px; }

/* ---------- Trust strip (under the hero) ---------- */
.trust { background: linear-gradient(180deg, #0b0c11, var(--bg-2)); z-index: 2; padding-top: calc(var(--curve) + 30px); padding-bottom: calc(var(--curve) + 14px); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.trust__list li { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(227,66,66,.06); color: #fff; font-family: var(--font-display); font-size: .95rem; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.trust__list li svg { color: var(--red-hot); flex: none; }
.trust__list li:hover { border-color: var(--red-hot); background: rgba(227,66,66,.12); transform: translateY(-2px); }
@media (max-width: 820px) {
  .trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust__list li { border-radius: 18px; padding: 14px; font-size: .86rem; gap: 10px; }
}
@media (max-width: 420px) { .trust__list { grid-template-columns: 1fr; } }

/* ---------- Step pictures: float beside each step, linked to its node ---------- */
.stage__media { position: absolute; top: 50%; width: min(32%, 380px); aspect-ratio: 16 / 10; max-height: calc(100% - 28px); transform: translateY(-50%); z-index: 2; opacity: .5; transition: opacity .5s var(--ease); }
.stage.is-active .stage__media { opacity: 1; }
.stage:nth-child(odd) .stage__media { right: 52%; }
.stage:nth-child(even) .stage__media { left: 52%; }
.stage__pic { width: 100%; height: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0c0d12; box-shadow: 0 30px 60px -30px rgba(0,0,0,.85); animation: stageFloat 6s ease-in-out infinite; transition: transform .5s var(--ease), border-color .5s, box-shadow .5s; }
.stage:nth-child(even) .stage__pic { animation-delay: -3s; }
.stage__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage__media:hover .stage__pic { transform: translateY(-6px) scale(1.04); border-color: var(--red-hot); box-shadow: 0 34px 70px -26px rgba(255,69,79,.55); }
@keyframes stageFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
/* the link from the picture to the node on the path */
.stage__link { position: absolute; top: 50%; width: 25%; height: 1px; background: var(--line); transition: background .5s, box-shadow .5s; }
.stage__link::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .5s, box-shadow .5s; }
.stage:nth-child(odd) .stage__link { left: 100%; }
.stage:nth-child(odd) .stage__link::after { left: -3px; }
.stage:nth-child(even) .stage__link { right: 100%; }
.stage:nth-child(even) .stage__link::after { right: -3px; }
.stage.is-active .stage__link, .stage.is-active .stage__link::after { background: var(--red-hot); box-shadow: 0 0 10px rgba(255,69,79,.7); }
@media (max-width: 820px) {
  .stage:has(.stage__media), .stage:nth-child(odd):has(.stage__media), .stage:nth-child(even):has(.stage__media) { flex-direction: column; align-items: stretch; }
  .stage__media, .stage:nth-child(odd) .stage__media, .stage:nth-child(even) .stage__media { position: relative; top: auto; left: auto; right: auto; width: 100%; max-height: none; transform: none; margin-bottom: 12px; opacity: 1; }
  .stage__link { display: none; }
}
@media (prefers-reduced-motion: reduce) { .stage__pic { animation: none; } }
