:root {
  --bg: #ffffff;
  --text: #060606;
  --muted: #8e8e8e;
  --line: #ececec;
  --accent: #6fb1ff;
  --content-width: 940px;
  --page-gutter: 64px;
  --content-inline-pad: 30px;
  --brand-size: 0.95rem;
  --nav-size: 0.98rem;
  --hero-title-size: clamp(3rem, 6.8vw, 4.8rem);
  --hero-body-size: clamp(1.55rem, 3vw, 2.25rem);
  --meta-size: 0.92rem;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --strap-color: #e5e8ec;
  --strap-width: 60px;
  --strap-radius: 0;
  --strap-overlap: 18px;
  --ai-chat-width: min(420px, 32vw);
  --layout-shift-x: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text);
  cursor: none;
}

body.is-chat-open {
  --layout-shift-x: calc(var(--ai-chat-width) * -0.42);
  overflow-x: hidden;
}

body,
body * {
  cursor: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(var(--layout-shift-x));
}

button,
a,
[data-card],
[data-cursor-icon],
[role="button"] {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1.5px solid rgba(15, 15, 15, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42) inset,
    0 0 18px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    width 0.22s ease,
    height 0.22s ease,
    opacity 0.18s ease,
    transform 0.08s linear;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor.is-hovering {
  width: 70px;
  height: 70px;
}

.custom-cursor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(12, 12, 12, 0.88);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.custom-cursor.has-icon .custom-cursor-icon {
  opacity: 1;
  transform: scale(1);
}

.custom-cursor-icon svg {
  width: 100%;
  height: 100%;
}

@media (pointer: coarse) {
  body,
  body *,
  button,
  a,
  [data-card],
  [data-cursor-icon],
  [role="button"] {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none;
  }
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-width));
  z-index: 20;
  height: 60px;
  padding: 0 var(--content-inline-pad);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 32px;
  background: #d2d2d238;
  border-radius: 16px;
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  transform: translate(calc(-50% + var(--layout-shift-x)), 0);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.site-header.is-hidden {
  transform: translate(calc(-50% + var(--layout-shift-x)), calc(-100% - 26px));
  opacity: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: var(--brand-size);
  letter-spacing: 0.02em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 20px;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  gap: 72px;
  font-size: var(--nav-size);
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding-bottom: 6px;
  color: rgba(6, 6, 6, 0.42);
  transition: color 0.24s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #111111;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.site-nav a.is-active {
  color: #111111;
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(420px, 1fr);
  align-items: center;
  padding: 40px var(--content-inline-pad) 56px;
  overflow: hidden;
}

.hero-copy {
  padding-left: 0;
  transform: translateY(-60px);
}

.hero-heading-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-title {
  margin: 0;
  font-size: var(--hero-body-size);
  line-height: 1;
  font-weight: 600;
  opacity: 0;
  transform: translateY(24px);
}

.hero-intro {
  margin-top: 24px;
}

.hero-intro p {
  margin: 40px 0 0;
  font-size: var(--hero-body-size);
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
}

.hero-name-line {
  margin: 0;
  font-weight: 520;
}

.hero-intro p:last-child {
}

.hero-role-line {
  display: flex;
  align-items: center;
  gap: 0.12em;
  flex-wrap: wrap;
}

.hero-role-wrap {
  display: inline-block;
  min-width: 5.5em;
  white-space: nowrap;
}

.hero-role-stack {
  position: relative;
  display: inline-grid;
  align-items: start;
  perspective: 700px;
}

.hero-role-layer {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.01em;
  backface-visibility: hidden;
}

.hero-role-next {
  pointer-events: none;
}

.hero-role-char {
  display: inline-block;
  transform-origin: 50% 50% -0.34em;
  backface-visibility: hidden;
}

.hero-role-space {
  width: 0.32em;
}

.hero.is-active .hero-title {
  animation: hero-copy-enter 0.75s ease 1.15s forwards;
}

