/* Sella – the brand site and the login. Misty blue-grey ground, soft colour clouds that drift,
   film grain, a high-contrast serif wordmark. Calm and quiet: one dark button, no glow. */
:root {
  color-scheme: light;
  --ground: #d0d9e1;
  --ink: #2f3133;
  --ink-2: #55595e;
  --ink-3: #7b8188;
  --line: rgba(47, 49, 51, .12);
  --cloud-1: #8fb3d8;
  --cloud-2: #a9c6e2;
  --cloud-3: #b7cbdc;
  --warm: #ead2ae;
  --mint: #bcd8cf;
  --glass: rgba(255, 255, 255, .42);
  --glass-edge: rgba(255, 255, 255, .7);
  --accent: #4e7fb4;
  --serif: "Old Standard TT", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Geist", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--cloud-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- the sky behind everything ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--ground); }
/* Performance: the clouds are soft gradients (no blur filter) that stand still – they only lean a
   little towards the cursor, which the GPU just moves around. Nothing in the sky repaints while
   scrolling, and the panes don't blur what's behind them (that was redone every frame). */
.cloud { position: absolute; border-radius: 50%; will-change: transform;
  transform: translate3d(calc(var(--px, 0) * var(--depth, 1) * 1px), calc(var(--py, 0) * var(--depth, 1) * 1px), 0); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.cloud i { position: absolute; inset: 0; border-radius: inherit; }
.cloud.big { width: 80vmax; height: 80vmax; right: -25vmax; top: -15vmax; --depth: 22; }
.cloud.big i { background: radial-gradient(circle at 50% 50%, var(--cloud-1) 0 22%, color-mix(in srgb, var(--cloud-1) 80%, var(--ground)) 34%, color-mix(in srgb, var(--cloud-1) 45%, var(--mint)) 46%, transparent 64%); }
/* the faint warm rim at the lower edge of the big cloud, like in the logo */
/* only towards the lower left, and very soft – a full ring would look like a rainbow */
.cloud.rim { width: 76vmax; height: 76vmax; right: -22vmax; top: -8vmax; --depth: 26; opacity: .32;
  -webkit-mask-image: linear-gradient(200deg, transparent 45%, #000 80%); mask-image: linear-gradient(200deg, transparent 45%, #000 80%); }
.cloud.rim i { background: radial-gradient(circle at 50% 46%, transparent 0 36%, color-mix(in srgb, var(--warm) 60%, transparent) 47%, color-mix(in srgb, var(--mint) 60%, transparent) 54%, transparent 64%); }
.cloud.small { width: 46vmax; height: 34vmax; left: -14vmax; top: -6vmax; --depth: -14; }
.cloud.small i { background: radial-gradient(closest-side, var(--cloud-3), color-mix(in srgb, var(--cloud-3) 40%, transparent) 55%, transparent); }
.cloud.low { width: 58vmax; height: 44vmax; left: 10vw; bottom: -28vmax; --depth: 10; opacity: .7; }
.cloud.low i { background: radial-gradient(closest-side, var(--cloud-2), color-mix(in srgb, var(--cloud-2) 40%, transparent) 55%, transparent); }
.grain { position: absolute; inset: 0; opacity: .16; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- type ---------- */
.wordmark { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .9; color: #434445; margin: 0; }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 14px; }
h2.title { font: 400 clamp(34px, 5vw, 58px)/1.05 var(--serif); letter-spacing: -.015em; margin: 0 0 18px; }
h2.title em, .hero-line em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 500 15.5px var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s, box-shadow .2s; }
.btn.dark { background: var(--ink); color: #f3f5f7; box-shadow: 0 10px 30px -12px rgba(30, 40, 55, .6); }
.btn.dark:hover { transform: translateY(-2px); background: #1f2123; }
.btn.light { background: rgba(255, 255, 255, .5); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.btn.light:hover { background: rgba(255, 255, 255, .6); }
.btn .arr { transition: transform .2s; } .btn:hover .arr { transform: translateX(3px); }

/* ---------- glass surface ---------- */
.pane { background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .42)); border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 30px 80px -40px rgba(30, 50, 80, .45); }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* Edge adds its own password "eye" – our forms have a Show button */
input::-ms-reveal, input::-ms-clear { display: none; }
