/* BITSMART v2 — design tokens, base, layout, components */

@font-face {
  font-family: "Die Grotesk D";
  src:
    local("Die Grotesk D Bold"),
    local("DieGroteskD-Bold"),
    local("Die Grotesk D"),
    url("../fonts/DieGroteskD-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Identidad corporativa BITSMART */
  --bitsmart-blue: #002D5D;
  --bitsmart-red: #E1251B;
  --bitsmart-white: #FFFFFF;

  --color-bg: var(--bitsmart-white);
  --color-bg-deep: #f4f6f9;
  --color-bg-elevated: var(--bitsmart-white);
  --color-surface: rgba(255, 255, 255, 0.94);
  --color-overlay: rgba(255, 255, 255, 0.92);
  --color-red: var(--bitsmart-red);
  --color-red-dark: #b8170f;
  --color-blue: var(--bitsmart-blue);
  --color-blue-mid: var(--bitsmart-blue);
  --color-blue-soft: #1a4a78;
  --color-paper: #f4f6f9;
  --color-ink: var(--bitsmart-blue);
  --color-ink-muted: #3d4f63;
  --color-text: var(--bitsmart-blue);
  --color-muted: #5a6578;
  --color-faint: #7a8494;
  --border-subtle: rgba(0, 45, 93, 0.1);
  --border-strong: rgba(0, 45, 93, 0.18);
  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --page-pad: clamp(1.4rem, 4.8vw, 5.5rem);
  --container: 100%;
  --container-wide: 100%;
  --section-spacing: 6.5vw;
  --header-h: 3.85rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Noto Sans TC", "Noto Sans", system-ui, sans-serif;
  --text-body: 1em;
  --text-small: 0.92em;
  --text-meta: 0.78em;
  --leading: 1.65;
  --shadow-soft: 0 24px 60px rgba(0, 45, 93, 0.08);
  --bg-field:
    radial-gradient(70% 55% at 100% 0%, rgba(0, 45, 93, 0.04) 0%, transparent 55%),
    radial-gradient(60% 45% at 0% 100%, rgba(225, 37, 27, 0.03) 0%, transparent 50%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background-color: var(--color-bg);
  background-image: var(--bg-field);
  background-attachment: fixed;
  background-size: cover;
  font-size: max(1rem, 1.2vw);
  scrollbar-width: thin;
  scrollbar-color: var(--color-red) var(--color-bg);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--leading);
  color: var(--color-text);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-blue);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-red);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-red-dark);
}

img,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--color-red);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
}

.section-title {
  margin: 0.75em 0 0;
  font-size: 2.6em;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lede {
  margin: 1em 0 0;
  max-width: 42em;
  color: var(--color-muted);
  font-size: var(--text-body);
}

.placeholder-note {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-faint);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.62rem var(--page-pad);
  background: transparent;
  backdrop-filter: blur(0);
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease), min-height 0.45s var(--ease), padding 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  min-height: 56px;
  padding-block: 0.4rem;
  background: var(--color-overlay);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

.logo img,
.logo svg {
  height: clamp(36px, 3.1vw, 44px);
  width: auto;
  max-width: min(210px, 46vw);
}

.nav-top img {
  height: 40px;
  width: auto;
}

.site-footer .footer-logo {
  display: block;
  height: clamp(76px, 7.5vw, 102px);
  width: auto;
  max-width: 118px;
  margin-bottom: 0.35rem;
}

.site-footer img:not(.footer-logo) {
  height: 40px;
  width: auto;
}

.cta-short {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-cta {
  flex: none;
  text-transform: none;
  letter-spacing: -0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-red {
  background: var(--color-red);
  color: #fff;
}

.btn-red:hover {
  background: var(--color-red-dark);
}

.btn-ghost {
  background: var(--bitsmart-white);
  color: var(--color-blue);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--color-blue-soft);
}

.icon-burger {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.icon-burger span {
  display: block;
  height: 1.5px;
  background: currentColor;
}

.icon-burger span:nth-child(2) { width: 70%; margin-left: auto; }

/* Fullscreen menu */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 1.5rem var(--page-pad);
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(0, 45, 93, 0.08) 0%, transparent 55%),
    rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(22px);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.site-nav.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.nav-top,
.nav-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-content: center;
  max-width: none;
  width: 100%;
  margin: 1.5em auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: clamp(1.6em, 3.2vw, 3.4em);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-red);
}