.hero.is-active .hero-name-line {
  animation: hero-copy-enter 0.75s ease 1.15s forwards;
}

.hero.is-active .hero-intro p:last-child {
  animation: hero-copy-enter 0.75s ease 1.4s forwards;
}

.hero-role-current.is-leaving .hero-role-char {
  animation: hero-role-char-out 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--char-index, 0) * 0.045s);
}

.hero-role-next.is-entering .hero-role-char {
  animation: hero-role-char-in 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--char-index, 0) * 0.045s);
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.stack-card {
  position: absolute;
  right: 170px;
  top: 132px;
  width: min(15vw, 280px);
  --card-ratio: 0.72;
  transform: rotate(16deg);
  object-fit: cover;
  filter: drop-shadow(0 24px 48px rgba(21, 21, 21, 0.12));
}

.hanging-card {
  --card-width: min(15.6vw, 296px);
  --card-ratio: 0.768;
  --length: 210px;
  position: absolute;
  inset: 0;
  width: var(--card-width);
  transform-origin: top center;
  touch-action: none;
  user-select: none;
  isolation: isolate;
}

.strap {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--strap-width);
  height: calc(var(--length) + var(--strap-overlap));
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    #ffffff 10%,
    color-mix(in srgb, var(--strap-color) 10%, white) 0%,
    color-mix(in srgb, var(--strap-color) 24%, white) 10%,
    color-mix(in srgb, var(--strap-color) 62%, white) 60%,
    var(--strap-color) 100%
  );
  border-radius: var(--strap-radius);
  z-index: 3;
}

.card-grip {
  all: unset;
  cursor: grab;
  position: absolute;
  left: 50%;
  top: var(--length);
  width: 100%;
  aspect-ratio: var(--card-ratio);
  transform: translate(-50%, 0);
  border-radius: 16px;
  box-shadow: 0 16px 34px var(--card-shadow);
  z-index: 1;
}

.card-grip:active {
  cursor: grabbing;
}

.card-grip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
  -webkit-user-drag: none;
}

.folder-section {
  min-height: 100vh;
  padding: 40px var(--page-gutter) 56px;
  background: #ffffff;
}

.folder-stage {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 780px;
  padding-inline: var(--content-inline-pad);
  transform: translateY(30vh) scale(0.9);
  transform-origin: top center;
}

.folder-tab-hitareas {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.folder-tab-hit {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
  pointer-events: auto;
}

.folder-tab-hit:focus-visible {
  outline: 2px solid rgba(111, 177, 255, 0.9);
  outline-offset: 2px;
}

.folder-pages {
  position: relative;
  min-height: 760px;
}

.folder-page {
  position: absolute;
  inset: 0;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
  will-change: transform;
}

.folder-page[data-folder-page="hobbies"] {
  z-index: 4;
}

.folder-page[data-folder-page="education"] {
  z-index: 6;
}

.folder-page[data-folder-page="basic"] {
  z-index: 8;
}

.folder-page[data-folder-page="about"] {
  z-index: 10;
}

.folder-page-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.folder-page[data-folder-page="about"] {
  isolation: isolate;
}

.folder-page-about-glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.14)),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.32), transparent 34%);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1362 717'><path fill='white' d='M1234.33 71.8527C1236.12 79.5615 1242.98 85.0205 1250.89 85.0205H1344.91C1354.3 85.0205 1361.91 92.6317 1361.91 102.021V699.932C1361.91 709.32 1354.3 716.932 1344.91 716.932H17C7.61119 716.932 0 709.32 0 699.932V102.021C0 92.6317 7.61116 85.0205 17 85.0205H859.905C867.818 85.0205 874.684 79.5615 876.468 71.8527L890.046 13.1678C891.83 5.459 898.696 0 906.608 0H1204.19C1212.1 0 1218.97 5.459 1220.75 13.1678L1234.33 71.8527Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1362 717'><path fill='white' d='M1234.33 71.8527C1236.12 79.5615 1242.98 85.0205 1250.89 85.0205H1344.91C1354.3 85.0205 1361.91 92.6317 1361.91 102.021V699.932C1361.91 709.32 1354.3 716.932 1344.91 716.932H17C7.61119 716.932 0 709.32 0 699.932V102.021C0 92.6317 7.61116 85.0205 17 85.0205H859.905C867.818 85.0205 874.684 79.5615 876.468 71.8527L890.046 13.1678C891.83 5.459 898.696 0 906.608 0H1204.19C1212.1 0 1218.97 5.459 1220.75 13.1678L1234.33 71.8527Z'/></svg>");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}

