:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --bg-deep: #e7eef6;
  --surface: #ffffff;
  --surface-alt: #f0f5fb;
  --text: #0d1b2a;
  --muted: #5c7088;
  --blue: #2f7bdc;
  --blue-dark: #0a3b73;
  --blue-light: #8fd3ff;
  --border: rgba(10, 59, 115, 0.12);
  --shadow: 0 18px 50px rgba(10, 35, 70, 0.08);
  --shadow-strong: 0 26px 70px rgba(10, 35, 70, 0.14);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #0d1c31;
  --surface: #0e1c30;
  --surface-alt: #12253e;
  --text: #eef6ff;
  --muted: #9eb4cb;
  --border: rgba(143, 211, 255, 0.14);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 26px 84px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(143, 211, 255, 0.16), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(47, 123, 220, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, var(--bg-deep) 30%) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  background:
    linear-gradient(110deg, transparent 24%, rgba(255,255,255,0.05) 48%, transparent 56%),
    linear-gradient(110deg, transparent 38%, rgba(143,211,255,0.035) 50%, transparent 62%);
  background-size: 240% 240%;
  opacity: 0.28;
  animation: sweepLight 22s ease-in-out infinite;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* custom cursor removed per request */

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.6;
}
.orb-a { width: 360px; height: 360px; background: rgba(47, 123, 220, 0.14); top: -120px; right: -80px; }
.orb-b { width: 420px; height: 420px; background: rgba(143, 211, 255, 0.16); bottom: -150px; left: -90px; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: 0.05;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 28px 28px;
}

.bg-sweep {
  position: fixed;
  inset: -20% -15%;
  pointer-events: none;
  z-index: -3;
  background: radial-gradient(circle at 0% 50%, rgba(255,255,255,0.08), transparent 28%);
  filter: blur(42px);
  opacity: 0.16;
  animation: driftSweep 28s ease-in-out infinite;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem;
}

.header-shell {
  width: min(1240px, calc(100% - 0.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 22px;
  border: 1px solid transparent;
  transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease, border-radius 220ms ease;
}

.site-header.is-floating .header-shell {
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-strong);
}

.site-header.nav-open .header-shell {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: var(--shadow-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: cover;
  background: transparent;
  box-shadow: none;
}

.brand span { display: flex; flex-direction: column; gap: 0.12rem; }
.brand strong { font-size: 0.98rem; letter-spacing: 0.02em; }
.brand small, .eyebrow, .service-index, .theme-label, .footer, .showcase-icon { color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.92;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.theme-toggle-track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-dark));
  position: relative;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
  transition: transform 220ms ease;
}

[data-theme="dark"] .theme-toggle-thumb { transform: translateX(20px); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible { transform: translateY(-2px); }

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  box-shadow: var(--shadow-strong);
}

.button.secondary,
.button.header-cta {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.section {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 2rem;
  padding-top: 6.8rem;
}

.hero-copy { max-width: 920px; }
.hero-visual {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-model-shell {
  width: 100%;
  max-width: 640px;
  min-height: 560px;
  padding: 1rem;
  border-radius: 36px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 85%, var(--bg-deep) 15%));
  box-shadow: var(--shadow-strong);
  transform: translateX(0);
  transition: transform 320ms ease;
  will-change: transform;
}

.hero-model {
  width: 100%;
  height: min(72vh, 620px);
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(143, 211, 255, 0.22), transparent 45%), linear-gradient(180deg, #f8fbff, #edf4fb);
  display: block;
}

.hero-model::part(default-slot) {
  display: block;
}

.model-loading {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.74rem;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.cta-panel h2 {
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 6.4rem);
  max-width: 10ch;
  margin-top: 0.7rem;
}

.lead,
.section-heading p,
.service-card p,
.process-step p,
.showcase-card p,
.cta-panel p {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1.3rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.hero-metrics div {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-metrics strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-metrics span { color: var(--muted); font-size: 0.92rem; }

.glass-panel {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--bg-deep) 10%));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-banner { padding-top: 0; }
.marquee {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  padding: 1.2rem 0;
  animation: marquee 15s linear infinite;
}

.marquee-track .company-logo {
  height: 90px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 280ms ease;
  filter: grayscale(100%);
}

.marquee-track .company-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.cta-highlight {
  display: inline-block;
  background: none;
  color: var(--blue-dark);
  padding: 0;
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.cta-panel h2 { font-size: clamp(2.2rem, 4vw, 4.4rem); }

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

.service-card,
.showcase-card,
.process-step,
.cta-panel {
  border-radius: 28px;
  padding: 1.45rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; position: relative; cursor: pointer; }
.service-card h3, .showcase-card h3, .process-step h3 { margin: 0.35rem 0 0.5rem; font-size: 1.18rem; }
.service-card:hover, .showcase-card:hover, .process-step:hover, .cta-panel:hover { transform: translateY(-5px); box-shadow: var(--shadow-strong); }

.service-cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.service-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.service-modal[aria-hidden="false"] {
  display: flex;
  animation: fadeIn 320ms ease;
}

.service-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  animation: fadeIn 320ms ease;
}

