* {
  box-sizing: border-box;
}

:root {
  --bg: #020408;
  --panel: #07101a;
  --panel-light: #0d1828;
  --text: #e6edf7;
  --muted: #7f8da3;
  --blue: #8fb7ff;
  --cyan: #9ee8ff;
  --line: rgba(143, 183, 255, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   LOADER
========================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 70% 30%, rgba(143, 183, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #020408, #030812);
  display: grid;
  place-items: center;
  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-panel {
  width: min(720px, calc(100% - 32px));
  border: 1px solid rgba(143, 183, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(7, 16, 26, 0.96), rgba(2, 4, 8, 0.98));
  box-shadow:
    0 0 80px rgba(80, 130, 255, 0.16),
    inset 0 0 40px rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.loader-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(143, 183, 255, 0.16);
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.loader-main {
  padding: 44px 28px 34px;
  text-align: center;
}

.loader-label {
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.34em;
  animation: blink 1.1s infinite;
}

.loader-main h1 {
  margin: 0;
  font-size: clamp(64px, 12vw, 128px);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(143, 183, 255, 0.46),
    0 0 70px rgba(143, 183, 255, 0.18);
}

.loader-name {
  margin: 18px 0 32px;
  color: #b9c7dc;
  font-size: 13px;
  letter-spacing: 0.34em;
}

.loader-board {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1.2fr;
  border-top: 1px solid rgba(143, 183, 255, 0.14);
  border-bottom: 1px solid rgba(143, 183, 255, 0.14);
  margin-bottom: 28px;
}

.loader-board div {
  padding: 16px 10px;
  border-right: 1px solid rgba(143, 183, 255, 0.12);
}

.loader-board div:last-child {
  border-right: none;
}

.loader-board span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.loader-board strong {
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 400;
}

.loading-line {
  position: relative;
  height: 3px;
  background: rgba(143, 183, 255, 0.12);
  overflow: hidden;
}

.loading-line-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan));
  transform: translateX(-100%);
  animation: loadingMove 1.8s ease-in-out forwards;
}

.loader-caption {
  margin: 18px 0 0;
  color: #5f728f;
  font-size: 10px;
  letter-spacing: 0.22em;
}

@keyframes loadingMove {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

/* =========================
   CURSOR
========================= */

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    circle,
    rgba(143, 183, 255, 0.13),
    rgba(143, 183, 255, 0.04) 35%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

/* =========================
   NOISE
========================= */

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  background-image:
    repeating-radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.25) 0,
      rgba(255, 255, 255, 0.25) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: #000;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    );
  background-size: 80px 100%;
  opacity: 0.18;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.43) contrast(1.18) saturate(0.82);
  transform: scale(1.08);
  animation: slowZoom 16s ease-out forwards;
}

@keyframes slowZoom {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1.01);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(2, 4, 8, 0.08),
      rgba(2, 4, 8, 0.46),
      rgba(2, 4, 8, 0.98)
    ),
    radial-gradient(
      circle at 72% 38%,
      rgba(110, 160, 255, 0.22),
      transparent 32%
    ),
    radial-gradient(
      circle at 18% 70%,
      rgba(158, 232, 255, 0.08),
      transparent 30%
    );
}

.airport-code {
  position: absolute;
  top: 32px;
  right: 36px;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1.8;
  color: var(--blue);
  text-shadow: 0 0 18px rgba(143, 183, 255, 0.45);
}

.hero-text {
  position: absolute;
  left: clamp(24px, 7vw, 96px);
  bottom: clamp(76px, 12vh, 150px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.3em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 142px);
  line-height: 0.86;
  font-weight: 300;
  letter-spacing: 0.11em;
  text-shadow:
    0 0 30px rgba(143, 183, 255, 0.16),
    0 0 80px rgba(143, 183, 255, 0.08);
}

.subtitle {
  max-width: 560px;
  margin-top: 28px;
  color: #b7c2d4;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.scroll-sign {
  position: absolute;
  left: 36px;
  bottom: 28px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
}

/* =========================
   STATEMENT
========================= */

.statement {
  padding: 160px 8% 140px;
}