.folder-page-svg-about {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.folder-tab-hit-hobbies {
  left: 6.5%;
  top: 0.2%;
  width: 27%;
  height: 16%;
}

.folder-tab-hit-basic {
  left: 6.4%;
  top: 8.8%;
  width: 28%;
  height: 17%;
}

.folder-tab-hit-education {
  left: 37.8%;
  top: 0.3%;
  width: 28%;
  height: 16%;
}

.folder-tab-hit-about {
  left: 69%;
  top: 0.2%;
  width: 26%;
  height: 16%;
}

.folder-stage[data-sequence-step="1"] .folder-page[data-folder-page="about"] {
  transform: translate(-92vw, -20vh) rotate(-18deg);
}

.folder-stage[data-sequence-step="2"] .folder-page[data-folder-page="about"] {
  transform: translate(-92vw, -20vh) rotate(-18deg);
}

.folder-stage[data-sequence-step="2"] .folder-page[data-folder-page="basic"] {
  transform: translate(84vw, -68vh) rotate(16deg);
}

.folder-stage[data-sequence-step="3"] .folder-page[data-folder-page="about"] {
  transform: translate(-92vw, -20vh) rotate(-18deg);
}

.folder-stage[data-sequence-step="3"] .folder-page[data-folder-page="basic"] {
  transform: translate(84vw, -68vh) rotate(16deg);
}

.folder-stage[data-sequence-step="3"] .folder-page[data-folder-page="education"] {
  transform: translate(-62vw, 78vh) rotate(-14deg);
}

.folder-stage[data-sequence-step="4"] .folder-page[data-folder-page="about"] {
  transform: translate(-92vw, -20vh) rotate(-18deg);
}

.folder-stage[data-sequence-step="4"] .folder-page[data-folder-page="basic"] {
  transform: translate(84vw, -68vh) rotate(16deg);
}

.folder-stage[data-sequence-step="4"] .folder-page[data-folder-page="education"] {
  transform: translate(-62vw, 78vh) rotate(-14deg);
}

.folder-stage[data-sequence-step="4"] .folder-page[data-folder-page="hobbies"] {
  transform: translate(80vw, 44vh) rotate(18deg);
}

.folder-hint {
  position: fixed;
  left: 50%;
  bottom: 36px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.95rem;
  color: #8e8e8e;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 18;
}

.folder-stage[data-sequence-step="4"] .folder-hint {
  opacity: 1;
}

.placeholder-section {
  min-height: 60vh;
  padding: 132px var(--page-gutter);
  background: #0f1012;
}

.contact-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px var(--content-inline-pad) 40px;
}

.contact-footer-eyebrow {
  margin: 0 0 14px;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.contact-footer h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
  line-height: 1.08;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

.contact-footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: 6px;
}

.contact-footer-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 12px;
}

.contact-footer-stack {
  display: grid;
  gap: 10px;
}

.contact-card-label {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.contact-footer-grid span,
.contact-footer-grid a {
  font-size: 1.05rem;
  line-height: 1.45;
  color: #f7f7f7;
  text-decoration: none;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f7f7;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.copy-button svg {
  width: 18px;
  height: 18px;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: #ffffff;
  color: #111111;
  transform: translateY(-1px);
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: #ffffff;
  font-size: 0.94rem;
  line-height: 1;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 240;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ai-chat-fab {
  position: fixed;
  right: max(24px, calc((100vw - min(calc(100% - (var(--page-gutter) * 2)), var(--content-width))) / 2));
  bottom: 28px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f0f0f;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  transition: transform 0.28s ease, opacity 0.28s ease, background-color 0.24s ease;
}

.ai-chat-fab:hover,
.ai-chat-fab:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.94);
}

.ai-chat-fab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f0f0f;
  flex-shrink: 0;
}

