/* =========================================================
   HR WebLab — main stylesheet
   Tokens → base → layout → components → pages → motion
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --green: #00cc77;
  --green-600: #00b368;
  --green-soft: rgba(0, 204, 119, .12);
  --ink: #212121;

  --bg: #f5f6f3;
  --bg-2: #eceee9;
  --surface: #ffffff;
  --text: #161717;
  --muted: #5e635f;
  --line: rgba(20, 22, 21, .1);
  --logo-ink: #212121;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12);

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1600px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d0e0e;
  --bg-2: #141615;
  --surface: #181a19;
  --text: #f1f3f1;
  --muted: #9aa19c;
  --line: rgba(255, 255, 255, .09);
  --logo-ink: #ffffff;
  --green-soft: rgba(0, 204, 119, .14);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--green); color: #0b0b0b; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #0b0b0b; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--tight { padding: calc(var(--section) * .6) 0; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .92rem; font-weight: 700; letter-spacing: 0;
  color: var(--text); margin-bottom: 18px;
}
.eb-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent);
}
.eb-ico svg { width: 18px; height: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); flex-wrap: wrap; }
.section-head h2 { max-width: 16ch; margin: 0; }
.section-head p { max-width: 42ch; color: var(--muted); margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.text-green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--text); --fg-btn: var(--bg);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  background: var(--bg-btn); color: var(--fg-btn);
  font-weight: 600; font-size: .98rem; line-height: 1;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green);
  transform: translateX(-101%) skewX(-20deg); transform-origin: left;
  transition: transform .45s var(--ease);
  width: 130%; left: -15%;
}
.btn:hover::before { transform: translateX(0) skewX(-20deg); }
.btn:hover { color: #0b0b0b; }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px) rotate(-45deg); }
.btn--green { --bg-btn: var(--green); --fg-btn: #0b0b0b; }
.btn--green::before { background: var(--text); }
.btn--green:hover { color: var(--bg); }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-arrow span { border-bottom: 1.5px solid currentColor; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }
.logo-d { display: none; }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
.logo-a { fill: var(--logo-ink); transition: fill .35s; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--green-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 12px 20px; }

/* Theme switch: system / light / dark */
.theme-switch {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.theme-switch button {
  width: 32px; height: 32px; border-radius: 999px; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--muted); transition: background-color .25s, color .25s;
}
.theme-switch button svg { width: 16px; height: 16px; }
.theme-switch button[aria-pressed="true"] { background: var(--green); color: #0b0b0b; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 420px) {
  .brand img { height: 48px; }
  .theme-switch button { width: 30px; height: 30px; }
  .nav-actions { gap: 6px; }
}
@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav-actions .btn, .nav-main { display: none; }
}

