/* ThinkFox Labs (thinkfoxlabs.com): the house Prism look (cut glass, spectral light, Onest / Bricolage Grotesque /
   JetBrains Mono) in the studio's own warm spectrum. Dark only. The CSP allows styles from this file alone, so no
   page carries a style attribute or a <style> block. Fonts are self-hosted subsets (tools/make_fonts.py). */
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest.woff2?v=a99a22b0cd") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-800.woff2?v=39543b20a9") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-600.woff2?v=8180a26d33") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2?v=7798fe6440") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0C0A0E;
  --ink: #F8F2EB; --ink-2: #C9BDB3; --ink-3: #A39589;
  --line: rgba(255, 236, 220, .09); --line-2: rgba(255, 236, 220, .16);
  /* the studio's spectrum: gold, amber, fox, rose, violet */
  --sp-0: #FFD27A; --sp-1: #FF9A4D; --sp-2: #FF6B3D; --sp-3: #F2547D; --sp-4: #B86BF2;
  --spec: linear-gradient(90deg, var(--sp-0), var(--sp-1) 30%, var(--sp-2) 52%, var(--sp-3) 76%, var(--sp-4));
  --pri: linear-gradient(115deg, #FFC979 0%, #FF9450 48%, #FF6A55 100%);
  --pri-h: linear-gradient(115deg, #FFD796 0%, #FFA468 48%, #FF7C69 100%);
  --on-pri: #1E0E07;
  --glass-1: rgba(38, 29, 40, .8); --glass-2: rgba(17, 13, 20, .92);
  --edge: linear-gradient(140deg, rgba(255, 196, 140, .55), rgba(255, 236, 220, .1) 28%, rgba(255, 236, 220, .07) 72%, rgba(184, 107, 242, .45));
  --focus: #FFC979;
  --f-ui: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-dsp: "Bricolage Grotesque", "Onest", "Segoe UI", system-ui, sans-serif;
  --f-lab: "JetBrains Mono", "Cascadia Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --wrap: 1180px; --gut: 16px; --top-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 600px) { :root { --gut: 24px; } }
@media (min-width: 1000px) { :root { --gut: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0; min-height: 100vh; overflow-x: clip; position: relative;
  background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* the room's light: ember from the upper right, violet from the left */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1500px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 680px at 88% -8%, rgba(255, 122, 61, .17), transparent 62%),
    radial-gradient(900px 620px at -12% 18%, rgba(184, 107, 242, .11), transparent 60%),
    radial-gradient(700px 420px at 55% 78%, rgba(255, 196, 120, .05), transparent 70%);
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: rgba(255, 154, 77, .35); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -64px; z-index: 30; padding: 10px 14px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---- type ---- */
.display { margin: 0; font: 800 clamp(2.6rem, 6.4vw, 5.25rem)/.98 var(--f-dsp); letter-spacing: -.035em; text-wrap: balance; }
.display .spec { display: block; padding-bottom: .06em; }
.spec { background: var(--spec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { margin: 0; font: 800 clamp(2rem, 4.2vw, 3.25rem)/1.03 var(--f-dsp); letter-spacing: -.03em; text-wrap: balance; }
.h3 { margin: 0; font: 600 1.375rem/1.15 var(--f-dsp); letter-spacing: -.015em; }
.lead { margin: 0; max-width: 36em; color: var(--ink-2); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--ink-2); font: 500 .75rem/1 var(--f-lab); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; flex: none; background: var(--spec); }
.lab { margin: 0; color: var(--ink-3); font: 500 .75rem/1.35 var(--f-lab); letter-spacing: .1em; text-transform: uppercase; }
.fine { margin: 0; color: var(--ink-3); font-size: .875rem; }
.ico { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- buttons: cut corners, a 1 px lit edge ---- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; color: var(--ink); font: 600 .9375rem/1 var(--f-ui); text-decoration: none; white-space: nowrap; cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: linear-gradient(140deg, rgba(255, 210, 160, .55), rgba(255, 236, 220, .14) 40%, rgba(184, 107, 242, .42));
}
.btn::before {
  content: ""; position: absolute; inset: 1px; z-index: -1;
  clip-path: polygon(7.4px 0, 100% 0, 100% calc(100% - 7.4px), calc(100% - 7.4px) 100%, 0 100%, 0 7.4px);
  background: linear-gradient(180deg, rgba(48, 37, 50, .94), rgba(24, 18, 27, .97)); transition: background .2s var(--ease);
}
.btn:hover::before { background: linear-gradient(180deg, rgba(68, 52, 70, .96), rgba(34, 26, 38, .98)); }
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { box-shadow: inset 0 0 0 2px var(--focus); }
.btn.pri { color: var(--on-pri); background: var(--pri); }
.btn.pri::before { display: none; }
.btn.pri:hover { background: var(--pri-h); }
.btn.pri:focus-visible { box-shadow: inset 0 0 0 2px var(--on-pri); }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: .875rem; }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: rgba(12, 10, 14, .74); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--top-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 800 1.1875rem/1 var(--f-dsp); letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand-labs { color: var(--ink-2); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 10px 12px; color: var(--ink-2); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: color .2s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { margin-left: 8px; }
@media (max-width: 540px) { .nav a:not(.btn) { display: none; } }

/* ---- hero ---- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 16px; } }
.hero-copy .lead { margin-top: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 480px) { .cta .btn { flex: 1 1 100%; } }
.hero-art { width: 100%; max-width: 600px; justify-self: center; }
@media (max-width: 959px) { .hero-art { max-width: 460px; } }
.prism { width: 100%; height: auto; }
.ray { animation: ray 6s ease-in-out infinite alternate; }
.r1 { animation-delay: -1.2s; } .r2 { animation-delay: -2.4s; } .r3 { animation-delay: -3.6s; } .r4 { animation-delay: -4.8s; }
.beam { animation: beam 5s ease-in-out infinite alternate; }
.glint { animation: glint 8s ease-in-out infinite; transform: translateX(0) skewX(-18deg); }
@keyframes ray { from { opacity: .5; } to { opacity: 1; } }
@keyframes beam { from { opacity: .7; } to { opacity: 1; } }
@keyframes glint { 0% { transform: translateX(0) skewX(-18deg); } 55%, 100% { transform: translateX(800px) skewX(-18deg); } }

/* ---- sections ---- */
.sec { padding: clamp(64px, 9vw, 120px) 0 0; }
.sec-last { padding-bottom: clamp(64px, 9vw, 120px); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.sec-lead { margin: 18px 0 0; max-width: 40em; color: var(--ink-2); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }

/* ---- panels: cut glass with a lit edge; the inner cut is 0.6 px smaller so the edge stays 1 px on the diagonal ---- */
.panel {
  --c: 14px; position: relative; isolation: isolate; background: var(--edge);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.panel::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  clip-path: polygon(calc(var(--c) - .6px) 0, 100% 0, 100% calc(100% - var(--c) + .6px), calc(100% - var(--c) + .6px) 100%, 0 100%, 0 calc(var(--c) - .6px));
}

/* ---- products ---- */
.products { display: grid; gap: 20px; }
@media (min-width: 900px) { .products { grid-template-columns: 1fr 1fr; gap: 24px; } }
.product { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3.4vw, 40px); }
.product.es { --p-line: linear-gradient(90deg, #5EE7FF, #8C8CFF 36%, #D27BFF 68%, #FF7FB3); --p-glow: rgba(140, 140, 255, .17); }
.product.br { --p-line: linear-gradient(90deg, #22E4EC, #9FF3F7); --p-glow: rgba(34, 228, 236, .12); }
.product::before { background: radial-gradient(560px 280px at 0% 0%, var(--p-glow), transparent 70%), linear-gradient(180deg, var(--glass-1), var(--glass-2)); }
/* each product's own light along the top edge */
.product::after { content: ""; position: absolute; top: 0; left: var(--c); right: 0; height: 2px; background: var(--p-line); }
.product-top { display: flex; align-items: center; gap: 16px; }
.product-top .h3 { font-size: 1.625rem; margin-bottom: 6px; }
.product-icon { width: 60px; height: 60px; flex: none; }
.product-pitch { margin: 0; color: var(--ink); font-size: 1.1875rem; line-height: 1.5; }
.points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 26px; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--p-line); }
.product-link { align-self: flex-start; margin-top: auto; }

/* ---- studio ---- */
.tiles { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tile { --c: 12px; padding: 28px 26px 30px; }
.tile-n { display: block; width: max-content; margin-bottom: 26px; font: 500 .8125rem/1 var(--f-lab); letter-spacing: .08em; background: var(--spec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile .h3 { margin-bottom: 10px; }
.tile p { margin: 0; color: var(--ink-2); }

/* ---- contact ---- */
.contact { --c: 18px; display: grid; gap: 28px; align-items: end; padding: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.contact::before { background: radial-gradient(640px 320px at 100% 100%, rgba(255, 122, 61, .2), transparent 70%), linear-gradient(180deg, var(--glass-1), var(--glass-2)); }
.mail { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; color: var(--ink); text-decoration: none; font: 600 clamp(1.1875rem, 3vw, 2.125rem)/1.15 var(--f-dsp); letter-spacing: -.02em; }
.mail .ico { width: 1.1em; height: 1.1em; color: var(--sp-1); }
.mail span { min-width: 0; overflow-wrap: anywhere; padding-bottom: 4px; background: var(--spec) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.mail:hover span, .mail:focus-visible span { background-size: 100% 2px; }
.contact-mail .fine { margin-top: 14px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: minmax(0, 1fr) auto; } }
.foot-brand .fine { margin-top: 12px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 140px; }
.foot-col .lab { margin-bottom: 4px; }
.foot-col a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--ink); }
.foot-col .ico { width: .9em; height: .9em; }
.foot-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- privacy ---- */
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.doc-in { max-width: calc(760px + 2 * var(--gut)); }
.h1-doc { margin: 0; font: 800 clamp(2.4rem, 5vw, 3.75rem)/1 var(--f-dsp); letter-spacing: -.03em; }
.upd { margin: 14px 0 32px; color: var(--ink-3); font: 500 .8125rem/1.4 var(--f-lab); letter-spacing: .04em; }
.doc h2 { margin: 40px 0 12px; font: 600 1.375rem/1.2 var(--f-dsp); letter-spacing: -.01em; }
.doc p, .doc li { color: var(--ink-2); font-size: 1.0625rem; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); text-decoration-color: rgba(255, 154, 77, .65); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--sp-1); }

/* ---- 404 ---- */
.lost { padding: clamp(72px, 14vw, 160px) 0; text-align: center; }
.lost-in { display: flex; flex-direction: column; align-items: center; }
.lost .eyebrow { justify-content: center; }
.lost-mark { width: 88px; height: 88px; margin-bottom: 28px; }
.lost .sec-lead { margin: 16px auto 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ray, .beam { animation: none; }
  .glint { display: none; }
  .btn::before, .mail span { transition: none; }
}
