/* ==========================================================================
   HAS TEL Biga Çit — Architectural Industrial Design System
   ========================================================================== */

:root {
  --bg-dark: #0b111e;
  --bg-dark-elevated: #121b2e;
  --bg-dark-card: #162238;
  --bg-canvas: #f5f7fa;
  --bg-tinted: #edf1f7;
  --bg-surface: #ffffff;

  --ink-strong: #0d1526;
  --ink-body: #334155;
  --ink-muted: #64748b;
  --ink-on-dark: #f8fafc;
  --ink-on-dark-muted: #94a3b8;

  /* Authentic HAS TEL Brand Colors from real signage & fleet */
  --brand-blue: #1b46a4;
  --brand-blue-bright: #3b71e8;
  --brand-red: #d62828;
  --brand-red-hover: #b91c1c;
  --brand-green: #16803c;
  --wa-green: #1ea851;
  --wa-green-hover: #178c43;

  --border-light: rgba(15, 23, 42, 0.1);
  --border-dark: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(11, 17, 30, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 17, 30, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 17, 30, 0.22);

  --font-display: 'Barlow Condensed', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-body);
  background: var(--bg-canvas);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--brand-blue-bright);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

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

/* Visually hidden utility (accessible live region) */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   Buttons & Tags
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

.btn--sm {
  padding: 0.58rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.95rem 1.65rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(214, 40, 40, 0.28);
}

.btn--primary:hover {
  background: var(--brand-red-hover);
  box-shadow: 0 12px 28px rgba(214, 40, 40, 0.36);
}

.btn--whatsapp {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 168, 81, 0.24);
}

.btn--whatsapp:hover {
  background: var(--wa-green-hover);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost-light {
  background: transparent;
  color: #cbd5e1;
  border-color: transparent;
}

.btn--ghost-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline-dark {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.22);
  color: var(--ink-strong);
}

.btn--outline-dark:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(27, 70, 164, 0.05);
}

.btn-link {
  background: none;
  border: 0;
  color: var(--ink-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0.4rem;
  font-size: 0.9rem;
}

.btn-link:hover {
  color: var(--ink-strong);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--blue {
  background: rgba(59, 113, 232, 0.22);
  color: #bfdbfe;
  border: 1px solid rgba(59, 113, 232, 0.4);
}

.tag--red {
  background: rgba(214, 40, 40, 0.24);
  color: #fecaca;
  border: 1px solid rgba(214, 40, 40, 0.45);
}

.tag--green {
  background: rgba(22, 128, 60, 0.25);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.tag--steel {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.section--tinted .tag--green,
.section--light .tag--green {
  background: rgba(22, 128, 60, 0.12);
  color: #14532d;
  border-color: rgba(22, 128, 60, 0.24);
}

.section--tinted .tag--blue,
.section--light .tag--blue {
  background: rgba(27, 70, 164, 0.1);
  color: var(--brand-blue);
  border-color: rgba(27, 70, 164, 0.24);
}

/* ==========================================================================
   Utility Bar & Header
   ========================================================================== */

.utility-bar {
  background: #070b14;
  color: #cbd5e1;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.utility-bar__info,
.utility-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.utility-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #93c5fd;
  font-weight: 600;
}

.utility-link:hover {
  text-decoration: underline;
}

.utility-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 30, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 17, 30, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand__has {
  color: #ffffff;
}

.brand__tel {
  color: #ef4444;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: #94a3b8;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0;
  position: relative;
  transition: color 160ms ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .utility-bar__info .utility-item:nth-child(3),
  .utility-divider,
  .header-cta .btn--primary,
  .header-cta .btn--whatsapp {
    display: none;
  }
  .site-header__inner {
    height: 66px;
    gap: 0.75rem;
  }
  .brand__name {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Hero Section — Architectural Industrial Grid + Live Project Switcher
   ========================================================================== */

.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  overflow: clip;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

/* Signature subtle wire-mesh diagonal lattice texture */
.hero__mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 15%, rgba(27, 70, 164, 0.34), transparent 46%),
    radial-gradient(circle at 82% 20%, rgba(214, 40, 40, 0.16), transparent 40%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 34px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 34px
    );
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: clamp(0.64rem, 1.8vw, 0.74rem);
  letter-spacing: 0.06em;
  color: #dbeafe;
  margin-bottom: 1.15rem;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
  flex-shrink: 0;
}

.hero__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.3vw, 3.85rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  overflow-wrap: break-word;
}

.hero__title-accent {
  display: block;
  color: #60a5fa;
}

.hero__desc {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  color: #cbd5e1;
  max-width: 56ch;
}

.hero__desc strong {
  color: #ffffff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.trust-pill svg {
  color: #4ade80;
}

/* Hero Visual Stage */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #141e33;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
}

.hero-stage__slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.hero-stage__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-stage__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stage__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 3.5rem 1.35rem 1.25rem;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.94) 18%, rgba(7, 11, 20, 0.55) 65%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.hero-stage__caption strong {
  font-size: 1.12rem;
  color: #fff;
  line-height: 1.25;
}

.hero-stage__caption > span:last-child {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.hero-stage__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(11, 17, 30, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: right;
}

.hero-stage__badge-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.hero-stage__badge-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.hero-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.hero-switcher__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hero-switcher__btn .mono {
  font-size: 0.72rem;
  color: #60a5fa;
}

.hero-switcher__btn:hover,
.hero-switcher__btn.is-active {
  background: rgba(59, 113, 232, 0.18);
  border-color: rgba(96, 165, 250, 0.55);
  color: #fff;
}

/* Metrics Strip */
.metrics-strip {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metrics-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card__num {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ef4444;
  white-space: nowrap;
}

.metric-card__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.metric-card__text strong {
  font-size: 0.92rem;
  color: #fff;
}

.metric-card__text span {
  font-size: 0.78rem;
  color: #94a3b8;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 560px) {
  .hero-switcher {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics-strip__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metric-card {
    border-right: 0;
  }
}

/* ==========================================================================
   Shared Section Layout
   ========================================================================== */

.section {
  padding: clamp(4rem, 7vw, 6.25rem) 0;
}

.section--light {
  background: var(--bg-canvas);
}

.section--tinted {
  background: var(--bg-tinted);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.section-kicker--accent {
  color: #ef4444;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.section--dark .section-title {
  color: #fff;
}

.section-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-muted);
}

.section--dark .section-lead {
  color: var(--ink-on-dark-muted);
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 70, 164, 0.28);
}

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1e293b;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.05);
}