body.is-chat-open .ai-chat-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.ai-chat-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--ai-chat-width);
  height: 100vh;
  z-index: 130;
  padding: 18px 18px 18px 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-chat-open .ai-chat-sidebar {
  pointer-events: auto;
  transform: translateX(0);
}

.ai-chat-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  border-radius: 28px;
  background: rgba(250, 250, 250, 0.9);
  border: 1px solid rgba(12, 12, 12, 0.08);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(26px) saturate(1.08);
  -webkit-backdrop-filter: blur(26px) saturate(1.08);
  overflow: hidden;
}

.ai-chat-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.06);
}

.ai-chat-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.42);
}

.ai-chat-header h2 {
  margin: 0;
  font-size: 1.48rem;
  line-height: 1.05;
  font-weight: 600;
}

.ai-chat-subtitle {
  margin: 10px 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(15, 15, 15, 0.62);
}

.ai-chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #121212;
  transition: background-color 0.24s ease, transform 0.24s ease;
}

.ai-chat-close:hover,
.ai-chat-close:focus-visible {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.ai-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 22px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.ai-chat-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 88%;
}

.ai-chat-message[data-role="user"] {
  align-self: flex-end;
}

.ai-chat-message[data-role="assistant"] {
  align-self: flex-start;
}

.ai-chat-message-meta {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.38);
}

.ai-chat-bubble {
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.96rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.ai-chat-message[data-role="assistant"] .ai-chat-bubble {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 15, 15, 0.06);
  color: #121212;
}

.ai-chat-message[data-role="user"] .ai-chat-bubble {
  background: #111111;
  color: #ffffff;
}

.ai-chat-message.is-status {
  max-width: 100%;
}

.ai-chat-message.is-status .ai-chat-bubble {
  background: rgba(15, 15, 15, 0.05);
  color: rgba(15, 15, 15, 0.62);
}

.ai-chat-form {
  display: grid;
  gap: 12px;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(15, 15, 15, 0.06);
  background: rgba(255, 255, 255, 0.5);
}

.ai-chat-input {
  width: 100%;
  min-height: 52px;
  max-height: 168px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.55;
  resize: none;
  outline: none;
}

.ai-chat-input:focus {
  border-color: rgba(15, 15, 15, 0.2);
}

.ai-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ai-chat-hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(15, 15, 15, 0.44);
}

.ai-chat-send {
  min-width: 88px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 0.24s ease, opacity 0.24s ease, background-color 0.24s ease;
}

.ai-chat-send:hover,
.ai-chat-send:focus-visible {
  transform: translateY(-1px);
}

.ai-chat-send:disabled,
.ai-chat-input:disabled {
  opacity: 0.58;
}

.works-showcase {
  min-height: 150vh;
  padding: 28px var(--page-gutter) 96px;
  background: #ffffff;
}

.works-showcase-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--content-inline-pad);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-card {
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.work-card-project {
  cursor: pointer;
}

.work-card-project:focus-visible .work-card-media {
  outline: 2px solid rgba(17, 17, 17, 0.9);
  outline-offset: 6px;
}

.work-card.is-hidden {
  display: none;
}

.work-card-surface {
  height: 100%;
  border-radius: 16px;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.work-card-project:hover .work-card-surface,
.work-card-project:focus-visible .work-card-surface {
  transform: scale(1.025);
}

.work-card-media {
  --work-card-tint-rgb: 24 24 24;
  --work-card-glass-rgb: 255 255 255;
  --work-card-contrast-boost: 0;
  position: relative;
  isolation: isolate;
  aspect-ratio: 4.2 / 5.6;
  width: 100%;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  background: rgb(var(--work-card-tint-rgb));
  transition: transform 0.24s ease;
}

.work-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
}

.work-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  z-index: 1;
  pointer-events: none;
}

