/* ==========================================================================
   schiller.pw — generated by site-rs (Rust). Apple HIG colour tokens as on
   the ScanOverAir pages; glass surfaces over a WebGL2 scene.
   ========================================================================== */

:root {
  --bg: #f2f2f7;
  --bg-2: #e6e8f5;
  --card: rgba(255, 255, 255, 0.6);
  --card-solid: #ffffff;
  --card-border: rgba(255, 255, 255, 0.78);
  --hairline: rgba(60, 60, 67, 0.12);
  --fill: rgba(120, 120, 128, 0.13);
  --label: #0b0b0f;
  --label-2: rgba(60, 60, 67, 0.76);
  --label-3: rgba(60, 60, 67, 0.5);
  --tint: #007aff;
  --blue: #007aff;
  --green: #28a745;
  --orange: #f08c00;
  --purple: #a54bd6;
  --teal: #1f9bb3;
  --pink: #f0254e;
  --accent-grad: linear-gradient(100deg, #007aff 0%, #5e5ce6 34%, #bf5af2 66%, #ff375f 100%);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 14px 40px -18px rgba(25, 25, 70, 0.22);
  --shadow-lg: 0 34px 80px -30px rgba(25, 25, 70, 0.38);
  --nav-bg: rgba(242, 242, 247, 0.62);
  --icon-hole: #ffffff;
  --orb-1: rgba(0, 122, 255, 0.26);
  --orb-2: rgba(191, 90, 242, 0.2);
  --orb-3: rgba(255, 55, 95, 0.14);
  --stage-glow: rgba(0, 122, 255, 0.1);
  --blur: saturate(170%) blur(20px);
  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-2: #0b0b16;
    --card: rgba(30, 30, 36, 0.52);
    --card-solid: #1c1c1e;
    --card-border: rgba(255, 255, 255, 0.09);
    --hairline: rgba(255, 255, 255, 0.1);
    --fill: rgba(120, 120, 128, 0.24);
    --label: #f5f5f7;
    --label-2: rgba(235, 235, 245, 0.7);
    --label-3: rgba(235, 235, 245, 0.45);
    --tint: #0a84ff;
    --blue: #0a84ff;
    --green: #30d158;
    --orange: #ff9f0a;
    --purple: #bf5af2;
    --teal: #40c8e0;
    --pink: #ff375f;
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 22px 50px -22px rgba(0, 0, 0, 0.85);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
    --nav-bg: rgba(14, 14, 20, 0.55);
    --icon-hole: #1c1c1e;
    --orb-1: rgba(10, 132, 255, 0.3);
    --orb-2: rgba(191, 90, 242, 0.24);
    --orb-3: rgba(255, 55, 95, 0.16);
    --stage-glow: rgba(94, 92, 230, 0.2);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0b0b16;
  --card: rgba(30, 30, 36, 0.52);
  --card-solid: #1c1c1e;
  --card-border: rgba(255, 255, 255, 0.09);
  --hairline: rgba(255, 255, 255, 0.1);
  --fill: rgba(120, 120, 128, 0.24);
  --label: #f5f5f7;
  --label-2: rgba(235, 235, 245, 0.7);
  --label-3: rgba(235, 235, 245, 0.45);
  --tint: #0a84ff;
  --blue: #0a84ff;
  --green: #30d158;
  --orange: #ff9f0a;
  --purple: #bf5af2;
  --teal: #40c8e0;
  --pink: #ff375f;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 22px 50px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  --nav-bg: rgba(14, 14, 20, 0.55);
  --icon-hole: #1c1c1e;
  --orb-1: rgba(10, 132, 255, 0.3);
  --orb-2: rgba(191, 90, 242, 0.24);
  --orb-3: rgba(255, 55, 95, 0.16);
  --stage-glow: rgba(94, 92, 230, 0.2);
  color-scheme: dark;
}

:lang(zh) {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-display: var(--font);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

b,
strong {
  font-weight: 650;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tint) 75%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--tint);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, 100% - 40px);
}

@media (max-width: 520px) {
  .container,
  .container.narrow {
    width: calc(100% - 32px);
  }
}