.service-modal-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 36px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--bg-deep) 10%));
  box-shadow: var(--shadow-strong);
  animation: slideUp 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease;
  z-index: 3;
}

.modal-close:hover {
  transform: scale(1.1);
  background: var(--border);
}

.modal-title {
  margin: 0 0 1.5rem 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.modal-image {
  width: 100%;
  height: 280px;
  border-radius: 24px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: linear-gradient(135deg, var(--surface-alt), var(--bg-deep));
}

.modal-description {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 1.5rem 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .modal-images { grid-template-columns: 1fr; }
  .modal-image { height: 240px; }
  .service-modal-content { padding: 1.5rem; }
  .modal-close { top: 1rem; right: 1rem; width: 36px; height: 36px; font-size: 1.4rem; }
}

.service-index { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; }

.coming-soon { background: linear-gradient(180deg, rgba(49,130,232,0.12), var(--surface)); }
.coming-soon::after {
  content: "Soon";
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.showcase-card { min-height: 220px; }
.showcase-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47,123,220,0.12), rgba(143,211,255,0.22));
  border: 1px solid var(--border);
  font-weight: 800;
}

.process-step span {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  font-weight: 700;
}

.cta-panel {
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.4rem 0 2.5rem;
  text-align: center;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes sweepLight {
  0%, 100% { opacity: 0.24; transform: translateX(-3%); }
  50% { opacity: 0.34; transform: translateX(3%); }
}

@keyframes driftSweep {
  0%, 100% { transform: translateX(-2%) translateY(-1%) scale(1); }
  50% { transform: translateX(2%) translateY(1%) scale(1.02); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1180px) {
  .hero,
  .services-grid,
  .showcase-grid,
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; padding-top: 7.2rem; }
  .hero-visual { min-height: 520px; }
  .hero-model-shell { min-height: 520px; }
  .hero-model { height: min(68vh, 560px); min-height: 460px; }
}

@media (max-width: 920px) {
  .site-header { padding: 0.75rem; }
  .header-shell {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    border-radius: 28px;
  }
  .site-header.is-floating .header-shell { border-radius: 28px; }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .menu-toggle { display: inline-flex; }
  .nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 0.45rem;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a {
    width: 100%;
    padding: 0.62rem 0.15rem;
  }
  .site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .hero, .services-grid, .showcase-grid, .process-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
  .hero h1 { font-size: clamp(2rem, 6.5vw, 3.2rem); }
  .hero-copy { padding: 0 0.75rem; }
  .hero-actions { gap: 0.8rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 460px; }
  .hero-model-shell { min-height: 460px; border-radius: 28px; }
  .hero-model { height: auto; max-height: 56vh; min-height: 320px; }
  .modal-images { grid-template-columns: 1fr; }
  .modal-image { height: 240px; }
  .service-modal-content { padding: 1.5rem; }
  .modal-close { top: 1rem; right: 1rem; width: 36px; height: 36px; font-size: 1.4rem; }
}

@media (max-width: 560px) {
  .section { width: min(100% - 1rem, 1240px); padding: 4.2rem 0; }
  .theme-toggle { display: none; }
  .header-cta { display: none; }
  .brand-logo { width: 48px; height: 48px; }
  .brand strong { font-size: 0.92rem; }
  .brand small { font-size: 0.72rem; }
  .header-actions { justify-content: flex-end; margin-left: auto; }
  .hero { padding-top: 8rem; gap: 0; }
  .hero-copy { padding: 0 1rem; }
  .hero-visual { min-height: 380px; margin-top: 1.5rem; }
  .hero h1 { font-size: clamp(1.5rem, 7.5vw, 2.4rem); line-height: 1.15; margin-top: 0.5rem; max-width: 100%; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.24em; }
  .lead { font-size: 0.96rem; line-height: 1.65; }
  .hero-actions { margin: 1.2rem 0 1rem; }
  .hero-actions .button { width: 100%; padding: 0.8rem 1rem; font-size: 0.92rem; }
  .hero-metrics { grid-template-columns: 1fr; gap: 0.6rem; margin-top: 1.2rem; }
  .hero-metrics div { padding: 0.8rem 0.9rem; border-radius: 16px; }
  .hero-metrics strong { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }
  .hero-metrics span { font-size: 0.85rem; }
  .hero-model-shell { padding: 0.5rem; max-width: 100%; border-radius: 20px; min-height: 320px; }
  .hero-model { min-height: 300px; height: auto; max-height: 44vh; border-radius: 16px; }
  .cta-panel { align-items: start; flex-direction: column; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .button { width: 100%; }
  .button { width: 100%; justify-content: center; }
  .footer a { color: var(--blue); text-decoration: underline; }
  .modal-images { grid-template-columns: 1fr; }
  .modal-image { height: 200px; }
  .service-modal-content { padding: 1rem; width: calc(100% - 2rem); max-width: none; border-radius: 14px; }
  .modal-close { top: 0.8rem; right: 0.8rem; width: 32px; height: 32px; font-size: 1.2rem; }
}