/* =========================================================
   Sinan Chengoli — portfolio
   Tines-faithful system: cream page, monochrome purple ink,
   grotesk + serif + mono, hairline tone cards, quiet hovers.
   ========================================================= */

:root {
  --bg: #fcf9f5;
  --bg-2: #f8f4f0;
  --fg: #714bd0;          /* purple55 — the page ink */
  --fg-strong: #5d38ae;   /* purple65 */
  --fg-deep: #4a288a;     /* purple75 */
  --acc2: #f4f2fa;
  --acc5: #ebe8fc;
  --acc10: #dbd7ff;
  --acc25: #aca4ff;
  --acc40: #8a74f4;
  --night: #211735;

  /* tone families: ink / hover-border / tint / fill */
  --purple: #714bd0; --purple-b: #aca4ff; --purple-t: #ebe8fc; --purple-f: #c2aafa;
  --green: #007f4a;  --green-b: #7ac8a2;  --green-t: #ddebe1;  --green-f: #87d1a3;
  --orange: #c4521f; --orange-b: #fe9c62; --orange-t: #ffe0cb; --orange-f: #ffaf7e;
  --teal: #077a79;   --teal-b: #67c9c2;   --teal-t: #e1f0eb;   --teal-f: #8edbcf;
  --blue: #4164c5;   --blue-b: #96bdf3;   --blue-t: #dce5f7;   --blue-f: #96bdf3;
  --gold: #a06b2b;   --gold-b: #f5a847;   --gold-t: #feefdf;   --gold-f: #fdbd74;
  --pink: #c13f82;   --pink-b: #f486b8;   --pink-t: #fde1e9;   --pink-f: #fda2cb;

  --sans: 'Figtree', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', Menlo, monospace;

  --page: 35px;
  --grid: 1128px;
  --wide: 1520px;
  --section: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
.t-purple { --t: var(--purple); --tb: var(--purple-b); --tt: var(--purple-t); --tf: var(--purple-f); }
.t-green { --t: var(--green); --tb: var(--green-b); --tt: var(--green-t); --tf: var(--green-f); }
.t-orange { --t: var(--orange); --tb: var(--orange-b); --tt: var(--orange-t); --tf: var(--orange-f); }
.t-teal { --t: var(--teal); --tb: var(--teal-b); --tt: var(--teal-t); --tf: var(--teal-f); }
.t-blue { --t: var(--blue); --tb: var(--blue-b); --tt: var(--blue-t); --tf: var(--blue-f); }
.t-gold { --t: var(--gold); --tb: var(--gold-b); --tt: var(--gold-t); --tf: var(--gold-f); }
.t-pink { --t: var(--pink); --tb: var(--pink-b); --tt: var(--pink-t); --tf: var(--pink-f); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.15; -webkit-font-smoothing: antialiased; text-wrap: pretty; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--acc10); color: var(--fg-deep); }
:focus-visible { outline: 2px solid var(--acc40); outline-offset: 2px; border-radius: 4px; }
@view-transition { navigation: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--page) * 2, var(--grid)); margin-inline: auto; }
.wide { width: min(100% - var(--page) * 2, var(--wide)); margin-inline: auto; }
.sec { margin-top: var(--section); }
.center { text-align: center; }

