/* ============================================================
   SONJEO GLOBAL — Interior pages (verticals + legal)
   Builds on command.css + light.css tokens.
   ============================================================ */

.scrollbar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--gold); z-index: 40; transition: width .08s linear; }

/* breadcrumb */
.crumb { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.crumb a { color: rgba(255,255,255,0.7); transition: color .2s; }
.crumb a:hover { color: #fff; }
.crumb .sep { opacity: 0.5; }

/* ---- page hero + WORLD as a fixed backdrop for the whole page ---- */
.worldstage { position: relative; }
.phero { position: relative; isolation: isolate; height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 130px var(--gutter) clamp(54px,7vw,90px); overflow: hidden; }
/* The PHOTO is the world: a fixed, full-page cinematic backdrop driven by the scroll camera. */
.phero .pbg { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
body[data-world] .phero .pbg { display: block; filter: saturate(0.96) contrast(1.07) brightness(0.82); }
/* full-page grading scrim, sits between the media and the atmosphere canvas */
body[data-world] .worldscrim { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(150% 120% at 58% 36%, rgba(8,11,18,0) 0%, rgba(8,11,18,0.12) 60%, rgba(6,8,13,0.50) 100%),
    linear-gradient(180deg, rgba(8,11,18,0.30) 0%, rgba(8,11,18,0) 24%, rgba(8,11,18,0) 60%, rgba(6,8,13,0.52) 100%); }
.phero .pscene { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,10,14,0.34) 0%, rgba(10,10,14,0.10) 40%, rgba(10,10,14,0.7) 100%); }
.phero .pwrap, .phero .scrollcue { position: relative; z-index: 1; }
.phero .pwrap { transition: opacity .2s linear; }
.phero .scrollcue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phero .scrollcue::after { content: ""; width: 1px; height: 26px; background: linear-gradient(rgba(255,255,255,0.7), transparent); animation: cueline 1.8s var(--ease) infinite; }
@keyframes cueline { 0%{ transform: scaleY(0); transform-origin: top; } 50%{ transform: scaleY(1); transform-origin: top; } 51%{ transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) {
  .phero { height: auto; min-height: 80vh; }
  .phero .scrollcue { display: none; }
}

/* ============================================================
   IMMERSIVE VERTICAL PAGES — content floats through the world
   (scoped to body[data-world]; legal/contact stay light)
   ============================================================ */
body[data-world] { background: #0a0e16; color: rgba(255,255,255,0.82); }
body[data-world] main { position: relative; z-index: 1; }
body[data-world] .psection { background: transparent; }
body[data-world] .label { color: var(--gold-lt); }
body[data-world] .label::before { background: var(--gold-lt); }
body[data-world] .pgridlead .plead { color: #fff; text-shadow: 0 2px 34px rgba(0,0,0,0.5); }
body[data-world] .pbody p { color: rgba(255,255,255,0.84); }
body[data-world] .pcaps { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); }
body[data-world] .pcaps .cap { background: rgba(12,16,24,0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body[data-world] .pcaps .cap h3 { color: #fff; }
body[data-world] .pcaps .cap p { color: rgba(255,255,255,0.72); }
body[data-world] .pcaps .cap .cn { color: var(--gold-lt); }
body[data-world] .pspecs { border-color: rgba(255,255,255,0.18); }
body[data-world] .pspecs > div { border-color: rgba(255,255,255,0.12); }
body[data-world] .pspecs dt { color: rgba(255,255,255,0.5); }
body[data-world] .pspecs dd { color: #fff; }
body[data-world] .others a { background: rgba(12,16,24,0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(255,255,255,0.12); }
body[data-world] .others a h4 { color: #fff; }
body[data-world] .others a .on { color: rgba(255,255,255,0.5); }
body[data-world] .others a:hover { border-color: var(--gold); }
body[data-world] .pcta { background: rgba(10,12,18,0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body[data-world] .nav.scrolled { background: rgba(10,12,18,0.62); border-color: rgba(255,255,255,0.1); }
body[data-world] .nav .links a { color: rgba(255,255,255,0.72); }
body[data-world] .nav .links a:hover { color: var(--gold-lt); }
body[data-world] .nav .logo .wm { color: #fff; }
body[data-world] .menu-btn { color: #fff; }
body[data-world] .footer { background: rgba(8,10,14,0.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(255,255,255,0.1); position: relative; z-index: 1; }
body[data-world] .footer p, body[data-world] .footer ul a, body[data-world] .footer .base { color: rgba(255,255,255,0.6); }
body[data-world] .footer .about .wm { color: #fff; }
body[data-world] .footer h4 { color: rgba(255,255,255,0.5); }
body[data-world] .footer ul a:hover { color: var(--gold-lt); }

/* content spaced a screen apart, placed at varied positions over the world */
.phero .pbg { will-change: transform; }
body[data-world] .psection { min-height: 94vh; display: flex; align-items: center; }
body[data-world] .psection .pwrap { width: 100%; }
body[data-world] .psection:nth-of-type(1) .pwrap { max-width: 1060px; margin: 0 auto 0 0; }
body[data-world] .psection:nth-of-type(2) .pwrap { max-width: 720px; margin: 0 0 0 auto; }
body[data-world] .psection:nth-of-type(3) .pwrap { max-width: 920px; margin: 0 auto; }
body[data-world] .pcta { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) {
  body[data-world] .psection { min-height: 80vh; }
  body[data-world] .psection .pwrap { margin: 0 !important; max-width: none !important; }
}

/* ---- per-vertical engagement process band ---- */
.pflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 50px; background: var(--border); border: 1px solid var(--border); }
.pflow .pstep { background: var(--surface); padding: 32px 24px; }
.pflow .pn { font-family: var(--font-mono); color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; }
.pflow h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--heading); margin: 14px 0 10px; }
.pflow p { color: var(--body); font-size: 0.9rem; line-height: 1.6; margin: 0; }
body[data-world] .pflow { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.12); }
body[data-world] .pflow .pstep { background: rgba(12,16,24,0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body[data-world] .pflow .pn { color: var(--gold-lt); }
body[data-world] .pflow h4 { color: #fff; }
body[data-world] .pflow p { color: rgba(255,255,255,0.72); }
@media (max-width: 760px) { .pflow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .pflow { grid-template-columns: 1fr; } }
/* 3D scroll-reactive content */
body[data-world] .psection .pwrap { will-change: transform; transform-style: preserve-3d; }
body[data-world] main { perspective: 1400px; }
.phero .pwrap { max-width: var(--max-width); margin: 0 auto; width: 100%; }
.phero .peyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-lt); display: inline-flex; align-items: center; gap: 12px; margin: 22px 0 18px; }
.phero .peyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-lt); }
.phero h1 { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.0; letter-spacing: -0.015em; max-width: 18ch; }
.phero .plede { margin-top: 22px; max-width: 56ch; color: rgba(255,255,255,0.82); font-size: var(--text-body-lg); line-height: 1.6; }
.phero .pplace { margin-top: 20px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.62); }

/* ---- content ---- */
.pwrap { max-width: var(--max-width); margin: 0 auto; padding-inline: var(--gutter); }
.psection { padding-block: var(--section-pad); }
.psection.alt { background: var(--void); }
.pgridlead { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px,5vw,80px); align-items: start; }
.pgridlead .plead { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h2); color: var(--heading); line-height: 1.14; }
.pgridlead .pbody p { color: var(--body); font-size: 1.05rem; line-height: 1.7; margin: 0 0 18px; }
.pgridlead .pbody p:last-child { margin-bottom: 0; }

/* capabilities */
.pcaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px; background: var(--border); border: 1px solid var(--border); }
.pcaps .cap { background: var(--surface); padding: 36px clamp(22px,2.4vw,32px); }
.pcaps .cap .cn { font-family: var(--font-mono); color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; }
.pcaps .cap h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--heading); margin: 14px 0 12px; }
.pcaps .cap p { color: var(--body); font-size: 0.95rem; line-height: 1.62; margin: 0; }

/* specs */
.pspecs { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--border); }
.pspecs > div { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.pspecs dt { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pspecs dd { margin: 0; color: var(--heading); font-size: 1rem; font-weight: 500; }

/* other verticals strip */
.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px; }
.others a { display: block; border: 1px solid var(--border); padding: 22px 20px; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.others a:hover { border-color: var(--gold); transform: translateY(-4px); }
.others a .on { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.1em; }
.others a h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--heading); margin: 10px 0 0; line-height: 1.1; }

/* page CTA band */
.pcta { background: #131319; text-align: center; padding: clamp(80px,12vw,150px) var(--gutter); }
.pcta h2 { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: var(--text-display); margin: 0 0 18px; }
.pcta p { color: rgba(255,255,255,0.72); max-width: 44ch; margin: 0 auto 32px; font-size: var(--text-body-lg); }
.pcta .label { justify-content: center; color: var(--gold-lt); margin-bottom: 22px; }
.pcta .label::before { background: var(--gold-lt); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-head { padding: calc(var(--topbar, 64px) + 60px) var(--gutter) 0; }
.legal-head .pwrap { padding-inline: 0; }
.legal-head h1 { font-family: var(--font-display); font-weight: 700; color: var(--heading); font-size: clamp(2.2rem,4.5vw,3.6rem); margin: 16px 0 0; }
.legal-head .meta { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; }
.legal-head .rule { height: 1px; background: var(--border); margin-top: 32px; }

.legal { padding: clamp(40px,6vw,70px) var(--gutter) var(--section-pad); }
.legal .pwrap { max-width: 820px; padding-inline: 0; }
.legal .intro { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.4; color: var(--heading); margin: 0 0 8px; }
.legal section { margin-top: 40px; scroll-margin-top: 90px; }
.legal h2 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: flex; gap: 12px; }
.legal h2 .ln { color: var(--muted); }
.legal h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; color: var(--heading); margin: 22px 0 8px; }
.legal p, .legal li { color: var(--body); font-size: 0.97rem; line-height: 1.72; }
.legal p { margin: 12px 0; }
.legal ul, .legal ol { margin: 12px 0; padding-left: 22px; }
.legal li { margin: 8px 0; }
.legal strong { color: var(--heading); }
.legal .callout { border: 1px solid var(--border); border-left: 2px solid var(--gold); background: var(--surface-2); padding: 18px 22px; margin: 22px 0; font-size: 0.92rem; color: var(--body); }

/* legal table of contents */
.legal-toc { position: sticky; top: 84px; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(30px,4vw,64px); align-items: start; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; border-left: 1px solid var(--border); }
.legal-toc a { display: block; padding: 2px 0 2px 16px; margin-left: -1px; border-left: 2px solid transparent; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--heading); border-color: var(--gold); }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font-family: var(--font-sans); font-size: 0.95rem; color: var(--heading);
  background: var(--surface); border: 1px solid var(--line, var(--border)); border-radius: 2px; padding: 13px 14px; transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-aside .row { padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-aside .k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-aside .v { color: var(--heading); font-size: 1.02rem; margin-top: 6px; }
.contact-note { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 4px; }

@media (max-width: 900px) {
  .pgridlead, .legal-layout, .contact-grid { grid-template-columns: 1fr; }
  .pcaps, .others { grid-template-columns: 1fr 1fr; }
  .legal-toc { position: static; }
  .legal-toc ul { flex-flow: row wrap; border-left: 0; }
}
@media (max-width: 560px) {
  .pcaps, .others { grid-template-columns: 1fr; }
  .pspecs > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- touch + responsive polish for interior pages ---- */
.others a:active, .btn:active { transform: translateY(1px); }
.others a:active { border-color: var(--gold); }
.nav .links a, .crumb a, .legal-toc a { min-height: 40px; display: inline-flex; align-items: center; }
.menu-btn { min-height: 44px; min-width: 44px; }
img { max-width: 100%; }
@media (hover: none) {
  .phero { background-attachment: scroll; }
  .pcta, .legal { -webkit-tap-highlight-color: transparent; }
}
@media (max-width: 760px) {
  .phero { min-height: 56vh; min-height: 56svh; }
  .phero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .pgridlead { gap: 24px; }
}
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .legal h1, .legal-head h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
