@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500;700;800&display=swap");

:root {
  --ink: #131313;
  --bg: #e9e9e7;
  --font-din: "DIN 2014", "DIN Alternate", "DIN Condensed", "FF DIN", "Arial Narrow", sans-serif;
  --card-bg: rgba(9, 10, 15, 0.72);
  --card-border: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
  --card-text: rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: #08090c;
}

body.is-password-locked {
  overflow: hidden;
}

body.profile-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(32, 45, 36, 0.18), transparent 28%),
    #07090d;
}

body.profile-page .profile-section {
  margin-top: 0;
  min-height: auto;
  padding-top: 88px;
}

body.profile-page .profile-shell {
  width: min(1080px, calc(100vw - 40px));
}

.profile-page-nav {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 80;
}

.profile-page-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.42);
  color: #ffffff;
  font-family: var(--font-din);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.profile-page-link:hover,
.profile-page-link:focus-visible {
  background: rgba(10, 10, 10, 0.62);
  outline: none;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(3, 5, 9, 0.42) 0%, rgba(3, 5, 9, 0.7) 100%),
    rgba(3, 5, 9, 0.44);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.password-gate[hidden] {
  display: none !important;
}

.password-gate-panel {
  width: min(460px, calc(100vw - 40px));
  overflow: hidden;
  border-radius: 22px;
  background: rgba(7, 10, 16, 0.74);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
}

.password-gate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
}

.password-gate-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.password-gate-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.password-gate-dot-red {
  background: #ff5f57;
}

.password-gate-dot-yellow {
  background: #febc2e;
}

.password-gate-dot-green {
  background: #28c840;
}

.password-gate-bar-title {
  color: rgba(255, 255, 255, 0.42);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.password-gate-body {
  padding: 28px 24px 24px;
}

.password-gate-kicker {
  margin: 0 0 10px;
  color: rgba(196, 255, 199, 0.78);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.74rem;
  line-height: 1.5;
}

.password-gate-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-din);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
}

.password-gate-copy {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  line-height: 1.72;
}

.password-gate-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.password-gate-label {
  color: rgba(255, 255, 255, 0.42);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.password-gate-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(196, 255, 199, 0.96);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.96rem;
  outline: none;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.password-gate-input:focus {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.password-gate-button {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 58, 34, 0.96);
  color: rgba(208, 255, 210, 0.98);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease, background-color 220ms ease;
}

.password-gate-button:hover,
.password-gate-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(28, 74, 42, 0.98);
  filter: brightness(1.04);
  outline: none;
}

.password-gate-message {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: rgba(255, 119, 119, 0.92);
  font-size: 0.78rem;
  line-height: 1.5;
}

.hero-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #d7d7d3;
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 16;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.46) 42%, rgba(0, 0, 0, 0.2) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.82) 100%);
  opacity: calc(var(--hero-depth-progress, 0) * 0.96);
  pointer-events: none;
  transition: opacity 260ms ease;
}

.hero-nav {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 90;
}

.hero-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.ux-toggle {
  min-width: 92px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.42);
  color: #ffffff;
  font-family: var(--font-din);
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: background-color 220ms ease, opacity 220ms ease;
}

.ux-toggle:hover,
.ux-toggle:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(10, 10, 10, 0.62);
  outline: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  transition: transform 280ms ease, opacity 280ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  padding: 92px 18px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(7, 9, 14, 0.18);
  backdrop-filter: blur(8px);
}

.menu-panel[hidden] {
  display: none !important;
}

.menu-link {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-din);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  text-align: left;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.menu-link-profile {
  font-size: 1rem;
}

.menu-group-label {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--font-din);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-link-child {
  padding-left: 16px;
  font-size: 0.84rem;
  opacity: 0.92;
}

.menu-link:hover,
.menu-link:focus-visible {
  color: #ffffff;
  transform: translateX(6px);
  outline: none;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0a0a0a;
}

.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.32) 42%, rgba(0, 0, 0, 0.12) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.76) 100%);
  opacity: calc(0.4 + (var(--hero-depth-progress, 0) * 1.08));
  pointer-events: none;
  transition: opacity 260ms ease;
}

