/* Rakyo · site styles. Brand manual "Rakyo Marca Final":
   Abismo base (60), Bruma (25), Menta (10), Âmbar (5: the symbol dot and the primary button only).
   Manrope 800 display, IBM Plex Sans text, IBM Plex Mono data and labels. */
:root {
  --abismo: #0C2E2F;
  --abismo-2: #10393a;
  --abismo-3: #164647;
  --abismo-4: #1c5253;
  --bruma: #E8F1EE;
  --bruma-2: #f4f8f6;
  --menta: #6FE3C1;
  --ambar: #F0B44C;
  --folha: #1F7A62;
  --on-dark-muted: rgba(232, 241, 238, .72);
  --on-dark-soft: rgba(232, 241, 238, .5);
  --on-light-muted: rgba(12, 46, 47, .72);
  --line-dark: rgba(232, 241, 238, .14);
  --line-light: rgba(12, 46, 47, .14);
  --display: "Manrope", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--abismo); color: var(--bruma); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; border-radius: 8px; }
.light :focus-visible { outline-color: var(--folha); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--menta); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.light .label { color: var(--folha); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.6vw, 108px); line-height: .96; letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.038em; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--on-dark-muted); max-width: 58ch; }
.light .lead { color: var(--on-light-muted); }
.menta { color: var(--menta); }
.light .menta { color: var(--folha); }

/* Buttons: Âmbar only for the primary action */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 26px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--ambar); color: var(--abismo); box-shadow: 0 12px 30px -12px rgba(240, 180, 76, .6); }
.btn.line { border-color: var(--line-dark); color: var(--bruma); background: transparent; }
.btn.line:hover { border-color: var(--menta); }
.light .btn.line { border-color: var(--line-light); color: var(--abismo); }
.light .btn.line:hover { border-color: var(--folha); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link { font-family: var(--display); font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--menta); }
.light .link { color: var(--folha); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Logo: the ring is drawn with currentColor; the dot is always Âmbar */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--bruma); }
.logo .wm { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.05em; line-height: 1; }
.logo .ring { width: 25px; height: 25px; margin-left: 1px; transform: translateY(2px); }
.ring { color: var(--menta); }
.light .ring { color: var(--abismo); }