/* ---------- type ---------- */
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; }
.h1 { font-size: clamp(40px, 6.2vw, 64px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
.h2s { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 48px); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 3.6vw, 38px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
.h3 { font-size: clamp(26px, 3vw, 32px); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.byline { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 24px); font-weight: 400; line-height: 1.3; }
.lead-s { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; }
.lead { font-size: 20px; font-weight: 500; line-height: 1.45; }
.body { font-size: 16px; font-weight: 500; line-height: 1.5; }
.item-t { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.small { font-size: 14px; font-weight: 500; line-height: 1.4; }
.it { font-family: var(--serif); font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; min-width: 6.5em; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--fg);
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  background: var(--fg); color: var(--bg);
  transition: filter 0.15s, background-color 0.15s, border-color 0.15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { filter: brightness(0.9); }
.btn-o { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.btn-o:hover { filter: none; background: color-mix(in srgb, color-mix(in srgb, var(--fg) 10%, var(--bg)) 85%, transparent); border-color: var(--fg); }
.btn-t { background: var(--t); border-color: var(--t); color: #fff; }
.btn-lg { min-height: 42px; padding: 0 24px; }
.arrow-link { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; display: inline-flex; gap: 6px; align-items: center; }
.arrow-link .ar { display: inline-block; transition: transform 0.2s; }
a:hover .arrow-link .ar, .arrow-link:hover .ar { transform: translateX(3px); }
.u { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.u:hover { text-decoration-color: currentColor; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 1000; }
.header-blur { position: absolute; inset: 0 0 -20px; z-index: -1; opacity: 0; pointer-events: none; background: rgb(252 249 245 / 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); mask-image: linear-gradient(#000 0%, #000 30%, transparent); transition: opacity 0.2s; }
.header-pill { position: absolute; left: calc(var(--page) - 12px); right: calc(var(--page) - 12px); top: 6px; bottom: 0; max-width: calc(var(--wide) - 2 * var(--page) + 24px); margin-inline: auto; z-index: -1; opacity: 0; pointer-events: none; background: rgb(252 249 245 / 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; transition: opacity 0.2s; }
html[data-scrolled='true'] .header-blur, html[data-scrolled='true'] .header-pill { opacity: 1; }
.bar { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 18px var(--page) 12px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; flex: none; }
.logo-mark { width: 28px; height: 28px; }
.logo-mark svg { width: 100%; height: 100%; }
.logo:hover .logo-mark svg { animation: spin 4s linear infinite; }
.navlist { display: flex; align-items: center; gap: 2px; }
.navlist a, .cta-s { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 50px; font-size: 14px; font-weight: 600; transition: background-color 0.15s; white-space: nowrap; }
.navlist a:hover, .cta-s:hover, .navlist a[aria-current='page'] { background: var(--acc5); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cta-f { margin-left: 12px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 10px 20px; border-radius: 99px; background: var(--fg); color: var(--bg); transition: background-color 0.15s; }
.cta-f:hover { background: color-mix(in srgb, var(--fg) 85%, var(--bg)); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--acc5); margin-left: 8px; transition: background-color 0.15s; }
.icon-btn:hover { background: var(--acc10); }
.menu-btn { display: none; }

/* announcement */
.announce { background: var(--night); color: #fff; font-size: 15px; font-weight: 500; }
.announce-in { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 9px var(--page); position: relative; }
.announce a.pill { background: #fff; color: var(--night); font-weight: 700; font-size: 13.5px; padding: 4px 9px; border-radius: 6px; transition: background-color 0.15s; }
.announce a.pill:hover { background: var(--acc10); }
.announce button { position: absolute; right: var(--page); opacity: 0.8; font-size: 18px; }
.announce button:hover { opacity: 1; }

/* mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 999; background: var(--bg); padding: 90px var(--page) 32px; display: flex; flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s; }
.menu-open .sheet { opacity: 1; visibility: visible; }
.sheet a.big { font-size: 34px; letter-spacing: -0.03em; padding: 12px 0; border-bottom: 1px solid var(--acc10); transform: translateY(8px); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s; }
.menu-open .sheet a.big { transform: none; opacity: 1; }
.menu-open .sheet a.big:nth-child(2) { transition-delay: 0.03s; } .menu-open .sheet a.big:nth-child(3) { transition-delay: 0.06s; } .menu-open .sheet a.big:nth-child(4) { transition-delay: 0.09s; } .menu-open .sheet a.big:nth-child(5) { transition-delay: 0.12s; }
.sheet .btns { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 40px; position: relative; }
.tagpill { display: inline-flex; align-items: stretch; height: 30px; border: 1px solid var(--fg); border-radius: 28px; background: rgb(252 249 245 / 0.55); font-size: 14px; font-weight: 600; overflow: hidden; transition: background-color 0.15s; }
.tagpill:hover { background: var(--acc5); }
.tagpill span { display: inline-flex; align-items: center; padding: 0 10px; }
.tagpill span:first-child { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-right: 1px solid var(--fg); }
.tagpill .ar { transition: transform 0.2s; display: inline-block; margin-left: 4px; }
.tagpill:hover .ar { transform: translateX(3px); }
.hero h1 { margin-top: 12px; }
.hero .byline { margin-top: 30px; }
.logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 44px; margin-top: 32px; padding-inline: 12px; }
.logos a { display: block; opacity: 0.95; transition: opacity 0.15s; }
.logos a:hover { opacity: 1; }
.logos img { height: 30px; width: auto; filter: brightness(0) saturate(100%) invert(31%) sepia(62%) saturate(2070%) hue-rotate(246deg) brightness(86%) contrast(92%); }
.hero-ctas { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }

/* workspace mock */
.ws-zone { position: relative; margin-top: 44px; }
.ws-mound { position: absolute; bottom: 64%; width: 300px; height: 170px; z-index: 0; pointer-events: none; }
.ws-mound svg { width: 100%; height: 100%; }
.ws-mound.l { left: 2%; } .ws-mound.r { right: 2%; }
.ws-mound.bl { left: 6%; bottom: -60px; top: auto; height: 120px; width: 240px; z-index: 3; }
.ws { position: relative; z-index: 2; width: min(100% - 40px, 1180px); margin-inline: auto; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 16px; background: var(--acc2); padding: 8px; box-shadow: 0 30px 60px -40px rgb(74 40 138 / 0.45); text-align: left; }
.ws-tag { position: absolute; left: 24px; top: -14px; z-index: 3; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--fg); color: #fff; padding: 6px 10px; border-radius: 6px; }
.ws-tag::after { content: ''; position: absolute; left: 14px; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.ws-time { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--acc5); margin-bottom: 8px; font-size: 12.5px; font-weight: 600; }
.ws-track { flex: 1; height: 3px; background: color-mix(in srgb, var(--fg) 20%, transparent); border-radius: 3px; position: relative; overflow: hidden; }
.ws-track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--fg); border-radius: 3px; animation: track 40s linear infinite; }
.ws-body { display: grid; grid-template-columns: 200px 1fr; gap: 8px; min-height: 520px; }
.ws-side { padding: 10px 8px; font-size: 13.5px; font-weight: 500; display: flex; flex-direction: column; gap: 2px; }
.ws-seg { display: inline-flex; background: #fff; border-radius: 99px; padding: 3px; gap: 2px; margin-bottom: 10px; align-self: flex-start; border: 1px solid var(--acc10); }
.ws-seg span { padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.ws-seg span.on { background: var(--acc5); }
.ws-side a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; transition: background-color 0.15s; }
.ws-side a:hover, .ws-side a.on { background: var(--acc5); }
.ws-side .grp { font-size: 11.5px; font-weight: 600; opacity: 0.7; padding: 16px 8px 6px; display: flex; justify-content: space-between; }
.ws-side .hash { opacity: 0.6; width: 14px; text-align: center; }
.ws-main { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--acc10); }
.ws-banner { position: relative; height: 170px; overflow: hidden; }
.ws-banner > div:first-child { position: absolute; inset: 0; }
.ws-banner svg { width: 100%; height: 100%; }
.prompt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92%, 520px); background: rgb(255 255 255 / 0.88); backdrop-filter: blur(8px); border-radius: 12px; border: 1px solid var(--acc10); padding: 10px 12px; box-shadow: 0 8px 24px -12px rgb(74 40 138 / 0.4); }
.prompt-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.prompt-h b { display: inline-flex; align-items: center; gap: 6px; }
.prompt-h b::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); }
.prompt-chip { font-size: 11.5px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--acc10); }
.prompt-in { margin-top: 8px; min-height: 40px; font-size: 13px; font-weight: 500; color: var(--fg-deep); line-height: 1.4; }
.prompt-in .caret { display: inline-block; width: 1.5px; height: 1em; background: var(--fg); vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
.prompt-f { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.prompt-f span { font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: var(--acc2); }
.prompt-f i { width: 22px; height: 22px; border-radius: 50%; background: var(--fg-deep); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; }
.ws-tabs { display: flex; gap: 6px; padding: 14px 16px 10px; border-bottom: 1px solid var(--acc5); }
.ws-tabs span { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.ws-tabs span.on { background: var(--acc2); }
.ws-tabs small { background: var(--acc5); padding: 1px 6px; border-radius: 99px; font-size: 11px; }
.ws-table { width: 100%; font-size: 13px; }
.ws-head, .ws-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 0 16px; }
.ws-head { font-size: 11.5px; font-weight: 600; opacity: 0.7; height: 34px; border-bottom: 1px solid var(--acc5); }
.ws-row { height: 52px; border-bottom: 1px solid var(--acc5); transition: background-color 0.15s; }
.ws-row:hover { background: var(--acc2); }
.ws-row .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-row .ic { width: 24px; height: 24px; flex: none; border-radius: 6px; overflow: hidden; }
.ws-row .ic svg { width: 100%; height: 100%; }
.ws-row b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-row small { display: block; font-size: 11.5px; opacity: 0.75; margin-top: 2px; }
.ws-row small::before { content: '●'; color: #25a871; margin-right: 4px; font-size: 9px; }
.ws-row .space { justify-self: start; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--acc5); }
.ws-row .yr { font-family: var(--mono); font-size: 11.5px; opacity: 0.8; }
.ws-row .go { justify-self: end; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--acc5); font-size: 11px; transition: transform 0.2s, background-color 0.15s; }
.ws-row:hover .go { background: var(--fg); color: #fff; transform: translateX(2px); }

/* ---------- mascot ---------- */
.mascot { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; align-items: center; gap: 0; }
.mascot-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--bg); border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); box-shadow: 0 10px 30px -12px rgb(74 40 138 / 0.5); display: grid; place-items: center; transition: transform 0.3s var(--ease), border-color 0.15s; }
.mascot-btn:hover { transform: scale(1.06); border-color: var(--fg); }
.mascot-btn svg { width: 52px; height: 52px; overflow: visible; }
.mascot-tip { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #c95d28; color: #fff; padding: 6px 10px; border-radius: 6px; margin-right: 10px; opacity: 0; transform: translateX(6px); transition: opacity 0.2s, transform 0.3s var(--ease); pointer-events: none; }
.mascot:hover .mascot-tip, .mascot.say .mascot-tip { opacity: 1; transform: none; }
.m-ring { transform-box: fill-box; transform-origin: center; animation: spin 5s linear infinite; }
.m-body { transform-box: fill-box; transform-origin: center; animation: breathe 3.8s ease-in-out infinite; }
.m-face { transition: transform 0.3s ease-out; }
.m-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4s ease-in-out infinite; }
.m-z { opacity: 0; }
.mascot.sleep .m-eyes { animation: none; transform: scaleY(0.1); }
.mascot.sleep .m-z { animation: floatZ 3s ease-out infinite; }
.mascot.sleep .m-z:nth-of-type(2) { animation-delay: 1s; }
.mascot.sleep .m-z:nth-of-type(3) { animation-delay: 2s; }

/* ---------- build section ---------- */
.build { display: grid; grid-template-columns: minmax(0, 408px) minmax(0, 1fr); gap: 40px; align-items: center; }
.build .kicker { margin-bottom: 42px; }
.build .lead-s { margin-top: 30px; max-width: 408px; }
.build-art { margin-right: calc(var(--page) * -1); }
.build-art svg { width: 100%; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; margin-top: 56px; }
.tcard { position: relative; border: 1px solid var(--t); color: var(--t); border-radius: 6px; padding: 26px 26px 24px; background: var(--bg); transition: border-color 0.15s; }
.tcard:hover { border-color: var(--tb); }
.trio .tcard:nth-child(1) { border-radius: 14px 6px 6px 6px; }
.trio .tcard:nth-child(3) { border-radius: 6px 14px 6px 6px; }
.trio .tcard { display: flex; flex-direction: column; }
.trio .tcard ul { flex: 1; display: flex; flex-direction: column; }
.trio .tcard li:last-child { flex: 1; }
.tcard .tc-art { width: 72px; height: 72px; margin: 0 0 22px; }
.tcard .tc-art svg { width: 100%; height: 100%; }
.tcard h3 { font-size: 38px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.tcard ul { margin-top: 22px; }
.tcard li { border-top: 1px solid currentColor; padding: 16px 0 18px; }
.tcard li:last-child { padding-bottom: 0; }
.tcard li b { display: block; font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.25; margin-bottom: 6px; }
.tcard li span { font-size: 16px; font-weight: 500; line-height: 1.4; }
.center-btn { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- band ---------- */
.band { position: relative; border-radius: 24px; background: var(--acc5); overflow: hidden; }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding: 64px 40px 0; }
.band-in .lead { margin-top: 24px; max-width: 30ch; }
.band-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.band-items .body { margin-top: 12px; }
.band-items .n { font-family: var(--mono); font-size: 12px; font-weight: 700; display: block; margin-bottom: 12px; opacity: 0.7; }
.band-field { height: 220px; margin-top: 30px; }
.band-field svg { width: 100%; height: 100%; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
.quotes-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.qcard { background: var(--tt); color: var(--t); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; border: 1px solid transparent; transition: filter 0.15s, border-color 0.15s; }
.qcard:hover { filter: brightness(1.03); border-color: color-mix(in srgb, currentColor 40%, transparent); }
.qmark { width: 36px; height: 36px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; line-height: 1; padding-top: 10px; }
.qcard blockquote { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.015em; margin-top: 24px; }
.quotes-3 .qcard blockquote { font-size: 22px; line-height: 1.25; }
.qcard figcaption { border-top: 1px solid currentColor; padding-top: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.qcard .person { font-size: 16px; font-weight: 500; line-height: 1.4; }
.qcard .person b { display: block; font-weight: 600; }
.qcard .badge { width: 40px; height: 40px; flex: none; }

/* ---------- solutions-style project cards ---------- */
.statement { max-width: 760px; margin-inline: auto; text-align: center; }
.statement .lead-s { margin-top: 18px; font-weight: 400; max-width: 34ch; margin-inline: auto; }
.statement .btn { margin-top: 30px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 40px; }
.pcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--t); color: var(--t); border-radius: 6px; padding: 24px; background: var(--bg); min-height: 244px; transition: border-color 0.15s; }
.pcard:hover { border-color: var(--tb); }
.pgrid > .pcard:nth-child(1) { border-top-left-radius: 14px; }
.pgrid > .pcard:nth-child(3) { border-top-right-radius: 14px; }
.pgrid > .pcard:nth-last-child(3) { border-bottom-left-radius: 14px; }
.pgrid > .pcard:nth-last-child(1) { border-bottom-right-radius: 14px; }
.pcard .pc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pcard .pc-icon { width: 30px; height: 30px; }
.pcard .pc-icon svg { width: 100%; height: 100%; }
.pcard .pc-yr { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.pcard h3 { margin-top: 20px; }
.pcard p { margin: 12px 0 38px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.pcard .arrow-link { margin-top: auto; }
.pcard .pc-art { position: absolute; right: 14px; bottom: 14px; width: 92px; height: 92px; opacity: 0; transform: scale(0.85) rotate(-20deg); transition: opacity 0.3s, transform 0.6s var(--ease); pointer-events: none; }
.pcard:hover .pc-art { opacity: 1; transform: none; }
.pcard .pc-art svg { width: 100%; height: 100%; }
.pcard.is-out { display: none; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.filter { height: 32px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 600; background: var(--acc5); transition: background-color 0.15s, color 0.15s; }
.filter:hover { background: var(--acc10); }
.filter[aria-pressed='true'] { background: var(--fg); color: #fff; }
.filter sup { font-size: 10px; opacity: 0.7; margin-left: 3px; top: -0.3em; }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.tabs { margin-top: 32px; border-top: 1px solid currentColor; }
.tab { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 16px 4px; border-bottom: 1px solid var(--acc10); text-align: left; transition: background-color 0.15s, padding 0.25s var(--ease); border-radius: 0; }
.tab .n { font-family: var(--mono); font-size: 12px; font-weight: 700; opacity: 0.7; }
.tab .t { font-size: 22px; letter-spacing: -0.02em; }
.tab .y { font-family: var(--mono); font-size: 12px; font-weight: 700; opacity: 0; transition: opacity 0.15s; }
.tab:hover { background: var(--acc2); }
.tab[aria-selected='true'] { color: var(--t); padding-left: 12px; background: var(--tt); }
.tab[aria-selected='true'] .y, .tab:hover .y { opacity: 1; }
.panel { position: sticky; top: 110px; }
.panel .tcard { min-height: 420px; overflow: hidden; border-radius: 14px 6px 6px 6px; }
.panel .lead-s { margin-top: 16px; max-width: 32ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; max-width: 72%; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); font-size: 13.5px; font-weight: 600; }
.years { font-family: var(--serif); font-size: 80px; line-height: 1; letter-spacing: -0.03em; margin-top: 36px; }
.years small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 8px; }
.panel .sp-art { position: absolute; right: -50px; bottom: -50px; width: 290px; height: 290px; pointer-events: none; }
.panel .sp-art svg { width: 100%; height: 100%; }
[role='tabpanel'][hidden] { display: none; }
.snappy { animation: snappyIn 0.4s var(--ease) both; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid currentColor; }
.stat { padding: 22px 18px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--acc10); }
.stat .v { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.4; }

/* ---------- case ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.case .tcard { padding: 0; overflow: hidden; }
.case .tcard:first-child { border-radius: 14px 6px 6px 6px; }
.case .tcard:last-child { border-radius: 6px 14px 6px 6px; padding: 24px; }
.case-q { padding: 24px; }
.case-q blockquote { font-family: var(--serif); font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 14px; }
.case-q p { margin-top: 14px; font-size: 14.5px; font-weight: 500; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; }
.metric { padding: 20px 24px; border-top: 1px solid var(--t); }
.metric:nth-child(odd) { border-right: 1px solid var(--t); }
.metric .v { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.metric .l { margin-top: 8px; font-size: 14px; font-weight: 500; }
.chart { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 10px; height: 170px; margin-top: 50px; }
.chart .bar-c { position: relative; height: 0; border-radius: 8px 8px 3px 3px; border: 1px solid var(--t); background: var(--tt); transition: height 1.2s var(--ease); }
.chart .bar-c:last-child { background: var(--t); }
.chart .bar-c b { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.in .chart .bar-c { height: var(--h); }

/* ---------- writing ---------- */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.post { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; align-items: start; }
.post .pa { width: 104px; height: 104px; border-radius: 10px; background: var(--tt); padding: 8px; }
.post .pa svg { width: 100%; height: 100%; }
.post time { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.post h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 8px 0 10px; }
.post p { font-size: 15px; font-weight: 500; line-height: 1.45; }
.posts > .pcard:nth-child(1) { border-top-left-radius: 14px; }
.posts > .pcard:nth-child(2) { border-top-right-radius: 14px; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.faq .lead-s { margin-top: 18px; }
.qa { border-top: 1px solid currentColor; }
.qa details { border-bottom: 1px solid var(--acc10); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 2px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; transition: opacity 0.15s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { opacity: 0.8; }
.qa .pm { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--acc5); position: relative; transition: background-color 0.15s, transform 0.3s var(--ease); }
.qa .pm::before, .qa .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.qa .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s var(--ease); }
.qa details[open] .pm { background: var(--fg); color: #fff; }
.qa details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.qa .ans { padding: 0 2px 22px; font-size: 16px; font-weight: 500; line-height: 1.55; max-width: 62ch; }
.qa details[open] .ans { animation: snappyIn 0.35s var(--ease); }

/* ---------- CTA + footer ---------- */
.final { text-align: center; position: relative; }
.final .tag { font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; max-width: 528px; margin: 0 auto 12px; }
.final .btns { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.final-field { height: 260px; margin-top: 40px; }
.final-field svg { width: 100%; height: 100%; }
.footer { background: var(--bg); padding: 56px 0 32px; border-top: 1px solid var(--acc10); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; opacity: 0.8; }
.foot li + li { margin-top: 10px; }
.foot a { font-size: 15px; font-weight: 500; transition: color 0.15s; }
.foot a:hover { color: var(--acc40); }
.foot-b { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-right: 80px; padding-top: 20px; border-top: 1px solid var(--acc10); font-size: 13.5px; font-weight: 500; }
.clock { font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* contact form */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.form { display: grid; gap: 10px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); background: #fff; border-radius: 8px; padding: 24px 14px 9px; font-size: 16px; font-weight: 500; outline: none; transition: border-color 0.15s, box-shadow 0.15s; resize: vertical; color: var(--fg-deep); }
.field textarea { min-height: 130px; }
.field label { position: absolute; left: 15px; top: 17px; font-size: 15px; font-weight: 500; opacity: 0.75; pointer-events: none; transition: top 0.2s var(--ease), font-size 0.2s; }
.field input:focus, .field textarea:focus { border-color: var(--fg); box-shadow: 0 0 0 3px var(--acc5); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 11.5px; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label { height: 32px; padding: 0 13px; border-radius: 99px; background: var(--acc5); display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.topics label:hover { background: var(--acc10); }
.topics input:checked + label { background: var(--fg); color: #fff; }
.topics input:focus-visible + label { outline: 2px solid var(--acc40); outline-offset: 2px; }
.lines { border-top: 1px solid currentColor; margin-top: 28px; }
.lines > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--acc10); font-size: 16px; font-weight: 500; }
.lines .k { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.copy { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--acc5); transition: background-color 0.15s; }
.copy:hover { background: var(--acc10); }

/* ---------- inner pages ---------- */
.page-head { padding-top: 48px; text-align: center; }
.page-head .lead-s { margin: 22px auto 0; max-width: 40ch; font-weight: 400; }
.crumbs { display: flex; gap: 8px; justify-content: center; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; }
.crumbs a { opacity: 0.75; transition: opacity 0.15s; } .crumbs a:hover { opacity: 1; }
.p-hero-art { height: 340px; margin-top: 32px; position: relative; }
.p-hero-art .net { position: absolute; inset: 0; }
.p-hero-art svg { width: 100%; height: 100%; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--t); border-radius: 14px 14px 6px 6px; color: var(--t); background: var(--bg); position: relative; z-index: 2; }
.facts > div { padding: 18px 20px; }
.facts > div + div { border-left: 1px solid var(--t); }
.facts dt { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.facts dd { font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.p-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 110px; align-self: start; display: grid; gap: 2px; }
.toc a { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 99px; transition: background-color 0.15s; opacity: 0.75; }
.toc a:hover { background: var(--acc5); opacity: 1; }
.toc a.on { background: var(--tt); color: var(--t); opacity: 1; }
.psec + .psec { margin-top: 72px; }
.psec > .kicker { color: var(--t); display: block; margin-bottom: 22px; }
.psec p { font-size: 18px; font-weight: 500; line-height: 1.6; max-width: 64ch; }
.psec p + p { margin-top: 14px; }
.psec .lead-s { font-size: 26px; line-height: 1.32; font-weight: 400; max-width: 36ch; }
.steps { display: grid; gap: 8px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 20px; border: 1px solid var(--t); color: var(--t); border-radius: 6px; font-size: 17px; font-weight: 500; line-height: 1.5; counter-increment: s; transition: border-color 0.15s; }
.steps li:hover { border-color: var(--tb); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; font-weight: 700; padding-top: 4px; }
.outcome { background: var(--tt); color: var(--t); border-radius: 12px; padding: 32px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.01em; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery button { border-radius: 8px; overflow: hidden; background: var(--tt); border: 1px solid color-mix(in srgb, var(--t) 30%, transparent); cursor: zoom-in; transition: border-color 0.15s, filter 0.15s; }
.gallery button:hover { border-color: var(--t); filter: brightness(1.04); }
.gallery button:first-child { grid-column: span 2; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery button:first-child img { aspect-ratio: 16 / 10; }
.next { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 24px; padding: 32px; border-radius: 14px 14px 6px 6px; border: 1px solid var(--t); color: var(--t); transition: border-color 0.15s; }
.next:hover { border-color: var(--tb); }
.next .na { height: 180px; }
.next .na svg { width: 100%; height: 100%; }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgb(33 23 53 / 0.9); display: none; align-items: center; justify-content: center; padding: 64px 20px; }
.lightbox.open { display: flex; animation: fade 0.2s; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 10px; border: 2px solid var(--acc25); animation: frameIn 0.3s var(--ease); }
.lb { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--fg); display: grid; place-items: center; font-size: 18px; transition: filter 0.15s; }
.lb:hover { filter: brightness(0.95); }
.lb-x { top: 16px; right: 16px; } .lb-p { left: 16px; top: 50%; transform: translateY(-50%); } .lb-n { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-c { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--mono); font-size: 12px; }

/* article */
.article { max-width: 680px; margin-inline: auto; }
.a-art { width: 140px; height: 140px; margin: 0 auto 26px; }
.a-art svg { width: 100%; height: 100%; }
.prose { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--fg-strong); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--sans); font-size: 30px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; margin-top: 1.8em; color: var(--fg); }
.prose ul, .prose ol { display: grid; gap: 10px; font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 1.5; }
.prose ul li { padding-left: 24px; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--tf, var(--acc25)); border: 1px solid var(--t, var(--fg)); }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; padding: 16px 18px 16px 56px; border: 1px solid var(--t, var(--fg)); border-radius: 6px; position: relative; color: var(--t, var(--fg)); }
.prose ol li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 18px; top: 19px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.prose strong { font-weight: 700; }
.pull { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.25; color: var(--t); text-align: center; padding: 28px 0; border-block: 1px solid var(--t); margin-block: 1.6em !important; }
.by { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; margin-top: 26px; text-align: left; }
.by img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--t, var(--fg)); z-index: 1100; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.about .lead-s { margin-top: 26px; }
.about .body { margin-top: 16px; max-width: 54ch; }
.portrait { position: relative; aspect-ratio: 1; }
.portrait .wr { position: absolute; inset: -5%; }
.portrait .wr svg { width: 100%; height: 100%; }
.portrait .ph { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; border: 1px solid var(--fg); }
.portrait .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait .st { position: absolute; right: 4%; bottom: 10%; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: #c95d28; color: #fff; padding: 7px 11px; border-radius: 6px; transform: rotate(-6deg); }
.awards { border-top: 1px solid currentColor; }
.awards li { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--acc10); }
.awards .y { font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.awards b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.awards span { font-size: 15px; font-weight: 500; opacity: 0.85; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.team .pcard { min-height: 0; }
.team .badge { width: 48px; height: 48px; }
.team b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-top: 20px; }
.team .r { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin: 6px 0 10px; }
.team p { margin: 0; font-size: 15px; }

/* dot portrait */
.meet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.meet .lead-s { margin-top: 22px; max-width: 34ch; }
.dots { position: relative; aspect-ratio: 4 / 5; border-radius: 14px 6px 6px 6px; overflow: hidden; background: var(--fg); cursor: crosshair; touch-action: pan-y; }
.dots canvas { position: absolute; inset: 0; display: block; }
.dots-hint { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg); background: var(--bg); padding: 5px 9px; border-radius: 6px; transition: opacity 0.3s; pointer-events: none; }
.dots:hover .dots-hint { opacity: 0; }
.dots.dots-fail { background: var(--fg) center / cover no-repeat; }

/* cmdk + toast */
.cmdk { position: fixed; inset: 0; z-index: 2500; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgb(33 23 53 / 0.3); }
.cmdk.open { display: flex; animation: fade 0.15s; }
.cmdk-box { width: min(600px, 100%); background: var(--bg); color: var(--fg); border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 16px; box-shadow: 0 6px 16px rgb(33 23 53 / 0.12), 0 30px 80px -30px rgb(33 23 53 / 0.5); overflow: hidden; animation: snappyIn 0.3s var(--ease); }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--acc10); }
.cmdk-in input { flex: 1; height: 56px; border: 0; outline: none; background: none; font-size: 17px; font-weight: 500; color: var(--fg-deep); }
.cmdk-in input::placeholder { color: var(--fg); opacity: 0.6; }
kbd { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--acc5); }
.cmdk-list { max-height: min(56vh, 420px); overflow: auto; padding: 6px; }
.cmdk-g { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 12px 10px 6px; opacity: 0.7; }
.cmdk-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; }
.cmdk-i .ic { width: 22px; height: 22px; flex: none; border-radius: 5px; overflow: hidden; }
.cmdk-i .ic svg { width: 100%; height: 100%; }
.cmdk-i small { margin-left: auto; font-size: 12.5px; opacity: 0.7; }
.cmdk-i[aria-selected='true'] { background: var(--acc5); }
.cmdk-e { padding: 28px; text-align: center; font-weight: 500; }
.cmdk-f { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--acc10); font-size: 12px; font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 3100; transform: translate(-50%, 12px); background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.nf { text-align: center; padding: 80px 0 40px; }
.nf .art { width: 200px; height: 200px; margin: 0 auto 24px; }