.ground-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.ground-video video,
.ground-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter:
    saturate(calc(0.98 - (var(--hero-depth-progress, 0) * 0.08)))
    contrast(calc(1.01 - (var(--hero-depth-progress, 0) * 0.03)));
  transform: scale(calc(1 + (var(--hero-depth-progress, 0) * 0.008)));
  transition: filter 220ms ease, transform 220ms ease;
}

.hero-media-video-back {
  opacity: 0;
  z-index: 0;
  transition: opacity 880ms ease;
}

#hero-video {
  opacity: 0;
  z-index: 1;
  transition: opacity 880ms ease;
}

.hero-media-video-back.is-visible,
#hero-video.is-visible {
  opacity: 1;
}

.hero-media-image-back {
  opacity: 0;
  transition: opacity 880ms ease;
}

.hero-media-image-back.is-visible {
  opacity: 1;
}

.hero-media-image {
  opacity: 0;
  transition: opacity 880ms ease;
}

.hero-media-image.is-visible {
  opacity: 1;
}

@media (min-width: 761px) {
  .hero[data-media-type="image"][data-media-orientation="portrait"] .hero-media-image {
    object-fit: contain;
    object-position: center center;
    background: transparent;
  }

  .hero[data-media-type="image"][data-media-orientation="portrait"] .hero-media-image-back {
    object-fit: cover;
    object-position: center center;
    filter: blur(14px) saturate(0.9) brightness(0.36);
    transform: scale(1.12);
  }
}

.ground-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.1px),
    linear-gradient(180deg, rgba(6, 8, 14, 0.14) 0%, rgba(6, 8, 14, 0.36) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.22) 28%, rgba(0, 0, 0, 0.08) 54%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 24%);
  background-size: 8px 8px, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: calc(1 + (var(--hero-depth-progress, 0) * 0.46));
  transition: opacity 260ms ease;
}

.ground-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.34) 0%, transparent 40%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.05), transparent 40%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.5) 100%);
  opacity: calc(1 + (var(--hero-depth-progress, 0) * 0.62));
  transition: opacity 260ms ease;
}

.hero-copy {
  position: absolute;
  z-index: 10;
  left: clamp(20px, 6.8vw, 108px);
  top: clamp(170px, 31vh, 340px);
  width: min(820px, calc(100vw - 40px));
  transition: opacity 320ms ease, transform 320ms ease;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 36px);
  z-index: 11;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
  opacity: 0.74;
  transition: opacity 320ms ease, transform 320ms ease;
}

.scene-nav {
  position: absolute;
  left: 50%;
  bottom: clamp(92px, 12vh, 126px);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.scene-nav-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color 220ms ease, opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.scene-nav-button:hover,
.scene-nav-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.scene-nav-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(255, 255, 255, 0.82);
}

.scene-nav-prev .scene-nav-arrow {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.scene-nav-next .scene-nav-arrow {
  transform: translate(-62%, -50%) rotate(45deg);
}

.scene-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 320ms ease, transform 320ms ease;
}

.scene-indicator-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background-color 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.scene-indicator-dot:hover,
.scene-indicator-dot:focus-visible {
  background: rgba(255, 255, 255, 0.52);
  transform: scale(1.08);
  outline: none;
}

.scene-indicator-dot.is-active {
  background: rgba(255, 255, 255, 0.82);
  transform: scale(1.1);
}

.mobile-swipe-cue {
  display: none;
}

.scroll-cue-line {
  display: none;
}

.scroll-cue-arrow {
  display: block;
  width: 28px;
  height: 28px;
  border-right: 3px solid rgba(255, 255, 255, 0.82);
  border-bottom: 3px solid rgba(255, 255, 255, 0.82);
  transform: rotate(45deg);
  animation: scrollCueFloat 1.8s ease-in-out infinite;
}

.profile-section {
  position: relative;
  z-index: 40;
  margin-top: 100svh;
  margin-top: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: clamp(48px, 6vw, 88px) 20px;
  background: transparent;
  color: #ffffff;
}

