/*
//  site.css
//  Bleek Vision Website
//
//  Created by Shabaka Malik Banks on 11/16/26.
//  Copyright © 2026 Bleek Vision LLC. All rights reserved.
//
//  Studio pages (home, legal, support, Cipher shell). Minimal layout: a
//  WebGL light field (field.js) behind frosted-glass panels.
*/

:root {
  --bg: #0E1015;
  --ink: #E4E8EF;
  --white: #F1F3F7;
  --silver: #C8CDD7;
  --mute: #B4BCC8;       /* 10:1 on --bg; 4.5:1+ even where a beam passes behind */
  --mute-deep: #4E5A6B;
  --accent: #89A1C3;     /* periwinkle — the one studio accent */
  --live: #7EC8A0;
  --calmaxx: #3DFF6B;
  --glass: rgba(23, 26, 32, 0.55);
  --glass-hi: rgba(28, 32, 40, 0.72);
  --rule: rgba(214, 219, 227, 0.09);
  --rule-hi: rgba(214, 219, 227, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --display: "Outfit", var(--font);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { background: var(--bg); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10000; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ─── Light field ─── */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#field.field--flat { background: radial-gradient(70% 55% at 72% 18%, rgba(137,161,195,.22), transparent 70%), var(--bg); }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.top, main, .foot { position: relative; z-index: 2; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ─── Top bar ─── */
.top { padding: 22px 0; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { font-family: var(--display); font-size: 15px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.mark b { font-weight: 800; }
.mark span { font-weight: 300; letter-spacing: .22em; color: var(--accent); }
.mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.top__links { display: flex; align-items: center; gap: 28px; font-size: 13.5px; color: var(--mute); }
.top__links a { transition: color .2s var(--ease); }
.top__links a:hover { color: var(--ink); }
.pill-sm { font-size: 12.5px; padding: 8px 15px; border-radius: 99px; background: var(--accent); color: var(--bg) !important; font-weight: 600; white-space: nowrap; }
.pill-sm:hover { background: #A4B8D4; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 99px; border: 0;
  font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn--solid { background: var(--white); color: var(--bg); }
.btn--solid:hover { background: #fff; }
.btn--glass { background: var(--glass); color: var(--ink); border: 1px solid var(--rule-hi); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn--glass:hover { border-color: var(--accent); }

/* ─── Hero ─── */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 40px; padding-top: 110px; }
.hero h1 { font-family: var(--display); font-size: clamp(64px, 10.5vw, 148px); line-height: .86; letter-spacing: -.045em; }
.hero h1 b { display: block; font-weight: 800; color: var(--white); }
.hero h1 span { display: block; font-weight: 300; letter-spacing: -.02em; color: var(--accent); }
.hero__tag { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.18; letter-spacing: -.015em; max-width: 15ch; padding-bottom: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 52px; }
.fine { margin-top: 16px; font-size: 12.5px; color: var(--silver); }
.fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mute-deep); }

/* ─── Glass surfaces ─── */
.feature, .panel {
  background: var(--glass); border: 1px solid var(--rule-hi);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

/* ─── New release feature (CalMaxx) ─── */
.feature {
  margin-top: 84px; border-radius: 28px; padding: 36px;
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; align-items: center;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.7);
  scroll-margin-top: 24px;
}
.tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--silver); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--calmaxx); box-shadow: 0 0 10px var(--calmaxx); }
.feature__logo { margin-top: 18px; }
.feature__logo img { display: block; width: min(280px, 100%); height: auto; }
.feature__sub { margin-top: 14px; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.015em; color: var(--white); }
.feature__desc { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--mute); max-width: 46ch; }

/* second+ feature panels stack with a smaller gap */
.feature + .feature { margin-top: 24px; }
.feature--flip { grid-template-columns: 1fr minmax(220px, 300px); }
.feature--flip .feature__media { order: 2; }
.shot { width: 100%; aspect-ratio: 660 / 1434; max-height: 560px; border-radius: 22px; overflow: hidden; border: 1px solid var(--rule-hi); background: #F3EDE2; margin: 0 auto; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.feature__title { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -.035em; color: var(--white); }
.feature__meta { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--mute); }
.feature__cta { margin-top: 26px; }
.tag--live i { background: var(--live); box-shadow: 0 0 10px var(--live); }

.cmx { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cmx__frame { position: relative; width: 100%; aspect-ratio: 1080 / 1910; border-radius: 22px; overflow: hidden; background: #050806; border: 1px solid var(--rule-hi); }
.cmx__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmx__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.cmx__caption {
  position: absolute; left: 0; right: 0; top: 7%; text-align: center; pointer-events: none;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.8);
}
.cmx__pause { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(5,8,6,.6); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cmx__pause svg { width: 16px; height: 16px; fill: currentColor; }
.cmx__pause .i-play { display: none; }
.cmx__pause[aria-pressed="true"] .i-play { display: block; }
.cmx__pause[aria-pressed="true"] .i-pause { display: none; }
.cmx__picker { display: flex; gap: 8px; }
.cmx__pick {
  width: 46px; height: 46px; border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid var(--rule-hi); background: var(--glass-hi);
  transition: border-color .2s var(--ease), transform .15s var(--ease);
}
.cmx__pick img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; display: block; }
.cmx__pick[aria-pressed="true"] { border-color: var(--calmaxx); }
.cmx__pick:hover { border-color: rgba(61,255,107,.6); }
.cmx__pick:active { transform: scale(.95); }


/* ─── Split sections ─── */
.split { display: grid; grid-template-columns: 1fr 1.45fr; gap: 56px; padding: 96px 0; border-top: 1px solid var(--rule); scroll-margin-top: 8px; }
.feature + .split { margin-top: 96px; }
.split h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -.035em; line-height: 1; color: var(--white); }
.lede { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--mute); max-width: 28ch; }
.split__side .btn { margin-top: 26px; }