/* Header */
header.top { position: fixed; inset: 0 0 auto 0; z-index: 40; padding-top: env(safe-area-inset-top); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
header.top.scrolled, header.top.open { background: rgba(12, 46, 47, .9); backdrop-filter: saturate(1.3) blur(14px); border-bottom-color: var(--line-dark); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 78px; }
nav.menu { display: flex; gap: 6px; font-size: 15px; }
nav.menu a { text-decoration: none; color: var(--on-dark-muted); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
nav.menu a:hover { color: var(--bruma); background: rgba(232, 241, 238, .06); }
nav.menu a[aria-current="page"] { color: var(--bruma); background: rgba(111, 227, 193, .12); }
.bar-cta { display: flex; gap: 10px; align-items: center; }
.bar .btn { padding: 12px 20px; font-size: 14.5px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--bruma); cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .25s var(--ease), opacity .2s; }
.open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.open .burger span:nth-child(2) { opacity: 0; }
.open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav { display: none; }

/* Home hero with the animated loop */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.hero .grid-bg { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(232,241,238,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,241,238,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%); animation: gridmove 24s linear infinite; }
@keyframes gridmove { to { background-position: 64px 64px, 64px 64px; } }
.hero .glow { position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(111,227,193,.16), transparent 62%); filter: blur(10px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 4vw, 60px); align-items: center; width: 100%; }
.hero h1 { margin: 24px 0 28px; }
.hero h1 .w { display: block; overflow: hidden; }
.hero h1 .w > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .w:nth-child(1) > span { color: var(--on-dark-soft); animation-delay: .1s; }
.hero h1 .w:nth-child(2) > span { color: var(--menta); animation-delay: .25s; }
.hero h1 .w:nth-child(3) > span { animation-delay: .4s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero .fade { animation: fadeup .9s var(--ease) both; }
.hero .d1 { animation-delay: .55s; } .hero .d2 { animation-delay: .7s; } .hero .d3 { animation-delay: .85s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; font-family: var(--mono); font-size: 12.5px; color: var(--on-dark-muted); letter-spacing: .04em; }
.proof span::before { content: "✓ "; color: var(--menta); }

.loop-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; animation: fadeup 1.2s var(--ease) .2s both; }
.loop-art svg.main { width: 100%; height: 100%; overflow: visible; }
.loop-art .orbit { transform-origin: 300px 300px; animation: spin 40s linear infinite; }
.loop-art .orbit2 { transform-origin: 300px 300px; animation: spin 70s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.loop-art .draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.2s var(--ease) .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loop-art .amber { transform-origin: 445px 155px; animation: pop .6s var(--ease) 2.2s both, beat 2.4s ease-in-out 3s infinite; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes beat { 50% { transform: scale(1.18); } }
.loop-art .runner { offset-path: path("M300,110 A190,190 0 1,1 299.9,110"); animation: run 6s linear infinite; }
@keyframes run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.node { position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; background: var(--abismo-2); border: 1px solid var(--line-dark); color: var(--on-dark-muted); white-space: nowrap; animation: lit 6s linear infinite; }
.node b { color: var(--menta); font-weight: 500; margin-right: 6px; }
.node.n1 { left: 50%; top: 9%; animation-delay: 0s; }
.node.n2 { left: 88%; top: 72%; animation-delay: 2s; }
.node.n3 { left: 12%; top: 72%; animation-delay: 4s; }
@keyframes lit { 0%, 30% { border-color: var(--menta); color: var(--bruma); box-shadow: 0 0 0 6px rgba(111,227,193,.08); } 34%, 100% { border-color: var(--line-dark); color: var(--on-dark-muted); box-shadow: none; } }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(16, 57, 58, .92); border: 1px solid var(--line-dark); backdrop-filter: blur(8px); font-size: 13.5px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); animation: float 6s ease-in-out infinite; }
.chip i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(111,227,193,.14); color: var(--menta); font-style: normal; font-family: var(--mono); font-size: 13px; flex: none; }
.chip small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); }
.chip.c1 { left: 57%; top: 40%; animation-delay: -1s; }
.chip.c2 { left: 22%; top: 46%; animation-delay: -3s; }
.chip.c3 { left: 44%; top: 60%; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); display: grid; justify-items: center; gap: 8px; }
.scroll-hint::after { content: ""; width: 1.5px; height: 34px; background: linear-gradient(var(--menta), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Marquee */
.marquee { border-block: 1px solid var(--line-dark); overflow: hidden; padding: 22px 0; background: var(--abismo-2); }
.marquee .track { display: flex; width: max-content; gap: 0; animation: slide 38s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.03em; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; color: var(--on-dark-soft); }
.marquee span:nth-child(3n+2) { color: var(--bruma); }
.marquee span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--menta); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
section.band { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.light { background: var(--bruma); color: var(--abismo); color-scheme: light; }
.head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 800px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.head-row .head { margin-bottom: 0; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 90px); align-items: center; }
.split.top { align-items: start; }

/* Bento of services */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 6; background: var(--bruma-2); border: 1px solid var(--line-light); border-radius: 28px; padding: 30px; display: grid; grid-template-rows: auto 1fr; gap: 26px; overflow: hidden; text-decoration: none; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(12, 46, 47, .35); }
.tile.wide { grid-column: span 7; } .tile.narrow { grid-column: span 5; }
.tile.dark { background: var(--abismo); color: var(--bruma); border-color: transparent; }
.tile .meta { display: grid; gap: 10px; align-content: start; }
.tile .n { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--folha); }
.tile.dark .n { color: var(--menta); }
.tile h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.035em; }
.tile p { color: var(--on-light-muted); font-size: 16px; max-width: 46ch; }
.tile.dark p { color: var(--on-dark-muted); }
.tile .go { position: absolute; right: 24px; top: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .25s, transform .25s var(--ease); }
.tile.dark .go { border-color: var(--line-dark); }
.tile:hover .go { background: var(--abismo); color: var(--bruma); transform: rotate(-45deg); }
.tile.dark:hover .go { background: var(--menta); color: var(--abismo); }
.mock { align-self: end; border-radius: 18px; overflow: hidden; }
.mock svg { display: block; width: 100%; height: auto; }

