﻿:root {
  color-scheme: dark;
  --ink: #f5efe3;
  --muted: #b8afa2;
  --paper: #111311;
  --surface: #1b1d1a;
  --line: rgba(245, 239, 227, 0.16);
  --acid: #ccff3f;
  --cyan: #41d9c1;
  --hot: #ff5a3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(204, 255, 63, 0.055), transparent 25rem),
    linear-gradient(135deg, #111311, #17130f 45%, #101818);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }

#ripple-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 45;
  opacity: 0.38;
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(65, 217, 193, 0.035), transparent 18rem),
    repeating-radial-gradient(circle at var(--mx, 50%) var(--my, 50%), transparent 0 18px, rgba(204, 255, 63, 0.01) 19px 20px);
  opacity: 0.42;
  transition: opacity 180ms ease;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 55;
  transform: translate3d(-50%, -50%, 0);
}
.cursor-glow {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(204, 255, 63, 0.075), transparent 68%);
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(17, 19, 17, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #111311;
  background: var(--acid);
  border-radius: 8px;
  font-weight: 900;
}
.brand strong,
.brand small { display: block; line-height: 1.1; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: clamp(14px, 3vw, 36px); color: var(--muted); font-size: 14px; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: clamp(28px, 6vw, 88px);
  min-height: calc(100vh - 77px);
  padding: clamp(54px, 8vw, 116px) clamp(20px, 5vw, 80px) 64px;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 24px clamp(20px, 5vw, 80px);
  z-index: -1;
  background-image:
    linear-gradient(rgba(245, 239, 227, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 227, 0.065) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000, transparent 68%);
}
.eyebrow,
.section-kicker { color: var(--acid); font-size: 13px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(46px, 8vw, 106px);
  line-height: 0.94;
  letter-spacing: 0;
}
h2 { margin-bottom: 18px; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.04; }
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.22; }
.hero-text, .about-copy p, .work-body p { color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}
.button.primary { background: var(--acid); color: #111311; border-color: var(--acid); }
.button.ghost { background: rgba(245, 239, 227, 0.06); }

.playground {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 26%, rgba(65, 217, 193, 0.4), transparent 24%),
    radial-gradient(circle at 72% 68%, rgba(255, 90, 61, 0.32), transparent 26%),
    #191c18;
  transform-style: preserve-3d;
}
.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(245, 239, 227, 0.055) 10px);
  animation: scan 7s linear infinite;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(245, 239, 227, 0.26);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}
.orbit-one { width: 360px; height: 150px; left: 12%; top: 24%; transform: rotate(-18deg); }
.orbit-two { width: 280px; height: 280px; right: -60px; bottom: -70px; animation-duration: 20s; }
.playground-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  transform: translateZ(38px);
}
.playground-content span { color: var(--acid); font-weight: 800; }
.playground-content strong { display: block; margin: 10px 0; font-size: clamp(54px, 8vw, 96px); line-height: 0.84; }
.playground-content p { color: var(--muted); margin-bottom: 0; }