.panel { border-radius: 22px; padding: 8px 22px 6px; }
.panel__head { padding: 18px 0 14px; border-bottom: 1px solid var(--rule); }
.panel__head h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.panel__head p { margin-top: 4px; font-size: 13px; color: var(--mute); }

.row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.row:last-child { border-bottom: 0; }
.row img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; object-position: 50% 20%; background: var(--glass-hi); }
.row__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; display: flex; gap: 8px; align-items: center; }
.row__name em { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; padding: 3px 7px; border-radius: 99px; background: var(--accent); color: var(--bg); }
.row__desc { margin-top: 2px; font-size: 13px; color: var(--mute); }
.row__go { font-size: 13px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mute-deep); transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
.row:hover .row__go { color: var(--accent); text-decoration-color: var(--accent); }

/* studio */
.panel--studio { padding: 22px; }
.studio { display: flex; align-items: center; gap: 18px; }
.studio__portrait img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 1px solid var(--rule-hi); }
.studio__line { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
.studio__line b { font-weight: 800; color: var(--white); }
.studio__by { margin-top: 6px; font-size: 13px; color: var(--mute); }
.story { margin-top: 20px; border-top: 1px solid var(--rule); padding-top: 16px; }
.story summary { cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.story summary::-webkit-details-marker { display: none; }
.story summary::after { content: "+"; font-weight: 400; color: var(--accent); transition: transform .2s var(--ease); }
.story[open] summary::after { transform: rotate(45deg); }
.story p { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--silver); max-width: 62ch; }
.studio__tools { margin-top: 18px; font-size: 12.5px; color: var(--mute); }

/* ─── Footer ─── */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 12.5px; color: var(--mute); }
.foot__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--ink); }
.foot__motion { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mute-deep); }
.foot__motion:hover { color: var(--ink); }

/* ─── Reveal ─── */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .top__links a:not(.pill-sm) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; gap: 22px; }
  .hero__tag { padding-bottom: 0; }
  .hero__cta { margin-top: 30px; }
  .feature { grid-template-columns: 1fr; margin-top: 56px; padding: 22px; gap: 28px; border-radius: 22px; }
  .cmx__frame { max-width: 300px; }
  .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .shot { max-width: 300px; }
  .split { grid-template-columns: 1fr; gap: 26px; padding: 64px 0; }
  .feature + .split { margin-top: 64px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .feature__cta { width: 100%; }
  .panel { padding: 4px 16px 2px; }
  .panel--studio { padding: 18px 16px; }
  .row { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .row img { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ─── Document pages (privacy, terms, support) ─── */
.doc-head { padding: 96px 0 40px; }
.doc-head .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); }
.doc-head h1 { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: .9; letter-spacing: -.045em; color: var(--white); }
.doc-head .legal-meta { margin-top: 18px; font-size: 13px; color: var(--mute); }
.legal-body {
  max-width: 860px; margin: 0 0 96px; padding: 48px 56px 56px; border-radius: 28px;
  background: var(--glass); border: 1px solid var(--rule-hi);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.legal-back { display: inline-block; margin-bottom: 36px; font-size: 13px; color: var(--mute); }
.legal-back:hover { color: var(--ink); }
.legal-body h2 { margin: 48px 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.025em; color: var(--white); }
.legal-body h2:first-child, .legal-back + h2 { margin-top: 0; }
.legal-body h3 { margin: 28px 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 16px; font-size: 15.5px; line-height: 1.72; color: var(--silver); text-wrap: pretty; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--white); font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { text-decoration: underline; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; color: var(--silver); }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal-body th { color: var(--white); font-weight: 600; }
.legal-divider { border: 0; height: auto; overflow: visible; margin: 56px 0 28px; padding-top: 14px; border-top: 1px solid var(--rule-hi); position: relative; }
.legal-divider[data-label]::after { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--mute); }
.legal-app-tag {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 6px 8px 0; padding: 5px 12px; border-radius: 99px;
  border: 1px solid var(--rule-hi); background: var(--glass-hi);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--accent);
}
@media (max-width: 820px) {
  .doc-head { padding: 56px 0 28px; }
  .legal-body { padding: 28px 22px 32px; border-radius: 22px; margin-bottom: 64px; }
}
@media (max-width: 560px) {
  .legal-body { padding: 24px 18px 28px; }
  .legal-body table { display: block; overflow-x: auto; }
}

/* ─── Cipher page: keeps its own CRT world inside the studio shell ─── */
.cipher-page { background: #030805; }
.cipher-page .top { background: rgba(3, 8, 5, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(140,255,174,.12); }
.cipher-page .foot { background: #030805; }
.shell { position: relative; overflow: hidden; }
/* Cipher's grid items must be allowed to shrink below their content width on phones. */
.cipher-page [class*="__inner"] > *, .cipher-page .cipher-hero > * { min-width: 0; }
