/* ==========================================================================
   株式会社KB — Corporate Site
   Theme: AI × COSMOS × CYBER SPACE
   ========================================================================== */

:root {
  /* palette (derived from the KB logo: blue / cyan / white / metallic) */
  --black: #03050b;
  --navy-deep: #050b1c;
  --navy: #0a1a3a;
  --navy-soft: #10264f;
  --blue: #0a5cff;
  --blue-soft: #3b85ff;
  --cyan: #29d3ff;
  --cyan-soft: #9fe9ff;
  --white: #f4f8ff;

  --text: #dbe5f5;
  --text-strong: #ffffff;
  --muted: #8ea2c2;
  --muted-2: #6b7f9f;
  --line: rgba(120, 170, 255, 0.16);
  --line-strong: rgba(120, 170, 255, 0.34);

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* runtime (updated by script.js) */
  --sy: 0;      /* scroll Y in px */
  --depth: 0;   /* 0 (top) → 1 (bottom) */
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: rgba(41, 211, 255, 0.28); color: #fff; }

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px;
  background: var(--navy); color: #fff; border: 1px solid var(--line-strong);
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

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

.sp-only { display: none; }

/* --------------------------------------------------------------------------
   Background space (fixed, behind everything)
   -------------------------------------------------------------------------- */
.space {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--black);
}
.space > * { position: absolute; inset: 0; }

.space__base {
  background:
    radial-gradient(120% 70% at 50% -12%, rgba(30, 80, 190, 0.55) 0%, rgba(30, 80, 190, 0) 60%),
    radial-gradient(70% 55% at 88% 18%, rgba(0, 120, 255, 0.16) 0%, rgba(0, 120, 255, 0) 60%),
    radial-gradient(60% 50% at 8% 55%, rgba(20, 70, 170, 0.18) 0%, rgba(20, 70, 170, 0) 65%),
    linear-gradient(180deg, #03050b 0%, #050b1c 42%, #04081a 70%, #02040a 100%);
  transform: translate3d(0, calc(var(--sy) * -0.04px), 0) scale(1.08);
  will-change: transform;
}
/* deeper state: gets stronger toward the bottom of the page (contact) */
.space__deep {
  opacity: var(--depth);
  background:
    radial-gradient(75% 60% at 78% 92%, rgba(10, 92, 255, 0.34) 0%, rgba(10, 92, 255, 0) 62%),
    radial-gradient(40% 40% at 20% 100%, rgba(41, 211, 255, 0.12) 0%, rgba(41, 211, 255, 0) 60%),
    linear-gradient(180deg, rgba(2, 4, 10, 0) 0%, rgba(2, 4, 10, 0.55) 100%);
  will-change: opacity;
}

.space__glows {
  transform: translate3d(0, calc(var(--sy) * -0.09px), 0);
  will-change: transform;
}
.space__glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}
.space__glow--blue {
  width: 90vmax; height: 90vmax; left: -30vmax; top: -38vmax;
  background: radial-gradient(circle, rgba(30, 90, 255, 0.34) 0%, rgba(30, 90, 255, 0.10) 32%, rgba(30, 90, 255, 0) 64%);
  animation: glow-drift-1 46s ease-in-out infinite alternate;
}
.space__glow--cyan {
  width: 70vmax; height: 70vmax; right: -28vmax; top: 6vh;
  background: radial-gradient(circle, rgba(41, 211, 255, 0.16) 0%, rgba(41, 211, 255, 0.05) 36%, rgba(41, 211, 255, 0) 66%);
  animation: glow-drift-2 58s ease-in-out infinite alternate;
}
.space__glow--white {
  width: 44vmax; height: 44vmax; left: 50%; top: -10vmax; margin-left: -22vmax;
  background: radial-gradient(circle, rgba(220, 240, 255, 0.16) 0%, rgba(160, 210, 255, 0.05) 34%, rgba(160, 210, 255, 0) 64%);
  animation: glow-drift-3 38s ease-in-out infinite alternate;
}
@keyframes glow-drift-1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(5vmax, 3vmax, 0) scale(1.07); }
  100% { transform: translate3d(-3vmax, 6vmax, 0) scale(0.98); }
}
@keyframes glow-drift-2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-6vmax, 4vmax, 0) scale(1.1); }
  100% { transform: translate3d(2vmax, -3vmax, 0) scale(1.02); }
}
@keyframes glow-drift-3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .9; }
  50%  { transform: translate3d(3vmax, 2vmax, 0) scale(1.12); opacity: 1; }
  100% { transform: translate3d(-4vmax, 1vmax, 0) scale(0.96); opacity: .8; }
}