/* ---------- Backdrop and 3D canvas ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-2), var(--bg) 62%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  animation: drift 28s ease-in-out infinite alternate;
}

.orb-1 {
  width: 52vmax;
  height: 52vmax;
  left: -16vmax;
  top: -18vmax;
  background: radial-gradient(circle, var(--orb-1), transparent 64%);
}

.orb-2 {
  width: 46vmax;
  height: 46vmax;
  right: -16vmax;
  top: 14vh;
  background: radial-gradient(circle, var(--orb-2), transparent 64%);
  animation-delay: -9s;
}

.orb-3 {
  width: 42vmax;
  height: 42vmax;
  left: 22vw;
  bottom: -24vmax;
  background: radial-gradient(circle, var(--orb-3), transparent 64%);
  animation-delay: -17s;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}

#scene.ready {
  opacity: 1;
}

/* ---------- Glass ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--card-solid);
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1220px, 100% - 24px);
  padding: 8px 8px 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.nav.scrolled .nav-inner {
  background: var(--nav-bg);
  border-color: var(--card-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--label);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(0, 122, 255, 0.7);
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--label-2);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--label);
  background: var(--fill);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
}

.lang a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--label-2);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.lang a[aria-current] {
  background: var(--card-solid);
  color: var(--label);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--label);
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.icon-btn:hover {
  transform: scale(1.06);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

#motionToggle[aria-pressed="false"] {
  color: var(--label-3);
}

#motionToggle[aria-pressed="false"] svg {
  opacity: 0.55;
}

/* Shown once when the page pauses the 3D animation on a device where it stutters. */
.perf-note {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: min(580px, calc(100% - 32px));
  padding: 12px 10px 12px 18px;
  translate: -50% 0;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: rise 0.6s var(--ease) both;
}

.perf-note[hidden] {
  display: none;
}

.perf-note p {
  flex: 1 1 240px;
  margin: 0;
  color: var(--label-2);
  font-size: 14.5px;
  line-height: 1.4;
}

.perf-note .icon-btn {
  width: 34px;
  height: 34px;
}

.theme-toggle .i-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .i-moon {
    display: none;
  }
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

.legal .nav-links {
  margin-left: auto;
}

.home .nav-tools {
  margin-left: 6px;
}

@media (max-width: 1020px) {
  .home .nav-links {
    display: none;
  }
  .home .nav-tools {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .legal .nav-links {
    display: none;
  }
  .legal .nav-tools {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .brand-name,
  .nav .nav-cta {
    display: none;
  }
  .lang a {
    padding: 5px 7px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.25s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--tint);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(0, 122, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px -12px rgba(0, 122, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-glass {
  background: var(--card);
  color: var(--label);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.btn-small {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ctas.center {
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 420px) {
  .ctas .btn {
    flex: 1 1 100%;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--label-2);
  font-size: 14px;
  font-weight: 650;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

/* Nothing in the content may widen the page sideways (phones would zoom the whole page out). */
main {
  overflow-x: clip;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 110px;
}

.hero-copy {
  position: relative;
  max-width: 660px;
}

/* Small screens: the scene sits behind the text, so soften it there. The soft area stays within
   the page gutters: anything wider makes phones lay the page out wider than the screen. */
@media (max-width: 700px) {
  .hero-copy::before {
    content: "";
    position: absolute;
    inset: -30px -16px;
    z-index: -1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 62%, transparent), transparent);
    pointer-events: none;
  }
}

.hero-copy > * {
  animation: rise 1s var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s infinite;
}

h1 {
  margin: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.accent {
  background: var(--accent-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
}

.hero-sub {
  max-width: 580px;
  margin: 0 0 34px;
  color: var(--label-2);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  text-wrap: pretty;
}

.hero-sub b {
  color: var(--label);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--label-2);
  font-size: 15px;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* Text on the left, the 3D laptop on the right. The scene draws the laptop into the stage's box,
   so the box decides where it sits and how big it is. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
}

/* A soft light behind the laptop. It sits between the page background and the 3D canvas
   (z-index -2; nothing above it forms a stacking context), so the laptop stands out from it,
   most of all on the black dark-mode page. */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 12% 6% 8%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--stage-glow), transparent);
  pointer-events: none;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  /* At most 80% of the screen height, so a phone held sideways still shows the whole laptop. */
  .hero-stage {
    width: min(100%, 640px, 120svh);
    justify-self: center;
    aspect-ratio: 3 / 2;
  }
}

/* Phones: the laptop uses the full width, edge to edge, so its code stays readable. */
@media (max-width: 560px) {
  .hero-stage {
    width: calc(100% + 32px);
    max-width: none;
    margin-inline: -16px;
    aspect-ratio: 5 / 4;
  }
}

/* The code as a plain window, for when the 3D scene (or its laptop) cannot run. It never grows
   past the stage, which keeps its size whether or not the window shows. */
.code-window {
  display: none;
  position: absolute;
  inset: 0;
  height: max-content;
  max-height: 100%;
  margin: auto 0;
  overflow: hidden;
}

html:not(.js) .code-window,
html[data-scene="off"] .code-window,
html[data-scene="nolaptop"] .code-window {
  display: block;
}

@media (max-width: 560px) {
  .code-window {
    inset: 0 16px;
  }
}

.cw-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--label-2);
  font-size: 13px;
  font-weight: 650;
}

.cw-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.cw-bar i:nth-child(2) {
  background: #febc2e;
}

.cw-bar i:nth-child(3) {
  background: #28c840;
}

.cw-bar span {
  margin-left: 8px;
}

.cw-code {
  margin: 0;
  padding: 16px 18px 20px;
  overflow: hidden;
  font: 500 clamp(12px, 1.1vw, 14.5px) / 1.75 ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono",
    Consolas, "Liberation Mono", monospace;
  counter-reset: line;
}

/* <code> has its own monospace font in the browser's defaults; use the window's. */
.cw-code code {
  font: inherit;
}

@media (max-width: 560px) {
  .cw-code {
    padding: 10px 12px 12px;
    font-size: 11px;
    line-height: 1.6;
  }
}

.cw-line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2.2ch;
  margin-right: 1.6ch;
  color: var(--label-3);
  text-align: right;
}

.tk-tag {
  color: var(--pink);
}

.tk-kw {
  color: var(--purple);
}

.tk-str {
  color: var(--orange);
}

.tk-fn {
  color: var(--blue);
}

.tk-cmp {
  color: var(--teal);
}

.tk-punc {
  color: var(--label-2);
}

.tk-var {
  color: var(--label);
}

/* ---------- Key figures ---------- */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -40px;
}