.section { padding: 78px clamp(20px, 5vw, 80px); }
.about, .contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line);
}
.traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.traits span {
  padding: 10px 14px;
  color: var(--acid);
  background: rgba(204, 255, 63, 0.09);
  border: 1px solid rgba(204, 255, 63, 0.2);
  border-radius: 999px;
  font-weight: 800;
}
.section-heading { max-width: 880px; margin-bottom: 30px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
.work-card {
  overflow: hidden;
  min-height: 100%;
  background: rgba(245, 239, 227, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  transform-style: preserve-3d;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.work-card:hover { border-color: rgba(204, 255, 63, 0.55); box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28); }
.work-media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: end start;
  padding: 20px;
  overflow: hidden;
}
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--local-x, 50%) var(--local-y, 50%), rgba(255,255,255,0.12), transparent 32%);
  opacity: 0;
  transition: opacity 180ms ease;
}
.work-card:hover .work-media::after { opacity: 1; }
.work-media span { position: relative; z-index: 1; color: #111311; font-size: 68px; font-weight: 900; }
.media-one { background: linear-gradient(135deg, var(--cyan), var(--acid)); }
.media-two { background: linear-gradient(135deg, #f1e4c6 0 50%, var(--hot) 50%); }
.media-three { background: radial-gradient(circle at 35% 30%, var(--acid), transparent 24%), linear-gradient(135deg, #26302c, var(--cyan)); }
.work-body { padding: 22px; transform: translateZ(22px); }
.work-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }

.rhythm { padding-top: 20px; padding-bottom: 20px; overflow: hidden; border-block: 1px solid var(--line); }
.marquee { display: flex; width: max-content; color: var(--acid); font-size: clamp(34px, 7vw, 88px); font-weight: 900; white-space: nowrap; animation: marquee 18s linear infinite; }
.marquee div { padding-right: 28px; }

.contact {
  margin: 64px clamp(20px, 5vw, 80px) 72px;
  padding: clamp(30px, 5vw, 52px);
  background: rgba(245, 239, 227, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.contact-links { display: grid; gap: 12px; align-content: start; }
.contact-links a {
  padding: 18px 20px;
  background: rgba(204, 255, 63, 0.08);
  border: 1px solid rgba(204, 255, 63, 0.22);
  border-radius: 8px;
  font-weight: 800;
}
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(20px, 5vw, 80px); color: var(--muted); border-top: 1px solid var(--line); }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { to { transform: translateY(80px); } }
@keyframes spin { to { rotate: 360deg; } }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero, .about, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .work-grid { grid-template-columns: 1fr; }
  .playground { min-height: 360px; }
}
@media (max-width: 560px) {
  #ripple-canvas, .cursor-glow { display: none; }
  .nav { width: 100%; justify-content: space-between; }
  h1 { font-size: 42px; }
  .footer { flex-direction: column; }
}





/* Text hover lift */
.nav a,
.brand strong,
.brand small,
.work-body h3,
.traits span,
.contact-links a {
  display: inline-block;
  transform-origin: center;
  transition: transform 180ms ease, color 180ms ease, letter-spacing 180ms ease;
}

.nav a:hover,
.brand:hover strong,
.brand:hover small,
.work-card:hover .work-body h3,
.traits span:hover,
.contact-links a:hover {
  transform: scale(1.06);
}

.nav a:hover {
  color: var(--ink);
}

.work-card:hover .work-body h3,
.contact-links a:hover {
  color: var(--acid);
}

/* 1920x1080 responsive frames */
:root {
  --design-width: 1920px;
  --design-height: 1080px;
  --frame-pad-x: clamp(24px, 5vw, 96px);
  --frame-pad-y: clamp(56px, 7vh, 104px);
}

.site-header {
  max-width: var(--design-width);
  margin-left: auto;
  margin-right: auto;
}

.hero,
.section,
.contact,
.footer {
  width: 100%;
  max-width: var(--design-width);
  margin-left: auto;
  margin-right: auto;
}

.hero,
.section {
  min-height: min(var(--design-height), 100svh);
  padding: var(--frame-pad-y) var(--frame-pad-x);
}

.hero {
  min-height: min(calc(var(--design-height) - 77px), calc(100svh - 77px));
}

.about,
.works {
  align-content: center;
}

.rhythm {
  min-height: auto;
  padding-top: 28px;
  padding-bottom: 28px;
}

.contact {
  width: calc(100% - clamp(40px, 10vw, 160px));
  min-height: min(720px, calc(100svh - 144px));
  margin-top: clamp(48px, 7vh, 96px);
  margin-bottom: clamp(48px, 7vh, 96px);
  align-content: center;
}

@media (min-width: 1500px) {
  h1 {
    font-size: clamp(76px, 5.9vw, 112px);
  }

  h2 {
    font-size: clamp(46px, 3.3vw, 64px);
  }

  .hero-text,
  .about-copy p,
  .work-body p {
    font-size: 20px;
  }

  .playground {
    min-height: 620px;
  }
}

@media (max-width: 900px) {
  .hero,
  .section,
  .contact {
    min-height: auto;
    padding: clamp(48px, 10vw, 78px) clamp(20px, 6vw, 40px);
  }

  .contact {
    width: calc(100% - 40px);
  }
}

/* Full-bleed viewport correction */
.site-header,
.hero,
.section,
.contact,
.footer {
  max-width: none;
}

.site-header,
.hero,
.section,
.footer {
  width: 100vw;
}

.contact {
  width: 100vw;
  margin-left: 0;
  margin-right: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.hero > *,
.section > *,
.contact > *,
.footer > * {
  max-width: var(--design-width);
}

.hero {
  padding-left: max(var(--frame-pad-x), calc((100vw - var(--design-width)) / 2 + var(--frame-pad-x)));
  padding-right: max(var(--frame-pad-x), calc((100vw - var(--design-width)) / 2 + var(--frame-pad-x)));
}

.section,
.contact,
.footer,
.site-header {
  padding-left: max(var(--frame-pad-x), calc((100vw - var(--design-width)) / 2 + var(--frame-pad-x)));
  padding-right: max(var(--frame-pad-x), calc((100vw - var(--design-width)) / 2 + var(--frame-pad-x)));
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .section,
  .contact,
  .footer {
    width: 100%;
    padding-left: clamp(20px, 6vw, 40px);
    padding-right: clamp(20px, 6vw, 40px);
  }
}

/* Personal name image */
.brand-logo {
  display: block;
  width: clamp(132px, 12vw, 230px);
  height: auto;
  object-fit: contain;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
  opacity: 0.92;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.brand-text strong {
  display: none;
}

.brand-text small {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 28px);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-name {
  display: block;
  width: min(100%, 960px);
  height: auto;
  margin-bottom: clamp(24px, 4vh, 42px);
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.34));
}

.hero-title {
  max-width: 980px;
  font-size: clamp(34px, 5vw, 76px);
}

@media (max-width: 900px) {
  .brand-logo {
    width: clamp(108px, 34vw, 164px);
  }

  .hero-name {
    width: min(100%, 720px);
  }
}


/* Reference nav treatment */
.site-header {
  min-height: 118px;
  padding-top: 24px;
  padding-bottom: 24px;
  background: #030403;
  border-bottom: 0;
  backdrop-filter: none;
}

.brand {
  gap: clamp(14px, 1.8vw, 34px);
  min-width: 0;
}

.brand-symbol {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(54px, 4.2vw, 82px);
  aspect-ratio: 1 / 1;
}

.brand-symbol::before,
.brand-symbol::after,
.brand-symbol span::before,
.brand-symbol span::after {
  content: "";
  position: absolute;
  background: #fff;
}

.brand-symbol::before {
  left: 0;
  top: 0;
  width: 100%;
  height: 28%;
}

.brand-symbol::after {
  left: 0;
  top: 0;
  width: 28%;
  height: 100%;
}

.brand-symbol span::before {
  left: 18%;
  top: 36%;
  width: 74%;
  height: 25%;
  transform: skewX(35deg);
  transform-origin: left center;
}

.brand-symbol span::after {
  left: 42%;
  top: 24%;
  width: 56%;
  height: 22%;
  transform: skewX(35deg);
  transform-origin: left center;
}

.brand-name-stack {
  display: grid;
  gap: 4px;
  flex: 0 0 auto;
}

.brand-name-stack .brand-logo {
  width: clamp(102px, 7.2vw, 138px);
  filter: none;
}

.brand-name-stack small {
  display: block;
  margin: 0;
  color: #fff;
  font-size: clamp(11px, 0.78vw, 15px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
}

.portfolio-label {
  display: inline-block;
  color: #fff;
  font-size: clamp(24px, 2.1vw, 40px);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
  transform-origin: left center;
  transition: transform 180ms ease, color 180ms ease;
}

.brand:hover .portfolio-label {
  transform: scale(1.04);
}

.nav {
  gap: clamp(34px, 4vw, 76px);
  color: #fff;
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 950;
}

.nav a {
  color: #fff;
  padding: 10px 0;
}

.nav a::after {
  height: 4px;
  background: #fff;
}

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
    gap: 20px;
  }

  .brand {
    width: 100%;
  }

  .portfolio-label {
    font-size: clamp(22px, 6vw, 32px);
  }

  .nav {
    gap: 22px;
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 12px;
  }

  .brand-symbol {
    width: 48px;
  }

  .brand-name-stack .brand-logo {
    width: 94px;
  }

  .portfolio-label {
    font-size: 20px;
  }
}

/* Refined header typography and fixed logo */
.brand-symbol {
  display: block;
  flex: 0 0 auto;
  width: clamp(48px, 3.6vw, 72px);
  height: clamp(48px, 3.6vw, 72px);
  object-fit: contain;
  transform: none !important;
}

.brand-symbol::before,
.brand-symbol::after,
.brand-symbol span::before,
.brand-symbol span::after {
  display: none !important;
}

.portfolio-label {
  font-size: clamp(22px, 1.72vw, 34px);
  font-weight: 520;
  letter-spacing: 0.01em;
}

.brand:hover .portfolio-label {
  transform: none;
}

.nav {
  font-size: clamp(16px, 1.12vw, 22px);
  font-weight: 520;
  letter-spacing: 0.02em;
}

.nav a::after {
  height: 2px;
}

.nav a:hover,
.contact-links a:hover,
.traits span:hover {
  transform: scale(1.035);
}

@media (max-width: 560px) {
  .brand-symbol {
    width: 44px;
    height: 44px;
  }

  .portfolio-label {
    font-size: 18px;
  }

  .nav {
    font-size: 15px;
  }
}

/* Locked nav left image */
.nav-lockup {
  display: block;
  width: clamp(82px, 8.25vw, 161px);
  height: auto;
  object-fit: contain;
  transform: none !important;
  transition: none !important;
}

.brand:hover .nav-lockup {
  transform: none !important;
  opacity: 1 !important;
}

@media (max-width: 900px) {
  .nav-lockup {
    width: min(100%, 124px);
  }
}

@media (max-width: 560px) {
  .nav-lockup {
    width: min(100%, 98px);
  }
}



/* Transparent tight header */
.site-header {
  padding-left: clamp(14px, 2.2vw, 42px) !important;
  padding-right: clamp(14px, 2.2vw, 42px) !important;
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.nav {
  margin-left: auto;
}

@media (max-width: 900px) {
  .site-header {
    padding-left: clamp(14px, 4vw, 24px) !important;
    padding-right: clamp(14px, 4vw, 24px) !important;
  }
}

/* Fullscreen hero carousel */
.hero-carousel {
  position: relative;
  display: block;
  min-height: 100svh;
  padding: 0 !important;
  overflow: hidden;
  background: #050505;
}

.carousel-track,
.carousel-slide {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease, transform 900ms ease;
  transform: scale(1.025);
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.28), transparent 26%, rgba(0,0,0,0.28)),
    linear-gradient(90deg, rgba(0,0,0,0.42), transparent 42%);
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  left: clamp(24px, 4vw, 78px);
  bottom: clamp(42px, 8vh, 112px);
  z-index: 2;
  max-width: min(640px, calc(100vw - 48px));
  color: #fff;
  text-shadow: 0 18px 48px rgba(0,0,0,0.48);
}

.slide-caption span {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(12px, 0.9vw, 16px);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.slide-caption h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 5.4vw, 92px);
  line-height: 0.98;
}

.slide-caption p {
  max-width: 520px;
  color: rgba(255,255,255,0.82);
  font-size: clamp(15px, 1.15vw, 21px);
  line-height: 1.7;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: clamp(42px, 4vw, 68px);
  height: clamp(42px, 4vw, 68px);
  place-items: center;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  color: #fff;
  font-size: clamp(34px, 3vw, 54px);
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.carousel-button:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-50%) scale(1.05);
}

