/* Personal invite page (site.invite). Prefix iv-. Dark, brand teal/blue. Every animation has a still
   end state under prefers-reduced-motion (and without JavaScript: .iv-in elements are visible unless
   html.iv-js is set by invite.js). */
:root { --iv-bg: #04182e; --iv-ink: #e8f0fb; --iv-mute: #9fb1cf; --iv-dim: #6f84a8; --iv-teal: #08BEC8; --iv-teal-d: #009D8D;
  --iv-blue: #0874C9; --iv-edge: rgba(120, 170, 255, .16); --iv-panel: rgba(13, 51, 96, .5); --iv-mono: "JetBrains Mono", ui-monospace, monospace; }
html { scroll-behavior: smooth; }
body.iv { background: var(--iv-bg); color: var(--iv-ink); font-family: Inter, system-ui, sans-serif; overflow-x: hidden; }
body.iv.iv-locked { overflow: hidden; }
#ivSky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .iv-top, .iv-rail, .iv-sticky { position: relative; z-index: 2; }

/* Buttons */
.iv-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: .7rem 1.4rem; font-weight: 700;
  color: #04182e; background: linear-gradient(100deg, var(--iv-teal), #4fd1c5 50%, var(--iv-teal)); background-size: 200% 100%; text-decoration: none;
  box-shadow: 0 10px 40px -10px rgba(8, 190, 200, .7); transition: transform .2s, box-shadow .2s, background-position .6s; }