.space__canvas { width: 100%; height: 100%; }

.space__noise {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.space__vignette {
  background: radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
}

/* content sits above the space */
.header, .mobile-menu, main, .footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  pointer-events: none;
  transition: background-color .5s var(--ease-soft), border-color .5s var(--ease-soft), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 11, 0.55), rgba(3, 5, 11, 0));
  opacity: 1; transition: opacity .5s;
  pointer-events: none;
}
.header.is-scrolled {
  background: rgba(5, 10, 26, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(120, 170, 255, 0.12);
}
.header.is-scrolled::before { opacity: 0; }

.header__inner {
  pointer-events: auto;
  width: min(1320px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.brand__logo {
  width: 62px; height: auto;
  filter: drop-shadow(0 0 10px rgba(60, 150, 255, 0.25));
}
.brand__name {
  font-size: 15px; font-weight: 500; letter-spacing: 0.1em; color: var(--white);
}

.nav__list { display: flex; align-items: center; gap: clamp(28px, 3.4vw, 52px); }
.nav__link {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 0;
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(244, 248, 255, 0.82);
  transition: color .3s;
}
.nav__idx {
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.18em; color: var(--cyan);
  opacity: .75; transform: translateY(-2px);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(41, 211, 255, 0));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }

.menu-btn {
  display: none;
  position: relative;
  width: 44px; height: 44px; margin-right: -8px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.menu-btn__bar {
  position: absolute; left: 10px; width: 24px; height: 1.5px;
  background: var(--white);
  transition: transform .45s var(--ease-out), top .45s var(--ease-out), width .3s;
}
.menu-btn__bar:nth-child(1) { top: 17px; }
.menu-btn__bar:nth-child(2) { top: 26px; width: 16px; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { top: 21px; width: 24px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Mobile menu (same cyber space, dark glass)
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 30;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 8px) var(--gutter) 48px;
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.78), rgba(3, 5, 11, 0.9));
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { width: 100%; }
.mobile-menu__list { display: grid; gap: 6px; }
.mobile-menu__link {
  display: block; padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 26px; font-weight: 400; letter-spacing: 0.04em; color: var(--white);
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu__idx {
  display: block; margin-bottom: 4px;
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.28em; color: var(--cyan);
}
.mobile-menu__mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  font-family: var(--font-en); font-size: 15px; letter-spacing: 0.02em; color: var(--cyan-soft);
  opacity: 0; transition: opacity .6s .35s;
}
.mobile-menu.is-open .mobile-menu__mail { opacity: 1; }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 11px; font-weight: 500;
  letter-spacing: 0.32em; color: var(--cyan-soft);
  text-transform: uppercase;
}
.label__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 1px rgba(41, 211, 255, 0.7);
}
.label__idx { color: #fff; letter-spacing: 0.2em; }
.label__sep { color: var(--muted-2); letter-spacing: 0; }
.label__line {
  display: inline-block; width: 64px; height: 1px; margin-left: 6px;
  background: linear-gradient(90deg, rgba(41, 211, 255, 0.7), rgba(41, 211, 255, 0));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-out) .35s;
}
.is-in .label__line { transform: scaleX(1); }

.section__title {
  margin-top: 26px;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}