.carousel-button.prev {
  left: clamp(16px, 2.2vw, 42px);
}

.carousel-button.next {
  right: clamp(16px, 2.2vw, 42px);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 36px);
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: #fff;
}

@media (max-width: 900px) {
  .hero-carousel {
    min-height: 100svh !important;
  }

  .carousel-slide img {
    object-position: center;
  }

  .carousel-button {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .carousel-button:hover {
    transform: scale(1.05);
  }

  .carousel-button.prev {
    left: 20px;
  }

  .carousel-button.next {
    right: 20px;
  }

  .slide-caption {
    bottom: 92px;
  }
}

/* Carousel responsive refinement */
.hero-carousel {
  height: 100svh;
  min-height: 640px;
}

.carousel-slide img {
  object-fit: cover;
  object-position: center center;
}

@media (min-aspect-ratio: 21 / 9) {
  .hero-carousel {
    min-height: 760px;
  }

  .carousel-slide img {
    object-fit: contain;
    background: #050505;
  }
}

@media (max-aspect-ratio: 4 / 3) {
  .carousel-slide img {
    object-position: center bottom;
  }

  .carousel-slide::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.34), transparent 34%, rgba(0,0,0,0.54)),
      linear-gradient(90deg, rgba(0,0,0,0.22), transparent 50%);
  }
}

@media (max-width: 900px) {
  .hero-carousel {
    height: 100svh;
    min-height: 620px !important;
  }

  .carousel-slide img {
    object-fit: cover;
    object-position: center bottom;
  }

  .slide-caption {
    left: clamp(20px, 6vw, 40px);
    right: clamp(20px, 6vw, 40px);
    bottom: 96px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero-carousel {
    min-height: 560px !important;
  }

  .slide-caption h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .slide-caption p {
    font-size: 14px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }

  .carousel-dots button {
    width: 24px;
  }
}

/* Overlay adaptive navigation */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 60 !important;
  width: 100% !important;
  min-height: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: var(--nav-color, #fff) !important;
  transition: color 260ms ease, filter 260ms ease;
}

.nav a {
  color: var(--nav-color, #fff) !important;
}

.nav a::after {
  background: var(--nav-color, #fff) !important;
}

.nav-lockup {
  filter: var(--nav-logo-filter, none);
  transition: filter 260ms ease, opacity 260ms ease !important;
}

body.nav-on-light {
  --nav-color: #111111;
  --nav-logo-filter: invert(1) brightness(0.12);
}

body.nav-on-dark {
  --nav-color: #ffffff;
  --nav-logo-filter: none;
}

.hero-carousel {
  margin-top: 0 !important;
}

/* Carousel full-bleed fix */
.hero-carousel,
.hero-carousel .carousel-track,
.hero-carousel .carousel-slide {
  width: 100vw !important;
  max-width: none !important;
}

.hero-carousel > *,
.hero-carousel .carousel-track > *,
.hero-carousel .carousel-slide > * {
  max-width: none !important;
}

.hero-carousel .carousel-slide img {
  width: 100vw !important;
  max-width: none !important;
}

/* Gradient slide carousel transition */
.carousel-slide {
  opacity: 0 !important;
  transform: translateX(7%) scale(1.025) !important;
  transition: opacity 900ms ease, transform 1100ms cubic-bezier(.22,.8,.18,1) !important;
}

.carousel-slide.is-active {
  opacity: 1 !important;
  transform: translateX(0) scale(1) !important;
}

.carousel-slide.is-leaving-left {
  opacity: 0 !important;
  transform: translateX(-7%) scale(1.01) !important;
}

.carousel-slide.is-entering-left {
  transform: translateX(-7%) scale(1.025) !important;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.42), transparent 18%, transparent 82%, rgba(0,0,0,0.42));
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.carousel-slide.is-active::before {
  opacity: 1;
}

/* Smaller hero captions */
.slide-caption span {
  font-size: clamp(10px, 0.45vw, 12px) !important;
  margin-bottom: 7px !important;
}

.slide-caption h1 {
  font-size: clamp(22px, 2.7vw, 46px) !important;
  margin-bottom: 8px !important;
}

.slide-caption p {
  font-size: clamp(12px, 0.58vw, 15px) !important;
  line-height: 1.55 !important;
  max-width: 360px !important;
}

/* Profile resume section */
.profile-section {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: auto !important;
  padding-top: clamp(120px, 14vh, 180px) !important;
  padding-bottom: clamp(80px, 10vh, 140px) !important;
  background: #030303;
  color: #f3f3f3;
  border-top: 0;
}

.profile-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
}

.profile-bg span {
  position: absolute;
  top: -6%;
  width: 23vw;
  min-width: 260px;
  height: 112%;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}

.profile-bg span:nth-child(1) { left: -7vw; }
.profile-bg span:nth-child(2) { left: 22vw; }
.profile-bg span:nth-child(3) { left: 51vw; }
.profile-bg span:nth-child(4) { right: -6vw; }

.profile-section::before,
.profile-section::after {
  content: "";
  position: absolute;
  left: 4vw;
  right: 4vw;
  height: 1px;
  background: rgba(255,255,255,0.28);
  pointer-events: none;
}

.profile-section::before { top: 28%; transform: rotate(-2deg); }
.profile-section::after { top: 31%; transform: rotate(2deg); opacity: 0.42; }

.profile-topline,
.profile-layout,
.profile-timeline,
.profile-bottom-grid {
  position: relative;
  z-index: 2;
}

.profile-topline {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(42px, 6vh, 76px);
}

.profile-topline h2 {
  margin: 8px 0 4px;
  font-size: clamp(46px, 7vw, 112px);
  line-height: 0.9;
}

.profile-topline p,
.profile-meta,
.profile-label {
  color: rgba(255,255,255,0.62);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 30px;
  max-width: 720px;
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 600;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(18px, 3vw, 42px);
  margin-bottom: clamp(46px, 7vh, 86px);
}

.profile-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 0;
  backdrop-filter: blur(10px);
}

.profile-summary,
.profile-intro-card {
  padding: clamp(22px, 3vw, 42px);
}

.profile-label {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.profile-summary h3 {
  max-width: 760px;
  margin-bottom: 32px;
  font-size: clamp(24px, 2.7vw, 48px);
  line-height: 1.15;
}

.profile-contact-grid {
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.14);
}

.profile-contact-grid div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 14px 0;
  background: #030303;
}

.profile-contact-grid b,
.profile-contact-grid span {
  font-size: 14px;
}

.profile-contact-grid b {
  color: rgba(255,255,255,0.62);
}

.profile-intro-card p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: clamp(16px, 1.2vw, 21px);
  line-height: 2;
}

.profile-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 76px);
  margin-bottom: clamp(46px, 7vh, 86px);
}