/* Mobile drawer (side bar) */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s .45s; }
.menu-open .drawer { visibility: visible; transition: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .4s; }
.menu-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 88vw);
  background: var(--bg); color: var(--text); box-shadow: -20px 0 60px rgba(0,0,0,.25);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 22px 28px; transform: translateX(100%); transition: transform .45s var(--ease);
}
.menu-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.drawer-head .brand img { height: 50px; }
.drawer-close { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-links { list-style: none; margin: 8px 0 24px; padding: 0; }
.drawer-links a { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.drawer-links a svg { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.drawer-links a:hover svg, .drawer-links a[aria-current="page"] svg { color: var(--green); transform: rotate(-45deg); }
.drawer-links a[aria-current="page"] { color: var(--green); }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.btn--block { width: 100%; justify-content: center; }
.drawer-contact { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; padding: 6px 0; overflow-wrap: anywhere; }
.drawer-contact svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.drawer-foot .socials { margin-top: 6px; }
@media (min-width: 1021px) { .drawer { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 160px 0 90px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-art { margin-right: calc(var(--pad) * -.5); }
.hero h1 { margin-bottom: 28px; }
.hero h1 .rotator { display: inline-grid; color: var(--green); vertical-align: bottom; }
.hero h1 .rotator > span { grid-area: 1 / 1; justify-self: start; opacity: 0; transform: translateY(40%); transition: opacity .5s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.hero h1 .rotator > span.is-active { opacity: 1; transform: none; }
.hero h1 .rotator > span.is-leaving { opacity: 0; transform: translateY(-40%); }
.hero .lead { margin-bottom: 36px; }
.hero-art { position: relative; }
.hero-illo { width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.il-blob { fill: var(--green-soft); }
.il-surface { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.il-bar, .il-tile { fill: var(--bg-2); }
.il-field { fill: var(--bg); }
.il-ink { fill: var(--text); }
.il-muted { fill: var(--muted); opacity: .55; }
.il-stroke { stroke: var(--text); }
.il-btn-text { fill: var(--bg); }
.hero-illo .fl { animation: float 7s ease-in-out infinite; }
.hero-illo .fl2 { animation-duration: 8s; animation-delay: -2s; }
.hero-illo .fl3 { animation-duration: 6s; animation-delay: -1s; }
.hero-illo .fl4 { animation-duration: 6.5s; animation-delay: -3s; }
.hero-illo .fl5 { animation-duration: 7.5s; animation-delay: -4s; }
.hero-illo .fl6 { animation-duration: 5.5s; animation-delay: -1.5s; }
.hero-illo .pulse { animation: pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.hero-meta { display: flex; gap: 28px; margin-top: 56px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-meta strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, var(--green-soft), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, var(--green-soft), transparent 70%);
}
@media (max-width: 900px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin: 10px auto 0; }
  .hero-meta { gap: 18px 28px; margin-top: 40px; }
}
@media (max-width: 600px) {
  .hero { padding-bottom: 56px; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: .82rem; margin-top: 32px; }
  .hero-meta strong { font-size: .95rem; }
  .hero-meta > div:nth-child(2) { order: 3; grid-column: span 2; }
}

/* Page hero (inner pages) */
.page-hero { padding: 160px 0 70px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; }
.page-hero .stripes-deco { position: absolute; right: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); top: 130px; width: min(300px, 26vw); opacity: .95; z-index: -1; }
@media (max-width: 760px) { .page-hero .stripes-deco { opacity: .12; width: 60vw; right: -10vw; top: 100px; } }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 22px; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a:hover { color: var(--green); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.mq-ico { width: clamp(42px, 4.4vw, 54px); height: clamp(42px, 4.4vw, 54px); border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.mq-ico svg { width: 60%; height: 60%; }
.marquee-item::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: 32px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card::before { /* cursor glow */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--green-soft), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 45%, transparent), var(--shadow); }

.service-card { display: flex; flex-direction: column; min-height: 300px; }
.service-card .num { font-family: var(--font-display); font-size: .85rem; color: var(--muted); }
.service-card .icon { width: 52px; height: 52px; margin: 22px 0 26px; color: var(--green); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.service-card .go {
  align-self: flex-start; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .3s, transform .4s var(--ease), box-shadow .3s;
}
.service-card .go svg { width: 16px; height: 16px; }
.service-card:hover .go { background: var(--green); color: #0b0b0b; box-shadow: none; transform: rotate(-45deg); }
.service-card--feature { grid-row: span 2; background: var(--ink); color: #f1f3f1; box-shadow: none; }
.service-card--feature p, .service-card--feature .num { color: #a9b0ab; }
.service-card--feature .go { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
.service-card--cta { background: var(--green-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent); justify-content: flex-end; }
.service-card--cta .num { font-size: 2rem; color: var(--green); margin-bottom: auto; line-height: 1; }
.service-card--cta .btn { align-self: flex-start; margin-top: 6px; }
.service-card--wide { grid-column: span 2; min-height: 0; }
@media (max-width: 960px) { .service-card--wide { grid-column: span 2; } }
@media (max-width: 640px) { .service-card--wide { grid-column: auto; } .service-card--feature { grid-row: auto; } }
.feature-tags { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags li { font-size: .82rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #d9ddda; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Project cards ---------- */
.project-card { display: block; position: relative; }
.project-card .thumb { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 11; box-shadow: inset 0 0 0 1px var(--line); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .thumb img { transform: scale(1.045); }
.project-card .meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-top: 18px; }
.project-card h3 { margin-bottom: 4px; }
.project-card .tags { color: var(--muted); font-size: .92rem; }
.project-card .go { flex: none; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, transform .4s var(--ease); }
.project-card .go svg { width: 16px; height: 16px; }
.project-card:hover .go { background: var(--green); color: #0b0b0b; transform: rotate(-45deg); }
.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
.projects-grid > :first-child { grid-column: span 2; }
.projects-grid > :first-child .thumb { aspect-ratio: 21 / 9; }
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid > :first-child { grid-column: auto; }
  .projects-grid > :first-child .thumb { aspect-ratio: 16 / 11; }
}

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.process li { list-style: none; padding: 28px 24px 8px 0; position: relative; }
.process li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--green); margin-bottom: 10px;
}
.process li::after { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--green); transition: width 1s var(--ease); }
.process li.is-in::after { width: 70%; }
.process h3 { font-size: 1.2rem; }
.process p { color: var(--muted); font-size: .96rem; }
.process { padding: 0; margin: 0; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 6px; background: var(--green)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.value-card .icon { width: 40px; height: 40px; color: var(--green); margin-bottom: 18px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: 9px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; font-weight: 500; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .tag { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-card h3 { margin: 10px 0 14px; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; line-height: 1; margin: 6px 0 4px; letter-spacing: -.03em; }
.price small { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-from { font-size: .85rem; color: var(--muted); }
.price-card ul { margin: 22px 0 28px; flex: 1; }
.price-card .check-list { gap: 10px; font-size: .95rem; }
.price-card--hot { background: var(--ink); color: #f1f3f1; box-shadow: none; }
.price-card--hot .tag, .price-card--hot .price small, .price-card--hot .price-from { color: #a9b0ab; }
.price-card--hot .badge { position: absolute; top: 22px; right: 22px; background: var(--green); color: #0b0b0b; font-size: .75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.price-card--hot .btn--ghost { --fg-btn: #f1f3f1; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }

.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 40px; }
.tabs button { border: 0; background: transparent; padding: 11px 22px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: background-color .3s, color .3s; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 50%, transparent); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 999px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300cc77' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #0b0b0b; border-radius: calc(var(--radius) * 1.4); padding: clamp(40px, 7vw, 90px); position: relative; overflow: hidden; isolation: isolate; }
.cta-band h2 { max-width: 14ch; font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
.cta-band p { max-width: 46ch; font-size: 1.1rem; margin-bottom: 30px; }
.cta-band .btn { --bg-btn: #0b0b0b; --fg-btn: #fff; }
.cta-band .btn::before { background: #fff; }
.cta-band .btn:hover { color: #0b0b0b; }
.cta-band .btn--ghost { --bg-btn: transparent; --fg-btn: #0b0b0b; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.35); }
.cta-band .deco { position: absolute; right: -40px; bottom: -50px; width: min(420px, 48%); z-index: -1; opacity: .12; filter: brightness(0); }

/* ---------- Case study ---------- */
.cs-cover { border-radius: calc(var(--radius) * 1.2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 16 / 8; background: var(--bg-2); }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); margin-bottom: 64px; }
.cs-facts dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cs-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .cs-facts { grid-template-columns: 1fr 1fr; } }
.cs-block { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.cs-block h2 { font-size: 1.6rem; }
.cs-block p { color: var(--muted); }
@media (max-width: 760px) { .cs-block { grid-template-columns: 1fr; gap: 12px; } }
.next-project { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 48px 0; border-top: 1px solid var(--line); }
.next-project span { color: var(--muted); font-size: .9rem; }
.next-project strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); }
.next-project:hover strong { color: var(--green); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 4px; }
.contact-list a, .contact-list div { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a:hover strong { color: var(--green); }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: var(--radius-sm); border: 0;
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { margin: 0; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-weight: 500; transition: background-color .2s, color .2s, box-shadow .2s; }
.chips input:checked + label { background: var(--green); color: #0b0b0b; box-shadow: none; }
.chips input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-error { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(230, 57, 70, .12); color: #e63946; font-weight: 500; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--green); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9ddda; padding: 90px 0 30px; position: relative; overflow: hidden; }
.site-footer .logo-a { fill: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #8f9792; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--green); }
.footer-brand p { color: #9aa19c; max-width: 32ch; margin-top: 18px; }
.footer-logo img { height: 92px; width: auto; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, color .25s, box-shadow .25s; }
.site-footer .socials a { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.socials a:hover { box-shadow: none; }
.socials a:hover { background: var(--green); color: #0b0b0b; }
.socials svg { width: 17px; height: 17px; }
.footer-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.6rem, 15vw, 13rem); line-height: .85; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); margin: 50px 0 30px; white-space: nowrap; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #8f9792; }
.footer-bottom nav { display: flex; gap: 20px; }

/* WhatsApp chat widget */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-panel {
  width: min(350px, calc(100vw - 32px)); border-radius: 20px; overflow: hidden; background: var(--surface);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.35), inset 0 0 0 1px var(--line);
  transform-origin: bottom right; animation: waIn .35s var(--ease);
}
.wa-panel[hidden] { display: none; }
@keyframes waIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #075e54; color: #fff; }
.wa-head img { width: 40px; height: 40px; border-radius: 50%; background: #212121; }
.wa-head strong { display: block; font-size: 1rem; }
.wa-head span { font-size: .8rem; opacity: .8; }
.wa-head div { flex: 1; }
.wa-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.wa-close svg { width: 16px; height: 16px; }
.wa-body {
  padding: 18px 14px; min-height: 170px; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  background: #e5ddd5 radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 16px 16px;
}
:root[data-theme="dark"] .wa-body { background-color: #0b141a; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); }
.wa-msg, .wa-me { max-width: 85%; padding: 9px 12px 6px; border-radius: 10px; font-size: .95rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.1); white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-msg { align-self: flex-start; background: #fff; color: #111; border-top-left-radius: 2px; }
.wa-me { align-self: flex-end; background: #d9fdd3; color: #111; border-top-right-radius: 2px; }
:root[data-theme="dark"] .wa-msg { background: #202c33; color: #e9edef; }
:root[data-theme="dark"] .wa-me { background: #005c4b; color: #e9edef; }
.wa-msg small, .wa-me small { display: block; text-align: right; font-size: .7rem; opacity: .55; margin-top: 2px; }
.wa-form { display: flex; gap: 8px; padding: 10px; background: var(--surface); border-top: 1px solid var(--line); }
.wa-form textarea { flex: 1; resize: none; border: 0; border-radius: 22px; padding: 11px 16px; font: inherit; font-size: 16px; line-height: 1.3; max-height: 110px; background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.wa-form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green); }
.wa-form button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; align-self: flex-end; }
.wa-form button svg { width: 20px; height: 20px; }
.wa-note { margin: 0; padding: 0 14px 10px; font-size: .75rem; color: var(--muted); background: var(--surface); text-align: center; }
.wa-teaser { display: flex; align-items: center; gap: 4px; background: var(--surface); color: var(--text); border-radius: 16px 16px 4px 16px; padding: 6px 6px 6px 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.3), inset 0 0 0 1px var(--line); animation: waIn .4s var(--ease); }
.wa-teaser[hidden] { display: none; }
.wa-teaser-open { border: 0; background: none; font-weight: 600; font-size: .92rem; padding: 4px 0; }
.wa-teaser-x { border: 0; background: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); }
.wa-teaser-x svg { width: 14px; height: 14px; }
.wa-float { position: relative; width: 56px; height: 56px; border-radius: 999px; background: var(--green); color: #0b0b0b; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,204,119,.6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float { background: #25d366; color: #fff; border: 0; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); }
.thanks-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.brand--lg img { height: 120px; }
.wa-float svg { width: 26px; height: 26px; }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 0 40px; }
.notfound .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 16rem); line-height: .9; color: var(--green); letter-spacing: -.05em; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.draw-stripe { animation: stripeIn 1.2s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes stripeIn { from { opacity: 0; transform: translate(-30px, 40px); } to { opacity: 1; transform: none; } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
