/* Codebeck — main stylesheet. Visual language aligned with viqsa.com (VIQSA Solution LLP):
   Inter type, VIQSA orange/brown palette, cream surfaces, centered section headings. No framework. */

:root {
  --ink: #121212;
  --ink-2: rgba(18, 18, 18, .9);
  --muted: rgba(18, 18, 18, .7);
  --line: #ece6de;
  --line-2: #ddd3c6;
  --bg: #ffffff;
  --bg-soft: #fff9f2;
  --cream: #f5ebde;
  --bg-dark: #1f1f1f;
  --bg-dark-2: #2a2a2a;
  --brand: #c17619;
  --brand-light: #d7923c;
  --orange-light: #f8b05e;
  --accent: #8d4b00;          /* text links, eyebrows — AA contrast on white */
  --accent-ink: #6f3b00;
  --accent-soft: rgba(248, 176, 94, .14);
  --tag-border: rgba(215, 146, 60, .28);
  --gradient: linear-gradient(180deg, #c17619 0%, #8d4b00 100%);
  --gradient-hover: linear-gradient(180deg, #a86514 0%, #6f3b00 100%);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(18, 18, 18, .04), 0 8px 24px rgba(141, 75, 0, .08);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.75; color: var(--ink-2); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 600; line-height: 1.25; letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 500; line-height: 1.25; letter-spacing: .02em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code { font-family: var(--mono); font-size: .9em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding: clamp(28px, 3.5vw, 44px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: rgba(255, 255, 255, .72); }
.section-dark h2, .section-dark h3 { color: #fff; }

/* Section headings — centered, VIQSA style: orange uppercase eyebrow over a medium-weight title */
.section-head { max-width: 780px; margin: 0 auto 24px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }
.section-head .eyebrow { color: var(--accent); font-size: clamp(.95rem, 1.4vw, 1.2rem); }
.section-dark .section-head .eyebrow { color: var(--orange-light); }
.eyebrow { font-size: clamp(.95rem, 1.4vw, 1.2rem); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; line-height: 1.4; }
.section-dark .eyebrow { color: var(--orange-light); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 780px; line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; line-height: 1.2; font-family: inherit; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 16px rgba(141, 75, 0, .22); }
.btn-primary:hover { background: var(--gradient-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--brand-light); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--accent-ink); border-color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: var(--orange-light); color: var(--orange-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 12px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .95rem; letter-spacing: .01em; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); background: var(--bg-soft); }
.menu-btn::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.menu-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.has-menu { position: relative; }
.menu { display: none; position: absolute; top: calc(100% + 12px); left: -12px; width: min(760px, 90vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(18, 18, 18, .12); padding: 12px; }
.menu-narrow { width: 380px; }
.menu-btn[aria-expanded="true"] + .menu { display: block; }
.menu-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-grid-1 { grid-template-columns: 1fr; }
.menu-grid a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); line-height: 1.4; }
.menu-grid a:hover, .menu-grid a[aria-current="page"] { background: var(--bg-soft); }
.menu-grid strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 600; }
.menu-grid span { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.menu-all { display: block; margin-top: 6px; padding: 10px 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: .92rem; text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: 0 20px 40px rgba(18, 18, 18, .1); }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link:hover, .nav-link[aria-current="page"] { background: none; }
  .menu { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 8px; }
  .menu-narrow { width: auto; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-grid span { display: none; }
  .nav-cta { margin-top: 16px; }
}

/* Hero (inner pages) */
.page-hero { padding: clamp(24px, 3.5vw, 44px) 0 clamp(20px, 3vw, 36px); background: radial-gradient(900px 360px at 90% -20%, rgba(248, 176, 94, .22), transparent 70%), linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 920px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* Home hero */
.home-hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(24px, 3vw, 40px); background: radial-gradient(1100px 460px at 88% -10%, rgba(248, 176, 94, .26), transparent 70%), linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.home-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero-legal { margin-top: 16px; font-size: .92rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.hero-legal svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
@media (max-width: 900px) { .home-hero-grid { grid-template-columns: 1fr; } }

/* Code panel visual */
.code-panel { background: #181818; color: #e6e1da; border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(18, 18, 18, .22); overflow: hidden; font-family: var(--mono); font-size: .88rem; line-height: 1.75; border: 1px solid #2c2c2c; }
.code-panel-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #222; border-bottom: 1px solid #2c2c2c; color: #9a938a; font-size: .8rem; }
.code-panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; display: inline-block; }
.code-panel-bar i:first-child { background: var(--brand-light); }
.code-panel-bar span { margin-left: 8px; }
.code-panel pre { margin: 0; padding: 18px 20px 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
.tk-k { color: var(--orange-light); } .tk-s { color: #f1ddc2; } .tk-c { color: #8a8379; } .tk-p { color: #e6e1da; }

/* Answer strip */
.answer-strip { background: var(--bg-dark); color: rgba(255, 255, 255, .8); padding: 16px 0; }
.answer-strip p { margin: 0; font-size: clamp(1.02rem, 1.7vw, 1.2rem); max-width: 1000px; line-height: 1.6; }
.answer-strip strong { color: var(--orange-light); font-weight: 600; }

/* Chips (tag style) */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.chips li { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--tag-border); color: var(--accent); line-height: 1.6; }
.section-dark .chips li { background: rgba(248, 176, 94, .1); border-color: rgba(248, 176, 94, .25); color: var(--orange-light); }

/* Cards */
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; box-shadow: 0 1px 2px rgba(18, 18, 18, .03); }
.section-soft .card { border-color: #efe3d3; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; line-height: 1.7; }
.card ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .96rem; }
.card li { margin-bottom: 4px; }
.card-link { padding: 0; transition: border-color .15s, box-shadow .15s; }
.card-link a { display: block; padding: 26px 26px 50px; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { border-color: var(--brand-light); box-shadow: var(--shadow); }
.card-link .arrow { position: absolute; left: 26px; bottom: 20px; color: var(--brand); font-weight: 700; }
.card-link h3 { color: var(--ink); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gradient); color: #fff; display: grid; place-items: center; margin-bottom: 18px; font-weight: 700; font-size: .92rem; box-shadow: 0 6px 14px rgba(141, 75, 0, .2); }
.card-icon svg { width: 22px; height: 22px; }
.card-tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--tag-border); padding: 2px 9px; border-radius: 999px; margin-bottom: 12px; }
.card-feature { border-color: var(--line-2); box-shadow: var(--shadow); }
.section-dark .card { background: var(--bg-dark-2); border-color: #363636; }
.section-dark .card p, .section-dark .card ul { color: rgba(255, 255, 255, .7); }

/* Split feature blocks (left-aligned headings, as on viqsa.com) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-reverse > :first-child { order: 0; } }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 10px; line-height: 1.6; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2.5 10.5 6 14l7.5-8' fill='none' stroke='%23c17619' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.5 10.5 12 14l7.5-8' fill='none' stroke='%23d7923c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' opacity='.6'/%3E%3C/svg%3E") center/20px no-repeat; }
.section-dark .check-list li::before { filter: brightness(1.3); }
.stack-box { background: var(--bg-soft); border: 1px solid #efe3d3; border-radius: var(--radius-lg); padding: 26px; }
.section-soft .stack-box { background: #fff; }
.stack-box h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 18px 0 8px; }
.stack-box h3:first-child { margin-top: 0; }
.stack-box .chips { margin-top: 0; }
.section-dark .stack-box { background: var(--bg-dark-2); border-color: #363636; }
.section-dark .stack-box h3 { color: var(--orange-light); }

/* Tech matrix */
.tech-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #efe3d3; border-radius: var(--radius-lg); overflow: hidden; background: #efe3d3; gap: 1px; }
.tech-matrix > div { background: #fff; padding: 22px; }
.tech-matrix h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--gradient); display: inline-block; padding: 3px 10px; border-radius: 6px; margin-bottom: 14px; }
.tech-matrix ul { list-style: none; margin: 0; padding: 0; }
.tech-matrix li { padding: 3px 0; color: var(--ink); font-weight: 500; font-size: .97rem; }
@media (max-width: 900px) { .tech-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tech-matrix { grid-template-columns: 1fr; } }

/* Steps — round numbered badges, as in the viqsa.com roadmap */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps li { counter-increment: step; text-align: center; position: relative; }
.steps li::before { content: "0" counter(step); display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 600; font-size: 1.15rem; box-shadow: 0 0 0 6px rgba(248, 176, 94, .18), 0 8px 18px rgba(141, 75, 0, .22); position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 30px; left: calc(50% + 40px); right: calc(-50% + 26px); height: 1px; background: var(--line-2); }
.steps h3 { font-size: 1.05rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.65; }
.section-dark .steps p { color: rgba(255, 255, 255, .7); }
.steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps-2 li:nth-child(2n)::after { display: none; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:nth-child(2n)::after { display: none; } }
@media (max-width: 560px) { .steps, .steps-2 { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* Diagram */
.diagram { background: #fff; border: 1px solid #efe3d3; border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); }
.diagram figcaption { font-size: .9rem; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.diagram svg { width: 100%; height: auto; font-family: var(--font); }
.diagram .d-box { fill: #fff; stroke: var(--line-2); stroke-width: 1.5; }
.diagram .d-box-accent { fill: #fff4e6; stroke: var(--brand); stroke-width: 1.5; }
.diagram .d-box-teal { fill: var(--cream); stroke: var(--brand-light); stroke-width: 1.5; }
.diagram .d-box-dark { fill: var(--bg-dark); stroke: var(--bg-dark); }
.diagram .d-t { fill: var(--ink); font-size: 14px; font-weight: 600; }
.diagram .d-s { fill: rgba(18, 18, 18, .65); font-size: 12px; }
.diagram .d-tw { fill: #fff; font-size: 14px; font-weight: 600; }
.diagram .d-sw { fill: #c9c2b8; font-size: 12px; }
.diagram .d-line { stroke: var(--line-2); stroke-width: 1.6; fill: none; }
.diagram .d-arrow { stroke: var(--brand); stroke-width: 1.6; fill: none; marker-end: url(#arrow); }
.diagram .d-label { fill: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .06em; }

/* Prose */
.prose { max-width: 800px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid #efe3d3; border-radius: var(--radius-lg); background: #fff; }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .96rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.compare thead th { background: var(--cream); color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.compare tbody th { color: var(--ink); font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }

/* Callouts */
.callout { border: 1px solid var(--tag-border); border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: var(--radius); padding: 20px 22px; }
.callout p:last-child { margin-bottom: 0; }
.legal-box { display: flex; gap: 16px; align-items: flex-start; border: 1px solid #efe3d3; border-radius: var(--radius-lg); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.legal-box svg { width: 28px; height: 28px; flex: none; color: var(--brand); }
.legal-box p { margin: 0; }

/* FAQ — rounded rows, as on viqsa.com */
.faq { counter-reset: faq; display: grid; gap: 12px; }
.faq details { counter-increment: faq; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(18, 18, 18, .04); }
.faq details[open] { border-color: var(--tag-border); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 64px; font-weight: 600; color: var(--ink); position: relative; font-size: 1rem; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "0" counter(faq); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--tag-border); color: var(--accent); font-size: .8rem; font-weight: 600; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 22px 18px 64px; color: var(--muted); line-height: 1.7; }
.faq-a p { margin: 0; }
#faq-title { text-align: center; margin-bottom: 16px; }

/* CTA band — cream card, as on viqsa.com */
.cta-band { padding: clamp(20px, 3vw, 32px) 0; background: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; background: var(--cream); border: 1px solid var(--tag-border); border-radius: 20px; padding: clamp(24px, 4vw, 44px); max-width: calc(var(--container) - 2 * var(--gutter)); }
@media (max-width: 1240px) { .cta-inner { max-width: none; margin: 0 var(--gutter); width: auto; } }
.cta-band h2 { color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.cta-band p { margin: 0; max-width: 640px; color: var(--muted); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-light { background: var(--gradient); color: #fff; box-shadow: 0 6px 16px rgba(141, 75, 0, .22); }
.cta-band .btn-light:hover { background: var(--gradient-hover); }
.cta-band .btn-outline-light { color: var(--accent); border-color: var(--accent); background: transparent; }
.cta-band .btn-outline-light:hover { background: #fff; }

/* Footer — dark with rounded top, as on viqsa.com */
.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .7); padding: 36px 0 18px; font-size: .94rem; border-radius: 28px 28px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr .8fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--orange-light); }
.logo-footer { color: #fff; margin-bottom: 14px; }
.logo-footer:hover { color: #fff !important; }
.logo-footer .logo-mark { color: var(--brand-light); }
.footer-brand p { max-width: 340px; line-height: 1.7; }
.footer-h { color: #fff; font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: .86rem; }
.footer-legal p { margin: 0; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.form legend { font-weight: 600; color: var(--accent); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; padding: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.field .req { color: #b42318; }
.field .hint { font-size: .84rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 11px 12px; min-height: 48px; width: 100%; line-height: 1.4; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(248, 176, 94, .25); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: .85rem; margin-top: 5px; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form-consent { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; line-height: 1.6; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #fff4e6; color: #6f3b00; border: 1px solid var(--tag-border); }
.form-status.is-err { background: #fdecea; color: #8a1c12; border: 1px solid #f5c2bc; }
.contact-aside .card + .card { margin-top: 20px; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-weight: 600; color: var(--ink); font-size: .9rem; margin-top: 12px; }
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: 2px 0 0; color: var(--muted); }

/* Case studies */
.case { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 16px 0; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 20px; margin: 16px 0 0; font-size: .96rem; }
.case dt { font-weight: 600; color: var(--ink); }
.case dd { margin: 0; color: var(--muted); }
.placeholder-note { display: inline-block; font-size: .78rem; font-weight: 600; background: #fff7e6; color: #8a5a00; border: 1px solid #f3dca8; padding: 3px 8px; border-radius: 6px; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; gap: 8px; } .case dl { grid-template-columns: 1fr; gap: 2px; } .case dd { margin-bottom: 10px; } }

/* Utility */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.audience { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.audience li { border: 1px solid var(--tag-border); border-radius: 999px; padding: 7px 16px; font-weight: 500; color: var(--accent); background: #fff; font-size: .94rem; }
.error-page { padding: 60px 0; text-align: center; }
.error-page .btn-row { justify-content: center; }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; flex: none; }
.card-icon .icon { width: 24px; height: 24px; }
.card-icon-soft { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--brand); border: 1px solid var(--tag-border); box-shadow: none; margin-bottom: 16px; }
.section-dark .card-icon-soft { background: rgba(248, 176, 94, .1); color: var(--orange-light); }
.menu-grid a { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: start; }
.menu-grid a strong, .menu-grid a span { grid-column: 2; }
.menu-icon { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--accent-soft); color: var(--brand); }
@media (max-width: 1020px) { .menu-grid a { grid-template-columns: 30px 1fr; align-items: center; } .menu-icon { width: 30px; height: 30px; padding: 6px; grid-row: auto; } }

/* ---------- Service hero illustration ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
.hero-media { margin: 0; }
.hero-media img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 60px rgba(18, 18, 18, .16); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin-left: auto; }
.orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed rgba(193, 118, 25, .35); }
.orbit-2 { inset: 20%; border-style: solid; border-color: rgba(248, 176, 94, .35); background: radial-gradient(circle, rgba(248, 176, 94, .18), transparent 70%); }
.hero-art-card { position: absolute; left: 50%; top: 50%; width: 52%; transform: translate(-50%, -50%); background: #fff; border: 1px solid #efe3d3; border-radius: 18px; box-shadow: 0 24px 50px rgba(141, 75, 0, .16); padding: 14px 16px 18px; }
.hero-art-bar { display: flex; gap: 5px; margin-bottom: 14px; }
.hero-art-bar i { width: 8px; height: 8px; border-radius: 50%; background: #eadfd1; }
.hero-art-bar i:first-child { background: var(--brand-light); }
.hero-art-core { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 18px; background: var(--gradient); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(141, 75, 0, .3); }
.hero-art-core .icon { width: 34px; height: 34px; }
.hero-art-lines span { display: block; height: 7px; border-radius: 4px; background: #f3eadf; margin-top: 7px; }
.hero-art-lines span:nth-child(1) { width: 90%; } .hero-art-lines span:nth-child(2) { width: 70%; } .hero-art-lines span:nth-child(3) { width: 80%; background: rgba(248, 176, 94, .35); }
.float-chip { position: absolute; font-size: .8rem; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid var(--tag-border); border-radius: 999px; padding: 6px 14px; box-shadow: 0 10px 24px rgba(141, 75, 0, .12); white-space: nowrap; }
.fc-1 { top: 8%; left: 4%; } .fc-2 { top: 20%; right: 0; } .fc-3 { bottom: 16%; left: 0; } .fc-4 { bottom: 5%; right: 8%; }

/* ---------- Animation ---------- */
:root { --ease-out-expo: cubic-bezier(.16, 1, .3, 1); }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* Hero entrance (runs without JS) */
.page-hero .hero-text > *, .home-hero-grid > div:first-child > * { animation: fade-up .9s var(--ease-out-expo) both; }
.page-hero .hero-text > :nth-child(2), .home-hero-grid > div:first-child > :nth-child(2) { animation-delay: .08s; }
.page-hero .hero-text > :nth-child(3), .home-hero-grid > div:first-child > :nth-child(3) { animation-delay: .16s; }
.page-hero .hero-text > :nth-child(4), .home-hero-grid > div:first-child > :nth-child(4) { animation-delay: .24s; }
.page-hero .hero-text > :nth-child(5), .home-hero-grid > div:first-child > :nth-child(5) { animation-delay: .32s; }
.page-hero .hero-text > :nth-child(n+6) { animation-delay: .4s; }
.page-hero:not(.has-art) .container > * { animation: fade-up .9s var(--ease-out-expo) both; }
.home-hero .code-panel { animation: fade-up 1s .25s var(--ease-out-expo) both; }
.code-panel pre::after { content: ""; display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--orange-light); animation: blink 1.1s steps(1) infinite; }
.hero-art { animation: fade-in 1s .2s both; }
.hero-art-card { animation: pop 1s .35s var(--ease-out-expo) both; }
.orbit-1 { animation: spin 60s linear infinite; }
.float-chip { animation: fade-in .8s both, float 6s ease-in-out infinite; }
.fc-1 { animation-delay: .5s, .5s; } .fc-2 { animation-delay: .65s, 1.6s; } .fc-3 { animation-delay: .8s, 2.4s; } .fc-4 { animation-delay: .95s, 3.2s; }
.hero-art-lines span:nth-child(3) { background: linear-gradient(90deg, rgba(248, 176, 94, .25), rgba(248, 176, 94, .7), rgba(248, 176, 94, .25)); background-size: 200% 100%; animation: shimmer 2.8s linear infinite; }

/* Scroll reveal (enabled by main.js, so content stays visible if JS fails) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="zoom"] { transform: scale(.96); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .steps li[data-reveal]::before { transform: scale(.6); transition: transform .7s var(--ease-out-expo) var(--reveal-delay, 0ms); }
.js .steps li[data-reveal].is-visible::before { transform: scale(1); }

/* Hover micro-interactions */
.btn { transition: background .15s, border-color .15s, color .15s, box-shadow .2s, transform .2s var(--ease-out-expo); }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(141, 75, 0, .3); }
.card { transition: border-color .2s, box-shadow .3s, transform .35s var(--ease-out-expo); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-icon { transition: transform .35s var(--ease-out-expo); }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-link .arrow { transition: transform .25s var(--ease-out-expo); }
.card-link:hover .arrow { transform: translateX(6px); }
.chips li { transition: background .2s, color .2s; }
.chips li:hover { background: var(--gradient); color: #fff; }
.tech-matrix > div { transition: background .25s; }
.tech-matrix > div:hover { background: var(--bg-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .card:hover .card-icon { transform: none; }
}
.js .card[data-reveal].is-visible:hover { transform: translateY(-4px); }

/* ---------- Photos ---------- */
/* Home banner: full photo with dark overlay (viqsa.com style rounded banner) */
.home-banner { padding: 16px 0 clamp(24px, 3vw, 40px); background: #fff; border-bottom: 0; }
.home-banner > .container { max-width: 1400px; padding: 0 16px; }
.banner { position: relative; border-radius: 28px; overflow: hidden; background: #111; isolation: isolate; }
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: banner-zoom 18s ease-out both; }
.banner-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18, 18, 18, .92) 0%, rgba(18, 18, 18, .78) 45%, rgba(31, 20, 8, .55) 100%), radial-gradient(700px 400px at 90% 110%, rgba(193, 118, 25, .45), transparent 70%); }
@keyframes banner-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.banner-grid { padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 64px); }
.banner h1 { color: #fff; }
.banner .eyebrow { color: var(--orange-light); }
.banner .lead { color: rgba(255, 255, 255, .82); }
.banner .hero-legal { color: rgba(255, 255, 255, .72); }
.banner .hero-legal svg { color: var(--orange-light); }
.banner .code-panel { background: rgba(20, 20, 20, .82); backdrop-filter: blur(6px); border-color: rgba(255, 255, 255, .12); }

/* Inner-page hero photo with floating badge */
.hero-photo { position: relative; margin: 0; animation: fade-in 1s .15s both; }
.hero-photo-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(18, 18, 18, .18); }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(180deg, transparent 55%, rgba(18, 18, 18, .35)); pointer-events: none; }
.hero-badge { position: absolute; left: -22px; bottom: 26px; z-index: 2; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #efe3d3; border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: 0 18px 40px rgba(141, 75, 0, .18); animation: fade-up .9s .45s var(--ease-out-expo) both, float 7s 1.4s ease-in-out infinite; max-width: 80%; }
.hero-badge-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient); color: #fff; display: grid; place-items: center; flex: none; }
.hero-badge strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.hero-badge small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.hero-photo .float-chip { z-index: 2; }
.pc-1 { top: 18px; right: -14px; } .pc-2 { top: 42%; right: -22px; } .pc-3 { top: -14px; left: 28px; }
.pc-1 { animation-delay: .6s, .6s; } .pc-2 { animation-delay: .75s, 1.8s; } .pc-3 { animation-delay: .9s, 2.6s; }
@media (max-width: 900px) {
  .hero-photo { max-width: 560px; }
  .hero-badge { left: 12px; bottom: 12px; }
  .pc-1, .pc-2 { right: 8px; } .pc-3 { left: 12px; top: 12px; }
}

/* Card thumbnails */
.card-link.has-media a { padding-top: 0; }
.card-media { margin: 0 -26px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 15px 15px 0 0; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out-expo); }
.card-link:hover .card-media img { transform: scale(1.06); }
.card-icon-float { position: relative; margin-top: -24px; border: 3px solid #fff; box-sizing: content-box; }

/* Section photos */
.section-photo { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.section-photo img { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; transition: transform .8s var(--ease-out-expo); }
.section-photo:hover img { transform: scale(1.04); }
.media-stack { display: grid; gap: 18px; }
.media-stack .section-photo img { aspect-ratio: 16 / 8; }
.section-photo-bg { position: relative; isolation: isolate; overflow: hidden; }
.section-photo-bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.section-photo-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31, 31, 31, .97) 35%, rgba(31, 31, 31, .75)); }
.case-photo { margin: 0 0 12px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.case-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.case { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .banner-bg { transform: none; } }

/* ---------- Case studies (projects) ---------- */
.project-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; }
.filter-btn { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--tag-border); background: #fff; color: var(--accent); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.filter-btn:hover { background: var(--bg-soft); }
.filter-btn[aria-pressed="true"] { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(141, 75, 0, .22); }
.projects { display: grid; gap: 28px; }
.project { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 1px 2px rgba(18, 18, 18, .03); scroll-margin-top: 90px; }
.project:nth-child(even) .project-media { order: 2; }
.project[hidden] { display: none; }
.project-media { margin: 0; background: var(--cream); border-radius: 14px; padding: 14px; display: grid; place-items: center; overflow: hidden; }
.project-media img { width: 100%; height: auto; max-height: 440px; object-fit: contain; border-radius: 8px; transition: transform .6s var(--ease-out-expo); }
.project:hover .project-media img { transform: scale(1.03); }
.project-body h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: .01em; margin-bottom: 10px; }
.project-body > p { color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.project-meta .card-tag { margin: 0; }
.project-region { font-size: .82rem; font-weight: 600; color: var(--muted); }
.project .check-list { margin-bottom: 14px; }
.project .check-list li { margin-bottom: 6px; font-size: .96rem; }
.project .chips { margin-top: 0; }
.project-links { margin: 14px 0 0; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } .project:nth-child(even) .project-media { order: 0; } }

/* Home: selected projects */
.work-grid .card-media { aspect-ratio: 16 / 10; background: var(--cream); }
.work-grid .card-media img { object-fit: cover; object-position: top center; }
.work-grid .card-tag { margin: 18px 0 8px; }

/* Home: "Who we work with" — photo column fills the height of the text column */
.who-split { align-items: stretch; }
.who-photo { height: 100%; min-height: 320px; }
.who-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.who-body .audience { margin-bottom: 22px; }
@media (max-width: 900px) { .who-photo { min-height: 0; } .who-photo img { aspect-ratio: 16 / 9; height: auto; } }
/* Spacing utilities must win over component margins */
.section-photo.mt-4, figure.mt-4 { margin-top: 16px; }

/* ---------- Vertical rhythm (single source of truth) ----------
   Every section, page hero and CTA band uses the same top/bottom space. Where two neighbouring
   blocks share a background, the second one drops its top padding so the gap is never doubled. */
:root { --space-section: clamp(28px, 3.5vw, 44px); --space-head: 24px; }
.section, .page-hero, .cta-band { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.home-banner { padding-bottom: var(--space-section); }
main > .section:not(.section-soft):not(.section-dark) + .section:not(.section-soft):not(.section-dark),
main > .section:not(.section-soft):not(.section-dark) + .cta-band,
main > .section-soft + .section-soft,
main > .section-dark + .section-dark { padding-top: 0; }
/* No stray bottom margins at the end of a block */
.section-head { margin-bottom: var(--space-head); }
.section-head > :last-child, main .container > :last-child, .split > * > :last-child, .who-body > :last-child,
.project-body > :last-child, .prose > :last-child, .legal-box p:last-child, .card > :last-child, .hero-text > :last-child { margin-bottom: 0; }
#faq-title, #related-title { margin-bottom: var(--space-head); }
/* Readability: nothing below 12px */
.card-tag { font-size: .75rem; }
#related-title { text-align: center; }

/* ---------- WhatsApp ---------- */
.wa-icon { width: 20px; height: 20px; flex: none; }
.footer-contact { list-style: none; padding: 0; margin: 14px 0 0; }
.footer-contact li { margin-bottom: 6px; }
.wa-inline { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .wa-inline .wa-icon { color: #25d366; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; box-shadow: 0 10px 28px rgba(18, 18, 18, .22); transition: transform .25s var(--ease-out-expo), box-shadow .25s; animation: fade-up .6s 1s both; }
.wa-float:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(18, 18, 18, .28); }
.wa-float .wa-icon { width: 26px; height: 26px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: wa-pulse 2.6s 2s ease-out infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 80%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
@media (max-width: 640px) { .wa-float { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; } .wa-float-label { display: none; } }
body { padding-bottom: 0; }
.has-wa-float .site-footer { padding-bottom: 92px; } /* contact page: keep the floating WhatsApp button clear of footer text */

/* Case studies: product / client groups */
.project-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 12px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--tag-border); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; scroll-margin-top: 90px; }
.project-group:first-child { margin-top: 0; }
.project-group span { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.project-group[hidden] { display: none; }
.project-body h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 600; letter-spacing: .01em; margin-bottom: 10px; }

/* Case studies: groups and client-project card grid */
.project-groups { display: grid; gap: 40px; }
.project-section { display: grid; gap: 22px; }
.project-section[hidden] { display: none; }
.project-section .project-group { margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 16px; padding: 16px; }
.project-card .project-media { order: 0 !important; padding: 10px; }
.project-card .project-media img { max-height: 280px; }
.project-card .project-body { padding: 4px 8px 8px; }
.project-card h3 { font-size: 1.2rem; }
.project-card .project-body > p { font-size: .97rem; }
.project-card .check-list li { font-size: .93rem; margin-bottom: 4px; }
.project-card .chips li { font-size: .75rem; }

/* ======================= Blog ======================= */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, box-shadow .3s, transform .35s var(--ease-out-expo); }
.post-card[hidden] { display: none; }
.post-card:hover { border-color: var(--brand-light); box-shadow: var(--shadow); transform: translateY(-4px); }
.js .post-card[data-reveal].is-visible:hover { transform: translateY(-4px); }
.post-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-card-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out-expo); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: .82rem; color: var(--muted); }
.post-card-meta .card-tag { margin: 0; }
.post-card h3 { font-size: 1.1rem; line-height: 1.4; margin: 0; }
.post-card-body > p:not(.post-card-meta) { color: var(--muted); font-size: .95rem; line-height: 1.65; margin: 0; }
.post-card-more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); font-size: .92rem; }
.post-featured { margin-bottom: 28px; }
.post-card-featured > a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.post-card-featured .post-card-media { aspect-ratio: auto; min-height: 320px; }
.post-card-featured .post-card-body { padding: clamp(20px, 3vw, 36px); justify-content: center; }
.post-card-featured h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
@media (max-width: 860px) { .post-card-featured > a { grid-template-columns: 1fr; } .post-card-featured .post-card-media { min-height: 0; aspect-ratio: 16 / 9; } }
.post-filter { justify-content: flex-start; }

/* Article page */
.post-hero { padding: var(--space-section) 0 0; background: linear-gradient(180deg, var(--bg-soft), #fff 70%); }
.post-hero-inner { max-width: 900px; }
.post-hero-inner > * { animation: fade-up .9s var(--ease-out-expo) both; }
.post-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: .92rem; margin: 18px 0 0; }
.post-byline > span + span::before { content: "\00B7"; margin-right: 20px; color: var(--line-2); }
.post-author { display: inline-flex; align-items: center; gap: 8px; }
.post-author-icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--gradient); color: #fff; }
.post-cover { margin: 28px auto 0; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 50px rgba(18, 18, 18, .14); animation: fade-in 1s .2s both; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 1020px) { .post-layout { grid-template-columns: 1fr; } .post-aside { order: -1; } }
.post-content { max-width: 760px; font-size: 1.05rem; }
.post-content > p:first-child { font-size: 1.12rem; color: var(--ink-2); }
.post-content h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; margin: 1.8em 0 .6em; scroll-margin-top: 90px; }
.post-content h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.post-content ul, .post-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.post-content li { margin-bottom: .45em; }
.post-content li::marker { color: var(--brand); }
.post-content a { font-weight: 500; }
.post-content table { border-collapse: collapse; width: 100%; margin: 1.2em 0 1.6em; font-size: .95rem; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.55; }
.post-content thead th { background: var(--cream); color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.post-content tbody th { background: var(--bg-soft); color: var(--ink); }
.post-content code { background: var(--accent-soft); color: var(--accent-ink); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.post-content pre { background: #181818; color: #e6e1da; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 1.2em 0 1.6em; font-size: .88rem; line-height: 1.65; }
.post-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.post-content .callout { margin: 1.6em 0; }
.post-author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 2.4em; padding: 20px; border: 1px solid var(--tag-border); border-radius: var(--radius-lg); background: var(--bg-soft); }
.post-author-box p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.65; }
.post-author-box strong { color: var(--ink); }
.post-aside { position: sticky; top: 92px; display: grid; gap: 18px; }
@media (max-width: 1020px) { .post-aside { position: static; } }
.post-toc { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; background: #fff; }
.post-toc-title, .post-cta-title { font-weight: 600; color: var(--ink); margin: 0 0 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.post-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.post-toc li { counter-increment: toc; margin: 0; }
.post-toc a { display: block; padding: 6px 0 6px 28px; position: relative; color: var(--ink-2); text-decoration: none; font-size: .92rem; line-height: 1.45; border-radius: 6px; }
.post-toc a::before { content: counter(toc); position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.post-toc a:hover { color: var(--accent); }
.post-cta { border-radius: var(--radius-lg); padding: 20px; background: var(--cream); border: 1px solid var(--tag-border); }
.post-cta p { font-size: .93rem; color: var(--muted); }
.post-cta .post-cta-title { color: var(--accent); }
@media (max-width: 1020px) { .post-cta { display: none; } }
@media (max-width: 640px) { .post-byline { gap: 6px 14px; } .post-byline > span + span::before { display: none; } .post-author { flex-basis: 100%; } }
.post-layout > * { min-width: 0; } .post-content { overflow-wrap: anywhere; } .post-content pre { max-width: 100%; } .post-content pre code { overflow-wrap: normal; }

/* ---------- Cookie consent (assets/js/consent.js) ---------- */
.cc-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 1080px; margin: 0 auto; background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(18, 18, 18, .18); animation: fade-up .45s both; }
.cc-banner-inner { display: flex; align-items: center; gap: 20px 28px; padding: 20px 24px; }
.cc-banner-copy { flex: 1 1 auto; min-width: 0; }
.cc-banner p { margin: 0; font-size: .92rem; line-height: 1.6; }
.cc-title { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 0 0 4px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.cc-btn { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.cc-btn:hover { transform: none; }
.cc-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.cc-modal[hidden] { display: none; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(18, 18, 18, .55); }
.cc-panel { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 24px 60px rgba(18, 18, 18, .3); animation: fade-up .3s both; }
.cc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cc-panel .cc-title { font-size: 1.25rem; margin: 0; }
.cc-close { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.cc-close:hover { background: var(--bg-soft); color: var(--ink); }
.cc-intro { font-size: .92rem; color: var(--muted); }
.cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.cc-row h3 { font-size: 1rem; margin: 0 0 2px; }
.cc-row p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.cc-switch { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.cc-slider { width: 46px; height: 26px; border-radius: 999px; background: #cfc6ba; position: relative; transition: background .2s; }
.cc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.cc-switch input:checked + .cc-slider { background: var(--brand); }
.cc-switch input:checked + .cc-slider::after { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { opacity: .6; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:focus-visible + .cc-slider { outline: 3px solid var(--brand-light); outline-offset: 2px; }
.cc-always { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.cc-meta { font-size: .8rem; color: var(--muted); min-height: 1em; margin: 8px 0 12px; }
.cc-panel .cc-actions { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 16px; }
html.cc-locked { overflow: hidden; }
@media (max-width: 860px) {
  .cc-banner-inner { flex-direction: column; align-items: stretch; padding: 18px; }
  .cc-actions .cc-btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .cc-banner { left: 8px; right: 8px; bottom: 8px; }
  .cc-banner p { font-size: .86rem; }
  .cc-actions { flex-direction: column-reverse; }
  .cc-panel { padding: 18px; }
}