.timeline-column {
  border-top: 1px solid rgba(255,255,255,0.32);
  padding-top: 22px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(18px, 2vw, 34px);
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.timeline-item time,
.education-card time {
  color: rgba(255,255,255,0.52);
  font-size: 13px;
  font-weight: 700;
}

.timeline-item h3 {
  margin-bottom: 12px;
  font-size: clamp(17px, 1.2vw, 23px);
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.2em;
  color: rgba(255,255,255,0.68);
  line-height: 1.85;
  font-size: clamp(13px, 0.9vw, 16px);
}

.profile-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(18px, 3vw, 42px);
}

.skill-card,
.education-card {
  padding: clamp(22px, 3vw, 38px);
}

.skill-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(255,255,255,0.12);
}

.skill-card dl div {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) 1fr;
  gap: 18px;
  padding: 13px 0;
  background: #030303;
}

.skill-card dt,
.skill-card dd {
  margin: 0;
  font-size: clamp(13px, 0.9vw, 16px);
  line-height: 1.7;
}

.skill-card dt {
  color: #fff;
  font-weight: 700;
}

.skill-card dd,
.education-card p {
  color: rgba(255,255,255,0.68);
}

.education-card div + div {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.education-card p {
  margin: 8px 0 0;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .profile-topline,
  .profile-layout,
  .profile-timeline,
  .profile-bottom-grid {
    grid-template-columns: 1fr;
  }

  .profile-topline {
    display: grid;
  }

  .profile-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .timeline-item,
  .skill-card dl div,
  .profile-contact-grid div {
    grid-template-columns: 1fr;
  }

  .profile-bg span {
    width: 76vw;
  }
}

/* Profile one-screen 16:9 */
.profile-one-screen {
  display: grid !important;
  min-height: 100svh !important;
  padding: clamp(82px, 9vh, 118px) clamp(30px, 4vw, 76px) clamp(34px, 4vh, 56px) !important;
  place-items: center;
}

.profile-stage {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 1920px);
  min-height: min(850px, calc(100svh - 150px));
  aspect-ratio: 16 / 8.2;
  grid-template-rows: auto 1fr;
  gap: clamp(20px, 2.5vh, 34px);
}

.profile-hero-line {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(24px, 5vw, 86px);
  align-items: end;
  padding-bottom: clamp(18px, 2.6vh, 28px);
  border-bottom: 1px solid rgba(255,255,255,0.34);
}

.profile-hero-line h2 {
  margin: 8px 0 10px;
  font-size: clamp(58px, 7vw, 132px);
  line-height: 0.82;
}

.profile-hero-line p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: clamp(17px, 1.35vw, 26px);
  font-weight: 500;
}

.profile-quick-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px clamp(18px, 2vw, 34px);
  color: rgba(255,255,255,0.68);
  font-size: clamp(12px, 0.82vw, 15px);
}

.profile-screen-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr) minmax(360px, 0.86fr);
  gap: clamp(16px, 2vw, 30px);
  min-height: 0;
}

.profile-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2vw, 34px);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
}

.profile-main-copy p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: clamp(15px, 1.08vw, 22px);
  line-height: 2;
}

.profile-compact-list {
  display: grid;
  align-content: start;
  gap: clamp(16px, 2vh, 26px);
}

.profile-compact-list div {
  padding-top: clamp(12px, 1.5vh, 18px);
  border-top: 1px solid rgba(255,255,255,0.16);
}

.profile-compact-list time {
  color: rgba(255,255,255,0.52);
  font-size: clamp(12px, 0.78vw, 14px);
  font-weight: 700;
}

.profile-compact-list h3 {
  margin: 8px 0 8px;
  font-size: clamp(16px, 1.12vw, 22px);
}

.profile-compact-list p,
.profile-side-info li,
.profile-education-mini p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: clamp(12px, 0.86vw, 16px);
  line-height: 1.7;
}

.profile-side-info ul {
  display: grid;
  gap: clamp(9px, 1.2vh, 14px);
  margin: 0 0 clamp(22px, 3vh, 38px);
  padding-left: 1.05em;
}

.profile-education-mini {
  padding-top: clamp(18px, 2.4vh, 28px);
  border-top: 1px solid rgba(255,255,255,0.18);
}

.profile-education-mini p + p {
  margin-top: 10px;
}

.profile-one-screen .profile-bg span {
  height: 118%;
}

@media (max-width: 1100px) {
  .profile-one-screen {
    place-items: stretch;
  }

  .profile-stage {
    aspect-ratio: auto;
    min-height: auto;
  }

  .profile-hero-line,
  .profile-screen-grid {
    grid-template-columns: 1fr;
  }

  .profile-quick-contact {
    justify-content: flex-start;
  }
}

/* Profile full-width rebalance */
.profile-one-screen {
  padding-left: clamp(42px, 5vw, 96px) !important;
  padding-right: clamp(42px, 5vw, 96px) !important;
  align-items: center;
}

.profile-stage {
  width: 100% !important;
  max-width: none !important;
  min-height: min(820px, calc(100svh - 150px));
  aspect-ratio: auto;
}

.profile-hero-line {
  grid-template-columns: minmax(420px, 0.8fr) minmax(520px, 1.2fr);
}

.profile-hero-line h2 {
  font-size: clamp(82px, 8.6vw, 164px);
}

.profile-screen-grid {
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.1fr) minmax(520px, 1.08fr);
  gap: clamp(24px, 3.2vw, 62px);
  width: 100%;
}

.profile-panel {
  min-height: clamp(430px, 50vh, 560px);
}

.profile-main-copy p {
  font-size: clamp(16px, 1.04vw, 20px);
  line-height: 1.9;
}

.profile-compact-list h3 {
  font-size: clamp(18px, 1.25vw, 24px);
}

.profile-compact-list p,
.profile-side-info li,
.profile-education-mini p {
  font-size: clamp(13px, 0.9vw, 17px);
}

.profile-side-info {
  display: grid;
  align-content: start;
}

.profile-side-info ul {
  gap: clamp(13px, 1.4vh, 18px);
}

@media (min-width: 1500px) {
  .profile-one-screen .profile-bg span:nth-child(1) { left: 1vw; }
  .profile-one-screen .profile-bg span:nth-child(2) { left: 27vw; }
  .profile-one-screen .profile-bg span:nth-child(3) { left: 53vw; }
  .profile-one-screen .profile-bg span:nth-child(4) { right: 0; }
}

/* Complete dense profile content */
.profile-complete-stage {
  gap: clamp(14px, 1.8vh, 24px) !important;
  min-height: min(850px, calc(100svh - 134px)) !important;
}

.profile-complete-head {
  grid-template-columns: minmax(500px, 1fr) minmax(560px, 1fr) !important;
  padding-bottom: clamp(12px, 1.6vh, 18px) !important;
}

.profile-complete-head h2 {
  font-size: clamp(70px, 7.5vw, 142px) !important;
  margin-bottom: 6px !important;
}

.profile-complete-head p {
  font-size: clamp(15px, 1.05vw, 20px) !important;
}

.profile-complete-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(520px, 1.14fr) minmax(520px, 1.08fr);
  gap: clamp(16px, 2vw, 32px);
  min-height: 0;
}

.profile-complete-grid .profile-panel {
  min-height: 0 !important;
  max-height: calc(100svh - 300px);
  padding: clamp(16px, 1.5vw, 26px) !important;
}

.profile-complete-intro p,
.dense-item li,
.compact-skill-list dd,
.dense-education p {
  color: rgba(255,255,255,0.68);
  font-size: clamp(11px, 0.72vw, 14px);
  line-height: 1.62;
}