.nav-list.nav-services a:hover {
  color: var(--color-blue-soft);
}

.nav-kicker {
  margin: 0 0 0.8rem;
  font-size: var(--text-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.nav-services a {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-muted);
}

.nav-contact p {
  margin: 0.35rem 0;
  color: var(--color-muted);
}

.nav-contact a:hover { color: var(--color-text); }

.icon-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--color-blue);
  cursor: pointer;
}
body.quote-open,
body.preload-lock {
  overflow: hidden;
}

.quote-overlay {
  z-index: 95;
  gap: 0.6rem;
}

.quote-grid {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 1.25rem;
  align-content: center;
  align-items: center;
  width: 100%;
}

.quote-overlay .lede {
  color: var(--color-muted);
  max-width: 36em;
  font-size: 0.95rem;
  margin: 0.4rem 0 0;
}

.quote-overlay .contact-list {
  margin-top: 1rem;
}

.quote-overlay .form-card {
  padding: 1rem 1.15rem;
  max-width: 520px;
  width: 100%;
}

.quote-overlay .form-grid {
  gap: 0.5rem;
}

.quote-overlay label {
  gap: 0.22rem;
  font-size: 0.68rem;
}

.quote-overlay input,
.quote-overlay select,
.quote-overlay textarea {
  min-height: 36px;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
}

.quote-overlay textarea {
  min-height: 68px;
  resize: none;
}

.quote-overlay .checkbox {
  font-size: 0.8rem;
  gap: 0.5rem;
}

.quote-overlay .form-status {
  min-height: 0;
  margin: 0.35rem 0 0.55rem;
}

.quote-overlay .btn {
  min-height: 40px;
  padding: 0.55rem 1.1rem;
}

/* Hero negativo (MAIBO hero/hero-negativo) */
.hero-negativo {
  position: relative;
  color: var(--color-blue);
  background-color: var(--bitsmart-white);
}

.hero-negativo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(88% 80% at -6% 40%, rgba(0, 45, 93, 0.06) 0%, transparent 58%),
    radial-gradient(70% 50% at 100% 0%, rgba(0, 45, 93, 0.04) 0%, transparent 50%);
}

.hero-negativo-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem var(--page-pad);
  user-select: none;
}

.hero-negativo-top,
.hero-negativo-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 60;
}

.hero-negativo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-negativo-burger {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-blue);
  cursor: pointer;
}

.hero-negativo-top > .hero-negativo-burger {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 70;
}

.hero-negativo-burger .icon-burger {
  width: 22px;
  height: 14px;
}

.hero-negativo-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 60;
}

.hero-negativo-logo img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.hero-negativo-title {
  margin: 0;
  padding-top: 2rem;
  font-size: max(2.4em, 6vw);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.su-wrap {
  display: block;
  overflow: hidden;
}

.su-line {
  display: block;
}

.hero-negativo-slot-grid {
  display: none;
  pointer-events: none;
  position: absolute;
  inset: 0;
  padding: 1.5rem var(--page-pad);
}

.hero-negativo-image {
  display: none;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 50;
  opacity: 0;
}

.hero-negativo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}

.hero-negativo-lead {
  margin: 0;
  font-size: max(1.5em, 2.4vw);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--color-blue);
}

.hero-negativo-image.is-visible ~ .hero-negativo-inner .hero-negativo-lead,
.hero-negativo.has-image-fill .hero-negativo-lead {
  color: var(--bitsmart-white);
  text-shadow: 0 1px 24px rgba(0, 45, 93, 0.45);
}

.hero-negativo-notes {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.85em;
  font-weight: 300;
  color: var(--color-muted);
}

.hero-negativo-notes p {
  margin: 0;
}

.hero-negativo-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-end;
}

.hero-negativo-cta-note {
  margin: 0;
  max-width: 10em;
  font-size: 0.85em;
  font-weight: 300;
  line-height: 1.35;
  color: var(--color-muted);
}

.hero-negativo-cta .fill-box-btn {
  height: 3.15rem;
  padding: 0 4.15rem 0 1.2rem;
  font-size: 0.92em;
}

