/* Vision Studio — visual layer (2026 refresh).
   Dark lacquer + gold, editorial serif, glass surfaces, 3D luopan hero,
   scroll reveals, tilt + spotlight cards. Motion respects prefers-reduced-motion. */

@view-transition { navigation: auto; }

:root {
  --bg: #0d0b0a;
  --bg-elev: #17130f;
  --glass: rgba(28, 23, 18, 0.55);
  --ink: #f5efe5;
  --muted: #b3a999;
  --line: rgba(245, 239, 229, 0.10);
  --accent: #d4b47c;
  --accent-2: #8fb39c;
  --rose: #e48aa0;
  --ember: #f0a35c;
  --jade: #6fb59a;
  --glow: rgba(212, 180, 124, 0.35);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(212,180,124,0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(111,181,154,0.10), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(228,138,160,0.08), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}
/* film grain */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
#vs-stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.wrap { width: min(100% - 2rem, 1160px); }

/* ---------- header ---------- */
.site-header {
  background: rgba(13, 11, 10, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.brand span { font-family: var(--display); font-size: 1.12rem; letter-spacing: .01em; }
.brand img { box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(212,180,124,.25); }
nav a { position: relative; padding: .2rem 0; transition: color .2s; }
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
nav a:hover::after, nav a[aria-current="page"]::after { transform: scaleX(1); }
nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .site-header .bar { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  }
  .site-header nav { display: none; width: 100%; flex-direction: column; gap: .2rem; padding: .3rem 0 .8rem; }
  .site-header.open nav { display: flex; }
  .site-header nav a { padding: .55rem .2rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
}

/* ---------- buttons ---------- */
.cta, button[type=submit] {
  position: relative; overflow: hidden; border-radius: 999px; padding: .65rem 1.3rem;
  background: linear-gradient(135deg, #e8cf9c, var(--accent) 45%, #a8854d);
  color: #1a1209; box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cta:hover, button[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,.4); color: #1a1209; }
.cta::after, button[type=submit]::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transition: transform .8s var(--ease);
}
.cta:hover::after, button[type=submit]:hover::after { transform: translateX(120%); }
.cta.secondary {
  background: rgba(245,239,229,0.04); color: var(--ink); border: 1px solid rgba(245,239,229,.18);
  box-shadow: none; backdrop-filter: blur(8px);
}
.cta.secondary:hover { color: var(--ink); border-color: var(--accent); }
.cta .arr { display: inline-block; margin-left: .45rem; transition: transform .25s var(--ease); }
.cta:hover .arr { transform: translateX(4px); }

/* ---------- surfaces ---------- */
.panel, .glass {
  background: linear-gradient(160deg, rgba(40,33,26,.7), rgba(20,16,13,.6));
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
input, select { border-radius: 12px; background: rgba(8,7,6,.7); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212,180,124,.15); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; color: var(--accent);
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.grad-text {
  background: linear-gradient(100deg, #f7e7c6 0%, var(--accent) 35%, #f3c6a8 65%, var(--accent-2) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* ---------- tilt + spotlight cards ---------- */
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease); will-change: transform; }
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212,180,124,.16), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(212,180,124,.65), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }

/* ---------- phone mockup ---------- */
.phone {
  position: relative; width: 250px; aspect-ratio: 9 / 19.2; border-radius: 40px; padding: 10px;
  background: linear-gradient(145deg, #2b241d, #0b0908);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.9), 0 0 60px -10px var(--glow);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%);
  background: #050404; border-radius: 20px; z-index: 2; }
.phone img, .phone .screen { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; display: block; background: #f6f1ea; }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: .9rem 0; margin: 3.2rem 0 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 2.6rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { white-space: nowrap; color: var(--muted); font-size: .95rem; letter-spacing: .04em; }
.marquee b { font-family: "Noto Serif SC", "Songti SC", serif; color: var(--accent); font-size: 1.25rem; margin-right: .45rem; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- footer ---------- */
.site-footer { margin-top: 3rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.foot-grid { display: grid; gap: 1.6rem; grid-template-columns: 1.4fr repeat(4, 1fr); padding: 1rem 0 .5rem; }
.foot-grid h4 { font-family: var(--display); color: var(--ink); font-size: 1rem; margin: 0 0 .6rem; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: .35rem 0; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-note { font-size: .82rem; opacity: .8; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- tool page header glyph ---------- */
.page-glyph {
  position: absolute; right: -1rem; top: -1.5rem; font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 700;
  font-size: clamp(7rem, 18vw, 13rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(212,180,124,.22);
  pointer-events: none; user-select: none; z-index: -1;
}
.prose { position: relative; }
@media (min-width: 1100px) {
  .page-glyph { right: -26rem; top: -.5rem; font-size: 15rem; -webkit-text-stroke-color: rgba(212,180,124,.32);
    animation: glyph-in 1.6s var(--ease) both; }
}
@media (max-width: 1099px) { .page-glyph { opacity: .5; } }
@keyframes glyph-in { from { opacity: 0; transform: translateY(30px); } }

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

/* consent checkbox on chart forms */
.consent { display: flex; gap: .65rem; align-items: flex-start; margin: .4rem 0 1rem; padding: .8rem .9rem; border-radius: 14px; cursor: pointer;
  background: rgba(212,180,124,.08); border: 1px solid rgba(212,180,124,.25); color: #e7dfd2; font-size: .9rem; line-height: 1.5; max-width: 34rem; }
.consent input { width: 1.1rem; height: 1.1rem; margin: .18rem 0 0; flex: none; accent-color: #d4b47c; }
.consent strong { color: var(--accent); }
