/* ==========================================================================
   JCube Services - graphite black with #1c0035 violet accents
   The violet is a touch, not the base: most of the page is graphite.
   ========================================================================== */

:root {
  /* Brand violet - used sparingly, for accents and glows */
  --violet-950: #0d0019;
  --violet-900: #1c0035;   /* the client's tone */
  --violet-800: #2a0a4d;
  --violet-700: #3d1a63;
  --violet-600: #5b2d8c;
  --violet-500: #7c3aed;
  --violet-400: #8b5cf6;
  --violet-300: #a78bfa;
  --violet-200: #c4b5fd;
  --violet-100: #ddd6fe;

  /* Graphite - the actual base of the site */
  --graphite-950: #0a0a0c;
  --graphite-900: #101014;
  --graphite-850: #15151b;
  --graphite-800: #1a1a21;
  --graphite-750: #20202a;
  --graphite-700: #272733;
  --graphite-600: #33333f;
  --graphite-500: #44444f;

  /* Text */
  --text: #f3f2f6;
  --text-soft: #c2c1cc;
  --text-muted: #8e8d9a;
  --text-faint: #6b6a76;

  /* Semantic */
  --accent: var(--violet-400);
  --accent-strong: var(--violet-300);
  --accent-soft: rgba(139, 92, 246, 0.12);
  --success: #34d399;
  --danger: #f87171;

  /* Surfaces */
  --bg: var(--graphite-950);
  --surface: var(--graphite-900);
  --surface-2: var(--graphite-850);
  --surface-3: var(--graphite-800);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(167, 139, 250, 0.30);
  --violet-line: rgba(28, 0, 53, 0.9);

  /* Type */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.9rem;
  --fs-2xl: 2.6rem;

  /* Space + shape */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2.25rem;
  --sp-7: 3.5rem;
  --sp-8: 5rem;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 20px 50px rgba(28, 0, 53, 0.75);

  --header-h: 72px;
  --shell: 1440px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal: 620ms;
}

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

.material-icons {
  display: inline-block;
  font-family: 'Material Icons';
  font-size: 1em;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
}

