/* KUMA Web Design — editorial, calm, warm. Big serif type, small (bracketed) labels, lots of air. */
:root {
  --paper: #f7f3ee;
  --cream: #f1e7dd;
  --white: #ffffff;
  --ink: #191919;
  --ink-soft: #2b2725;
  --brown: #7a5e57;
  --brown-light: #b99a8d;
  --muted: #6d6460;
  --line: rgba(25, 25, 25, 0.12);
  --line-light: rgba(241, 231, 221, 0.16);
  --wa: #1f8a4c;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 10px; }

/* Small uppercase labels in brackets, the signature detail */
.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.label.dash::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--brown); vertical-align: middle; margin-right: 10px; }

.display { font-family: var(--serif); font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; margin: 14px 0 22px; }
.display em, .display-sm em, .work-title em, .contact-title em, .next-big em, .hero-title em { color: var(--brown); }
.display-sm { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; margin: 10px 0 14px; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 500 0.95rem/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { width: 20px; height: 20px; fill: currentColor; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--brown); }
.btn-ghost { border-color: rgba(25, 25, 25, 0.25); color: var(--ink); background: rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17703c; }
.btn-block { width: 100%; }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.scrolled { background: rgba(247, 243, 238, 0.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 64px; height: auto; }
.brand-word { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.22em; line-height: 1; display: flex; flex-direction: column; }
.brand-word small { font-family: var(--sans); font-size: 0.52rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right 0.4s var(--ease); }
.nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, 0.4); }
.lang button { border: 0; background: none; font: 500 0.7rem/1 var(--sans); letter-spacing: 0.08em; padding: 8px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform 0.3s; }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px; overflow: hidden; isolation: isolate;
}
.hero-inner { position: relative; text-align: center; }
.hero-label { margin-bottom: 34px; opacity: 0; animation: fade 1s 0.1s var(--ease) forwards; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 9.6vw, 8.6rem); line-height: 0.9; letter-spacing: -0.035em;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title .l { display: block; opacity: 0; transform: translateY(40px); animation: rise 1.2s var(--ease) forwards; }
.hero-title .l1 { animation-delay: 0.15s; transform: translate(-6%, 40px); }
.hero-title .l2 { animation-delay: 0.3s; transform: translate(5%, 40px); }
.hero-title .l3 { animation-delay: 0.45s; transform: translate(-2%, 40px); }
.hero-title .l1 { --x: -6%; } .hero-title .l2 { --x: 5%; } .hero-title .l3 { --x: -2%; }
.hero-sub { max-width: 40em; margin: 40px auto 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); opacity: 0; animation: fade 1s 0.7s var(--ease) forwards; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fade 1s 0.85s var(--ease) forwards; }
.scroll-hint { white-space: nowrap; position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); color: var(--ink); z-index: 2; }
.glow {
  position: absolute; z-index: -1; left: 50%; bottom: -42vh; width: 120vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(168, 108, 84, 0.85), rgba(214, 164, 136, 0.55) 45%, rgba(241, 226, 212, 0.3) 75%, transparent);
  filter: blur(30px); animation: breathe 9s ease-in-out infinite alternate;
}
.spark { position: absolute; width: 18px; height: 18px; fill: var(--ink); animation: twinkle 4s ease-in-out infinite; }
.spark.s1 { top: 24%; left: 12%; }
.spark.s2 { top: 22%; right: 13%; width: 14px; animation-delay: 1s; }
.spark.s3 { top: 70%; left: 10%; width: 22px; animation-delay: 2s; }
.spark.s4 { top: 66%; right: 11%; width: 12px; animation-delay: 0.5s; }

@keyframes rise { to { opacity: 1; transform: translate(var(--x, 0), 0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes breathe { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.08); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(0.7) rotate(45deg); opacity: 0.6; } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; white-space: nowrap; background: var(--paper); }
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); padding-right: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.dark { background: var(--ink); color: var(--cream); }
.dark .lead, .dark .label { color: rgba(241, 231, 221, 0.66); }
.dark .display em { color: var(--brown-light); }
.dark .label.dash::before { background: var(--brown-light); }