.profile-complete-intro > p {
  margin: 0;
  font-size: clamp(12px, 0.82vw, 15px);
  line-height: 1.8;
}

.profile-label-gap {
  margin-top: clamp(18px, 2vh, 28px);
}

.compact-skill-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.compact-skill-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
}

.compact-skill-list dt,
.compact-skill-list dd {
  margin: 0;
}

.compact-skill-list dt {
  color: #fff;
  font-size: clamp(11px, 0.74vw, 14px);
  font-weight: 700;
}

.profile-dense-column {
  display: grid;
  align-content: start;
  gap: clamp(9px, 1.25vh, 14px);
}

.dense-item {
  padding-top: clamp(8px, 1vh, 12px);
  border-top: 1px solid rgba(255,255,255,0.14);
}

.dense-item time {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.48);
  font-size: clamp(10px, 0.66vw, 12px);
  font-weight: 700;
}

.dense-item h3 {
  margin: 0 0 5px;
  font-size: clamp(13px, 0.9vw, 17px);
  line-height: 1.25;
}

.dense-item ul {
  margin: 0;
  padding-left: 1.1em;
}

.dense-education {
  padding-top: clamp(8px, 1vh, 12px);
  border-top: 1px solid rgba(255,255,255,0.14);
}

.dense-education .profile-label {
  margin-bottom: 8px;
}

.dense-education p {
  margin: 0;
}

.dense-education p + p {
  margin-top: 5px;
}

@media (max-width: 1200px) {
  .profile-complete-head,
  .profile-complete-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-complete-grid .profile-panel {
    max-height: none;
  }
}

/* Reference profile fixed background */
.profile-reference-layout {
  position: relative;
  display: grid !important;
  min-height: 100svh !important;
  padding: clamp(76px, 8vh, 108px) clamp(26px, 3.2vw, 62px) clamp(44px, 4.8vh, 70px) !important;
  background: #040404;
  overflow: hidden;
}

.profile-reference-layout .profile-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.ref-profile-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.82fr 1.06fr 1.06fr;
  gap: clamp(18px, 2vw, 36px);
  width: 100%;
  max-width: 1920px;
  margin: auto;
  min-height: min(760px, calc(100svh - 160px));
}

.ref-left {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(12px, 1.6vh, 20px);
  min-width: 0;
}

.ref-title-block {
  min-height: clamp(190px, 24vh, 280px);
  padding: 0 clamp(14px, 1.4vw, 24px);
  background: #fff;
  color: #000;
}

.ref-title-block span,
.ref-title-block h2 {
  display: block;
  margin: 0;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.ref-title-block span {
  padding-top: clamp(18px, 2.6vh, 34px);
  font-size: clamp(48px, 5.2vw, 100px);
}

.ref-title-block h2 {
  margin-top: clamp(32px, 5vh, 70px);
  font-size: clamp(54px, 5.6vw, 112px);
}

.ref-title-block small {
  display: block;
  margin-top: 6px;
  color: rgba(0,0,0,0.38);
  font-size: clamp(22px, 2vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.ref-card {
  background: rgba(6,6,6,0.86);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
  color: #f1f1f1;
}

.ref-intro,
.ref-skills,
.ref-main {
  padding: clamp(18px, 1.7vw, 32px);
}

.ref-intro p,
.ref-item li,
.ref-skills dd,
.ref-education p {
  color: rgba(255,255,255,0.68);
  font-size: clamp(11px, 0.74vw, 14px);
  line-height: 1.65;
}

.ref-intro p {
  margin: 0;
  font-size: clamp(12px, 0.86vw, 16px);
  line-height: 1.75;
}

.ref-skills dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.ref-skills dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
}

.ref-skills dt,
.ref-skills dd {
  margin: 0;
}

.ref-skills dt {
  color: #fff;
  font-size: clamp(11px, 0.74vw, 14px);
  font-weight: 800;
}

.ref-main {
  overflow: hidden;
}

.ref-item {
  padding: clamp(12px, 1.45vh, 18px) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.ref-item time {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.5);
  font-size: clamp(10px, 0.68vw, 12px);
  font-weight: 800;
}

.ref-item h3 {
  margin: 0 0 6px;
  font-size: clamp(14px, 0.96vw, 18px);
  line-height: 1.25;
}

.ref-item ul {
  margin: 0;
  padding-left: 1.1em;
}

.ref-education {
  padding-top: clamp(10px, 1.2vh, 14px);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.ref-education .profile-label {
  margin-bottom: 8px;
}

.ref-education p {
  margin: 0;
}

.ref-education p + p {
  margin-top: 6px;
}

.ref-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(26px, 3.2vw, 62px);
  background: rgba(0,0,0,0.92);
  border-top: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.8);
  font-size: clamp(11px, 0.8vw, 14px);
}

@media (max-width: 1200px) {
  .ref-profile-grid {
    grid-template-columns: 1fr;
  }

  .ref-bottom-bar {
    position: relative;
    flex-wrap: wrap;
    margin-top: 20px;
  }
}

/* Info layout only correction */
.profile-reference-layout {
  padding: clamp(92px, 9vh, 124px) clamp(46px, 4.5vw, 92px) clamp(54px, 5vh, 78px) !important;
  background: #030303 !important;
}

.ref-profile-grid {
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.14fr) minmax(520px, 1.14fr) !important;
  gap: clamp(22px, 2.6vw, 48px) !important;
  min-height: min(760px, calc(100svh - 170px));
  align-items: stretch;
}