html {
  scroll-behavior: smooth;
  /* Header is sticky, so anchor jumps must clear it. */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  isolation: isolate;
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(55rem 45rem at 86% 12%, rgba(45, 12, 80, 0.48), transparent 72%),
    radial-gradient(50rem 42rem at 12% 58%, rgba(28, 0, 53, 0.42), transparent 72%),
    radial-gradient(58rem 48rem at 88% 94%, rgba(45, 12, 80, 0.34), transparent 72%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: -18vh -14vw;
  content: "";
  pointer-events: none;
  background: radial-gradient(
    ellipse 42% 38% at 34% 42%,
    rgba(124, 58, 237, 0.23),
    rgba(28, 0, 53, 0.14) 42%,
    transparent 74%
  );
  opacity: 0.72;
  filter: blur(22px);
  will-change: opacity, transform;
  animation: violet-glow 30s ease-in-out infinite alternate;
}
@keyframes violet-glow {
  from { opacity: 0.55; transform: translate3d(-1%, -0.5%, 0) scale(0.92); }
  to { opacity: 0.82; transform: translate3d(1%, 0.5%, 0) scale(1.08); }
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(var(--sp-4), 4vw, var(--sp-6));
}

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

/* Keep hidden notices out of the layout even when they use display: flex. */
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--violet-700);
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* --- Scroll reveal -------------------------------------------------------- */
/* JavaScript enhances visible content with reveal-on-scroll animations. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-stuck {
  background: rgba(10, 10, 12, 0.95);
  border-bottom-color: var(--violet-line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  max-width: 1500px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.brand__logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: contain;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
}
.brand__slogan {
  font-size: var(--fs-sm);
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  color: var(--text-muted);
  max-width: 20ch;
  border-left: 1px solid var(--border-strong);
  padding-left: var(--sp-3);
}
.brand:hover .brand__slogan { color: var(--accent-strong); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text-soft);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle:hover,
.menu-toggle:focus-visible { color: #fff; border-color: var(--border-strong); }

.topnav__list { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }

.topnav__link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: calc(var(--fs-sm) + 2px);
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.topnav__link:hover { color: var(--text); background: var(--accent-soft); }

.topnav__link.is-active {
  color: #fff;
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.topnav__services {
  position: relative;
  display: flex;
  align-items: center;
}
.topnav__services-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 36px;
  margin-left: -6px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.topnav__services-toggle:hover,
.topnav__services-toggle:focus-visible { color: #fff; background: var(--accent-soft); }
.topnav__services-toggle .material-icons { transition: transform 240ms var(--ease); }
.topnav__services.is-open .topnav__services-toggle .material-icons { transform: rotate(180deg); }
.topnav__submenu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1;
  min-width: 230px;
  max-height: 0;
  padding: 0 var(--sp-2);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  background: rgba(16, 16, 20, 0.98);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: max-height 280ms var(--ease), padding 280ms var(--ease),
              opacity 200ms var(--ease), transform 280ms var(--ease),
              visibility 0s linear 280ms, border-color 200ms var(--ease);
}
.topnav__services.is-open .topnav__submenu {
  max-height: 360px;
  padding-block: var(--sp-2);
  opacity: 1;
  visibility: visible;
  transform: none;
  border-color: var(--border-strong);
  transition-delay: 0s;
}
@media (min-width: 861px) {
  .topnav__services:hover .topnav__submenu,
  .topnav__services:focus-within .topnav__submenu {
    max-height: 360px;
    padding-block: var(--sp-2);
    opacity: 1;
    visibility: visible;
    transform: none;
    border-color: var(--border-strong);
    transition-delay: 0s;
  }
}
.topnav__submenuLink {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-soft);
  font-size: calc(var(--fs-sm) + 2px);
  border-radius: var(--radius-sm);
  transition: color 180ms var(--ease), background 180ms var(--ease), padding 180ms var(--ease);
}
.topnav__submenuLink:hover,
.topnav__submenuLink:focus-visible,
.topnav__submenuLink.is-active {
  padding-left: var(--sp-4);
  color: #fff;
  background: var(--accent-soft);
}

.topnav__cta.is-active { box-shadow: var(--shadow-glow); }
.topnav__cta.btn--sm { font-size: calc(var(--fs-sm) + 2px); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.72rem 1.4rem;
  font-size: var(--fs-base);
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
  color: #fff;
  box-shadow: 0 6px 20px rgba(28, 0, 53, 0.8);
}
.btn--primary:hover { box-shadow: var(--shadow-glow); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); }

.btn--sm { padding: 0.45rem 1rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; justify-content: center; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(var(--sp-7), 7vw, var(--sp-8));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(90% 120% at 82% 0%, rgba(28, 0, 53, 0.85), transparent 62%),
    radial-gradient(70% 100% at 8% 100%, rgba(45, 12, 80, 0.5), transparent 60%),
    var(--graphite-950);
}

.hero__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(var(--sp-5), 4vw, var(--sp-7));
}

.hero__title {
  font-size: clamp(1.9rem, 3.4vw, var(--fs-2xl));
  margin-bottom: var(--sp-4);
  letter-spacing: -0.015em;
}
.hero__titleText { display: inline-block; min-height: 1.15em; }
.js .hero__titleWord {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.js .hero__titleWord.is-visible { opacity: 1; transform: none; }
.hero__lead {
  color: var(--text-soft);
  font-size: var(--fs-md);
  max-width: 54ch;
  margin-bottom: var(--sp-5);
}
.hero__services { display: block; }
.js .hero__service {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.js .hero__service.is-visible { opacity: 1; transform: none; }
.hero__statement { display: block; margin-top: 0.35em; font-style: italic; }
.js .hero__statement {
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .hero__statement.is-visible { opacity: 1; transform: none; }
.js .hero__statement.is-shimmering .hero__engraved-char {
  animation: hero-engrave 260ms ease-out both;
  animation-delay: calc(var(--char-index) * 19ms);
}
@keyframes hero-engrave {
  0% { opacity: 0; color: #fff; text-shadow: 0 0 12px #fff, 0 0 24px var(--accent); }
  30% { opacity: 1; color: #fff; text-shadow: 0 0 9px #fff, 0 0 18px var(--accent); }
  100% { opacity: 1; color: var(--text-soft); text-shadow: none; }
}
.js .hero__followup {
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}
.js .hero__followup.is-visible { opacity: 1; transform: none; }
.js [data-hero-carousel] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js [data-hero-carousel].is-entered { opacity: 1; transform: none; }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --- Carousel ------------------------------------------------------------- */
.carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.carousel__head { max-width: 62ch; }