/* AI agent */
.agent-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.ticks li { display: grid; gap: 2px; padding-left: 30px; position: relative; }
.ticks li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--brown); font-size: 0.9rem; }
.ticks strong { font-weight: 600; }
.ticks span { color: var(--muted); }

.chat {
  background: var(--white); border-radius: 26px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(25, 25, 25, 0.04), 0 30px 80px -20px rgba(122, 94, 87, 0.35);
  border: 1px solid var(--line); display: flex; flex-direction: column; height: 560px;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--cream); }
.chat-head strong { display: block; font-size: 0.95rem; }
.chat-head small { color: var(--muted); font-size: 0.78rem; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2fa55f; display: inline-block; }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.chat-avatar img { width: 32px; }
.chat-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; justify-content: flex-end; }
.chat-body > * { flex-shrink: 0; }
.msg { max-width: 84%; padding: 12px 16px; border-radius: 18px; font-size: 0.92rem; line-height: 1.5; animation: pop 0.5s var(--ease); }
.msg.bot { background: var(--paper); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.typing { display: flex; gap: 4px; padding: 16px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg.typing i:nth-child(3) { animation-delay: 0.4s; }
.card-home { align-self: flex-start; width: 78%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; animation: pop 0.5s var(--ease); }
.card-home img { width: 100%; height: 120px; object-fit: cover; }
.card-home div { padding: 10px 14px; font-size: 0.8rem; }
.card-home b { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; display: block; }
.card-home span { color: var(--muted); }
.lead-sent { align-self: center; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wa); background: #e8f5ec; padding: 8px 14px; border-radius: 999px; animation: pop 0.5s var(--ease); }
.chat-foot { display: flex; justify-content: space-between; align-items: center; margin: 0 16px 16px; padding: 12px 12px 12px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.send { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Real estate */
.re-head { max-width: 860px; margin-bottom: 70px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.feature { padding: 34px 30px 40px 0; border-bottom: 1px solid var(--line-light); }
.feature:not(:nth-child(3n + 1)) { padding-left: 30px; border-left: 1px solid var(--line-light); }
.feature .num { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--brown-light); }
.feature h3 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; margin: 14px 0 10px; }
.feature p { color: rgba(241, 231, 221, 0.66); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 80px; }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--cream); }
.stats span { color: rgba(241, 231, 221, 0.6); font-size: 0.9rem; }

/* Work */
.work { padding-bottom: 60px; }
.work-head { text-align: center; margin-bottom: 70px; }
.work-title { font-family: var(--serif); font-size: clamp(3.4rem, 10vw, 9rem); line-height: 0.85; letter-spacing: -0.04em; margin-bottom: 26px; }
.work-title em { display: block; padding-left: 1.2em; }
.stack { display: flex; flex-direction: column; }
.panel {
  position: sticky; top: var(--header-h);
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.panel-bar { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; padding: 18px clamp(18px, 4vw, 40px); backdrop-filter: blur(10px); }
.panel-bar h3 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.panel-bar .idx { font-size: 0.7em; }
.panel-bar .arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.panel:hover .arrow { transform: translateX(8px); }
.panel-body { flex: 1; display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.6fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding: 20px clamp(18px, 4vw, 40px) 50px; }
.panel-copy p { font-size: 1.02rem; }
.chips { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.74rem; letter-spacing: 0.06em; border: 1px solid currentColor; padding: 6px 12px; border-radius: 999px; opacity: 0.8; }
.note { margin-top: 18px; }

.panel-ceiba { background: linear-gradient(160deg, #1f3d2e, #142a1f); color: #f4ede1; }
.panel-ceiba .panel-bar { background: rgba(20, 42, 31, 0.6); }
.panel-aki { background: linear-gradient(160deg, #013548, #012634); color: #eaf9fa; }
.panel-aki .panel-bar { background: rgba(1, 38, 52, 0.6); }
.panel-aki .text-link, .panel-aki .panel-bar .idx { color: #01e0ed; }
.panel-ceiba .panel-bar .idx { color: #d6a84e; }
.panel .label { color: inherit; opacity: 0.7; }
.panel-next { background: var(--cream); color: var(--ink); }
.panel-next .panel-bar { background: rgba(241, 231, 221, 0.7); }
.next-body { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: center; }
.next-big { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: 0.95; letter-spacing: -0.03em; max-width: 12ch; margin: 0 0 30px; }
.panel-next .btn-cream { background: var(--ink); color: var(--paper); }

.devices { position: relative; aspect-ratio: 16 / 11; }
.browser { margin: 0; position: absolute; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.browser img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-bar { height: 26px; background: #efeae4; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d3c8bd; }
.browser { top: 0; left: 0; width: 82%; aspect-ratio: 16 / 10.4; z-index: 2; transition: transform 0.8s var(--ease); }
.browser img { height: calc(100% - 26px); }
.browser-back { top: auto; bottom: 0; left: auto; right: 0; width: 60%; z-index: 1; opacity: 0.95; }
.phone { position: absolute; margin: 0; right: 4%; top: 12%; width: 22%; aspect-ratio: 9 / 19.5; border-radius: 28px; border: 6px solid #111; overflow: hidden; background: #111; z-index: 3; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); transition: transform 0.8s var(--ease); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }
.panel:hover .browser:not(.browser-back) { transform: translateY(-8px); }
.panel:hover .phone { transform: translateY(-14px) rotate(-2deg); }

/* Any business */
.biz-head { max-width: 860px; margin-bottom: 50px; }

/* Process */
.process { background: var(--cream); }
.process-head { margin-bottom: 50px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 28px 26px 30px; }
.steps .num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--brown); }
.steps h3 { font-family: var(--serif); font-size: 1.7rem; margin: 18px 0 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.signature { margin-top: 80px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; padding-top: 50px; border-top: 1px solid var(--line); }
.sig-copy p:last-child { color: var(--muted); }
.sig-list { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.sig-list li { counter-increment: s; display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.sig-list li::before { content: "(0" counter(s) ")"; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--brown); padding-top: 5px; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-grid .portrait { position: sticky; top: calc(var(--header-h) + 40px); }
.portrait { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.portrait-frame { position: relative; aspect-ratio: 1170 / 1212; border-radius: 999px 999px 24px 24px; overflow: hidden; background: #1c2126; }
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s var(--ease), transform 1.4s var(--ease); }
.portrait:hover .portrait-frame img { transform: scale(1.03); }
.portrait-badge { position: absolute; right: -18px; top: 22%; z-index: 2; width: 96px; height: 96px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(25, 25, 25, 0.5); }
.portrait-badge img { width: 72px; }
.portrait figcaption { margin-top: 16px; text-align: center; }
.about-words { font-family: var(--serif); font-size: clamp(3rem, 7vw, 6rem); line-height: 0.9; letter-spacing: -0.03em; margin: 16px 0 36px; }
.about-words em { color: var(--brown); padding-left: 0.8em; }
.about-hi { font-family: var(--serif); font-size: 2rem; margin-bottom: 14px; }
.about-copy > p:not(.label):not(.about-words) { color: var(--muted); max-width: 36em; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.facts strong { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown); font-weight: 500; }
.facts span { font-size: 0.92rem; }

/* Contact */
.contact { overflow: hidden; isolation: isolate; }
.glow-top { bottom: auto; top: -30vh; opacity: 0.55; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-title { font-family: var(--serif); font-size: clamp(3rem, 7vw, 6rem); line-height: 0.9; letter-spacing: -0.03em; margin: 16px 0 26px; }
.contact-title em { display: block; }
.contact-ways { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.form { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 3vw, 38px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(25, 25, 25, 0.25);
  padding: 10px 0; border-radius: 0; transition: border-color 0.3s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23191919' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: var(--wa); }
.form-status.err { color: #a2412a; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer img { width: 64px; height: auto; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(31, 138, 76, 0.6);
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.07); }
.wa-float.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature:not(:nth-child(3n + 1)) { padding: 30px 24px 34px 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-light); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .panel-body { grid-template-columns: 1fr; align-content: start; }
  .panel-copy { max-width: 640px; }
  .devices { max-width: 760px; width: 100%; margin: 0 auto; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px clamp(18px, 4vw, 40px) 20px;
    transform: translateY(calc(-100% - var(--header-h))); visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s 0.5s; z-index: -1;
  }
  .nav.open { transform: none; visibility: visible; transition: transform 0.5s var(--ease); }
  .site-header:has(.nav.open) { background: var(--paper); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
  .brand img { width: 50px; }
  .brand-word { font-size: 1.2rem; }
  .agent-grid, .about-grid, .contact-grid, .signature { grid-template-columns: 1fr; }
  .chat { height: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .portrait { max-width: 340px; }
  .about-grid .portrait { position: relative; top: 0; }
  .portrait-badge { right: -6px; width: 78px; height: 78px; }
  .portrait-badge img { width: 58px; }
  .panel { position: relative; top: 0; min-height: auto; }
  .panel-copy { order: 2; }
  .devices { order: 1; }
}
@media (max-width: 560px) {
  .spark { display: none; }
  .hero-title { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero-title .l1, .hero-title .l2, .hero-title .l3 { --x: 0; }
  .hero-cta .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { padding: 28px 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .field-row, .facts { grid-template-columns: 1fr; }
  .lang button { padding: 7px 8px; }
  .brand-word small { display: none; }
  .phone { width: 28%; border-width: 4px; border-radius: 18px; }
  .phone img { border-radius: 13px; }
  .browser-bar { height: 16px; }
  .browser img { height: calc(100% - 16px); }
  .browser-bar i { width: 5px; height: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}

/* Kuma, the lead assistant */
.wa-float { bottom: 94px; width: 50px; height: 50px; right: 24px; }
.wa-float svg { width: 24px; height: 24px; }
.kuma-bot { position: fixed; right: 20px; bottom: 20px; z-index: 70; font-family: var(--sans); }
.bot-launcher {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink);
  display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(25, 25, 25, 0.6);
  transition: transform 0.4s var(--ease);
}
.bot-launcher img { width: 46px; }
.bot-launcher:hover { transform: scale(1.06); }
.kuma-bot.is-open { z-index: 2147483646; }
.kuma-bot.is-open .bot-launcher { transform: rotate(-8deg) scale(0.92); }
.bot-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.bot-avatar img { width: 30px; }

.bot-teaser { position: absolute; right: 0; bottom: 76px; width: min(320px, calc(100vw - 40px)); animation: pop 0.6s var(--ease); }
.bot-teaser-open {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px 20px 6px 20px; padding: 16px 18px;
  font: 400 0.92rem/1.5 var(--sans); color: var(--ink); box-shadow: 0 24px 50px -18px rgba(122, 94, 87, 0.45);
}
.bot-teaser-close {
  position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 1rem; line-height: 1; color: var(--muted);
}

.bot-panel {
  position: absolute; right: 0; bottom: 76px; width: 380px; height: min(600px, calc(100svh - 120px));
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px -24px rgba(25, 25, 25, 0.45);
  opacity: 0; transform: translateY(16px) scale(0.98); transform-origin: bottom right; pointer-events: none; visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s 0.45s;
}
.kuma-bot.is-open .bot-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--cream); border-bottom: 1px solid var(--line); }
.bot-head strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; display: block; line-height: 1.1; }
.bot-head small { color: var(--muted); font-size: 0.76rem; display: flex; align-items: center; gap: 6px; }
.bot-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.bot-close:hover { background: rgba(25, 25, 25, 0.06); }
.bot-messages { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.bot-messages .msg { max-width: 86%; flex-shrink: 0; }
.bot-messages .msg a { color: inherit; font-weight: 600; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.bot-chips:not(:empty) { padding-bottom: 10px; }
.bot-chips button {
  border: 1px solid var(--brown); color: var(--brown); background: transparent; border-radius: 999px;
  padding: 8px 14px; font: 500 0.82rem/1.2 var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.bot-chips button:hover { background: var(--brown); color: #fff; }
.bot-form { display: flex; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 999px; }
.bot-form input { flex: 1; min-width: 0; border: 0; outline: none; font: 400 16px/1.4 var(--sans); background: transparent; color: var(--ink); }
.bot-form button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: 1rem; cursor: pointer; }
.bot-note { margin: 8px 16px 12px; font-size: 0.7rem; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .bot-panel { position: fixed; inset: auto 0 0 0; z-index: 2147483646; width: 100%; height: min(86svh, 640px); border-radius: 24px 24px 0 0; }
  .kuma-bot.is-open .bot-launcher, .kuma-bot.is-open ~ .wa-float { opacity: 0; pointer-events: none; }
  .bot-launcher { width: 52px; height: 52px; }
  .bot-launcher img { width: 40px; }
  .wa-float { width: 44px; height: 44px; right: 24px; bottom: 84px; }
  .wa-float svg { width: 22px; height: 22px; }
  .bot-teaser { bottom: 66px; }
}

/* Case study: before → after slider + KUMA metric cards */
.case-head { max-width: 860px; margin-bottom: 50px; }
.compare {
  position: relative; max-width: 1080px; margin: 0 auto; aspect-ratio: 1278 / 1040; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7); user-select: none; touch-action: pan-y; background: #fff;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 1rem; letter-spacing: 0.1em;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-range:focus-visible + * { outline: none; }
.compare:has(.compare-range:focus-visible) { outline: 2px solid var(--brown-light); outline-offset: 4px; }
.compare-tag {
  position: absolute; top: 16px; padding: 7px 14px; border-radius: 999px; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none;
}
.tag-before { left: 16px; background: #fff; color: var(--ink); }
.tag-after { right: 16px; background: var(--ink); color: var(--cream); }

.metrics-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 80px 0 18px; }
.legend { display: flex; gap: 18px; font-size: 0.82rem; color: rgba(241, 231, 221, 0.8); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-today, .fill.today { background: #b8674e; }
.sw-kuma, .fill.kuma { background: #1f6fa8; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 22px 22px 20px; }
.metric-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.metric-head { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; margin: 0 0 18px; }
.bar-row { display: grid; grid-template-columns: 74px 1fr 52px; align-items: center; gap: 10px; font-size: 0.8rem; margin-bottom: 8px; }
.bar-row span { color: var(--muted); }
.bar-row b { text-align: right; font-weight: 600; }
.track { height: 10px; background: rgba(25, 25, 25, 0.07); border-radius: 999px; overflow: hidden; }
.fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.6s var(--ease); }
.metric-note { font-size: 0.8rem; color: var(--muted); margin: 14px 0 0; }
.metric-note strong { color: var(--ink); font-weight: 600; }
.source { margin: 18px 0 0; font-size: 0.78rem; color: rgba(241, 231, 221, 0.55); }

/* Sectors */
.sector-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 26px; }
.sector-tabs button {
  border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 11px 18px;
  font: 500 0.88rem/1 var(--sans); cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.sector-tabs button:hover { border-color: var(--ink); }
.sector-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sector-tabs .star { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--brown); color: #fff; padding: 4px 8px; border-radius: 999px; }
.sector-panel {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center;
  background: var(--cream); border-radius: 28px; padding: clamp(24px, 4vw, 56px);
}
.sector-name { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; margin: 10px 0 14px; }
.sector-lead { color: var(--muted); font-size: 1.05rem; }
.sector-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.sector-points li { padding-left: 28px; position: relative; }
.sector-points li::before { content: "✦"; position: absolute; left: 0; color: var(--brown); font-size: 0.85rem; top: 2px; }
.sector-tools { color: var(--brown); margin-bottom: 0; }
.sector-chat { background: var(--white); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 70px -30px rgba(122, 94, 87, 0.45); }
.sector-chat > * { animation: pop 0.5s var(--ease) both; }
.sector-result { margin: 4px 0 0; align-self: center; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wa); background: #e8f5ec; padding: 8px 14px; border-radius: 999px; }

/* Toolkit */
.toolkit { border-top: 1px solid var(--line); }
.toolkit-head { max-width: 860px; margin-bottom: 50px; }
.tool-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-group { border-top: 1px solid var(--ink); padding-top: 18px; }
.tool-group h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 14px; }
.tool-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tool-group li { font-size: 0.95rem; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }

@media (max-width: 1080px) {
  .metrics, .tool-groups { grid-template-columns: repeat(2, 1fr); }
  .sector-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .metrics, .tool-groups { grid-template-columns: 1fr; }
  .compare { border-radius: 12px; }
  .compare-handle span { width: 42px; height: 42px; }
  .sector-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(18px, 4vw, 40px)); padding-inline: clamp(18px, 4vw, 40px); scrollbar-width: none; }
  .sector-tabs button { flex-shrink: 0; }
}
