/* FikzStudio — porcelain + carbon + lime (from logo sparkle) */
:root {
  --bg: #F7F3EC;
  --card: #FFFDF8;
  --muted-bg: #EFE8DC;
  --ink: #1B1F1D;
  --ink-2: #3A3F3C;
  --muted: #5B564E;          /* 6.4:1 on --bg */
  --line: #E4DCCF;
  --line-strong: #CFC4B3;
  --carbon: #232826;
  --carbon-2: #2F3532;
  --lime: #BEF264;           /* sparkle; always pair with --ink text */
  --lime-deep: #A3E635;
  --ok: #3F6212;

  --font: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --max: 1200px;
  --gap: clamp(16px, 2.6vw, 28px);
  --section: clamp(56px, 7vw, 96px);
  --shadow: 0 40px 80px -48px rgba(35,40,38,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0 0 .45em; font-weight: 700; }
h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: .96; letter-spacing: -0.05em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; }
h3 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: var(--mono); font-size: .85em; }
.eyebrow {
  display: block; font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--lime-deep); margin-right: 10px; vertical-align: 1px; }
/* gradient trims the top so the highlight never covers descenders on the line above */
mark { background: linear-gradient(transparent 24%, var(--lime) 24%, var(--lime) 94%, transparent 94%); color: var(--ink); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.wrap { width: min(100% - 2 * var(--gap), var(--max)); margin-inline: auto; }
section { padding-block: var(--section); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; border-radius: 8px; }

/* Logo (text + sparkle, matches supplied wordmark) */
.logo { display: inline-flex; align-items: flex-start; gap: 1px; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.035em; text-decoration: none; color: var(--ink); line-height: 1; }
.logo svg { width: .62em; height: .62em; margin-top: -.18em; color: var(--lime-deep); }
.logo.on-dark { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--carbon); color: var(--bg); border-color: var(--carbon); }
.btn-dark:hover { background: var(--carbon-2); }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime-deep); }
.btn-lime:hover { background: var(--lime-deep); }

