/* Abdo Tamim — recreation 110 (poulo.site layout) */
@font-face { font-family: "TikTok Sans"; src: url("../assets/fonts/tiktok-sans-latin-wght.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Reenie Beanie"; src: url("../assets/fonts/reenie-beanie-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-80: rgba(10,10,10,.8);
  --fg-40: rgba(10,10,10,.4);
  --muted: #737373;
  --primary: #171717;
  --on-primary: #fafafa;
  --secondary: #f5f5f5;
  --band: #fafafa;
  --line: rgba(10,10,10,.05);
  --border: rgba(10,10,10,.08);
  --card: #ffffff;
  --shadow: 0 10px 40px -10px rgba(0,0,0,.18);
  --accent: #E8622C;
  --accent-soft: rgba(232,98,44,.12);
  --pill-bg: rgba(255,255,255,.55);
  --font: "TikTok Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Reenie Beanie", "Comic Sans MS", cursive;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --frame: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0b;
  --fg: #f2f2f2;
  --fg-80: rgba(242,242,242,.82);
  --fg-40: rgba(242,242,242,.42);
  --muted: #9a9a9a;
  --primary: #f2f2f2;
  --on-primary: #0b0b0b;
  --secondary: #161616;
  --band: #111111;
  --line: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.1);
  --card: #1d1d1d;
  --shadow: 0 10px 40px -10px rgba(0,0,0,.7);
  --pill-bg: rgba(30,30,30,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 16px; line-height: 24px; letter-spacing: -0.04em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ───────── fixed chrome ───────── */
.topbar { position: fixed; inset: 24px 0 auto; z-index: 50; display: flex; justify-content: center; align-items: center; gap: 8px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.pillnav {
  display: flex; align-items: center; gap: 2px; height: 54px; padding: 5px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: var(--pill-bg);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow); position: relative;
}
:root[data-theme="dark"] .pillnav { border-color: rgba(255,255,255,.08); }
.pillnav__glider { position: absolute; top: 5px; height: 42px; border-radius: 999px; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px -4px rgba(0,0,0,.12); transition: left .45s cubic-bezier(.3,1.3,.5,1), width .45s cubic-bezier(.3,1.3,.5,1); z-index: 0; }
.pillnav a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .25s; white-space: nowrap; }
.pillnav a.is-active, .pillnav a:hover { color: var(--fg); }
.pillnav a .lbl { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; transition: max-width .5s cubic-bezier(.3,1,.4,1), opacity .3s; }
.pillnav a .chev { width: 12px; height: 12px; max-width: 0; opacity: 0; transition: max-width .5s, opacity .3s; }
.is-scrolled .pillnav a .lbl { max-width: 110px; opacity: 1; }
.is-scrolled .pillnav a .chev { max-width: 12px; opacity: .6; }
.is-scrolled .pillnav a { padding: 0 14px; }

.cta {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 6px 26px 6px 6px;
  background: var(--primary); color: var(--on-primary); border-radius: 999px; font-size: 16px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); transition: transform .3s cubic-bezier(.3,1.4,.5,1);
}
.cta:hover { transform: translateY(-1px) scale(1.02); }
.cta__dots { width: 40px; height: 40px; border-radius: 50%; background: var(--on-primary); position: relative; flex: none; }
.cta__dots i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); left: 18px; top: 18px; transform: rotate(var(--a)) translateX(var(--r)); }
.cta__dots .spin { position: absolute; inset: 0; animation: spin 9s linear infinite; }
.cta:hover .cta__dots .spin { animation-duration: 2.4s; }
@keyframes spin { to { transform: rotate(360deg); } }

.roundbtn { position: fixed; z-index: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: 0 6px 24px -8px rgba(0,0,0,.2); border: 1px solid var(--border); transition: transform .3s; }
.roundbtn:hover { transform: scale(1.06); }
.theme-btn { top: 24px; right: 24px; }
.chat-btn { bottom: 16px; right: 16px; }
.menu-btn { display: none; }

.rail { position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 0; width: 48px; }
.rail a { display: block; height: 24px; position: relative; }
.rail a::before { content: ""; position: absolute; left: 0; top: 11px; height: 1.5px; width: var(--w); background: var(--fg); opacity: .55; transition: width .45s cubic-bezier(.3,1,.4,1), opacity .3s; }
.rail a.is-active::before { width: 48px; opacity: 1; }
.rail a:hover::before { opacity: 1; }
.rail a span { position: absolute; left: 56px; top: 1px; font-size: 12px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: .25s; white-space: nowrap; pointer-events: none; }
.rail a:hover span { opacity: 1; transform: none; }