.section__deck {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(15px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 2.1;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Reveal (IntersectionObserver adds .is-in)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    transform 1.1s var(--ease-out) var(--d, 0s),
    filter 1s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal="up"]   { transform: translate3d(0, 32px, 0); filter: blur(6px); }
[data-reveal="fade"] { transform: translate3d(0, 10px, 0); }
[data-reveal="logo"] { transform: translate3d(0, 18px, 0) scale(0.97); filter: blur(10px); }
[data-reveal].is-in  { opacity: 1; transform: none; filter: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(var(--header-h) + 36px) var(--gutter) 128px;
  text-align: center;
}
.hero__inner {
  width: min(960px, 100%);
  display: flex; flex-direction: column; align-items: center;
}

.hero__logo {
  position: relative;
  width: clamp(190px, 23vw, 330px);
  margin-bottom: clamp(28px, 4.5vh, 48px);
}
.hero__logo::before {
  /* soft bloom around the logo (kept weak on purpose) */
  content: ""; position: absolute; inset: -40% -30%;
  background: radial-gradient(ellipse at center, rgba(90, 170, 255, 0.28) 0%, rgba(41, 211, 255, 0.10) 35%, rgba(41, 211, 255, 0) 70%);
  filter: blur(18px);
  z-index: -1;
  animation: bloom 7s ease-in-out infinite;
}
.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 0 18px rgba(80, 160, 255, 0.28)) drop-shadow(0 6px 30px rgba(10, 92, 255, 0.18));
}
@keyframes bloom {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.24em; color: var(--white);
}
.hero__eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px 1px rgba(41, 211, 255, 0.8);
}
.hero__eyebrow-en {
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.28em; color: var(--muted);
}

.hero__title {
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 300;
  line-height: 1.26;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}
.hero__line { display: block; overflow: hidden; padding: 0.06em 0.1em; margin: -0.06em -0.1em; }
.hero__line-in {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  transition: transform 1.3s var(--ease-out) var(--d, 0s), opacity .8s var(--ease-soft) var(--d, 0s);
}
.is-loaded .hero__line-in { transform: none; opacity: 1; }
.hero__line-in--grad {
  font-weight: 400;
  background: linear-gradient(100deg, #ffffff 0%, #bfeeff 28%, #4fc9ff 52%, #3b85ff 74%, #ffffff 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 9s var(--ease-soft) infinite;
}
@keyframes shine {
  0%   { background-position: 100% 0; }
  45%  { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

.hero__sub {
  margin-top: 26px;
  font-family: var(--font-en); font-size: 11px; font-weight: 500;
  letter-spacing: 0.4em; color: var(--cyan-soft);
}
.hero__desc {
  margin-top: 22px;
  max-width: 640px;
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 300;
  line-height: 2.15;
  color: var(--text);
}

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 9px; letter-spacing: 0.4em; color: var(--muted);
  opacity: 0; animation: fade-in 1.2s ease 1.8s forwards;
}
.hero__scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(180deg, rgba(41, 211, 255, 0), rgba(41, 211, 255, 0.9), rgba(41, 211, 255, 0));
  background-size: 100% 200%;
  animation: scroll-line 2.6s var(--ease-soft) infinite;
}
@keyframes scroll-line { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }
@keyframes fade-in { to { opacity: 1; } }

@media (min-width: 769px) and (max-height: 820px) {
  .hero__logo { width: clamp(160px, 18vw, 240px); margin-bottom: 22px; }
  .hero__title { font-size: clamp(36px, 4.8vw, 62px); }
  .hero__eyebrow { margin-bottom: 18px; }
  .hero__desc { margin-top: 16px; line-height: 1.9; }
  .hero__scroll-line { height: 36px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(110px, 14vw, 180px) 0;
  scroll-margin-top: 20px;
}
.section__head { position: relative; }

/* thin separator line between sections (orbit-like, very faint) */
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(1200px, 100%); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(120, 170, 255, 0), rgba(120, 170, 255, 0.22) 30%, rgba(120, 170, 255, 0.22) 70%, rgba(120, 170, 255, 0));
}