.iv-btn:hover { color: #04182e; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 50px -10px rgba(8, 190, 200, .9); }
.iv-btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.iv-btn-sm { padding: .45rem 1rem; font-size: .9rem; }
.iv-btn-ghost { display: inline-flex; align-items: center; padding: 1rem 1.6rem; border-radius: 999px; border: 1px solid var(--iv-edge); color: var(--iv-ink); text-decoration: none; }
.iv-btn-ghost:hover { border-color: var(--iv-teal); color: var(--iv-teal); }

/* The envelope */
.iv-seal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #0b3563, #04182e 70%); transition: opacity .8s ease, visibility .8s; }
.iv-seal.is-gone { opacity: 0; visibility: hidden; }
.iv-kicker, .iv-step { font: 600 .78rem/1 var(--iv-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--iv-teal); }
.iv-seal-title { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin: 1.6rem 0 .3rem; }
.iv-seal-from { color: var(--iv-mute); margin-bottom: 1.6rem; }
.iv-env { position: relative; width: min(320px, 78vw); aspect-ratio: 1.55; margin: 1.4rem auto 0; perspective: 900px; animation: iv-float 4s ease-in-out infinite; }
.iv-env-back, .iv-env-front { position: absolute; inset: 0; border-radius: 10px; }
.iv-env-back { background: #0e4a86; }
.iv-env-front { background: linear-gradient(160deg, #1468b3, #0b4c8c); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); z-index: 3; box-shadow: inset 0 -20px 40px rgba(0, 0, 0, .2); }
.iv-env-flap { position: absolute; left: 0; right: 0; top: 0; height: 56%; background: linear-gradient(180deg, #1a78c8, #0f5aa0); clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center; z-index: 4; transition: transform .7s cubic-bezier(.5, -.2, .3, 1.3), z-index 0s .35s; }
.iv-env-wax { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; z-index: 5; display: grid; place-items: center;
  font-weight: 800; font-size: 1.4rem; color: #04182e; background: radial-gradient(circle at 35% 30%, #6ff3f0, var(--iv-teal) 55%, var(--iv-teal-d)); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: transform .4s, opacity .4s; }
.iv-env-card { position: absolute; left: 8%; right: 8%; top: 10%; bottom: 8%; z-index: 2; border-radius: 8px; background: #f6fbff; color: #04182e;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 12%; gap: .2rem; transition: transform .9s cubic-bezier(.2, .8, .2, 1) .45s; }
.iv-env-card span { font: 600 .7rem var(--iv-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--iv-teal-d); }
.iv-env-card b { font-family: Caveat, cursive; font-size: 2rem; line-height: 1.1; padding: 0 .5rem; }
.iv-env.is-open { animation: none; }
.iv-env.is-open .iv-env-flap { transform: rotateX(180deg); z-index: 1; }
.iv-env.is-open .iv-env-wax { transform: scale(0); opacity: 0; }
.iv-env.is-open .iv-env-card { transform: translateY(-62%); }
@keyframes iv-float { 50% { transform: translateY(-8px) rotate(-1deg); } }

/* Top bar + rail */
.iv-top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: .75rem max(16px, 3vw);
  background: linear-gradient(to bottom, rgba(4, 24, 46, .9), rgba(4, 24, 46, 0)); }
.iv-logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em;
  --de-mark-wallet: #fff; --de-mark-hole: #04182e; }
.iv-logo .de-logo-mark { width: 40px; height: auto; aspect-ratio: 600 / 470; }
.iv-logo .de-logo-word b { color: var(--iv-teal); }
.iv-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: .9rem; }
.iv-rail a { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; text-decoration: none; color: var(--iv-dim); font-size: .78rem; }
.iv-rail a::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--iv-dim); transition: all .3s; }
.iv-rail a span { opacity: 0; transform: translateX(6px); transition: all .3s; }
.iv-rail a:hover span, .iv-rail a.on span { opacity: 1; transform: none; }
.iv-rail a.on { color: var(--iv-ink); }
.iv-rail a.on::after { background: var(--iv-teal); border-color: var(--iv-teal); box-shadow: 0 0 12px var(--iv-teal); }
.iv-rail a.seen::after { border-color: var(--iv-teal); }
@media (max-width: 991px) { .iv-rail { display: none; } }

/* Sections */
.iv-hero { min-height: 100vh; display: flex; align-items: center; padding: 6rem 0 4rem; }
.iv-ch { padding: 6.5rem 0; }
.iv-from { display: inline-flex; align-items: center; gap: .7rem; padding: .45rem 1rem .45rem .45rem; border-radius: 999px; border: 1px solid var(--iv-edge); background: rgba(255, 255, 255, .04); color: var(--iv-mute); }
.iv-from b { color: var(--iv-ink); }
.iv-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; font-weight: 800; color: #04182e; background: var(--iv-teal); flex: none; }
.iv-h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 1.6rem 0 1.4rem; }
.iv-name { background: linear-gradient(92deg, var(--iv-teal), #6fb6ff 50%, var(--iv-teal)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iv-shine 5s linear infinite; }
.iv-name.typing::after { content: ""; display: inline-block; width: .08em; height: .9em; margin-left: .05em; vertical-align: -.05em; background: var(--iv-teal); animation: iv-blink .8s steps(2) infinite; }
@keyframes iv-shine { to { background-position: -200% 0; } }
@keyframes iv-blink { 50% { opacity: 0; } }
.iv-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--iv-mute); max-width: 40rem; }
.iv-note { max-width: 36rem; margin: 2rem 0 0; padding: 1.3rem 1.5rem; border-radius: 4px 22px 22px 22px; background: #f6fbff; color: #04182e; transform: rotate(-1.2deg); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); }
.iv-note blockquote { font-family: Caveat, cursive; font-size: 1.65rem; line-height: 1.25; margin: 0; white-space: pre-line; }
.iv-note figcaption { font-family: Caveat, cursive; font-size: 1.4rem; color: var(--iv-teal-d); text-align: right; margin-top: .3rem; }
.iv-note figcaption::before { content: "— "; }
.iv-scroll { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; margin-top: 2.8rem; color: var(--iv-mute); text-decoration: none; font-size: .85rem; }
.iv-scroll i { animation: iv-bob 1.6s ease-in-out infinite; color: var(--iv-teal); }
@keyframes iv-bob { 50% { transform: translateY(6px); } }
.iv-h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 1rem 0 1.2rem; max-width: 50rem; }
.iv-p { color: var(--iv-mute); font-size: 1.15rem; max-width: 42rem; }
.iv-say { margin-top: 2.4rem; font-size: 1.3rem; max-width: 46rem; color: var(--iv-ink); }

.iv-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: stretch; margin-top: 2.4rem; }
.iv-arrow { display: grid; place-items: center; color: var(--iv-teal); font-size: 1.3rem; }
@media (max-width: 991px) { .iv-flow { grid-template-columns: 1fr; } .iv-arrow { transform: rotate(90deg); } }
.iv-card { padding: 1.6rem; border-radius: 22px; border: 1px solid var(--iv-edge); background: var(--iv-panel); backdrop-filter: blur(12px); }
.iv-card i { font-size: 1.7rem; color: var(--iv-teal); margin-bottom: .9rem; }
.iv-card h3 { font-size: 1.2rem; font-weight: 700; }
.iv-card p { color: var(--iv-mute); margin: 0; }

.iv-rings { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.iv-rings li { padding: 1rem 1.2rem; border-left: 3px solid var(--iv-edge); transition: border-color .4s, background .4s; }
.iv-rings li.lit { border-left-color: var(--iv-teal); background: rgba(8, 190, 200, .06); }
.iv-rings b { display: block; font-size: 1.1rem; }
.iv-rings span { color: var(--iv-mute); }
.iv-net { position: relative; width: 100%; max-width: 480px; margin: 0 auto; aspect-ratio: 1; }
.iv-net svg { width: 100%; height: 100%; overflow: visible; }
.iv-net-you { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 800; color: #04182e; font-size: .95rem; pointer-events: none; max-width: 68px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.iv-steps { list-style: none; padding: 0; margin: 2.4rem 0 0; position: relative; }
.iv-steps::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--iv-teal), var(--iv-blue)); opacity: .5; }
.iv-steps li { display: flex; gap: 1.3rem; margin-bottom: 2rem; position: relative; }
.iv-steps li > span { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #04182e; background: var(--iv-teal); box-shadow: 0 0 0 6px var(--iv-bg); }
.iv-steps b { font-size: 1.25rem; display: block; margin-top: .55rem; }
.iv-steps p { color: var(--iv-mute); margin: .3rem 0 0; }

.iv-big { height: 100%; padding: 2.4rem 2rem; border-radius: 26px; text-align: center; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(ellipse at 50% 0, rgba(8, 190, 200, .25), transparent 70%), var(--iv-panel); border: 1px solid rgba(8, 190, 200, .35); }
.iv-amount { font-size: clamp(3.4rem, 10vw, 6.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: #fff; text-shadow: 0 0 40px rgba(8, 190, 200, .5); font-variant-numeric: tabular-nums; }
.iv-big p { font-size: 1.3rem; margin: .9rem 0 0; }
.iv-big .iv-more { font-size: 1rem; color: var(--iv-mute); }
.iv-big .iv-more i { color: var(--iv-teal); }
.iv-terms { height: 100%; padding: 1.8rem; border-radius: 26px; border: 1px solid var(--iv-edge); background: rgba(2, 10, 24, .55); }
.iv-terms h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.iv-terms ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .7rem; color: #c6d3ea; }

.iv-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.iv-tool { padding: 1.4rem; border-radius: 20px; border: 1px solid var(--iv-edge); background: var(--iv-panel); display: flex; flex-direction: column; gap: .45rem;
  transition: transform .25s, border-color .25s, box-shadow .25s; transform-style: preserve-3d; }
.iv-tool:hover { border-color: rgba(8, 190, 200, .5); box-shadow: 0 20px 50px -20px rgba(8, 190, 200, .5); }
.iv-tool i { font-size: 1.5rem; color: var(--iv-teal); }
.iv-tool b { font-size: 1.05rem; }
.iv-tool span { color: var(--iv-mute); font-size: .93rem; }

.iv-final { padding-bottom: 9rem; }
.iv-norisk { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0; }
.iv-norisk span { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--iv-edge); background: rgba(255, 255, 255, .04); }
.iv-norisk i { color: var(--iv-teal); }
.iv-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.4rem; }
.iv-fine { font-size: .8rem; color: var(--iv-dim); max-width: 40rem; }

.iv-sticky { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 20; display: none; text-align: center; padding: .9rem; border-radius: 999px;
  font-weight: 700; color: #04182e; background: var(--iv-teal); text-decoration: none; box-shadow: 0 12px 40px -8px rgba(8, 190, 200, .7); transform: translateY(150%); transition: transform .4s; }
.iv-sticky.show { transform: none; }
@media (max-width: 767px) { .iv-sticky { display: block; } .iv-top .iv-btn-sm { display: none; } .iv-ch { padding: 4.5rem 0; } }

/* Reveal on scroll (only once invite.js has marked the page) */
html.iv-js .iv-in { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
html.iv-js .iv-in.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.iv-js .iv-in { opacity: 1; transform: none; transition: none; }
  .iv-env, .iv-name, .iv-scroll i { animation: none; }
  .iv-env-flap, .iv-env-card, .iv-env-wax, .iv-seal, .iv-tool, .iv-sticky { transition: none; }
}
@media (max-width: 575px) { body.iv .container { padding-left: 16px; padding-right: 16px; } }
.iv-aside { display: flex; gap: .8rem; align-items: flex-start; max-width: 40rem; margin: 1.2rem 0 0; padding: .9rem 1.1rem; border-radius: 16px;
  border: 1px dashed rgba(8, 190, 200, .35); background: rgba(8, 190, 200, .05); color: #c6d3ea; font-size: 1.02rem; }
.iv-aside i { color: var(--iv-teal); font-size: 1.1rem; margin-top: .25rem; }
.iv-aside .fa-scissors { transform: rotate(-30deg); }

/* The guided tour: voice bar with a speaking orb, captions, and the glow on what is being talked about. */
.iv-seal-sound { margin: 1rem 0 0; font-size: .85rem; color: var(--iv-mute); }
.iv-linkbtn { background: none; border: 0; padding: 0; color: var(--iv-teal); text-decoration: underline; font-size: inherit; }
.iv-guide { position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(720px, calc(100vw - 32px));
  display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem .7rem .7rem; border-radius: 26px; border: 1px solid rgba(8, 190, 200, .35);
  background: rgba(4, 24, 46, .88); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  animation: iv-rise .5s cubic-bezier(.2, .8, .2, 1); }
.iv-guide[hidden] { display: none; }
@keyframes iv-rise { from { transform: translate(-50%, 30px); opacity: 0; } }
.iv-orb { position: relative; flex: 0 0 56px; height: 56px; }
.iv-orb canvas { position: absolute; left: -14px; top: -14px; width: 84px; height: 84px; pointer-events: none; }
.iv-orb i { position: absolute; inset: 8px; border-radius: 50%; display: grid; place-items: center; color: #04182e; font-size: 1.05rem;
  background: radial-gradient(circle at 35% 30%, #6ff3f0, var(--iv-teal) 55%, var(--iv-teal-d));
  transform: scale(calc(1 + var(--iv-level, 0) * .5)); box-shadow: 0 0 calc(10px + var(--iv-level, 0) * 50px) rgba(8, 190, 200, .8); transition: transform .08s linear; }
.iv-guide:not(.is-speaking) .iv-orb i { box-shadow: 0 0 8px rgba(8, 190, 200, .4); }
.iv-guide-txt { flex: 1 1 auto; min-width: 0; }
.iv-guide-txt small { display: block; font: 600 .68rem/1.2 var(--iv-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--iv-teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-guide-txt p { margin: .2rem 0 0; min-height: 2.6em; font-size: .98rem; line-height: 1.32; color: var(--iv-ink); }
.iv-gbar { height: 3px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: .4rem; }
.iv-gbar i { display: block; height: 100%; width: 0; background: var(--iv-teal); }
.iv-guide button { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--iv-edge); background: none; color: var(--iv-ink); }
.iv-guide button:hover { border-color: var(--iv-teal); color: var(--iv-teal); }
body.iv-guiding .iv-sticky { display: none; }
body.iv-guiding .iv-final { padding-bottom: 12rem; }
.is-lit { position: relative; z-index: 1; box-shadow: 0 0 0 2px rgba(8, 190, 200, .8), 0 0 50px -6px rgba(8, 190, 200, .7) !important; border-radius: 18px;
  transition: box-shadow .4s ease, transform .4s ease; }
.iv-card.is-lit, .iv-tool.is-lit, .iv-rings li.is-lit, .iv-steps li.is-lit { transform: translateY(-4px) scale(1.02); }
.iv-h2.is-lit, .iv-step.is-lit { box-shadow: none !important; text-shadow: 0 0 30px rgba(8, 190, 200, .55); }
.iv-steps li.is-lit > span { box-shadow: 0 0 0 6px var(--iv-bg), 0 0 24px 4px rgba(8, 190, 200, .9); }
@media (max-width: 575px) { .iv-guide { gap: .55rem; padding: .55rem .6rem .55rem .55rem; } .iv-orb { flex-basis: 44px; height: 44px; } .iv-orb canvas { left: -20px; top: -20px; }
  .iv-guide button[data-iv-gnext] { display: none; } .iv-guide-txt p { font-size: .88rem; } }
@media (prefers-reduced-motion: reduce) { .iv-guide { animation: none; } .is-lit, .iv-orb i { transition: none; transform: none !important; } }

/* You can do this */
.iv-can { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
@media (max-width: 991px) { .iv-can { grid-template-columns: 1fr; } }
.iv-share { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1.3rem 1.5rem; border-radius: 22px; font-size: 1.2rem; color: var(--iv-ink);
  background: linear-gradient(100deg, rgba(8, 190, 200, .16), rgba(8, 116, 201, .12)); border: 1px solid rgba(8, 190, 200, .35); }
.iv-share i { font-size: 1.5rem; color: var(--iv-teal); }
.iv-share b { color: #fff; }
