/* =========================================================
   TandemUP — coming soon
   Visual language borrowed from hugostawiarski.fr:
   deep violet-black canvas, soft coloured glows, Clash Display
   headings, particle text, lime/pink/violet/blue accents.
   ========================================================= */

:root{
  --bg:      #0d0815;
  --ink:     #f4eeff;
  --mut:     #a99cc4;
  --pink:    #ff3d81;
  --blue:    #3d7bff;
  --lime:    #c6ff3d;
  --violet:  #9b5cff;
  --yellow:  #ffd23d;
  --card:    rgba(255,255,255,.04);
  --line:    rgba(255,255,255,.10);

  --font-display: "Clash Display", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  min-height:100svh;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  perspective:1200px;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.svg-defs{ position:absolute; width:0; height:0; pointer-events:none; }

/* ---------------------------------------------------------
   Background: slow-drifting colour fields + grain
   --------------------------------------------------------- */
.bg{ position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }

.glow{
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  opacity:.55;
  will-change:transform;
}
.glow--pink{
  width:60vw; height:60vw; max-width:820px; max-height:820px;
  top:-24vh; left:-14vw;
  background:radial-gradient(circle, rgba(255,61,129,.70), rgba(255,61,129,0) 68%);
  animation:drift-a 24s ease-in-out infinite alternate;
}
.glow--violet{
  width:62vw; height:62vw; max-width:900px; max-height:900px;
  top:6vh; right:-20vw;
  background:radial-gradient(circle, rgba(155,92,255,.62), rgba(155,92,255,0) 68%);
  animation:drift-b 30s ease-in-out infinite alternate;
}
.glow--blue{
  width:55vw; height:55vw; max-width:760px; max-height:760px;
  bottom:-26vh; left:22vw;
  background:radial-gradient(circle, rgba(61,123,255,.50), rgba(61,123,255,0) 70%);
  animation:drift-c 34s ease-in-out infinite alternate;
}

@keyframes drift-a{ from{ transform:translate3d(0,0,0) scale(1);}      to{ transform:translate3d(7vw,6vh,0) scale(1.12);} }
@keyframes drift-b{ from{ transform:translate3d(0,0,0) scale(1.05);}   to{ transform:translate3d(-8vw,9vh,0) scale(.92);} }
@keyframes drift-c{ from{ transform:translate3d(0,0,0) scale(.95);}    to{ transform:translate3d(6vw,-8vh,0) scale(1.14);} }

.vignette{
  position:absolute; inset:0;
  background:radial-gradient(120% 90% at 50% 40%, rgba(13,8,21,0) 35%, rgba(13,8,21,.72) 100%);
}

.grain{
  position:absolute; inset:-50%;
  opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 7s steps(6) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)}      20%{transform:translate(-3%,4%)}
  40%{transform:translate(2%,-3%)}  60%{transform:translate(-4%,-2%)}
  80%{transform:translate(3%,3%)}   100%{transform:translate(0,0)}
}

/* ---------------------------------------------------------
   Liquid-glass menu
   --------------------------------------------------------- */
.nav-wrap{
  position:fixed;
  top:clamp(14px, 2.4vw, 26px);
  left:0; right:0;
  z-index:40;
  display:flex;
  justify-content:center;
  padding:0 16px;
  pointer-events:none;
}

.nav{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  gap:4px;
  padding:7px 8px;
  border-radius:999px;
  pointer-events:auto;

  /* the glass body */
  background:
    linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.05) 42%, rgba(255,255,255,.08) 100%);
  -webkit-backdrop-filter:blur(18px) saturate(190%) brightness(1.06);
  backdrop-filter:blur(18px) saturate(190%) brightness(1.06);
  border:1px solid rgba(255,255,255,.16);

  /* the glass edges: bright top lip, soft bottom bounce light, deep drop */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(255,255,255,.10),
    inset 0 0 22px rgba(255,255,255,.07),
    0 18px 40px rgba(5,2,12,.55),
    0 2px 10px rgba(5,2,12,.40);

  transition:box-shadow .45s ease, border-color .45s ease, transform .45s cubic-bezier(.2,.9,.25,1);
  animation:nav-in .9s cubic-bezier(.2,.9,.25,1) both .15s;
}
@keyframes nav-in{ from{ opacity:0; transform:translateY(-14px) scale(.96);} to{ opacity:1; transform:none;} }