/* --------------------------------------------------------------------------
   Business — cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(56px, 6vw, 80px);
}
.card {
  position: relative;
  min-height: 400px;
  padding: 36px 40px 40px;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(14, 30, 66, 0.55) 0%, rgba(6, 12, 30, 0.6) 55%, rgba(3, 6, 16, 0.7) 100%);
  border: 1px solid rgba(110, 165, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color .5s var(--ease-soft), box-shadow .6s var(--ease-soft), transform .6s var(--ease-out);
  --mx: 50%; --my: 50%;
}
.card:hover {
  border-color: rgba(120, 190, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(80, 170, 255, 0.12),
    0 30px 60px -30px rgba(10, 92, 255, 0.35),
    inset 0 0 40px rgba(41, 211, 255, 0.04);
  transform: translateY(-3px);
}
/* corner marks (2 via ::before/::after on card, 2 via frame) */
.card::before, .card::after, .card__frame::before, .card__frame::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: rgba(140, 200, 255, 0.55); border-style: solid;
  transition: border-color .5s, width .5s var(--ease-out), height .5s var(--ease-out);
  z-index: 2;
}
.card::before        { top: 10px; left: 10px;  border-width: 1px 0 0 1px; }
.card::after         { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.card__frame::before { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.card__frame::after  { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.card:hover::before, .card:hover::after, .card:hover .card__frame::before, .card:hover .card__frame::after {
  width: 20px; height: 20px; border-color: var(--cyan);
}
.card__frame { position: absolute; inset: 0; pointer-events: none; }

/* mouse light */
.card__light {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(90, 170, 255, 0.16), rgba(41, 211, 255, 0.05) 30%, transparent 60%);
  opacity: 0; transition: opacity .6s;
}
.card:hover .card__light { opacity: 1; }
/* top edge highlight */
.card__frame { border-top: 1px solid transparent; }
.card__frame { background: linear-gradient(90deg, rgba(41, 211, 255, 0), rgba(41, 211, 255, 0.45) 40%, rgba(41, 211, 255, 0)) top / 100% 1px no-repeat; opacity: .6; }

/* background art */
.card__art {
  position: absolute; right: -8px; bottom: -6px; width: 68%; height: auto;
  z-index: 0; pointer-events: none; opacity: .55;
  transition: opacity .6s, transform 1.2s var(--ease-out);
}
.card:hover .card__art { opacity: .9; transform: translate3d(-6px, -4px, 0); }
.card__art-lines line, .card__art-lines path { stroke: rgba(120, 180, 255, 0.28); stroke-width: 0.8; fill: none; }
.card__art-nodes circle { fill: rgba(200, 235, 255, 0.85); }
.card__art-rings circle { fill: none; stroke: rgba(41, 211, 255, 0.35); stroke-width: 0.6; }
.card--web .card__art-lines path { stroke: rgba(120, 180, 255, 0.2); stroke-dasharray: 2 6; }

.card__body { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.card__top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--font-en);
}
.card__no { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; color: var(--cyan); }
.card__en { font-size: 10px; letter-spacing: 0.26em; color: var(--muted); }
.card__title {
  margin-top: auto; padding-top: 120px;
  font-size: clamp(28px, 2.6vw, 36px); font-weight: 400; letter-spacing: 0.02em; line-height: 1.3;
  color: var(--text-strong);
}
.card__text {
  margin-top: 18px; max-width: 460px;
  font-size: 15px; font-weight: 300; line-height: 2; color: var(--text);
}

/* --------------------------------------------------------------------------
   Company — dark glass panel
   -------------------------------------------------------------------------- */
.company {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.panel {
  position: relative;
  padding: clamp(28px, 3.6vw, 48px) clamp(24px, 3.6vw, 52px);
  background: linear-gradient(165deg, rgba(12, 26, 58, 0.5), rgba(4, 8, 20, 0.62));
  border: 1px solid rgba(110, 165, 255, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -50px rgba(10, 92, 255, 0.4);
}
.panel__edge {
  position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(41, 211, 255, 0), rgba(41, 211, 255, 0.9) 30%, rgba(160, 220, 255, 0.9) 50%, rgba(41, 211, 255, 0));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-out) .3s;
}
.is-in .panel__edge { transform: scaleX(1); }
.panel__edge::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40px;
  background: linear-gradient(180deg, rgba(41, 211, 255, 0.08), rgba(41, 211, 255, 0));
}
.facts { border-top: 1px solid var(--line); }
.facts__row {
  display: grid; grid-template-columns: 128px 1fr; column-gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted);
  padding-top: 3px;
}
.facts dd {
  font-size: 16px; font-weight: 400; line-height: 1.9; color: var(--text-strong);
  overflow-wrap: anywhere;
}
.panel__meta {
  margin-top: 20px;
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.3em; color: var(--muted-2);
  text-align: right;
}