.stat {
  padding: 22px 24px;
}

.num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.lbl {
  margin: 8px 0 0;
  color: var(--label-2);
  font-size: 15px;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-top: clamp(96px, 11vw, 160px);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.lead {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--label-2);
  font-size: clamp(1.03rem, 0.95rem + 0.4vw, 1.22rem);
  text-wrap: pretty;
}

/* ---------- Spotlight ---------- */
.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 22px;
  padding: clamp(28px, 4.5vw, 60px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -12%;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.24), transparent 62%);
  pointer-events: none;
}

.flag {
  color: var(--orange);
}

.spotlight h3 {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.sp-desc {
  margin: 0 0 22px;
  color: var(--label-2);
  font-size: 1.12rem;
}

.checks {
  display: grid;
  gap: 11px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green);
}

.sp-visual {
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.phone {
  width: min(240px, 62vw);
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(150deg, #34343a, #0c0c10 60%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
  transform: rotateY(-20deg) rotateX(8deg) rotateZ(3deg);
  transition: transform 0.9s var(--ease);
  animation: float 7s ease-in-out infinite;
}

.spotlight:hover .phone {
  transform: rotateY(-6deg) rotateX(3deg) rotateZ(1deg);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
  border-radius: 32px;
  background: radial-gradient(120% 80% at 50% 0%, #1d2d50, #05070d 70%);
  overflow: hidden;
}

.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 24px;
  border-radius: 14px;
  background: #000;
  transform: translateX(-50%);
}

.viewfinder {
  position: relative;
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1;
}

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid #30d158;
}

.corner.tl {
  top: 0;
  left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: 10px;
}

.corner.tr {
  top: 0;
  right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: 10px;
}

.corner.bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: 10px;
}

.corner.br {
  right: 0;
  bottom: 0;
  border-right-width: 3px;
  border-bottom-width: 3px;
  border-bottom-right-radius: 10px;
}

.barcode {
  width: 70%;
  height: 44%;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #f5f5f7 0 3px, transparent 3px 5px, #f5f5f7 5px 6px,
      transparent 6px 9px, #f5f5f7 9px 13px, transparent 13px 15px, #f5f5f7 15px 16px, transparent 16px 19px);
  opacity: 0.92;
}

.beam {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #30d158, transparent);
  box-shadow: 0 0 18px 4px rgba(48, 209, 88, 0.55);
  animation: beam 2.4s ease-in-out infinite;
}

.phone-caption {
  margin: 0;
  color: #e5e5ea;
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 860px) {
  .spotlight {
    grid-template-columns: 1fr;
  }
  .sp-visual {
    order: -1;
  }
  .phone {
    width: min(176px, 46vw);
    transform: rotateY(-12deg) rotateX(5deg) rotateZ(2deg);
  }
}