.statement p {
  margin: 0;
  max-width: 940px;
  font-size: clamp(25px, 3.6vw, 50px);
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* =========================
   FLIGHT BOARD
========================= */

.flight-board {
  position: relative;
  overflow: hidden;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 170px;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      rgba(13, 24, 40, 0.96),
      rgba(4, 9, 16, 0.96)
    );
  box-shadow:
    0 0 70px rgba(80, 130, 255, 0.14),
    inset 0 0 30px rgba(255, 255, 255, 0.018);
}

.board-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(158, 232, 255, 0.08),
    transparent
  );
  height: 90px;
  animation: scan 4.8s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  from {
    transform: translateY(-120px);
  }

  to {
    transform: translateY(440px);
  }
}

.board-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.24em;
}

.board-row {
  display: grid;
  grid-template-columns: 1fr 2.1fr 0.8fr 1.3fr;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(143, 183, 255, 0.09);
  font-family: "Inter", monospace;
  font-size: clamp(12px, 1.6vw, 16px);
  letter-spacing: 0.13em;
  color: #b7c6de;
}

.board-row:last-child {
  border-bottom: none;
}

.board-header {
  background: rgba(143, 183, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
}

.board-row.active {
  color: #ffffff;
  background: rgba(143, 183, 255, 0.08);
  text-shadow: 0 0 14px rgba(170, 210, 255, 0.75);
}

/* =========================
   COMMON
========================= */

.works,
.profile,
.contact {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.section-title span {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.28em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* =========================
   GALLERY
========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 180px;
}

.photo {
  margin: 0;
  grid-column: span 3;
  overflow: hidden;
  background: #070b10;
  cursor: zoom-in;
  border: 1px solid rgba(143, 183, 255, 0.08);
}

.photo.large {
  grid-column: span 6;
}

.photo.wide {
  grid-column: span 6;
}

.photo img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  filter: brightness(0.78) contrast(1.1) saturate(0.86);
  transition:
    transform 1.15s ease,
    filter 1.15s ease;
}

.photo.large img,
.photo.wide img {
  height: 640px;
}

.photo:hover img {
  transform: scale(1.04);
  filter: brightness(1.02) contrast(1.12) saturate(1);
}

/* =========================
   PROFILE
========================= */

.profile {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 70px;
  padding-bottom: 150px;
}

.profile .section-title {
  display: block;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.profile .section-title p {
  margin-top: 12px;
}

.profile-text h2 {
  margin: 0 0 26px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: 0.12em;
}

.profile-text p {
  margin: 0;
  max-width: 700px;
  color: #cbd4e2;
  line-height: 2.2;
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* =========================
   CONTACT
========================= */

.contact {
  padding-bottom: 120px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.links a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  transition: 0.35s;
}

.links a:hover {
  color: #020408;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 30px rgba(143, 183, 255, 0.28);
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(2, 4, 8, 0.94);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(143, 183, 255, 0.16);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--blue);
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  cursor: pointer;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 38px 24px;
  border-top: 1px solid rgba(143, 183, 255, 0.09);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* =========================
   FADE
========================= */

.fade {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .cursor-glow {
    display: none;
  }

  .loader-board {
    grid-template-columns: 1fr;
  }

  .loader-board div {
    border-right: none;
    border-bottom: 1px solid rgba(143, 183, 255, 0.12);
  }

  .loader-board div:last-child {
    border-bottom: none;
  }

  .hero {
    min-height: 620px;
  }

  .airport-code {
    top: 22px;
    right: 22px;
    font-size: 9px;
  }

  .hero-text {
    left: 24px;
    right: 24px;
  }

  .subtitle {
    font-size: 12px;
  }

  .statement {
    padding: 110px 24px 100px;
  }

  .flight-board {
    width: calc(100% - 24px);
    overflow-x: auto;
    margin-bottom: 110px;
  }

  .board-top,
  .board-row {
    min-width: 680px;
  }

  .section-title {
    display: block;
  }

  .section-title p {
    margin-top: 10px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 110px;
  }

  .photo,
  .photo.large,
  .photo.wide {
    grid-column: span 1;
  }

  .photo img,
  .photo.large img,
  .photo.wide img {
    height: 360px;
  }

  .profile {
    display: block;
    padding-bottom: 110px;
  }

  .profile .section-title {
    margin-bottom: 36px;
  }

  .links {
    display: grid;
  }

  .lightbox {
    padding: 18px;
  }
}