/* BT LABS, direction B: Deep field. The titanium emblem in a dark-blue void, a hex lattice
 * behind it that lights up where you point. Blue-white (arc) is the studio's signal; gold
 * belongs to the Epic Cash wallet and appears only inside its panel. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('montserrat-latin.woff2') format('woff2');
}

:root {
  --void: #02040a;
  --navy: #0b1530;
  --surface: #0e162b;
  --line: #1c2537;
  --line-strong: #2b3650;
  --ti-light: #dfe5ee;
  --ti: #8e98a8;
  --arc: #7fb2ff;
  --arc-hi: #a6c9ff;
  --gold: #f6d471;
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max: 1760px;
  --gutter: clamp(16px, 4.5vw, 96px);
  --band: clamp(72px, 11vh, 176px);
  --r: 16px;
  --r-sm: 8px;
  --ctl: 48px;
  /* the lattice tile (pointy-top hexes, circumradius 24px), drawn as a data URI */
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='41.569' height='72' viewBox='0 0 41.569 72'%3E%3Cpath d='M20.785 0L41.569 12V36L20.785 48L0 36V12ZM20.785 48V72' fill='none' stroke='%237fb2ff' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--ti-light);
  font-family: var(--font-body);
  font-size: clamp(17px, 0.42vw + 11.5px, 20px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--arc); text-decoration: none; touch-action: manipulation; }
button { font: inherit; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--arc); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 20;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--arc); color: var(--void); font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h2 {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(36px, 3.7vw, 80px); color: var(--ti-light); text-wrap: balance;
}
h3 {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ti-light);
}

/* ---- Header: floats over the hero ------------------------------------------------------ */

.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.top-in {
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ti-light); }
.brand img { width: 32px; height: 32px; }
.brand-name {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(15px, 0.3vw + 11px, 19px);
  letter-spacing: 0.24em; padding-top: 1px;
}
.nav-wide ul { display: flex; gap: clamp(4px, 1vw, 20px); }
.nav-wide a, .nav-menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ti-light); font-size: clamp(15px, 0.25vw + 11.5px, 18px); font-weight: 500;
  border-radius: 6px;
}
.nav-wide a:hover, .nav-menu a:hover { color: var(--arc); }

.nav-menu { display: none; position: relative; }
.nav-menu summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--ti-light); font-weight: 600; font-size: 15px; cursor: pointer; list-style: none;
  background: rgba(2, 4, 10, 0.6);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after {
  /* three hairlines, crossed when open */
  content: ''; width: 14px; height: 9px;
  border-block: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.nav-menu[open] summary { border-color: var(--arc); }
.nav-menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
}
.nav-menu nav a { display: flex; width: 100%; min-height: 48px; }