/* ---------- motion ---------- */
.art-spin { animation: spin var(--dur, 120s) linear infinite; transform-box: view-box; }
.art-spin.rev { animation-direction: reverse; }
.art-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease); }
.is-drawn .art-draw { stroke-dashoffset: 0; }
.float { animation: floaty var(--fd, 7s) ease-in-out infinite alternate; }
.sway { animation: sway var(--sd, 6s) ease-in-out infinite alternate; transform-box: view-box; }
.bob { animation: bob var(--bd, 7s) ease-in-out infinite alternate; }
.pipe-flow { animation: flow 2.4s linear infinite; }
.rv { opacity: 0; transform: translateY(12px); }
.rv.in { animation: snappyIn 0.6s var(--ease) both; animation-delay: var(--d, 0s); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(var(--fy, 5px)); } }
@keyframes sway { from { transform: rotate(calc(var(--sw, 3deg) * -1)); } to { transform: rotate(var(--sw, 3deg)); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(var(--by, 6px)); } }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes track { from { width: 0; } to { width: 100%; } }
@keyframes snappyIn { 0% { opacity: 0; transform: translateY(12px); } 0.1% { opacity: 1; transform: translateY(12px); } 100% { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes frameIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.05); } }
@keyframes breathe { 0%, 100% { transform: translateY(0.8px); } 50% { transform: translateY(-0.8px); } }
@keyframes floatZ { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, -14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .art-draw { stroke-dashoffset: 0; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  :root { --page: 24px; --section: 80px; }
  .navlist, .bar-right .cta-s { display: none; }
  .menu-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--acc5); margin-left: 6px; }
  .build, .skills, .faq, .contact, .about, .case, .meet { grid-template-columns: 1fr; }
  .dots { max-width: 480px; width: 100%; margin-inline: auto; }
  .build-art { margin: 0; }
  .panel { position: static; }
  .band-in { grid-template-columns: 1fr; padding: 48px 28px 0; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid > .pcard { border-radius: 6px !important; }
  .quotes, .quotes-3 { grid-template-columns: 1fr; }
  .ws-body { grid-template-columns: 1fr; }
  .ws-side { display: none; }
  .ws-mound { display: none; }
  .p-body { grid-template-columns: 1fr; }
  .toc { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--t); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--acc10); }
  .portrait { max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 720px) {
  :root { --page: 18px; --section: 64px; }
  .announce { font-size: 13px; }
  .bar .cta-f { display: none; }
  .trio, .pgrid, .posts, .band-items, .team, .gallery { grid-template-columns: 1fr; }
  .trio .tcard:nth-child(n) { margin-top: 0; }
  .gallery button:first-child { grid-column: auto; }
  .ws-head { display: none; }
  .ws-row { grid-template-columns: minmax(0, 1fr) 24px; }
  .ws-row .space, .ws-row .yr { display: none; }
  .ws-banner { height: 150px; }
  .logos { gap: 14px 28px; }
  .logos img { height: 24px; }
  .post { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .post .pa { width: 72px; height: 72px; }
  .chips { max-width: 100%; }
  .panel .sp-art { opacity: 0.35; }
  .next { grid-template-columns: 1fr; }
  .next .na { display: none; }
  .awards li { grid-template-columns: 60px 1fr; }
  .awards li > span:last-child { grid-column: 2; }
  .p-hero-art { height: 240px; }
  .tagpill span:first-child { display: none; }
  .mascot-btn { width: 52px; height: 52px; }
  .mascot-btn svg { width: 44px; height: 44px; }
}

/* ===== logos: trimmed, uniform ===== */
.logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px 24px; max-width: 1080px; margin-inline: auto; padding-inline: var(--page); }
.logos a { height: 44px; display: flex; align-items: center; justify-content: center; }
.logos img { height: auto; max-height: 30px; max-width: 100%; width: auto; object-fit: contain; }
.logos img.trimmed { max-height: var(--lh, 28px); }