.hero-negativo-cta .fill-box-box {
  top: 0.2rem;
  right: 0.2rem;
  bottom: 0.2rem;
  width: 2.85rem;
  padding-right: 0.8rem;
}

.fill-box-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 4rem;
  padding: 0 5rem 0 1.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bitsmart-white);
  color: var(--color-blue);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.fill-box-label {
  position: relative;
  z-index: 2;
  transition: color 0.3s;
}

.fill-box-btn:hover .fill-box-label {
  color: var(--bitsmart-white);
}

.fill-box-box {
  position: absolute;
  z-index: 1;
  top: 0.25rem;
  right: 0.25rem;
  bottom: 0.25rem;
  width: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  border: 1px solid var(--color-red);
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1), top 0.5s cubic-bezier(0.19, 1, 0.22, 1), bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1), right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.fill-box-btn:hover .fill-box-box {
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

.fill-box-btn.is-sm {
  height: 2.55rem;
  padding: 0 3.2rem 0 0.95rem;
  font-size: 0.78em;
}

.fill-box-btn.is-sm .fill-box-box {
  top: 0.18rem;
  right: 0.18rem;
  bottom: 0.18rem;
  width: 2.2rem;
  padding-right: 0.62rem;
}

.fill-box-btn.is-sm:hover .fill-box-box {
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

.service-body .fill-box-btn {
  margin-top: 1.35rem;
}

.site-header.is-over-hero {
  opacity: 0;
  pointer-events: none;
}

.knx-badge img {
  height: 48px;
  width: auto;
  opacity: 0.92;
}

@media (min-width: 768px) {
  .hero-negativo-inner,
  .hero-negativo-slot-grid {
    padding: 1.5rem var(--page-pad);
  }

  .hero-negativo-top,
  .hero-negativo-bottom {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
  }

  .hero-negativo-bottom {
    align-items: stretch;
  }

  .hero-negativo-brand {
    grid-column: 1 / span 2;
  }

  .hero-negativo-title {
    grid-column: 5 / span 2;
    padding-left: 1rem;
    padding-top: 3.4rem;
    font-size: max(3.4em, 6.5vw);
  }

  .hero-negativo-desc {
    grid-column: 1 / span 2;
    padding-right: 1rem;
  }

  .hero-negativo-cta {
    grid-column: 5 / span 2;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding-left: 1rem;
  }

  .hero-negativo-slot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .hero-negativo-slot-col {
    grid-column: 3 / span 2;
    height: 100%;
  }

  #hero-slot {
    width: 100%;
    height: 100%;
  }

  .hero-negativo-image {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero-negativo-inner,
  .hero-negativo-slot-grid {
    padding: 1.25rem var(--page-pad);
  }
}

/* Sections */
.section,
.site-footer,
.text-marquee {
  background-color: var(--color-bg);
  background-image: none;
}

.hero-negativo {
  background-color: var(--bitsmart-white);
  background-image: var(--bg-field);
  background-attachment: scroll;
  background-size: cover;
}

.section {
  padding: var(--section-spacing) 0;
  border-top: 1px solid var(--border-subtle);
}

#servicios {
  padding-top: 0;
  border-top: none;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-light {
  background: var(--color-paper);
  color: var(--color-ink);
  border-top: none;
}

.section-light .section-title,
.section-light h2 {
  color: var(--color-ink);
}

.section-light .lede,
.section-light p {
  color: var(--color-ink-muted);
}

.intro {
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  padding: var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-text);
  border-top: none;
}

.intro-copy {
  width: min(48rem, 100%);
  max-width: 100%;
  text-align: center;
}

.intro h2 {
  margin: 0 0 1.15rem 0;
  max-width: none;
  font-size: clamp(1.9rem, 4.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--color-blue);
  will-change: transform;
}

.intro-lead {
  margin: 0 auto 1.1rem;
  max-width: 36em;
  font-size: var(--text-body);
  color: var(--color-muted);
}

.intro-knx {
  margin: 0;
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
}

/* Services */
.service-block {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  align-items: center;
  position: relative;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-media-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.service-media-slot::before {
  content: "";
  display: block;
  padding-top: 75%;
}

.service-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
  z-index: 2;
  --service-bw: 0;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
  filter: grayscale(var(--service-bw));
}

.service-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(26%, 11rem);
  pointer-events: none;
  z-index: 2;
  opacity: var(--service-edge, 1);
  background: linear-gradient(
    180deg,
    var(--color-bg) 0%,
    rgba(255, 255, 255, 0.88) 38%,
    rgba(255, 255, 255, 0) 100%
  );
}