/* ---- Hero: art slot B1 is the whole background ------------------------------------------ */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(58% 52% at 50% 40%, var(--navy) 0%, #050b1c 48%, var(--void) 100%);
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.lattice, .lattice-css { position: absolute; inset: 0; width: 100%; height: 100%; }
.lattice-css {
  /* the static lattice for no-JS and before the canvas draws */
  background-image: var(--hex); background-size: 51.96px 90px; background-position: center top;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(70% 72% at 50% 42%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 72% at 50% 42%, #000 20%, transparent 100%);
}
.lattice { opacity: 0; }
.lattice.is-on { opacity: 1; }
.hero-art.is-live .lattice-css { display: none; }

.hero-in {
  position: relative; width: 100%; max-width: var(--max);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(84px, 11vh, 132px) var(--gutter) clamp(56px, 9vh, 120px);
}
.emblem {
  width: min(720px, 50svh, 92vw);
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  animation: emblem-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.emblem img { width: 100%; }
@keyframes emblem-in { from { opacity: 0; } to { opacity: 1; } }

.wordmark {
  margin-top: calc(min(720px, 50svh, 92vw) * -0.09);
  font-family: var(--font-head); font-weight: 600; line-height: 1;
  font-size: clamp(56px, 7vw, 150px); letter-spacing: 0.24em; text-indent: 0.24em; white-space: nowrap;
  background: linear-gradient(180deg, #f6f7fa 0%, #d3d9e3 55%, #9aa3b4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-line {
  margin-top: clamp(16px, 2.4vh, 32px);
  font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
  font-size: clamp(19px, 1.55vw, 34px); color: var(--ti-light); text-wrap: balance;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4.5vh, 56px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--ctl); padding: 0 24px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: transparent; color: var(--ti-light);
  font-family: var(--font-body); font-weight: 600; font-size: clamp(15px, 0.2vw + 12.5px, 18px);
  line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-arc {
  background: var(--arc); border-color: var(--arc); color: var(--void);
  box-shadow: 0 0 40px -8px rgba(127, 178, 255, 0.55);
}
.btn-arc:hover { background: var(--arc-hi); border-color: var(--arc-hi); }
.btn-quiet { background: rgba(2, 4, 10, 0.5); }
.btn-quiet:hover { background: rgba(127, 178, 255, 0.08); border-color: #46557a; }
.btn:active { transform: translateY(1px); }


/* ---- Bands ------------------------------------------------------------------------------ */

.band { position: relative; padding: var(--band) 0; border-top: 1px solid var(--line); }
.band-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 48px;
  margin-bottom: clamp(32px, 5vh, 72px);
}
.band-head p { color: var(--ti); max-width: 60ch; }

: var(--font-head); 

/* Projects: two showcases, real images first, a name, one line and links. */
.projects { padding-top: clamp(40px, 6vh, 96px); }
.show { display: grid; gap: clamp(20px, 2.4vw, 40px); }
.show + .show { margin-top: clamp(64px, 9vh, 144px); padding-top: clamp(48px, 7vh, 112px); border-top: 1px solid var(--line); }
.art-epic, .art-jai {
  overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #06070c;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
}
.art-epic img { width: 100%; }
.show-text { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 14px; }
.show-text h2 { font-size: clamp(30px, 2.8vw, 60px); }
.show-line { grid-column: 1 / -1; color: var(--ti); font-size: clamp(17px, 1.1vw, 24px); max-width: 60ch; }
.links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 0 -10px; }
.links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--ti-light); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.3em;
}
.links a:hover { color: var(--arc); text-decoration-color: currentColor; }

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 12px; border-radius: 999px; font-size: 0.82em; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.tag-live { color: var(--gold); background: rgba(246, 212, 113, 0.1); border: 1px solid transparent; }
.tag-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 1px rgba(246, 212, 113, 0.55); }
.tag-wip { color: var(--ti-light); border: 1px solid var(--line-strong); }
.tag-wip .ring { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--arc); }


/* JaiTalk: the live site in a browser frame, the whole frame is the link */
.site-frame { display: block; color: inherit; background: #0a0d18; }
.site-frame:hover img { opacity: 0.94; }
.site-bar {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: #121a30; border-bottom: 1px solid var(--line-strong);
}
.site-bar::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); box-shadow: 16px 0 0 var(--line-strong), 32px 0 0 var(--line-strong); margin-right: 32px; }
.site-url {
  flex: 1; max-width: 420px; margin: 0 auto; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--void); color: var(--ti); font-size: 13px;
}
.site-frame img { width: 100%; }
.show { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.show .show-text { align-content: center; }

/* icon links: X and LinkedIn, the mark only in the header, mark and name elsewhere */
.x-mark, .li-mark { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
.x-link { padding: 0 10px; }
.nav-menu a .x-mark, .nav-menu a .li-mark { margin-right: 0.55em; vertical-align: -0.12em; display: inline-block; }





/* ---- Smaller screens -------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .show { grid-template-columns: 1fr; }
  .brief-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-wide { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 640px) {
  :root { --band: 64px; }
  .actions { width: 100%; flex-direction: column; }
  .actions .btn { width: 100%; }
  .foot-in { justify-content: center; text-align: center; }
  .follow a { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .emblem { animation: none; }
  .btn { transition: none; }
}

/* The close: one line, four quiet links, the legal row, over the faint lattice. */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.tex {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--hex); background-size: 41.569px 72px; opacity: 0.09;
  -webkit-mask-image: radial-gradient(60% 90% at 50% 100%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 90% at 50% 100%, #000 0%, transparent 100%);
}
.foot-close {
  position: relative; z-index: 1; text-align: center;
  padding-top: clamp(80px, 12vh, 176px); padding-bottom: clamp(56px, 8vh, 112px);
}
.close-line { font-size: clamp(30px, 3.2vw, 68px); font-weight: 600; letter-spacing: -0.025em; }
.follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: clamp(24px, 3.5vh, 44px); }
.follow a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(2, 4, 10, 0.5);
  color: var(--ti-light); font-weight: 500; font-size: clamp(15px, 0.2vw + 12.5px, 18px);
  transition: border-color 0.15s, color 0.15s;
}
.follow a:hover { border-color: var(--arc); color: var(--arc); }
.ico { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
.ico-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.foot-in {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  padding-top: 20px; padding-bottom: 28px; color: var(--ti); font-size: 0.88em;
}
.foot-in::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; border-top: 1px solid var(--line); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ti-light); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.25em; }
.foot a:hover { color: var(--arc); text-decoration-color: currentColor; }
.follow a { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .follow a { transition: none; } }
