* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  font-family:
    Hiragino Kaku Gothic ProN,
    Yu Gothic,
    Noto Sans JP,
    sans-serif;
  color: #eaf6ff;
  background: #06182c;
  overflow-x: hidden;
}
::selection {
  background: #78dcff59;
}
#scene {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.vignette {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0, 4, 12, 0.55) 100%
  );
}
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(20px, 4vw, 48px);
  pointer-events: none;
}
.site-nav a {
  pointer-events: auto;
  text-decoration: none;
  transition:
    color 0.3s,
    text-shadow 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family:
    Georgia,
    Hiragino Mincho ProN,
    serif;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: #eef9ff;
  text-shadow: 0 1px 12px rgba(0, 28, 55, 0.7);
}
.nav-logo-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(0, 28, 55, 0.6));
}
.nav-links {
  display: flex;
  gap: clamp(14px, 2.6vw, 32px);
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #e4f5ffd9;
  text-shadow: 0 1px 10px rgba(0, 28, 55, 0.7);
}
.site-nav a:hover {
  color: #fff;
  text-shadow: 0 0 16px rgba(150, 235, 255, 0.95);
}
.depth-meter {
  position: fixed;
  right: clamp(16px, 3vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  mix-blend-mode: screen;
}
.depth-zone {
  font-size: 11px;
  letter-spacing: 0.4em;
  writing-mode: vertical-rl;
  color: #beebffbf;
}
.depth-value {
  font-family:
    Georgia,
    Times New Roman,
    serif;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0.12em;
  color: #dff4ff;
  text-shadow: 0 0 18px rgba(110, 210, 255, 0.5);
  font-variant-numeric: tabular-nums;
}
.depth-value small {
  font-size: 0.6em;
  opacity: 0.7;
}
.depth-value:before {
  content: "−";
  opacity: 0.7;
}
.depth-track {
  width: 2px;
  height: 32vh;
  background: #b4e6ff2e;
  border-radius: 2px;
  overflow: hidden;
}
.depth-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #9fe8ff, #3ec8ff);
  box-shadow: 0 0 12px #6ed2ffcc;
}
.content {
  position: relative;
  z-index: 5;
}
.panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12vh clamp(20px, 6vw, 80px);
}
.eyebrow {
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: #c8eeffd9;
  margin-bottom: 2.2rem;
}
h1 {
  font-family:
    Georgia,
    Hiragino Mincho ProN,
    serif;
  font-weight: 500;
  font-size: clamp(52px, 11vw, 150px);
  letter-spacing: 0.08em;
  line-height: 1;
  color: #f2fbff;
  text-shadow:
    0 0 40px rgba(120, 215, 255, 0.35),
    0 2px 30px rgba(0, 40, 80, 0.6);
}
h1 .thin {
  font-weight: 300;
  opacity: 0.55;
  margin-left: 0.18em;
}
h2 {
  font-family:
    Georgia,
    Hiragino Mincho ProN,
    serif;
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 64px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  margin-bottom: 3rem;
  color: #eef9ff;
  text-shadow: 0 0 30px rgba(120, 215, 255, 0.3);
}
.lead {
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: 0.28em;
  color: #e1f5ffe6;
  margin-top: 2.4rem;
}
.body {
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 2.4;
  letter-spacing: 0.14em;
  color: #e2f4ffeb;
}
.hero .eyebrow {
  color: #083c5cd9;
}
.hero h1 {
  color: #0b3a58;
  text-shadow:
    0 0 34px rgba(255, 255, 255, 0.75),
    0 2px 22px rgba(255, 255, 255, 0.45);
}
.hero h1 .thin {
  opacity: 0.6;
}
.hero .lead {
  color: #093e5feb;
}
.hero .scroll-hint {
  color: #083c5cbf;
}
.hero .hint-line {
  background: linear-gradient(to bottom, rgba(8, 60, 92, 0.7), transparent);
}
.scroll-hint {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: #d2f0ffb3;
}
.hero {
  position: relative;
}
.hint-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(210, 240, 255, 0.8), transparent);
  animation: hint 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hint {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  35% {
    transform: scaleY(1);
    opacity: 1;
  }
  to {
    transform: scaleY(1) translateY(18px);
    opacity: 0;
  }
}
.ph {
  display: inline-block;
}
.text-veil {
  width: min(960px, 100%);
  padding: clamp(26px, 4.5vw, 48px) clamp(20px, 4vw, 48px);
  background: #05182e61;
  border: 1px solid rgba(140, 215, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 12px 50px #000a1940;
}
.about-catch {
  font-family:
    Georgia,
    Hiragino Mincho ProN,
    serif;
  font-size: clamp(19px, 2.7vw, 30px);
  letter-spacing: 0.14em;
  color: #f0faff;
  text-shadow: 0 0 26px rgba(120, 215, 255, 0.45);
  margin-bottom: 2.4rem;
}
.about .body {
  margin-bottom: 1.9rem;
}
.about-close {
  margin-top: 0.6rem;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.22em;
  line-height: 2.2;
  color: #eaf8ff;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px;
  width: min(1060px, 100%);
}
.card {
  position: relative;
  text-align: left;
  text-decoration: none;
  color: inherit;
  padding: 30px 26px 26px;
  border: 1px solid rgba(150, 220, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(160deg, #1e5a8c29, #06193252);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.5s,
    box-shadow 0.5s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: #a0e6ff8c;
  box-shadow:
    0 18px 50px #1478be40,
    0 0 30px #5ac8ff1f inset;
}
.card-no {
  display: block;
  font-family:
    Hiragino Mincho ProN,
    Georgia,
    serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8cd7fab3;
  font-feature-settings: "palt" 1;
}
.card h3 {
  font-family:
    Hiragino Mincho ProN,
    Georgia,
    serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 12px 0;
  color: #f0faff;
  font-feature-settings: "palt" 1;
}
.card p {
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #d2ecfccc;
  margin-bottom: 18px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: #96e1ffd9;
  border: 1px solid rgba(150, 225, 255, 0.3);
  border-radius: 999px;
  padding: 5px 12px;
}
.card-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #aaebfff2;
  transition:
    gap 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.35s;
}
.card:hover .card-btn {
  gap: 11px;
  color: #fff;
}
.skill-list {
  list-style: none;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.skill-list li {
  text-align: left;
}
.skill-list span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
  color: #def3ffe6;
}
.skill-list i {
  display: block;
  height: 1px;
  background: #a0e1ff26;
  position: relative;
}
.skill-list i:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: linear-gradient(to right, #57c8ff, #a5f0ff);
  box-shadow: 0 0 14px #6ed7ffe6;
  transition: width 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}
.skill-list li.in i:after {
  width: var(--w);
}
.panel.contact {
  min-height: 74vh;
  min-height: 74dvh;
}
.contact .lead {
  margin: 0 0 3rem;
}
.contact .body {
  margin-bottom: 2.4rem;
}
.glow {
  text-shadow:
    0 0 24px rgba(130, 235, 255, 0.8),
    0 0 60px rgba(80, 200, 255, 0.4);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 16px 30px;
  border: 1px solid rgba(150, 225, 255, 0.42);
  border-radius: 999px;
  background: linear-gradient(160deg, #1e5a8c4d, #06193270);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #dff4ff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
  transition:
    border-color 0.4s,
    box-shadow 0.4s,
    color 0.4s,
    transform 0.4s;
}
.cta-btn:hover {
  color: #fff;
  border-color: #aaf0ffd9;
  box-shadow:
    0 0 28px #5ac8ff59,
    0 8px 30px #0a3c6e59;
  transform: translateY(-2px);
}
.cta-ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.legal-links {
  margin-top: 1.5rem;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.legal-links a {
  color: #aad7f5a6;
  text-decoration: none;
  transition: color 0.3s;
}
.legal-links a:hover {
  color: #fff;
}
.legal-links span {
  margin: 0 12px;
  color: #aad7f54d;
}
.site-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 8vh clamp(20px, 6vw, 80px) 6vh;
}
.fin {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: #a0d2f080;
}
.credits {
  margin-top: 1.6rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #8cbee166;
}
.credits a {
  color: #96cdf08c;
}
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition:
    opacity 1.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.reveal:nth-child(3) {
  transition-delay: 0.24s;
}
.reveal:nth-child(4) {
  transition-delay: 0.36s;
}
.cards .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.cards .reveal:nth-child(2) {
  transition-delay: 0.17s;
}
.cards .reveal:nth-child(3) {
  transition-delay: 0.29s;
}
.cards .reveal:nth-child(4) {
  transition-delay: 0.41s;
}
.cards .reveal:nth-child(5) {
  transition-delay: 0.53s;
}
.cards .reveal:nth-child(6) {
  transition-delay: 0.65s;
}
@media (max-width: 760px) {
  .panel {
    padding: 14vh 20px 10vh;
  }
  h1 {
    font-size: clamp(42px, 13vw, 64px);
  }
  h2 {
    margin-bottom: 2rem;
  }
  .body {
    line-height: 2.1;
    letter-spacing: 0.08em;
  }
  .depth-meter {
    right: 12px;
    top: auto;
    bottom: 15vh;
    transform: none;
    gap: 8px;
  }
  .depth-zone {
    display: none;
  }
  .depth-value {
    font-size: 15px;
  }
  .depth-track {
    height: 12vh;
  }
  .cards {
    gap: 14px;
  }
  .card {
    padding: 20px 18px 16px;
    border-radius: 12px;
  }
  .card h3 {
    font-size: 18px;
    margin: 8px 0;
  }
  .card p {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 12px;
  }
  .tag {
    font-size: 9px;
    padding: 4px 10px;
  }
  .skill-list {
    gap: 20px;
  }
  .contact-actions {
    gap: 12px;
  }
  .cta-btn {
    font-size: 13px;
    padding: 13px 20px;
  }
  .cta-ic {
    width: 16px;
    height: 16px;
  }
  .fin {
    margin-top: 6vh;
  }
  .credits {
    padding: 0 12px;
  }
  .site-nav {
    padding: 12px 14px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nav-logo span {
    display: none;
  }
  .nav-logo-mark {
    width: 32px;
    height: 32px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 13px;
    margin-top: 10px;
  }
  .nav-links a {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .about .body br,
  .about-close br,
  .contact .body br {
    display: none;
  }
  .about-catch {
    letter-spacing: 0.06em;
  }
  .text-veil {
    padding: 22px 16px;
    border-radius: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: opacity 0.6s;
    transform: none;
    filter: none;
  }
  .hint-line {
    animation: none;
  }
}

/* WILL GIVE: smartphone navigation */
.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .site-nav {
    padding: 14px 18px !important;
    min-height: 64px;
    align-items: center;
    flex-wrap: nowrap;
    z-index: 1000;
  }

  .nav-logo {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-logo-mark {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain;
  }

  .nav-logo span {
    display: inline !important;
    font-size: 14px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
    touch-action: manipulation;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 11px;
    border: 1px solid rgba(65, 220, 255, 0.38);
    border-radius: 12px;
    background: rgba(0, 32, 48, 0.76);
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition:
      transform 0.28s ease,
      opacity 0.2s ease;
  }

  .site-nav.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-nav.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-nav.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 330px);
    height: 100dvh;
    margin: 0;
    padding: 92px 28px 32px !important;
    background: linear-gradient(
      180deg,
      rgba(0, 39, 58, 0.99),
      rgba(0, 23, 37, 0.99)
    );
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.35);
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 0.3s ease,
      visibility 0.3s ease;
    z-index: 1001;
  }

  .site-nav.menu-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    display: block !important;
    width: 100%;
    padding: 15px 2px !important;
    border-bottom: 1px solid rgba(116, 223, 244, 0.16);
    font-size: 15px !important;
    letter-spacing: 0.14em;
    text-align: left;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: auto;
    border: 0;
    background: rgba(0, 10, 18, 0.58);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .site-nav.menu-open .mobile-menu-backdrop {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}
