*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #111;
  color: #1c1c1c;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: #1c1c1c;
  color: #dedad4;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

section {
  position: relative;
}
.glass-surface {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.26s ease-out;
}

.glass-surface__filter {
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: -1;
}

.glass-surface__content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}

.glass-surface--svg {
  background: light-dark(hsl(0 0% 100% / var(--glass-frost, 0)), hsl(0 0% 0% / var(--glass-frost, 0)));
  backdrop-filter: var(--filter-id, url(#glass-filter)) saturate(var(--glass-saturation, 1));
  box-shadow:
    0 0 2px 1px light-dark(color-mix(in oklch, black, transparent 85%), color-mix(in oklch, white, transparent 65%))
      inset,
    0 0 10px 4px light-dark(color-mix(in oklch, black, transparent 90%), color-mix(in oklch, white, transparent 85%))
      inset,
    0px 4px 16px rgba(17, 17, 26, 0.05),
    0px 8px 24px rgba(17, 17, 26, 0.05),
    0px 16px 56px rgba(17, 17, 26, 0.05),
    0px 4px 16px rgba(17, 17, 26, 0.05) inset,
    0px 8px 24px rgba(17, 17, 26, 0.05) inset,
    0px 16px 56px rgba(17, 17, 26, 0.05) inset;
}

.glass-surface--fallback {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px) saturate(1.8) brightness(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px 0 rgba(31, 38, 135, 0.2),
    0 2px 16px 0 rgba(31, 38, 135, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
  .glass-surface--fallback {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(1.8) brightness(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.8) brightness(1.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
      inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .glass-surface--fallback {
    background: rgba(255, 255, 255, 0.4);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 0 rgba(255, 255, 255, 0.3);
  }

  .glass-surface--fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: inherit;
    z-index: -1;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  @media (prefers-color-scheme: dark) {
    .glass-surface--fallback {
      background: rgba(0, 0, 0, 0.4);
    }

    .glass-surface--fallback::before {
      background: rgba(255, 255, 255, 0.05);
    }
  }
}

.glass-surface:focus-visible {
  outline: 2px solid light-dark(#007aff, #0a84ff);
  outline-offset: 2px;
}
.text-rotate {
  display: flex;
  flex-wrap: wrap;
  white-space: pre-wrap;
  position: relative;
}

.text-rotate-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;
}

.text-rotate-word {
  display: inline-flex;
}

.text-rotate-lines {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.text-rotate-element {
  display: inline-block;
}

.text-rotate-space {
  white-space: pre;
}
.tilted-card-figure {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tilted-card-mobile-alert {
  position: absolute;
  top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  display: none;
}

@media (max-width: 640px) {
  .tilted-card-mobile-alert { display: block; }
  .tilted-card-caption { display: none; }
}

.tilted-card-inner {
  position: relative;
  transform-style: preserve-3d;
}

.tilted-card-img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border-radius: 15px;
  will-change: transform;
  transform: translateZ(0);
}

.tilted-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  will-change: transform;
  transform: translateZ(30px);
}

.tilted-card-caption {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 4px;
  background-color: #fff;
  padding: 4px 10px;
  font-size: 10px;
  color: #2d2d2d;
  opacity: 0;
  z-index: 3;
}
.list {
  position: relative;
  width: 100%;
}

.item-wrapper {
  position: absolute;
  will-change: transform, width, height, opacity;
  padding: 6px;
  cursor: pointer;
  top: 0;
  left: 0;
}

.item-wrapper > .item-img {
  position: relative;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0px 10px 50px -10px rgba(0, 0, 0, 0.2);
}

.item-video-wrapper {
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.item-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
/* GLOBAL LAYOUT & UTILITIES */
.app {
  min-height: 75vh;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.4;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hobbies-label-script {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  text-transform: none;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.3;
  line-height: 1.2;
}


/* BILINGUAL BLOCK */
.bilingual-block {
  position: relative;
  display: block;
}

.bb-cn {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.bb-en {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bb-hidden { opacity: 0; }
.bb-visible { opacity: 1; }

/* BILINGUAL TEXT */
.bilingual-text {
  display: inline-grid;
  cursor: default;
}

.bt-cn,
.bt-en {
  grid-area: 1 / 1;
  transition: opacity 0.3s ease;
}

.bt-en {
  opacity: 0;
  pointer-events: none;
}

.bt-hidden {
  opacity: 0;
}

.bt-visible {
  opacity: 1;
  pointer-events: auto;
}

/* NAVBAR — Liquid Glass Style */
/* NAVBAR — Liquid Glass Style */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  background: transparent;
}

.navbar-scrolled {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-glass {
  padding: 1.2rem 0;
  transition: padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: visible !important;


}

.navbar-scrolled .navbar-glass {
  padding: 0.7rem 0;
}

.navbar-glass .glass-surface__content {
  padding: 0;
  background: transparent !important;
}

.navbar-inner {
  width: 100%;
  padding: 0 5rem 0 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  transition: opacity 0.2s;
}

.navbar-logo:hover {
  opacity: 0.6;
}

.navbar-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  flex: 1;
}

.nav-item-group {
  display: inline-flex;
  align-items: center;
}

.nav-sep {
  color: rgba(222, 218, 212, 0.25);
  font-size: 0.8rem;
  margin: 0 1rem;
  font-weight: 300;
}

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(222, 218, 212, 0.75);
  transition: color 0.2s;
  padding: 0.25rem 0;
  font-weight: 500;
}

.nav-link:hover {
  color: #fff;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 18px;
  padding: 4px 0;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
}

.navbar-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.navbar-on-light .navbar-logo {
  color: #1c1c1c !important;
}

.navbar-on-light .nav-link {
  color: rgba(28, 28, 28, 0.75) !important;
}

.navbar-on-light .nav-link:hover {
  color: #1c1c1c !important;
}

.navbar-on-light .nav-sep {
  color: rgba(28, 28, 28, 0.25) !important;
}

.navbar-on-light .navbar-toggle span {
  background: #333;
}

.navbar-on-light.navbar-glass {
  --glass-frost: 0;
}

/* HERO — Image Carousel */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-carousel-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: opacity;
}

.hero-carousel-img.active { opacity: 1; }
.hero-carousel-img.next { opacity: 0; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.50) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.hero-noise svg { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  padding: 0 0 0 5rem;
  width: 100%;
  max-width: 1500px;
}

.hero-text { max-width: 100%; }

.hero-byname {
  font-size: 1.1rem;
  color: #fff;  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hero-name {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0;
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.hero-name-fixed {
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.hero-rotating {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  color: #a5917e;
  margin-left: 0;
}

.hero-rotating-word { display: inline-flex; }
.hero-rotating-char { display: inline-block; }

.hero-title {
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-weight: 500;
  color: #fff;
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hero-title-cn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  font-size: 0.85em;
}

.hero-title-sep {
  color: #fff;
  opacity: 0.3;
  font-size: 0.7em;
}

.hero-title-en {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  color: #fff;
  opacity: 0.65;
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 500;
  color: #fff;
  opacity: 0.75;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #fff;
  opacity: 0.65;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hero-meta-sep { display: none; }

.hero-indicators {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  z-index: 3;
}

.hero-dot {
  width: 32px;
  height: 2px;
  background: rgba(222, 218, 212, 0.25);
  transition: all 0.4s ease;
  cursor: pointer;
}

.hero-dot.active {
  background: #111;
  width: 48px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(222, 218, 212, 0.3);
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
  z-index: 3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hero-scroll-hint:hover { opacity: 0.7; }

.scroll-arrow {
  display: inline-block;
}


.about .section-label {
  position: relative;
  z-index: 10;
  margin-top: -2rem;
  margin-left: max(0px, calc(50vw - 790px));
  color: #333;
  opacity: 0.5;
}

.about-first-letter {
  vertical-align: baseline;
}
/* TEAR PAPER TRANSITION */
.tear-paper-container {
  position: relative;
  z-index: 5;
  width: 100vw;
  margin: -150px calc(-50vw + 50%) -150px;
  line-height: 0;
  pointer-events: none;
}

.tear-paper-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: #111;
  pointer-events: none;
  z-index: -1;
}

.tear-paper-hobbies::after {
  background: transparent;
}

.tear-paper {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .tear-paper-container {
    margin-top: -110px;
    margin-bottom: -40px;
}
  .tear-paper-hobbies {
    margin-top: -70px;
    margin-bottom: -60px;
  }
  .intro-en-full { display: none; }
}
@media (min-width: 769px) {
  .intro-en-short { display: none; }
}

/* ABOUT */
.about {
  position: relative;
  z-index: 8;
  background-color: #f8f4ef;
  padding: 4rem 3rem 6rem;
  scroll-margin-top: 4rem;
}


.about-inner {
  position: relative;
  z-index: 10;
  background: #f8f4ef;
  max-width: 1280px;
  margin: -2rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  align-items: flex-start;
}

.about-left {
  flex: 1;
  min-width: 0;
}

.about-right {
  flex: 0 0 36%;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
}

.about-quote-block {
  margin-left: -5rem;
  margin-top: 0;
  padding-left: 0;
  padding-top: 3rem;
  position: relative;
}

.about-quote-mark {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 10rem;
  font-weight: 700;
  line-height: 0.5;
  color: #7a7068;
  opacity: 0.06;
  position: absolute;
  top: 0;
  left: -2rem;
  z-index: 0;
  pointer-events: none;
}

.about-quote-text {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.9;
  color: #7a7068;
  opacity: 1;
  position: relative;
  z-index: 1;
  max-width: 60ch;
}

.about-education {
  margin-bottom: 2rem;
  margin-top: 0;
  padding-top: 0;
  width: 100%;
  max-width: 1500px;}

.about-edu-title {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7068;
  opacity: 0.5;
  margin-bottom: 1rem;
  font-weight: 500;
}

.about-edu-list {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.75rem;
}

.about-edu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: #fff;  color: #7a7068;
  opacity: 1;
}



.edu-marker {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1c1c1c;
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.about-photo-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.about-photo-tilt .tilted-card-img {
  object-position: top;
  border-radius: 10px;
}

.about-photo-tilt .tilted-card-caption {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  color: #fff;
  background-color: #8d8379;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.about-photo-tilt .tilted-card-inner {
  border-radius: 10px;
}

.about-photo {
  width: 110px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.skills-marquee {
  background: transparent;
  padding: 3.5rem 0 1rem;
  margin-left: -5rem;
  margin-right: -3rem;
  width: calc(100% + 6rem);
  overflow: hidden;
}
.skills-marquee-row { display: flex;
  justify-content: space-between; white-space: nowrap; will-change: transform; padding: 0.4rem 0; }
.skills-marquee-item { font-size: 1.55rem; letter-spacing: 0.06em; text-transform: uppercase; color: #1c1c1c; opacity: 0.55; padding: 0.02rem 0; flex-shrink: 0; line-height: 1.0; }
.cn-skill { font-family: 'Noto Serif SC', serif; font-style: italic; }
.en-skill { font-family: 'Playfair Display', serif; font-style: italic; text-transform: none; letter-spacing: 0.02em; }
.skills-slash { font-family: 'Playfair Display', serif; font-size: 1.55rem; color: #1c1c1c; opacity: 0.35; padding: 0 0.15rem; }
.skills-marquee .parallax { font-size: 1.1rem; }
.skills-marquee .parallax section { display: flex;
  justify-content: space-between; gap: 1rem; }

/* Expanded video overlay */
.showcase-expand-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.showcase-expand-video {
  height: 78vh;
  max-height: 85vh;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
}

/* WORK SHOWCASE */
.works-showcase {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 85vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  background: #111;
}

.showcase-cards-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.showcase-cards-layer > * {
  pointer-events: auto;
}

.showcase-video-card {
  border-radius: 10px;
  background: #e8e4da;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 600px;
}

.showcase-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ccc 0%, #ddd 100%);
  border-radius: 10px;
}

.showcase-card-icon {
  font-size: 1.2rem;
  color: #666;
  opacity: 0.5;
}

.showcase-text-center {
  position: relative;
  z-index: 20;
  text-align: center;
  max-width: 1100px;
  padding: 2rem 2.5rem;
}


.bilingual-title-block {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 0.75rem;
}

.showcase-fixed-number {
  font-size: 3.2rem;
  font-weight: 200;
  color: #fff;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 2rem;
  text-align: center;
}

.showcase-project-number {
  font-size: 3.2rem;
  font-weight: 200;
  color: #fff;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 2rem;
}

.showcase-main-title {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 0.75rem;
}

.showcase-subtitle {
  color: #fff;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.showcase-phase-label {
  color: #fff;
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.showcase-phase-text {
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.showcase-impact-text {
  opacity: 0.9;
  font-weight: 500;
}

.showcase-scroll-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.25;
}

.showcase-hint-line {
  display: block;
  width: 18px;
  height: 1px;
  background: #333;
}


.showcase-pills {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 20;
}

.showcase-pill {
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 28, 0.15);
  background: rgba(222, 218, 212, 0.85);
  backdrop-filter: blur(8px);
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.showcase-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.showcase-pill-active {
  background: #333;
  color: #fff;
  border-color: #fff;
}

.showcase-pill-active:hover {
  background: #333;
  color: #fff;
}

@media (max-width: 768px) {
  .works-showcase {
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
  .showcase-text-center {
    display: contents;
  }
  .showcase-text-center > .showcase-fixed-number {
    order: 0;
    margin-bottom: 0.5rem;
    padding-top: 1.5rem;
  }
  .showcase-fixed-title {
    order: 1;
    padding: 0 1.5rem 0.75rem;
  }
  .showcase-fixed-title .showcase-subtitle {
    margin-bottom: 0.35rem;
  }
  .showcase-fixed-title .showcase-main-title {
    line-height: 1.2;
    margin-bottom: 0;
  }
  .showcase-pills {
    order: 2;
    position: static;
    transform: none;
    bottom: auto;
    left: auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 0.75rem 1.25rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .showcase-pill {
    flex: 1;
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-align: center;
  }
  .showcase-phase {
    order: 3;
    padding: 0.5rem 1.5rem 0.5rem;
    min-height: 226px;
  }
  .showcase-cards-layer > *:nth-child(n+7) {
    display: none;
  }
  .showcase-phase-label {
    display: none;
  }
  .showcase-phase-text {
    white-space: normal !important;
  }
  .showcase-cards-layer {
    order: 4;
    position: static;
    inset: auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 1.5rem;
  }
  .showcase-cards-layer > * {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 190px !important;
  }
}


/* WORKS */
.works {
  z-index: 7;
  padding: 0 3rem 8rem;
  max-width: 1440px;
  margin: 0 auto;
}

.works .section-label {
  margin-top: 3rem;
  margin-bottom: -2rem;
  margin-left: -5rem;
  position: relative;
  z-index: 25;
  color: #fff;
  opacity: 0.7;
}

/* WORK FEATURED — left text, right video */
.work-featured {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: center;
  padding: 8rem 3rem 8rem 6rem;
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
  background: #111;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.work-featured-left {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
  max-width: 62ch;
}

.work-featured-number {
  font-size: 3.2rem;
  font-weight: 200;
  color: #fff;
  opacity: 0.25;
  line-height: 1;
}

.work-featured-tags {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.work-featured-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.75rem;
  color: #fff;
}

.work-featured-details {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.75rem;
}

.work-featured-metrics {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1500px;}

.work-metric-block {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  flex: 1;
}

.work-metric-value {
  font-size: 1.5rem;
  color: #fff;  line-height: 1.0;
}

.work-metric-label {
  font-size: 0.65rem;
  color: #fff;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

.work-featured-right {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.work-featured-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
}

@media (max-width: 768px) {
  .work-featured {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 3rem 1.5rem;
  }
  .work-featured-video {
    max-height: 420px;
    margin-top: 0;
  }
  .work-featured-metrics {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }
  .work-featured-metrics .work-metric-value {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
  }
  .work-featured-metrics .work-metric-label {
    font-size: 0.6rem !important;
  }
  .works-slider-text {
    padding: 0 1.5rem !important;
    text-align: left !important;
  }
  .works-slider-project {
    align-items: flex-start !important;
  }
  .works-slider-text .showcase-subtitle,
  .works-slider-text .works-slider-title {
    text-align: left !important;
  }
  .works-slider-tags {
    justify-content: flex-start !important;
  }
  .works-slider-details .work-detail {
    text-align: left !important;
  }
}

.works-grid {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.75rem;
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.work-card:hover {}

.work-card-visual {
  position: relative;
}

.work-card-number {
  font-size: 3.2rem;
  font-weight: 200;
  color: #fff;
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 1rem;
}

.work-card-tags {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.work-tag {
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  background: #333;
  color: #fff;
  letter-spacing: 0.08em;
  border-radius: 999px;
  font-weight: 500;
}

.work-card-title {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.work-card-details {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.75rem;
}

.work-detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.3;
  font-weight: 500;
  display: block;
  margin-bottom: 0.15rem;
}

.work-detail-text {
  font-size: 1.1rem;
  color: #fff;  line-height: 1.6;
  color: #fff;
  opacity: 0.7;
}

.work-impact {
  opacity: 0.7;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* WORKS SLIDER — horizontal scrollable video collection */
.works-slider-wrapper {
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
  min-height: 85vh;
  background: #111;
  padding: 3rem 0 4rem;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  justify-content: center;
}

.works-slider-text {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 0 0 5rem;
  text-align: left;
  position: relative;
  min-height: 120px;
  .works-slider .showcase-subtitle { text-align: center; }
}

.works-slider-project {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.works-slider-project.active {
  display: flex;
  justify-content: space-between;
}

.works-slider-number {
  font-size: 3.2rem;
  font-weight: 200;
  color: #fff;
  opacity: 0.25;
  line-height: 1;
}

.works-slider-title {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.works-slider-tags {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.works-slider-desc {
  font-size: 1.1rem;
  color: #fff;  line-height: 1.6;
  color: #fff;
  opacity: 0.65;
  max-width: 600px;
}

.works-slider-details {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
  max-width: 1100px;
}

.works-slider-details .work-detail {
  text-align: center;
}

.works-slider-track {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem calc(50vw - 160px);
  scrollbar-width: none;
}

.works-slider-track::-webkit-scrollbar {
  display: none;
}

.works-slider-card {
  flex: 0 0 600px;
  scroll-snap-align: center;
  border-radius: 15px;
  cursor: pointer;
}

.works-slider-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .works-slider-card {
    flex: 0 0 460px;
  }
}
@media (max-width: 768px) {
  .works-slider-track {
    padding: 1rem 1rem;
  }
  .works-slider-card {
    flex: 0 0 300px;
  }
}


/* WORKS GALLERY — horizontal scroll, click-to-center */
.works-gallery {
  width: 100vw;
  margin: 0 calc(-50vw + 50%);
  min-height: 85vh;
  background: #111;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 4rem 3rem 4rem 6rem;
}

.works-gallery-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 20;
  cursor: pointer;
}

.works-gallery-text { flex: 0 0 600px; text-align: left; }
.works-gallery-number { text-align: center; font-size: 3.2rem; font-weight: 200; color: #fff; opacity: 0.25; line-height: 1; margin-bottom: 2rem; }
.works-gallery-title { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 2rem; color: #fff; }
.works-gallery-tags { display: flex;
  justify-content: space-between; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 1rem; }
.works-gallery-details { display: flex;
  justify-content: space-between; flex-direction: column; gap: 0.75rem; }
.works-gallery-details .work-detail,
.works-gallery-details .work-detail-label,
.works-gallery-details .work-detail-text { text-align: left; }

.works-gallery-track { flex: 1; display: flex;
  justify-content: space-between; gap: 0.75rem; overflow-x: auto; padding: 1rem 0; scrollbar-width: none; }
.works-gallery-track::-webkit-scrollbar { display: none; }
.works-gallery-video { width: 100%; height: 100%; background: linear-gradient(135deg, #ddd8ce 0%, #c8c2b6 100%); border-radius: 10px; display: flex;
  justify-content: space-between; align-items: center; justify-content: center; }
.works-gallery-play { font-size: 1.5rem; color: #b5a898; opacity: 0.5; }

.works-gallery-fan {
  position: relative;
  width: 420px;
  height: 600px;
  margin-left: 280px;
  flex-shrink: 0;
}
.works-gallery-fan-card {
  position: absolute;
  width: 300px;
  height: 533px;
  border-radius: 15px;
  left: 50%;
  top: 50%;
  margin-left: -150px;
  margin-top: -267px;
  background: #1a1a1a;
  overflow: hidden;
  transform-origin: bottom center;
}

@media (min-width: 1281px) {
  .works-gallery-fan { transform: scale(1.2); }
}
@media (max-width: 1600px) {
  .works-gallery-text { flex: 0 0 480px; }
  .works-gallery-fan { margin-left: 80px; }
}
@media (max-width: 1280px) {
  .works-gallery { padding: 3rem 2rem 3rem 4rem; gap: 1rem; }
  .works-gallery-text { flex: 0 0 400px; }
  .works-gallery-fan { margin-left: 20px; }
  .works-gallery-fan-card { width: 260px; height: 462px; margin-left: -130px; margin-top: -231px; }
}
@media (max-width: 1050px) {
  .works-gallery { flex-direction: column; padding: 3rem 1.5rem; gap: 1rem; }
  .works-gallery-text { flex: none; width: 100%; max-width: 720px; }
  .works-gallery-fan { margin: 0 auto; width: 420px; height: 600px; }
  .works-gallery-fan-card { width: 300px; height: 533px; margin-left: -150px; margin-top: -267px; }
}
@media (max-width: 768px) {
  .works-gallery { padding: 3rem 1.5rem; gap: 1rem; }
  .works-gallery-text { flex: none; width: 100%; }
  .works-gallery-fan { margin: 0 auto; width: 100%; max-width: 360px; height: 480px; }
  .works-gallery-fan-card { width: 220px; height: 391px; margin-left: -110px; margin-top: -196px; }
}
/* METHODOLOGY */
.methodology {
  padding: 6rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
  background: #2a2a2a;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: none;
}

.methodology-header {
  margin-bottom: 4rem;
  text-align: center;
}

.methodology-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #fff;
  text-align: center;
}
.methodology-subtitle {
  font-size: 1.1rem;
  color: #fff;
  opacity: 0.78;
  line-height: 1.6;
  text-align: center;
}

.methodology-flow {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  padding: 3rem 2rem;
  max-width: 1560px;
  margin: 0 auto;
}

.methodology-step {
  flex: 1;
  position: relative;
  padding: 1.4rem 1.6rem 2.2rem;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03) 55%),
    rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  min-height: 240px;
}

.step-number {
  position: absolute;
  top: 0.6rem;
  left: 1.2rem;
  font-size: 6.2rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.15;
  line-height: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  pointer-events: none;
  z-index: 0;
}

.step-content {
  position: relative;
  z-index: 1;
  padding-top: 3.4rem;
  text-align: left;
}

.step-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #c2ae96;
  margin-bottom: 0.6rem;
  text-align: left;
}

.step-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #fff;
  opacity: 0.82;
  text-align: left;
}

.step-connector {
  position: absolute;
  top: 50%;
  right: -1.75rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 2px;
  background: rgba(194,174,150,0.6);
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 7px solid rgba(194,174,150,0.65);
}

/* TIMELINE */
.timeline {
  padding: 5rem 3rem 8rem;
  width: 100vw;
  margin: 0 calc(-50vw + 50%);
  background: #2a2a2a;
}
.timeline-inner {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2rem;
  text-align: left;
}
.timeline-list {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.timeline-marker {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
  padding-top: 0.3rem;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #dedad4;
  flex-shrink: 0;
  z-index: 1;
}

.tl-line {
  width: 1px;
  flex: 1;
  background: rgba(28, 28, 28, 0.15);
  margin: 0 auto;
}

.timeline-card {
  flex: 1;
  padding-bottom: 3rem;
}

.tl-period {
  font-size: 1.1rem;
  color: #fff;  letter-spacing: 0.05em;
  color: #fff;
  opacity: 0.35;
  margin-bottom: 2rem;
  font-weight: 500;
}

.tl-title {
  font-size: 1.1rem;
  color: #fff;}

.tl-company {
  font-size: 1.1rem;
  color: #fff;  color: #fff;
  opacity: 0.5;
  margin-bottom: 1rem;
}

.tl-highlights {
  font-size: 1.1rem;
  color: #fff;  line-height: 1.7;
  color: #fff;
  opacity: 0.65;
  white-space: pre-line;
}

.tl-brands {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #fff;
  opacity: 0.45;
  font-style: italic;
  white-space: pre-line;
}

.tl-brands strong {
  font-weight: 700;
  font-style: normal;
}

/* HOBBIES — Masonry Layout */
.hobbies {
  padding: 8rem 3rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #2a2a2a;
}

.hobbies-header {
  margin-bottom: 3rem;
}

.hobbies-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
  color: #fff;
}

.hobbies-desc {
  font-size: 1.1rem;
  color: #fff;
  opacity: 0.6;
  line-height: 1.6;
  text-align: center;
}

.hobbies-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hobby-category {
  position: relative;
}

.hobby-category-label {
  font-size: 1.1rem;
  color: #fff;  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #fff;
  opacity: 0.5;
}

.hobby-category-grid {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
}

.hobby-image-placeholder {
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hobby-image-placeholder:hover {
  transform: scale(1.02);
}

.hobby-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  background: rgba(28, 28, 28, 0.03);
}

.placeholder-icon {
  font-size: 1.5rem;
  color: rgba(28, 28, 28, 0.15);
  font-weight: 300;
}

/* FOOTER */
.footer {
  padding: 6rem 3rem 2rem;
  background: #f8f4ef;
  color: #1c1c1c;
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-heading {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin-bottom: 0.75rem;
}

.footer-subheading {
  font-size: 1rem;
  opacity: 0.55;
}

.footer-contact {
  text-align: center;
}

.footer-email {
  display: block;
  font-size: 1.1rem;
  color: #1c1c1c;
  font-weight: 500;
  transition: opacity 0.2s;
  margin-bottom: 0.4rem;
}

.footer-email:hover {
  opacity: 0.6;
}

.footer-phone {
  display: block;
  font-size: 1.1rem;
  color: #1c1c1c;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
}

.footer-back-top {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: #1c1c1c;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-back-top:hover {
  background: #1c1c1c;
  color: #fff;
  border-color: #1c1c1c;
}

.footer-copy {
  font-size: 1.1rem;
  color: #1c1c1c;
  opacity: 0.35;
  letter-spacing: 0.05em;
}

@media (max-width: 1560px) {
  .works .section-label {
    margin-left: 0;
  }
}

@media (max-width: 1280px) {
  .about-quote-block {
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .hero-text {
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .work-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .methodology-flow {
    flex-direction: column;
  }

  .step-connector {
    top: auto;
    right: auto;
    bottom: 0;
    left: 3rem;
    width: 1px;
    height: calc(100% - 3rem);
  }

  .hobbies-masonry {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-contact {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 1.5rem;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-glass {
    --glass-frost: 0.06 !important;
  }
  .navbar-glass.glass-surface--fallback {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border: none;
    box-shadow: none;
  }
  .navbar-glass.glass-surface--svg {
    box-shadow: none;
  }
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .navbar-links.visible {
    display: flex;
  }

  .navbar-links .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    color: #fff !important;
  }

  .navbar-links .nav-link:hover {
    color: #fff !important;
  }

  .navbar-links .nav-sep {
    display: none;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-name {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .hero-meta-sep {
    display: none;
  }

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

  .about {
    padding: 5rem 1.5rem;
  }

  .about-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .about-right {
    flex: none;
    width: 100%;
  }

  .about-photo-wrapper .tilted-card-figure {
    margin-right: 2rem;
  }

  .about-quote-block {
    margin-left: 0;
    padding-top: 1.5rem;
  }

  .works .section-label {
    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0;
  }

  .works {
    padding: 5rem 1.5rem;
  }

  .work-card {
    padding: 1.5rem;
  }

  .methodology {
    padding: 5rem 1.5rem;
  }
  .methodology-header {
    margin-bottom: 0;
  }
  .methodology-flow {
    padding: 3rem 0;
  }
  .step-connector {
    display: none;
  }

  .timeline {
    padding: 0 1.5rem;
  }
  .timeline-title {
    margin-bottom: 1rem;
  }
  .timeline-list {
    gap: 1.5rem;
  }
  .timeline-card {
    padding-bottom: 0;
  }
  .tl-line {
    display: none;
  }
  .tl-period {
    margin-bottom: 0.5rem;
  }
  .tl-company {
    margin-bottom: 0.5rem;
  }

  .hobbies {
    padding: 5rem 1.5rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
  .hobbies-masonry-section {
    margin: 0 -1rem;
  }

  .footer {
    padding: 4rem 1.5rem 2rem;
    position: relative;
  }

  .footer-copy {
    font-size: 0.9rem;
    order: 1;
  }

  .footer-back-top {
    order: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  .footer-content {
    align-items: center;
    text-align: center;
  }

  .footer-heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .footer-subheading {
    font-size: 1.25rem;
    white-space: nowrap;
  }
}


/* WORKS AIGC — centered text, side video slots */
.works-aigc {
  width: 100vw;
  margin: 0 calc(-50vw + 50%);
  min-height: 70vh;
  background: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  position: relative;
}
.works-aigc-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  min-height: 320px;
}
.works-aigc-text {
  width: 700px;
  box-sizing: border-box;
  z-index: 2;
  padding: 0 2rem;
}
.works-aigc-details {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.works-aigc-details .work-detail,
.works-aigc-details .work-detail-label,
.works-aigc-details .work-detail-text {
  text-align: left;
}
.works-aigc-video-wrapper {
  position: absolute;
  top: 50%;
  width: 60vw;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  z-index: 1;
}
.works-aigc-left {
  left: 0;
  transform: translate(-50%, -50%);
}
.works-aigc-right {
  right: 0;
  transform: translate(50%, -50%);
}
.works-aigc-video {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.works-aigc-expand-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.works-aigc-expand-btn:hover { background: rgba(0,0,0,0.35); }
.works-aigc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.works-aigc-modal {
  width: 75vw;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
}
.works-aigc-label {
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .works-aigc-inner { flex-direction: column; gap: 1rem; min-height: 0; }
  .works-aigc-text { order: 0; width: 100%; padding: 0 1.5rem; text-align: left !important; }
  .works-aigc-video-wrapper { order: 1; }
  .works-aigc .works-gallery-number,
  .works-aigc-text .showcase-subtitle,
  .works-aigc-text .work-featured-title {
    text-align: left !important;
  }
  .works-aigc-text .works-gallery-tags {
    justify-content: flex-start !important;
  }
  .works-aigc-video-wrapper { position: relative; width: 90%; max-width: none; top: auto; transform: none; }
  .works-aigc-left { left: auto; }
  .works-aigc-right { right: auto; }
}

/* WORKS AI PROJECTS — left text, right folder cards */
.works-ai-projects {
  width: 100vw;
  margin: 0 calc(-50vw + 50%);
  min-height: 55vh;
  background: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}
.works-ai-projects-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1500px;
  padding: 0 5rem 0 5rem;
}
.works-ai-projects-text {
  flex: 1;
  max-width: 550px;
  text-align: left;
}
.works-ai-projects-details {
.works-ai-projects-details .work-detail,
.works-ai-projects-details .work-detail-label,
.works-ai-projects-details .work-detail-text {
  text-align: left;
}  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.works-ai-projects-folder {
  position: relative;
  flex: 0 0 680px;
  height: 420px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  margin-left: 8rem;
  margin-top: 80px;
}
.works-ai-projects-card {
  position: absolute;
  width: 380px;
  height: 270px;
  --accent: #d97757;
  --accent-ok: #7bd88f;
  background: linear-gradient(135deg, #232323 0%, #161616 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  left: 50%;
  top: 50%;
  margin-left: -190px;
  margin-top: -135px;
  transform-origin: center center;
}
.works-ai-projects-card--warm {
  --accent: #d97757;
  --accent-ok: #7bd88f;
  background:
    radial-gradient(130% 100% at 82% -10%, rgba(217,119,87,0.18), transparent 55%),
    linear-gradient(135deg, #3a312e 0%, #241d1a 100%);
  left: 8px;
  top: 8px;
  margin: 0;
}
.works-ai-projects-card--cool {
  --accent: #9db5a5;
  --accent-ok: #8fc9a8;
  background:
    radial-gradient(130% 100% at 82% -10%, rgba(157,181,165,0.16), transparent 55%),
    linear-gradient(135deg, #2c3532 0%, #1d2421 100%);
  left: 292px;
  top: 142px;
  margin: 0;
}
.works-ai-projects-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.045);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 11px 11px 0 0;
}
.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.term-dot-red { background: #ff5f57; }
.term-dot-yellow { background: #febc2e; }
.term-dot-green { background: #28c840; }
.term-title {
  margin-left: 6px;
  font-size: 0.82rem;
  color: #9a9a9a;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term-body {
  flex: 1;
  padding: 16px 18px;
  font-size: 0.86rem;
  line-height: 1.85;
  color: #c9c9c9;
  overflow: hidden;
}
.term-line {
  margin: 0;
  white-space: nowrap;
}
.term-prompt { color: var(--accent); }
.term-ok { color: var(--accent-ok); }
.term-result {
  padding: 12px 18px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.86rem;
  color: #fff;
}

@media (max-width: 1200px) {
  .works-ai-projects-inner { flex-direction: column; gap: 2.5rem; padding: 0 2rem; }
  .works-ai-projects-text { max-width: 100%; flex: none; }
  .works-ai-projects-folder { flex: none; width: 100%; height: 400px; margin-left: 0; margin-top: 0; }
  .works-ai-projects-card { width: 300px; height: 230px; left: 50%; top: 50%; margin-left: -150px; margin-top: -115px; }
  .works-ai-projects-card--warm { left: 8px; top: 8px; margin: 0; }
  .works-ai-projects-card--cool { left: auto; right: 8px; top: 150px; margin: 0; }
}
@media (max-width: 900px) {
  .works-ai-projects-inner { padding: 0 1.5rem; }
  .works-ai-projects-folder { height: 360px; }
  .works-ai-projects-card { width: 220px; height: 230px; margin-left: -110px; margin-top: -115px; }
  .works-ai-projects-card .term-bar { padding: 12px 8px; }
  .works-ai-projects-card .term-title { font-size: 0.7rem; margin-left: 4px; }
  .works-ai-projects-card--warm { left: 8px; top: 8px; margin: 0; }
  .works-ai-projects-card--cool { right: 8px; top: 110px; margin: 0; }
}

.hobbies-credit {
  color: #b5a898;
  opacity: 0.6;
  font-size: 0.75rem;
  text-align: center;
  margin-top: 2rem;
  letter-spacing: 0.05em;
}

.about-portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
}
.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.about-tag {
  position: absolute;
  bottom: 10%;
  left: 3%;
  z-index: 4;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  color: #7a7068;
  opacity: 0.85;
}