.work-card-blur,
.work-card-tint {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.32s ease;
}

.work-card-blur-1 {
  background: rgba(255, 255, 255, 0.001);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 40%);
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 40%);
}

.work-card-blur-2 {
  background: rgba(255, 255, 255, 0.001);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 50%);
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 50%);
}

.work-card-blur-3 {
  background: rgba(255, 255, 255, 0.001);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 60%);
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 60%);
}

.work-card-blur-4 {
  background: rgba(255, 255, 255, 0.001);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 70%);
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 70%);
}

.work-card-blur-5 {
  background: rgba(255, 255, 255, 0.001);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 90%);
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 90%);
}

.work-card-blur-6 {
  background: rgba(255, 255, 255, 0.001);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%);
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%);
}

.work-card-blur-7 {
  background: rgba(255, 255, 255, 0.001);
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  mask: linear-gradient(rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask: linear-gradient(rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
}

.work-card-tint {
  background:
    linear-gradient(
      180deg,
      rgba(var(--work-card-tint-rgb), 0) 0%,
      rgba(var(--work-card-tint-rgb), calc(0.08 + (var(--work-card-contrast-boost) * 0.04))) 24%,
      rgba(var(--work-card-tint-rgb), calc(0.22 + (var(--work-card-contrast-boost) * 0.08))) 58%,
      rgba(var(--work-card-tint-rgb), calc(0.4 + (var(--work-card-contrast-boost) * 0.1))) 100%
    );
}

.work-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 16px;
  padding: 32px 28px 28px;
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  isolation: isolate;
}

.work-card-content::before {
  content: "";
  position: absolute;
  inset: -18px -2px -2px;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(var(--work-card-tint-rgb), 0) 0%,
    rgba(var(--work-card-tint-rgb), calc(0.18 + (var(--work-card-contrast-boost) * 0.06))) 28%,
    rgba(var(--work-card-tint-rgb), calc(0.36 + (var(--work-card-contrast-boost) * 0.1))) 62%,
    rgba(var(--work-card-tint-rgb), calc(0.56 + (var(--work-card-contrast-boost) * 0.1))) 100%
  );
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.work-card-media.is-tinted .work-card-content::before {
  opacity: 1;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    135deg,
    rgba(var(--work-card-glass-rgb), calc(0.24 - (var(--work-card-contrast-boost) * 0.08))),
    rgba(var(--work-card-glass-rgb), calc(0.1 - (var(--work-card-contrast-boost) * 0.03)))
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.work-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  line-height: 1.2;
  font-weight: 550;
  color: #ffffff;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.project-viewer {
  position: fixed;
  inset: 0;
  padding: 24px 24px 0;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 200;
}

.project-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-viewer-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 52px 0 24px;
}

.project-viewer-pages {
  width: min(100%, 1400px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.project-viewer-page {
  width: 100%;
  display: block;
  background: #ffffff;
}

.project-viewer-close,
.project-viewer-present {
  position: absolute;
  top: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.88);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  z-index: 4;
}

.project-viewer-close {
  left: 48px;
}

.project-viewer-present {
  left: 104px;
}

.project-viewer-close svg,
.project-viewer-present svg {
  width: 20px;
  height: 20px;
}

.project-slideshow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 92px 104px 64px;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 3;
}

.project-viewer.is-presenting .project-viewer-scroll {
  opacity: 0;
  pointer-events: none;
}

.project-viewer.is-presenting .project-slideshow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-slide-frame {
  width: min(100%, 1400px);
  aspect-ratio: 16 / 9;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f4f4f4;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.project-slide-image {
  max-width: min(100%, 1400px);
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.project-slide-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.84);
  color: #ffffff;
  font: inherit;
  font-size: 1.35rem;
  transform: translateY(-50%);
  z-index: 4;
}