/* --------------------------------------------------------------------------
   Contact — climax
   -------------------------------------------------------------------------- */
.section--contact {
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.section--contact::after {
  /* slightly darker space in the finale */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(2, 4, 10, 0) 0%, rgba(2, 4, 10, 0.4) 60%, rgba(2, 4, 10, 0.55) 100%);
  pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; }

/* giant planet / blue light in the back */
.contact__planet {
  position: absolute; z-index: 0;
  right: -22vw; bottom: -46vw;
  width: 90vw; height: 90vw; max-width: 1400px; max-height: 1400px;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, 0.22);
  background:
    radial-gradient(circle at 42% 38%, rgba(41, 211, 255, 0.16), rgba(10, 92, 255, 0.10) 40%, rgba(3, 6, 16, 0.3) 72%);
  box-shadow:
    0 0 180px 30px rgba(10, 92, 255, 0.28),
    0 0 60px 0 rgba(41, 211, 255, 0.10),
    inset 0 0 160px rgba(41, 211, 255, 0.08);
  transform: translate3d(0, calc(var(--sy) * -0.06px), 0);
  will-change: transform;
  pointer-events: none;
}
.contact__orbit {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(140, 200, 255, 0.09);
  transform: translate(-50%, -50%) rotate(-14deg);
}
.contact__orbit--1 { width: 128%; height: 44%; }
.contact__orbit--2 { width: 156%; height: 56%; border-color: rgba(140, 200, 255, 0.06); transform: translate(-50%, -50%) rotate(-10deg); }
.contact__orbit::before {
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%;
  left: 12%; top: 18%;
  background: #fff; box-shadow: 0 0 10px 2px rgba(41, 211, 255, 0.7);
}

.mail {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-areas: "label label" "text arrow";
  align-items: center;
  column-gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-bottom: 18px;
  color: var(--white);
}
.mail__label {
  grid-area: label;
  margin-bottom: 12px;
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.34em; color: var(--cyan);
}
.mail__text {
  grid-area: text;
  font-family: var(--font-en); font-weight: 500;
  font-size: clamp(24px, 4.2vw, 50px); letter-spacing: -0.01em; line-height: 1.1;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 40%, #9fe9ff 55%, #ffffff 70%, #ffffff 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position 1.1s var(--ease-soft);
}
.mail__arrow {
  grid-area: arrow;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(140, 200, 255, 0.3);
  color: var(--cyan-soft);
  transition: border-color .5s, transform .6s var(--ease-out), box-shadow .6s;
}
.mail__arrow svg { transition: transform .6s var(--ease-out); }
.mail__line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(140, 200, 255, 0.28);
}
.mail__line::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--cyan), #fff 60%, rgba(41, 211, 255, 0));
  transform: scaleX(0.28); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.mail:hover .mail__line::after, .mail:focus-visible .mail__line::after { transform: scaleX(1); }
