/* Gridline Labs: one stylesheet for every page. The hero is always a dark "screen"; the rest follows the theme. */
:root {
  --bg: #f3eee5;
  --bg-2: #e9e2d6;
  --ink: #15171e;
  --mute: #5d6172;
  --line: rgba(21, 23, 30, 0.12);
  --card: #fbf8f2;
  --lamp: #c9771a;
  --lamp-soft: rgba(201, 119, 26, 0.14);
  --window: #3d5bd9;
  --night: #0b0d14;
  --night-ink: #f2ede4;
  --night-mute: #9095a8;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1016; --bg-2: #141722; --ink: #f2ede4; --mute: #8f94a7; --line: rgba(242, 237, 228, 0.1);
    --card: #151824; --lamp: #f0a646; --lamp-soft: rgba(240, 166, 70, 0.12); --window: #7d97ff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1016; --bg-2: #141722; --ink: #f2ede4; --mute: #8f94a7; --line: rgba(242, 237, 228, 0.1);
  --card: #151824; --lamp: #f0a646; --lamp-soft: rgba(240, 166, 70, 0.12); --window: #7d97ff; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: #f0a646; color: #0b0d14; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--lamp); color: #000; padding: 8px 12px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, backdrop-filter .3s; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav.solid { background: color-mix(in srgb, var(--night) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night-ink); font: 700 18px/1 var(--display); letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--night-mute); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav ul a:hover { color: var(--night-ink); }
@media (max-width: 720px) { .nav ul li:not(:last-child) { display: none; } }

/* hero: always the dark screening room */
.hero { position: relative; height: 100svh; min-height: 620px; background: var(--night); color: var(--night-ink); overflow: hidden;
  background-image: linear-gradient(180deg, transparent 40%, rgba(240,166,70,.08)), repeating-linear-gradient(90deg, rgba(125,151,255,.06) 0 1px, transparent 1px 60px); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .scrim { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 20% 100%, rgba(11,13,20,.92), rgba(11,13,20,0) 60%), linear-gradient(180deg, rgba(11,13,20,.55), transparent 22%); }
.hero .copy { position: absolute; left: 0; right: 0; bottom: clamp(56px, 12vh, 120px); }
.hero h1 { font: 800 clamp(44px, 8.4vw, 118px)/0.92 var(--display); letter-spacing: -0.035em; margin: 18px 0 22px; max-width: 11ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8fa6ff, #f0a646 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { max-width: 34rem; font-size: clamp(17px, 1.6vw, 20px); color: #c9c6c0; margin: 0 0 30px; }
.rec { display: inline-flex; align-items: center; gap: 10px; color: var(--night-mute); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 12px #ff4d3d; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #f0a646; color: #14100a; }
.btn.ghost { border: 1px solid rgba(242,237,228,.24); color: var(--night-ink); }
.btn.ghost:hover { background: rgba(242,237,228,.08); }
/* viewfinder corners */
.vf { position: absolute; inset: 84px var(--gutter) 24px; pointer-events: none; }
.vf b { position: absolute; width: 22px; height: 22px; border: 1.5px solid rgba(242,237,228,.4); }
.vf b:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.vf b:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.vf b:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.vf b:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.vf .tc { position: absolute; right: 34px; top: 2px; color: var(--night-mute); }
.vf .fmt { position: absolute; right: 34px; bottom: 2px; color: var(--night-mute); }
@media (max-width: 720px) { .vf .tc, .vf .fmt { display: none; } }

/* sections */
section.band { padding: clamp(80px, 12vw, 150px) 0; border-top: 1px solid var(--line); }
.eyebrow { color: var(--lamp); margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h2 { font: 750 clamp(34px, 5vw, 64px)/1 var(--display); letter-spacing: -0.03em; margin: 0 0 20px; max-width: 16ch; }
.intro { max-width: 40rem; color: var(--mute); font-size: 18px; margin: 0 0 56px; }

/* shows */
.shows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 820px) { .shows { grid-template-columns: 1fr; } }
.show { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 48px); align-items: end; }
.show > div:last-child { position: relative; z-index: 3; }
@media (max-width: 520px) { .show { grid-template-columns: 1fr; } .stack { width: 72%; margin: 8px auto 0; } }
.stack { position: relative; aspect-ratio: 9 / 16; perspective: 900px; }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 100%; }
.stack img:nth-child(1) { transform: rotate(-6deg) translate(-4%, 2%) scale(.92); filter: brightness(.7); }
.stack img:nth-child(2) { transform: rotate(4deg) translate(4%, 1%) scale(.94); filter: brightness(.8); }
.show:hover .stack img:nth-child(1) { transform: rotate(-14deg) translate(-16%, 0) scale(.9); }
.show:hover .stack img:nth-child(2) { transform: rotate(11deg) translate(14%, -1%) scale(.92); }
.stack .tag { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(11,13,20,.7); color: #f2ede4; padding: 5px 9px; border-radius: 6px; backdrop-filter: blur(6px); }
.show h3 { font: 750 clamp(28px, 3vw, 38px)/1 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.show .logline { font: 600 19px/1.35 var(--display); color: var(--lamp); margin: 0 0 14px; }
.show p { color: var(--mute); margin: 0 0 18px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--mute); }

/* timeline */
.timeline { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 18px 0 8px; overflow: hidden; }
.ruler { display: flex; justify-content: space-between; padding: 0 20px 12px; color: var(--mute); border-bottom: 1px solid var(--line); }
.tracks { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 16px 20px; }
.clip { border-radius: 10px; padding: 14px 14px 16px; min-height: 172px; color: #f6f1e8; position: relative;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 92%, #000), color-mix(in srgb, var(--c) 62%, #000)); }
.clip .n { opacity: .7; }
.clip h4 { font: 700 19px/1.1 var(--display); margin: 10px 0 8px; }
.clip p { font-size: 13.5px; line-height: 1.45; margin: 0; opacity: .88; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff4d3d; left: 20px; box-shadow: 0 0 14px #ff4d3d; animation: play 14s linear infinite; }
.playhead::before { content: ""; position: absolute; top: -2px; left: -6px; border: 7px solid transparent; border-top-color: #ff4d3d; }
@keyframes play { from { left: 20px; } to { left: calc(100% - 22px); } }
@media (max-width: 900px) {
  .tracks { grid-template-columns: 1fr; }
  .clip { min-height: 0; }
  .playhead { display: none; }
}
.loopnote { display: flex; gap: 14px; align-items: center; margin-top: 18px; color: var(--mute); }
.loopnote svg { flex: none; color: var(--lamp); }

/* learn */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.rules { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rules li { counter-increment: r; padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; }
.rules li::before { content: "0" counter(r); font: 500 13px var(--mono); color: var(--lamp); padding-top: 4px; }
.rules strong { display: block; font: 700 20px/1.25 var(--display); margin-bottom: 4px; }
.rules span { color: var(--mute); }

/* tool */
.tool { border: 1px solid rgba(240,166,70,.18); background: radial-gradient(90% 120% at 0% 100%, rgba(125,151,255,.10), transparent 60%), var(--night); color: var(--night-ink); border-radius: 26px; padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.tool::after { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(240,166,70,.22), transparent 62%); pointer-events: none; }
.tool h2 { color: var(--night-ink); }
.tool .intro { color: #b9b7b2; }
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
@media (max-width: 720px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.platforms div { border: 1px solid rgba(242,237,228,.14); border-radius: 14px; padding: 16px; }
.platforms b { display: block; font: 700 17px var(--display); margin-bottom: 4px; }
.platforms span { color: #9a9fb2; font-size: 14px; }
.tool .fine { margin-top: 26px; color: #9a9fb2; font-size: 14px; position: relative; z-index: 1; }
.tool .fine a { color: #f0a646; }

/* contact + footer */
.contact h2 { max-width: 18ch; }
.contact a.mail { font: 700 clamp(26px, 4vw, 46px)/1.1 var(--display); color: var(--lamp); text-decoration: none; border-bottom: 2px solid var(--lamp-soft); word-break: break-all; }
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* legal pages */
.legal-hero { background: var(--night); color: var(--night-ink); padding: 140px 0 60px; }
.legal-hero h1 { font: 800 clamp(40px, 6vw, 72px)/1 var(--display); letter-spacing: -0.03em; margin: 14px 0 10px; }
.legal-hero p { color: var(--night-mute); margin: 0; }
.legal { max-width: 760px; padding: 56px var(--gutter) 100px; margin: 0 auto; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin: 48px 0 12px; max-width: none; scroll-margin-top: 90px; }
.legal h3 { font: 700 19px var(--display); margin: 28px 0 8px; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.legal a { color: var(--lamp); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal .box { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.legal code { font-family: var(--mono); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .playhead, .rec i { animation: none; }
  .stack img, .btn { transition: none; }
}

/* what we make */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 24px; transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.pillar:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--lamp) 45%, transparent); }
.pillar > .mono, .pillar h3, .pillar p, .pillar .go { margin-left: 10px; margin-right: 10px; }
.pillar > .mono { color: var(--lamp); margin-top: 20px; }
.pillar h3 { font: 750 26px/1.1 var(--display); letter-spacing: -0.02em; margin-top: 8px; margin-bottom: 8px; }
.pillar p { color: var(--mute); margin-top: 0; margin-bottom: 18px; font-size: 16px; flex: 1; }
.pillar .go { font-weight: 600; font-size: 15px; }
.pimg { position: relative; height: 230px; border-radius: 14px; overflow: hidden; background: #0b0d14;
  background-image: repeating-linear-gradient(90deg, rgba(125,151,255,.10) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(125,151,255,.10) 0 1px, transparent 1px 28px); }
.pimg img { position: absolute; width: 38%; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; top: 50%; left: 50%; box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pimg img:nth-child(1) { transform: translate(-88%, -50%) rotate(-6deg); }
.pimg img:nth-child(2) { transform: translate(-12%, -46%) rotate(5deg); }
.pillar:hover .pimg img:nth-child(1) { transform: translate(-96%, -52%) rotate(-9deg); }
.pillar:hover .pimg img:nth-child(2) { transform: translate(-4%, -48%) rotate(8deg); }
.pimg.app { background-color: #0a1846; }
.pimg.app img { width: 120px; aspect-ratio: 1; border-radius: 28px; transform: translate(-50%, -50%); box-shadow: 0 0 60px rgba(240,166,70,.35), 0 16px 40px rgba(0,0,0,.5); }
.pillar:hover .pimg.app img { transform: translate(-50%, -50%) scale(1.06) rotate(-3deg); }
.pimg.web img { width: 86%; aspect-ratio: 16/10; border-radius: 8px; transform: translate(-50%, -44%); }
.pillar:hover .pimg.web img { transform: translate(-50%, -48%) scale(1.03); }

/* in-development card */
.devframe { border-radius: 14px; overflow: hidden; background: #0b0d14;
  background-image: repeating-linear-gradient(90deg, rgba(125,151,255,.12) 0 1px, transparent 1px 22px), repeating-linear-gradient(0deg, rgba(125,151,255,.12) 0 1px, transparent 1px 22px); }
.silhouette { position: absolute; inset: 0; background:
  radial-gradient(22% 13% at 50% 34%, rgba(240,166,70,.55), transparent 70%),
  radial-gradient(42% 26% at 50% 78%, rgba(240,166,70,.32), transparent 72%),
  radial-gradient(70% 50% at 50% 45%, rgba(240,166,70,.10), transparent 70%);
  filter: blur(6px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.03); } }
.shows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shows .show { grid-template-columns: 1fr; align-items: start; }
.shows .show .stack { width: 78%; margin: 8px auto 4px; }
@media (max-width: 1000px) { .shows { grid-template-columns: 1fr; } .shows .show { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; } .shows .show .stack { width: 100%; margin: 0; } }
@media (max-width: 520px) { .shows .show { grid-template-columns: 1fr; } .shows .show .stack { width: 72%; margin: 8px auto 0; } }
.show.dev h3 { color: var(--mute); }

/* apps */
.appsplit { align-items: center; }
.appcard { display: flex; gap: 18px; align-items: center; margin: 4px 0 22px; }
.appicon { border-radius: 20px; box-shadow: 0 10px 30px rgba(10,24,70,.45); }
.appcard h3 { font: 750 30px/1 var(--display); margin: 0 0 6px; letter-spacing: -0.02em; }
.appcard .logline { margin: 0; color: var(--lamp); font: 600 17px var(--display); }
.feats { list-style: none; padding: 0; margin: -24px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.feats li { padding-left: 22px; position: relative; font-size: 15.5px; }
.feats li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--lamp); transform: rotate(45deg); }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }
.phonewrap { display: grid; place-items: center; perspective: 1200px; position: relative; }
.phonewrap::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(61,91,217,.35), transparent 65%); }
.phone { position: relative; width: min(320px, 78vw); aspect-ratio: 540 / 671; border-radius: 44px 44px 0 0; padding: 12px 12px 0; background: #1b1d24; box-shadow: 0 40px 90px rgba(0,0,0,.45), inset 0 0 0 2px #2c2f39;
  transform: rotateY(-14deg) rotateX(6deg); transition: transform .8s cubic-bezier(.2,.8,.2,1);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.phonewrap:hover .phone { transform: rotateY(-4deg) rotateX(2deg); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px 34px 0 0; }

/* websites */
.websplit { align-items: center; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.35); background: #12141c; transform: perspective(1400px) rotateY(8deg); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.browser:hover { transform: perspective(1400px) rotateY(2deg); }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #1a1d27; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e4c; }
.browser .bar span { margin-left: 12px; color: #8f94a7; background: #10121a; padding: 4px 12px; border-radius: 6px; font-size: 11px; text-transform: none; letter-spacing: .02em; }
@media (max-width: 820px) { .websplit .browser { order: 2; } }
@media (prefers-reduced-motion: reduce) { .silhouette { animation: none; } .pillar, .pimg img, .phone, .browser { transition: none; } }
