:root {
  --ink: #14130f;
  --ink-2: #2b2924;
  --ink-3: #1d1c17;
  --night-line: #34312a;
  --night-text: #cfc8ba;
  --paper: #f5f2ea;
  --raised: #fbfaf6;
  --line: #ddd7c9;
  --muted: #5f5a4f;
  --clay: #b8481f;
  --clay-dark: #8f3615;
  --clay-glow: #f0a37f;
  --clay-soft: #f3dfd3;
  --ok: #2f7d4f;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.display { font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif; letter-spacing: -0.025em; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .word { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1; }

/* Header: dark over hero, light once scrolled */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; color: var(--paper); transition: background .25s, color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.top .mark rect:first-child { fill: #2b2924; }
.top.scrolled { background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); color: var(--ink); border-color: var(--line); }
.top.scrolled .mark rect:first-child { fill: var(--ink); }
.top.light { position: sticky; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; opacity: .82; }
.nav a:not(.btn):hover { opacity: 1; color: var(--clay-glow); }
.top.scrolled .nav a:not(.btn):hover { color: var(--clay); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid currentColor; transition: background .15s, color .15s, transform .15s, border-color .15s, box-shadow .15s; white-space: nowrap; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-clay { background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: 0 8px 24px -10px rgba(184,72,31,.7); }
.btn-clay:hover { background: #cc5527; border-color: #cc5527; }
.btn-line { background: transparent; }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--clay); border-color: var(--clay); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.top .btn-sm { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.top.scrolled .btn-sm { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.top .btn-sm:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); padding: 150px 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(245,242,234,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(245,242,234,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 600px; left: 50%; top: 52%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(184,72,31,.38), transparent); filter: blur(20px); }
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--night-line); background: rgba(255,255,255,.03); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: .86rem; color: var(--night-text); margin-bottom: 26px; }
.pill b { background: var(--clay); color: #fff; font-weight: 600; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); line-height: .98; margin: 0 0 26px; font-weight: 700; }
.hero h1 .accent { color: var(--clay-glow); }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.35em); transition: opacity .45s, transform .45s; white-space: nowrap; }
.rotator > span.on { opacity: 1; transform: none; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--night-text); max-width: 40em; margin: 0 auto 34px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .btn-line { color: var(--paper); border-color: #4a463d; }
.hero .btn-line:hover { border-color: var(--paper); }

/* App mockup */
.stage { position: relative; max-width: 1040px; margin: 70px auto 0; padding: 0 0 0; perspective: 1600px; }
.app { position: relative; background: #fbfaf6; color: var(--ink); border-radius: 14px 14px 0 0; border: 1px solid #3a372f; border-bottom: 0; box-shadow: 0 -10px 80px -20px rgba(240,163,127,.35), 0 30px 60px rgba(0,0,0,.5); overflow: hidden; transform: rotateX(8deg); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.stage.in .app { transform: rotateX(0); }
.app-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #ece8de; border-bottom: 1px solid #ddd7c9; }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6cfbf; }
.app-bar i:nth-child(1) { background: #e0816a; } .app-bar i:nth-child(2) { background: #e3bf62; } .app-bar i:nth-child(3) { background: #8fbf7a; }
.app-bar .url { margin: 0 auto; background: #fbfaf6; border: 1px solid #ddd7c9; border-radius: 7px; padding: 3px 16px; font-size: .76rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.app-bar .url svg { width: 11px; height: 11px; color: var(--ok); }
.app-body { display: grid; grid-template-columns: 190px 1fr; min-height: 420px; }
.app-side { background: #f1eee6; border-right: 1px solid #e3ded2; padding: 18px 12px; font-size: .84rem; }
.app-side .b { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 6px 18px; font-size: .9rem; }
.app-side .b span { width: 22px; height: 22px; border-radius: 6px; background: var(--clay); display: inline-block; }
.app-side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.app-side a svg { width: 15px; height: 15px; }
.app-side a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); font-weight: 600; }
.app-side .badge { margin-left: auto; background: var(--ok); color: #fff; font-size: .68rem; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.app-main { padding: 22px 24px 26px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; gap: 12px; }
.app-head h4 { margin: 0; font-size: 1.15rem; }
.app-head p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.app-head .live { font-size: .74rem; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.app-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(47,125,79,.5); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(47,125,79,0); } 100% { box-shadow: 0 0 0 0 rgba(47,125,79,0); } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid #e6e1d5; border-radius: 10px; padding: 12px 14px; }
.kpi small { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.kpi strong { font-size: 1.12rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .up { display: block; font-size: .68rem; color: var(--ok); margin-top: 2px; }
.kpi.warn strong { color: var(--clay); }
.app-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.panel { background: #fff; border: 1px solid #e6e1d5; border-radius: 10px; padding: 14px; min-width: 0; }
.panel h5 { margin: 0 0 12px; font-size: .78rem; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }
.chart { display: flex; align-items: end; gap: 7px; height: 128px; padding-top: 6px; border-bottom: 1px solid #eee9de; }
.chart span { flex: 1; background: linear-gradient(#e7b49b, #d47a52); border-radius: 4px 4px 0 0; height: 4%; transition: height 1s cubic-bezier(.2,.8,.2,1); }
.chart span:last-child { background: linear-gradient(#cf5d31, var(--clay)); }
.chart-x { display: flex; gap: 7px; font-size: .62rem; color: #9a9384; margin-top: 5px; }
.chart-x span { flex: 1; text-align: center; }
.rows { display: flex; flex-direction: column; gap: 0; font-size: .78rem; }
.rows div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f0ece3; }
.rows div:last-child { border: 0; }
.rows b { font-weight: 600; font-variant-numeric: tabular-nums; }
.st { font-size: .66rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.st.ok { background: #e1f0e6; color: var(--ok); }
.st.wait { background: #fbefd9; color: #9a6a12; }
.st.late { background: var(--clay-soft); color: var(--clay-dark); }
.rows .flash { animation: flash 1.6s ease; }
@keyframes flash { 0% { background: #e1f0e6; } 100% { background: transparent; } }

/* floating notifications */
.toast { position: absolute; z-index: 3; display: flex; gap: 12px; align-items: center; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 16px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); font-size: .82rem; line-height: 1.35; max-width: 270px; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.toast.show { opacity: 1; transform: none; }
.toast .ti { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.toast .ti svg { width: 18px; height: 18px; }
.toast small { color: var(--muted); display: block; }
.toast.t1 { right: -34px; top: 130px; }
.toast.t1 .ti { background: #e1f0e6; color: var(--ok); }
.toast.t2 { left: -40px; top: 290px; }
.toast.t2 .ti { background: #25d366; color: #fff; }
.toast.t3 { right: 40px; bottom: 34px; }
.toast.t3 .ti { background: var(--clay-soft); color: var(--clay-dark); }

/* integrations marquee */
.integr { background: var(--ink); color: var(--night-text); border-top: 1px solid var(--night-line); padding: 26px 0 28px; }
.integr p { text-align: center; margin: 0 0 16px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8d8677; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 46px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; font-weight: 600; color: #e8e2d4; opacity: .75; white-space: nowrap; display: inline-flex; align-items: center; gap: 46px; }
.marquee span::after { content: "✦"; font-size: .7rem; color: var(--clay-glow); opacity: .8; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
section.block { padding: 104px 0; scroll-margin-top: 40px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px; }
.sec-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; margin-bottom: 52px; align-items: end; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.04; margin: 0; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 28px; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.svc:hover { border-color: #cbbfa8; transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(20,19,15,.25); }
.svc h3 { margin: 0 0 8px; font-size: 1.22rem; }
.svc p { margin: 0; color: var(--muted); font-size: .98rem; }
.svc .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--clay-soft); color: var(--clay-dark); display: grid; place-items: center; margin-bottom: 20px; }
.svc .ico svg { width: 22px; height: 22px; }
.svc.s-a { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.svc.s-b { grid-column: span 2; }
.svc.s-c, .svc.s-d, .svc.s-e { grid-column: span 2; }
.svc.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.svc.dark p { color: var(--night-text); }
.svc.dark .ico { background: #2b2924; color: var(--clay-glow); }
.list-check { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: .93rem; color: var(--ink-2); }
.list-check li { display: flex; gap: 8px; }
.list-check li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--clay-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%238f3615' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
/* mini visuals inside bento */
.mini-flow { display: grid; gap: 10px; }
.mini-flow .node { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .84rem; }
.mini-flow .node i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: .8rem; font-weight: 700; color: #fff; flex: none; }
.mini-flow .node em { margin-left: auto; font-style: normal; font-size: .7rem; color: var(--ok); font-weight: 600; }
.mini-flow .link { height: 14px; margin-left: 24px; border-left: 2px dashed #d3c9b4; }
.code { background: #1b1a16; color: #e8e2d4; border-radius: 10px; padding: 14px 16px; font-size: .76rem; line-height: 1.6; margin-top: 18px; overflow: hidden; white-space: pre; }
.code .k { color: var(--clay-glow); } .code .s { color: #a8cf8e; } .code .c { color: #7d776a; }
.spark { display: flex; align-items: end; gap: 4px; height: 54px; margin-top: 18px; }
.spark span { flex: 1; background: var(--clay-soft); border-radius: 3px; }
.spark span:nth-child(n+7) { background: var(--clay); }
.shield { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.shield span { font-size: .76rem; border: 1px solid var(--night-line); border-radius: 999px; padding: 4px 10px; color: var(--night-text); }

/* Numbers */
.numbers { background: var(--raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 40px 24px; }
.num + .num { border-left: 1px solid var(--line); }
.num strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.num strong sup { font-size: .5em; color: var(--clay); vertical-align: top; margin-left: 2px; }
.num > span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* Projects */
.work { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.case { grid-column: span 2; display: flex; flex-direction: column; text-decoration: none; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.case.big { grid-column: span 3; }
.case:hover { border-color: var(--clay); transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(20,19,15,.35); }
.shot { position: relative; background: #e9e5da; border-bottom: 1px solid var(--line); overflow: hidden; }
.shot .bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #ece8de; border-bottom: 1px solid #ddd7c9; }
.shot .bar i { width: 8px; height: 8px; border-radius: 50%; background: #d3ccbc; }
.shot .bar span { margin-left: 8px; font-size: .68rem; color: var(--muted); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.case:hover .shot img { transform: scale(1.04); }
.case .info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case .tag { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.case h3 { margin: 0; font-size: 1.22rem; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.case h3 svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.case:hover h3 svg { transform: translate(2px, -2px); color: var(--clay); }
.case p { margin: 0; color: var(--muted); font-size: .96rem; }

.internal { margin-top: 64px; background: var(--ink); color: var(--paper); border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1fr 2fr; gap: 44px; }
.internal h3 { font-size: 1.8rem; line-height: 1.1; margin: 0 0 12px; }
.internal > div > p { margin: 0; color: var(--night-text); }
.internal ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.internal li { padding: 15px 0; border-top: 1px solid var(--night-line); }
.internal li b { display: block; margin-bottom: 2px; }
.internal li span { color: var(--night-text); font-size: .94rem; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: repeating-linear-gradient(90deg, #d3c9b4 0 8px, transparent 8px 14px); z-index: 0; }
.step { position: relative; z-index: 1; }
.step .n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; margin-bottom: 20px; }
.step:last-child .n { background: var(--clay); border-color: var(--clay); color: #fff; }
.step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
.step .when { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 600; color: var(--clay-dark); background: var(--clay-soft); padding: 3px 10px; border-radius: 999px; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 18px; }
.about p { color: var(--ink-2); margin: 0 0 14px; font-size: 1.05rem; }
.etym { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 40px; position: relative; overflow: hidden; }
.etym .greek { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; margin: 0 0 6px; }
.etym .pron { color: #a9a292; margin: 0 0 22px; font-size: .95rem; }
.etym p { margin: 0; color: #e8e3d8; font-size: 1.05rem; }
.etym .bars { position: absolute; right: 28px; top: 34px; width: 84px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 46em; }

/* Contact */
.contact { padding: 0 0 100px; }
.contact .card { position: relative; overflow: hidden; background: var(--clay); color: #fff; border-radius: 26px; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; isolation: isolate; }
.contact .card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 100% 0, #000, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 100% 0, #000, transparent 65%); }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; margin: 0 0 14px; }
.contact p { margin: 0; color: #fbe7dd; font-size: 1.1rem; }
.contact .links { display: flex; flex-direction: column; gap: 12px; }
.contact .btn { justify-content: flex-start; }
.contact .btn-white { background: #fff; color: var(--clay-dark); border-color: #fff; }
.contact .btn-white:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact .btn-line { color: #fff; border-color: rgba(255,255,255,.6); }
.contact .btn-line:hover { background: #fff; color: var(--clay-dark); border-color: #fff; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .92rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--ink-2); }

/* Reveal on scroll (only when JS is on) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; } .js .rv.d3 { transition-delay: .24s; }

/* Legal page */
.top.light { color: var(--ink); background: var(--paper); border-color: var(--line); }
.top.light .mark rect:first-child { fill: var(--ink); }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin: 0 0 8px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 8px; }
.legal .meta { color: var(--muted); margin: 0 0 28px; }
.legal .card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.legal .card p { margin: 0; }
.legal a { color: var(--clay-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .toast.t1 { right: 10px; } .toast.t2 { left: 10px; }
}
@media (max-width: 900px) {
  .nav .hide-sm { display: none; }
  .hero { padding-top: 120px; }
  .sec-head, .about, .contact .card, .internal { grid-template-columns: 1fr; gap: 28px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .svc.s-a { grid-column: span 2; grid-template-columns: 1fr; }
  .svc.s-b, .svc.s-c, .svc.s-d, .svc.s-e { grid-column: span 1; }
  .svc.s-e { grid-column: span 2; }
  .work { grid-template-columns: 1fr 1fr; }
  .case, .case.big { grid-column: span 1; }
  .numbers .wrap { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { border-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 18px; }
  .steps::before { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  section.block { padding: 76px 0; }
  .contact .card, .internal { padding: 38px 28px; }
  .toast.t3 { display: none; }
}
@media (max-width: 600px) {
  .bento, .work { grid-template-columns: 1fr; }
  .svc.s-a, .svc.s-b, .svc.s-c, .svc.s-d, .svc.s-e { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .internal ul { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid .panel:last-child { display: none; }
  .app-main { padding: 16px; }
  .toast { max-width: 230px; font-size: .76rem; padding: 10px 12px; }
  .toast.t1 { top: 70px; right: 8px; }
  .toast.t2 { top: auto; bottom: 20px; left: 8px; }
  .nav { gap: 14px; }
  .hero .ctas .btn { width: 100%; }
  .etym, .contact .card { padding: 30px 24px; }
  .num { padding: 28px 16px; }
  .rotator > span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .app { transform: none; transition: none; }
}

/* ---------- Telas de sistemas (mockups com dados fictícios) ---------- */
.screens { margin-top: 72px; }
.screens-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.screens-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; margin: 0 0 6px; }
.screens-head p { margin: 0; color: var(--muted); }
.tabs { display: inline-flex; background: #ebe6da; border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs button:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.sframe { background: #ece8de; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(20,19,15,.45); }
.sframe .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid #ddd7c9; }
.sframe .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3ccbc; }
.sframe .bar span { margin: 0 auto; font-size: .74rem; color: var(--muted); background: #fbfaf6; border: 1px solid #ddd7c9; border-radius: 6px; padding: 2px 14px; }
.sview { position: relative; overflow: hidden; }
.screen { width: 1200px; height: 660px; transform-origin: 0 0; position: absolute; top: 0; left: 0; display: none; }
.screen.on { display: block; }
.screen-cap { margin: 14px 2px 0; font-size: .9rem; color: var(--muted); }
.screen-cap b { color: var(--ink); }

/* Cobrança */
.cb { background: #f8f9fb; height: 100%; font-family: Inter, "Instrument Sans", system-ui, sans-serif; color: #111827; }
.cb-top { height: 54px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 70px; gap: 8px; font-size: 14px; }
.cb-logo { font-weight: 800; color: #4f46e5; margin-right: 26px; letter-spacing: -.02em; font-size: 16px; }
.cb-top a { padding: 7px 12px; border-radius: 8px; color: #374151; }
.cb-top a.on { background: #eef0ff; color: #3730a3; }
.cb-top .bd { background: #2f855a; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.cb-top .me { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cb-top .me i { width: 30px; height: 30px; border-radius: 50%; background: #e5e7eb; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
.cb-main { padding: 30px 70px; }
.cb-main h2 { margin: 0; font-size: 22px; } .cb-main .sub { margin: 4px 0 24px; color: #6b7280; font-size: 13px; }
.cb-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.cb-kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.cb-kpi small { display: block; padding: 14px 16px; border-bottom: 1px solid #f0f1f3; font-size: 13px; color: #4b5563; }
.cb-kpi strong { display: block; padding: 18px 16px 4px; font-size: 21px; font-weight: 600; white-space: nowrap; }
.cb-kpi em { display: block; padding: 0 16px 14px; font-style: normal; font-size: 11px; color: #9ca3af; }
.cb-kpi.o strong { color: #c2741e; } .cb-kpi.r { border-color: #f6d4d4; } .cb-kpi.r small, .cb-kpi.r strong, .cb-kpi.r em { color: #b42318; } .cb-kpi.g strong { color: #2f855a; }
.cb-list { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.cb-list h4 { margin: 0; padding: 15px 18px; border-bottom: 1px solid #f0f1f3; font-size: 13px; font-weight: 500; color: #4b5563; }
.cb-row { display: grid; grid-template-columns: 1fr 120px 90px 90px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.cb-row small { display: block; color: #9ca3af; font-size: 11px; }
.cb-row b { text-align: right; } .cb-row span.d { color: #6b7280; font-size: 12px; }
.cb-tag { justify-self: end; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.cb-tag.late { background: #fde8e8; color: #b42318; } .cb-tag.open { background: #eef0ff; color: #3730a3; } .cb-tag.paid { background: #e3f4ea; color: #2f855a; }

/* Antonina / Luciana — admin com barra lateral escura */
.ad { display: grid; grid-template-columns: 230px 1fr; height: 100%; font-family: Jost, "Instrument Sans", sans-serif; }
.ad-side { color: #cdbfb1; padding: 26px 12px; font-size: 14px; display: flex; flex-direction: column; }
.ad-side .lg { padding: 0 12px 26px; color: #fff; }
.ad-side .lg b { display: block; font-weight: 400; }
.ad-side .lg small { display: block; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.ad-side a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 4px; }
.ad-side a.on { background: rgba(255,255,255,.1); color: #fff; }
.ad-side a i { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .8; }
.ad-side .bd { margin-left: auto; font-size: 11px; padding: 0 7px; border-radius: 999px; color: #fff; }
.ad-side .who { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 12px 0; font-size: 13px; color: #fff; }
.ad-side .who small { display: block; color: #a99d90; font-size: 11px; }
.ad-main { padding: 34px 40px; overflow: hidden; }
.ad-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 6px; }
.ad-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; font-weight: 500; margin: 0; line-height: 1.1; }
.ad-btns { display: flex; gap: 8px; }
.ad-btn { border: 1px solid #2a211d; padding: 9px 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; background: transparent; }
.ad-btn.dk { background: #2a211d; color: #fff; }
.ad-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }

.an { background: #faf8f4; color: #2a211d; }
.an .ad-side { background: #2a1e19; }
.an .ad-side .lg b { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 30px; }
.an .ad-side .bd { background: #a8794f; }
.an .ad-eyebrow { color: #a8794f; }
.an-tabs { display: flex; gap: 26px; border-bottom: 1px solid #e6dfd4; font-size: 13px; color: #8a7f74; margin-bottom: 16px; }
.an-tabs span { padding-bottom: 10px; } .an-tabs span.on { color: #2a211d; border-bottom: 2px solid #a8794f; }
.an-tabs small { color: #b3a89c; margin-left: 4px; }
.an-tbl { background: #fff; border: 1px solid #e6dfd4; font-size: 13px; }
.an-tbl .h, .an-tbl .r { display: grid; grid-template-columns: 50px 1.6fr 1fr 1.4fr 1fr; gap: 12px; padding: 12px 16px; align-items: center; }
.an-tbl .h { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #8a7f74; border-bottom: 1px solid #e6dfd4; }
.an-tbl .g { background: #f3eee6; padding: 9px 16px; font-family: "Cormorant Garamond", serif; font-size: 16px; }
.an-tbl .g small { font-family: Jost, sans-serif; font-size: 12px; color: #8a7f74; margin-left: 8px; }
.an-tbl .r { border-top: 1px solid #efe9df; }
.an-tbl .r small { display: block; color: #9b9086; font-size: 11px; }
.an-tbl .r .t { text-align: right; }
.an-ph { justify-self: start; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; background: #efe6da; color: #6b5444; }
.an-ph.prod { color: #a8794f; } .an-ph.env { background: #e4ece1; color: #46613d; }

.la { background: #f4f2ee; color: #1f1d1a; }
.la .ad-side { background: #1f1d1a; }
.la .ad-side .lg b { letter-spacing: .3em; font-size: 15px; }
.la .ad-side .lg small { letter-spacing: .3em; }
.la .ad-side .bd { background: #9a8466; }
.la .start { margin: 0 12px 18px; background: #9a8466; color: #fff; text-align: center; padding: 10px; font-size: 13px; }
.la .ad-eyebrow { color: #9a8466; }
.la .ad-btn { letter-spacing: 0; text-transform: none; font-size: 13px; padding: 10px 18px; }
.la-grid { display: grid; grid-template-columns: 1.85fr 1fr; gap: 20px; }
.la-card { background: #fff; border: 1px solid #e4e0d8; padding: 20px 22px; }
.la-card h5 { font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 500; margin: 0 0 14px; display: flex; justify-content: space-between; }
.la-card h5 small { font-family: Jost, sans-serif; font-size: 13px; color: #9a8466; }
.la-p { display: grid; grid-template-columns: 1fr 150px 40px; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid #efece6; font-size: 13px; }
.la-p:first-of-type { border-top: 0; }
.la-p small { display: block; color: #8d877d; font-size: 11px; }
.la-p .bar { height: 5px; background: #ebe6dc; border-radius: 3px; overflow: hidden; }
.la-p .bar i { display: block; height: 100%; background: #9a8466; }
.la-p em { font-style: normal; text-align: right; color: #6d675d; font-size: 12px; }
.la-t { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-top: 1px solid #efece6; }
.la-t:first-of-type { border-top: 0; }
.la-t em { font-style: normal; color: #a4473a; font-size: 12px; }
.la-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3f8a5a; margin-right: 8px; }
.la-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 600px) { .tabs { border-radius: 16px; } .tabs button { padding: 8px 12px; font-size: .86rem; } }

/* Case em destaque (Laginhagro) */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; background: var(--raised); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 18px; }
.feature .shot { border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.feature .shot img { aspect-ratio: auto; flex: 1; min-height: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feature .info { padding: 34px 36px; display: flex; flex-direction: column; gap: 12px; }
.feature .tag { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.feature h3 { margin: 0; font-size: 1.7rem; line-height: 1.1; }
.feature .lead2 { margin: 0; color: var(--ink-2); }
.feature .badge-live { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: #e1f0e6; color: var(--ok); font-weight: 600; font-size: .82rem; padding: 5px 12px; border-radius: 999px; }
.feature .badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 1.8s infinite; }
.feature ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; color: var(--ink-2); }
.feature li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.feature li i { width: 22px; height: 22px; border-radius: 6px; background: var(--clay-soft); color: var(--clay-dark); display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 700; margin-top: 1px; }
.feature .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.feature .links a { font-size: .92rem; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature .shot { border-right: 0; border-bottom: 1px solid var(--line); } .feature .shot img { aspect-ratio: 16/10; height: auto; } .feature .info { padding: 26px 22px; } }

/* Laginhagro painel (mockup) */
.lg { background: #f5f7f2; height: 100%; color: #13241a; font-family: Figtree, "Instrument Sans", system-ui, sans-serif; font-size: 14px; }
.lg-top { background: #fff; border-bottom: 1px solid #dde4d8; height: 62px; display: flex; align-items: center; gap: 22px; padding: 0 40px; }
.lg-top .brand2 { display: flex; align-items: center; gap: 10px; font-family: Archivo, "Instrument Sans", sans-serif; font-weight: 700; }
.lg-top .brand2 img { height: 34px; width: auto; }
.lg-top nav { display: flex; gap: 2px; font-size: 13.5px; }
.lg-top nav span { padding: 6px 11px; border-radius: 999px; }
.lg-top nav span.on { background: #e4f0e3; }
.lg-top nav .bd { background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; margin-left: 4px; }
.lg-top .me { margin-left: auto; display: flex; gap: 12px; align-items: center; color: #5b6b60; font-size: 13px; }
.lg-top .me b { border: 1px solid #dde4d8; border-radius: 999px; padding: 5px 12px; font-weight: 400; color: #13241a; }
.lg-main { padding: 26px 40px; }
.lg-h { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.lg-h h2 { font-family: Archivo, "Instrument Sans", sans-serif; font-size: 28px; margin: 0 0 8px; }
.lg-pills { display: flex; gap: 4px; font-size: 13px; }
.lg-pills span { border: 1px solid #dde4d8; border-radius: 999px; padding: 5px 12px; background: #fff; }
.lg-pills span.on { background: #13241a; color: #fff; border-color: #13241a; }
.lg-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.lg-card { background: #fff; border: 1px solid #dde4d8; border-radius: 16px; padding: 14px 16px; }
.lg-card small { color: #5b6b60; font-size: 13px; }
.lg-card strong { display: block; font-family: Archivo, "Instrument Sans", sans-serif; font-size: 28px; }
.lg-card.on { border-color: #0a6b2b; background: #eef6ed; }
.lg-tbl { background: #fff; border: 1px solid #dde4d8; border-radius: 16px; overflow: hidden; font-size: 13px; }
.lg-tbl .h, .lg-tbl .r { display: grid; grid-template-columns: 70px 1.5fr 1fr 120px 50px 110px 2fr; gap: 10px; padding: 11px 16px; align-items: center; }
.lg-tbl .h { color: #5b6b60; font-size: 12px; border-bottom: 1px solid #dde4d8; }
.lg-tbl .r { border-top: 1px solid #eef1ea; }
.lg-tbl .r:first-of-type { border-top: 0; }
.lg-tbl .n { font-family: "JetBrains Mono", monospace; font-weight: 600; color: #0a6b2b; }
.lg-tbl small { display: block; color: #5b6b60; font-size: 11.5px; }
.lg-tbl .t { text-align: right; font-weight: 600; } .lg-tbl .q { text-align: right; } .lg-tbl .dt { color: #5b6b60; }
.lg-st { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; margin-right: 5px; }
.lg-st.new { background: rgba(242,182,50,.25); } .lg-st.cont { background: #e3f2fa; color: #12608a; } .lg-st.won { background: #e4f0e3; color: #07521f; } .lg-st.lost { background: #eef1ea; color: #5b6b60; }
.lg-st.erp { background: #dbeafe; color: #1e40af; } .lg-st.paid { background: #dcfce7; color: #166534; }