.service-card__index {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(11, 17, 30, 0.82);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.28rem 0.58rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.service-card__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__body h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.service-card__body p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-body);
}

.spec-list {
  list-style: none;
  margin: auto 0 1.2rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.spec-list strong {
  color: var(--ink-strong);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(27, 70, 164, 0.2);
  background: rgba(27, 70, 164, 0.05);
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.service-card__cta:hover {
  background: var(--brand-blue);
  color: #fff;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Manufacturing Bento Grid (Dark Industrial Showcase)
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 270px;
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--bg-dark-card);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--tall {
  grid-row: span 2;
}

.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.bento-card:hover img {
  transform: scale(1.04);
}

.bento-card__overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 4.5rem 1.4rem 1.4rem;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.95) 20%, rgba(7, 11, 20, 0.62) 65%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.bento-card__overlay h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.bento-card__overlay p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
  max-width: 48ch;
}

@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }
  .bento-card--wide {
    grid-column: span 2;
  }
  .bento-card--tall {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 280px;
  }
  .bento-card--wide {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Filterable Project Gallery
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.85rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--ink-body);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-pill__count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--bg-tinted);
  color: var(--ink-muted);
}

.filter-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.filter-pill.is-active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

.filter-pill.is-active .filter-pill__count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-light);
  padding: 0;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.gallery-item.is-featured {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item__overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 3rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.92) 15%, rgba(7, 11, 20, 0.4) 65%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-item__cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}

.gallery-item__title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.gallery-item__zoom {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 17, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom {
  opacity: 1;
}

.gallery-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 1080px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-item.is-featured {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery-item.is-featured {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Field Videos Section
   ========================================================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
}

.video-card__frame {
  background: #070b14;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 440px;
}

.video-card__frame video {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

.video-card__info {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
}

.video-card__info h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.25;
}

.video-card__info p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-body);
}

@media (max-width: 960px) {
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .video-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .video-card__frame,
  .video-card__frame video {
    max-height: 380px;
  }
}

/* ==========================================================================
   Interactive Meterage & Material Calculator
   ========================================================================== */

.calc-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.calc-panel--inputs {
  background: var(--bg-surface);
  padding: clamp(1.75rem, 3.5vw, 3rem);
}

.calc-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.calc-desc {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.calc-control {
  margin-bottom: 1.35rem;
}

.calc-control label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 0.45rem;
}

.calc-control__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.calc-control__top label {
  margin-bottom: 0;
}

.calc-output {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-red);
}

.calc-range {
  width: 100%;
  accent-color: var(--brand-red);
  cursor: pointer;
}

.calc-range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.calc-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.calc-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  background: var(--bg-canvas);
  color: var(--ink-strong);
  font-weight: 600;
}

.calc-panel--result {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
}

.calc-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.calc-spacing {
  font-size: 0.74rem;
  color: #94a3b8;
}

.calc-stats {
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.calc-stat[hidden] {
  display: none;
}

.calc-stat dt {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.calc-stat dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  text-align: right;
}

.calc-note {
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
}

.calc-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 920px) {
  .calc-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .calc-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Process Steps, Service Areas & FAQ
   ========================================================================== */

.process-grid {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.process-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(27, 70, 164, 0.1);
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--ink-strong);
}