/* ---------- Project cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.card:hover {
  border-color: color-mix(in srgb, var(--tint) 40%, transparent);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--label-2);
  font-size: 15.5px;
}

.glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.2), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.card:hover .glare {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--label-2);
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s;
}

.card-arrow svg {
  width: 15px;
  height: 15px;
}

.card:hover .card-arrow {
  background: var(--tint);
  color: #fff;
  transform: translate(2px, -2px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label-2);
  font-size: 12.5px;
  font-weight: 650;
}

.icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.tone-blue {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 14%, transparent);
}

.tone-green {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 15%, transparent);
}

.tone-orange {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 15%, transparent);
}

.tone-purple {
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 14%, transparent);
}

.tone-teal {
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 15%, transparent);
}

.tone-pink {
  color: var(--pink);
  background: color-mix(in srgb, var(--pink) 13%, transparent);
}

/* ---------- Tech stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1080px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
}

.stack-card {
  padding: 26px;
}

.stack-card h3 {
  margin: 18px 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.muted {
  margin: 0 0 18px;
  color: var(--label-2);
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label-2);
  font-size: 13.5px;
  font-weight: 650;
}

.chip.hot {
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  color: var(--tint);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--tint);
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover span {
  text-decoration: underline;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-text {
  padding: clamp(24px, 3.4vw, 42px);
  font-size: 1.08rem;
}

.about-text p {
  margin: 0 0 16px;
  color: var(--label-2);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text b {
  color: var(--label);
}

.timeline-card {
  padding: clamp(24px, 3.4vw, 42px);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 38px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--blue), var(--purple), var(--pink));
}

.timeline li {
  position: relative;
  padding-bottom: 30px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -34px;
  top: 3px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--tint);
  border-radius: 50%;
  background: var(--card-solid);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tint) 16%, transparent);
}

.tl-tag {
  margin: 0;
  color: var(--tint);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 4px 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.timeline p:not(.tl-tag) {
  margin: 0;
  color: var(--label-2);
}

/* ---------- Contact ---------- */
.contact {
  padding-bottom: clamp(90px, 11vw, 150px);
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 76px) clamp(22px, 5vw, 64px);
  border-radius: var(--radius-lg);
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 20px 44px -16px rgba(94, 92, 230, 0.75);
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0 46px;
  border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--label-3);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer a {
  color: var(--label-2);
  text-decoration: none;
}

.footer a:hover {
  color: var(--label);
}

.colophon {
  flex-basis: 100%;
  font-size: 13px;
}

/* ---------- Legal pages ---------- */
.legal main {
  padding: 130px 0 90px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--tint);
  font-weight: 650;
  text-decoration: none;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.legal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.legal-head h1 {
  margin: 0;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.4rem);
}

.icon.big {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.icon.big svg {
  width: 30px;
  height: 30px;
}

.legal-card {
  margin-bottom: 18px;
  padding: 26px 28px;
}

.legal-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal-card h2 .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.legal-card h2 .icon svg {
  width: 19px;
  height: 19px;
}

.legal-card p {
  margin: 0 0 10px;
  color: var(--label-2);
}

.legal-card a {
  color: var(--tint);
  overflow-wrap: anywhere;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-row svg {
  width: 20px;
  height: 20px;
  color: var(--tint);
}

.provider {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.provider:first-child {
  border-top: 0;
  padding-top: 0;
}

/* ---------- Reveal on scroll (only when JavaScript runs) ---------- */
html.js .reveal {
  opacity: 0;
  translate: 0 30px;
  scale: 0.985;
  transition: opacity 0.9s var(--ease) var(--delay, 0s), translate 0.9s var(--ease) var(--delay, 0s),
    scale 0.9s var(--ease) var(--delay, 0s), transform 0.25s ease, box-shadow 0.3s, border-color 0.3s;
}

html.js .reveal.in {
  opacity: 1;
  translate: none;
  scale: none;
}

.d2 {
  --delay: 0.08s;
}

.d3 {
  --delay: 0.16s;
}

.d4 {
  --delay: 0.24s;
}

/* ---------- Motion ---------- */
@keyframes rise {
  from {
    opacity: 0.01;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent);
  }
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes sheen {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@keyframes beam {
  0%,
  100% {
    transform: translateY(-62px);
  }
  50% {
    transform: translateY(62px);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal {
    opacity: 1;
    translate: none;
    scale: none;
  }
}