.ref-left {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.ref-title-block {
  min-height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  color: #fff !important;
}

.ref-title-block span {
  padding-top: 0 !important;
  color: #fff !important;
  font-size: clamp(34px, 3.5vw, 68px) !important;
}

.ref-title-block small {
  color: rgba(255,255,255,0.48) !important;
  font-size: clamp(16px, 1.3vw, 25px) !important;
}

.ref-title-block h2 {
  margin-top: clamp(22px, 3vh, 42px) !important;
  color: #fff !important;
  font-size: clamp(48px, 5.2vw, 104px) !important;
}

.ref-card {
  background: rgba(8,8,8,0.74) !important;
}

.ref-main,
.ref-intro,
.ref-skills {
  padding: clamp(18px, 1.55vw, 30px) !important;
}

.ref-main {
  display: grid;
  align-content: start;
}

.ref-bottom-bar {
  background: rgba(0,0,0,0.55) !important;
}

/* Responsive profile viewport fitting */
.profile-reference-layout {
  height: 100svh !important;
  min-height: 720px !important;
  padding: clamp(118px, 12vh, 150px) clamp(34px, 3.2vw, 68px) clamp(46px, 5vh, 64px) !important;
  align-items: stretch !important;
}

.ref-profile-grid {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: calc(100svh - clamp(118px, 12vh, 150px) - clamp(46px, 5vh, 64px)) !important;
  grid-template-columns: minmax(280px, 0.78fr) minmax(500px, 1.18fr) minmax(500px, 1.18fr) !important;
  gap: clamp(24px, 2.8vw, 56px) !important;
}

.ref-left,
.ref-main {
  min-height: 0 !important;
  height: 100% !important;
}

.ref-left {
  grid-template-rows: auto minmax(0, 0.62fr) minmax(0, 0.82fr) !important;
}

.ref-title-block span {
  font-size: clamp(28px, 3.2vw, 58px) !important;
}

.ref-title-block h2 {
  margin-top: clamp(16px, 2vh, 28px) !important;
  font-size: clamp(48px, 5vw, 94px) !important;
}

.ref-title-block small {
  font-size: clamp(15px, 1.25vw, 22px) !important;
}

.ref-intro,
.ref-skills,
.ref-main {
  overflow: hidden !important;
}

.ref-intro p,
.ref-item li,
.ref-skills dd,
.ref-education p {
  font-size: clamp(10px, 0.68vw, 13px) !important;
  line-height: 1.52 !important;
}

.ref-item h3 {
  font-size: clamp(12px, 0.86vw, 16px) !important;
}

.ref-item {
  padding: clamp(8px, 1vh, 13px) 0 !important;
}

.ref-bottom-bar {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

@media (min-aspect-ratio: 16 / 9) {
  .ref-profile-grid {
    grid-template-columns: minmax(320px, 0.74fr) minmax(560px, 1.22fr) minmax(560px, 1.22fr) !important;
  }
}

@media (max-aspect-ratio: 4 / 3) {
  .profile-reference-layout {
    height: auto !important;
    min-height: 100svh !important;
  }

  .ref-profile-grid {
    height: auto !important;
    grid-template-columns: 1fr !important;
  }

  .ref-left,
  .ref-main {
    height: auto !important;
  }
}

/* Four column always-horizontal profile */
.profile-four-layout {
  position: relative;
  display: grid !important;
  height: 100svh !important;
  min-height: 720px !important;
  padding: clamp(96px, 10vh, 132px) clamp(34px, 3vw, 72px) clamp(44px, 5vh, 66px) !important;
  background: #030303 !important;
  overflow: hidden;
}

.profile-four-layout .profile-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.profile-four-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: clamp(250px, 18vw, 360px) minmax(0, 1.18fr) minmax(0, 1.08fr) minmax(250px, 0.82fr);
  gap: clamp(18px, 2vw, 38px);
  width: 100%;
  height: 100%;
  min-width: 0;
}

.profile-block {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #f2f2f2;
}

.identity-block {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(16px, 2vh, 28px);
}

.identity-title span,
.identity-title h2,
.identity-title small {
  display: block;
  margin: 0;
  line-height: 0.95;
  letter-spacing: 0;
}

.identity-title span,
.identity-title h2 {
  font-weight: 950;
}

.identity-title span {
  font-size: clamp(38px, 4.2vw, 82px);
}

.identity-title h2 {
  margin-top: clamp(26px, 4vh, 52px);
  font-size: clamp(54px, 5.7vw, 112px);
}

.identity-title small {
  margin-top: 6px;
  color: rgba(255,255,255,0.46);
  font-size: clamp(16px, 1.45vw, 28px);
  font-weight: 900;
}

.profile-inner-card,
.projects-block,
.work-block,
.skill-block {
  padding: clamp(16px, 1.45vw, 28px);
  background: rgba(6,6,6,0.74);
  border: 1px solid rgba(255,255,255,0.16);
}

.profile-block > b,
.profile-inner-card > b,
.education-mini > b {
  display: block;
  margin-bottom: clamp(14px, 1.6vh, 22px);
  color: rgba(255,255,255,0.64);
  font-size: clamp(12px, 0.86vw, 15px);
  font-weight: 800;
}

.profile-inner-card p,
.mini-entry p,
.skill-block dd,
.education-mini p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: clamp(10px, 0.7vw, 13px);
  line-height: 1.58;
}

.mini-entry {
  padding: clamp(10px, 1.25vh, 16px) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.mini-entry time {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.5);
  font-size: clamp(10px, 0.64vw, 12px);
  font-weight: 800;
}

.mini-entry h3 {
  margin: 0 0 6px;
  font-size: clamp(13px, 0.92vw, 17px);
  line-height: 1.28;
}

.skill-block {
  display: grid;
  align-content: start;
}

.skill-block dl {
  display: grid;
  gap: clamp(8px, 1vh, 12px);
  margin: 0;
}

.skill-block dl div {
  display: grid;
  grid-template-columns: minmax(52px, 0.28fr) 1fr;
  gap: 9px;
}

.skill-block dt,
.skill-block dd {
  margin: 0;
}

.skill-block dt {
  color: #fff;
  font-size: clamp(10px, 0.72vw, 13px);
  font-weight: 800;
}

.education-mini {
  margin-top: clamp(18px, 2.4vh, 32px);
  padding-top: clamp(14px, 1.8vh, 22px);
  border-top: 1px solid rgba(255,255,255,0.14);
}

.education-mini p + p {
  margin-top: 7px;
}

.profile-four-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) repeat(3, minmax(180px, 0.6fr));
  gap: 18px;
  padding: 10px clamp(34px, 3vw, 72px);
  background: rgba(0,0,0,0.68);
  border-top: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.78);
  font-size: clamp(10px, 0.72vw, 13px);
}

@media (min-aspect-ratio: 18 / 9) {
  .profile-four-grid {
    grid-template-columns: clamp(260px, 17vw, 360px) minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(280px, 0.95fr);
  }
}

@media (max-width: 1380px) {
  .profile-four-layout {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .profile-four-grid {
    grid-template-columns: 0.72fr 1.1fr 1.02fr 0.82fr;
    gap: 16px;
  }

  .identity-title span {
    font-size: clamp(30px, 3.6vw, 54px);
  }

  .identity-title h2 {
    font-size: clamp(42px, 5vw, 76px);
  }

  .profile-inner-card p,
  .mini-entry p,
  .skill-block dd,
  .education-mini p {
    font-size: clamp(9px, 0.82vw, 12px);
    line-height: 1.48;
  }
}

/* Profile emergency rebuild v2 */
section.profile-four-layout#about {
  position: relative !important;
  display: block !important;
  width: 100vw !important;
  height: 100svh !important;
  min-height: 720px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #030303 !important;
}

section.profile-four-layout#about .profile-bg {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0.58 !important;
  pointer-events: none !important;
}

section.profile-four-layout#about .profile-four-grid {
  position: absolute !important;
  z-index: 2 !important;
  left: clamp(42px, 4vw, 82px) !important;
  right: clamp(42px, 4vw, 82px) !important;
  top: clamp(118px, 12vh, 146px) !important;
  bottom: clamp(48px, 5.2vh, 70px) !important;
  display: grid !important;
  grid-template-columns: 20fr 28fr 28fr 18fr !important;
  gap: clamp(20px, 2vw, 42px) !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

section.profile-four-layout#about .profile-block {
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  color: #f4f4f4 !important;
}

section.profile-four-layout#about .identity-block {
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  gap: clamp(18px, 2vh, 28px) !important;
}

section.profile-four-layout#about .identity-title {
  overflow: hidden !important;
}

section.profile-four-layout#about .identity-title span {
  font-size: clamp(32px, 3.6vw, 72px) !important;
  line-height: 0.95 !important;
}

section.profile-four-layout#about .identity-title h2 {
  margin-top: clamp(18px, 2.6vh, 36px) !important;
  font-size: clamp(48px, 5.4vw, 108px) !important;
  line-height: 0.9 !important;
}

section.profile-four-layout#about .identity-title small {
  font-size: clamp(14px, 1.25vw, 24px) !important;
  line-height: 1 !important;
}

section.profile-four-layout#about .profile-inner-card,
section.profile-four-layout#about .projects-block,
section.profile-four-layout#about .work-block,
section.profile-four-layout#about .skill-block {
  height: 100% !important;
  padding: clamp(16px, 1.35vw, 26px) !important;
  background: rgba(4, 4, 4, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  overflow: hidden !important;
}

