/* Web Kai — brand pass: unified grid, HUD void, type, glass, dock (loads last) */

:root {
  --wk-mono: "Space Mono", "JetBrains Mono", "IBM Plex Mono", "DM Mono", monospace;
  --wk-accent: rgba(34, 245, 208, 0.82);
  --wk-accent-dim: rgba(34, 245, 208, 0.42);
  --wk-accent-ghost: rgba(34, 245, 208, 0.08);
  --wk-glass-bg: rgba(4, 14, 16, 0.38);
  --wk-glass-border: rgba(34, 245, 208, 0.14);
  --wk-glass-top: rgba(34, 245, 208, 0.09);
  --wk-card-max: var(--layout-card-max, 580px);
}

/* ==========================================================================
   1. Hero catchcopy (no copy / line-break changes)
   ========================================================================== */

.section--hero .catchcopy::after {
  display: none !important;
  animation: none !important;
}

.hero-main .catchcopy,
.section--hero .catchcopy {
  line-height: 1.44 !important;
  letter-spacing: 0.03em !important;
  margin-bottom: clamp(28px, 4vh, 40px) !important;
}

.section--hero .catchcopy,
.section--hero .mask-title--hero > span,
.section--hero .catchcopy .mask-title > span,
.section--hero.is-active .catchcopy .mask-title.is-shown > span,
body.is-loaded .section--hero.is-active .mask-title--hero > span {
  color: #eafff8 !important;
  -webkit-text-fill-color: #eafff8 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.44 !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  filter: none !important;
  text-shadow:
    0 0 18px rgba(34, 245, 208, 0.12),
    0 0 42px rgba(34, 245, 208, 0.08) !important;
}

.section--hero .mask-title--hero {
  position: relative;
  display: block;
  padding-left: 0.9em;
}

.section--hero .mask-title--hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    rgba(34, 245, 208, 0.92) 0%,
    rgba(34, 245, 208, 0.35) 55%,
    rgba(34, 245, 208, 0.06) 100%
  );
  box-shadow: 0 0 12px rgba(34, 245, 208, 0.28);
  pointer-events: none;
}

/* ==========================================================================
   2. Unified layout grid
   ========================================================================== */

.section-inner {
  max-width: var(--layout-max, 1160px) !important;
  padding-left: var(--layout-pad-x) !important;
  padding-right: var(--layout-pad-x) !important;
}

.section-title {
  padding-left: 18px !important;
  margin-bottom: clamp(12px, 1.8vh, 18px) !important;
}

.section--service-intro .section-split--intro {
  display: grid !important;
  width: 100%;
  grid-template-columns: minmax(0, var(--wk-card-max)) minmax(200px, 1fr) !important;
  gap: clamp(28px, 4.5vw, 56px) !important;
  align-items: center !important;
}

