/* =========================================================
   Tecspectra Technologies — site styles
   Brand: amber + ink, 3×3 dot-grid motif from the logo.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f7f5f0;
  --ink: #0e0e10;
  --ink-2: #3a3a40;
  --muted: #6b6b73;
  --line: rgba(14, 14, 16, 0.1);
  --line-strong: rgba(14, 14, 16, 0.18);
  --accent: #f5a400;
  --accent-ink: #8a5a00;          /* accent used as text on light bg (AA) */
  --accent-soft: rgba(245, 164, 0, 0.14);
  --on-accent: #111;
  --dot: #0e0e10;
  --ok: #138a4b;
  --err: #c0362c;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -8px rgba(0,0,0,.12);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.25);
  --glass: rgba(251, 250, 247, 0.72);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --bg-alt: #111114; --surface: #141418; --surface-2: #1a1a1f;
    --ink: #f4f3ef; --ink-2: #c9c8c3; --muted: #8e8d95;
    --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16);
    --accent-ink: #ffbe3d; --accent-soft: rgba(245,164,0,.14); --dot: #f4f3ef;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.8);
    --glass: rgba(11,11,13,.7); --ok: #3ccf82; --err: #ff6b5e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --bg-alt: #111114; --surface: #141418; --surface-2: #1a1a1f;
  --ink: #f4f3ef; --ink-2: #c9c8c3; --muted: #8e8d95;
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16);
  --accent-ink: #ffbe3d; --accent-soft: rgba(245,164,0,.14); --dot: #f4f3ef;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.8);
  --glass: rgba(11,11,13,.7); --ok: #3ccf82; --err: #ff6b5e;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Buttons & chips ---------- */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.25em; border-radius: 999px; border: 1px solid var(--b);
  background: transparent; color: var(--ink); font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px rgba(245,164,0,.8); }
.btn-primary:hover { border-color: var(--accent); box-shadow: 0 14px 30px -10px rgba(245,164,0,.9); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-sm { min-height: 36px; padding: .5em .9em; font-size: .85rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .35em .8em; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: .82rem; font-weight: 500; color: var(--ink-2); text-decoration: none; background: var(--surface);
  transition: background .2s, color .2s, border-color .2s;
}
a.chip:hover, .chip[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
  font: 600 .78rem/1 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 6px; background: radial-gradient(circle, var(--accent) 2.5px, transparent 3px) 0 0 / 6px 6px repeat-x; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .2s, background .2s;
}
.icon-btn:hover { transform: rotate(-12deg); }
.icon-btn .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
/* The glass effect lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the 72px bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: var(--glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
body.menu-open .site-header::before { opacity: 1; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 30px; height: 30px; }
.logo-mark .d { fill: var(--dot); }
.logo-mark .a { fill: var(--accent); }
.brand:hover .logo-mark circle { animation: dot-pop .6s var(--ease) both; }
.brand:hover .logo-mark circle:nth-child(2) { animation-delay: .04s; } .brand:hover .logo-mark circle:nth-child(3) { animation-delay: .08s; }
.brand:hover .logo-mark circle:nth-child(4) { animation-delay: .12s; } .brand:hover .logo-mark circle:nth-child(5) { animation-delay: .16s; }
.brand:hover .logo-mark circle:nth-child(6) { animation-delay: .2s; } .brand:hover .logo-mark circle:nth-child(7) { animation-delay: .24s; }
.brand:hover .logo-mark circle:nth-child(8) { animation-delay: .28s; } .brand:hover .logo-mark circle:nth-child(9) { animation-delay: .32s; }
@keyframes dot-pop { 50% { transform: scale(.55); } }
.logo-mark circle { transform-box: fill-box; transform-origin: center; }
.brand-text { font: 600 1.3rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand-text b { font-weight: 700; color: var(--accent-ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: color .2s, background .2s;
}
.nav ul a:hover { color: var(--ink); background: var(--accent-soft); }
.nav ul a[aria-current] { color: var(--ink); }
.nav ul a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; } :root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-sun { display: block; } :root:not([data-theme="light"]) .icon-moon { display: none; } }
.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 40px; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    display: none;
  }
  .nav.is-open { display: flex; animation: menu-in .3s var(--ease) both; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
  .nav ul a { color: var(--ink); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font: 600 1.8rem/1.2 var(--font-display); padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .nav ul a[aria-current]::after { left: auto; right: 4px; top: 50%; margin-top: -2.5px; }
  .nav-cta { align-self: flex-start; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.text-accent { color: var(--accent-ink); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 880px); display: grid; align-items: center; padding-block: 64px 96px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 48px); overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 50% at 70% 40%, transparent 0, var(--bg) 85%); pointer-events: none; }
.hero-inner { max-width: 900px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .swap { display: inline-block; color: var(--accent-ink); position: relative; }
.hero h1 .swap::after { content: ""; display: inline-block; width: .08em; height: .9em; margin-left: .06em; background: var(--accent); vertical-align: -0.08em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--accent-ink); }
.badge-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .85rem; font-weight: 500; margin-bottom: 28px; box-shadow: var(--shadow); }
.badge-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(19,138,75,.5); } 80%,100% { box-shadow: 0 0 0 8px rgba(19,138,75,0); } }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(circle, var(--line-strong) 1.2px, transparent 1.6px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000 10%, transparent 70%);
}
.page-hero { isolation: isolate; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { text-decoration: none; } .breadcrumb a:hover { color: var(--ink); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--surface); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font: 500 1.1rem/1 var(--font-display); color: var(--ink-2); white-space: nowrap; }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 28px 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.stat-num { font: 600 clamp(2.2rem, 4vw, 3rem)/1 var(--font-display); letter-spacing: -0.04em; }
.stat-num .plus { color: var(--accent-ink); }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Cards ---------- */
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-soft), transparent 45%);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--accent-ink); transition: transform .35s var(--ease), background .3s, color .3s;
}
.card-icon .icon { width: 24px; height: 24px; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.05); background: var(--accent); color: var(--on-accent); }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: .9rem; color: var(--accent-ink); }
.card .chips { margin-top: 18px; }
.card .chips .chip { font-size: .75rem; }