@media (max-width: 767px) {
  .service-media::after {
    opacity: 0;
  }
}

.service-shade {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.service-copy {
  position: relative;
  z-index: 5;
}

.service-lead {
  position: relative;
  z-index: 6;
  will-change: transform;
  transform-origin: left bottom;
}

.service-lead h3 {
  color: #fff;
}

.service-lead p {
  max-width: 36em;
}

.service-body {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .service-body {
    opacity: 0;
  }
}

.service-copy .num {
  font-size: 3.4em;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #fff;
}

.service-copy h3 {
  margin: 0.4rem 0 0;
  font-size: 1.55em;
  letter-spacing: -0.03em;
}

.service-copy p {
  color: var(--color-muted);
}

.service-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.service-list.is-cols {
  grid-template-columns: 1fr 1fr;
  column-gap: 1.4rem;
}

.service-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--color-text);
}

.service-copy .knx-badge {
  margin-top: 1.2rem;
}

/* Gallery carousel */
.project-carousel {
  overflow: hidden;
  width: 100%;
  margin-top: 0.25rem;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.project-carousel.is-dragging {
  cursor: grabbing;
}

.project-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.project-set {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding-left: var(--page-pad);
  padding-right: 1.25rem;
}

.project-card {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 34vw;
  min-width: 16em;
  height: 42vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-elevated);
  color: inherit;
  cursor: grab;
  text-align: left;
}

.project-card.is-tall {
  width: 24vw;
}

.project-card.is-wide {
  width: 42vw;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.project-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0, 45, 93, 0.88), transparent);
}

.project-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
  color: var(--bitsmart-white);
}

.project-card .meta {
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Lightbox */
.lightbox,
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.is-open,
.cert-modal.is-open {
  display: flex;
}

.lightbox-backdrop,
.cert-modal .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 45, 93, 0.88);
  backdrop-filter: blur(16px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  gap: 1rem;
}

.lightbox-panel img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: var(--color-bg-deep);
  border-radius: var(--radius-md);
}

.lightbox-bar,
.lightbox-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo .tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: var(--text-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 45, 93, 0.75);
  padding: 0.45rem 0.7rem;
}

.about-title {
  margin: 0;
  font-size: max(2em, 4.6vw);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.about-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--color-muted);
}

.principle {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.8rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--border-subtle);
}

.principle .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-red);
}

.principle:nth-child(even) .num {
  color: var(--color-blue-soft);
}

.principle h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.principle p {
  margin: 0;
  color: var(--color-muted);
}

.about-grid .fill-box-btn {
  margin-top: 1.5rem;
}