.section--service .section-inner,
.section--contact .section-inner--contact {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: var(--layout-max, 1160px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-height: calc(100svh - var(--header-h) - var(--scroll-dock-reserve, 160px) - 20px) !important;
}

.section--service-intro .intro-copy,
.section--service .section-content--service,
.section--contact .contact-stack--flow {
  width: 100% !important;
  max-width: min(760px, 94vw) !important;
  margin: 0 auto !important;
}

.section--service-intro .section-visual--intro {
  display: none !important;
}

.section--service-intro .section-split--intro {
  grid-template-columns: 1fr !important;
}

.section--contact .section-inner--contact {
  align-items: start !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}

.giant-number {
  display: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   3. HUD rails — meaningful right-side void (CSS only)
   ========================================================================== */

/* HUD void column removed — no vertical rail / grid box */
.section--service .section-inner::after,
.section--contact .section-inner--contact::after,
.section--service-01 .section-inner::after,
.section--service-02 .section-inner::after,
.section--service-03 .section-inner::after {
  display: none !important;
  content: none !important;
}

/* Deco labels removed */
.section--service-01 .section-deco--beam::after,
.section--service-02 .section-deco--beam::after,
.section--service-03 .section-deco--beam::after,
.section--contact .section-deco--beam::after {
  display: none !important;
  content: none !important;
}

.section--service-intro .section-visual--intro,
.section--hero .hero-visual {
  position: relative;
  min-height: min(50vh, 440px) !important;
}

.section--service-intro .section-visual--intro::before {
  display: none !important;
  content: none !important;
}

.section--service-intro .section-visual--intro::after {
  display: block !important;
  content: "GRID·ACTIVE\A SECTOR·02";
  white-space: pre;
  position: absolute;
  right: 12%;
  top: 18%;
  font-family: var(--wk-mono);
  font-size: 0.46rem;
  letter-spacing: 0.38em;
  line-height: 2.2;
  color: rgba(34, 245, 208, 0.3);
  text-shadow: 0 0 12px rgba(34, 245, 208, 0.1);
  pointer-events: none;
}

.section--hero .hero-visual::before {
  display: none !important;
  content: none !important;
}

.section--hero .hero-visual::after {
  content: "WK·00\A HOME";
  white-space: pre;
  position: absolute;
  right: 14%;
  top: 20%;
  font-family: var(--wk-mono);
  font-size: 0.46rem;
  letter-spacing: 0.38em;
  line-height: 2.2;
  color: rgba(34, 245, 208, 0.28);
  pointer-events: none;
  z-index: 3;
}

.section-deco--hero::before,
.section-deco--hero::after,
.section-deco--intro::before,
.section-deco--intro::after,
.section-deco--beam::before {
  display: none !important;
  content: none !important;
}

/* ==========================================================================
   4. Typography — mono labels / numbers
   ========================================================================== */

.ui-label,
.section-label,
.scroll-dock__hint,
.site-nav .site-nav__link,
.service-menu__num,
.section-service-num,
.giant-number,
.section-indicator__count {
  font-family: var(--wk-mono) !important;
}

.ui-label,
.section-label {
  letter-spacing: 0.28em !important;
  color: var(--wk-accent) !important;
  text-shadow: 0 0 14px rgba(34, 245, 208, 0.18) !important;
}

.service-menu__num,
.section-service-num {
  letter-spacing: 0.28em !important;
  font-size: 0.62rem !important;
  color: rgba(34, 245, 208, 0.72) !important;
  text-shadow: 0 0 12px rgba(34, 245, 208, 0.16) !important;
}

.section--service .section-title .mask-title > span,
.section--service-intro .section-title .mask-title > span,
.section--contact .contact-panel__lead .mask-title > span,
.section--contact .contact-stack__header .section-title .mask-title > span {
  color: #e4faf4 !important;
  -webkit-text-fill-color: #e4faf4 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.32 !important;
  text-shadow:
    0 0 16px rgba(34, 245, 208, 0.1),
    0 2px 24px rgba(0, 0, 0, 0.25) !important;
}

.business-text,
.section-body,
.hero-lead p {
  color: rgba(210, 236, 228, 0.86) !important;
  letter-spacing: 0.015em !important;
  line-height: 1.82 !important;
}

.section--hero .hero-lead {
  gap: 1.35em !important;
  margin-top: clamp(14px, 2.8vh, 28px) !important;
}

.section--hero .hero-lead p {
  line-height: 2 !important;
}

/* ==========================================================================
   5. Glass cards
   ========================================================================== */

.section--service .section-content--service,
.section--service-intro .intro-copy,
.section--contact .contact-panel {
  position: relative !important;
  isolation: isolate !important;
  background:
    linear-gradient(155deg, rgba(34, 245, 208, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, rgba(8, 20, 22, 0.55) 0%, rgba(3, 10, 12, 0.72) 100%) !important;
  border: 1px solid var(--wk-glass-border) !important;
  border-radius: 8px !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    inset 0 1px 0 var(--wk-glass-top),
    0 0 32px rgba(34, 245, 208, 0.04) !important;
  backdrop-filter: blur(24px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.12) !important;
}

.section--service .section-content--service::before,
.section--service .section-content--service::after,
.section--service-intro .intro-copy::before,
.section--service-intro .intro-copy::after,
.section--contact .contact-panel::before,
.section--contact .contact-panel::after,
.cyber-panel::before,
.cyber-panel::after {
  display: none !important;
  content: none !important;
}

.section:not(.is-active) .section-inner {
  opacity: 0.92 !important;
}

.section.is-active .section-inner {
  opacity: 1 !important;
}

/* ==========================================================================
   6. Header nav
   ========================================================================== */

.site-nav {
  background: rgba(3, 10, 12, 0.5) !important;
  border-color: rgba(34, 245, 208, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset !important;
}

.site-nav .site-nav__link {
  font-family: var(--wk-mono) !important;
  letter-spacing: 0.22em !important;
  color: rgba(34, 245, 208, 0.58) !important;
}

.site-nav .site-nav__link:hover,
.site-nav .site-nav__link.is-active {
  color: var(--wk-accent) !important;
  text-shadow: 0 0 14px rgba(34, 245, 208, 0.18) !important;
}

/* ==========================================================================
   7. Center scroll dock — line-first, light
   ========================================================================== */

.scroll-dock--global::after {
  display: none !important;
  content: none !important;
}

.scroll-dock--global.is-visible:hover::after,
.scroll-dock--global.is-visible:focus-within::after {
  display: none !important;
}

.scroll-dock--global {
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
}

.scroll-dock--global::before {
  width: 1px !important;
  height: calc(100% - 4px) !important;
  opacity: 0.5 !important;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(34, 245, 208, 0.2) 20%,
    rgba(34, 245, 208, 0.35) 50%,
    rgba(34, 245, 208, 0.2) 80%,
    transparent
  ) !important;
}

.scroll-dock__btn {
  padding: 4px 8px !important;
  min-width: 36px !important;
}

.scroll-dock__btn--next {
  flex-direction: column-reverse !important;
}

.scroll-dock__btn::before {
  display: none !important;
}

.scroll-dock__hint {
  font-family: var(--wk-mono) !important;
  font-size: 0.44rem !important;
  letter-spacing: 0.28em !important;
  color: rgba(34, 245, 208, 0.55) !important;
  text-shadow: 0 0 14px rgba(34, 245, 208, 0.18) !important;
}

.scroll-dock__arrow {
  font-family: var(--wk-mono) !important;
  font-size: 0.62rem !important;
  color: rgba(34, 245, 208, 0.78) !important;
  text-shadow: 0 0 10px rgba(34, 245, 208, 0.22) !important;
}

.scroll-dock__track {
  height: 28px !important;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(34, 245, 208, 0.15) 50%,
    transparent
  ) !important;
  box-shadow: none !important;
}

.scroll-dock__line {
  box-shadow: 0 0 8px rgba(34, 245, 208, 0.2) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .section--service-intro .section-split--intro {
    grid-template-columns: 1fr !important;
  }

  .section--service .section-inner,
  .section--contact .section-inner--contact {
    grid-template-columns: 1fr !important;
  }

  .section--service .section-inner::after,
  .section--contact .section-inner--contact::after {
    display: none !important;
  }

  .section--service-01 .section-deco--beam::after,
  .section--service-02 .section-deco--beam::after,
  .section--service-03 .section-deco--beam::after,
  .section--contact .section-deco--beam::after {
    display: none !important;
  }

  .section--hero .mask-title--hero {
    padding-left: 0.75em;
  }

  .section--hero .mask-title--hero::before {
    width: 1.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section--hero .mask-title--hero::before {
    box-shadow: none;
  }

  .scroll-dock__btn--prev .scroll-dock__arrow,
  .scroll-dock__arrow--main,
  .scroll-dock__track,
  .scroll-dock--global::before {
    animation: none !important;
  }
}