/* Service rows (services page) */
.service-row { display: grid; grid-template-columns: 72px 1fr 1.2fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num { font: 600 .9rem/1 var(--font-display); color: var(--muted); padding-top: 10px; }
.service-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 14px; }
.service-row h2 .card-icon { margin: 0; width: 44px; height: 44px; }
.service-row p { color: var(--ink-2); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; gap: 12px; } .service-row .num { padding: 0; } }

/* Process */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.steps li::before { content: "0" counter(step); display: block; font: 600 2.4rem/1 var(--font-display); color: var(--accent); margin-bottom: 18px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Project cards */
.project { display: flex; flex-direction: column; padding: 0; }
.project figure { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface-2); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-stat { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.project-stat strong { font: 600 1.8rem/1 var(--font-display); letter-spacing: -0.03em; }
.project-stat span { color: var(--muted); font-size: .88rem; }

/* CEO / quote */
.quote-card { position: relative; padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) * 1.5); background: var(--ink); color: var(--bg); overflow: hidden; isolation: isolate; }
.quote-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; z-index: -1; opacity: .25; background: radial-gradient(circle, var(--accent) 7px, transparent 8px) 0 0 / 40px 40px; }
.quote-card blockquote { margin: 0; font: 500 clamp(1.2rem, 2.2vw, 1.6rem)/1.45 var(--font-display); letter-spacing: -0.01em; }
.quote-card blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.quote-person { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.quote-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.quote-person strong { display: block; }
.quote-person span { opacity: .7; font-size: .9rem; }

/* Team */
.team-card { padding: 0; text-align: left; }
.team-card figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.team-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: filter .4s, transform .6s var(--ease); }
.team-card:hover img { filter: none; transform: scale(1.04); }
.team-card div { padding: 18px 20px 22px; }
.team-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.team-card p { font-size: .9rem; }