/* Method */
.loop3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; position: relative; }
.lp { background: var(--abismo-2); border: 1px solid var(--line-dark); border-radius: 26px; padding: 30px; display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden; }
.lp::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--menta); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.lp.in::after { transform: scaleX(1); }
.lp:nth-child(2)::after { transition-delay: .3s; } .lp:nth-child(3)::after { transition-delay: .6s; }
.lp .n { font-family: var(--mono); font-size: 13px; color: var(--menta); }
.lp h3 { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.lp p { color: var(--on-dark-muted); font-size: 16px; }
.lp ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--on-dark-muted); }
.lp li::before { content: "→ "; color: var(--menta); }
.lp .arc-ico { width: 48px; height: 48px; }

/* AI answer */
.chat { background: var(--bruma-2); border: 1px solid var(--line-light); border-radius: 28px; padding: 26px; display: grid; gap: 14px; box-shadow: 0 40px 80px -50px rgba(12,46,47,.4); }
.chat .who { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-light-muted); display: flex; align-items: center; gap: 8px; }
.chat .who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--folha); }
.chat .q { justify-self: end; background: var(--abismo); color: var(--bruma); padding: 13px 17px; border-radius: 20px 20px 4px 20px; max-width: 88%; font-size: 15.5px; }
.chat .a { background: #fff; border: 1px solid var(--line-light); padding: 15px 17px; border-radius: 20px 20px 20px 4px; font-size: 15.5px; }
.chat .a b { color: var(--folha); }
.chat .src { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; }
.chat .src span { border: 1px solid var(--line-light); border-radius: 999px; padding: 3px 10px; }
.chat .src .me { border-color: var(--folha); color: var(--folha); }
.note { font-family: var(--mono); font-size: 11px; color: var(--on-light-muted); letter-spacing: .02em; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--on-light-muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.quote { margin-top: 30px; border-left: 3px solid var(--folha); padding-left: 18px; display: grid; gap: 6px; }
.quote b { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.quote p { color: var(--on-light-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { border-top: 1px solid var(--line-dark); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.light .step { border-top-color: var(--line-light); }
.step .n { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.04em; color: var(--menta); line-height: 1; }
.light .step .n { color: var(--folha); }
.step p { color: var(--on-dark-muted); font-size: 15.5px; }
.light .step p { color: var(--on-light-muted); }

/* Segments */
.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.seg { border: 1px solid var(--line-light); background: var(--bruma-2); border-radius: 22px; padding: 24px; display: grid; gap: 10px; align-content: start; transition: border-color .2s; }
.seg:hover { border-color: var(--folha); }
.seg svg { width: 34px; height: 34px; color: var(--folha); }
.seg b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.seg span { font-size: 15px; color: var(--on-light-muted); }

/* Big CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 36px; background: var(--abismo-2); border: 1px solid var(--line-dark); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cta-band::before { content: ""; position: absolute; right: -120px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; border: 70px solid rgba(111,227,193,.07); }
.cta-band h2 { font-size: clamp(34px, 4.6vw, 62px); }
.cta-band .actions { display: grid; gap: 12px; justify-items: start; position: relative; }
.cta-band .phone { font-family: var(--mono); font-size: 14px; color: var(--on-dark-muted); }

/* Page hero (inner pages) */
.page-hero { padding: 170px 0 90px; position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: 24px; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 90px); max-width: 15ch; animation: fadeup .9s var(--ease) both; }
.page-hero .lead { animation: fadeup .9s var(--ease) .15s both; }
.page-hero .ring-bg { position: absolute; right: -140px; top: 40px; width: 560px; height: 560px; opacity: .1; animation: spin 80s linear infinite; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--menta); }

/* Service detail */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line-light); }
.svc-detail:first-child { border-top: 0; }
.svc-detail.flip .text { order: 2; }
.svc-detail .text { display: grid; gap: 18px; }
.svc-detail h2 { font-size: clamp(30px, 3.8vw, 48px); }
.svc-detail .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.svc-detail h4 { margin: 0 0 10px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--folha); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15.5px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.checks li::before { content: ""; width: 11px; height: 11px; margin-top: .42em; border-radius: 50%; border: 2.5px solid var(--folha); }
.band:not(.light) .checks li::before { border-color: var(--menta); }
.svc-detail .art { background: var(--abismo); border-radius: 30px; padding: clamp(20px, 3vw, 36px); }

/* About */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 210px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); font-size: 16.5px; }
.facts li:first-child { border-top: 1px solid var(--line-dark); }
.facts .k { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--menta); padding-top: 3px; }
.facts span { color: var(--on-dark-muted); }
.portrait { aspect-ratio: 4/5; border-radius: 30px; background: var(--abismo-2); border: 1px solid var(--line-dark); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait svg.big { width: 58%; }
.portrait .cap { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.term { background: var(--bruma-2); border: 1px solid var(--line-light); border-radius: 24px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.term .n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--folha); }
.term p { color: var(--on-light-muted); font-size: 15.5px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value { border-top: 2px solid var(--menta); padding-top: 22px; display: grid; gap: 10px; }
.value p { color: var(--on-dark-muted); font-size: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
form.card { background: var(--bruma-2); color: var(--abismo); border-radius: 30px; padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 20px; color-scheme: light; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-light-muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--abismo); background: #fff; border: 1.5px solid var(--line-light); border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--folha); box-shadow: 0 0 0 4px rgba(31,122,98,.14); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; position: relative; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-light); background: #fff; font-size: 15px; font-family: var(--text); text-transform: none; letter-spacing: 0; color: var(--abismo); transition: all .2s; }
.pills input:checked + span { background: var(--abismo); color: var(--bruma); border-color: var(--abismo); }
.pills input:focus-visible + span { outline: 3px solid var(--folha); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--on-light-muted); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--folha); }
.form-msg { font-size: 14.5px; color: var(--folha); min-height: 1.2em; }
.side { display: grid; gap: 16px; }
.side .box { border: 1px solid var(--line-dark); border-radius: 24px; padding: 26px; display: grid; gap: 10px; background: var(--abismo-2); }
.side .box .k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--menta); }
.side .box p { color: var(--on-dark-muted); font-size: 15.5px; }
.side .big { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line-light); background: var(--bruma-2); border-radius: 20px; padding: 2px 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--folha); }
.faq summary { cursor: pointer; padding: 20px 0; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--folha); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--on-light-muted); max-width: 70ch; }

