/* CodeTrio · clean theme
   Complete replacement for style.css and refinements.css. Light by default. */
:root {
  color-scheme: light;
  --bg: #f8fafb;
  --surface: #ffffff;
  --surface-soft: #f0f4f7;
  --surface-accent: #eaf1f8;
  --text: #202b38;
  --muted: #5d6a79;
  --subtle: #647282;
  --line: #dde5eb;
  --line-strong: #c1ceda;
  --accent: #1559aa;
  --accent-hover: #104681;
  --accent-text: #ffffff;
  --accent-soft-text: #1559aa;
  --header: rgba(248, 250, 251, .96);
  --shadow: 0 8px 30px rgba(29, 55, 79, .04);
  --shadow-hover: 0 16px 36px rgba(29, 55, 79, .07);
  --focus: #1559aa;
  --max: 1160px;
  --radius: 20px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151b23;
  --surface: #1c2530;
  --surface-soft: #202b37;
  --surface-accent: #233449;
  --text: #edf3f9;
  --muted: #b4c2d1;
  --subtle: #a4b5c8;
  --line: #314051;
  --line-strong: #4a6077;
  --accent: #91bef3;
  --accent-hover: #b2d2fa;
  --accent-text: #112338;
  --accent-soft-text: #abcdf5;
  --header: rgba(21, 27, 35, .96);
  --shadow: 0 8px 30px rgba(0, 0, 0, .09);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, .15);
  --focus: #a5ceff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