.carousel__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--graphite-850);
  overflow: hidden;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), visibility 0s linear 700ms;
}
.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), visibility 0s;
  z-index: 1;
}

.carousel__frame { position: relative; flex: 1; min-height: 0; }

.carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-align: center;
  color: var(--text-muted);
  background:
    radial-gradient(120% 120% at 25% 0%, var(--violet-800), var(--graphite-900));
  transition: opacity 350ms var(--ease), visibility 0s linear 350ms;
}
.carousel__frame.has-image .carousel__placeholder { opacity: 0; visibility: hidden; }
.carousel__placeholder .material-icons { font-size: 2.6rem; color: var(--violet-400); opacity: 0.8; }
.carousel__placeholderName { font-size: var(--fs-lg); font-weight: 700; color: var(--text-soft); }

.carousel__caption {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: rgba(10, 10, 12, 0.92);
  border-top: 1px solid var(--border);
  text-align: left;
}
.carousel__captionIcon { display: none; }
.carousel__captionText { display: flex; flex-direction: column; min-width: 0; }
.carousel__captionText strong { font-size: var(--fs-md); }
.carousel__captionText small { font-size: var(--fs-xs); color: var(--text-muted); }
.carousel__captionCta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--accent-strong);
  white-space: nowrap;
}
.carousel__slide:hover .carousel__captionCta { color: #fff; }

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.carousel__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-soft);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.carousel__arrow:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
  border-color: var(--accent);
}

.carousel__dots { display: flex; gap: var(--sp-2); }
.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: var(--graphite-600);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.carousel__dot:hover { background: var(--graphite-500); }
.carousel__dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--violet-500), var(--violet-300));
}

/* --- Bands / sections ----------------------------------------------------- */
.band {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(var(--sp-7), 7vw, var(--sp-8));
  border-bottom: 1px solid var(--border);
}
.band--services { background: transparent; }
.band--about {
  background: radial-gradient(80% 100% at 50% 0%, rgba(28, 0, 53, 0.34), transparent 65%);
}
.band--contact { background: transparent; border-bottom: 0; }

.stack { display: flex; flex-direction: column; gap: 0; }

/* --- Service block -------------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  gap: clamp(var(--sp-5), 4vw, var(--sp-7));
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.service--img-first .service__media { order: 1; }
.service--img-first .service__body { order: 2; }
.service--text-first .service__media { order: 2; }
.service--text-first .service__body { order: 1; }

.service__figure { position: relative; }

.service__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    radial-gradient(120% 120% at 22% 0%, var(--violet-800), var(--graphite-900));
}

.service__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-5);
  text-align: center;
  color: var(--text-muted);
}
.service__placeholder i { font-size: 2.8rem; color: var(--violet-400); opacity: 0.8; }
.service__placeholderName { font-size: var(--fs-lg); font-weight: 700; color: var(--text-soft); }
.service__placeholderHint { font-size: var(--fs-xs); }
.service__placeholderHint code {
  padding: 1px 5px;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--accent-strong);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.service__title {
  font-size: clamp(1.4rem, 2.2vw, var(--fs-xl));
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.service__short,
.about__text,
.contact__text {
  color: var(--text-soft);
  font-size: var(--fs-md);
  max-width: 60ch;
}

.service__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-4);
}
.service__highlights li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.service__highlights i { color: var(--accent); font-size: 0.8rem; }
.service__more { color: var(--text-faint) !important; }

.service__actions,
.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.service-modal {
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  padding: var(--sp-6);
  color: var(--text);
  background: var(--graphite-900);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}
.service-modal::backdrop { background: rgba(0, 0, 0, 0.78); }
.service-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}
.service-modal__title { color: var(--accent-strong); font-size: var(--fs-xl); }
.service-modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text-soft);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.service-modal__close:hover { color: #fff; border-color: var(--border-strong); }
.service-modal__lead { margin-top: var(--sp-4); color: var(--text-soft); }
.service-modal__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.service-modal__item {
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.service-modal__item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 0 18px rgba(124, 58, 237, 0.24);
  transform: translateY(-2px);
}
.service-modal__item h4 { margin-bottom: var(--sp-1); font-size: var(--fs-base); color: #fff; }
.service-modal__item p { font-size: var(--fs-sm); color: var(--text-muted); }
.service-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* --- Socials -------------------------------------------------------------- */
.socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.socials__note { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-faint); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
  color: var(--text-soft);
  background: #F3F2F6;
  border: 1px solid #F3F2F6;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.social-icon { display: block; width: 1.1em; height: 1.1em; }