.nav:hover{
  border-color:rgba(255,255,255,.26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(255,255,255,.14),
    inset 0 0 26px rgba(255,255,255,.10),
    0 22px 48px rgba(5,2,12,.60),
    0 0 34px rgba(155,92,255,.22);
}

/* refraction layer — silently ignored where backdrop-filter:url() is unsupported */
.nav__refract{
  position:absolute; inset:2px; border-radius:999px; z-index:-1;
  overflow:hidden;
  -webkit-backdrop-filter:url(#liquidGlass);
  backdrop-filter:url(#liquidGlass);
  opacity:.45;
  pointer-events:none;
}

/* specular highlight that tracks the pointer */
.nav__sheen{
  position:absolute; inset:0; border-radius:inherit; z-index:0;
  pointer-events:none;
  opacity:0;
  transition:opacity .4s ease;
  background:
    radial-gradient(140px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.20), rgba(255,255,255,0) 62%);
  mix-blend-mode:screen;
}
.nav:hover .nav__sheen{ opacity:1; }

/* the liquid pill that slides under the hovered / active item */
.nav__glider{
  position:absolute;
  top:7px; left:0;
  height:calc(100% - 14px);
  width:0;
  border-radius:999px;
  z-index:0;
  pointer-events:none;
  opacity:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(255,255,255,.12),
    0 6px 18px rgba(5,2,12,.35);
  transition:
    transform .55s cubic-bezier(.22,1.2,.3,1),
    width .55s cubic-bezier(.22,1.2,.3,1),
    opacity .3s ease;
}
.nav__glider.is-on{ opacity:1; }

.nav__link{
  position:relative; z-index:1;
  appearance:none;
  border:0;
  background:none;
  font-family:var(--font-body);
  font-size:14.5px;
  font-weight:500;
  letter-spacing:.005em;
  color:var(--mut);
  text-decoration:none;
  padding:9px 16px;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
  transition:color .3s ease;
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-active{ color:var(--ink); }

.nav__link:focus-visible{ outline:2px solid rgba(198,255,61,.7); outline-offset:2px; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero,
.page{
  position:fixed;
  inset:0;
  z-index:1;
  display:grid;
  place-items:center;
  overflow-y:auto;
  transform-style:preserve-3d;
  will-change:transform, opacity, filter;
}

.hero[hidden],
.page[hidden]{
  display:none;
}

.hero{
  padding:120px 16px 80px;
}

.hero__canvas{
  display:block;
  width:100%;
  max-width:1100px;
  height:auto;
  touch-action:none;
}

.hero__fallback{
  font-family:var(--font-display);
  font-size:clamp(40px, 11vw, 120px);
  font-weight:600;
  letter-spacing:-.035em;
  margin:0;
}

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */
.page{
  padding:clamp(96px, 16vh, 140px) 16px 64px;
}

/* ---------------------------------------------------------
   View transition — camera pulls back through the scene,
   the next view arrives from the same depth.
   --------------------------------------------------------- */
.view-recede{ animation:view-recede .42s cubic-bezier(.5,0,.75,0) both; }
.view-arrive{ animation:view-arrive .52s cubic-bezier(.16,1,.3,1) .14s both; }

@keyframes view-recede{
  from{ opacity:1; transform:translateZ(0) scale(1); filter:blur(0); }
  to{   opacity:0; transform:translateZ(-340px) scale(.74); filter:blur(7px); }
}
@keyframes view-arrive{
  from{ opacity:0; transform:translateZ(-340px) scale(.74); filter:blur(7px); }
  to{   opacity:1; transform:translateZ(0) scale(1); filter:blur(0); }
}

@media (prefers-reduced-motion:reduce){
  .view-recede, .view-arrive{ animation:none; }
}

.card{
  position:relative;
  isolation:isolate;
  width:min(560px, 100%);
  padding:clamp(24px, 4.5vw, 40px);
  border-radius:26px;

  background:
    linear-gradient(180deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.045) 45%, rgba(255,255,255,.07) 100%);
  -webkit-backdrop-filter:blur(24px) saturate(190%) brightness(1.05);
  backdrop-filter:blur(24px) saturate(190%) brightness(1.05);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(255,255,255,.10),
    inset 0 0 40px rgba(255,255,255,.05),
    0 40px 90px rgba(4,1,10,.70);
  animation:pop .5s cubic-bezier(.2,1.1,.3,1) both;
}
@keyframes pop{ from{ opacity:0; transform:translateY(18px) scale(.96);} to{ opacity:1; transform:none;} }

.card__refract{
  position:absolute; inset:2px; border-radius:24px; z-index:-1;
  overflow:hidden;
  -webkit-backdrop-filter:url(#liquidGlass);
  backdrop-filter:url(#liquidGlass);
  opacity:.32;
  pointer-events:none;
}

.card__eyebrow{
  margin:0 0 10px;
  font-size:12px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--lime);
}

.card__title{
  margin:0 0 10px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(28px, 5vw, 38px);
  letter-spacing:-.03em;
  line-height:1.05;
}
.card__title .grad{
  font-style:normal;
  background:linear-gradient(100deg, var(--pink), var(--violet), var(--blue), var(--lime));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.card__lead{
  margin:0 0 24px;
  color:var(--mut);
  font-size:15px;
  line-height:1.6;
  max-width:40ch;
}

/* form */
.form{ display:grid; gap:16px; }
.form[hidden]{ display:none; }

.field{ display:grid; gap:7px; }

.field label{
  font-size:12.5px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--mut);
}

.field input,
.field textarea{
  width:100%;
  font-family:var(--font-body);
  font-size:15px;
  color:var(--ink);
  padding:13px 15px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.045);
  resize:vertical;
  transition:border-color .28s, background .28s, box-shadow .28s;
}
.field input::placeholder,
.field textarea::placeholder{ color:rgba(169,156,196,.55); }

.field input:hover,
.field textarea:hover{ border-color:rgba(255,255,255,.2); }

.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:rgba(198,255,61,.55);
  background:rgba(255,255,255,.07);
  box-shadow:0 0 0 4px rgba(198,255,61,.12);
}

.field.is-bad input,
.field.is-bad textarea{
  border-color:rgba(255,61,129,.65);
  box-shadow:0 0 0 4px rgba(255,61,129,.12);
}

.field__err{
  min-height:0;
  font-size:12.5px;
  color:var(--pink);
}
.field.is-bad .field__err{ min-height:16px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  margin-top:4px;
  padding:14px 22px;
  border:0;
  border-radius:999px;
  font-family:var(--font-body);
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  color:#0d0815;
  background:var(--lime);
  cursor:pointer;
  transition:transform .25s cubic-bezier(.2,1.2,.3,1), box-shadow .3s, filter .25s;
  box-shadow:0 10px 26px rgba(198,255,61,.22);
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 16px 36px rgba(198,255,61,.30); filter:brightness(1.05); }
.btn:active{ transform:translateY(0); }
.btn svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .3s; }
.btn:hover svg{ transform:translateX(3px); }
.btn[disabled]{ opacity:.6; pointer-events:none; }

.btn--ghost{
  background:rgba(255,255,255,.07);
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn--ghost:hover{ background:rgba(255,255,255,.12); box-shadow:none; }

.hp{
  position:absolute !important;
  left:-9999px; top:auto;
  width:1px; height:1px;
  opacity:0;
  pointer-events:none;
}

.form__error{
  margin:2px 0 0;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid rgba(255,61,129,.35);
  background:rgba(255,61,129,.10);
  color:var(--ink);
  font-size:13.5px;
  line-height:1.5;
}
.form__error[hidden]{ display:none; }
.form__error a{ color:var(--lime); }

.form__note{
  margin:2px 0 0;
  font-size:12.5px;
  line-height:1.5;
  color:rgba(169,156,196,.75);
}

/* sent state */
.sent{ text-align:center; padding:12px 0 4px; }
.sent[hidden]{ display:none; }
.sent__badge{
  width:64px; height:64px; margin:0 auto 18px;
  display:grid; place-items:center;
  border-radius:50%;
  background:rgba(198,255,61,.14);
  border:1px solid rgba(198,255,61,.35);
}
.sent__badge svg{ width:26px; height:26px; fill:none; stroke:var(--lime); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.sent h2, .sent h3{
  margin:0 0 8px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:24px;
  letter-spacing:-.02em;
}
.sent p{ margin:0 0 22px; color:var(--mut); font-size:15px; }

/* ---------------------------------------------------------
   Custom cursor — a tiny liquid-glass lens
   (added by JS only on devices with a real pointer)
   --------------------------------------------------------- */
html.cursor-ready,
html.cursor-ready *{ cursor:none !important; }

.cursor-ring{
  position:fixed; top:0; left:0;
  z-index:90;
  pointer-events:none;
  opacity:0;
  transition:opacity .12s ease;   /* appears at once, fades out gently */
}
html.cursor-ready .cursor-ring{ opacity:1; }
html.cursor-out .cursor-ring{ opacity:0; transition:opacity .3s ease; }

.cursor-ring{
  width:38px; height:38px; margin:-19px 0 0 -19px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.42);
  background:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  -webkit-backdrop-filter:blur(2px) saturate(185%) brightness(1.08);
  backdrop-filter:blur(2px) saturate(185%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.50),
    inset 0 -1px 0 rgba(255,255,255,.12),
    0 8px 20px rgba(5,2,12,.45);
  transition:border-color .3s ease, background .3s ease, box-shadow .3s ease, opacity .12s ease;
}

/* refraction inside the lens — ignored where backdrop-filter:url() is unsupported */
.cursor-ring i{
  position:absolute; inset:1px;
  border-radius:50%;
  -webkit-backdrop-filter:url(#liquidGlass);
  backdrop-filter:url(#liquidGlass);
  opacity:.6;
}

/* over a link / button / field the lens opens up into a plain outline,
   so whatever is underneath stays perfectly readable. The white ring is
   hairlined in dark on both sides, so it shows on the lime button too. */
.cursor-ring.is-active{
  border:1.5px solid rgba(244,238,255,.92);
  background:rgba(255,255,255,.04);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  box-shadow:
    0 0 0 1.5px rgba(5,2,12,.38),
    inset 0 0 0 1.5px rgba(5,2,12,.26),
    0 0 26px rgba(198,255,61,.30);
}
.cursor-ring.is-active i{ opacity:0; }

@media (hover:none), (pointer:coarse){
  .cursor-ring{ display:none !important; }
  html.cursor-ready, html.cursor-ready *{ cursor:auto !important; }
}

/* ---------------------------------------------------------
   Small screens
   --------------------------------------------------------- */
@media (max-width:560px){
  .nav{ gap:2px; padding:6px; }
  .nav__link{ padding:8px 12px; font-size:13.5px; }
  .hero{ padding:110px 12px 70px; }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .glow, .grain{ animation:none; }
  .nav, .card{ animation:none; }
  .cursor-ring i{ display:none; }
  *{ transition-duration:.01ms !important; }
}