/* Announcement + header */
.announce { background: var(--carbon); color: var(--bg); font-size: .9rem; text-align: center; padding: 10px 16px; }
.announce .pill { display: inline-block; background: var(--lime); color: var(--ink); font-weight: 600; font-size: .75rem; padding: 3px 9px; border-radius: 999px; margin-right: 10px; letter-spacing: .02em; }
.announce a { color: var(--lime); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,243,236,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { min-height: 42px; padding: 10px 18px; font-size: .92rem; }
@media (max-width: 920px) { .nav-links { display: none; } }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero .lead strong { color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.fineprint { font-size: .92rem; color: var(--muted); }
.fineprint span + span::before { content: "·"; margin: 0 10px; color: var(--line-strong); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Window mock (hero visual) */
.window { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar b { margin-left: 8px; font-weight: 500; color: var(--ink-2); }
.log { list-style: none; margin: 0; padding: 8px 0; }
.log li { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 18px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.log li:last-child { border-bottom: 0; }
.log time { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.log .who { font-family: var(--mono); font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: var(--muted-bg); color: var(--ink-2); white-space: nowrap; }
.log .who.me { background: var(--lime); color: var(--ink); }
.window-foot { padding: 14px 18px; background: var(--muted-bg); font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.window-foot strong { color: var(--ok); }

/* Tool strip */
.strip { padding-block: 28px; border-block: 1px solid var(--line); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.strip p { margin: 0; font-size: .92rem; color: var(--muted); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; font-weight: 600; color: var(--ink-2); }

/* Generic grids/cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.num { font-family: var(--mono); font-size: .8rem; color: var(--muted); display: block; margin-bottom: 18px; }
.chip { display: inline-block; font-family: var(--mono); font-size: .76rem; padding: 6px 10px; border-radius: var(--r-sm); background: var(--muted-bg); color: var(--ink-2); margin-top: 8px; }

/* Compare */
.compare .card h3 { margin-bottom: 14px; }
.compare ul { margin: 0; padding: 0; list-style: none; }
.compare li { padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); color: var(--ink-2); }
.compare li::before { content: "–"; position: absolute; left: 4px; color: var(--muted); }
.compare .us { background: var(--carbon); border-color: var(--carbon); color: var(--bg); }
.compare .us h3, .compare .us li { color: var(--bg); }
.compare .us li { border-color: #3D4440; }
.compare .us li::before { content: "✓"; color: var(--lime); }
.compare .tag { display: inline-block; font-family: var(--mono); font-size: .74rem; padding: 4px 9px; border-radius: 999px; background: var(--muted-bg); color: var(--ink-2); margin-bottom: 14px; }
.compare .us .tag { background: var(--lime); color: var(--ink); }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.badge { font-family: var(--mono); font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: var(--muted-bg); color: var(--ink-2); }
.featured .badge { background: var(--lime); color: var(--ink); }
.price { font-size: 3rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 14px 0 6px; }
.price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.price-card li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line); font-size: .97rem; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.price-card .btn { width: 100%; }
.price-card .fine { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

.monthly { margin-top: 64px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td.p { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
@media (max-width: 720px) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { display: block; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  td { display: block; padding: 4px 0; border: 0; }
  td[data-l="Untuk siapa"], td[data-l="Termasuk"] { color: var(--ink-2); font-size: .95rem; }
  td.p { margin-top: 8px; }
}

.market { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { border-top: 2px solid var(--ink); padding-top: 16px; }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .market { grid-template-columns: 1fr 1fr; } }
.note { font-size: .88rem; color: var(--muted); margin-top: 20px; max-width: 80ch; }

/* Work */
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-thumb { aspect-ratio: 16/10; background: var(--muted-bg); border-bottom: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.work-thumb { overflow: hidden; }
.work-thumb img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.work-body { padding: 22px 26px 28px; }
.work-body h3 { margin-bottom: 6px; }
.disclosure { margin-top: 30px; padding: 16px 20px; border-radius: var(--r); background: var(--muted-bg); font-size: .92rem; color: var(--ink-2); max-width: 82ch; }

/* Promise */
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.promise-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; }
.promise-list b { display: block; font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.promise-list span { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 720px) { .promise-list { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.portrait { aspect-ratio: 4/5; border-radius: var(--r-lg); background: var(--muted-bg); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 24px; font-family: var(--mono); font-size: .82rem; color: var(--muted); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.signature { font-weight: 600; margin-top: 18px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 380px; } }

/* FAQ */
.faq { max-width: 860px; }
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 400; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; color: var(--ink-2); max-width: 72ch; }

/* Final CTA */
.final { background: var(--lime); }
.final-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.final .lead { color: var(--ink); }
.final .big-spark { justify-self: center; width: min(220px, 50vw); color: var(--ink); }
@media (max-width: 860px) { .final-grid { grid-template-columns: 1fr; } .final .big-spark { display: none; } }

/* Footer */
.site-footer { padding: 48px 0 36px; font-size: .92rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1F7A4D; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.5); }
.wa-float svg { width: 28px; height: 28px; }

/* Reveal: content stays visible without JS */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s ease-out, transform .35s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fchip { font: 500 .92rem/1 var(--font); min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.fchip span { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-left: 6px; }
.fchip:hover { border-color: var(--ink); }
.fchip.is-on { background: var(--carbon); color: var(--bg); border-color: var(--carbon); }
.fchip.is-on span { color: var(--lime); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 8px; }
@media (max-width: 960px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
.pcard[hidden] { display: none; }
.pcard a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.pcard a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; background: var(--muted-bg); border-bottom: 1px solid var(--line); }
.pbody { padding: 16px 20px 20px; }
.pbody h3 { font-size: 1.05rem; margin: 8px 0 0; line-height: 1.3; }

/* Answer-first facts block */
.facts { padding-block: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); background: var(--card); }
.factgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gap); margin: 28px 0 0; }
.fact { padding: 16px 0; border-top: 1px solid var(--line); }
.fact dt { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact dd { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 960px) { .factgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .factgrid { grid-template-columns: 1fr; } }

/* ===== Motion layer ===== */
.sm { padding-bottom: .14em; margin-bottom: -.14em; }           /* keeps descenders visible inside SplitText masks */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--lime-deep); transform: scaleX(0); transform-origin: 0 50%; z-index: 80; pointer-events: none; }
.hero { position: relative; overflow: clip; }
.hero > .wrap { position: relative; z-index: 1; }
.hero3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; z-index: 0; }
.strip { overflow: hidden; }
.strip ul.marquee { flex-wrap: nowrap; width: max-content; animation: marquee 32s linear infinite; gap: 0 56px; }
.strip ul.marquee li { white-space: nowrap; }
.strip-inner:has(.marquee) { flex-wrap: nowrap; }
.strip-inner:has(.marquee) p { flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip ul.marquee:hover { animation-play-state: paused; }

/* Apple-style navigation: slim glass bar, centred quiet links, hairline appears on scroll */
.site-header { background: rgba(247,243,236,.72); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(247,243,236,.86); }
.nav { min-height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
.nav .logo { justify-self: start; font-size: 1.3rem; }
.nav-links { gap: clamp(18px, 2.4vw, 34px); justify-self: center; }
.nav-links a { font-size: .82rem; font-weight: 500; letter-spacing: .005em; color: var(--muted); text-decoration: none !important; position: relative; padding: 6px 0; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav > .btn { justify-self: end; min-height: 36px; padding: 8px 16px; font-size: .85rem; border-radius: 999px; }
.menu-btn { display: none; justify-self: end; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 56px 0 0 0; z-index: 49; background: rgba(247,243,236,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 28px var(--gap) 40px; display: flex; flex-direction: column; gap: 28px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; overflow-y: auto; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.menu.is-open li, .menu.is-open .menu-cta { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms + 80ms); }
.menu li a { display: block; padding: 16px 0; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.menu .menu-cta { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; align-self: flex-start; }
.menu-open { overflow: hidden; }
@media (max-width: 920px) { .nav { grid-template-columns: 1fr auto; } .nav > .btn { display: none; } .menu-btn { display: block; } }
@media (min-width: 921px) { .menu { display: none; } }
@media (prefers-reduced-motion: reduce) { .strip ul.marquee { animation: none; } .menu, .menu li, .menu .menu-cta { transition: none; } }

/* Portfolio v2: scroll-preview thumbs + feature filters */
.fgroup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 14px; }
.flabel { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-width: 72px; }
.fgroup .filters { margin: 0; flex: 1 1 520px; }
.fchip-f.is-on { background: var(--lime); border-color: var(--lime-deep); color: var(--ink); }
.fchip-f.is-on span { color: var(--ink); }
.fchip-reset { border-style: dashed; color: var(--muted); }
.pthumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--muted-bg); border-bottom: 1px solid var(--line); }
.pcard img.pimg { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top; border: 0; }
.pcard img.ptall { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: auto; object-fit: initial; border: 0; opacity: 0; will-change: transform; }
.pthumb[data-hint]::after { content: attr(data-hint); position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: .7rem; padding: 4px 9px; border-radius: 999px; background: rgba(35,40,38,.82); color: var(--bg); opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.pcard a:hover .pthumb[data-hint]::after, .pcard a:focus-visible .pthumb[data-hint]::after { opacity: 1; transform: none; }
.pthumb.is-scrolling::after { opacity: 0 !important; }
.pbadge { position: absolute; left: 10px; top: 10px; z-index: 2; font-family: var(--mono); font-size: .7rem; padding: 4px 9px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.pbadge-dark { background: var(--carbon); color: var(--lime); left: auto; right: 10px; }
.pmini { margin: 8px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
@media (hover: none) { .pthumb[data-hint]::after { display: none; } }

.marquee-wrap { flex: 1 1 0; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
@media (max-width: 720px) { .strip-inner:has(.marquee-wrap) { flex-wrap: wrap; } .marquee-wrap { flex-basis: 100%; } }
.menu[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== Contact form, legal pages, AI chat ===== */
.contact-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: var(--gap); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(22px, 3.2vw, 38px); }
.contact-side { display: grid; gap: var(--gap); }
.contact-side .card { padding: 24px; } .contact-side h3 { margin-bottom: 6px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: .93rem; }
.field .opt { font-weight: 400; color: var(--muted); } .req { color: #B42318; }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--r); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(190,242,100,.65); }
.field [aria-invalid="true"] { border-color: #B42318; background: #FFF6F5; }
.err { margin: 0; font-size: .86rem; color: #B42318; }
.field.check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.field.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--carbon); flex: none; }
.field.check label { flex: 1 1 260px; font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.field.check .err { flex-basis: 100%; }
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }   /* off-screen, not display:none, so naive bots still fill it */
.ts-box { min-height: 0; margin: 4px 0 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions .safe { margin: 0; max-width: 34ch; }
.form-status { margin: 14px 0 0; min-height: 1.4em; font-size: .95rem; color: var(--ink-2); } .form-status.is-bad { color: #B42318; font-weight: 600; }
.form-done { padding: 12px 0; } .form-done:focus { outline: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.legal { max-width: 800px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 2.2em 0 .6em; line-height: 1.25; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; } .legal li { margin-bottom: .55em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

.chat-launch { position: fixed; left: 18px; bottom: 18px; z-index: 61; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--carbon); color: var(--bg); font: 600 .95rem/1 var(--font); cursor: pointer; box-shadow: 0 12px 28px -10px rgba(0,0,0,.5); transition: transform .2s ease; }
.chat-launch:hover { transform: translateY(-2px); } .chat-launch svg { width: 20px; height: 20px; color: var(--lime); }
.chat-launch.is-open { display: none; }
.chat { padding: 0; position: fixed; left: 18px; bottom: 18px; z-index: 62; width: min(390px, calc(100vw - 36px)); height: min(600px, calc(100dvh - 36px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.45); overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--carbon); color: var(--bg); }
.chat-title { display: flex; align-items: center; gap: 10px; } .chat-badge { font-family: var(--mono); font-size: .68rem; padding: 3px 8px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.chat-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--bg); font-size: 1.5rem; line-height: 1; cursor: pointer; } .chat-x:hover { background: rgba(255,255,255,.12); }
.chat-note { margin: 0; padding: 9px 16px; font-size: .78rem; line-height: 1.4; color: var(--muted); background: var(--muted-bg); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .94rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: var(--muted-bg); border-bottom-left-radius: 4px; }
.msg-me { align-self: flex-end; background: var(--carbon); color: var(--bg); border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.chat-chip { font: 500 .82rem/1.2 var(--font); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; text-align: left; } .chat-chip:hover { border-color: var(--ink); }
.chat-ts { padding: 0 16px; } .chat-ts[hidden] { display: none; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; overflow: hidden; resize: none; min-height: 44px; max-height: 110px; padding: 11px 12px; font: inherit; font-size: .94rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); }
.chat-form textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(190,242,100,.65); }
.chat-send { min-width: 72px; border: 0; border-radius: 12px; background: var(--lime); color: var(--ink); font: 700 .9rem/1 var(--font); cursor: pointer; } .chat-send[disabled] { opacity: .5; cursor: progress; }
.chat-wa { display: block; padding: 10px 16px 14px; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink-2); } .chat-wa:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) { .chat-launch { bottom: 84px; } .chat { left: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100dvh - 16px); } }
@media (prefers-reduced-motion: reduce) { .chat-launch { transition: none; } }

.contact-side h2 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; margin: 0 0 6px; }

/* ===== Homepage v3: proof bar, problem chooser, showcase carousel, reviews ===== */
.proofbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(36px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line-strong); }
.proofbar b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.045em; line-height: 1.05; }
.proofbar span { font-size: .92rem; color: var(--muted); }
@media (max-width: 720px) { .proofbar { grid-template-columns: 1fr 1fr; row-gap: 22px; } }

.problems { display: grid; gap: 12px; max-width: 980px; }
.problems details.p-item { padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); transition: border-color .25s ease, box-shadow .25s ease; }
.problems details.p-item:last-child { border-bottom: 1px solid var(--line); }
.problems details.p-item[open] { border-color: var(--ink); box-shadow: var(--shadow); }
.problems summary { padding: 22px 26px; gap: 18px; align-items: center; justify-content: flex-start; font-size: clamp(1.1rem, 2.2vw, 1.4rem); letter-spacing: -.025em; }
.problems summary .n { font-family: var(--mono); font-size: .8rem; font-weight: 400; color: var(--muted); }
.problems summary .t { flex: 1; }
.problems summary::after { margin-left: auto; }
.p-body { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; padding: 0 26px 26px 26px; }
.p-body p { margin: 0 0 .6em; max-width: 60ch; }
.p-h { display: block; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.p-fit { background: var(--muted-bg); border-radius: var(--r); padding: 18px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.p-fit p { margin: 0; font-size: .98rem; }
.p-wa { font-size: .9rem; font-weight: 600; color: var(--ink-2); text-underline-offset: 3px; }
@media (max-width: 760px) { .p-body { grid-template-columns: 1fr; padding: 0 20px 22px; } .problems summary { padding: 18px 20px; } }
.p-more { margin-top: 28px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--carbon); color: var(--bg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; max-width: 980px; }
.p-more h3 { color: var(--bg); margin: 0 0 4px; } .p-more .muted { color: #CFC8BC; margin: 0; }
.p-more-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.p-more .btn-light { background: transparent; color: var(--bg); border-color: #5b625e; } .p-more .btn-light:hover { border-color: var(--bg); }

.car-bar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, opacity .2s ease; }
.car-btn svg { width: 20px; height: 20px; } .car-btn:hover:not(:disabled) { background: var(--carbon); color: var(--bg); border-color: var(--carbon); }
.car-btn:disabled { opacity: .35; cursor: default; }
.carousel { --edge: max(var(--gap), calc((100% - var(--max)) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 6px var(--edge) 30px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 12px; }
.car-track { display: flex; gap: var(--gap); list-style: none; margin: 0; padding: 0; width: max-content; }
.car-track > li { flex: 0 0 clamp(280px, 30vw, 400px); scroll-snap-align: start; display: flex; }
.car-track > li > a, .car-track > li > figure { flex: 1; }
.showcase .pcard a { display: flex; flex-direction: column; height: 100%; }
.slide-more a { background: var(--carbon); border-color: var(--carbon); color: var(--bg); justify-content: center; }
.more-in { padding: 34px 30px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.more-n { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; color: var(--lime); }
.more-in h3 { color: var(--bg); margin: 0; } .more-in .muted { color: #CFC8BC; margin: 0 0 10px; }
.more-in .btn { background: var(--lime); color: var(--ink); border-color: var(--lime-deep); }

.rev-track > li { flex-basis: clamp(290px, 34vw, 440px); }
.rcard figure { margin: 0; height: 100%; padding: 28px 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; position: relative; }
.rcard .stars { color: #B45309; letter-spacing: .12em; font-size: 1.05rem; }
.rcard blockquote { margin: 0; flex: 1; font-size: 1.08rem; line-height: 1.55; color: var(--ink); }
.rcard blockquote p { margin: 0; }
.rcard figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; } .rcard figcaption span { color: var(--muted); }
.rcard .rsrc a { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }

/* absolutely positioned helpers (sr-only, badges) must be contained by the scroller or they escape its clip and widen the page */
.carousel, .pcard, .rcard { position: relative; }

.wrap.section-head { max-width: min(100% - 2 * var(--gap), var(--max)); }
.wrap.section-head > * { max-width: 760px; }
.wrap.section-head > .lead { max-width: 62ch; }

/* ===== Service pages ===== */
.svc-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-body.legal { max-width: none; }
.svc-body > h2:first-child { margin-top: 0; }
.svc-body .steps { grid-template-columns: 1fr 1fr; gap: 22px var(--gap); margin: 0 0 1.4em; padding: 0; list-style: none; }
.svc-body .steps h3 { font-size: 1.1rem; margin: 0 0 4px; }
@media (max-width: 560px) { .svc-body .steps { grid-template-columns: 1fr; } }
.svc-body .grid-2 { margin: 0 0 1.4em; } .svc-body .card { padding: 22px; } .svc-body .card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.svc-body code { font-family: var(--mono); font-size: .88em; background: var(--muted-bg); padding: 2px 6px; border-radius: 6px; }
ul.check { list-style: none; padding: 0; margin: 0 0 1.2em; } ul.check li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); }
ul.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.svc-price { position: sticky; top: 88px; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.svc-price ul { list-style: none; padding: 0; margin: 14px 0 18px; } .svc-price li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line); font-size: .96rem; }
.svc-price li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.svc-price .price { margin: 6px 0 12px; } h2.h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.03em; margin: 6px 0 4px; }
.svc-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink); }
.svc-card .chip { align-self: flex-start; background: var(--lime); color: var(--ink); } .svc-card p { margin: 0; flex: 1; }
.svc-more { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; } .svc-more svg { width: 16px; height: 16px; }

/* ===== Mascot (Kilau) ===== */
.nf { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; } .nf-mascot { width: clamp(140px, 22vw, 240px); height: auto; }
@media (max-width: 720px) { .nf { grid-template-columns: 1fr; } }
.kilau-av { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); flex: none; object-fit: contain; padding: 2px; }
.chat-launch .kilau-img { width: 28px; height: 28px; margin-left: -4px; flex: none; }
.p-more { position: relative; } .p-more .p-kilau { position: absolute; right: 24px; top: -52px; width: 92px; height: auto; pointer-events: none; }
@media (max-width: 760px) { .p-more .p-kilau { width: 68px; top: -40px; right: 12px; } }
.msg-row { display: flex; gap: 8px; align-items: flex-end; } .msg-row .kilau-av { width: 30px; height: 30px; }
.done-kilau { width: 120px; height: auto; margin-bottom: 8px; }
.msg-row { align-self: flex-start; max-width: 92%; } .msg-row .msg { max-width: none; }
.chat-head .kilau-av { width: 32px; height: 32px; }

/* Motion previews + services teaser on the homepage */
.motion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); } @media (max-width: 760px) { .motion-grid { grid-template-columns: 1fr; } }
.mcard { margin: 0; } .mvid { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--muted-bg); aspect-ratio: 16/10; }
.mvid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtoggle { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(35,40,38,.85); color: var(--bg); cursor: pointer; display: grid; place-items: center; }
.mtoggle::before { content: ""; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.mtoggle.is-paused::before { width: 0; height: 0; border: 0; border-left: 14px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.mcard figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 14px 4px 0; font-weight: 600; } .mcard figcaption span { font-weight: 400; color: var(--muted); font-size: .92rem; }
.svc-grid2 { grid-template-columns: repeat(4, 1fr); } @media (max-width: 1100px) { .svc-grid2 { grid-template-columns: 1fr 1fr; } } @media (max-width: 620px) { .svc-grid2 { grid-template-columns: 1fr; } }
.svc-art { margin: 0 0 28px; }
.svc-art img { display: block; width: 100%; height: auto; border-radius: 24px; }
.svc-art + h2 { margin-top: 0; }
.portrait:has(img) { padding: 0; }
/* v4: calmer section rhythm, anchors clear the sticky header, service thumbnails */
section[id] { scroll-margin-top: 96px; }
.section-head { margin-bottom: 40px; }
.svc-thumb { display: block; width: 100%; height: auto; border-radius: 16px; margin: -4px 0 16px; }
.nav-links { gap: clamp(14px, 2vw, 28px); }
/* v5: one vertical rhythm. Plain sections own only their bottom padding; hero, banded (.facts) and closing (.final) sections own both. */
main > section:not(.hero):not(.facts):not(.final) { padding-top: 0; }
.hero { padding-bottom: clamp(40px, 5vw, 64px); }
/* a section that follows a band or the tools strip starts a full step below its edge */
main > .facts + section:not(.hero):not(.facts):not(.final),
main > .strip + section:not(.hero):not(.facts):not(.final) { padding-top: var(--section) !important; }

/* v7: portfolio cards are not links */
.pcard .pa { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.showcase .pcard .pa { display: flex; flex-direction: column; height: 100%; }
.pcard .pa { cursor: default; }
/* v8: link from a featured portfolio card to its case study */
.pcard .pcase { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }

/* v9: heading descenders (g, p, y) were clipped. SplitText's masks carry no class here, so style the generated line wrappers directly:
   the mask gets room below the baseline and a negative margin gives that room back. */
h1 > div[aria-hidden="true"][style*="overflow"], h2 > div[aria-hidden="true"][style*="overflow"], h3 > div[aria-hidden="true"][style*="overflow"] { padding-bottom: .16em; margin-bottom: -.16em; }
/* v9: carousel cards keep one width; the card body is a div.pa since the portfolio stopped linking out */
.car-track > li > .pa, .car-track > li > a, .car-track > li > figure { flex: 1; min-width: 0; }

/* v10: portfolio cards in a row share one height; every card opens a full-page viewer */
.pgrid .pcard .pa { display: flex; flex-direction: column; height: 100%; cursor: pointer; }
.pgrid .pcard:hover .pa { transform: translateY(-3px); box-shadow: var(--shadow); }
.pgrid .pbody { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.popen { margin-top: auto; padding: 14px 0 0; border: 0; background: none; font: 600 .9rem/1.2 var(--font); color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.popen::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.popen:focus-visible { outline: none; } .popen:focus-visible::after { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--lime); }
.pcard:hover .popen { text-decoration-color: currentColor; }
.lb-lock { overflow: hidden; }
.lbox { width: min(980px, calc(100vw - 32px)); height: calc(100dvh - 48px); max-height: none; max-width: none; padding: 0; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--card); color: var(--ink); overflow: hidden; }
.lbox[open] { display: flex; flex-direction: column; }
.lbox::backdrop { background: rgba(20,24,22,.72); backdrop-filter: blur(3px); }
.lb-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.lb-meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.lb-meta h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-meta .chip { flex: none; }
.lb-count { flex: none; font-family: var(--mono); }
.lb-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--muted-bg); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; } .lb-x:hover { background: var(--line); }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; background: var(--muted-bg); }
.lb-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; outline: none; }
.lb-img { display: block; width: 100%; max-width: 820px; height: auto; min-height: 50%; margin: 0 auto; background: var(--card) top / 100% auto no-repeat; box-shadow: 0 0 0 1px var(--line); }
.lb-rail { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 12px; }
.lb-rail[hidden] { display: none; }
.lb-dot { width: 12px; height: 12px; padding: 0; border: 2px solid var(--ink-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.lb-dot::before { content: ""; position: absolute; inset: -8px; }
.lb-dot.is-on { background: var(--ink); border-color: var(--ink); }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.lb-nav { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 .9rem/1 var(--font); cursor: pointer; } .lb-nav:hover { border-color: var(--ink); }
.lb-sec { display: flex; align-items: center; gap: 8px; } .lb-sec[hidden] { display: none; }
.lb-seclabel { min-width: 9ch; text-align: center; font-family: var(--mono); }
.lb-step { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); font: 700 1.1rem/1 var(--font); cursor: pointer; } .lb-step[disabled] { opacity: .35; cursor: default; }
.lbox :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .lbox { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .lb-head { padding: 8px 8px 8px 16px; } .lb-meta { flex-direction: column; align-items: flex-start; gap: 4px; } .lb-meta h2 { font-size: 1rem; max-width: 100%; }
  .lb-rail { display: none; }
  .lb-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lb-nav { width: 44px; padding: 0; justify-content: center; }
  .lb-foot { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .pgrid .pcard:hover .pa { transform: none; } }

/* v10: chat on phones. Full-screen sheet that follows the keyboard (chat.js sets height/top), 16px input so iOS does not zoom,
   WhatsApp in the header instead of under the input, the disclaimer scrolls with the messages, starter chips on one swipeable row */
.chat-acts { display: flex; align-items: center; gap: 6px; }
.chat-head .chat-wa { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--bg); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chat-head .chat-wa:hover { background: rgba(255,255,255,.22); color: var(--bg); text-decoration: none; }
.chat-title { min-width: 0; } .chat-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-log .chat-note { margin: -16px -16px 4px; }
.chat-log { overscroll-behavior: contain; }
.chat-form textarea { font-size: 16px; }
.chat-x { width: 44px; height: 44px; }
.chat-lock, .chat-lock body { overflow: hidden; }
@media (max-width: 560px) {
  .chat-launch { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 48px; padding: 0 16px 0 12px; font-size: .9rem; }
  .chat { inset: 0 auto auto 0; left: 0; top: 0; bottom: auto; width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .chat-head { padding: 10px 8px 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
  .chat-title .chat-badge { display: none; }
  .chat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .chat-chips::-webkit-scrollbar { display: none; }
  .chat-chip { flex: none; white-space: nowrap; }
  .chat-form { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .msg { font-size: 1rem; }
}
.lb-zoom { display: none; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--ink); font: 600 1.3rem/1 var(--font); cursor: pointer; }
.lb-zoom[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); }
@media (max-width: 640px) {
  .lb-zoom { display: inline-block; }
  .lbox.is-zoom .lb-scroll { overflow-x: auto; }
  .lbox.is-zoom .lb-img { width: 200%; max-width: none; }
}

/* v11: the chat asks for name, e-mail and phone before the first question */
.chat-main { display: flex; flex-direction: column; flex: 1; min-height: 0; } .chat-main[hidden], .chat-gate[hidden] { display: none; }
.chat-gate { flex: 1; overflow-y: auto; padding: 18px 18px 22px; overscroll-behavior: contain; }
.chat-gform { display: grid; gap: 12px; }
.chat-gtitle { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; } .chat-gintro { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.chat-field { display: grid; gap: 4px; font-size: .85rem; color: var(--ink-2); }
.chat-field input { min-height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.chat-field input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(190,242,100,.65); }
.chat-ferr, .chat-gerr { color: #b3261e; font-size: .8rem; min-height: 0; } .chat-gerr:empty, .chat-ferr:empty { display: none; }
.chat-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.chat-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--carbon); } .chat-consent a { color: var(--ink); }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chat-gogo { min-height: 48px; width: 100%; } .chat-gform .chat-ts { padding: 0; }
.chat-gblocked { display: grid; gap: 12px; padding: 18px 4px; line-height: 1.5; } .chat-gblocked p { margin: 0; } .chat-gblocked .chat-wa { padding: 0; }
.chat-book { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin: 2px 0 2px 38px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; } .chat-book:hover { filter: brightness(.96); }

/* v12: quote wizard (/quote/, /ms/quote/) */
.qz { padding-bottom: 96px; }
.qz-progress { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: qz; }
.qz-progress li { counter-increment: qz; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--muted-bg); color: var(--muted); font-size: .85rem; }
.qz-progress li::before { content: counter(qz); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--card); color: var(--ink); font-size: .75rem; font-weight: 700; }
.qz-progress li.is-on { background: var(--carbon); color: var(--bg); } .qz-progress li.is-on::before { background: var(--lime); }
.qz-progress li.is-done { background: var(--lime); color: var(--ink); }
.qz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.qz-main { display: grid; gap: 16px; min-width: 0; } .qz-side { position: sticky; top: 96px; display: grid; gap: 16px; } .qz-side[hidden] { display: none; }
.qz-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.qz-block h2 { margin: 0; font-size: 1.35rem; } .qz-block h3 { margin: 4px 0 0; font-size: 1rem; }
.qz-note { margin: 0; color: var(--muted); font-size: .9rem; } .qz-warn { margin: 0; color: #b3261e; font-size: .9rem; font-weight: 600; }
.qz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.qz-card { text-align: left; display: grid; gap: 4px; padding: 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; min-height: 72px; transition: border-color .15s ease, background .15s ease; }
.qz-card:hover { border-color: var(--ink-2); } .qz-card.is-on { border-color: var(--ink); background: var(--lime); } .qz-card span { color: var(--ink-2); font-size: .85rem; line-height: 1.4; } .qz-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.qz-field { display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); } .qz-field small, .qz-toggle small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.qz-field input, .qz-field textarea, .qz-ask input { width: 100%; padding: 0 14px; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; } .qz-field textarea { padding: 12px 14px; }
.qz-field input:focus-visible, .qz-field textarea:focus-visible, .qz-ask input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(190, 242, 100, .65); }
.qz-step { display: inline-flex; align-items: center; gap: 14px; } .qz-step output { min-width: 36px; text-align: center; font-size: 1.3rem; font-weight: 700; }
.qz-sbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; } .qz-sbtn:disabled { opacity: .35; cursor: default; }
.qz-toggle { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; } .qz-toggle input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--carbon); } .qz-toggle b { display: block; }
.qz-nav { display: flex; justify-content: space-between; gap: 12px; } .qz-nav .btn { min-width: 120px; }
.qz-price { background: var(--carbon); color: var(--bg); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 6px; } .qz-price .hint { color: rgba(255, 255, 255, .7); font-size: .85rem; } .qz-big { font-size: 2.1rem; letter-spacing: -.02em; line-height: 1.1; color: var(--lime); }
.qz-link { justify-self: start; background: none; border: 0; padding: 6px 0; min-height: 36px; color: var(--bg); text-decoration: underline; font: inherit; font-size: .88rem; cursor: pointer; }
.qz-lines { display: grid; gap: 6px; } .qz-price .qz-lines { margin-top: 4px; } .qz-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; font-size: .9rem; } .qz-line b { text-align: right; white-space: nowrap; }
.qz-lines.is-open { padding: 14px; border-radius: 12px; background: var(--bg); } .qz-price .qz-lines { background: rgba(255, 255, 255, .08); } .qz-total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 1rem; }
.qz-lines .hint, .qz-line .hint { color: var(--muted); font-size: .8rem; } .qz-price .qz-line .hint { color: rgba(255, 255, 255, .6); }
.qz-price .qz-note { color: rgba(255, 255, 255, .7); margin: 10px 0 4px; }
.qz-assume { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.qz-form { display: grid; gap: 14px; } .qz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qz-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .85rem; color: var(--muted); } .qz-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--carbon); } .qz-consent a { color: var(--ink); }
.qz-ferr { color: #b3261e; font-size: .82rem; } .qz-ferr:empty { display: none; } .qz-send { min-height: 52px; } .qz-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.qz-ask { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; } .qz-ask h3 { margin: 0; font-size: 1rem; } .qz-ask form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.qz-ask-log { display: grid; gap: 8px; max-height: 320px; overflow: auto; } .qz-ask p { margin: 0; padding: 9px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; } .qz-me { background: var(--carbon); color: var(--bg); justify-self: end; max-width: 90%; } .qz-kilau { background: var(--muted-bg); max-width: 95%; }
.qz-sugg { text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 12px; background: var(--lime); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; min-height: 44px; } .qz-sugg small { color: var(--ink-2); }
.qz-ts { padding: 0; } .qz-done { text-align: left; } .qz-bar { display: none; }
@media (max-width: 900px) {
  .qz-grid { grid-template-columns: 1fr; } .qz-side { position: static; }
  .qz-bar { display: flex; justify-content: space-between; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--carbon); color: var(--bg); } .qz-bar b { color: var(--lime); font-size: 1.2rem; } .qz-bar .hint { color: rgba(255, 255, 255, .75); font-size: .85rem; }
  .qz-bar:empty { display: none; } .qz-block { padding: 18px; } .qz-nav .btn { flex: 1; } .chat-launch { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.qz-nav [hidden], .qz-block [hidden] { display: none !important; }
.qz-progress[hidden] { display: none; }

/* Phone usability: compact chat launcher that no longer covers hero text, and touch-sized footer links */
@media (max-width: 560px) {
  .chat-launch { left: auto; right: 14px; width: 52px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  .chat-launch svg { width: 24px; height: 24px; }
  body:not(:has(.qz-bar)) .chat-launch { bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (pointer: coarse) {
  .footer-links a, .p-wa a, .nav-links a { display: inline-flex; align-items: center; min-height: 32px; }
  .footer-links { gap: 4px 22px; }
}

/* real project, from brief to live (tools/gen_case_flow.py) */
.case-flow .cf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: none; }
.cf-step figure { margin: 0; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.cf-step img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: #fff; }
.cf-step figcaption { padding: 18px 20px 22px; display: grid; gap: 6px; }
.cf-step figcaption b { font-size: 1.08rem; letter-spacing: -.01em; }
.cf-step figcaption .muted { font-size: .95rem; line-height: 1.5; }
.cf-links { margin: 28px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1000px) { .case-flow .cf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .case-flow .cf-steps { grid-template-columns: 1fr; } }
.cf-step .num { margin-bottom: 2px; }

/* v12: the chat feels like a messenger: time and ticks on each bubble, animated typing dots, day chips, unread dot on the launcher */
.chat-log { gap: 6px; }
.msg { display: flow-root; padding: 8px 12px 6px; }
.msg .mt { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .mm { float: right; margin: 9px 0 -2px 12px; display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; line-height: 1; color: var(--muted); user-select: none; }
.msg-me { background: var(--lime); color: var(--ink); border-bottom-right-radius: 4px; }
.msg-me .mm { color: #4a5a24; }
.msg-fikz { align-self: flex-start; background: var(--card); border: 1px solid var(--line-strong); border-bottom-left-radius: 4px; }
.msg-fikz .chat-badge { background: var(--carbon); color: var(--lime); margin-right: 2px; }
.tick { font-size: .74rem; font-weight: 700; letter-spacing: -.22em; padding-right: .22em; }
.tick-sending { letter-spacing: 0; opacity: .7; }
.tick-read { color: #1565b0; }
.tick-failed { color: #b3261e; letter-spacing: 0; }
.chat-day { align-self: center; margin: 8px 0 2px; padding: 3px 11px; border-radius: 999px; background: var(--muted-bg); color: var(--muted); font: 600 .72rem/1.3 var(--font); }
.chat-sys { align-self: center; max-width: 90%; text-align: center; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.msg.typing { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-style: normal; }
.typing-lbl { font-size: .78rem; color: var(--muted); }
.dots { display: inline-flex; align-items: center; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: fz-dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes fz-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .7; } }
.chat .sr-only { position: absolute; }
.chat-snd { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--bg); font-size: 1rem; line-height: 1; cursor: pointer; } .chat-snd:hover { background: rgba(255,255,255,.22); }
.chat-end { border: 0; background: none; padding: 0; margin: 0; color: var(--ink-2); font: inherit; text-decoration: underline; cursor: pointer; }
.chat-dot { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #d93025; color: #fff; font: 700 .7rem/20px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); } .chat-dot[hidden] { display: none; }
.chat-leave { align-self: stretch; display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); font-size: .88rem; }
.chat-leave p { margin: 0; color: var(--muted); line-height: 1.45; }
.chat-leave-row { display: flex; gap: 8px; }
.chat-leave-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.chat-leave-row input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(190,242,100,.65); }
.chat-leave-no { justify-self: start; border: 0; background: none; padding: 4px 0; color: var(--muted); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; }
.chat-leave-ok { color: var(--ok); font-weight: 600; }
@media (max-width: 560px) { .chat-snd { width: 40px; height: 40px; } .msg { max-width: 88%; } }