/* Footer */
footer.site { padding: 90px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h5 { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--menta); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot-grid ul a { text-decoration: none; color: var(--on-dark-muted); }
.foot-grid ul a:hover { color: var(--bruma); }
.foot-grid .about { display: grid; gap: 16px; align-content: start; color: var(--on-dark-muted); font-size: 15px; max-width: 34ch; }
.foot-word { font-family: var(--display); font-weight: 800; font-size: clamp(90px, 21vw, 300px); letter-spacing: -0.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(232,241,238,.12); margin: 70px 0 30px; user-select: none; white-space: nowrap; display: flex; align-items: baseline; }
.foot-word svg { width: .74em; height: .74em; transform: translateY(.04em); color: rgba(232,241,238,.12); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--on-dark-soft); border-top: 1px solid var(--line-dark); padding-top: 24px; }
.foot-base .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; background: var(--menta); color: var(--abismo); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); z-index: 30; transition: transform .2s var(--ease); }
.float:hover { transform: scale(1.06); }
.float svg { width: 28px; height: 28px; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; } .js .reveal.d3 { transition-delay: .3s; }

@media (max-width: 1060px) {
  nav.menu, .bar-cta .btn.line { display: none; }
  .burger { display: block; }
  .mobile-nav { display: grid; gap: 4px; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  .open .mobile-nav { max-height: 420px; }
  .mobile-nav a { text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
  .mobile-nav a:last-child { border-bottom: 0; margin-bottom: 18px; }
  .hero-grid, .split, .contact-grid, .cta-band, .svc-detail { grid-template-columns: 1fr; }
  .svc-detail.flip .text { order: 0; }
  .hero { min-height: auto; padding-top: 130px; }
  .loop-art { max-width: 480px; }
  .scroll-hint { display: none; }
  .tile, .tile.wide, .tile.narrow { grid-column: span 12; }
  .loop3, .terms, .values { grid-template-columns: 1fr; }
  .steps, .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps, .segs, .row2, .svc-detail .cols { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 6px; }
  .bar .btn.primary span { display: none; }
  .bar .btn.primary { padding: 12px 14px; }
  .chip { font-size: 12px; padding: 9px 11px; }
  .chip i { width: 24px; height: 24px; }
  .node { font-size: 10.5px; padding: 7px 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .tile { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .loop-art .draw { stroke-dashoffset: 0; }
}

/* ---------- Mascots: Showa and Kenji ---------- */
.m-cat { overflow: visible; }
.m-blink { transform-box: fill-box; transform-origin: center; animation: m-blink 5s infinite; }
.m-kenji .m-blink { animation-delay: 1.3s; }
@keyframes m-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.m-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: m-wag 3.2s ease-in-out infinite; }
.m-showa .m-tail { animation-duration: 5s; }
@keyframes m-wag { 50% { transform: rotate(8deg); } }
.m-tip { animation: m-glow 1.6s ease-in-out infinite; }
@keyframes m-glow { 50% { opacity: .35; } }
.m-arm { display: none; transform-box: fill-box; transform-origin: 50% 100%; }
.m-head { transform-box: fill-box; transform-origin: 50% 90%; }

.meet { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; align-items: end; }
.meet .actor { display: grid; justify-items: center; gap: 12px; }
.meet .actor svg { width: min(100%, 250px); height: auto; }
.meet .actor .nm { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.meet .actor .rl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--folha); }
.meet .talk { display: grid; gap: 12px; align-self: center; }
.say { padding: 14px 18px; border-radius: 20px; font-size: 16px; background: #fff; border: 1px solid var(--line-light); box-shadow: 0 20px 40px -30px rgba(12,46,47,.5); }
.say b { font-family: var(--display); display: block; font-size: 13px; letter-spacing: .02em; color: var(--folha); margin-bottom: 2px; }
.say.k { border-radius: 20px 20px 20px 4px; margin-right: 24px; }
.say.s { border-radius: 20px 20px 4px 20px; margin-left: 24px; background: var(--abismo); color: var(--bruma); border-color: transparent; }
.say.s b { color: var(--menta); }
.say .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.say .btns a { font-family: var(--display); font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-light); }
.say .btns a.pri { background: var(--ambar); border-color: var(--ambar); color: var(--abismo); }
/* Motion only when JS runs; at rest everything is visible */
.js .meet .actor.left { transform: translateX(-60px); opacity: 0; transition: transform 1s var(--ease), opacity 1s; }
.js .meet .actor.right { transform: translateX(60px); opacity: 0; transition: transform 1s var(--ease) .2s, opacity 1s .2s; }
.js .meet.play .actor { transform: none; opacity: 1; }
.js .meet .say { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .meet .say.on { opacity: 1; transform: none; }
.meet.play .actor.right .m-arm { display: block; animation: m-wave 1.1s ease-in-out 1.2s 4 both; }
.meet.play .actor.right .m-rpaw { display: none; }
@keyframes m-wave { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(22deg); } }
.meet.play .actor.left .m-head { animation: m-nod 2.4s ease-in-out 2.4s 2; }
@keyframes m-nod { 30% { transform: rotate(-4deg) translateY(2px); } 60% { transform: rotate(3deg); } }
.meet.play .actor .m-whole { animation: m-bob 3s ease-in-out 1s infinite; }
.meet.play .actor.left .m-whole { animation-duration: 4.2s; }
@keyframes m-bob { 50% { transform: translateY(-5px); } }

/* Kenji helper (bottom-right, every page) */
.helper { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; display: grid; justify-items: end; gap: 12px; color: var(--abismo); }
.h-btn { width: 68px; height: 68px; border-radius: 50%; border: 0; padding: 4px; background: var(--abismo); box-shadow: 0 16px 34px -12px rgba(0,0,0,.55), 0 0 0 3px var(--menta); cursor: pointer; position: relative; animation: h-hop 4s ease-in-out 4s infinite; }
.h-btn svg { width: 100%; height: 100%; }
.h-dot { position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ambar); border: 2px solid var(--abismo); }
.opened .h-dot { display: none; }
@keyframes h-hop { 0%, 88%, 100% { transform: translateY(0); } 92% { transform: translateY(-8px); } 96% { transform: translateY(0); } }
.h-teaser { max-width: 260px; background: #fff; border-radius: 18px 18px 4px 18px; padding: 12px 34px 12px 14px; font-size: 14.5px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); position: relative; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.h-teaser.show { opacity: 1; transform: none; pointer-events: auto; }
.h-teaser-text { cursor: pointer; }
.h-x, .h-close { position: absolute; right: 8px; top: 6px; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.h-panel { width: min(360px, calc(100vw - 36px)); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); animation: h-in .35s var(--ease); }
@keyframes h-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.h-head { background: var(--abismo); color: var(--bruma); display: flex; align-items: center; gap: 12px; padding: 12px 40px 12px 14px; position: relative; }
.h-head .h-close { color: var(--bruma); top: 50%; transform: translateY(-50%); right: 12px; }
.h-av { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--abismo-3); overflow: hidden; }
.h-av svg { width: 100%; height: 100%; }
.h-name { font-family: var(--display); display: block; font-size: 16px; }
.h-role { font-family: var(--mono); font-size: 11px; color: var(--menta); }
.is-showa .h-head { background: #1a1210; }
.h-body { padding: 14px; display: grid; gap: 12px; }
.h-msg { margin: 0; background: var(--bruma-2); border-radius: 14px 14px 14px 4px; padding: 11px 13px; font-size: 15px; min-height: 3em; }
.typing-now::after { content: "▍"; color: var(--folha); animation: blink 1s infinite; }
.h-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.h-opt { font: inherit; font-size: 14px; text-decoration: none; border: 1.5px solid var(--line-light); background: #fff; color: var(--abismo); border-radius: 999px; padding: 8px 13px; cursor: pointer; }
.h-opt:hover { border-color: var(--folha); }
.h-opt.dark { background: var(--abismo); color: var(--bruma); border-color: var(--abismo); }
.h-opt.ghost { border-color: transparent; color: var(--on-light-muted); }
@media (max-width: 860px) {
  .meet { grid-template-columns: 1fr 1fr; }
  .meet .talk { grid-column: 1 / -1; grid-row: 2; }
  .meet .actor svg { width: min(100%, 170px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .meet .actor, .js .meet .say { opacity: 1 !important; transform: none !important; }
}
section[id] { scroll-margin-top: 80px; }
