.topbar .menu { gap: clamp(12px, 2vw, 26px); }
.topbar .menu a { white-space: nowrap; }
.topbar .mobile-nav { display: none; position: relative; }
.topbar .mobile-nav summary {
  cursor: pointer; list-style: none; border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: 8px 12px; font-weight: 700;
}
.topbar .mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-links {
  position: absolute; z-index: 4; right: 0; top: calc(100% + 12px); min-width: 195px;
  display: grid; gap: 3px; padding: 8px; background: #0a1d31; border: 1px solid #2a4a66;
  border-radius: 12px; box-shadow: 0 16px 40px #0007;
}
.mobile-nav-links a { color: #fff; padding: 9px 12px; border-radius: 6px; text-decoration: none; }
.mobile-nav-links a:hover, .mobile-nav-links a[aria-current] { background: #153550; }
.home-page .hero { background: radial-gradient(ellipse at 76% 54%, #10294a, #081627 56%, #06111f 86%); }
.home-page .hero-grid { min-height: clamp(605px, 77vh, 755px); }
.home-page .hero h1 { font-size: clamp(3.25rem, 6.15vw, 6.35rem); text-wrap: balance; }
.home-page .person-wrap .floating-card { border-color: #4bb9ff63; background: #0b1a2cf5; z-index: 2; }
.hero-signal {
  position: absolute; inset: 12% 0 16%; pointer-events: none; opacity: .72;
  background: radial-gradient(ellipse at center, #238df542, transparent 72%);
}
.hero-signal::before, .hero-signal::after {
  content: ""; position: absolute; inset: 18% 6%; border: 1px solid #58c1ff42;
  border-radius: 50%; transform: rotate(-20deg);
}
.hero-signal::after { inset: 13% -1%; border-color: #58c1ff22; }
.hero-signal span {
  position: absolute; top: 32%; left: 13%; width: 9px; height: 9px; border-radius: 50%;
  background: #ffb075; box-shadow: 0 0 18px #ff9b55; animation: signal 3.4s ease-in-out infinite alternate;
}
@keyframes signal { to { transform: translate(48px, -24px); opacity: .42; } }
.proof-section { padding-block: clamp(58px, 8vw, 118px); background: #0a1726; }
.proof-section h2, .portfolio-hero h1 { margin: 0 0 16px; }
.project-grid, .cv-grid, .product-grid { display: grid; gap: 18px; }
.project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; }
.project-card, .portfolio-card {
  background: #0d2034; border: 1px solid #29445f; border-radius: 16px;
  padding: clamp(19px, 2.4vw, 31px);
}
.project-card { display: flex; flex-direction: column; transition: transform .24s ease, border-color .24s ease; }
.project-card:hover, .project-card:focus-within { transform: translateY(-5px); border-color: #54b7fe; }
.project-card h3, .portfolio-card h2 { margin: 8px 0 12px; }
.project-card p, .portfolio-card p, .portfolio-card li, .portfolio-lead, .product-note { color: #c0d1df; }
.project-card a { margin-top: auto; }
.project-card a, .secondary-link, .portfolio-card a:not(.button) { color: #83cdff; text-underline-offset: 4px; }
.project-category { color: #ffb783; font-size: .78rem; font-weight: 700; letter-spacing: .07em; }
.portfolio-hero {
  background: radial-gradient(ellipse at 79% 38%, #173a5a, transparent 63%), #091829;
  padding-block: clamp(48px, 8vw, 115px); border-bottom: 1px solid #233e57;
}
.portfolio-hero h1 { font-size: clamp(3rem, 7vw, 6.1rem); line-height: .98; letter-spacing: -.06em; }
.portfolio-lead { max-width: 63ch; font-size: clamp(1rem, 2vw, 1.25rem); }
.portfolio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 25px; }
.portfolio-section { padding-block: clamp(42px, 7vw, 88px); }
.cv-grid { grid-template-columns: 1.55fr 1fr; align-items: start; }
.cv-role { padding: 18px 0; border-top: 1px solid #29445f; }
.cv-role h3, .cv-role p { margin: 0 0 5px; }
.cv-role time { color: #93b0c8; font-size: .92rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; }
.tag-list li { border: 1px solid #35526b; border-radius: 100px; padding: 4px 11px; font-size: .87rem; }
.product-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.product-feature { padding-left: 1.15em; }
.product-feature li { margin-block: .55em; }
.download-form { display: grid; gap: 14px; }
.download-form[hidden] { display: none; }
.download-form label { display: grid; gap: 5px; }
.download-form input:not([type=checkbox]) {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid #55748d;
  background: #071524; color: #fff; font: inherit;
}
.download-form .confirm-follow { display: flex; align-items: flex-start; gap: 9px; }
.confirm-follow input { accent-color: #84d0ff; margin-top: 4px; inline-size: 1.1rem; block-size: 1.1rem; flex: none; }
.download-form .button { justify-self: start; font-family: inherit; cursor: pointer; }
.download-form .product-note { font-size: .91rem; margin: 0; }
.portfolio-preview-note { border-left: 3px solid #ffb783; padding-left: 10px; }
.portfolio-card [role=status]:empty { display: none; }
.portfolio-card [role=status] { min-height: 1.5em; }
.download-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 22px; }
.savings-section { scroll-margin-top: 90px; background: #0a192b; }
.savings-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.savings-card { padding: clamp(18px, 3vw, 36px); border: 1px solid #3e6c91; border-radius: 16px; background: #0d2237; }
.savings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.savings-form label { display: grid; gap: 5px; min-width: 0; }
.savings-form label:last-of-type, .savings-form button { grid-column: 1 / -1; }
.savings-form input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #6b89a5; background: #071524; color: #fff; font: inherit; }
.savings-form button { justify-self: start; font-family: inherit; cursor: pointer; }
.savings-result { margin-top: 18px; padding: 13px 15px; border-left: 3px solid #84d0ff; background: #112d45; }
.savings-result strong, .savings-result span { display: block; }
.savings-result strong { color: #a8e0ff; font-size: clamp(1.15rem, 2.4vw, 1.65rem); }
.savings-note { margin: 14px 0; color: #c0d1df; font-size: .9rem; }
@media (max-width: 1080px) {
  .topbar .menu { display: none; }
  .topbar .mobile-nav { display: block; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .home-page .hero-grid { min-height: auto; }
  .cv-grid, .product-grid, .savings-layout { grid-template-columns: 1fr; }
}
@media (max-width: 475px) { .project-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .hero-signal span { animation: none; }
  .project-card { transition: none; }
  .project-card:hover, .project-card:focus-within { transform: none; }
}
@media print {
  .topbar, .cta-band, footer, .portfolio-actions, .whatsapp-float, .skip-link { display: none !important; }
  body, .portfolio-hero, .portfolio-card { color: #111 !important; background: #fff !important; }
  .portfolio-card *, .portfolio-lead, .portfolio-hero .kicker { color: #222 !important; }
  .portfolio-section, .portfolio-hero { padding-block: 12px; }
  .portfolio-hero h1 { font-size: 2.6rem; }
  .portfolio-card { padding: 14px; border-color: #ccc; }
  .cv-grid { display: block; }
  .cv-role { break-inside: avoid; }
}
.editorial-cover { position: relative; display: grid; min-height: 138px; aspect-ratio: 16 / 9; align-items: end; overflow: hidden; border-radius: 12px; isolation: isolate; background: radial-gradient(ellipse at 80% 0%, #195d8d, #091c30 65%); }
.editorial-cover img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.editorial-cover:has(.editorial-cover-cta)::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #081525 4%, transparent 75%); }
.editorial-cover-cta { padding: clamp(12px, 4%, 24px); color: #fff; font-weight: 800; line-height: 1.18; overflow-wrap: anywhere; }
.editorial-cover-feature .editorial-cover-cta { font-size: clamp(1.15rem, 4vw, 2.4rem); }
.post-card .editorial-cover { margin-bottom: 16px; }
.post-body .editorial-cover-feature { margin-bottom: 32px; }
.post-body .editorial-insights { padding: clamp(16px, 4vw, 28px); margin: 28px 0; border-left: 4px solid #52b6ff; border-radius: 8px; background: #10253b; }
.editorial-insights p { white-space: pre-line; }
.post-body .editorial-source a { color: #83cdff; text-underline-offset: 4px; }