section.profile-four-layout#about .projects-block,
section.profile-four-layout#about .work-block,
section.profile-four-layout#about .skill-block {
  display: flex !important;
  flex-direction: column !important;
}

section.profile-four-layout#about .profile-block > b,
section.profile-four-layout#about .profile-inner-card > b,
section.profile-four-layout#about .education-mini > b {
  display: block !important;
  margin: 0 0 clamp(10px, 1.2vh, 16px) !important;
  color: rgba(255,255,255,0.66) !important;
  font-size: clamp(11px, 0.78vw, 14px) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

section.profile-four-layout#about .profile-inner-card p,
section.profile-four-layout#about .mini-entry p,
section.profile-four-layout#about .skill-block dd,
section.profile-four-layout#about .education-mini p {
  margin: 0 !important;
  color: rgba(255,255,255,0.7) !important;
  font-size: clamp(10px, 0.68vw, 13px) !important;
  line-height: 1.52 !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
}

section.profile-four-layout#about .mini-entry {
  padding: clamp(9px, 1vh, 14px) 0 !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
}

section.profile-four-layout#about .mini-entry time {
  display: block !important;
  margin: 0 0 4px !important;
  color: rgba(255,255,255,0.5) !important;
  font-size: clamp(9px, 0.6vw, 11px) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

section.profile-four-layout#about .mini-entry h3 {
  margin: 0 0 5px !important;
  color: #fff !important;
  font-size: clamp(12px, 0.86vw, 16px) !important;
  line-height: 1.24 !important;
}

section.profile-four-layout#about .skill-block dl {
  display: grid !important;
  gap: clamp(7px, 0.8vh, 11px) !important;
  margin: 0 !important;
}

section.profile-four-layout#about .skill-block dl div {
  display: grid !important;
  grid-template-columns: minmax(48px, 0.32fr) 1fr !important;
  gap: 8px !important;
}

section.profile-four-layout#about .skill-block dt,
section.profile-four-layout#about .skill-block dd {
  margin: 0 !important;
  writing-mode: horizontal-tb !important;
}

section.profile-four-layout#about .skill-block dt {
  color: #fff !important;
  font-size: clamp(10px, 0.68vw, 13px) !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

section.profile-four-layout#about .education-mini {
  margin-top: clamp(14px, 1.8vh, 24px) !important;
  padding-top: clamp(12px, 1.5vh, 18px) !important;
  border-top: 1px solid rgba(255,255,255,0.14) !important;
}

section.profile-four-layout#about .education-mini p + p {
  margin-top: 6px !important;
}

section.profile-four-layout#about .profile-four-footer {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 3 !important;
  display: grid !important;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr !important;
  gap: 18px !important;
  padding: 10px clamp(42px, 4vw, 82px) !important;
  background: rgba(0,0,0,0.72) !important;
  border-top: 1px solid rgba(255,255,255,0.22) !important;
  color: rgba(255,255,255,0.78) !important;
  font-size: clamp(10px, 0.72vw, 13px) !important;
}

@media (max-width: 1500px) {
  section.profile-four-layout#about .profile-four-grid {
    left: 28px !important;
    right: 28px !important;
    grid-template-columns: 19fr 29fr 29fr 20fr !important;
    gap: 16px !important;
  }

  section.profile-four-layout#about .identity-title span {
    font-size: clamp(28px, 3.4vw, 54px) !important;
  }

  section.profile-four-layout#about .identity-title h2 {
    font-size: clamp(40px, 5vw, 78px) !important;
  }

  section.profile-four-layout#about .profile-inner-card p,
  section.profile-four-layout#about .mini-entry p,
  section.profile-four-layout#about .skill-block dd,
  section.profile-four-layout#about .education-mini p {
    font-size: clamp(9px, 0.72vw, 11px) !important;
    line-height: 1.42 !important;
  }
}

/* Profile match reference 2 */
section.profile-four-layout#about {
  height: 100svh !important;
  min-height: 720px !important;
}

section.profile-four-layout#about .profile-four-grid {
  top: clamp(92px, 9.4vh, 118px) !important;
  bottom: auto !important;
  height: min(72vh, 690px) !important;
  grid-template-columns: 20fr 27fr 27fr 18fr !important;
  gap: clamp(22px, 2.2vw, 44px) !important;
}

section.profile-four-layout#about .profile-block {
  height: auto !important;
}

section.profile-four-layout#about .identity-block {
  height: min(72vh, 690px) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

section.profile-four-layout#about .identity-title span {
  font-size: clamp(38px, 4.1vw, 78px) !important;
}

section.profile-four-layout#about .identity-title h2 {
  margin-top: clamp(24px, 3.2vh, 42px) !important;
  font-size: clamp(58px, 5.8vw, 116px) !important;
}

section.profile-four-layout#about .identity-title small {
  font-size: clamp(16px, 1.35vw, 26px) !important;
}

section.profile-four-layout#about .profile-inner-card,
section.profile-four-layout#about .projects-block,
section.profile-four-layout#about .work-block,
section.profile-four-layout#about .skill-block {
  height: min(54vh, 470px) !important;
  padding: clamp(16px, 1.35vw, 25px) !important;
}

section.profile-four-layout#about .identity-block .profile-inner-card {
  align-self: start !important;
  height: min(31vh, 300px) !important;
}

section.profile-four-layout#about .profile-inner-card p,
section.profile-four-layout#about .mini-entry p,
section.profile-four-layout#about .skill-block dd,
section.profile-four-layout#about .education-mini p {
  font-size: clamp(10px, 0.62vw, 12px) !important;
  line-height: 1.48 !important;
}

section.profile-four-layout#about .mini-entry h3 {
  font-size: clamp(12px, 0.82vw, 15px) !important;
  line-height: 1.22 !important;
}

section.profile-four-layout#about .mini-entry {
  padding: clamp(8px, 0.9vh, 12px) 0 !important;
}

section.profile-four-layout#about .skill-block dl {
  gap: clamp(7px, 0.9vh, 11px) !important;
}

section.profile-four-layout#about .education-mini {
  margin-top: clamp(14px, 2vh, 22px) !important;
  padding-top: clamp(12px, 1.4vh, 18px) !important;
}

section.profile-four-layout#about .profile-four-footer {
  bottom: clamp(10px, 1.4vh, 18px) !important;
  left: 0 !important;
  right: 0 !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

@media (max-width: 1500px) {
  section.profile-four-layout#about .profile-four-grid {
    top: clamp(86px, 9vh, 108px) !important;
    left: 28px !important;
    right: 28px !important;
    height: min(72vh, 620px) !important;
    grid-template-columns: 20fr 27fr 27fr 18fr !important;
  }

  section.profile-four-layout#about .profile-inner-card,
  section.profile-four-layout#about .projects-block,
  section.profile-four-layout#about .work-block,
  section.profile-four-layout#about .skill-block {
    height: min(53vh, 430px) !important;
  }
}

/* Profile image page final */
.profile-image-page {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #1c1c1c;
}

.profile-image-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #1c1c1c;
}

body.profile-page-visible .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
}

.site-header {
  transition: opacity 220ms ease, transform 220ms ease, color 260ms ease, filter 260ms ease;
}

@media (max-width: 900px) {
  .profile-image-page {
    height: 100svh;
    min-height: 420px;
  }
}

/* Remove obsolete profile overlays */
.profile-four-layout,
.profile-reference-layout,
.profile-one-screen,
.profile-four-footer,
.ref-bottom-bar,
.profile-stage,
.profile-four-grid,
.ref-profile-grid {
  display: none !important;
}