/* Value list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.ticks .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.ticks strong { display: block; }
.ticks span { color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 1.1rem/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--accent-ink); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* CTA band */
.cta-band { position: relative; padding: clamp(40px, 7vw, 80px); border-radius: calc(var(--radius) * 1.75); background: var(--accent); color: var(--on-accent); overflow: hidden; isolation: isolate; display: grid; gap: 28px; grid-template-columns: 1.4fr auto; align-items: end; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background: radial-gradient(circle, #000 2.2px, transparent 2.8px) 0 0 / 26px 26px; mask-image: linear-gradient(110deg, transparent 35%, #000); -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000); }
.cta-band h2 { margin: 0 0 .3em; max-width: 18ch; }
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 52ch; }
.cta-band .btn { border-color: #111; }
.cta-band .btn-dark { background: #111; color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.blog-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search input { padding-left: 44px; border-radius: 999px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.post-card { display: flex; flex-direction: column; padding: 0; height: 100%; }
.post-card .cover { aspect-ratio: 16 / 9; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 1.25rem; margin: 0; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card p { font-size: .95rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { width: 14px; height: 14px; }
.post-cat { position: relative; z-index: 2; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); text-decoration: none; }
.post-featured { display: grid; grid-template-columns: 1.25fr 1fr; padding: 0; margin-bottom: 20px; }
.post-featured .cover { aspect-ratio: auto; min-height: 340px; height: 100%; }
.post-featured .post-card-body { padding: clamp(24px, 4vw, 48px); justify-content: center; }
.post-featured h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
@media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; } .post-featured .cover { min-height: 0; aspect-ratio: 16/9; } }

.cover { position: relative; overflow: hidden; background: var(--surface-2); margin: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .cover img { transform: scale(1.04); }
/* Generated brand cover for posts without an image */
.cover-gen {
  --h: 40;
  background:
    radial-gradient(circle at 78% 30%, hsl(var(--h) 100% 55% / .55), transparent 45%),
    radial-gradient(circle at 15% 85%, hsl(calc(var(--h) + 30) 90% 50% / .35), transparent 50%),
    #111114;
  display: grid; place-items: center;
}
.cover-gen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.22) 1.4px, transparent 1.8px) 0 0 / 18px 18px; mask-image: linear-gradient(160deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(160deg, #000, transparent 75%); }
.cover-gen span { position: relative; font: 600 clamp(1.1rem, 2.4vw, 1.6rem)/1.15 var(--font-display); color: #fff; padding: 24px; max-width: 18ch; text-align: center; letter-spacing: -0.02em; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; }
.pagination [aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

/* Article */
.article-hero { padding-block: clamp(48px, 7vw, 88px) 32px; }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 22ch; }
.article-hero .lead { margin-top: 1rem; }
.article-hero .post-meta { font-size: .92rem; margin-top: 28px; }
.author-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.author-chip i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: .85rem; }
.article-cover { border-radius: calc(var(--radius) * 1.25); aspect-ratio: 21 / 9; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); padding-block: 56px 96px; }
.article-aside { position: relative; }
.article-aside .sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .article-aside { order: -1; } .article-aside .sticky { position: static; } .toc { display: none; } }
.toc h2, .aside-title { font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .9rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { width: 40px; height: 40px; }

.prose { font-size: 1.075rem; line-height: 1.8; color: var(--ink-2); max-width: 72ch; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.2em; }
.prose > h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--ink); margin-top: 2em; }
.prose > h3 { font-size: 1.25rem; color: var(--ink); margin-top: 1.6em; }
.prose > h2 + *, .prose > h3 + * { margin-top: .6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-ink); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent-ink); font-weight: 600; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font: 500 1.25rem/1.55 var(--font-display); color: var(--ink); }
.prose img { border-radius: var(--radius-sm); }
.prose code { font-size: .9em; padding: .15em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); }
.prose .callout { padding: 20px 24px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(245,164,0,.35); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.article-footer { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav small { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 6px; }
.post-nav strong { font-family: var(--font-display); font-weight: 600; line-height: 1.3; display: block; }
.post-nav .next { text-align: right; } .post-nav .next small { justify-content: flex-end; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-list a { display: block; text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.mini-list a:hover { color: var(--accent-ink); }
.mini-list small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .95rem; }
.cat-list a:hover { color: var(--accent-ink); }
.cat-list span { color: var(--muted); }

/* Ads — clearly labelled, separated from content and navigation */
.ad-unit { margin: 40px 0; padding: 12px 0 0; border-top: 1px solid var(--line); min-height: 120px; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; text-align: center; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9rem; }
.field label small { color: var(--muted); font-weight: 400; }
input, textarea, select {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-status { margin: 10px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); } .form-status.err { color: var(--err); }
.form-note { font-size: .85rem; color: var(--muted); }
.contact-card { padding: clamp(24px, 4vw, 40px); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.info-list .card-icon { margin: 0; width: 48px; height: 48px; }
.info-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.info-list a { text-decoration: none; font-weight: 600; word-break: break-word; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Legal ---------- */
.legal { padding-block: 56px 96px; }
.legal .prose { max-width: 76ch; }
.legal-updated { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 72px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); margin: 18px 0 24px; max-width: 42ch; }
.footer-title { font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-ink); }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.footer-contact .icon { margin-top: 4px; color: var(--accent-ink); }
.subscribe label { display: block; font-weight: 600; margin-bottom: 10px; }
.subscribe-row { display: flex; gap: 8px; max-width: 440px; }
.subscribe-row input { border-radius: 999px; min-height: 46px; }
@media (max-width: 420px) { .subscribe-row { flex-direction: column; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.to-top:hover { color: var(--ink); }
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37,211,102,.7); transition: transform .3s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08) rotate(-6deg); }
.whatsapp-fab .icon { width: 28px; height: 28px; }

/* 404 */
.notfound { text-align: center; padding-block: 120px; }
.notfound .code { font: 700 clamp(6rem, 20vw, 12rem)/1 var(--font-display); letter-spacing: -0.06em; background: radial-gradient(circle, var(--accent) 3px, transparent 3.6px) 0 0 / 14px 14px; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
@media print {
  .site-header, .site-footer, .whatsapp-fab, .article-aside, .ad-unit, .progress { display: none !important; }
  body { background: #fff; color: #000; }
}
