/* Base, typography and shared components */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--fog); color: var(--ink); font: 400 17px/1.4 var(--font-body); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }
.container { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* type */
.mono { font: 500 12px/1.25 var(--font-mono); text-transform: uppercase; letter-spacing: 0.02em; }
.display { font-family: var(--font-display); font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: 0.85; letter-spacing: -0.01em; }
.label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.h2 { font-size: clamp(38px, 5.2vw, 78px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500; }

/* split action: a pill plus a detached arrow disc */
.action { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; letter-spacing: -0.015em; transform: translate(var(--tx, 0px), var(--ty, 0px)); transition: transform 0.4s var(--ease-out), scale 0.25s var(--ease-out); }
.action:active { scale: 0.96; }
.action__label, .action__disc { display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px; background: var(--ink); color: #fff; transition: background 0.4s var(--ease-out); }
.action__label { padding: 0 24px 0 22px; gap: 10px; }
.action__disc { position: relative; width: 44px; overflow: hidden; }
.action__disc svg { position: absolute; width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }
.action__disc svg:last-child { transform: translateX(-34px); }
.action:hover .action__disc svg:first-child { transform: translateX(34px); }
.action:hover .action__disc svg:last-child { transform: none; }
.action--blue .action__label, .action--blue .action__disc { background: var(--blue); }
.action:hover .action__label, .action:hover .action__disc { background: var(--blue-deep); }
.action--ghost .action__label, .action--ghost .action__disc { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 12, 16, 0.14); }
.action--ghost:hover .action__label, .action--ghost:hover .action__disc { background: var(--ink); color: #fff; }

.textlink { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 3px; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid currentColor; transition: gap 0.4s var(--ease-out), color 0.3s; }
.textlink:hover { gap: 16px; color: var(--blue); }
.textlink svg { width: 14px; height: 14px; flex: none; }

.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.6); }

/* scroll reveal: elements start hidden only when scripting is on */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* liquid glass: a translucent, blurred surface with a bright rim and a highlight that follows the pointer */
.glass { position: relative; isolation: isolate; background: var(--glass-bg); -webkit-backdrop-filter: blur(18px) saturate(175%); backdrop-filter: blur(18px) saturate(175%); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0.85; transition: opacity 0.4s;
  background: radial-gradient(140px 90px at var(--gx, 18%) var(--gy, 0%), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%); }
.glass--dark { background: linear-gradient(135deg, rgba(20, 22, 30, 0.62), rgba(20, 22, 30, 0.34)); border-color: rgba(255, 255, 255, 0.22); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 30px -12px rgba(0, 0, 0, 0.5); }
.glass--dark::before { background: radial-gradient(120px 80px at var(--gx, 18%) var(--gy, 0%), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 70%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(255, 255, 255, 0.92); } .glass--dark { background: rgba(20, 22, 30, 0.88); } }