.icon-btn--lg { width: 44px; height: 44px; font-size: 1.05rem; }
.icon-btn:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}
.icon-btn.is-pending { opacity: 0.72; cursor: not-allowed; }
.icon-btn.is-pending:hover {
  transform: none;
  color: var(--text-soft);
  background: #CACFD6;
  border-color: #CACFD6;
}

/* --- About ---------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.75fr);
  align-items: center;
  gap: clamp(var(--sp-5), 6vw, var(--sp-8));
}
.about__content { min-width: 0; }
.about__brand {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}
.about__brand img { width: 100%; height: 100%; object-fit: cover; }
.about__title {
  font-size: clamp(1.5rem, 2.6vw, var(--fs-xl));
  margin-bottom: var(--sp-4);
  max-width: none;
}
.about__text { max-width: none; }
.about__text + .about__text { margin-top: var(--sp-3); }

.about__goal {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet-500);
  border-radius: var(--radius);
}
.about__goalHeading {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-lg);
  color: #fff;
}
.about__goal .about__text { text-align: justify; }

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.about__card a {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  height: 100%;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.22s var(--ease);
}
.about__card a:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.about__cardIcon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
  border-radius: var(--radius-sm);
}
.about__cardTitle { font-weight: 700; }
.about__cardText { font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Contact -------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(var(--sp-5), 4vw, var(--sp-7));
  max-width: 1320px;
  margin-inline: auto;
}

.contact__title {
  font-size: clamp(1.5rem, 2.6vw, var(--fs-xl));
  margin-bottom: var(--sp-3);
}

.contact__details { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
.contact__details li { display: flex; align-items: center; gap: var(--sp-3); }
.contact__details a:hover { color: var(--accent-strong); text-decoration: underline; }
.contact__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.contact__pending { color: var(--text-muted); }
.contact__brand {
  display: grid;
  place-items: center;
  width: min(100%, 150px);
  aspect-ratio: 1;
  margin-top: var(--sp-6);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}
.contact__brand img { width: 100%; height: 100%; object-fit: cover; }

.contact__formWrap {
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact__formTitle { margin-bottom: var(--sp-4); font-size: var(--fs-lg); }

.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form__field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form__label { font-size: var(--fs-sm); font-weight: 650; color: var(--text-soft); }

.form__input {
  width: 100%;
  padding: 0.7rem var(--sp-4);
  font: inherit;
  color: var(--text);
  background: var(--graphite-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.form__input::placeholder { color: var(--text-faint); }
.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form__input--area { resize: vertical; min-height: 130px; }

/* Browser-side validation messages, shown under the offending field. */
.form__error {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--danger);
}
.form__error .material-icons { font-size: 0.85em; }
.form__input[aria-invalid="true"] {
  border-color: var(--danger);
  background: rgba(248, 113, 113, 0.06);
}
.form__input[aria-invalid="true"]:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}
select.form__input { cursor: pointer; }
select.form__input option { background: var(--graphite-900); color: var(--text); }