/* ===== riso art ===== */
.tile-c { transform-box: fill-box; transition: transform 0.35s var(--ease); cursor: crosshair; }
.tile-c.flip { animation: tileFlip 0.36s var(--ease); }
.tile-c.pop { animation: tilePop 0.45s var(--ease); }
@keyframes tileFlip { 50% { transform: scale(0.6) rotate(45deg); opacity: 0.4; } 100% { transform: scale(0.6) rotate(90deg); opacity: 0; } }
@keyframes tilePop { from { transform: scale(0.6) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
[data-art="grid"] svg { width: 100%; height: auto; border-radius: 14px 6px 6px 6px; display: block; }
.build-art { margin-right: 0; border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); border-radius: 16px 8px 8px 8px; padding: 8px; background: var(--acc2); }
.build-art svg { border-radius: 10px 4px 4px 4px; }
.riso { transition: translate 0.5s var(--ease); }
.hill-l.l0 { opacity: 0.55; } .hill-l.l1 { opacity: 0.8; }
@supports (animation-timeline: view()) {
  .band-field svg, .final-field svg { animation: bedDrift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .hill-l.l0 { animation: bedDrift2 linear both; animation-timeline: view(); }
}
@keyframes bedDrift { from { transform: translateY(40px); } to { transform: translateY(-30px); } }
@keyframes bedDrift2 { from { transform: translateY(24px); } to { transform: translateY(-12px); } }
.band-field, .final-field { overflow: hidden; }
.ws-mound { bottom: 58%; }
.ws-mound svg { overflow: visible; }
.p-hero-art { height: auto; }
.p-hero-art svg { border-radius: 14px 14px 0 0; }
.p-hero-art + .facts { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: -1px; }
.panel .sp-art { width: 210px; height: 210px; right: 24px; bottom: 24px; }
.panel .sp-art svg { border-radius: 10px; }
.next .na, .post .pa, .a-art { border-radius: 10px; overflow: hidden; }
.pcard .pc-art { border-radius: 8px; overflow: hidden; width: 72px; height: 72px; }

/* ===== workspace mini-app ===== */
.ws-side button.ws-nav { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; font-weight: 500; text-align: left; width: 100%; transition: background-color 0.15s; }
.ws-side button.ws-nav:hover, .ws-side button.ws-nav.on { background: var(--acc5); }
.ws-seg button { padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; transition: background-color 0.15s; }
.ws-seg button.on { background: var(--acc5); }
.ws-main { position: relative; min-height: 560px; display: grid; }
.ws-view { grid-area: 1 / 1; display: none; flex-direction: column; min-width: 0; }
.ws-view.on { display: flex; animation: snappyIn 0.35s var(--ease); }
button.prompt { text-align: left; cursor: text; display: block; transition: box-shadow 0.2s, transform 0.2s var(--ease); }
button.prompt:hover { box-shadow: 0 12px 30px -12px rgb(74 40 138 / 0.5); transform: translate(-50%, calc(-50% - 2px)); }
.prompt-h, .prompt-in, .prompt-f { display: flex; }
.prompt-in { display: block; }
.ws-tabs button { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; transition: background-color 0.15s; }
.ws-tabs button.on, .ws-tabs button:hover { background: var(--acc2); }
.ws-tabs small { background: var(--acc5); padding: 1px 6px; border-radius: 99px; font-size: 11px; }
.ws-table { overflow: auto; max-height: 392px; }
.ws-table[hidden] { display: none; }
.ws-row.hide { display: none; }
.ws-row.in-anim { animation: snappyIn 0.3s var(--ease) both; }

.pane { padding: 24px; gap: 18px; }
.pane-hd .h3 { margin-top: 10px; }
.pane-sub { margin-top: 8px; font-size: 15px; font-weight: 500; }
.pane-cta { align-self: flex-start; margin-top: auto; }
.ws-exp { border-top: 1px solid var(--acc10); }
.ws-exp li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--acc5); font-size: 14px; animation: snappyIn 0.35s var(--ease) both; }
.ws-exp li:nth-child(2) { animation-delay: 0.04s; } .ws-exp li:nth-child(3) { animation-delay: 0.08s; } .ws-exp li:nth-child(4) { animation-delay: 0.12s; } .ws-exp li:nth-child(5) { animation-delay: 0.16s; } .ws-exp li:nth-child(6) { animation-delay: 0.2s; }
.ws-exp .when { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding-top: 2px; }
.ws-exp b { display: block; font-weight: 600; } .ws-exp small { font-size: 13px; opacity: 0.8; }
.ws-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ws-card { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 4px 12px; padding: 14px; border: 1px solid var(--t); color: var(--t); border-radius: 8px; transition: border-color 0.15s, background-color 0.15s; }
.ws-card:hover { border-color: var(--tb); background: color-mix(in srgb, var(--tt) 40%, transparent); }
.ws-card .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; }
.ws-card b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ws-card small { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.ws-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ws-ct { text-align: left; padding: 14px; border-radius: 8px; background: var(--acc2); border: 1px solid transparent; transition: border-color 0.15s, background-color 0.15s; }
.ws-ct:hover { border-color: var(--acc25); background: var(--acc5); }
.ws-ct small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.ws-ct b { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; word-break: break-word; }

/* chat */
.chat { background: linear-gradient(var(--acc2), #fff 120px); }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 14px; max-height: 420px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; animation: msgIn 0.4s var(--ease) both; }
.msg .av { width: 28px; height: 28px; flex: none; }
.msg .av svg { width: 100%; height: 100%; }
.msg .bub { padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--acc10); font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--fg-deep); box-shadow: 0 6px 16px -12px rgb(74 40 138 / 0.4); }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bub { background: var(--fg); color: #fff; border-color: var(--fg); border-radius: 16px 16px 4px 16px; }
.bub .w { opacity: 0; filter: blur(4px); display: inline; animation: wordIn 0.35s var(--ease) forwards; }
.bub .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bub .links a { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--acc5); color: var(--fg); animation: chipIn 0.4s var(--ease) both; transition: background-color 0.15s; }
.bub .links a:hover { background: var(--acc10); }
.thinking { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--fg); }
.thinking .orb { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#8d75e6, #f486b8, #f5a847, #5abe89, #71a7e5, #8d75e6); animation: spin 1.1s linear infinite; -webkit-mask: radial-gradient(circle, transparent 4px, #000 5px); mask: radial-gradient(circle, transparent 4px, #000 5px); }
.thinking .tdots i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 0 1.5px; animation: dotB 1s ease-in-out infinite; }
.thinking .tdots i:nth-child(2) { animation-delay: 0.15s; } .thinking .tdots i:nth-child(3) { animation-delay: 0.3s; }
.thinking .lbl { background: linear-gradient(90deg, var(--fg) 0%, var(--acc25) 50%, var(--fg) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite; }
.chat-sugs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 20px 12px; min-height: 44px; }
.sug { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); background: #fff; transition: background-color 0.15s, border-color 0.15s, transform 0.2s var(--ease); animation: chipIn 0.45s var(--ease) both; }
.sug:hover { background: var(--acc5); border-color: var(--fg); transform: translateY(-1px); }
.sug:active { transform: scale(0.97); }
.sug.out { animation: chipOut 0.22s var(--ease) forwards; }
.chat-in { display: flex; gap: 8px; margin: 0 16px 16px; padding: 6px 6px 6px 14px; border: 1px solid var(--acc10); border-radius: 12px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.chat-in:focus-within { border-color: var(--fg); box-shadow: 0 0 0 3px var(--acc5); }
.chat-in input { flex: 1; border: 0; outline: none; font-size: 14px; font-weight: 500; background: none; color: var(--fg-deep); }
.chat-in input::placeholder { color: var(--fg); opacity: 0.55; }
.chat-in button { width: 30px; height: 30px; border-radius: 50%; background: var(--fg-deep); color: #fff; font-size: 14px; transition: filter 0.15s, transform 0.2s var(--ease); }
.chat-in button:hover { filter: brightness(1.15); transform: translateY(-1px); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes wordIn { to { opacity: 1; filter: none; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes chipOut { to { opacity: 0; transform: translateY(-6px) scale(0.96); } }
@keyframes dotB { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1024px) {
  .ws-side { display: flex; flex-direction: row; overflow-x: auto; gap: 4px; padding: 6px 4px; scrollbar-width: none; }
  .ws-side .grp, .ws-side .ws-space, .ws-seg { display: none; }
  .ws-side button.ws-nav { width: auto; white-space: nowrap; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .trio .tcard { display: block; }
  .ws-cards, .ws-contact { grid-template-columns: 1fr; }
  .ws-exp li { grid-template-columns: 1fr; gap: 2px; }
  .chat-log { max-height: 380px; padding: 14px; }
  .msg { max-width: 96%; }
  .chat-sugs { padding: 6px 14px 10px; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; }
}

/* ===== book cards (projects) ===== */
.t-purple { --bk: #7b55e0; --bt: #ddd6fb; --bd: #4a288a; }
.t-pink { --bk: #d24f97; --bt: #fdcbe0; --bd: #763359; }
.t-green { --bk: #008a55; --bt: #c3e5d1; --bd: #195642; }
.t-orange { --bk: #db5a12; --bt: #ffd2b0; --bd: #803218; }
.t-teal { --bk: #00938e; --bt: #c6e9e2; --bd: #04595d; }
.t-blue { --bk: #4a6fd1; --bt: #d6e1f8; --bd: #2e4c73; }
.t-gold { --bk: #c4850f; --bt: #fde2bd; --bd: #7a4d16; }
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.book-card { position: relative; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 12px; min-height: 360px; padding: 16px; border-radius: 22px; background: var(--bt); color: var(--bd); perspective: 900px; transition: filter 0.15s; }
.book-card:hover { filter: brightness(1.02); }
.book-card.is-out { display: none; }
.bc-side { display: flex; flex-direction: column; justify-content: space-between; padding: 16px 4px 4px 14px; min-width: 0; }
.bc-logo { max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; object-position: left center; align-self: flex-start; }
.bc-logo:not(.recolored) { filter: brightness(0) opacity(0.75); }
.bc-meta b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.bc-meta span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; opacity: 0.85; line-height: 1.35; }
.book { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 14px; padding: 22px 22px 22px 30px; border-radius: 8px 14px 14px 8px; background: var(--bk); color: #fff; text-align: right; transform-origin: left center; transform-style: preserve-3d; box-shadow: 0 1px 0 rgb(0 0 0 / 0.05); transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease); }
.book .spine { position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: rgb(255 255 255 / 0.22); box-shadow: -4px 0 0 rgb(0 0 0 / 0.06); }
.book .ribbon { position: absolute; right: 18px; top: 0; width: 22px; height: 36px; background: rgb(255 255 255 / 0.3); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); transition: height 0.45s var(--ease); }
.book-q { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.book-cta { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.book-card:hover .book { transform: rotateY(-14deg) translateX(-4px); box-shadow: 14px 18px 30px -16px rgb(33 23 53 / 0.5); }
.book-card:hover .ribbon { height: 52px; }
.book-card:hover .book-cta { opacity: 1; transform: none; }
.book-card:hover .ar { transform: translateX(3px); }
.book-card .ar { display: inline-block; transition: transform 0.2s; }
.filters { margin-bottom: 8px; }

/* ===== chat header & typer ===== */
.ws-time { gap: 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #25a871; box-shadow: 0 0 0 0 rgb(37 168 113 / 0.5); animation: livePulse 2.2s infinite; display: inline-block; flex: none; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgb(37 168 113 / 0); } 100% { box-shadow: 0 0 0 0 rgb(37 168 113 / 0); } }
.ws-main { min-height: 600px; }
.chat-hd { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; overflow: hidden; border-bottom: 1px solid var(--acc5); }
.chat-bg { position: absolute; inset: 0; opacity: 0.55; }
.chat-bg svg { width: 100%; height: 100%; }
.chat-id { position: relative; display: flex; align-items: center; gap: 10px; background: rgb(255 255 255 / 0.85); backdrop-filter: blur(6px); padding: 6px 14px 6px 6px; border-radius: 99px; }
.chat-id .av { width: 34px; height: 34px; } .chat-id .av svg { width: 100%; height: 100%; }
.chat-id b { display: block; font-size: 14px; font-weight: 700; }
.chat-id small { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.chat-reset { position: relative; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 99px; background: rgb(255 255 255 / 0.85); transition: background-color 0.15s; }
.chat-reset:hover { background: #fff; }
.chat-log { min-height: 300px; }
.chat-in { position: relative; }
.typer-ph { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 500; opacity: 0.55; pointer-events: none; white-space: nowrap; overflow: hidden; max-width: calc(100% - 60px); }
.typer-ph::after { content: ''; display: inline-block; width: 1.5px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
.chat-in.has-text .typer-ph, .chat-in:focus-within .typer-ph { display: none; }
.ws-side .ws-nav { line-height: 1.3; }
.ws-side .ws-nav.asked { opacity: 0.55; }

/* ===== giant word ===== */
.final { padding-top: 20px; }
.word { width: min(100% - 2 * var(--page), 1500px); margin: 0 auto 8px; cursor: none; }
.word svg { width: 100%; height: auto; overflow: visible; }
.word .spot { animation: spotPulse var(--sd, 4s) ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes spotPulse { from { transform: scale(0.85); } to { transform: scale(1.12) translateX(8px); } }
.word .painter { animation: painterBob var(--pd, 4s) ease-in-out infinite alternate; }
@keyframes painterBob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.final .tag { margin-top: 0; }
@media (max-width: 720px) { .books { grid-template-columns: 1fr; } .book-card { min-height: 280px; } .word { cursor: auto; } }
@media (min-width: 721px) and (max-width: 1024px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logos img.recolored { filter: none; }
.exp { border-top: 1px solid currentColor; }
.exp li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--acc10); }
.exp .when { font-family: var(--mono); font-size: 12.5px; font-weight: 700; padding-top: 4px; }
.exp b { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.exp .role { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; opacity: 0.85; }
.exp p { margin-top: 10px; font-size: 16px; font-weight: 500; line-height: 1.5; }
@media (max-width: 720px) { .exp li { grid-template-columns: 1fr; gap: 6px; } }
.mascot { transition: opacity 0.25s, transform 0.35s var(--ease); }
.mascot.away { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }
@media (max-width: 720px) { .mascot-tip { display: none; } }

/* ===== emoji avatar: animated ring background + expressions ===== */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.av { position: relative; display: grid; place-items: center; border-radius: 50%; isolation: isolate; }
.av::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; z-index: -1; background: conic-gradient(from var(--spin), #8d75e6, #f486b8, #ffaf7e, #f5a847, #5abe89, #71a7e5, #8d75e6); animation: emoSpin 4s linear infinite; }
.av::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; z-index: -2; background: radial-gradient(circle, rgb(244 134 184 / 0.45), rgb(141 117 230 / 0.25) 45%, transparent 70%); animation: emoGlow 3s ease-in-out infinite alternate; }
.msg .av::after { inset: -6px; }
.av svg { position: relative; overflow: visible; }
@keyframes emoSpin { to { --spin: 360deg; } }
@keyframes emoGlow { from { transform: scale(0.88); opacity: 0.6; } to { transform: scale(1.1); opacity: 1; } }
.emo-face { transition: transform 0.25s ease-out; }
.emo-pupils { transition: transform 0.2s ease-out; }
.emo-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s ease-in-out infinite; }
.emo-blush { opacity: 0; transition: opacity 0.25s; }
.emo-grin, .emo-o { opacity: 0; transition: opacity 0.2s; }
.emo-smile { transition: opacity 0.2s; }
.av.happy .emo-smile { opacity: 0; } .av.happy .emo-grin { opacity: 1; } .av.happy .emo-blush { opacity: 0.85; }
.av.happy .emo-eyes ellipse { transform: scaleY(0.75); transform-box: fill-box; transform-origin: center; }
.av.think .emo-smile, .av.think .emo-grin { opacity: 0; } .av.think .emo-o { opacity: 1; }
.av.think::before { animation-duration: 1s; }
.msg.bot:not(:last-child) .av::before { animation-play-state: paused; opacity: 0.5; }
@media (prefers-reduced-motion: reduce) { .av::before, .av::after { animation: none; } }

/* ===== Tines-measured hero (1440 reference) ===== */
:root { --page: 40px; }
.bar { padding: 18px var(--page) 12px; gap: 14px; }
.hero { padding-top: 37px; }
.hero .hero-h1 { margin-top: 36px; max-width: 980px; margin-inline: auto; }
.hero .byline { margin-top: 30px; }
.marquee { margin-top: 40px; position: relative; overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; align-items: center; gap: 43px; width: max-content; animation: marqueeDrift 40s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track a { display: flex; align-items: center; height: 30px; flex: none; opacity: 0.95; transition: opacity 0.15s; }
.mq-track a:hover { opacity: 1; }
.mq-track img { max-height: 30px; width: auto; filter: brightness(0) saturate(100%) invert(31%) sepia(62%) saturate(2070%) hue-rotate(246deg) brightness(86%) contrast(92%); }
.mq-track img.recolored { filter: none; }
@keyframes marqueeDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - 21.5px), 0, 0); } }
.hero-ctas { margin-top: 45px; }
.hero-ctas .btn-lg { min-width: 140px; min-height: 36px; padding: 0 20px; }
.ws-zone { margin-top: 56px; }

/* flying Sinu beside the headline */
.flyer { position: absolute; left: max(4%, calc(50% - 600px)); top: 150px; width: 104px; height: 120px; z-index: 3; pointer-events: none; animation: flyDrift 7s ease-in-out infinite alternate; }
.flyer svg { width: 100%; height: 100%; overflow: visible; }
.fl-body { animation: breathe 3.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fl-prop { transform-box: fill-box; transform-origin: center; animation: propSpin 0.35s linear infinite; }
.fl-wave { transform-box: fill-box; transform-origin: 0% 100%; animation: wave 1.6s ease-in-out infinite alternate; }
@keyframes flyDrift { 0% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(10px, -14px) rotate(3deg); } 100% { transform: translate(-6px, 6px) rotate(-2deg); } }
@keyframes propSpin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.15); } }
@keyframes wave { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@media (max-width: 1024px) { :root { --page: 24px; } .flyer { width: 70px; height: 82px; top: 110px; left: 2%; } }
@media (max-width: 720px) { :root { --page: 18px; } .flyer { display: none; } .mq-track { gap: 28px; } .mq-track img { max-height: 22px; } }
@media (prefers-reduced-motion: reduce) { .mq-track, .flyer, .fl-prop { animation: none; } }

/* ===== chat demo: timeline, ghost cursor, work steps, recent chats ===== */
.ws-track i { animation: none !important; width: 0; transition: width 0.8s var(--ease); background: #f47e3f; }
.ws-track { overflow: visible; }
.ws-track i::after { content: ''; position: absolute; right: -6px; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: #f47e3f; transform: translateY(-50%); box-shadow: 0 0 0 3px rgb(244 126 63 / 0.25); }
.demo-btn { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; display: grid; place-items: center; transition: background-color 0.15s; flex: none; }
.demo-btn:hover { background: var(--acc10); }
.ws-count { white-space: nowrap; }
.ws-tag { background: #c95d28; }
.ghost { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 20; pointer-events: none; opacity: 0; transform: translate(60%, 60%); transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s; filter: drop-shadow(0 3px 4px rgb(33 23 53 / 0.3)); }
.ghost svg { width: 100%; height: 100%; transition: transform 0.15s; }
.ghost.on { opacity: 1; }
.ghost.click svg { transform: scale(0.78); }
.ghost::after { content: ''; position: absolute; left: 2px; top: 2px; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid #f47e3f; opacity: 0; }
.ghost.click::after { animation: ripple 0.45s var(--ease); }
@keyframes ripple { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1.4); opacity: 0; } }
.ws.demo .chat-in { border-color: var(--acc25); }
.work { font-size: 13px; font-weight: 500; }
.work-hd { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.work-hd .orb { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#8d75e6, #f486b8, #f5a847, #5abe89, #71a7e5, #8d75e6); animation: spin 1.1s linear infinite; -webkit-mask: radial-gradient(circle, transparent 3.5px, #000 4.5px); mask: radial-gradient(circle, transparent 3.5px, #000 4.5px); }
.work-hd .lbl { background: linear-gradient(90deg, var(--fg) 0%, var(--acc25) 50%, var(--fg) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite; font-weight: 600; }
.work-hd .tdots i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 1px; animation: dotB 1s ease-in-out infinite; }
.work-hd .tdots i:nth-child(2) { animation-delay: 0.15s; } .work-hd .tdots i:nth-child(3) { animation-delay: 0.3s; }
.work-steps { margin: 8px 0 0 7px; padding-left: 14px; border-left: 1px solid var(--acc10); display: grid; gap: 7px; }
.work-steps li { display: flex; align-items: center; gap: 8px; opacity: 0.85; animation: msgIn 0.3s var(--ease) both; }
.st-ic { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--acc25); border-top-color: var(--fg); animation: spin 0.7s linear infinite; flex: none; }
.work-steps li.done .st-ic, .st-ic.done { animation: none; border: 0; background: #25a871; position: relative; }
.work-steps li.done .st-ic::after, .st-ic.done::after { content: ''; position: absolute; left: 3.5px; top: 2px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.work.finished .work-hd { font-size: 12.5px; opacity: 0.75; cursor: default; }
.work.finished .work-steps { opacity: 0.7; }
.ans:not(:empty) { margin-top: 12px; display: block; }
.chat-today { position: relative; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: rgb(255 255 255 / 0.85); }
.ws-new { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; padding: 9px; border-radius: 10px; background: var(--acc5); font-size: 13.5px; font-weight: 600; margin-bottom: 6px; transition: background-color 0.15s; }
.ws-new:hover { background: var(--acc10); }
.seg-off { opacity: 0.6; padding: 4px 11px; font-size: 12.5px; font-weight: 600; }
.ws-seg span.on { padding: 4px 11px; border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 2px rgb(74 40 138 / 0.15); }
.ws-recent { align-items: flex-start !important; gap: 10px !important; padding: 8px !important; }
.rc-ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.rc-ic svg { width: 100%; height: 100%; }
.rc-t b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.rc-t small { display: block; font-size: 11.5px; opacity: 0.7; margin-top: 2px; }
.ws-recent.asked b { opacity: 0.6; }
.ws-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 2px; border-top: 1px solid var(--acc10); }
.ws-side { display: flex; flex-direction: column; }
@media (max-width: 1024px) { .ws-new, .ws-foot { display: none; } .ws-recent small { display: none; } .rc-t b { white-space: nowrap; } }
.book-card > * { min-height: 0; }
.book-card { overflow: hidden; }
.book { justify-content: flex-end; }
.book-q { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.2; }

/* ===== Tines rhythm & details ===== */
:root { --section: 125px; }
@media (max-width: 1024px) { :root { --section: 96px; } }
@media (max-width: 720px) { :root { --section: 72px; } }
.quotes.q12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.quotes.q12 .qcard { min-height: 486px; border-radius: 14px; }
.quotes.q12 .qcard:last-child blockquote { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; }
@media (max-width: 1024px) { .quotes.q12 { grid-template-columns: 1fr; } .quotes.q12 .qcard { min-height: 0; } }
.trio .tcard { border-width: 1.5px; border-radius: 14px; padding: 24px; min-height: 490px; }
.trio .tcard:nth-child(1), .trio .tcard:nth-child(3) { border-radius: 14px; }

/* angular gradient border slide (10s) on outline buttons, like Tines */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn-o { border: 1.5px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, conic-gradient(from var(--ang), #714bd0, #f47e3f 18%, #714bd0 36%, #c2aafa 60%, #714bd0) border-box; animation: angSlide 10s linear infinite; }
.btn-o:hover { background: linear-gradient(var(--acc5), var(--acc5)) padding-box, conic-gradient(from var(--ang), #714bd0, #f47e3f 18%, #714bd0 36%, #c2aafa 60%, #714bd0) border-box; }
@keyframes angSlide { to { --ang: 360deg; } }

/* garden beds */
.ws-zone { position: relative; }
.ws-bed { position: absolute; z-index: 1; pointer-events: none; }
.ws-bed svg { width: 100%; height: 100%; overflow: visible; }
.ws-bed.tr { right: max(0px, calc(50% - 640px)); top: -150px; width: 520px; height: 200px; }
.ws-bed.bl { left: max(0px, calc(50% - 680px)); bottom: -70px; width: 420px; height: 200px; z-index: 3; }
@supports (animation-timeline: scroll()) {
  .ws-bed { animation: bedScroll linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
  .band-field svg { animation: bedRise linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
}
@keyframes bedScroll { from { transform: translateY(0); } to { transform: translateY(-90px); } }
@keyframes bedRise { from { transform: translateY(33%); } to { transform: translateY(12%); } }
.band-field { height: 230px; margin-top: 10px; }
.bl { animation: bloomSway var(--bd, 6s) ease-in-out infinite alternate; transform-box: view-box; }
.fr { animation: frondSway var(--bd, 6s) ease-in-out infinite alternate; transform-box: view-box; }
.tw { animation: twinkle var(--td, 2s) ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes bloomSway { from { transform: rotate(calc(var(--rot, 8deg) * -1)); } to { transform: rotate(var(--rot, 8deg)); } }
@keyframes frondSway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes twinkle { from { transform: scale(0.6) rotate(0); opacity: 0.6; } to { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@media (max-width: 1024px) { .ws-bed { display: none; } }
@media (prefers-reduced-motion: reduce) { .bl, .fr, .tw, .btn-o { animation: none !important; } }

/* ===== avatar v3: clean flat character, no rainbow ring ===== */
.av::before, .av::after { content: none !important; }
.av { background: none; }
.msg .av { width: 30px; height: 30px; }
.chat-id .av { width: 34px; height: 34px; }
.av svg { animation: avBob 3.8s ease-in-out infinite; }
@keyframes avBob { 0%, 100% { transform: translateY(0.6px); } 50% { transform: translateY(-0.6px); } }
.av.think svg { animation-duration: 0.9s; }

/* chat header: blurred colour wash behind Sinu */
.chat-hd { isolation: isolate; }
.chat-bg { inset: -24px; opacity: 0.75; filter: blur(14px) saturate(1.15); transform: scale(1.08); }
.chat-hd::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgb(252 249 245 / 0.15), rgb(255 255 255 / 0.45)); pointer-events: none; }
.chat-id, .chat-today { z-index: 1; }

/* asked topics stay fully active; a small tick marks them */
.ws-side .ws-nav.asked, .ws-recent.asked b { opacity: 1 !important; }
.ws-recent.asked .rc-t b::after { content: ' ✓'; color: #25a871; font-weight: 700; }

/* ===== art FX: colour modes, smooth springs ===== */
:root { --art-hue: 0deg; --art-sat: 1; }
[data-art]:not([data-art="tile"]) svg { filter: hue-rotate(var(--art-hue)) saturate(var(--art-sat)); transition: filter 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.chat-bg svg { filter: none; }
.fx { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fx svg * { will-change: auto; }
.fx .bl, .fx .fr, .fx .mc, .fx .medal, .fx .arch, .fx .lantern, .fx .tile-c { transition: filter 0.4s ease; }
.ws-bed, .band-field, .word { pointer-events: auto; }
#art-mode-badge { position: fixed; left: 50%; bottom: 24px; z-index: 3200; transform: translate(-50%, 16px); padding: 9px 14px 9px 34px; border-radius: 99px; background: var(--fg); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
#art-mode-badge::before { content: ''; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: conic-gradient(from var(--art-hue), #8d75e6, #f486b8, #f5a847, #5abe89, #71a7e5, #8d75e6); }
#art-mode-badge.on { opacity: 1; transform: translate(-50%, 0); animation: badgeOut 2.4s 1.2s forwards; }
@keyframes badgeOut { to { opacity: 0; transform: translate(-50%, 10px); } }
.ws-bed, .ws-bed svg { pointer-events: none; }
.ws-bed svg g { pointer-events: visiblePainted; }

/* process machine + restored gadget icons */
.build-art { border: 0; background: none; padding: 0; }
.build-art svg { width: 100%; height: auto; overflow: visible; }
.lace-spin { animation: spin var(--dur, 120s) linear infinite; transform-box: view-box; }
.lace-spin.rev { animation-direction: reverse; }
.station { cursor: pointer; }
.station .tag { transition: transform 0.4s var(--ease); transform-box: fill-box; transform-origin: center; }
.station:hover .tag { transform: translateY(-3px); }
.station:hover .lace-spin { animation-duration: 6s; }
.tcard .tc-art { width: 112px; height: 112px; margin: -10px 0 14px -12px; }
.tcard .tc-art svg { width: 100%; height: 100%; overflow: visible; }
.tcard:hover .lace-spin { animation-duration: 8s; }

/* ===== one grid, like Tines at 1440: 40px margins, content up to 1520 (1360 at 1440) ===== */
:root { --grid: var(--wide); }
.ws { width: 100%; max-width: none; }
.ws-zone > .ws { width: min(100% - 2 * var(--page), var(--wide)); }
.band { border-radius: 48px; }
.band-in { padding: 56px 56px 0; }
.trio { gap: 24px; }
.trio .tcard { min-height: 547px; }
.quotes.q12 .qcard { min-height: 447px; }
.build { grid-template-columns: minmax(0, 513px) minmax(0, 1fr); padding-left: 91px; gap: 48px; }
.books { gap: 24px; }
.statement { max-width: 760px; }
.article, .prose { max-width: 680px; }
@media (max-width: 1024px) { .build { padding-left: 0; grid-template-columns: 1fr; } .band { border-radius: 28px; } .band-in { padding: 40px 24px 0; } .trio .tcard { min-height: 0; } }
.trio .tcard { min-height: 0; }

/* ===== stepper band ===== */
.band-line { padding: 56px 48px 64px; }
.bl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: end; }
.bl-head .lead { margin-top: 0; max-width: 44ch; }
.stepper { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.st-track { position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: color-mix(in srgb, var(--fg) 18%, transparent); border-radius: 2px; overflow: hidden; }
.st-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #8d75e6, #f486b8, #f47e3f); transform-origin: left; transform: scaleX(0); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.st-node { position: relative; padding-right: 8px; }
.st-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--acc5); border: 1.5px solid color-mix(in srgb, var(--fg) 30%, transparent); transition: background-color 0.5s, border-color 0.5s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s; }
.st-dot b { font-family: var(--mono); font-size: 12px; font-weight: 700; transition: color 0.4s; }
.st-node.lit .st-dot { background: var(--fg); border-color: var(--fg); transform: scale(1.08); box-shadow: 0 0 0 6px rgb(113 75 208 / 0.14); }
.st-node.lit .st-dot b { color: #fff; }
.st-node .item-t { margin-top: 22px; transition: color 0.4s; }
.st-node .body { margin-top: 10px; opacity: 0.55; transform: translateY(4px); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.st-node.lit .body, .st-node:hover .body { opacity: 1; transform: none; }
.st-node:hover .st-dot { transform: scale(1.14); }
@media (max-width: 1024px) {
  .bl-head { grid-template-columns: 1fr; gap: 16px; }
  .stepper { grid-template-columns: 1fr; gap: 26px; padding-left: 64px; }
  .st-track { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .st-fill { transform-origin: top; transform: scaleY(0); }
  .st-node .st-dot { position: absolute; left: -64px; top: -6px; }
  .st-node .item-t { margin-top: 0; }
  .band-line { padding: 40px 24px 48px; }
}

/* ===== rating card + quote deck ===== */
.deck-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.rating-card { background: var(--acc5); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 420px; }
.rating-card .rate { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.rating-card .big { font-family: var(--serif); font-size: 112px; line-height: 0.9; letter-spacing: -0.04em; }
.rating-card .of { font-family: var(--serif); font-size: 34px; opacity: 0.7; }
.stars { position: relative; width: 132px; height: 22px; background: color-mix(in srgb, var(--fg) 18%, transparent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 22'%3E%3Cg fill='black'%3E%3Cpath id='s' d='M11 1l3 6.6 7.2.8-5.4 4.9 1.5 7.1L11 16.8 4.7 20.4l1.5-7.1L.8 8.4 8 7.6z'/%3E%3Cuse href='%23s' x='27.5'/%3E%3Cuse href='%23s' x='55'/%3E%3Cuse href='%23s' x='82.5'/%3E%3Cuse href='%23s' x='110'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 22'%3E%3Cg fill='black'%3E%3Cpath id='s' d='M11 1l3 6.6 7.2.8-5.4 4.9 1.5 7.1L11 16.8 4.7 20.4l1.5-7.1L.8 8.4 8 7.6z'/%3E%3Cuse href='%23s' x='27.5'/%3E%3Cuse href='%23s' x='55'/%3E%3Cuse href='%23s' x='82.5'/%3E%3Cuse href='%23s' x='110'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100%; }
.stars i { position: absolute; inset: 0 auto 0 0; width: 0; background: #f5a847; transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s; }
.rating-card.in .stars i { width: 98%; }
.deck { position: relative; border-radius: 14px; min-height: 420px; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; padding: 28px 28px 76px; display: flex; flex-direction: column; background: var(--tt); color: var(--t); border-radius: 14px; opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.slide.on { opacity: 1; transform: none; pointer-events: auto; }
.slide blockquote { font-family: var(--serif); font-size: clamp(28px, 3.1vw, 42px); line-height: 1.14; letter-spacing: -0.015em; margin-top: 22px; flex: 1; }
.slide figcaption { border-top: 1px solid currentColor; padding-top: 16px; }
.slide .person { font-size: 16px; font-weight: 500; line-height: 1.4; }
.slide .person b { display: block; font-weight: 600; }
.deck-nav { position: absolute; left: 28px; right: 28px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.deck-nav > button { width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / 0.7); color: var(--fg); transition: background-color 0.15s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.deck-nav > button:hover { background: #fff; transform: scale(1.08); }
.dk-dots { display: flex; gap: 6px; }
.dk-dots button { width: 8px; height: 8px; border-radius: 99px; background: rgb(74 40 138 / 0.25); transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s; }
.dk-dots button[aria-current='true'] { width: 26px; background: var(--fg); }
.deck-timer { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; }
.deck-timer i { display: block; height: 100%; width: 100%; background: rgb(74 40 138 / 0.35); transform-origin: left; animation: deckTimer 6.5s linear forwards; }
.deck.paused .deck-timer i { animation-play-state: paused; }
@keyframes deckTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 1024px) { .deck-wrap { grid-template-columns: 1fr; } .rating-card { min-height: 0; } .rating-card .big { font-size: 84px; } .deck { min-height: 380px; } }
@media (prefers-reduced-motion: reduce) { .deck-timer { display: none; } }

/* ===== book cards v2: Tines proportions (≈495×370), logo only ===== */
.books { gap: 24px; }
.book-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); min-height: 0; aspect-ratio: 495 / 370; padding: 16px; border-radius: 20px; gap: 18px; }
.bc-side { padding: 18px 0 6px 16px; }
.bc-logo { max-height: 44px; max-width: 92%; }
.bc-meta { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; opacity: 0.7; }
.book { padding: 20px 22px; border-radius: 6px 12px 12px 6px; }
.book .spine { left: 12px; }
.book .ribbon { right: 22px; width: 24px; height: 34px; }
.book-q { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.2; -webkit-line-clamp: 7; quotes: '“' '”'; }
.book-q::before { content: open-quote; } .book-q::after { content: close-quote; }
@media (max-width: 720px) { .book-card { aspect-ratio: auto; min-height: 260px; } }

/* medallion motion (card glyphs, badges) */
.medal > g { transform-box: view-box; transform-origin: var(--o); }
.medal .spin-a { animation: spin 60s linear infinite; }
.medal .spin-b { animation: spin 90s linear infinite reverse; }
.medal .spin-c { animation: spin 40s linear infinite; }
.medal .spin-d { animation: spin 24s linear infinite reverse; }

/* ===== 1128 grid everywhere (Tines --gridMaxWidth) ===== */
:root { --grid: 1128px; }
.wide { width: min(100% - 2 * var(--page), 1128px); }
.ws-zone > .ws { width: min(100% - 2 * var(--page), 1128px); }
.build { padding-left: 0; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
.band { border-radius: 32px; }

/* ===== AI orb avatar (no character) ===== */
.av { display: grid; place-items: center; }
.orb-av { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #8d75e6; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35), 0 4px 14px -6px rgb(74 40 138 / 0.6); animation: orbBreathe 4s ease-in-out infinite; }
.orb-av::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from var(--spin), #a990f5, #f486b8, #ffaf7e, #c2aafa, #71a7e5, #a990f5); filter: blur(6px); animation: emoSpin 6s linear infinite; }
.orb-av::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0) 42%), radial-gradient(circle at 70% 78%, rgb(74 40 138 / 0.35), transparent 55%); }
.orb-av i { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 0.55), transparent 70%); filter: blur(2px); animation: orbCore 3s ease-in-out infinite alternate; }
.av.think .orb-av::before { animation-duration: 1.2s; }
.av.think .orb-av { animation-duration: 1.1s; }
@keyframes orbBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes orbCore { from { transform: translate(-8%, -6%) scale(0.9); } to { transform: translate(8%, 6%) scale(1.1); } }
.msg .av { width: 28px; height: 28px; }
.dot-av { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px #fff, 0 3px 10px rgb(74 40 138 / 0.18); }
.av.think .dot-av { animation: dotAvThink 1.1s ease-in-out infinite; }
@keyframes dotAvThink { 50% { transform: scale(0.9); opacity: 0.75; } }
@media (prefers-reduced-motion: reduce) { .av.think .dot-av { animation: none; } }
.chat-id .av { width: 32px; height: 32px; }
.mascot-btn .orb-av.big { width: 40px; height: 40px; }
.mascot-btn { background: var(--bg); }

/* ===== clean giant "Let's talk": cursor sweeps a soft gradient through the letters ===== */
@property --on { syntax: '<number>'; inherits: true; initial-value: 0; }
.word-clean { --mx: 50%; --my: 50%; font-family: var(--sans); font-weight: 700; font-size: clamp(88px, 17vw, 250px); line-height: 0.92; letter-spacing: -0.055em; text-align: center; margin: 0 auto 28px; width: min(100% - 2 * var(--page), 1128px); color: transparent; background: radial-gradient(280px circle at var(--mx) var(--my), rgb(244 134 184 / var(--on)), rgb(255 175 126 / calc(var(--on) * 0.85)) 35%, transparent 70%), linear-gradient(100deg, #d7cdfb, #c4b5fa 45%, #d7cdfb 75%, #e3dbfc); -webkit-background-clip: text; background-clip: text; user-select: none; transition: --on 0.5s; }
.word-clean:hover { --on: 1; }
.final { padding-top: 0; }
.ws-tag { top: -14px; }
.ws { padding-top: 10px; }
.final { padding-bottom: 120px; }
.final .tag { max-width: 560px; }
@media (max-width: 1024px) { .final { padding-bottom: 96px; } }
@media (max-width: 720px) { .final { padding-bottom: 72px; } }

/* ===== orb avatar eyes: follow the cursor only when it's near ===== */
.orb-av .eyes { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18%; z-index: 2; transform: translate(var(--ex, 0px), var(--ey, 0px)); }
.orb-av .eyes b { display: block; width: 15%; height: 24%; border-radius: 99px; background: #fff; box-shadow: 0 0 0 0.5px rgb(74 40 138 / 0.25); animation: orbBlink 5.2s infinite; transform-origin: center; }
.orb-av .eyes b:nth-child(2) { animation-delay: 0.04s; }
@keyframes orbBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.12); } }
.av.think .orb-av .eyes b { height: 14%; border-radius: 99px 99px 40% 40%; }

/* trio cards as links: Tines-style "learn more" + soft tint on hover */
a.tcard { display: flex; flex-direction: column; color: var(--t); transition: border-color 0.2s, background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
a.tcard:hover { background: color-mix(in srgb, var(--tt) 45%, var(--bg)); }
.tc-more { margin-top: 26px; padding-top: 18px; }
a.tcard:hover .tc-more .ar { transform: translateX(3px); }
.trio .tcard ul { flex: 1; }
.home-filters { justify-content: center; margin: 32px 0 0; }
.statement + .home-filters + .books { margin-top: 28px; }

/* ===== real-content visuals (no code-drawn art) ===== */
.build-art.screens { position: relative; height: 470px; perspective: 1400px; }
.scr { position: absolute; width: 74%; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); box-shadow: 0 30px 60px -30px rgb(33 23 53 / 0.45), 0 8px 20px -12px rgb(33 23 53 / 0.25); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s, z-index 0s 0.2s; }
.scr img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.scr-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f4f2fa; border-bottom: 1px solid var(--acc10); font-size: 11.5px; font-weight: 600; }
.scr-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d7cdfb; }
.scr-bar i:nth-child(1) { background: #f486b8; } .scr-bar i:nth-child(2) { background: #f5a847; } .scr-bar i:nth-child(3) { background: #5abe89; }
.scr-bar b { margin-left: 8px; font-weight: 600; opacity: 0.8; }
.scr-0 { left: 0; top: 70px; transform: rotate(-6deg); z-index: 1; }
.scr-1 { left: 13%; top: 30px; transform: rotate(1deg); z-index: 2; }
.scr-2 { left: 26%; top: 0; transform: rotate(6deg); z-index: 3; }
.screens:hover .scr-0 { transform: rotate(-10deg) translate(-36px, 14px); }
.screens:hover .scr-1 { transform: rotate(0deg) translateY(-6px); }
.screens:hover .scr-2 { transform: rotate(10deg) translate(36px, -6px); }
.scr:hover { z-index: 5 !important; box-shadow: 0 40px 80px -30px rgb(33 23 53 / 0.55); }
.screens .scr:hover { transform: rotate(0deg) translateY(-14px) scale(1.03) !important; }
@media (max-width: 1024px) { .build-art.screens { height: 360px; max-width: 560px; margin: 24px auto 0; } }
@media (max-width: 720px) { .build-art.screens { height: 260px; } .scr { width: 82%; } }

.tc-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--tt); color: var(--t); margin-bottom: 22px; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s; }
.tc-icon svg { width: 30px; height: 30px; }
a.tcard:hover .tc-icon { transform: rotate(-8deg) scale(1.08); }
.initials { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--acc5); color: var(--fg); font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: 0.02em; }
.qcard .initials { background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--t); }
.pa.pa-num { display: grid; place-items: center; font-family: var(--serif); font-size: 40px; color: var(--t); letter-spacing: -0.03em; padding: 0; }
.rc-dot { width: 8px !important; height: 8px !important; margin-top: 6px; border-radius: 50%; background: var(--acc25); }
.ws-recent:hover .rc-dot { background: var(--fg); }
.p-cover { margin: 36px 0 0; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--t) 30%, transparent); border-bottom: 0; background: var(--tt); }
.p-cover img { display: block; width: 100%; height: auto; }
.p-cover + .facts { border-top-left-radius: 0; border-top-right-radius: 0; }
.next .na { border-radius: 10px; overflow: hidden; height: 160px; }
.next .na img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.next:hover .na img { transform: scale(1.04); }
.scr { width: 70%; }
.scr-1 { left: 12%; }
.scr-2 { left: 24%; }

/* dot portrait in the "Design it. Build it. Ship it." section */
.build { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; }
.build-art.build-dots { position: relative; height: auto; aspect-ratio: 4 / 5; max-width: 480px; justify-self: end; width: 100%; border-radius: 14px; padding: 0; border: 0; background: var(--fg); overflow: hidden; }
@media (max-width: 1024px) { .build-art.build-dots { justify-self: center; max-width: 420px; margin-top: 24px; } }
.word-clean { white-space: nowrap; overflow: visible; position: relative; }

/* ===== Tines band: heading left, 2×2 right, bloom pile bottom-left ===== */
.band-tines { position: relative; border-radius: 40px; background: var(--acc5); overflow: hidden; min-height: 560px; }
.bt-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding: 56px 56px 280px; }
.bt-h { font-size: clamp(40px, 4.6vw, 64px); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; }
.bt-lead { margin-top: 24px; font-size: 20px; font-weight: 500; line-height: 1.5; max-width: 40ch; }
.bt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; align-content: start; }
.bt-item h3 { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.bt-item p { margin-top: 14px; font-size: 17px; font-weight: 500; line-height: 1.55; }
.bt-bloom { position: absolute; left: 0; bottom: -6px; width: 64%; height: 300px; z-index: 1; }
.bt-bloom svg { width: 100%; height: 100%; overflow: visible; }
@supports (animation-timeline: view()) { .bt-bloom svg { animation: bedRise linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; } }
@media (max-width: 1024px) { .bt-in { grid-template-columns: 1fr; padding: 40px 28px 220px; } .bt-bloom { width: 100%; height: 220px; } .band-tines { border-radius: 28px; } }
@media (max-width: 720px) { .bt-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ===== Tines testimonial pair (1:2) with company logos ===== */
.tq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.tq-card { margin: 0; min-height: 447px; display: flex; flex-direction: column; padding: 26px; border-radius: 14px; background: var(--tt); color: var(--t); transition: filter 0.2s; }
.tq-card:hover { filter: brightness(1.02); }
.tq-card .qmark { width: 46px; height: 46px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-family: var(--serif); font-size: 30px; padding-top: 12px; }
.tq-card blockquote { margin-top: 28px; flex: 1; font-family: var(--serif); font-size: clamp(26px, 2.5vw, 34px); line-height: 1.18; letter-spacing: -0.015em; }
.tq-card:last-child blockquote { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.12; }
.tq-card figcaption { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid currentColor; padding-top: 18px; }
.tq-card .person { font-size: 16px; font-weight: 500; line-height: 1.45; }
.tq-card .person b { display: block; font-weight: 600; }
.tq-logo { max-height: 34px; max-width: 140px; width: auto; height: auto; filter: brightness(0) opacity(0.85); }
.tq-logo.recolored { filter: none; }
@media (max-width: 1024px) { .tq { grid-template-columns: 1fr; } .tq-card { min-height: 0; } }

/* ===== Bento: crafted mini-interfaces ===== */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 28px; border-radius: 40px; background: var(--acc5); }
.b-title { padding: 18px 12px; }
.b-title .h2 { font-size: clamp(32px, 3.3vw, 44px); }
.b-title .lead-s { margin-top: 14px; font-weight: 400; }
.bc { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); overflow: hidden; transition: border-color 0.25s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s; color: var(--fg); }
.bc:hover { border-color: color-mix(in srgb, var(--fg) 40%, transparent); transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgb(74 40 138 / 0.4); }
.bc-wide { grid-column: span 2; }
.bv { position: relative; height: 230px; padding: 20px; overflow: hidden; }
.bt { padding: 0 24px 24px; margin-top: auto; }
.bt .kicker { font-size: 14px; }
.bt p:last-child { margin-top: 10px; font-size: 16px; font-weight: 500; line-height: 1.5; max-width: 40ch; }

/* figma */
.bv-figma { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 18px 0 0 18px; }
.fg-side { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--acc10); }
.fg-side span { font-size: 11px; font-weight: 700; opacity: 0.6; margin-bottom: 4px; }
.fg-side i { font-style: normal; padding: 4px 6px; border-radius: 6px; }
.fg-side i.on { background: var(--acc5); }
.fg-canvas { position: relative; border-radius: 12px 0 0 0; background-color: #f4f2fa; background-image: radial-gradient(rgb(113 75 208 / 0.18) 1px, transparent 1px); background-size: 14px 14px; }
.fg-frame { position: absolute; width: 112px; height: 150px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -10px rgb(74 40 138 / 0.4); padding: 22px 10px 10px; display: flex; flex-direction: column; gap: 7px; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.fg-frame b { position: absolute; top: -18px; left: 0; font-size: 10.5px; font-weight: 600; opacity: 0.7; }
.fg-frame span { height: 9px; border-radius: 5px; background: var(--acc10); }
.fg-frame span:nth-child(3) { width: 70%; }
.fg-frame .btn-s { margin-top: auto; height: 18px; border-radius: 9px; background: var(--fg); }
.fg-frame .chart { height: 52px; border-radius: 8px; background: linear-gradient(180deg, rgb(90 190 137 / 0.35), transparent), var(--acc2); }
.f1 { left: 26px; top: 40px; } .f2 { left: 160px; top: 30px; outline: 2px solid #f47e3f; outline-offset: 3px; } .f3 { left: 294px; top: 48px; }
.fg-cursor { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; animation: fgMove 7s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.fg-cursor svg { width: 16px; height: 16px; }
.fg-cursor em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: #f47e3f; padding: 2px 6px; border-radius: 5px; margin-top: 12px; }
@keyframes fgMove { 0%, 100% { transform: translate(120px, 120px); } 30% { transform: translate(250px, 70px); } 60% { transform: translate(380px, 140px); } 80% { transform: translate(200px, 170px); } }
.bc:hover .f2 { transform: translateY(-6px); }

/* ask */
.bv-ask { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.ask-orb { width: 52px !important; height: 52px !important; }
.ask-hi { font-size: 17px; font-weight: 600; }
.ask-in { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; max-width: 280px; padding: 8px 8px 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--acc10); font-size: 13px; font-weight: 500; opacity: 0.9; }
.ask-in i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: #fff; display: grid; place-items: center; }

/* code */
.bv-code { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; }
.cl { display: flex; gap: 8px; padding-left: calc((var(--i) % 3) * 18px); }
.pill { display: block; height: 10px; width: calc(var(--w) * 18px); border-radius: 6px; transform-origin: left; animation: pillType 4s cubic-bezier(0.22, 1, 0.36, 1) infinite; animation-delay: calc(var(--i) * 0.18s); }
.p0 { background: #f47e3f; } .p1 { background: #5abe89; } .p2 { background: #f486b8; } .p3 { background: #8d75e6; }
@keyframes pillType { 0% { transform: scaleX(0); opacity: 0; } 18%, 82% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0.25; } }
.caret { width: 2px; height: 14px; background: var(--fg); animation: caret 1s steps(1) infinite; margin-left: 2px; }

/* states */
.bv-states { display: flex; align-items: center; justify-content: center; gap: 16px; }
.phone { position: relative; width: 132px; height: 188px; border-radius: 22px; background: #fff; border: 1.5px solid var(--acc25); box-shadow: 0 14px 30px -18px rgb(74 40 138 / 0.45); overflow: hidden; }
.st { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.st.on { opacity: 1; transform: none; }
.st b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.st-load i { width: 80%; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--acc5), var(--acc10), var(--acc5)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.st-load i:nth-child(2) { width: 60%; } .st-load i:nth-child(3) { width: 70%; }
.st-empty b { background: var(--acc5); }
.st-error b { background: #fde1e9; color: #c13f82; }
.st-ok b { background: #ddebe1; color: #00804f; }
.st-chip { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--acc10); min-width: 84px; text-align: center; }

/* git */
.bv-git { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.bv-git svg { width: 100%; height: auto; }
.bv-git .br { stroke-dasharray: 260; stroke-dashoffset: 260; animation: brDraw 4.5s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.bv-git .merge { transform-box: fill-box; transform-origin: center; animation: mergePop 4.5s ease-in-out infinite; }
@keyframes brDraw { 0% { stroke-dashoffset: 260; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes mergePop { 0%, 55% { transform: scale(0.6); opacity: 0.4; } 65% { transform: scale(1.25); opacity: 1; } 75%, 100% { transform: scale(1); } }
.prs { display: grid; gap: 6px; }
.prs span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--acc10); }
.prs i { width: 8px; height: 8px; border-radius: 50%; background: #f5a847; }
.prs i.ok { background: #5abe89; }
.prs em { margin-left: auto; font-style: normal; font-size: 11px; opacity: 0.65; }

/* spaces */
.bv-spaces { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; }
.sp-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; opacity: 0.65; padding: 0 8px 8px; }
.sp-h i { font-style: normal; }
.bv-spaces a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 15px; font-weight: 500; transition: background-color 0.2s, padding 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.bv-spaces a b { opacity: 0.5; }
.bv-spaces a em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--acc5); }
.bv-spaces a:hover { background: var(--acc5); padding-left: 14px; }

/* design system */
.bv-ds { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.sw { display: flex; gap: 8px; }
.sw i { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bc:hover .sw i { transform: translateY(-4px); }
.bc:hover .sw i:nth-child(2) { transition-delay: 0.04s; } .bc:hover .sw i:nth-child(3) { transition-delay: 0.08s; } .bc:hover .sw i:nth-child(4) { transition-delay: 0.12s; } .bc:hover .sw i:nth-child(5) { transition-delay: 0.16s; } .bc:hover .sw i:nth-child(6) { transition-delay: 0.2s; }
.cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmp > span { font-size: 12.5px; font-weight: 600; }
.c-btn { padding: 8px 14px; border-radius: 99px; background: var(--fg); color: #fff; }
.c-in { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--acc25); min-width: 90px; }
.c-badge { padding: 4px 9px; border-radius: 99px; background: #ddebe1; color: #00804f; }
.c-tog { width: 38px; height: 22px; border-radius: 99px; background: var(--acc10); position: relative; animation: togBg 3s infinite; }
.c-tog i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); animation: togKnob 3s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes togKnob { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(16px); } 100% { transform: none; } }
@keyframes togBg { 0%, 40% { background: var(--acc10); } 50%, 90% { background: #5abe89; } 100% { background: var(--acc10); } }

/* live list */
.bv-live { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.bv-live a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; transition: background-color 0.2s; }
.bv-live a:hover { background: var(--acc5); }
.bv-live i { width: 26px; height: 26px; border-radius: 8px; background: var(--tt); border: 1px solid var(--t); flex: none; }
.bv-live b { display: block; font-size: 13.5px; font-weight: 600; }
.bv-live small { display: block; font-size: 11.5px; opacity: 0.7; }
.bv-live small::before { content: '●'; color: #25a871; margin-right: 4px; font-size: 8px; }

@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; border-radius: 28px; } .bc-wide { grid-column: span 2; } .b-title { grid-column: span 2; } }
@media (max-width: 720px) { .bento { grid-template-columns: 1fr; } .bc-wide, .b-title { grid-column: auto; } .bv-figma { grid-template-columns: 1fr; } .fg-side { display: none; } }
@media (prefers-reduced-motion: reduce) { .fg-cursor, .pill, .br, .merge, .c-tog, .c-tog i { animation: none !important; } }

/* navbar aligned to the 1128px content column */
.bar { max-width: calc(1128px + 2 * var(--page)); }
.header-pill { max-width: calc(1128px + 24px); left: calc(var(--page) - 12px); right: calc(var(--page) - 12px); }
.footer .wide, .foot { max-width: 1128px; }

/* band v2: results — big numbers over the bloom hill */
.bt-in { padding-bottom: 300px; }
.bt-stat { border-top: 1.5px solid color-mix(in srgb, var(--fg) 35%, transparent); padding-top: 18px; }
.bt-stat .v { font-family: var(--serif); font-size: clamp(54px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bt-stat h3 { margin-top: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.bt-stat p { margin-top: 6px; font-size: 14.5px; font-weight: 500; line-height: 1.45; opacity: 0.85; }
.bt-bloom { width: 70%; height: 340px; }
.bt-bloom svg path, .bt-bloom svg circle { transition: fill 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.bt-bloom { pointer-events: auto; cursor: pointer; }
@media (max-width: 1024px) {
  .bt-in { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px 250px; }
  .bt-left { max-width: 560px; }
  .bt-grid { gap: 32px 28px; }
  .bt-bloom { width: 100%; height: 240px; }
}
@media (max-width: 560px) {
  .bt-in { padding: 36px 22px 200px; }
  .bt-grid { grid-template-columns: 1fr; gap: 24px; }
  .bt-bloom { height: 190px; }
  .bt-stat .v { font-size: 56px; }
}

/* ===== Bento v2: mosaic of mixed tile sizes, fits ~one screen ===== */
.bento.b2 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 176px; grid-template-areas: "title title figma figma" "ask code figma figma" "ask states git git" "spaces states ds live"; gap: 14px; padding: 20px; }
.ga-title { grid-area: title; align-self: center; } .ga-figma { grid-area: figma; } .ga-ask { grid-area: ask; } .ga-code { grid-area: code; }
.ga-states { grid-area: states; } .ga-git { grid-area: git; } .ga-spaces { grid-area: spaces; } .ga-ds { grid-area: ds; } .ga-live { grid-area: live; }
.b2 .bc { min-height: 0; }
.b2 .bv { flex: 1; height: auto; min-height: 0; padding: 14px 16px 6px; }
.b2 .bt { padding: 0 16px 14px; }
.b2 .bt .kicker { font-size: 12.5px; }
.b2 .bt p:last-child:not(.kicker) { margin-top: 6px; font-size: 14px; line-height: 1.4; }
.b2 .b-title .h2 { font-size: clamp(30px, 3vw, 42px); }
.b2 .b-title .lead-s { font-size: 17px; }

/* Figma editor */
.fx-ed { display: flex; flex-direction: column; padding: 12px 0 0 12px !important; }
.ed-top { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 10px 0 0 0; background: #2a1b49; color: #fff; font-size: 11px; font-weight: 600; }
.ed-logo { color: #f486b8; margin-right: 4px; }
.ed-tool { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; opacity: 0.75; }
.ed-tool.on { background: #714bd0; opacity: 1; }
.ed-file { margin-left: 8px; opacity: 0.8; font-weight: 500; }
.ed-avs { margin-left: auto; display: flex; }
.ed-avs i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; border: 2px solid #2a1b49; margin-left: -5px; }
.ed-share { background: #714bd0; padding: 4px 9px; border-radius: 6px; margin-right: 4px; }
.ed-body { flex: 1; display: grid; grid-template-columns: 112px 1fr 122px; min-height: 0; border-left: 1px solid var(--acc10); }
.ed-layers, .ed-insp { background: #fff; padding: 8px; font-size: 10.5px; font-weight: 500; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.ed-layers span, .ed-insp > span { font-size: 9.5px; font-weight: 700; opacity: 0.55; margin: 4px 0 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.ed-layers i { font-style: normal; padding: 3px 5px; border-radius: 4px; white-space: nowrap; }
.ed-layers i.on { background: var(--acc5); }
.ed-layers i.sub { padding-left: 14px; opacity: 0.7; }
.ed-insp { border-left: 1px solid var(--acc10); }
.kv { display: grid; grid-template-columns: 10px 1fr 10px 1fr; gap: 4px; align-items: center; background: var(--acc2); border-radius: 4px; padding: 4px 5px; font-family: var(--mono); font-size: 9.5px; }
.kv em { font-style: normal; opacity: 0.5; }
.sw1 { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; background: var(--acc2); border-radius: 4px; padding: 4px 5px; }
.sw1 i { width: 12px; height: 12px; border-radius: 3px; background: #714bd0; }
.al { display: flex; gap: 3px; } .al i { flex: 1; height: 14px; border-radius: 3px; border: 1px dashed var(--acc25); }
.ed-canvas { position: relative; overflow: hidden; background-color: #f4f2fa; background-image: radial-gradient(rgb(113 75 208 / 0.16) 1px, transparent 1px); background-size: 12px 12px; }
.fr { position: absolute; width: 120px; border-radius: 9px; background: #fff; box-shadow: 0 6px 16px -10px rgb(74 40 138 / 0.45); padding: 10px 9px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.fr b { position: absolute; top: -15px; left: 0; font-size: 9.5px; font-weight: 600; opacity: 0.65; white-space: nowrap; }
.fr .ln { height: 7px; border-radius: 4px; background: var(--acc10); } .fr .ln.s { width: 60%; }
.fr .field { height: 16px; border-radius: 5px; border: 1px solid var(--acc25); }
.fr .cta { margin-top: 2px; height: 18px; border-radius: 9px; background: #714bd0; color: #fff; font-size: 8.5px; font-weight: 700; display: grid; place-items: center; }
.fr .cta.g { background: #25a871; }
.fr-steps { display: flex; gap: 3px; } .fr-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--acc10); } .fr-steps i.done { background: #714bd0; } .fr-steps i.cur { background: #c2aafa; }
.fr-a { left: 16px; top: 34px; }
.fr-b { left: 154px; top: 24px; width: 150px; }
.fr-c { left: 70px; top: 214px; width: 130px; }
.fr.sel { outline: 1.5px solid #f47e3f; outline-offset: 3px; }
.hand { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid #f47e3f; border-radius: 2px; }
.hand.tl { left: -7px; top: -7px; } .hand.tr { right: -7px; top: -7px; } .hand.bl { left: -7px; bottom: -7px; } .hand.br { right: -7px; bottom: -7px; }
.dim { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font-family: var(--mono); font-size: 8.5px; font-weight: 700; color: #fff; background: #f47e3f; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.kpis span { background: var(--acc2); border-radius: 5px; padding: 4px 5px; font-size: 9.5px; font-weight: 700; }
.kpis em { display: block; font-style: normal; font-size: 7.5px; font-weight: 600; opacity: 0.6; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(#8d75e6, #c2aafa); transform-origin: bottom; animation: barGrow 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate; }
.bars i:nth-child(2n) { animation-delay: 0.2s; } .bars i:nth-child(3n) { animation-delay: 0.4s; }
@keyframes barGrow { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
.fr .row { height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--acc5) 30%, transparent 30% 34%, var(--acc5) 34%); }
.pay { background: linear-gradient(135deg, #2a1b49, #4a288a); color: #fff; border-radius: 7px; padding: 7px; }
.pay em { display: block; font-style: normal; font-size: 7.5px; opacity: 0.7; }
.pay strong { font-size: 13px; }
.cmt { position: absolute; left: 225px; top: 196px; display: flex; align-items: center; gap: 5px; background: #fff; border-radius: 12px 12px 12px 3px; padding: 5px 8px 5px 5px; box-shadow: 0 6px 16px -10px rgb(74 40 138 / 0.5); font-size: 9.5px; font-weight: 600; animation: cmtPop 6s ease-in-out infinite; }
.cmt i { width: 16px; height: 16px; border-radius: 50%; background: #f47e3f; color: #fff; font-style: normal; font-size: 8px; display: grid; place-items: center; }
@keyframes cmtPop { 0%, 15% { opacity: 0; transform: translateY(6px) scale(0.95); } 22%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.cur { position: absolute; left: 0; top: 0; display: flex; gap: 2px; pointer-events: none; }
.cur svg { width: 14px; height: 14px; }
.cur em { font-style: normal; font-size: 9px; font-weight: 700; color: #fff; background: #f47e3f; padding: 1px 5px; border-radius: 4px; margin-top: 10px; }
.cur-s { animation: curS 8s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.cur-d { animation: curD 9s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes curS { 0%, 100% { transform: translate(250px, 150px); } 30% { transform: translate(110px, 80px); } 60% { transform: translate(280px, 60px); } 80% { transform: translate(160px, 230px); } }
@keyframes curD { 0%, 100% { transform: translate(60px, 200px); } 35% { transform: translate(200px, 120px); } 70% { transform: translate(90px, 60px); } }
.ga-figma:hover .fr-b { transform: translateY(-4px); }

/* Ask (tall) */
.bv-ask2 { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 18px !important; }
.bv-ask2 .ask-orb { width: 44px !important; height: 44px !important; }
.ask-msgs { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; font-size: 11.5px; font-weight: 500; line-height: 1.35; }
.ask-msgs span { padding: 7px 10px; border-radius: 12px; max-width: 92%; }
.ask-msgs .me { align-self: flex-end; background: var(--fg); color: #fff; border-bottom-right-radius: 3px; }
.ask-msgs .bot { background: #fff; border: 1px solid var(--acc10); border-bottom-left-radius: 3px; }
.ask-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.ask-chips i { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--acc25); background: #fff; }
.bv-ask2 .ask-in { margin-top: auto; font-size: 11.5px; }

/* Code (small) */
.bv-ed { padding: 10px 12px 4px !important; }
.bv-ed .tab { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; background: #fff; border: 1px solid var(--acc10); border-bottom: 0; border-radius: 7px 7px 0 0; padding: 4px 8px; }
.bv-ed .tab i { width: 8px; height: 8px; border-radius: 2px; background: #71a7e5; }
.bv-ed .tab b { opacity: 0.4; margin-left: 4px; }
.bv-ed .code-lines { background: #fff; border: 1px solid var(--acc10); border-radius: 0 8px 8px 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.bv-ed .cl { display: flex; align-items: center; gap: 5px; padding-left: calc((var(--i) % 3) * 10px); }
.bv-ed .cl em { font-style: normal; font-family: var(--mono); font-size: 8.5px; opacity: 0.4; width: 14px; flex: none; margin-left: calc((var(--i) % 3) * -10px); margin-right: calc((var(--i) % 3) * 10px); }
.bv-ed .pill { height: 7px; width: calc(var(--w) * 10px); }

/* States (tall) */
.bv-states2 { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 10px; align-items: center; }
.bv-states2 .phone { width: 112px; height: 210px; border-radius: 22px; grid-row: span 2; }
.ph-notch { position: absolute; top: 6px; left: 50%; width: 34px; height: 8px; margin-left: -17px; border-radius: 99px; background: var(--acc10); z-index: 2; }
.checks { display: grid; gap: 8px; font-size: 12px; font-weight: 600; }
.checks li { display: flex; align-items: center; gap: 6px; opacity: 0.45; transition: opacity 0.4s; }
.checks li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color 0.4s, border-color 0.4s; }
.checks li.on { opacity: 1; } .checks li.on::before { background: #25a871; border-color: #25a871; }
.bv-states2 .st-chip { min-width: 0; justify-self: start; }

/* Git (wide) */
.bv-git2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 14px; align-items: center; }
.bv-git2 svg { width: 100%; height: auto; }
.prs2 { display: grid; gap: 5px; }
.prs2 span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 6px 8px; border-radius: 7px; background: #fff; border: 1px solid var(--acc10); }
.prs2 i { width: 8px; height: 8px; border-radius: 50%; background: #f5a847; flex: none; }
.prs2 i.ok { background: #25a871; }
.prs2 b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prs2 em { font-style: normal; font-size: 10px; opacity: 0.6; white-space: nowrap; }
.prs2 em.diff { margin-left: auto; font-family: var(--mono); color: #25a871; opacity: 1; }

/* small tiles */
.bv-spaces2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: center; }
.bv-spaces2 a { display: flex; align-items: center; gap: 5px; padding: 8px; border-radius: 9px; background: #fff; border: 1px solid var(--acc10); font-size: 12.5px; font-weight: 600; transition: background-color 0.2s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bv-spaces2 a:hover { background: var(--acc5); transform: translateY(-2px); }
.bv-spaces2 b { opacity: 0.45; } .bv-spaces2 em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10px; opacity: 0.6; }
.bv-ds2 { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bv-ds2 .sw i { width: 26px; height: 26px; border-radius: 8px; }
.bv-ds2 .cmp > span { font-size: 11px; }
.bv-ds2 .c-btn { padding: 5px 10px; }
.type { display: flex; align-items: baseline; gap: 8px; } .type b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; } .type span { font-family: var(--mono); font-size: 10px; opacity: 0.6; }
.bv-live2 { display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.up { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 6px; }
.up b { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.03em; }
.up em { font-style: normal; font-size: 10.5px; font-weight: 600; opacity: 0.6; padding-bottom: 3px; }
.up svg { grid-column: span 2; width: 100%; height: 26px; }
.up svg path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: sparkDraw 3s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes sparkDraw { 0% { stroke-dashoffset: 200; } 60%, 100% { stroke-dashoffset: 0; } }
.bv-live2 a { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.bv-live2 a i { width: 10px; height: 10px; border-radius: 3px; background: var(--tt); border: 1px solid var(--t); }
.bv-live2 a small { margin-left: auto; font-size: 10px; color: #25a871; }

/* responsive mosaic */
@media (max-width: 1024px) {
  .bento.b2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; grid-template-areas: "title title" "figma figma" "figma figma" "ask states" "ask states" "git git" "code spaces" "ds live"; }
}
@media (max-width: 560px) {
  .bento.b2 { grid-template-columns: 1fr; grid-auto-rows: auto; grid-template-areas: "title" "figma" "ask" "states" "git" "code" "spaces" "ds" "live"; }
  .b2 .bc { min-height: 220px; } .ga-figma { min-height: 380px; } .ed-layers, .ed-insp { display: none; } .ed-body { grid-template-columns: 1fr; }
  .bv-git2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cur, .cmt, .bars i, .up svg path { animation: none !important; } }

/* premium logo: gradient badge + serif wordmark */
.logo { gap: 10px; }
.logo-mark { width: 30px; height: 30px; filter: drop-shadow(0 3px 6px rgb(74 40 138 / 0.28)); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo:hover .logo-mark svg { animation: none; }
.logo-word { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--fg-deep); }
.footer .logo-word { font-size: 24px; }
.bv-ed .code-lines .cl { padding-top: 0; padding-bottom: 0; border: 0; font-size: inherit; }
.bv-git2 svg { max-height: 64px; }
.prs2 span { padding: 5px 8px; }
.prs2 { gap: 4px; }
.cta-f { display: inline-flex; align-items: center; gap: 7px; }
.dl-ic { flex: none; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
a:hover > .dl-ic { transform: translateY(2px); }
.bv-ed .code-lines { gap: 4px; padding: 6px 8px; }
.bv-ed .code-lines .cl:nth-child(n+6) { display: none; }
.bv-ed .tab { padding: 3px 8px; }

/* logo: original simple structure, just "sinan" + new S-mark */
.logo { gap: 8px; }
.logo-mark { width: 28px; height: 28px; filter: none; color: var(--fg); }
.logo-word { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--fg); }
.footer .logo-word { font-size: 22px; }
.logo:hover .logo-mark { transform: rotate(-12deg); }

/* band: shorter */
.band-tines { min-height: 0; }
.bt-in { padding: 48px 56px 210px; gap: 40px; }
.bt-grid { gap: 30px 36px; }
.bt-stat .v { font-size: clamp(48px, 5vw, 70px); }
.bt-bloom { height: 250px; width: 66%; }
@media (max-width: 1024px) { .bt-in { padding: 40px 28px 190px; } .bt-bloom { height: 200px; } }
@media (max-width: 560px) { .bt-in { padding: 32px 22px 160px; } .bt-bloom { height: 160px; } }

/* logo mark: globe slices, one line ships out to an orange spark */
.logo-mark { width: 30px; height: 28px; }
.logo-mark svg { overflow: visible; }
.logo-mark path, .lm-dot { transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.lm-c { stroke-dasharray: none; }
.logo:hover .logo-mark { transform: none; }
.logo:hover .lm-a { transform: translateX(2px); }
.logo:hover .lm-b { transform: translateX(-2px); }
.logo:hover .lm-d { transform: translateX(1.5px); }
.logo:hover .lm-c, .logo:hover .lm-dot { transform: translateX(3px); }

/* ===== reviews wall: quotes with photos + real screenshots ===== */
.rw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.rw-rate { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 6px; text-align: right; justify-items: end; }
.rw-rate .big { font-family: var(--serif); font-size: 72px; line-height: 0.9; letter-spacing: -0.04em; }
.rw-rate .of { font-family: var(--serif); font-size: 26px; opacity: 0.7; justify-self: start; }
.rw-rate .stars, .rw-rate .small { grid-column: span 2; }
.rw-rate .stars i { width: 98%; }
.rwall { columns: 3; column-gap: 16px; }
.rwall > figure { break-inside: avoid; margin: 0 0 16px; }
.rv-card { display: flex; flex-direction: column; gap: 22px; padding: 22px; border-radius: 16px; background: var(--tt); color: var(--t); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s, filter 0.2s; }
.rv-card:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 20px 40px -26px rgb(74 40 138 / 0.45); }
.rv-card .qmark { width: 38px; height: 38px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; padding-top: 10px; }
.rv-card blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.rv-card.big blockquote { font-size: 28px; line-height: 1.16; }
.rv-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.rv-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg); border: 2px solid var(--bg); box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.rv-card:hover .rv-ph { transform: scale(1.1) rotate(-6deg); }
.rv-card .person { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.rv-card .person b { display: block; font-weight: 600; }
.rv-shot { background: #fff; border: 1px solid var(--acc10); border-radius: 16px; padding: 10px; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s; }
.rv-shot:hover { transform: translateY(-4px) rotate(0.4deg); box-shadow: 0 20px 40px -26px rgb(74 40 138 / 0.45); }
.shot-frame { position: relative; height: 300px; border-radius: 10px; overflow: hidden; background: var(--acc2); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3.5s cubic-bezier(0.45, 0, 0.55, 1); }
.rv-shot:hover .shot-frame img { object-position: bottom; }
.shot-frame::after { content: ''; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(transparent, rgb(255 255 255 / 0.9)); pointer-events: none; transition: opacity 0.4s; }
.rv-shot:hover .shot-frame::after { opacity: 0; }
.rv-shot figcaption { padding: 10px 4px 2px; font-size: 13.5px; font-weight: 600; }
@media (max-width: 1024px) { .rwall { columns: 2; } }
@media (max-width: 600px) { .rwall { columns: 1; } .rw-rate { text-align: left; justify-items: start; } }

/* flower bed: Tines-like bold flat flowers across the band, no colourway tint */
[data-art] svg, .bt-bloom svg { filter: none !important; }
.bt-bloom { width: 100%; left: 0; height: 250px; }
.bt-bloom svg { width: 100%; }
.bt-bloom svg path, .bt-bloom svg circle { transition: fill 1.6s cubic-bezier(0.45, 0, 0.55, 1); }

/* ===== Areas I care about (Tines solutions-style) ===== */
.areas-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stamp { width: 120px; height: 120px; margin-bottom: 26px; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp:hover { transform: rotate(-6deg) scale(1.05); }
.stamp .postmark { transform-box: fill-box; transform-origin: center; animation: postmark 14s linear infinite; }
@keyframes postmark { to { rotate: 360deg; } }
.areas-head .lead-s { margin-top: 18px; max-width: 36ch; font-weight: 400; }
.areas-head .btn { margin-top: 28px; }
.areas-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 44px; }
.area { display: flex; flex-direction: column; min-height: 270px; padding: 22px 20px; border: 1px solid var(--t); border-radius: 6px; color: var(--t); background: var(--bg); transition: border-color 0.2s, background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.areas-grid .area:first-child { border-radius: 14px 6px 6px 14px; }
.areas-grid .area:last-child { border-radius: 6px 14px 14px 6px; }
.area:hover { background: color-mix(in srgb, var(--tt) 50%, var(--bg)); transform: translateY(-4px); }
.area-ic { width: 30px; height: 30px; display: block; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.area-ic svg { width: 100%; height: 100%; }
.area:hover .area-ic { transform: rotate(-10deg) scale(1.12); }
.area h3 { margin-top: 22px; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
.area p { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.area .arrow-link { margin-top: auto; padding-top: 22px; font-size: 12px; }
.area:hover .arrow-link .ar { transform: translateX(3px); }
@media (max-width: 1100px) { .areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .areas-grid .area { border-radius: 8px !important; } }
@media (max-width: 640px) { .areas-grid { grid-template-columns: 1fr; } .area { min-height: 0; } }

/* bloom field v3: fixed in place, each flower slowly turns; clicks send a colour wave */
.bt-bloom svg { animation: none !important; transform: none !important; }
.bt-bloom .bl { animation: none; }
.bt-bloom .spin { transform-box: view-box; animation: bspin var(--sp, 60s) linear infinite; animation-direction: var(--dir, normal); }
@keyframes bspin { to { transform: rotate(360deg); } }
.bt-bloom svg path, .bt-bloom svg circle { transition: fill 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { .bt-bloom .spin { animation: none; } }

/* dot portrait: no card behind it, just purple dots on the page */
.dots[data-cut], .build-art.build-dots[data-cut] { background: transparent; border-radius: 0; overflow: visible; }

/* logo mark v3: design (purple) meets build (orange) */
.logo-mark { width: 32px; height: 30px; transform: none !important; }
.logo-mark svg { overflow: visible; animation: none !important; }
.logo-mark .lm-l, .logo-mark .lm-r, .logo-mark .lm-x { transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); transform-box: fill-box; transform-origin: center; }
.logo:hover .lm-l { transform: translateX(2.5px); }
.logo:hover .lm-r { transform: translateX(-2.5px); }
.logo:hover .lm-x { transform: scale(1.5, 1.12); }

.build-art.build-dots[data-cut] { max-width: 400px; justify-self: center; }

a[download] { text-transform: none !important; letter-spacing: 0.01em; font-family: var(--sans, 'Figtree', sans-serif); font-weight: 600; }

/* hero: flower clusters peeking out from behind the Ask Sinu workspace */
.ws-flowers { position: absolute; z-index: 1; pointer-events: none; }
.ws-flowers svg { width: 100%; height: 100%; overflow: visible; filter: none !important; }
.ws-flowers svg .bl { pointer-events: visiblePainted; }
.ws-flowers.fx { cursor: pointer; }
.wf-tr { width: 620px; height: 210px; top: -118px; right: max(-40px, calc(50% - 600px)); }
.wf-rt { width: 230px; height: 400px; top: 22%; right: max(-60px, calc(50% - 690px)); }
.wf-bl { width: 300px; height: 330px; bottom: -70px; left: max(-60px, calc(50% - 700px)); }
.wf-bb { width: 640px; height: 150px; bottom: -82px; left: max(0px, calc(50% - 430px)); }
[data-art="bloom"] .bl { animation: none; }
[data-art="bloom"] .spin { transform-box: view-box; animation: bspin var(--sp, 60s) linear infinite; animation-direction: var(--dir, normal); }
[data-art="bloom"] svg path, [data-art="bloom"] svg circle { transition: fill 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
@media (max-width: 1100px) { .ws-flowers { display: none; } }
@media (prefers-reduced-motion: reduce) { [data-art="bloom"] .spin { animation: none; } }
.wf-tr { width: 520px; height: 170px; top: -92px; right: max(-40px, calc(50% - 610px)); }
.hero-ctas { position: relative; z-index: 3; }
#approach .trio { margin-top: 140px; }
#approach .build-dots { margin-top: 12px; }

.stamp, .stamp:hover { transition: none; transform: none; }
.stamp svg { filter: drop-shadow(0 4px 10px rgb(74 40 138 / 0.16)); }
.stamp .postmark { animation: none; }
.wf-tr { width: 420px; height: 130px; top: -46px; right: max(-30px, calc(50% - 600px)); }
.hero-ctas .btn { text-transform: none; font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }
.wf-bl { width: 250px; height: 270px; bottom: -60px; left: max(-50px, calc(50% - 680px)); }

/* "Let's talk" garden: the canvas draws the word; the DOM text stays for layout and screen readers */
.word-clean.word-garden { background: none; color: transparent; -webkit-text-fill-color: transparent; cursor: pointer; }
.word-clean .word-cv { display: block; }

/* flowers: a slower, calmer turn */
[data-art="bloom"] .spin { animation-duration: calc(var(--sp, 60s) * 2); }
/* responsive pass */
@media (max-width: 900px) {
  .build { grid-template-columns: 1fr; gap: 28px; }
  .build-art.build-dots[data-cut] { justify-self: center; width: min(100%, 360px); margin-top: 8px; }
  #approach .trio { margin-top: 72px; }
  #approach { margin-top: 110px !important; }
}
@media (max-width: 720px) {
  .bt-in { padding-bottom: 150px !important; }
  .bt-bloom { height: 170px !important; overflow: hidden; border-radius: 0 0 28px 28px; }
  .bt-bloom svg { width: 190% !important; max-width: none !important; height: 100% !important; }
}

/* ===== Writing v2 ===== */
.w-head .h1 { font-size: clamp(48px, 6vw, 80px); }
.w-head .lead-s { font-size: 21px; max-width: 640px; }
.w-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.w-stats span { font-size: 15px; font-weight: 500; color: var(--fg); background: var(--acc5, #ebe8fc); border-radius: 999px; padding: 9px 16px; }
.w-stats b { font-weight: 700; }
.wc-tag { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--t); }
.wc-meta { display: block; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--t) 80%, transparent); }
.wfeature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; background: var(--tt); color: var(--t); border-radius: 28px; padding: 56px; overflow: hidden; text-decoration: none; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.wfeature:hover { transform: translateY(-3px); }
.wfeature h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0 18px; }
.wfeature p { font-size: 19px; line-height: 1.5; font-weight: 500; max-width: 560px; margin-bottom: 18px; }
.wf-btn { margin-top: 26px; background: var(--t); border-color: var(--t); color: #fff; }
.wf-art { height: 340px; position: relative; }
.wf-art .wc-art { position: absolute; inset: -20px; }
.wc-art svg { width: 100%; height: 100%; overflow: visible; }
.wtags { display: flex; flex-wrap: wrap; gap: 8px; margin: 64px 0 28px; }
.wtags button { font: 600 15px/1 var(--sans); color: var(--fg); background: transparent; border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.wtags button:hover { border-color: var(--fg); }
.wtags button.on { background: var(--fg); color: #fff; border-color: var(--fg); }
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wcard { display: flex; flex-direction: column; border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); border-radius: 20px; overflow: hidden; color: var(--t); text-decoration: none; background: #fff; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s; }
.wcard[hidden] { display: none; }
.wcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--t) 45%, transparent); }
.wc-top { background: var(--tt); height: 170px; position: relative; overflow: hidden; }
.wc-top .wc-art { position: absolute; inset: 6px 10px -40px; }
.wc-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.wcard h3 { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
.wcard p { font-size: 16px; line-height: 1.5; font-weight: 500; color: color-mix(in srgb, var(--t) 85%, #000 0%); flex: 1; }
.article.prose, .prose { font-size: 21px; }
@media (max-width: 1024px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wfeature { grid-template-columns: 1fr; padding: 40px 32px; } .wf-art { height: 240px; } }
@media (max-width: 640px) { .wgrid { grid-template-columns: 1fr; } .wfeature { padding: 32px 24px; border-radius: 22px; } .wfeature p { font-size: 17px; } .w-head .lead-s { font-size: 18px; } }

/* no scroll-in delays: content is simply there */
.rv, .rv.in { opacity: 1 !important; transform: none !important; animation: none !important; }
/* results band: let clicks reach the flowers under the text layer */
.band-tines .bt-in { pointer-events: none; }
.band-tines .bt-in > * { pointer-events: auto; }

/* areas: 4 on top, 4 below */
.areas-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.areas-grid .area, .areas-grid .area:first-child, .areas-grid .area:last-child { border-radius: 10px; min-height: 250px; }
.areas-grid .area:nth-child(1) { border-top-left-radius: 22px; } .areas-grid .area:nth-child(4) { border-top-right-radius: 22px; }
.areas-grid .area:nth-child(5) { border-bottom-left-radius: 22px; } .areas-grid .area:nth-child(8) { border-bottom-right-radius: 22px; }
@media (max-width: 1100px) { .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .areas-grid .area { border-radius: 12px !important; } }
@media (max-width: 640px) { .areas-grid { grid-template-columns: 1fr; } .areas-grid .area { min-height: 0; } }
/* Ask Sinu on phones: just the conversation, sized to its content */
@media (max-width: 720px) {
  .ws-side { display: none !important; }
  .ws-body { display: block !important; }
  .ws-zone > .ws { padding: 8px !important; border-radius: 18px; }
  .ws-main { min-height: 0 !important; border-radius: 14px; }
  .chat-log { min-height: 240px !important; max-height: 58vh !important; padding: 14px 12px !important; }
  .chat-hd .chat-id { max-width: calc(100% - 70px); }
  .chat-sugs { padding: 4px 12px 10px !important; gap: 6px !important; }
  .chat-sugs button { font-size: 13.5px !important; }
  .chat-in { margin: 0 10px 10px !important; }
  .chat-in input { font-size: 16px !important; }
}

/* review screenshots: scroll inside the frame, soft grey fade at the bottom */
.shot-frame { background: #2b2d31; }
.shot-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.28) transparent; }
.shot-scroll::-webkit-scrollbar { width: 6px; } .shot-scroll::-webkit-scrollbar-thumb { background: rgb(255 255 255 / 0.28); border-radius: 6px; }
.shot-frame .shot-scroll img, .rv-shot:hover .shot-frame img { height: auto; object-fit: initial; object-position: initial; transition: none; display: block; }
.shot-frame::after, .rv-shot:hover .shot-frame::after { height: 56px; opacity: 1; background: linear-gradient(rgb(43 45 49 / 0), rgb(43 45 49 / 0.92)); }
.shot-frame.at-end::after { opacity: 0; }
.shot-frame { height: 320px; border-radius: 12px; background: #1d1e21; }
.shot-frame::after, .rv-shot:hover .shot-frame::after { background: linear-gradient(rgb(29 30 33 / 0), rgb(29 30 33 / 0.94)); }
/* announcement bar: clean pill */
.announce-in { min-height: 44px; }
.announce a.pill { display: inline-flex !important; align-items: center; height: auto !important; min-height: 0 !important; width: auto !important; overflow: visible !important; white-space: nowrap; line-height: 1 !important; padding: 7px 12px !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 700; color: var(--night) !important; background: #fff !important; text-transform: none !important; letter-spacing: 0 !important; }
.announce a.pill:hover { background: var(--acc10) !important; }
@media (max-width: 640px) { .announce-in { justify-content: flex-start; padding-right: 44px; } .announce-in > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.announce a.pill { animation: none !important; transform: none !important; }

/* case study: three compact challenge cards */
.chal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.chal-c { border: 1px solid color-mix(in srgb, var(--t) 40%, transparent); border-radius: 14px; padding: 20px 20px 22px; background: var(--tt); color: var(--t); }
.chal-n { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; opacity: 0.8; }
.chal-c h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; margin: 10px 0 8px; letter-spacing: -0.01em; }
.chal-c p { font-size: 15.5px; line-height: 1.5; font-weight: 500; margin: 0; }
#overview .lead-s { font-size: 22px; line-height: 1.45; }
@media (max-width: 900px) { .chal { grid-template-columns: 1fr; } }

/* ===================== Arabic (RTL) ===================== */
html[lang="ar"] {
  --sans: 'Figtree', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --serif: 'Newsreader', 'Noto Naskh Arabic', 'IBM Plex Sans Arabic', serif;
  --mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', monospace;
}
html[lang="ar"] body { font-family: var(--sans); }
/* Arabic letters must join: no tracking, no forced capitals */
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] .kicker, html[lang="ar"] .wc-tag, html[lang="ar"] .btn, html[lang="ar"] .tagpill, html[lang="ar"] time { text-transform: none !important; }
/* room for Arabic ascenders/descenders and dots */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .h1, html[lang="ar"] .h2s, html[lang="ar"] .hero h1 { line-height: 1.32 !important; }
html[lang="ar"] p, html[lang="ar"] li, html[lang="ar"] .lead-s, html[lang="ar"] .prose { line-height: 1.75; }
html[lang="ar"] .prose { font-size: 20px; }
html[lang="ar"] .prose h2 { line-height: 1.4; }
html[lang="ar"] .rv-card blockquote, html[lang="ar"] .wcard h3, html[lang="ar"] .wfeature h2 { line-height: 1.45 !important; }
html[lang="ar"] .kicker { font-family: var(--sans); font-weight: 700; font-size: 14px; }
/* arrows point the reading direction */
html[lang="ar"] .ar { display: inline-block; transform: scaleX(-1); }
/* things that must stay left-to-right */
html[lang="ar"] .marquee, html[lang="ar"] .code-lines, html[lang="ar"] .bt-num, html[lang="ar"] [data-count], html[lang="ar"] a[href^="tel:"], html[lang="ar"] a[href^="mailto:"], html[lang="ar"] .lines .u { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .marquee .mq-track { direction: ltr; }
/* mirrored placements */
html[lang="ar"] .bt-bloom { transform: scaleX(-1); }
html[lang="ar"] .announce button { right: auto; left: var(--page); }
html[lang="ar"] .prose ul li { padding-left: 0; padding-right: 24px; }
html[lang="ar"] .prose ul li::before { left: auto; right: 4px; }
html[lang="ar"] .prose ol li { padding: 16px 56px 16px 18px; }
html[lang="ar"] .prose ol li::before { left: auto; right: 18px; }
html[lang="ar"] .word-clean { font-family: 'IBM Plex Sans Arabic', var(--sans); font-weight: 700; line-height: 1.25 !important; }
html[lang="ar"] .logo-word { font-family: 'Figtree', sans-serif; }
.lang-sw { font-size: 15px; font-weight: 600; color: var(--fg); padding: 8px 12px; border-radius: 999px; text-decoration: none; transition: background 0.2s; }
.lang-sw:hover { background: var(--acc5, #ebe8fc); }
html:not([lang="ar"]) .lang-sw { font-family: 'IBM Plex Sans Arabic', var(--sans); }
@media (max-width: 720px) { .bar-right .lang-sw { font-size: 14px; padding: 7px 12px; margin-inline-end: 2px; background: var(--acc5, #ebe8fc); } }
.sheet .lang-big { font-family: 'IBM Plex Sans Arabic', var(--sans); }
html[lang="ar"] .hero-h1 { font-size: clamp(34px, 4.4vw, 58px) !important; text-wrap: balance; }
html[lang="ar"] .h1:not(.hero-h1) { text-wrap: balance; }
/* Arabic has no true italics: keep quotes upright */
html[lang="ar"] em, html[lang="ar"] i, html[lang="ar"] blockquote, html[lang="ar"] .pull, html[lang="ar"] [class*="quote"] { font-style: normal !important; }
/* navbar: push the action group to the far end in both directions */
.bar-right { margin-left: 0; margin-inline-start: auto; }
/* RTL: chat input placeholder sits at the start of the field, away from the send button */
html[lang="ar"] .chat-in { padding: 6px 14px 6px 6px; }
html[lang="ar"] .typer-ph { left: auto; right: 15px; }
html[lang="ar"] .typer-ph::after { margin-left: 0; margin-right: 1px; }
html[lang="ar"] .chat-in input { text-align: right; }
html[lang="ar"] .book-q { quotes: "«" "»"; }
html[lang="ar"] q, html[lang="ar"] blockquote { quotes: "«" "»"; }
.mq-track img[src*="propfirm-prestige"] { transform: scale(1.3); }

/* site logo: Sinan's dotted avatar */
.logo-mark.logo-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgb(74 40 138 / 0.22); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.logo-mark.logo-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.logo:hover .logo-mark.logo-av { transform: rotate(-6deg) scale(1.08) !important; }

/* ===== Apps (from apps-platform): the site's clean outline cards, 4 x 2 ===== */
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.app-card { min-height: 280px; }
.app-card .pc-top { align-items: center; }
.app-card .app-ic { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 0 0 1px rgb(33 23 53 / 0.06); }
.app-card .h3 { margin-top: 26px; font-size: clamp(24px, 2.2vw, 28px); }
.app-card p { margin: 10px 0 30px; font-family: var(--serif); font-size: 18px; font-weight: 400; line-height: 1.3; color: var(--fg, #211735); opacity: 0.85; }
.app-card:hover .arrow-link .ar { transform: translate(2px, -2px); }
.app-all { background: var(--tt); }
.app-stack { display: flex; }
.app-stack img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px var(--tt); }
.app-stack img + img { margin-left: -10px; }
@media (max-width: 1000px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .apps-grid { grid-template-columns: 1fr; gap: 14px; } .app-card { min-height: 0; } .app-card p { margin-bottom: 22px; } }
html[lang="ar"] .app-stack img + img { margin-left: 0; margin-right: -10px; }
html[lang="ar"] .app-card .pc-yr { letter-spacing: 0; }

/* logo strip stays inside the content width (same as the navbar and sections), soft fade at both ends */
.hero .marquee { width: min(var(--grid), calc(100% - 2 * var(--page))); margin-left: auto; margin-right: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