.project-slide-prev {
  left: 32px;
}

.project-slide-next {
  right: 32px;
}

.project-slide-count {
  position: absolute;
  left: 50%;
  bottom: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.84);
  color: #ffffff;
  font-size: 0.88rem;
  transform: translateX(-50%);
}

.folder-page[data-folder-page="about"] .folder-page-image {
  transform: translateY(0px);
}

.folder-page[data-folder-page="basic"] .folder-page-image {
  transform: translateY(0px);
}

.folder-page[data-folder-page="education"] .folder-page-image {
  transform: translateY(-70px);
}

.folder-page[data-folder-page="hobbies"] .folder-page-image {
  transform: translateY(-70px);
}


@keyframes hero-title-enter {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }

  52% {
    opacity: 1;
    transform: translateY(32px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-copy-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-role-char-out {
  0% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }

  100% {
    opacity: 0;
    transform: rotateX(90deg) translateY(-0.24em);
  }
}

@keyframes hero-role-char-in {
  0% {
    opacity: 0;
    transform: rotateX(-90deg) translateY(0.24em);
  }

  100% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

@keyframes scroll-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (max-width: 1100px) {
  :root {
    --page-gutter: 24px;
    --content-inline-pad: 20px;
    --ai-chat-width: min(100vw, 100%);
  }

  body.is-chat-open {
    --layout-shift-x: 0px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 18px;
    height: auto;
    padding: 24px;
  }

  .brand,
  .site-nav {
    justify-self: start;
  }

  .site-nav {
    gap: 28px;
    flex-wrap: wrap;
  }

  .ai-chat-fab {
    right: 20px;
    bottom: 20px;
  }

  .ai-chat-sidebar {
    width: 100vw;
    padding: 0;
  }

  .ai-chat-shell {
    border-radius: 0;
    height: 100vh;
  }

  .ai-chat-header,
  .ai-chat-messages,
  .ai-chat-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ai-chat-header {
    padding-top: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 72px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-visual {
    min-height: 620px;
  }

  .stack-card {
    right: 40px;
    top: 60px;
    width: min(58vw, 320px);
  }

  .hanging-card {
    --card-width: min(62vw, 340px);
  }

  .folder-section {
    padding: 36px 24px 52px;
  }

  .folder-stage {
    min-height: 540px;
    transform: translateY(24vh) scale(0.9);
  }

  .folder-pages {
    min-height: 540px;
  }

  .works-showcase {
    padding: 24px 24px 72px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    grid-column: auto;
  }

  .work-card-media {
    border-radius: 16px;
    clip-path: inset(0 round 16px);
  }

  .work-card-content {
    gap: 14px;
    padding: 20px 20px 18px;
  }

  .work-card h3 {
    font-size: clamp(1.22rem, 6vw, 1.64rem);
  }

  .placeholder-section {
    padding: 96px 24px;
  }

  .contact-footer {
    padding: 24px 0 28px;
  }

  .contact-footer-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-footer-grid {
    gap: 16px;
    padding-top: 0;
  }

  .contact-footer h2 {
    max-width: 100%;
    white-space: normal;
  }

  .project-viewer {
    padding: 16px 12px 0;
  }

  .project-viewer-scroll {
    padding-top: 56px;
  }

  .project-viewer-pages {
    gap: 12px;
  }

  .project-viewer-close {
    top: 16px;
    left: 16px;
    right: auto;
  }

  .project-viewer-present {
    top: 16px;
    left: 68px;
  }

  .project-slideshow {
    padding: 76px 20px 64px;
  }

  .project-slide-frame {
    width: min(100%, 1100px);
  }

  .project-slide-nav {
    top: auto;
    bottom: 24px;
    width: 42px;
    height: 42px;
  }

  .project-slide-prev {
    left: 20px;
  }

  .project-slide-next {
    right: 20px;
  }

}