.mail:hover .mail__text, .mail:focus-visible .mail__text { background-position: 0 0; }
.mail:hover .mail__arrow, .mail:focus-visible .mail__arrow {
  border-color: var(--cyan);
  transform: translate(4px, -4px);
  box-shadow: 0 0 20px -4px rgba(41, 211, 255, 0.6);
}
.mail:hover .mail__arrow svg { transform: translate(1px, -1px); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 5, 11, 0.4), rgba(3, 5, 11, 0.85));
}
.footer__inner {
  min-height: 92px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 13px;
}
.footer__brand { font-weight: 500; letter-spacing: 0.1em; color: var(--white); }
.footer__meta {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; color: var(--muted);
}
.footer__sep { width: 24px; height: 1px; background: var(--line-strong); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .company { grid-template-columns: 1fr; }
  .section__head--company .section__deck { max-width: 640px; }
  .card { min-height: 360px; padding: 30px 32px 34px; }
  .card__title { padding-top: 90px; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .sp-only { display: inline; }

  .brand__logo { width: 50px; }
  .brand__name { font-size: 14px; }
  .nav { display: none; }
  .menu-btn { display: block; }

  .hero { padding: calc(var(--header-h) + 24px) var(--gutter) 100px; min-height: 100svh; }
  .hero__logo { width: clamp(180px, 56vw, 260px); margin-bottom: 30px; }
  .hero__eyebrow { flex-direction: column; gap: 10px; font-size: 12px; margin-bottom: 20px; }
  .hero__eyebrow-en { font-size: 9px; letter-spacing: 0.22em; }
  .hero__title { font-size: clamp(34px, 10vw, 46px); line-height: 1.32; }
  .hero__sub { margin-top: 22px; font-size: 10px; letter-spacing: 0.3em; }
  .hero__desc { margin-top: 20px; font-size: 15px; line-height: 2; text-align: left; }
  .hero__scroll { bottom: 22px; }
  .hero__scroll-line { height: 40px; }

  .section { padding: 96px 0; }
  .section__title { font-size: 36px; margin-top: 20px; }
  .section__deck { margin-top: 16px; font-size: 15px; line-height: 2; }
  .label { font-size: 10px; letter-spacing: 0.28em; }
  .label__line { width: 40px; }

  .cards { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .card { min-height: 300px; padding: 24px 24px 28px; }
  .card__title { padding-top: 70px; font-size: 26px; }
  .card__text { font-size: 14.5px; line-height: 1.95; }
  .card__art { width: 78%; opacity: .45; }

  .panel { padding: 22px 20px 20px; }
  .facts__row { grid-template-columns: 84px 1fr; column-gap: 14px; padding: 18px 0; }
  .facts dt { font-size: 12px; }
  .facts dd { font-size: 14.5px; line-height: 1.85; }
  .panel__meta { font-size: 9px; }

  .section--contact { min-height: 80vh; }
  .contact__planet { right: -50vw; bottom: -70vw; width: 150vw; height: 150vw; }
  .mail { column-gap: 12px; margin-top: 36px; padding-bottom: 14px; max-width: 100%; }
  .mail__text { font-size: clamp(19px, 6.2vw, 26px); overflow-wrap: anywhere; }
  .mail__arrow { width: 38px; height: 38px; }
  .mail__arrow svg { width: 18px; height: 18px; }

  .footer__inner { min-height: 0; padding: 26px 0; flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 32px; }
  .facts__row { grid-template-columns: 76px 1fr; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .space__glow, .hero__logo::before, .hero__line-in--grad, .hero__scroll-line, .hero__scroll { animation: none !important; }
  .hero__scroll { opacity: 1; }
  .space__base, .space__glows, .contact__planet { transform: none !important; }
  [data-reveal], .hero__line-in { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .label__line, .panel__edge { transform: scaleX(1) !important; transition: none !important; }
  .mobile-menu__link, .mobile-menu__mail { transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