.form__hint { font-size: var(--fs-sm); color: var(--text-muted); }

.notice {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.notice__title { margin-bottom: var(--sp-1); font-size: var(--fs-base); color: inherit; }
.notice__text, .notice__list { font-size: var(--fs-sm); color: var(--text-soft); }
.notice__list { list-style: disc; padding-left: var(--sp-5); }
.notice--ok { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); color: var(--success); }
.notice--error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); color: var(--danger); }
.notice .material-icons { font-size: 1.15rem; margin-top: 2px; }

/* --- Page shell ----------------------------------------------------------- */
.page {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--sp-6) clamp(var(--sp-4), 4vw, var(--sp-6)) var(--sp-8);
}

.errorPage { max-width: 620px; margin-inline: auto; text-align: center; padding-block: var(--sp-8); }
.errorPage__code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--violet-300), var(--violet-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.errorPage__title { margin: var(--sp-4) 0; font-size: var(--fs-xl); }
.errorPage__text { color: var(--text-soft); }
.errorPage__detail {
  margin-top: var(--sp-3);
  font-family: ui-monospace, Consolas, monospace;
  font-size: var(--fs-xs);
  color: var(--danger);
}
.errorPage .about__actions { justify-content: center; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(70% 140% at 50% 100%, rgba(28, 0, 53, 0.38), transparent 75%),
    rgba(10, 10, 12, 0.82);
  border-top: 1px solid var(--violet-line);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  min-height: 70px;
  padding-block: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.site-footer__social { display: flex; gap: var(--sp-2); }
.site-footer__note { font-size: var(--fs-xs); color: var(--text-faint); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .brand__slogan { display: none; }
  .topnav__link { padding: var(--sp-2); font-size: calc(var(--fs-xs) + 2px); }
}

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .site-header__inner { flex-wrap: wrap; padding-block: var(--sp-2); }
  .brand { gap: var(--sp-2); }
  .brand__logo { height: 30px; }
  .brand__slogan {
    display: block;
    max-width: none;
    padding-left: 0.4rem;
    font-size: 0.6rem;
    white-space: nowrap;
  }
  .topnav {
    display: block;
    width: 100%;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height 320ms var(--ease), opacity 220ms var(--ease),
                transform 320ms var(--ease), visibility 0s linear 320ms;
  }
  .site-header.is-menu-open .topnav {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .topnav__list { flex-direction: column; align-items: stretch; gap: 2px; padding-top: var(--sp-2); }
  .topnav__link { padding: var(--sp-3); }
  .topnav__services { display: block; }
  .topnav__services > .topnav__link,
  .topnav__services-toggle { display: none; }
  .topnav__submenu {
    position: static;
    display: block;
    min-width: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(10, 10, 12, 0.35);
    border: 0;
    box-shadow: none;
    transition: none;
  }
  .topnav__submenuLink { padding-inline: var(--sp-5); }
  .topnav__cta { justify-content: center; margin-top: var(--sp-2); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__actions { gap: var(--sp-2); }
  .hero__actions .btn { padding: 0.6rem 0.85rem; font-size: var(--fs-sm); }
  .about { grid-template-columns: 1fr; }
  .about__brand { width: min(68vw, 300px); }
  .service { grid-template-columns: 1fr; }
  .service--img-first .service__media,
  .service--text-first .service__media { order: 1; }
  .service--img-first .service__body,
  .service--text-first .service__body { order: 2; }
  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* Never leave content hidden when motion is reduced. */
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__titleWord { opacity: 1; transform: none; transition: none; }
  .js .hero__service, .js .hero__statement { opacity: 1; transform: none; transition: none; }
  .js .hero__followup, .js [data-hero-carousel] { opacity: 1; transform: none; transition: none; }
  .js .hero__statement.is-shimmering .hero__engraved-char { animation: none; opacity: 1; color: inherit; text-shadow: none; }
  .carousel__slide { transition: none; }
}