.profile-shell {
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.profile-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 22px 22px;
  border-radius: 20px;
  background: rgba(7, 10, 16, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.profile-panel::before {
  content: attr(data-terminal-title);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px 0 74px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.42);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.profile-panel::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  width: 33px;
  height: 9px;
  background:
    radial-gradient(circle, #ff5f57 0 4px, transparent 4.5px) 0 0 / 9px 9px no-repeat,
    radial-gradient(circle, #febc2e 0 4px, transparent 4.5px) 12px 0 / 9px 9px no-repeat,
    radial-gradient(circle, #28c840 0 4px, transparent 4.5px) 24px 0 / 9px 9px no-repeat;
  pointer-events: none;
}

.profile-header {
  display: grid;
  gap: 16px;
  width: min(880px, 100%);
}

.profile-identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
}

.profile-heading {
  min-width: 0;
}

.profile-title-stage {
  position: relative;
  min-height: 2.8em;
}

.profile-avatar-slot {
  flex: 0 0 80px;
  overflow: hidden;
  width: 80px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.profile-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-eyebrow {
  margin: 0 0 10px;
  color: rgba(196, 255, 199, 0.76);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.profile-title {
  margin: 0;
  font-family: var(--font-din);
  font-size: clamp(1.22rem, 2.5vw, 1.82rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 240ms ease, transform 300ms ease;
}

.profile-title-sub {
  font-size: 0.56em;
  letter-spacing: 0.04em;
  opacity: 0.58;
}

.profile-title-typing {
  margin: 0;
  color: rgba(196, 255, 199, 0.92);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: clamp(0.78rem, 1.02vw, 0.86rem);
  line-height: 1.72;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 1;
  transition: opacity 220ms ease, transform 280ms ease, filter 220ms ease;
}

.profile-title-cursor {
  display: inline-block;
  width: 0.62em;
  height: 1.08em;
  margin-left: 4px;
  border-right: 2px solid rgba(196, 255, 199, 0.88);
  animation: heroCursorBlink 1s steps(1, end) infinite;
}

.profile-title-stage.is-rendered .profile-title-typing {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  filter: blur(8px);
  pointer-events: none;
}

.profile-title-stage.is-rendered .profile-title {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.profile-lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.92rem, 1.3vw, 1rem);
  line-height: 1.8;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.profile-card {
  padding-bottom: 18px;
}

.profile-card-title {
  margin: 0;
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  color: rgba(196, 255, 199, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.profile-card-text {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.75;
}

.career-history {
  margin-top: 6px;
}

.career-summary-panel {
  margin-top: 6px;
}

.career-header {
  display: grid;
  gap: 8px;
}

.career-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.7;
}

.career-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.career-summary-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.career-item {
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.career-summary-item {
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.career-period {
  margin: 0 0 8px;
  color: rgba(196, 255, 199, 0.76);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.72rem;
  line-height: 1.4;
}

.career-company {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.career-role {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  line-height: 1.6;
}

.career-text {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.84;
}

.career-points,
.career-projects {
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.8;
}

.career-projects {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.64);
}

.awards-panel {
  margin-top: 6px;
}

.awards-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.award-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.award-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.award-year {
  color: rgba(196, 255, 199, 0.76);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
}

.award-text {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.74;
}

.hero-kicker {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-din);
  font-size: 1rem;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.hero-kicker-main,
.hero-kicker-sub {
  display: block;
}

.hero-kicker-main {
  font-size: 1.68rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.18em;
}

.hero-kicker-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.hero-typing-stage {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  min-height: clamp(150px, 18vw, 220px);
}

.hero-code-shell {
  position: absolute;
  inset: 0 auto auto 0;
  width: min(680px, 100%);
  padding: 0;
  border-radius: 20px;
  background: rgba(7, 10, 16, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  transform-origin: left center;
  transition: opacity 280ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease, background-color 220ms ease;
  cursor: pointer;
}

.hero-code-shell:hover,
.hero-code-shell:focus-visible {
  background: rgba(9, 13, 19, 0.62);
  outline: none;
}

.hero-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.hero-terminal-dot-red {
  background: #ff5f57;
}

.hero-terminal-dot-yellow {
  background: #febc2e;
}

.hero-terminal-dot-green {
  background: #28c840;
}

.hero-terminal-title {
  color: rgba(255, 255, 255, 0.44);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.hero-code-line {
  min-height: 5.8em;
  margin: 0;
  padding: 18px 18px 20px;
  color: rgba(196, 255, 199, 0.92);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: clamp(0.9rem, 1.55vw, 1.1rem);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.hero-code-line code {
  font: inherit;
}

.hero-code-cursor {
  display: inline-block;
  width: 0.64em;
  height: 1.2em;
  margin-left: 4px;
  border-right: 2px solid rgba(196, 255, 199, 0.88);
  animation: heroCursorBlink 1s steps(1, end) infinite;
}

.hero-rendered-title {
  position: absolute;
  inset: 44% auto auto 0;
  width: min(760px, 100%);
  min-height: 1.2em;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-din);
  font-size: clamp(2.2rem, 7.4vw, 8rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.46);
  opacity: 0;
  transform: translate3d(0, -36%, 0) scale(0.98);
  transition: opacity 320ms ease 60ms, transform 420ms cubic-bezier(0.22, 1, 0.36, 1) 60ms, filter 320ms ease 60ms;
}

.hero-typing-stage.is-rendered .hero-code-shell {
  opacity: 0;
  transform: translate3d(0, -12px, 0) scale(0.985);
  filter: blur(8px);
}

.hero-typing-stage.is-rendered .hero-rendered-title {
  opacity: 1;
  transform: translate3d(0, -36%, 0) scale(1);
}

.hero-typing-stage.is-dissolving .hero-code-shell {
  opacity: 0;
  transform: translate3d(0, -16px, 0) scale(0.98);
  filter: blur(12px);
}

.hero-typing-stage.is-dissolving .hero-rendered-title {
  opacity: 0;
  transform: translate3d(0, -42%, 0) scale(1.01);
  filter: blur(10px);
}

.hero-ja-copy {
  display: none;
}

.hero-ja-copy p {
  display: block;
  width: fit-content;
  margin: 0 0 8px;
  padding: 6px 12px;
  background: rgba(7, 9, 14, 0.72);
  color: #ffffff;
  font-size: clamp(0.88rem, 1.9vw, 2rem);
  font-weight: 700;
  line-height: 1.28;
  font-style: italic;
  transform: skewX(-8deg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-scroll-mark {
  display: none;
}

.scene-title {
  position: absolute;
  top: clamp(108px, 14vh, 148px);
  left: clamp(24px, 6vw, 44px);
  z-index: 14;
  width: min(560px, calc(100vw - 120px));
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.98);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}

.scene-title-stage {
  position: relative;
  min-height: 92px;
}

.scene-title-typing {
  margin: 0;
  color: rgba(196, 255, 199, 0.92);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: clamp(0.76rem, 1vw, 0.86rem);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 1;
  transition: opacity 220ms ease, transform 300ms ease, filter 220ms ease;
}

.scene-title-cursor {
  display: inline-block;
  width: 0.62em;
  height: 1.08em;
  margin-left: 4px;
  border-right: 2px solid rgba(196, 255, 199, 0.88);
  animation: heroCursorBlink 1s steps(1, end) infinite;
}

.scene-title-stack {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
  max-width: min(560px, 100%);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 240ms ease, transform 320ms ease;
}

.scene-title-main {
  display: block;
  color: #ffffff;
  font-size: clamp(1.28rem, 2.8vw, 2.2rem);
  line-height: 1.24;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.scene-title-sub {
  display: block;
  color: #ffffff;
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.scene-title-stage.is-rendered .scene-title-typing {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  filter: blur(8px);
}

.scene-title-stage.is-rendered .scene-title-stack {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.scene-detail {
  position: absolute;
  top: calc(clamp(108px, 14vh, 148px) + 112px);
  left: clamp(24px, 6vw, 44px);
  z-index: 15;
  width: min(460px, calc(100vw - 120px));
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}

.scene-detail-shell {
  padding: 0;
}

.scene-detail-eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-din);
  font-size: 0.74rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scene-detail-intro {
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.66;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.scene-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.scene-role-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scene-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
}

.scene-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
}

.scene-metric-value {
  color: #ffffff;
  font-family: var(--font-din);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.scene-metric-label {
  color: var(--card-text);
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: nowrap;
}

.scene-points {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--card-text);
  font-size: 0.84rem;
  line-height: 1.62;
}

.scene-summary {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.scene-summary-item {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.68;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.scene-detail-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  line-height: 1.5;
}

.hero.is-scene-active .hero-copy {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  pointer-events: none;
}

.hero.is-scene-active .scroll-cue {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

.hero.is-scene-active .scene-title {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero.is-scene-active .scene-detail {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero.is-ux-hidden .ground-overlay,
.hero.is-ux-hidden .hero-vignette,
.hero.is-ux-hidden .hero-copy,
.hero.is-ux-hidden .scene-nav,
.hero.is-ux-hidden .mobile-swipe-cue,
.hero.is-ux-hidden .scene-indicator,
.hero.is-ux-hidden .scroll-cue,
.hero.is-ux-hidden .scene-title,
.hero.is-ux-hidden .scene-detail {
  opacity: 0;
  pointer-events: none;
}

.hero.is-ux-hidden .hero-copy,
.hero.is-ux-hidden .scroll-cue,
.hero.is-ux-hidden .scene-title,
.hero.is-ux-hidden .scene-detail {
  transform: translate3d(0, 16px, 0);
}

.hero.is-ux-hidden .ux-toggle {
  background: rgba(255, 255, 255, 0.12);
}

@keyframes typoEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes scrollCueFloat {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
  }
}

@keyframes mobileSwipeCueFloat {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(-3px, -3px);
  }
}

@keyframes heroCursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 760px) {
  body.portfolio-home .profile-section {
    display: none;
  }

  body.profile-page .profile-section {
    padding-top: 72px;
  }

  .profile-page-nav {
    top: 12px;
    left: 12px;
  }

  .profile-page-link {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.74rem;
  }

  .menu-link {
    font-size: 0.84rem;
  }

  .menu-link-profile {
    font-size: 0.94rem;
  }

  .menu-group-label {
    margin-top: 12px;
    font-size: 0.56rem;
  }

  .menu-link-child {
    padding-left: 14px;
    font-size: 0.8rem;
  }

  .ground-video .hero-media-image-back {
    object-fit: cover;
    object-position: center center;
    filter: blur(12px) saturate(0.92) brightness(0.48);
    transform: scale(1.12);
    z-index: 0;
  }

  .ground-video .hero-media-video-back {
    object-fit: cover;
    object-position: center center;
    filter: blur(12px) saturate(0.92) brightness(0.48);
    transform: scale(1.12);
    z-index: 0;
  }

  .ground-video .hero-media-image {
    object-fit: contain;
    object-position: center center;
    background: transparent;
    z-index: 1;
  }

  .ground-video #hero-video {
    object-fit: contain;
    object-position: center center;
    background: transparent;
    z-index: 1;
  }

  .hero-nav {
    top: 12px;
    left: 12px;
  }

  .hero-controls {
    display: block;
  }

  .menu-toggle {
    width: 52px;
    height: 52px;
  }

  .ux-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    min-width: 82px;
    height: 40px;
    padding: 0 14px;
    font-size: 0.74rem;
    z-index: 91;
  }

  .menu-panel {
    gap: 12px;
    padding: 84px 14px 20px;
  }

  .hero-copy {
    left: 14px;
    top: clamp(146px, 30vh, 260px);
    width: calc(100vw - 28px);
  }

  .profile-section {
    padding: 40px 14px;
  }

  .profile-shell {
    width: calc(100vw - 28px);
    gap: 14px;
  }

  .profile-panel {
    padding: 52px 16px 18px;
  }

  .profile-panel::before {
    padding-left: 68px;
    font-size: 0.66rem;
  }

  .profile-header {
    gap: 16px;
    width: 100%;
  }

  .profile-identity {
    gap: 12px;
  }

  .profile-avatar-slot {
    flex-basis: 72px;
    width: 72px;
  }

  .profile-title {
    font-size: clamp(1.34rem, 6vw, 1.72rem);
  }

  .profile-lead {
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.85;
  }

  .profile-title-stage {
    min-height: 2.6em;
  }

  .profile-title-typing {
    font-size: 0.72rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .career-item {
    padding: 14px 14px 16px;
  }

  .career-summary-item {
    padding: 13px 14px 15px;
  }

  .career-company {
    font-size: 0.94rem;
  }

  .career-text,
  .career-points,
  .career-projects {
    font-size: 0.82rem;
    line-height: 1.74;
  }

  .award-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
  }

  .award-text {
    font-size: 0.82rem;
    line-height: 1.68;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 0.8rem;
  }

  .hero-kicker-main {
    font-size: 1.35rem;
    letter-spacing: 0.12em;
  }

  .hero-kicker-sub {
    margin-top: 4px;
    font-size: 0.87rem;
    letter-spacing: 0.08em;
  }

  .hero-code-shell {
    width: calc(100vw - 28px);
  }

  .hero-code-line {
    font-size: 0.8rem;
    line-height: 1.52;
    padding: 16px 14px 18px;
    min-height: 5.2em;
  }

  .hero-terminal-bar {
    padding: 10px 12px;
  }

  .hero-terminal-title {
    font-size: 0.68rem;
  }

  .hero-typing-stage {
    width: calc(100vw - 28px);
    min-height: 128px;
  }

  .hero-rendered-title {
    font-size: clamp(1.72rem, 9vw, 3.2rem);
    inset: 42% auto auto 0;
    transform: translate3d(0, -28%, 0) scale(0.98);
  }

  .hero-typing-stage.is-rendered .hero-rendered-title {
    transform: translate3d(0, -28%, 0) scale(1);
  }

  .hero-typing-stage.is-dissolving .hero-rendered-title {
    transform: translate3d(0, -34%, 0) scale(1.01);
  }

  .hero-ja-copy {
    margin-top: 14px;
  }

  .hero-ja-copy p {
    font-size: clamp(0.78rem, 3.3vw, 1rem);
  }

  .scene-title {
    top: 88px;
    left: 72px;
    width: calc(100vw - 96px);
    overflow: visible;
  }

  .scene-title-stage {
    min-height: 74px;
  }

  .scene-title-typing {
    font-size: 0.68rem;
  }

  .scene-title-stack {
    max-width: none;
    width: auto;
  }

  .scene-title-main {
    font-size: clamp(1rem, 4.8vw, 1.34rem);
    line-height: 1.28;
    white-space: normal;
  }

  .scene-title-sub {
    font-size: 0.66rem;
    line-height: 1.45;
    white-space: normal;
  }

  .scene-nav-button {
    width: 44px;
    height: 44px;
  }

  .scene-nav {
    display: none;
  }

  .scene-indicator {
    display: none;
  }

  .mobile-swipe-cue {
    position: absolute;
    left: 50%;
    bottom: 78px;
    z-index: 12;
    display: grid;
    justify-items: center;
    gap: 8px;
    transform: translateX(-50%);
    opacity: 0.72;
    transition: opacity 320ms ease, transform 320ms ease;
  }

  .scroll-cue {
    display: none;
  }

  .mobile-swipe-cue-label {
    color: rgba(255, 255, 255, 0.66);
    font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    line-height: 1;
  }

  .mobile-swipe-cue-arrow {
    display: block;
    width: 18px;
    height: 18px;
    border-left: 2px solid rgba(255, 255, 255, 0.76);
    border-top: 2px solid rgba(255, 255, 255, 0.76);
    transform: rotate(45deg);
    animation: mobileSwipeCueFloat 1.8s ease-in-out infinite;
  }

  .scene-detail {
    top: 176px;
    left: 72px;
    width: calc(100vw - 96px);
    max-width: none;
  }

  .scene-detail-shell {
    padding: 0;
  }

  .scene-role-tags {
    gap: 7px;
  }

  .scene-role-tag {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.66rem;
  }

  .scene-metrics {
    gap: 6px 12px;
  }

  .scene-points {
    margin-top: 12px;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .scene-detail-note {
    margin-top: 10px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
