@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #faf6ef; --bg2: #f2ece1; --card: #ffffff; --ink: #17181c; --muted: #5c5f6b; --line: #e6dfd2;
  --logobg: #17181c; --accent: #e8473f; --spark: #ffc23c; --link: #b4342d;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px; --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #121317; --bg2: #1a1c22; --card: #1e2027; --ink: #f2efe9; --muted: #a3a6b1; --line: #2c2f38; --link: #ff8a80; --logobg: #2c2f38; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #121317; --bg2: #1a1c22; --card: #1e2027; --ink: #f2efe9; --muted: #a3a6b1; --line: #2c2f38; --link: #ff8a80; --logobg: #2c2f38; color-scheme: dark; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { 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; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand svg rect { fill: var(--logobg); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 550; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--bg2); }
@media (max-width: 480px) { .nav a { padding: 8px 9px; font-size: 14px; } .brand { font-size: 20px; } .brand svg { width: 28px; height: 28px; } }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; letter-spacing: -0.015em; }
.kicker { font: 650 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }

/* hero */
.hero { padding-top: clamp(48px, 9vw, 110px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 13ch; margin: 18px 0 22px; }
.hero h1 .sp { color: var(--accent); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 650 16px/1 var(--body); text-decoration: none; background: var(--ink); color: var(--bg); border: 0; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn svg { width: 18px; height: 18px; }
.soon { font-size: 14px; color: var(--muted); }

/* product cards */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 32px; }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } }
.app { position: relative; border-radius: var(--r); padding: 26px; min-height: 330px; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; }
.app:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }
.app .ic { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.app h3 { font-size: 30px; margin: 20px 0 8px; }
.app p { font-size: 16px; line-height: 1.5; opacity: .85; max-width: 30ch; }
.app .go { margin-top: auto; padding-top: 22px; font-weight: 650; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.app .go svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.app:hover .go svg { transform: translateX(3px); }
.app .tagrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.app .tagrow span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.55); }
.app.tilery { background: #fff0d5; color: #2b2433; }
.app.tilery::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -70px; bottom: -80px; border-radius: 50%; background: #ffd27a; filter: blur(50px); opacity: .7; }
.app.sideout { background: #0f1b2d; color: #f2f5ea; }
.app.sideout .tagrow span { background: rgba(215,240,74,0.14); color: #d7f04a; }
.app.sideout::after { content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; right: -60px; bottom: -80px; border-radius: 50%; background: #d7f04a; filter: blur(70px); opacity: .25; }
.app.eos { background: #eef1f6; color: #12223a; }
.app.eos .tagrow span { background: rgba(18,34,58,0.07); }
.eosmark { width: 64px; height: 64px; border-radius: 16px; background: #12223a; display: grid; place-items: center; color: #fff; font: 800 30px/1 var(--display); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
:root[data-theme="dark"] .app.eos { background: #1b2433; color: #e8eef8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app.eos { background: #1b2433; color: #e8eef8; } :root:not([data-theme="light"]) .app.eos .tagrow span { background: rgba(255,255,255,0.08); } :root:not([data-theme="light"]) .eosmark { background: #e8eef8; color: #12223a; } }
:root[data-theme="dark"] .app.eos .tagrow span { background: rgba(255,255,255,0.08); }
:root[data-theme="dark"] .eosmark { background: #e8eef8; color: #12223a; }

/* values strip */
.band { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
@media (max-width: 900px) { .app { min-height: 0; } }
@media (max-width: 800px) { .vals { grid-template-columns: 1fr; gap: 20px; } }
.val { border-top: 2px solid var(--ink); padding-top: 16px; }
.val h3 { font-size: 20px; margin-bottom: 6px; }
.val p { color: var(--muted); font-size: 16px; }

/* product page */
.phero { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .phero { grid-template-columns: 1fr; } }
.phero .ic { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 6px 20px rgba(0,0,0,0.14); margin-bottom: 22px; }
.phero h1 { font-size: clamp(44px, 7vw, 72px); margin-bottom: 14px; }
.phero .lede { max-width: 34ch; }
.stage { border-radius: 28px; padding: 32px 16px 0; overflow: hidden; display: flex; justify-content: center; gap: 16px; height: clamp(340px, 42vw, 480px); align-items: flex-start; }
.stage img { width: 44%; max-width: 220px; border-radius: 20px; box-shadow: 0 12px 34px rgba(0,0,0,0.2); }
.stage img + img { margin-top: 44px; }
.t-stage { background: linear-gradient(160deg, #ffe2a8, #ffd0e4 55%, #c8e6ff); }
.s-stage { background: #0f1b2d; }

.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.shots img { flex: none; width: 220px; border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--card); }
.shots.tall img { width: 200px; }

.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 700px) { .feat { grid-template-columns: 1fr; } }
.feat > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.feat h3 { font-size: 19px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15.5px; }

.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .groups { grid-template-columns: 1fr; } }
.group { border-radius: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); }
.group h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.group h3 i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.group ul { list-style: none; font-size: 15px; color: var(--muted); display: grid; gap: 4px; }

/* prose pages */
.doc { max-width: 720px; padding: clamp(36px, 6vw, 64px) 0 40px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin: 14px 0 10px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.doc a { color: var(--link); text-underline-offset: 3px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc .box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 22px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.toc a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--bg2); color: var(--ink); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; font: 600 22px/1 var(--display); color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin-top: 8px; color: var(--muted); }
.contact { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 20px 0 8px; }
.contact .mail { font: 750 clamp(20px, 3vw, 26px)/1.2 var(--display); color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; word-break: break-all; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 44px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.themebtn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 600 13px/1 var(--body); cursor: pointer; }

.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 14px; }
.notfound .btns { justify-content: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