.profile-image-page ~ .profile-four-footer,
.profile-image-page ~ .ref-bottom-bar {
  display: none !important;
}

.profile-image-page {
  margin: 0 !important;
}

/* Homepage-only fading navigation */
.site-header {
  opacity: var(--home-nav-opacity, 1) !important;
  transform: translateY(calc(-18px * (1 - var(--home-nav-opacity, 1)))) !important;
  pointer-events: var(--home-nav-events, auto) !important;
  transition: opacity 180ms linear, transform 180ms linear, color 260ms ease, filter 260ms ease !important;
  will-change: opacity, transform;
}

body.home-nav-hidden .site-header {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-18px) !important;
}

/* Final case showcase section */
.case-showcase {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  padding: clamp(44px, 5vh, 66px) clamp(44px, 5vw, 96px) clamp(32px, 4vh, 54px);
  background: #1d1d1d;
  color: #f2f2f2;
  overflow: hidden;
}

.case-showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(34px, 5vh, 64px);
}

.case-showcase-header h2 {
  margin: 0 0 4px;
  font-size: clamp(36px, 3.3vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.case-showcase-header p {
  margin: 0;
  color: rgba(255,255,255,0.48);
  font-size: clamp(20px, 1.7vw, 34px);
  line-height: 1.1;
}

.case-corner-mark {
  position: relative;
  width: clamp(54px, 4vw, 76px);
  height: clamp(44px, 3vw, 58px);
  opacity: 0.5;
}

.case-corner-mark span {
  position: absolute;
  inset: 0;
  border-left: 2px solid rgba(255,255,255,0.68);
  border-top: 2px solid rgba(255,255,255,0.68);
  transform: rotate(-45deg) skew(7deg, 7deg);
}

.case-corner-mark span:nth-child(2) { left: 11px; opacity: 0.62; }
.case-corner-mark span:nth-child(3) { left: 22px; opacity: 0.38; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 5vh, 64px) clamp(34px, 3.2vw, 64px);
}

.case-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 570 / 320;
  border-radius: clamp(10px, 1vw, 18px);
  background: #111;
  color: #fff;
  isolation: isolate;
}

.case-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 480ms ease, filter 480ms ease;
}

.case-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.26) 52%, rgba(0,0,0,0.06));
  opacity: 0;
  transition: opacity 260ms ease;
}

.case-overlay {
  position: absolute;
  left: clamp(20px, 2vw, 30px);
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(20px, 2.2vw, 34px);
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 4px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.case-overlay small,
.case-overlay em {
  color: rgba(255,255,255,0.82);
  font-style: normal;
  line-height: 1.2;
}

.case-overlay small {
  font-size: clamp(13px, 0.95vw, 18px);
  font-weight: 400;
}

.case-overlay strong {
  font-size: clamp(28px, 2.3vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.case-overlay em {
  font-size: clamp(13px, 0.95vw, 18px);
  font-weight: 700;
}

.case-tile:hover img,
.case-tile:focus-visible img {
  transform: scale(1.035);
  filter: brightness(0.82);
}

.case-tile:hover::after,
.case-tile:focus-visible::after,
.case-tile:hover .case-overlay,
.case-tile:focus-visible .case-overlay {
  opacity: 1;
}

.case-tile:hover .case-overlay,
.case-tile:focus-visible .case-overlay {
  transform: translateY(0);
}

.more-cases-link {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: max-content;
  margin: clamp(42px, 5vh, 70px) auto 0;
  color: rgba(255,255,255,0.82);
  text-align: center;
  transition: color 220ms ease, transform 220ms ease;
}

.more-cases-link span {
  display: block;
  font-size: clamp(28px, 2.5vw, 48px);
  line-height: 1;
}

.more-cases-link i {
  position: relative;
  display: block;
  width: clamp(70px, 6vw, 116px);
  height: clamp(42px, 4vw, 72px);
}

.more-cases-link i::before,
.more-cases-link i::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 58%;
  height: 58%;
  border-right: 3px solid rgba(255,255,255,0.62);
  border-bottom: 3px solid rgba(255,255,255,0.62);
  transform: translateX(-50%) rotate(45deg);
}

.more-cases-link i::before { top: 0; opacity: 0.9; }
.more-cases-link i::after { top: 18px; opacity: 0.42; }

.more-cases-link:hover,
.more-cases-link:focus-visible {
  color: #fff;
  transform: translateY(4px);
}

@media (max-width: 980px) {
  .case-showcase {
    padding-left: 22px;
    padding-right: 22px;
  }

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

/* Case icons and smaller type final */
.case-showcase-header { margin-bottom: clamp(22px, 3.4vh, 44px) !important; }
.case-showcase-header h2 { font-size: clamp(24px, 2.05vw, 42px) !important; line-height: .96 !important; }
.case-showcase-header p { font-size: clamp(14px, 1.12vw, 22px) !important; line-height: 1.1 !important; }
.case-corner-image { display: block; width: clamp(46px, 3.8vw, 74px); height: auto; object-fit: contain; opacity: .72; }
.case-corner-mark { display: none !important; }
.more-cases-link { margin-top: clamp(26px, 3.6vh, 46px) !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.more-cases-image { display: block; width: clamp(86px, 7.4vw, 132px); height: auto; object-fit: contain; opacity: .86; transition: opacity 180ms ease, transform 180ms ease; }
.more-cases-link:hover .more-cases-image, .more-cases-link:focus-visible .more-cases-image { opacity: 1; transform: translateY(3px); }
@media (max-width: 980px) {
  .case-corner-image { width: 52px; }
  .more-cases-image { width: 112px; }
}

/* Yingshe project detail page final */
.slide-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.slide-link .slide-caption {
  pointer-events: none;
}

.project-detail-body {
  margin: 0;
  background: #1c1c1c;
  color: #fff;
  overflow-x: hidden;
}

.pdf-case-page {
  width: 100%;
  background: #1c1c1c;
}

.pdf-page {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
  line-height: 0;
  background: #1c1c1c;
}

.pdf-page img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.project-back {
  position: fixed;
  right: clamp(18px, 2vw, 34px);
  bottom: clamp(18px, 2vw, 34px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.34);
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-back:hover,
.project-back:focus-visible {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-2px);
}

/* Portfolio access gate final */
.access-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.76);
  backdrop-filter: blur(18px);
}

.access-card {
  width: min(520px, 100%);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(12,12,12,0.92);
  color: #fff;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}

.access-kicker {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.52);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.access-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.access-copy {
  margin: 0 0 26px;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.8;
}

.access-actions {
  display: grid;
  gap: 12px;
}

.access-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.access-form input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.access-form input:focus {
  border-color: rgba(255,255,255,0.5);
}

.access-button {
  height: 44px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 0;
  padding: 0 18px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.access-button.primary {
  background: #fff;
  color: #0c0c0c;
}

.access-button.secondary {
  background: transparent;
  color: rgba(255,255,255,0.86);
}

.access-button:hover,
.access-button:focus-visible {
  transform: translateY(-2px);
}

.access-error {
  margin: 16px 0 0;
  color: #ff6a6a;
  font-size: 13px;
}

.access-back-link {
  display: inline-flex;
  margin-top: 16px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 13px;
}

.access-back-link:hover {
  color: #fff;
}

.access-switch {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 9999;
  min-width: 88px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  background: rgba(0,0,0,0.36);
  color: rgba(255,255,255,0.82);
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.access-switch:hover,
.access-switch:focus-visible {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

@media (max-width: 640px) {
  .access-form { grid-template-columns: 1fr; }
  .access-button { width: 100%; }
}