.container { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 120; left: 20px; top: 16px;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: var(--accent-text); font-weight: 600;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
/* Decorative effects from the previous design are intentionally retired. */
.ambient, .stage-glow, .hero-ring { display: none; }
.reveal, .js .reveal, .js .reveal.visible { opacity: 1; transform: none; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(25, 48, 71, .035); }
.nav-wrap { min-height: 96px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 144px; height: 82px; object-fit: contain; object-position: left center; }
/* Original CodeTrio artwork stays unfiltered and legible in either theme. */
:root[data-theme="dark"] .brand img { background: #ffffff; border-radius: 8px; padding: 5px 9px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav > a { font-size: .84rem; font-weight: 500; color: var(--muted); }
.nav > a:not(.btn) { padding-block: 10px; }
.nav > a:not(.btn):hover, .nav > a.active:not(.btn) { color: var(--accent); }
.nav > a.active:not(.btn) { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.theme-toggle, .menu-toggle {
  width: 44px; height: 44px; flex: 0 0 44px; padding: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text);
  transition: background-color .18s ease, border-color .18s ease;
}
.theme-toggle:hover, .menu-toggle:hover { background: var(--surface-soft); border-color: var(--line-strong); }
.theme-toggle svg { width: 19px; height: 19px; stroke: currentColor; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }
.menu-icon { display: block; position: relative; width: 18px; height: 14px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .18s ease, top .18s ease;
}
.menu-icon::before { top: 3px; }
.menu-icon::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 6px; transform: rotate(-45deg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 23px; border: 1px solid transparent;
  border-radius: 9px; background: var(--accent); color: var(--accent-text);
  font-size: .88rem; line-height: 1.4; font-weight: 600; text-align: center;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-small { min-height: 42px; padding: 10px 17px; font-size: .8rem; }
.nav > .btn { color: var(--accent-text); font-weight: 600; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-soft); border-color: var(--accent); }
.btn-whatsapp { background: var(--accent); color: var(--accent-text); }
.hero { padding: 96px 0 92px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-block; margin-bottom: 20px;
  color: var(--accent-soft-text); font-size: .67rem; line-height: 1.7;
  letter-spacing: .14em; font-weight: 600;
}
.hero .eyebrow { max-width: 100%; font-size: .6rem; letter-spacing: .11em; }
.hero h1, .section-heading h2, .cta h2, .stack-panel h2 {
  font-family: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600; letter-spacing: -.045em; margin: 0;
  text-wrap: balance;
}
.hero h1 { font-size: clamp(2.6rem, 4.65vw, 4.1rem); line-height: 1.085; max-width: 700px; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1rem; line-height: 1.85; max-width: 590px; margin: 27px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn:first-child::after { content: "↗"; font-size: 1.08rem; font-weight: 400; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 25px; color: var(--muted); font-size: .7rem; line-height: 1.8; }
.hero-visual { min-width: 0; }
.logo-stage {
  position: relative; min-height: 410px; padding: 48px 38px;
  display: grid; place-items: center; isolation: isolate;
  background: #edf3f8; border: 1px solid #dbe6ee; border-radius: 28px;
}
.logo-stage::before, .logo-stage::after {
  content: ""; position: absolute; inset: 28px;
  border: 1px solid #d2e0ed; border-radius: 50%; pointer-events: none; z-index: -1;
}
.logo-stage::after { inset: 64px; }
.logo-stage > img { width: 100%; max-height: 220px; object-fit: contain; position: relative; }
:root[data-theme="dark"] .logo-stage { background: #edf3f8; border-color: #dbe6ee; }
.hero-chip {
  position: absolute; z-index: 1; padding: 7px 12px;
  border-radius: 7px; border: 1px solid #dce6ee; background: #ffffff;
  box-shadow: 0 4px 15px rgba(30, 63, 98, .035);
  color: #285981; font-size: .61rem; letter-spacing: .12em; font-weight: 600;
}
.hero-chip-web { top: 50px; left: 28px; }
.hero-chip-mobile { top: 82px; right: 25px; }
.hero-chip-api { bottom: 47px; right: 45px; }
.trust-strip { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-grid > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid > div:last-child { border-right: 0; padding-right: 0; }
.trust-grid strong { display: block; font-weight: 600; font-size: .88rem; letter-spacing: -.01em; }
.trust-grid span { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.section { padding: 104px 0; }
.section-dark { background: var(--surface-soft); border-block: 1px solid var(--line); }
.section-heading { max-width: 720px; }
.section-heading-wide { max-width: 760px; }
.section-heading h2, .cta h2 { font-size: clamp(2rem, 3.35vw, 3rem); line-height: 1.16; }
.section-heading p, .cta p { color: var(--muted); font-size: .95rem; line-height: 1.85; margin: 22px 0 0; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.client-card, .card, .experience-card {
  min-width: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.client-card { padding: 32px; display: flex; flex-direction: column; }
.client-topline { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 80px; }
.client-monogram {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px;
  display: grid; place-items: center; background: var(--surface-accent);
  color: var(--accent-soft-text); font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.1rem; font-weight: 600;
}
/* Original horizontal project marks: white surfaces in both display modes.
   Supports direct <img class="project-logo"> and optional .project-logo-wrap. */
.project-logo {
  display: block; width: 180px; max-width: 54%; height: 80px; flex: 0 1 180px;
  object-fit: contain; object-position: center;
  padding: 14px; border: 1px solid #e8edf1; border-radius: 12px; background: #ffffff;
}
.project-logo-wrap { display: grid; place-items: center; width: 196px; max-width: 54%; min-height: 88px; padding: 14px; border: 1px solid #e8edf1; border-radius: 12px; background: #ffffff; }
.project-logo-wrap .project-logo { width: 100%; max-width: 100%; height: 58px; padding: 0; border: 0; border-radius: 0; }
.client-status { max-width: 160px; color: var(--muted); font-size: .6rem; line-height: 1.8; letter-spacing: .07em; font-weight: 500; text-align: right; }
.client-badge { max-width: 160px; padding: 6px 10px; background: var(--surface-accent); color: var(--accent-soft-text); border-radius: 6px; font-size: .57rem; line-height: 1.7; font-weight: 600; letter-spacing: .04em; text-align: center; }
.client-card h3 { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.6rem; font-weight: 600; letter-spacing: -.035em; margin: 27px 0 11px; }
.client-card p, .card p, .experience-card p { color: var(--muted); margin: 0; font-size: .88rem; line-height: 1.85; }
.client-card .tech-list { margin-top: auto; padding-top: 25px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.tech-list span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: transparent; font-size: .65rem; line-height: 1.5; }
.clients-note { margin: 22px 0 0; max-width: 850px; color: var(--subtle); font-size: .72rem; line-height: 1.8; }
.cards { margin-top: 44px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { padding: 30px; min-height: 260px; box-shadow: none; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: .72rem; font-weight: 500; }
.card h3 { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.2rem; letter-spacing: -.025em; font-weight: 600; margin: 27px 0 12px; }
.experience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.experience-card { padding: 29px; display: flex; flex-direction: column; background: transparent; box-shadow: none; }
.case-label { color: var(--accent); font-size: .58rem; line-height: 1.8; letter-spacing: .08em; font-weight: 600; }
.experience-card h3 { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.35rem; font-weight: 600; line-height: 1.3; letter-spacing: -.03em; margin: 23px 0 16px; }
.experience-card .tech-list { margin-top: auto; padding-top: 25px; }
.process-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 92px; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 38px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step > span { color: var(--accent); font-family: "Space Grotesk", Inter, sans-serif; font-size: .8rem; line-height: 1.9; }
.step h3 { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: -.015em; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: .86rem; line-height: 1.85; margin: 0; }
.about-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: 76px; align-items: center; }
.about-visual { min-width: 0; }
.code-window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.window-top { display: flex; align-items: center; gap: 7px; height: 48px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.window-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.window-top i:first-child { background: #729bc5; }
.window-top i:nth-child(2) { background: #9db8d4; }
.code-window pre { margin: 0; padding: 29px 26px 34px; max-width: 100%; overflow-x: auto; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .72rem; line-height: 1.95; color: var(--text); }
.code-window code { font: inherit; }
.code-window code span, .code-window code b { color: var(--accent); font-weight: 500; }
.code-window code em { color: #556e63; font-style: normal; }
:root[data-theme="dark"] .code-window code em { color: #a8c7b4; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.about-tags span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .65rem; }
.stack-section { padding-top: 0; }
.stack-panel { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; padding: 45px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.stack-panel h2 { font-size: clamp(1.65rem, 2.6vw, 2.35rem); line-height: 1.2; }
.stack-panel .eyebrow { margin-bottom: 14px; font-size: .6rem; }
.stack-items { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-items span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: .7rem; }
.cta-section { padding-top: 0; }
.cta { padding: 66px 56px 36px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface-accent); text-align: center; }
.cta h2 { max-width: 740px; margin-inline: auto; }
.cta p { max-width: 660px; margin: 22px auto 0; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta .btn-ghost { background: var(--surface); }
.cta .btn-ghost:hover { background: var(--surface-soft); }
.map-preview { margin-top: 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.map-preview-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.map-preview-address { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .72rem; min-width: 0; }
.map-preview-pin { color: var(--accent); font-size: 1.2rem; line-height: 1; }
.map-preview-link { flex: 0 0 auto; color: var(--accent); font-size: .7rem; font-weight: 600; }
.map-preview-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.map-preview-frame { height: 220px; background: var(--surface-soft); }
.map-preview-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.cta .cta-location-note { margin-top: 20px; color: var(--muted); font-size: .72rem; }
.footer { padding: 35px 0 38px; border-top: 1px solid var(--line); }
.footer-wrap { display: grid; grid-template-columns: auto 1fr; column-gap: 40px; row-gap: 14px; align-items: center; }
.footer-brand { grid-row: 1 / 3; }
.footer-brand img { width: 118px; height: 68px; }
.footer-wrap > p { font-size: .72rem; color: var(--muted); margin: 0; text-align: right; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 20px; font-size: .68rem; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.whatsapp-float, .back-to-top { position: fixed; z-index: 40; box-shadow: var(--shadow-hover); border: 1px solid var(--line); }
.whatsapp-float { bottom: 22px; right: 22px; display: flex; align-items: center; gap: 9px; padding: 9px 15px 9px 9px; border-radius: 50px; background: var(--surface); }
.whatsapp-float span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e8f4ed; color: #276845; font-size: .62rem; font-weight: 700; }
.whatsapp-float strong { color: var(--text); font-size: .71rem; font-weight: 600; }
.whatsapp-float:hover { border-color: var(--line-strong); }
.back-to-top { left: 22px; bottom: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--text); opacity: 0; visibility: hidden; pointer-events: none; }
.back-to-top.visible { opacity: 1; visibility: visible; pointer-events: auto; }
/* Cards remain still: their content is informational, not a clickable control. */
@media (min-width: 1440px) { .hero { padding-block: 112px; } }
@media (max-width: 1100px) {
  .nav-wrap { gap: 22px; }
  .nav { gap: 20px; }
  .hero-grid { gap: 40px; }
  .logo-stage { min-height: 365px; padding-inline: 26px; }
  .hero h1 { font-size: 3.35rem; }
  .hero .eyebrow { font-size: .55rem; }
  .hero-points { gap: 7px 12px; }
  .about-grid, .process-grid { gap: 48px; }
  .card, .experience-card { padding: 25px; }
  .project-logo { width: 156px; flex-basis: 156px; }
}
@media (max-width: 980px) {
  .nav-wrap { min-height: 96px; flex-wrap: wrap; gap: 0 20px; }
  .brand { order: 0; }
  .header-actions { order: 1; margin-left: auto; }
  .nav { order: 2; width: 100%; margin: 0; padding: 14px 0 22px; flex-wrap: wrap; gap: 10px 24px; }
  .has-navigation .menu-toggle { display: inline-flex; }
  .has-navigation .nav {
    display: none; position: absolute; top: calc(100% + 8px); right: 24px; left: 24px;
    width: auto; padding: 16px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-hover); max-height: calc(100dvh - 110px); overflow-y: auto;
  }
  .has-navigation .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  .has-navigation .nav > a:not(.btn) { padding: 13px 12px; border-radius: 7px; }
  .has-navigation .nav > a:not(.btn):hover { background: var(--surface-soft); }
  .has-navigation .nav > .btn { margin-top: 8px; }
  .hero { padding: 76px 0; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 34px; }
  .hero h1 { font-size: clamp(2.7rem, 4.7vw, 3.1rem); }
  .hero p { font-size: .9rem; }
  .logo-stage { min-height: 340px; padding: 24px; }
  .hero-chip-web { top: 33px; left: 20px; }
  .hero-chip-mobile { top: 68px; right: 16px; }
  .hero-chip-api { bottom: 30px; right: 28px; }
  .hero-actions .btn { min-height: 48px; padding-inline: 16px; font-size: .8rem; }
  .trust-grid > div { padding-inline: 18px; }
  .trust-grid span { font-size: .65rem; }
  .section { padding-block: 80px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-card { padding: 26px; }
  .client-topline { align-items: flex-start; flex-direction: column; gap: 15px; }
  .project-logo, .project-logo-wrap { max-width: 100%; flex-basis: auto; }
  .client-status { text-align: left; max-width: none; }
  .client-badge { max-width: none; }
  .client-card h3 { margin-top: 22px; }
  .experience-grid { grid-template-columns: 1fr; gap: 16px; }
  .experience-card { padding: 28px; }
  .experience-card h3 { margin-top: 14px; }
  .process-grid { grid-template-columns: 1fr 1.15fr; gap: 42px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid > .section-heading { grid-row: 1; }
  .code-window { max-width: 650px; }
  .code-window pre { font-size: .85rem; }
  .stack-section, .cta-section { padding-top: 0; }
  .stack-panel { gap: 36px; padding: 35px; }
  .cta { padding: 50px 32px 30px; }
  .map-preview-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 96px; }
  .container { width: min(calc(100% - 40px), var(--max)); }
  .nav-wrap { min-height: 86px; }
  .brand img { width: 132px; height: 76px; }
  .has-navigation .nav { right: 20px; left: 20px; }
  .hero { padding: 54px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero h1 { max-width: 620px; font-size: clamp(2.55rem, 7.5vw, 3.6rem); line-height: 1.09; }
  .hero .eyebrow { max-width: 450px; font-size: .6rem; letter-spacing: .08em; margin-bottom: 18px; }
  .hero p { font-size: .95rem; margin-block: 23px 26px; }
  .hero-actions .btn { min-height: 50px; padding-inline: 20px; }
  .hero-points { margin-top: 22px; font-size: .7rem; }
  .hero-visual { width: 100%; }
  .logo-stage { min-height: 290px; max-width: 540px; margin-inline: auto; padding: 38px 65px; border-radius: 22px; }
  .logo-stage > img { max-height: 170px; width: 100%; }
  .logo-stage::before { inset: 24px 48px; }
  .logo-stage::after { inset: 54px 78px; }
  .hero-chip-web { left: 26px; top: 35px; }
  .hero-chip-mobile { right: 24px; top: 60px; }
  .hero-chip-api { right: 44px; bottom: 31px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid > div { padding: 23px 16px; }
  .trust-grid > div:nth-child(2) { border-right: 0; padding-right: 0; }
  .trust-grid > div:nth-child(3) { padding-left: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust-grid strong { font-size: .8rem; }
  .trust-grid span { font-size: .68rem; }
  .section { padding-block: 68px; }
  .section-heading h2, .cta h2 { font-size: clamp(1.95rem, 6.6vw, 2.65rem); line-height: 1.18; }
  .section-heading p, .cta p { font-size: .9rem; }
  .eyebrow { font-size: .61rem; margin-bottom: 16px; }
  .client-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 33px; }
  .client-card { padding: 27px; }
  .client-topline { flex-direction: row; align-items: center; gap: 16px; }
  .project-logo, .project-logo-wrap { max-width: 54%; }
  .client-status { text-align: right; max-width: 160px; }
  .client-badge { max-width: 145px; }
  .client-card h3 { font-size: 1.5rem; margin-top: 25px; }
  .cards, .experience-grid { margin-top: 32px; }
  .services-grid { gap: 16px; }
  .card { min-height: 0; padding: 25px; }
  .card h3 { margin-top: 23px; }
  .card p { font-size: .83rem; }
  .process-grid { grid-template-columns: 1fr; gap: 38px; }
  .step { padding-block: 23px; gap: 17px; }
  .about-grid { gap: 34px; }
  .code-window pre { font-size: .73rem; padding: 23px; }
  .stack-section, .cta-section { padding-top: 0; }
  .stack-panel { grid-template-columns: 1fr; gap: 26px; padding: 29px; }
  .stack-items { gap: 8px; }
  .cta { padding: 38px 24px 25px; border-radius: 20px; }
  .cta-actions { margin-top: 25px; }
  .cta-actions .btn { width: 100%; }
  .map-preview { margin-top: 30px; }
  .map-preview-header { padding: 14px; }
  .map-preview-address { line-height: 1.7; }
  .map-preview-frame { height: 210px; }
  .footer { padding: 28px 0 90px; }
  .footer-wrap { grid-template-columns: 1fr; gap: 18px; }
  .footer-brand { grid-row: auto; }
  .footer-wrap > p { text-align: left; font-size: .68rem; }
  .footer-links { justify-content: flex-start; gap: 12px 20px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
  .back-to-top { left: 16px; bottom: 16px; }
}
@media (max-width: 450px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  .nav-wrap { gap: 12px; }
  .brand img { width: 124px; height: 72px; }
  .header-actions { gap: 6px; }
  .hero h1 { font-size: 2.55rem; }
  .hero .eyebrow { max-width: 295px; font-size: .56rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-points { gap: 7px; flex-direction: column; }
  .logo-stage { min-height: 258px; padding: 42px; }
  .logo-stage::before { inset: 25px; }
  .logo-stage::after { inset: 53px; }
  .hero-chip { font-size: .54rem; padding: 5px 9px; }
  .hero-chip-web { left: 16px; top: 30px; }
  .hero-chip-mobile { right: 15px; top: 55px; }
  .hero-chip-api { right: 25px; bottom: 27px; }
  .services-grid { grid-template-columns: 1fr; }
  .client-card { padding: 24px; }
  .client-topline { gap: 12px; }
  .project-logo { width: 150px; height: 72px; padding: 11px; }
  .client-status { font-size: .55rem; }
  .client-badge { font-size: .5rem; padding: 6px 8px; }
  .code-window pre { font-size: .65rem; padding: 20px 17px; }
  .cta { padding-inline: 19px; }
  .cta-actions .btn { padding-inline: 12px; font-size: .8rem; overflow-wrap: anywhere; }
  .whatsapp-float { padding: 8px; }
  .whatsapp-float strong { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .theme-toggle, .menu-toggle, .hero-chip, .client-card, .card, .experience-card { border: 1px solid ButtonText; }
  .menu-icon::before, .menu-icon::after { background: ButtonText; }
}
@media print {
  .site-header, .hero-visual, .whatsapp-float, .back-to-top, .map-preview, .skip-link { display: none !important; }
  body { background: white; color: black; }
  .container { width: 100%; }
  .hero, .section { padding: 24px 0; }
  .hero-grid, .about-grid, .process-grid, .stack-panel { display: block; }
  .client-card, .card, .experience-card, .step { break-inside: avoid; }
}

/* Optional original Gabariza SVG + wordmark, always on a white surface. */
.project-logo-surface { display: flex; align-items: center; justify-content: center; width: 180px; max-width: 54%; min-height: 80px; flex: 0 1 180px; padding: 12px 14px; border: 1px solid #e8edf1; border-radius: 12px; background: #ffffff; }
.gabariza-brand { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #10233e; font-family: Inter, sans-serif; font-size: 1.03rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.gabariza-mark { width: 42px; height: 42px; flex: 0 0 42px; color: #10233e; }
.project-logo-surface .project-logo { width: 100%; max-width: 100%; height: 56px; padding: 0; border: 0; }
@media (min-width: 721px) and (max-width: 980px) { .project-logo-surface { max-width: 100%; flex-basis: auto; } }
@media (max-width: 450px) { .project-logo-surface { min-height: 72px; padding: 10px; } .gabariza-brand { gap: 5px; font-size: .85rem; } .gabariza-mark { width: 31px; height: 31px; flex-basis: 31px; } }

/* Keep the original silver wordmark legible without altering the artwork. */
.brand img, :root[data-theme="dark"] .brand img { background:#14283c; border-radius:12px; padding:5px 9px; }
.logo-stage, :root[data-theme="dark"] .logo-stage { background:#14283c; border-color:#29435d; }
.logo-stage::before, .logo-stage::after { border-color:#304a64; }
.hero-actions .btn:first-child::after { content:none; }