/* ───────── frame lines ───────── */
.frame { max-width: var(--frame); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; }
.hline { position: relative; height: 1px; background: var(--line); }
.hline::before, .hline::after { content: ""; position: absolute; top: -1.5px; width: 3px; height: 3px; border-radius: 50%; background: var(--fg); }
.hline::before { left: calc(50% - var(--frame) / 2 - 1.5px); }
.hline::after { right: calc(50% - var(--frame) / 2 - 1.5px); }
.wrap { padding: 0 40px; overflow-x: clip; }

/* ───────── hero ───────── */
.hero-bg { position: absolute; inset: 0 0 auto; height: 100svh; min-height: 640px; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg .sky { position: absolute; inset: 0 0 35%; background: linear-gradient(#dcebfa, rgba(220,235,250,0)); opacity: 0; transition: opacity 2.4s ease; }
.hero-bg.is-sky .sky { opacity: 1; }
.fog { position: absolute; inset: -80px -10% auto; height: 340px; background:
  radial-gradient(40% 60% at 15% 40%, rgba(226,228,232,.9), transparent 70%),
  radial-gradient(35% 55% at 50% 30%, rgba(232,233,236,.9), transparent 70%),
  radial-gradient(40% 60% at 85% 45%, rgba(226,228,232,.85), transparent 70%);
  filter: blur(18px); animation: fog 26s ease-in-out infinite alternate; }
:root[data-theme="dark"] .fog { opacity: .08; }
:root[data-theme="dark"] .hero-bg .sky { background: linear-gradient(#10161f, rgba(16,22,31,0)); }
@keyframes fog { to { transform: translateX(4%); } }
.hero-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 14px; background: linear-gradient(transparent, rgba(220,232,246,.5)); }

.hero { position: relative; max-width: 1280px; margin: 0 auto; min-height: 100svh; display: grid; grid-template-columns: 1fr 372px 1fr; align-items: center; gap: 48px; padding: 0 40px; }
.hero__left { align-self: center; }
.hero h1 { font-size: 41.7px; line-height: 42.5px; font-weight: 600; letter-spacing: -0.04em; min-height: 85px; max-width: 390px; position: relative; display: grid; }
.hero h1 .phrase { grid-area: 1/1; }
.hero h1 .ch { display: inline-block; white-space: pre; }
.hero h1 .w { display: inline-block; white-space: nowrap; }
.hero h1 .phrase.out .ch { animation: vapor .9s cubic-bezier(.4,0,.6,1) forwards; animation-delay: var(--d); }
.hero h1 .phrase.in .ch { animation: condense .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
@keyframes vapor { to { opacity: 0; filter: blur(10px); transform: translate(var(--dx), var(--dy)) scale(1.15); } }
@keyframes condense { from { opacity: 0; filter: blur(10px); transform: translateY(.25em); } }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 30px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--bg); border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-1px); }
.btn--ring { padding: 0 20px; border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(110deg, var(--fg) 20%, rgba(0,0,0,.08) 60%, var(--fg) 95%) border-box; box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.btn--ring svg { width: 13px; height: 13px; }

.avatar { position: relative; justify-self: center; width: 372px; margin-top: 18px; }
.avatar img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; transform-origin: 50% 90%; animation: breathe 6s ease-in-out infinite; }
:root[data-theme="dark"] .avatar img { filter: invert(1) hue-rotate(180deg); }
@keyframes breathe { 50% { transform: translateY(-3px) rotate(-.6deg); } }
.note { position: absolute; left: -128px; top: 34px; font-family: var(--hand); font-size: 38px; line-height: 1; letter-spacing: 0; color: var(--fg); transform: rotate(-9deg); white-space: nowrap; }
.note svg { position: absolute; left: 86px; top: 26px; width: 90px; height: 62px; stroke: var(--fg); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.note .draw { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.2s .9s ease forwards; }
.note .txt { display: inline-block; clip-path: inset(0 100% 0 0); animation: write 1.1s .2s steps(14) forwards; }
.note .accent { color: var(--accent); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }

.hero__list { align-self: center; max-width: 344px; justify-self: end; width: 100%; }
.hero__list li { padding: 10px 0; cursor: default; }
.hero__list li > p:first-child { color: var(--muted); transition: color .3s; }
.hero__list li.is-open > p:first-child { color: var(--fg); }
.hero__list .more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease-out, opacity .3s ease-out; }
.hero__list .more > p { overflow: hidden; color: var(--muted); font-size: 17px; line-height: 28px; }
.hero__list li.is-open .more { grid-template-rows: 1fr; opacity: 1; }
.hero__list li.is-open .more > p { padding-top: 8px; }

/* ───────── logos ───────── */
.logos__label { padding: 18px 10px 0; font-size: 15px; }
.logos__band { position: relative; height: 360px; margin: 8px 0 20px; background: var(--band); overflow: hidden; }
.badge { position: absolute; left: 0; top: 0; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; background: #1f1f1f; color: #fff; display: grid; place-items: center; text-align: center; will-change: transform; }
.badge span { font-weight: 700; letter-spacing: -0.04em; line-height: .95; font-size: 30px; padding: 0 14px; }
.badge.ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #6a6a6a, #2a2a2a 70%); z-index: -0; }
.badge.ring span { position: relative; z-index: 1; }
.badge.serif span { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: 0; font-style: italic; }
.badge.light { background: #fff; color: #111; box-shadow: inset 0 0 0 14px #1f1f1f; }
.badge.mono span { font-family: var(--mono); font-size: 22px; letter-spacing: 0; }

/* ───────── statement + components ───────── */
.statement { padding: 24px 12px 0; font-size: 48px; line-height: 58px; font-weight: 500; letter-spacing: -0.04em; max-width: 1150px; }
.statement .w { display: inline-block; opacity: .12; transition: opacity .5s ease; }
.statement .w.on { opacity: 1; }
.demos { margin: 56px auto 24px; max-width: 1024px; border: 1px solid var(--border); border-radius: 24px; padding: 12px; display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); scrollbar-width: none; background: var(--bg); }
.demos::-webkit-scrollbar { display: none; }
.demo { grid-column: span 2; position: relative; border: 1px solid var(--border); border-radius: 20px; background: var(--secondary); min-height: 460px; display: grid; place-items: center; padding: 40px 20px 20px; overflow: hidden; }
.demo--wide { grid-column: span 3; min-height: 310px; }
.demo__reset { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); color: var(--muted); transition: transform .5s; z-index: 3; }
.demo__reset:hover { transform: rotate(-200deg); color: var(--fg); }
.demo__reset svg { width: 14px; height: 14px; }
.mini { font-size: 11px; line-height: 15px; letter-spacing: -0.01em; }
.panel { background: var(--card); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 30px -14px rgba(0,0,0,.25); width: 100%; }

/* receipt */
.receipt-wrap { width: 214px; height: 380px; background: #e9e9e9; border-radius: 18px; display: flex; flex-direction: column; align-items: center; padding: 18px 12px 16px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .receipt-wrap { background: #2a2a2a; }
.receipt-slot { width: 100%; height: 6px; background: #cfcfcf; border-radius: 4px; position: relative; z-index: 2; }
.receipt-clip { width: 100%; flex: 1; overflow: hidden; margin-top: -3px; }
.receipt { width: 92%; margin: 0 auto; background: #fff; color: #222; padding: 14px 14px 18px; transform: translateY(-101%); transition: transform 1.8s steps(22); font-size: 10px; line-height: 15px; letter-spacing: 0; -webkit-mask: radial-gradient(4px at 50% 100%, transparent 98%, #000) 0 0 / 9px 100% repeat-x; }
.receipt.is-printed { transform: none; }
.receipt .r-row { display: flex; justify-content: space-between; }
.receipt .r-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 11px; margin-bottom: 8px; }
.receipt .r-sep { border-top: 1px dashed #bbb; margin: 7px 0; }
.receipt .r-tot { font-weight: 700; font-size: 11px; }
.receipt .barcode { height: 34px; margin: 10px 8px 4px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 3px, #111 3px 4px, transparent 4px 7px, #111 7px 10px, transparent 10px 11px); }
.receipt .thanks { text-align: center; color: #777; }
.print-btn { margin-top: 12px; height: 30px; padding: 0 16px; border-radius: 999px; background: #1a1a1a; color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.print-btn[disabled] { background: #bdbdbd; color: #555; cursor: default; }

/* rtl */
.rtl-card { width: 100%; max-width: 250px; padding: 12px; }
.rtl-card .ph { height: 150px; border-radius: 10px; background: linear-gradient(150deg, #f1ece6, #ded5cb); position: relative; overflow: hidden; }
.rtl-card .ph::after { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 96px; margin: -48px 0 0 -42px; border-radius: 24px 24px 10px 10px; background: repeating-linear-gradient(0deg, #c9b8a6 0 3px, #d8c9b9 3px 6px); box-shadow: 0 10px 20px -10px rgba(0,0,0,.4); }
.rtl-card .body { padding: 12px 4px 4px; transition: opacity .25s; }
.rtl-card .body.fade { opacity: 0; }
.rtl-card .t { font-size: 14px; font-weight: 600; }
.rtl-card .s { color: #777; font-size: 12px; }
.rtl-card .add { margin-top: 10px; width: 100%; height: 34px; border-radius: 999px; background: #1a1a1a; color: #fff; font-size: 12px; font-weight: 600; }
.rtl-card [dir="rtl"] { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; letter-spacing: 0; }
.seg { display: inline-flex; padding: 3px; background: #ececec; border-radius: 999px; margin-bottom: 14px; position: relative; }
:root[data-theme="dark"] .seg { background: #2a2a2a; }
.seg button { height: 26px; padding: 0 14px; border-radius: 999px; font-size: 12px; color: #777; position: relative; z-index: 1; transition: color .2s; }
.seg button.on { color: #111; }
.seg .knob { position: absolute; top: 3px; bottom: 3px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: left .35s cubic-bezier(.3,1.3,.5,1), width .35s; }
.rtl-col { display: flex; flex-direction: column; align-items: center; width: 100%; }
.rtl-card, .pay, .sync, .chart { color: #1a1a1a; }

/* pay */
.pay { padding: 16px; max-width: 260px; }
.pay h4 { font-size: 13px; font-weight: 600; }
.pay .sub { color: #888; font-size: 11px; margin-bottom: 12px; }
.pay label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e6e6e6; border-radius: 12px; margin-bottom: 8px; font-size: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.pay label.on { border-color: #1a1a1a; background: #fafafa; }
.pay .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #bbb; display: grid; place-items: center; }
.pay label.on .dot { border-color: #1a1a1a; }
.pay label.on .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1a1a1a; }
.pay .meth { margin-left: auto; color: #999; font-size: 10px; }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay .go { width: 100%; height: 38px; border-radius: 999px; background: #1a1a1a; color: #fff; font-size: 12px; font-weight: 600; margin-top: 6px; position: relative; overflow: hidden; }
.pay .go .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255,255,255,.18); }
.pay .go.busy .bar { width: 100%; transition: width 1.3s ease; }
.pay .done { display: none; text-align: center; padding: 22px 0 8px; }
.pay.is-done .form { display: none; }
.pay.is-done .done { display: block; animation: pop .5s cubic-bezier(.3,1.5,.5,1); }
.pay .tick { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 10px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.pay .tick svg { width: 26px; height: 26px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }

/* sync log */
.sync { padding: 14px 14px 10px; max-width: 420px; }
.sync .hd { display: flex; justify-content: space-between; align-items: baseline; }
.sync .hd b { font-size: 12px; font-weight: 600; }
.sync .hd span { color: #999; font-size: 10px; }
.sync .flow { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; font-size: 10px; color: #666; }
.sync .flow i { font-style: normal; padding: 3px 8px; border-radius: 999px; background: #f2f2f2; }
.sync .flow .ln { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, #bbb 0 4px, transparent 4px 8px); background-size: 16px 1px; animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 16px 0; } }
.sync ul { border-top: 1px solid #eee; }
.sync li { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; font-size: 11px; padding: 7px 0; border-bottom: 1px solid #f2f2f2; opacity: 0; transform: translateY(6px); transition: .4s; }
.sync li.in { opacity: 1; transform: none; }
.sync li .id { font-family: var(--mono); color: #555; letter-spacing: 0; font-size: 10px; }
.sync li .st { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: #f2f2f2; color: #888; }
.sync li.ok .st { background: var(--accent-soft); color: #b8461a; }
.sync .foot { display: flex; justify-content: space-between; color: #999; font-size: 10px; padding-top: 8px; }

/* chart */
.chart { padding: 14px; max-width: 460px; }
.chart .hd { display: flex; justify-content: space-between; }
.chart .hd b { font-size: 12px; font-weight: 600; display: block; }
.chart .hd small { color: #999; font-size: 10px; }
.chart .hd .v { text-align: right; font-size: 12px; font-weight: 600; }
.chart .hd .v small { color: var(--accent); display: block; }
.chart svg { width: 100%; height: 170px; display: block; margin-top: 8px; overflow: visible; }
.chart .bar { fill: #e4e4e4; transition: fill .2s; }
.chart .bar.hi { fill: var(--accent); }
.chart .tip { font-size: 10px; fill: #111; letter-spacing: 0; }
.chart .grid line { stroke: #f0f0f0; }
.chart .grid text { font-size: 9px; fill: #aaa; letter-spacing: 0; }
.chart path.line { fill: none; stroke: #111; stroke-width: 1.5; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.8s ease; }
.chart.drawn path.line { stroke-dashoffset: 0; }

/* ───────── works ───────── */
.sec-head { padding: 160px 48px 40px; }
.sec-head h2 { font-size: 32px; line-height: 42px; font-weight: 500; letter-spacing: -0.04em; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 20px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--secondary); border-radius: 999px; }
.chips button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.chips button:hover { color: var(--fg); }
.chips button.on { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chips sup { font-family: var(--mono); font-size: 10px; letter-spacing: 0; color: var(--muted); top: -.2em; }
.chips svg.i { width: 14px; height: 14px; }

.case { padding-bottom: 48px; }
.case[hidden] { display: none; }
.case__head { padding: 160px 48px 40px; }
.case__head h3 { font-size: 32px; line-height: 42px; font-weight: 500; letter-spacing: -0.04em; max-width: 980px; }
.tags { display: flex; gap: 8px; font-size: 12px; line-height: 42px; font-weight: 500; color: var(--fg-40); }
.case__grid { display: grid; grid-template-columns: 599fr 527fr; gap: 16px; padding: 0 28px; }
.shot { position: relative; border-radius: 24px; overflow: hidden; min-height: 568px; display: flex; flex-direction: column; isolation: isolate; }
.shot__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) saturate(1.35); transform: scale(1.15); z-index: -2; }
.shot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,40,.0), rgba(20,20,40,.35)); z-index: -1; }
.shot__panel { margin: 12px 0 0 28px; background: rgba(250,250,250,.96); border-radius: 22px 0 0 22px; padding: 12px 0 16px 30px; }
:root[data-theme="dark"] .shot__panel { background: rgba(30,30,30,.96); }
.shot__img { height: auto; width: calc(100% - 30px); aspect-ratio: 511 / 322; object-fit: cover; object-position: top; border-radius: 24px; border: 1px solid rgba(0,0,0,.06); background: #eee; }
.shot__prompt { display: flex; gap: 6px; margin: 12px 0 0 -14px; padding-top: 12px; border-top: 1px solid var(--border); width: calc(100% - 22px); }
.shot__prompt .in { flex: 0 1 322px; height: 38px; border: 1px solid #d9d9d9; border-radius: 10px; background: var(--card); padding: 0 12px; display: flex; align-items: center; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.shot__prompt .in .caret { width: 1px; height: 16px; background: var(--fg); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.shot__prompt .ld { width: 58px; height: 38px; border: 1px solid #d9d9d9; border-radius: 10px; background: var(--card); display: grid; place-items: center; color: #aaa; }
.shot__prompt .ld svg { width: 16px; height: 16px; animation: spin 1.6s linear infinite; }
.shot__meta { margin-top: auto; padding: 24px 28px 28px; color: #fff; display: grid; gap: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.shot__meta b { font-weight: 600; font-size: 16px; }
.shot__meta p { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 20px; font-weight: 500; }
.info { background: var(--secondary); border-radius: 24px; padding: 48px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.info__card { background: var(--card); border-radius: 24px; padding: 40px 20px; min-height: 208px; display: flex; align-items: center; font-size: 16px; line-height: 24px; }
.info__role { color: var(--muted); font-size: 15px; line-height: 22px; }
.info__det { font-size: 15px; line-height: 22px; margin-top: 16px; }
.info__cta { align-self: flex-end; margin-top: 18px; font-size: 15px; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 28px 0; }
.feat { display: flex; flex-direction: column; gap: 72px; border-radius: 24px; border: 1px solid var(--border); background: var(--secondary); padding: 39px 25px; transition: background .35s, box-shadow .35s, transform .35s; }
.feat svg.i { width: 24px; height: 24px; stroke-width: 1.4; color: var(--muted); transition: color .3s; }
.feat h4 { font-size: 16px; font-weight: 400; color: var(--muted); transition: color .3s; }
.feat p { font-size: 14px; line-height: 20px; max-width: 220px; margin-top: 8px; }
.feat:hover { background: var(--card); box-shadow: 0 10px 30px -18px rgba(0,0,0,.3); }
.feat:hover h4, .feat:hover svg.i { color: var(--fg); }

/* grid view */
.works[data-view="grid"] .case { padding-bottom: 0; }
.works[data-view="grid"] .cases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 28px 64px; }
.works[data-view="grid"] .case__head, .works[data-view="grid"] .feats, .works[data-view="grid"] .info { display: none; }
.works[data-view="grid"] .case__grid { grid-template-columns: 1fr; padding: 0; }
.works[data-view="grid"] .shot { min-height: 480px; }
.works[data-view="grid"] .case-link { display: block; }
.case-link { display: none; position: absolute; inset: 0; z-index: 5; border-radius: 24px; }
/* deck view */
.works[data-view="deck"] .cases { position: relative; height: 640px; margin: 0 28px 64px; perspective: 1400px; }
.works[data-view="deck"] .case { position: absolute; inset: 0; padding: 0; transition: transform .7s cubic-bezier(.3,1,.3,1), opacity .5s; cursor: pointer; }
.works[data-view="deck"] .case__head, .works[data-view="deck"] .feats { display: none; }
.works[data-view="deck"] .case__grid { padding: 0; height: 100%; }
.works[data-view="deck"] .shot, .works[data-view="deck"] .info { box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.works[data-view="deck"] .info { background: var(--card); border: 1px solid var(--border); }
.deck-hint { display: none; text-align: center; font-size: 12px; color: var(--muted); margin: -40px 0 40px; }
.works[data-view="deck"] .deck-hint { display: block; }

/* ───────── more builds (experiments) ───────── */
.exp { padding: 136px 41px 96px; }
.exp h2 { font-size: 32px; line-height: 42px; font-weight: 500; margin-bottom: 96px; padding: 0 0 0 0; }
.exp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.exp-card { display: flex; flex-direction: column; }
.exp-card__img { aspect-ratio: 345 / 195; border-radius: 16px; overflow: hidden; background: #0d0d0d; position: relative; }
.exp-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.2) brightness(.85); transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s; }
.exp-card:hover .exp-card__img img { transform: scale(1.05); filter: none; }
.exp-card__img .cap { position: absolute; left: 14px; top: 12px; color: #fff; font-size: 12px; line-height: 15px; font-weight: 600; max-width: 140px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.exp-card__img .concept { position: absolute; right: 10px; top: 10px; font-size: 10px; font-family: var(--mono); letter-spacing: 0; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
.exp-card h3 { font-size: 15px; line-height: 22px; font-weight: 500; margin-top: 22px; }
.exp-card p { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 14px; flex: 1; }
.exp-card .try { align-self: center; margin-top: 22px; min-width: 134px; justify-content: center; font-weight: 400; font-size: 15px; padding: 0 20px; }

/* ───────── ask ───────── */
.ask { padding: 160px 41px 40px; }
.ask h2 { font-size: 32px; line-height: 42px; font-weight: 500; }
.ask__box { position: relative; max-width: 560px; margin: 150px auto 0; }
.ask__glow { position: absolute; left: 22%; right: 22%; top: -2px; height: 3px; border-radius: 4px; background: linear-gradient(90deg, transparent, #b7c6ff, var(--accent), #f6a6d0, transparent); filter: blur(2px); background-size: 200% 100%; animation: glow 5s linear infinite; }
@keyframes glow { to { background-position: -200% 0; } }
.ask__field { border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); padding: 14px 14px 10px; }
.ask__field input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; letter-spacing: -0.03em; color: var(--fg); padding: 2px 0 14px; }
.ask__field input::placeholder { color: var(--muted); }
.ask__row { display: flex; justify-content: space-between; align-items: center; }
.ask__row button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); }
.ask__row .send { border: 1.5px solid var(--fg-40); }
.ask__row .send:hover { color: var(--accent); border-color: var(--accent); }
.ask__hint { text-align: center; font-size: 11px; color: var(--muted); margin-top: 12px; }
.ask__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.ask__chips button { font-size: 12px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--secondary); color: var(--muted); }
.ask__chips button:hover { color: var(--fg); }
.ask__answer { max-width: 560px; margin: 18px auto 0; font-size: 15px; line-height: 22px; min-height: 44px; }
.ask__answer .q { color: var(--muted); font-size: 13px; }

/* ───────── about ───────── */
.about { padding: 120px 41px 40px; }
.about__label { font-size: 22px; color: var(--muted); font-weight: 400; }
.about h2 { font-size: 28px; line-height: 36px; font-weight: 500; color: var(--fg-80); margin-top: 24px; letter-spacing: -0.04em; }
.about__body { color: var(--fg-80); margin-top: 18px; display: grid; gap: 4px; max-width: 1116px; font-size: 16px; line-height: 24px; }
.photos { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 20px; margin-top: 56px; align-items: start; }
.photos .col { display: grid; gap: 20px; }
.tile { border-radius: 16px; background: var(--secondary); overflow: hidden; position: relative; }
.tile canvas { width: 100%; height: 100%; display: block; }
.tile.dots { background-image: radial-gradient(circle, var(--fg-40) 0.9px, transparent 1.2px); background-size: 8px 8px; -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 100%); mask: radial-gradient(closest-side, #000 25%, transparent 100%); background-color: transparent; }
.tile-wrap { border-radius: 16px; background: var(--secondary); }
.tile .cap { position: absolute; left: 10px; bottom: 10px; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.9); color: #111; }

.index { margin-top: 140px; }
.index h3, .stack h3 { font-size: 28px; line-height: 32px; font-weight: 500; color: var(--fg-80); }
.index table { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 14px; line-height: 20px; }
.index td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.index td:first-child { font-weight: 500; width: 36%; }
.index td.m { color: var(--muted); font-size: 12px; }
.index td.r { text-align: right; white-space: nowrap; font-size: 12px; color: var(--muted); }
.index tr { transition: background .2s; }
.index tr:hover { background: var(--secondary); }
.index tr:hover td.r { color: var(--accent); }

.stack { margin-top: 100px; }
.stack__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px 0; margin-top: 40px; }
.stack__grid figure { margin: 0; display: grid; justify-items: start; gap: 8px; }
.stack__grid .ic { width: 28px; height: 28px; background: var(--fg); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: background .25s, transform .3s; }
.stack__grid figure:hover .ic { background: var(--accent); transform: translateY(-2px); }
.stack__grid figcaption { font-size: 11px; color: var(--muted); opacity: 0; transition: opacity .25s; }
.stack__grid figure:hover figcaption { opacity: 1; }

.net { position: relative; height: 760px; margin: 40px -41px 0; }
.net canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ───────── quote + footer ───────── */
.quote { padding: 120px 0 0; text-align: center; }
.quote p { font-family: var(--hand); font-size: 32px; line-height: 32px; letter-spacing: 0; max-width: 380px; margin: 0 auto; }
.quote p .wd { display: inline-block; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.quote.on p .wd { opacity: 1; transform: none; }
.ascii { position: relative; height: 420px; margin-top: 40px; }
.ascii canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot { padding: 0 0 0; position: relative; overflow: clip; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 24px 0; }
.foot__row .half { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--fg); background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); margin-left: 8px; }
.foot__cols { display: flex; gap: 48px; }
.foot__cols nav { display: flex; flex-direction: column; gap: 6px; width: 120px; }
.foot__cols h5 { font-size: 15px; font-weight: 400; color: var(--muted); margin: 0 0 14px; }
.foot__cols a { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.foot__cols a:hover { color: var(--fg); border-color: var(--accent); }
.credit { display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; padding: 16px 0 0; }
.credit a { display: inline-flex; align-items: center; gap: 6px; }
.credit a:hover { color: var(--fg); }
.giant { font-size: clamp(160px, 31vw, 450px); line-height: .78; font-weight: 600; letter-spacing: -0.06em; color: var(--secondary); text-align: center; margin-top: 30px; user-select: none; white-space: nowrap; }
:root[data-theme="dark"] .giant { color: #151515; }

/* ───────── reveal ───────── */
.rv { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .8s; }
.rv.on { opacity: 1; transform: none; filter: none; }

/* ───────── menu sheet (mobile) ───────── */
.sheet { position: fixed; z-index: 60; left: 8px; top: 64px; width: min(280px, calc(100vw - 16px)); background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 8px; display: grid; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top left; pointer-events: none; transition: .25s; }
.sheet.open { opacity: 1; transform: none; pointer-events: auto; }
.sheet a { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--muted); }
.sheet a:hover { background: var(--secondary); color: var(--fg); }

/* ───────── responsive ───────── */
@media (max-width: 1279px) {
  .hero { grid-template-columns: 1fr 320px 1fr; gap: 32px; }
  .avatar { width: 320px; }
  .note { left: -96px; }
}
@media (max-width: 1100px) {
  .rail { display: none; }
  .wrap { padding: 0 24px; }
  .hline::before { left: 23px; } .hline::after { right: 23px; }
  .hero { grid-template-columns: 1fr 300px; grid-template-areas: "l a" "r a"; align-content: center; padding: 120px 40px 60px; row-gap: 32px; }
  .hero__left { grid-area: l; align-self: end; } .avatar { grid-area: a; width: 300px; } .hero__list { grid-area: r; justify-self: start; align-self: start; }
  .statement { font-size: 40px; line-height: 48px; }
  .demos { grid-template-columns: repeat(2, 1fr); }
  .demo, .demo--wide { grid-column: span 1; }
  .demo--wide:last-child { grid-column: span 2; }
  .case__grid { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .exp__grid { grid-template-columns: repeat(2, 1fr); }
  .stack__grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 860px) {
  .topbar { inset: 12px 0 auto; justify-content: flex-start; padding-left: 8px; }
  .pillnav { display: none; }
  .menu-btn { display: grid; position: static; width: 40px; height: 40px; }
  .topbar .cta { height: 40px; padding: 0; background: transparent; box-shadow: none; }
  .topbar .cta .cta__txt { display: none; }
  .topbar .cta__dots { width: 40px; height: 40px; border: 3px solid var(--primary); background: var(--bg); }
  .topbar .cta__dots i { left: 15px; top: 15px; }
  .theme-btn { top: 12px; right: 12px; width: 40px; height: 40px; }
  .chat-btn { width: 40px; height: 40px; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "l" "a" "r"; padding: 96px 16px 40px; min-height: 0; gap: 28px; }
  .hero__left { align-self: start; }
  .avatar { width: min(214px, 58vw); justify-self: center; margin-top: 34px; }
  .note { left: -74px; top: -40px; font-size: 28px; }
  .note svg { left: 52px; top: 20px; width: 56px; height: 40px; }
  .hero__list { justify-self: stretch; max-width: none; }
  .hero h1 { font-size: 40px; line-height: 42px; }
  .logos__band { height: 220px; }
  .statement { font-size: 30px; line-height: 38px; padding: 24px 6px 0; }
  .demos { grid-template-columns: 1fr; padding: 10px; max-height: none; margin-top: 40px; }
  .demo, .demo--wide, .demo--wide:last-child { grid-column: span 1; min-height: 400px; }
  .sec-head, .case__head { padding: 96px 16px 24px; }
  .case__head h3, .sec-head h2 { font-size: 26px; line-height: 32px; }
  .case__grid { grid-template-columns: 1fr; padding: 0 10px; }
  .shot { min-height: 0; }
  .shot__panel { margin-left: 18px; padding-left: 16px; }
  .shot__img { width: calc(100% - 16px); border-radius: 16px; }
  .shot__prompt { margin-left: -4px; }
  .shot__meta { padding: 20px 18px 22px; }
  .info { padding: 32px 16px 24px; gap: 32px; }
  .info__card { min-height: 0; padding: 28px 18px; }
  .feats { grid-template-columns: 1fr; padding: 12px 10px 0; }
  .feat { gap: 48px; padding: 28px 20px; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .chips .t { display: none; }
  .chips button { padding: 0 10px; }
  .works[data-view="grid"] .cases { grid-template-columns: 1fr; padding: 0 10px 48px; }
  .works[data-view="deck"] .cases { height: 1040px; margin: 0 10px 48px; }
  .exp { padding: 96px 16px 64px; }
  .exp h2 { margin-bottom: 48px; }
  .exp__grid { grid-template-columns: 1fr; gap: 48px; }
  .ask { padding: 96px 16px 24px; }
  .ask__box { margin-top: 60px; }
  .about { padding: 80px 16px 24px; }
  .about h2 { font-size: 24px; line-height: 32px; }
  .photos { grid-template-columns: 1fr; }
  .index { margin-top: 80px; }
  .index td { padding: 10px 6px; }
  .index td.m { display: none; }
  .stack__grid { grid-template-columns: repeat(3, 1fr); justify-items: center; }
  .stack__grid figure { justify-items: center; }
  .net { height: 940px; margin: 24px -16px 0; }
  .ascii { height: 260px; }
  .foot__row { flex-direction: column; }
  .giant { font-size: 34vw; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 38px; line-height: 40px; }
  .chips button { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; filter: none; }
  .statement .w { opacity: 1; }
  .note .txt { clip-path: none; } .note .draw { stroke-dashoffset: 0; }
  .receipt { transition: none; }
}