/* Certifications */
.logo-carousel {
  overflow: hidden;
  width: 100%;
  margin-top: 0.25rem;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.logo-carousel.is-dragging {
  cursor: grabbing;
}

.logo-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.logo-set {
  display: flex;
  align-items: stretch;
  flex: none;
}

.logo-tile {
  flex: none;
  width: 12.5rem;
  min-height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.4rem;
  border: 0;
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.logo-tile img {
  display: block;
  max-width: 8.5rem;
  max-height: 2.6rem;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.88;
}

.logo-tile-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.logo-tile:hover .logo-tile-name,
.logo-tile:hover img {
  opacity: 1;
  color: var(--color-blue);
}

.cert-modal .panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: var(--color-bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

/* Reasons */
.reason-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}

.reason-item {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.reason-item .reason-icon {
  color: var(--color-red);
}

.reason-item:nth-child(even) .reason-icon {
  color: var(--color-blue);
}

.reason-item .reason-icon svg {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
}

.reason-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.reason-item p {
  margin: 0;
  color: var(--color-muted);
}

/* Blog */
.post-grid {
  display: grid;
  gap: 1.5rem;
}

.post-teaser {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.post-teaser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.post-teaser .meta {
  font-size: var(--text-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-soft);
}

.post-teaser h3 {
  margin: 0.4rem 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.post-teaser p {
  color: var(--color-muted);
  margin: 0 0 0.8rem;
}

.link-arrow {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-red);
}

.link-arrow:hover { color: var(--color-red-dark); }

/* Contact */
.contact {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  opacity: 0.72;
  filter: blur(2.5px) brightness(0.78);
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.contact-list a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-list span {
  display: block;
  font-size: var(--text-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
}

.form-card {
  background: var(--color-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--color-bg-elevated);
  color: var(--color-text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-blue-soft);
}

textarea { min-height: 120px; resize: vertical; }

.field-error {
  color: var(--color-red-dark);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 0.2rem;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.95rem;
}

.form-status.is-success { color: #166534; }
.form-status.is-error { color: var(--color-red-dark); }
.btn[disabled] { opacity: 0.65; cursor: wait; }

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--color-muted);
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.footer-grid h2 {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid a:hover { color: var(--color-text); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-small);
}

/* Full-bleed text marquee */
.text-marquee {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0 -50vw;
  padding: 0;
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.text-marquee-viewport {
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.text-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  animation: marquee-rtl 28s linear infinite;
  will-change: transform;
}

.text-marquee-copy {
  margin: 0;
  padding: 0.12em 0.28em 0.18em 0;
  color: var(--color-blue);
  font-family: "Die Grotesk D", sans-serif;
  font-size: clamp(2.6rem, 8vw, 7.2rem);
  font-weight: 700;
  font-stretch: normal;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .text-marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .preloader-glow,
  .preloader-scan {
    display: none;
  }
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--bitsmart-white);
  clip-path: inset(0 0 0 0);
}

.site-preloader:not(.is-minimal) .preloader-glow {
  display: none;
}

.site-preloader.is-minimal {
  background: var(--bitsmart-white);
}

.preloader-minibar {
  width: min(7.5rem, 28vw);
  height: 1px;
  background: var(--border-subtle);
  overflow: hidden;
}

.preloader-minibar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left center;
}

.preloader-glow {
  position: absolute;
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 37, 27, 0.28) 0%, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.preloader-glow-2 {
  background: radial-gradient(circle, rgba(0, 45, 93, 0.55) 0%, transparent 70%);
  width: min(70vw, 560px);
  height: min(70vw, 560px);
}

.preloader-stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.35rem;
  width: min(86vw, 440px);
}

.preloader-logo-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
}

.preloader-logo {
  width: 100%;
  height: auto;
  display: block;
}

.preloader-scan {
  position: absolute;
  inset: -10% auto -10% 0;
  width: 28%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(225, 37, 27, 0.55) 50%,
    rgba(255, 255, 255, 0.18) 62%,
    transparent 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateX(-140%);
}

.preloader-bar {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transform-origin: left center;
}

.preloader-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #002d5d 0%, #e1251b 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

.preloader-count {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.55);
}

html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select,
html.has-cursor [contenteditable="true"] {
  cursor: text !important;
}

.site-cursor {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

html.has-cursor .site-cursor.is-on {
  opacity: 1;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
}

.cursor-dot-core {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e1251b;
  box-shadow: 0 0 12px rgba(225, 37, 27, 0.55);
  transition: transform 0.18s ease;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
}

.cursor-ring-core {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(225, 37, 27, 0.85);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.site-cursor.is-hover .cursor-ring-core {
  transform: scale(1.7);
  background: rgba(225, 37, 27, 0.12);
  border-color: #e1251b;
}

.site-cursor.is-click .cursor-dot-core {
  transform: scale(0.45);
}

.site-cursor.is-click .cursor-ring-core {
  transform: scale(0.62);
  background: rgba(225, 37, 27, 0.28);
}

.cursor-ripple {
  position: fixed;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 1.5px solid #e1251b;
  border-radius: 50%;
  pointer-events: none;
  animation: cursor-ripple 0.7s ease-out forwards;
}

@keyframes cursor-ripple {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(8);
    opacity: 0;
  }
}

html.has-cursor.is-typing .site-cursor {
  opacity: 0;
}