.process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-body);
}

.info-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.areas-box,
.faq-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.areas-box h3,
.faq-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.areas-box > p {
  margin: 0 0 1.25rem;
  font-size: 0.94rem;
}

.area-tags {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-tags li {
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-tinted);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.areas-box__photo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
}

.areas-box__photo img {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.areas-box__photo strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.95rem;
}

.areas-box__photo span {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--ink-strong);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--brand-red);
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.05rem;
  font-size: 0.92rem;
  color: var(--ink-body);
}

@media (max-width: 960px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Contact Section & Accessible Form (:user-invalid + fallback)
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(59, 113, 232, 0.18);
  color: #93c5fd;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card--wa .contact-card__icon {
  background: rgba(30, 168, 81, 0.2);
  color: #4ade80;
}

.contact-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.contact-card strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.contact-card__sub {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #93c5fd;
  font-weight: 600;
}

.map-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--bg-dark-elevated);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 210px;
  border: 0;
  filter: saturate(0.85) contrast(1.04);
}

.map-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #dbeafe;
  background: rgba(27, 70, 164, 0.25);
}

.map-card__cta:hover {
  background: rgba(27, 70, 164, 0.42);
}

.contact-form-card {
  background: var(--bg-surface);
  color: var(--ink-body);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.contact-form-card__sub {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.quote-form .field {
  margin-bottom: 1.15rem;
}

.quote-form .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quote-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 0.25rem;
}

.quote-form label span {
  color: var(--brand-red);
}

/* Format hints placed ABOVE inputs so autofill popovers & mobile keyboards don't cover them */
.quote-form .hint {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  background: var(--bg-canvas);
  color: var(--ink-strong);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.quote-form textarea {
  resize: vertical;
}

.error-msg {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #b91c1c;
}

/* Validate only after user interaction; :is() preserves support where :user-invalid is absent */
.quote-form :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: #d93025;
  background-color: #fef2f2;
}

.quote-form :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

.quote-form :is(input, select, textarea):is(:user-valid, .user-valid-fallback) {
  border-color: #16803c;
}

.quote-confirmation {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}

.quote-confirmation__badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: #16803c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.quote-confirmation h4 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #14532d;
}

.quote-confirmation p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  white-space: pre-line;
  color: #1e293b;
  background: #fff;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid #bbf7d0;
}

.quote-confirmation__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .quote-form .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Footer & Floating Quick Contact
   ========================================================================== */

.site-footer {
  background: #070b14;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 3.5rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
}

.footer-brand p {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  max-width: 40ch;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}

@media (max-width: 780px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  gap: 0.6rem;
}

.fab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease;
}

.fab:hover {
  transform: translateY(-2px);
}

.fab--call {
  background: var(--brand-blue);
}

.fab--wa {
  background: var(--wa-green);
}

/* ==========================================================================
   Native Modal Dialogs (Lightbox & Mobile Drawer)
   Per modern-web-guidance: never set display unconditionally on dialog;
   contain scroll via overscroll-behavior on dialog:modal and dialog::backdrop.
   ========================================================================== */

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Lightbox Dialog */
.lightbox-dialog {
  width: min(94vw, 1060px);
  max-height: 92dvh;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: #0d1526;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  margin: auto;
}

.lightbox-dialog[open] {
  display: flex;
  flex-direction: column;
}

.lightbox__frame {
  display: flex;
  flex-direction: column;
  max-height: 92dvh;
}

.lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox__title {
  margin: 0.35rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.lightbox__header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lightbox__counter {
  font-size: 0.82rem;
  color: #94a3b8;
}

.lightbox__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox__close:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.lightbox__stage {
  position: relative;
  background: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: 66dvh;
  overflow: hidden;
}

.lightbox__stage img {
  max-height: 66dvh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(11, 17, 30, 0.78);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox__nav:hover {
  background: var(--brand-blue);
}

.lightbox__nav--prev {
  left: 0.85rem;
}

.lightbox__nav--next {
  right: 0.85rem;
}

.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.lightbox__desc {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Mobile Navigation Drawer Dialog */
.mobile-drawer {
  width: min(86vw, 340px);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b111e;
  color: #fff;
}

.mobile-drawer[open] {
  display: flex;
}

.mobile-drawer__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.25rem;
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
  gap: 0.25rem;
}

.mobile-drawer__nav a {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: #e2e8f0;
}

.mobile-drawer__nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-drawer__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   Scroll-Driven Entry Reveal (Native View Timeline + IO Fallback)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(22px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-on-scroll {
      animation: reveal-up auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 22%;
    }
  }

  /* Fallback transition only when JS marks elements for IO reveal */
  .reveal-on-scroll.io-pending {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 460ms ease, transform 460ms ease;
  }

  .reveal-on-scroll.io-pending.io-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
