/* Joyavista holding page — shared layout & type (used by every concept build) */
:root {
  --joya-dark: #3B3B36;
  --joya-light: #FBFAF9;
  --joya-green: #1DCF97;
  --ink: #FBFAF9;
  --ink-soft: rgba(251, 250, 249, 0.66);
  --ink-faint: rgba(251, 250, 249, 0.38);
  --rule: rgba(251, 250, 249, 0.14);
  --void: #0B0B0A;          /* moody base, derived from Joya Dark */
  --void-2: #151513;
  --gutter: clamp(16px, 4vw, 56px);
  --font: 'Momo Trust Display', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--joya-green); color: var(--void); }
a { color: inherit; }

/* Fixed visual layer (each concept draws into #stage) */
#stage { position: fixed; inset: 0; z-index: 0; }
#stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(11,11,10,.85), transparent 60%),
    linear-gradient(to bottom, rgba(11,11,10,.55), transparent 22%, transparent 70%, rgba(11,11,10,.6));
}
.scroll-dim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: var(--void); opacity: 0; }
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* Top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(var(--gutter) * .6) var(--gutter);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.wordmark { display: block; width: clamp(128px, 14vw, 190px); line-height: 0; }
.wordmark svg { width: 100%; height: auto; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
  padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px;
  background: rgba(11,11,10,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.status .short { display: none; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--joya-green); box-shadow: 0 0 12px var(--joya-green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Content */
#content { position: relative; z-index: 5; pointer-events: none; }
#content a, #content button { pointer-events: auto; }
.panel { min-height: 100vh; min-height: 100svh; padding: calc(var(--gutter) * 2.4) var(--gutter) var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; }
.hero { justify-content: flex-end; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--joya-green); }
.headline { font-size: clamp(42px, 5.4vw, 96px); line-height: .98; letter-spacing: -.025em; font-weight: 400; }
.headline span { white-space: nowrap; }
@media (max-width: 700px) { .headline span { white-space: normal; } }
.headline span { display: block; }
.headline span:last-child { color: transparent; -webkit-text-stroke: 1px rgba(251,250,249,.85); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(22px, 3vw, 40px); flex-wrap: wrap; }
.intro { max-width: 46ch; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; color: var(--ink-soft); }
.hint { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.hint b { font-weight: 400; display: inline-block; width: 1px; height: 34px; background: linear-gradient(var(--ink-faint), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.cta {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  font-size: 15px; letter-spacing: .02em; color: var(--void); background: var(--ink);
  padding: 16px 22px; border-radius: 999px; transition: background .3s, transform .3s;
}
.cta svg { width: 18px; height: 14px; transition: transform .3s; }
.cta:hover { background: var(--joya-green); }
.cta:hover svg { transform: translateX(4px); }
.cta:focus-visible { outline: 2px solid var(--joya-green); outline-offset: 4px; }

.section-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: clamp(24px, 4vw, 48px); display: flex; gap: 14px; align-items: center; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.services { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.services li { padding: 26px 24px 30px 0; border-right: 1px solid var(--rule); padding-left: 24px; }
.services li:first-child { padding-left: 0; }
.services li:last-child { border-right: 0; }
.services .n { font-size: 11px; letter-spacing: .18em; color: var(--joya-green); display: block; margin-bottom: 40px; }
.services li { transition: background .5s; }
.services li.focus h3 { color: var(--joya-green); }
.services h3 { transition: color .4s; font-weight: 400; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 12px; }
.services p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); max-width: 26ch; }

.principle { font-size: clamp(34px, 6vw, 96px); line-height: 1; letter-spacing: -.025em; max-width: 16ch; }
.principle em { font-style: normal; color: var(--joya-green); }
.principle .ai { display: block; color: transparent; -webkit-text-stroke: 1px rgba(251,250,249,.8); }

.close { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.founder { font-size: clamp(17px, 1.6vw, 24px); line-height: 1.4; color: var(--ink-soft); max-width: 40ch; }
.founder strong { font-weight: 400; color: var(--ink); }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact .cta-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--joya-green); }
.contact .mail-big { font-size: clamp(24px, 3vw, 44px); line-height: 1.05; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; border-bottom: 2px solid transparent; transition: border-color .3s; }
.contact .mail-big:hover { border-color: var(--joya-green); }
.contact button.cta { border: 0; cursor: pointer; font-family: var(--font); }
.contact .mail { font-size: 14px; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
.contact .mail:hover { color: var(--ink); border-color: var(--joya-green); }
.foot { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 8vw, 110px); padding-top: 20px; border-top: 1px solid var(--rule); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.legal { margin-top: 14px; font-size: 10.5px; line-height: 1.5; letter-spacing: .04em; color: var(--ink-faint); max-width: 90ch; }
.foot .dia { width: 16px; height: auto; vertical-align: -2px; margin-right: 8px; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
body.intro-pending .hero .rv { opacity: 0 !important; transform: translateY(24px) !important; }

/* Mobile */
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services li { border-right: 0; padding: 22px 16px 24px 0 !important; border-bottom: 1px solid var(--rule); }
  .services li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .services li:nth-child(even) { padding-left: 16px !important; }
  .services .n { margin-bottom: 22px; }
  .close { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .status .long { display: none; }
  .status .short { display: inline; }
  .status { padding: 8px 12px; letter-spacing: .14em; }
  .services { grid-template-columns: 1fr; }
  .services li:nth-child(odd) { border-right: 0; }
  .services li:nth-child(even) { padding-left: 0 !important; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hint { display: none; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .status i, .hint b { animation: none; }
  .rv { transition: none; }
}

/* ---------- No-JavaScript / crawler view: the pre-rendered copy (hidden when JS runs) ---------- */
#prerender { position: relative; z-index: 5; max-width: 880px; padding: 48px var(--gutter) 64px; display: flex; flex-direction: column; gap: 40px; line-height: 1.5; }
#prerender h1 { font-size: clamp(34px, 6vw, 72px); line-height: 1; font-weight: 400; letter-spacing: -.02em; }
#prerender h2 { font-size: clamp(24px, 3.4vw, 40px); font-weight: 400; margin-bottom: 14px; }
#prerender h3 { font-size: 18px; font-weight: 400; color: var(--joya-green); }
#prerender ul { list-style: none; display: grid; gap: 18px; margin-top: 22px; }
#prerender p { color: var(--ink-soft); }
#prerender a { color: var(--ink); }
#prerender footer p { font-size: 12px; color: var(--ink-faint); }
