:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-soft: #090a0d;
  --bg-elevated: #101116;
  --panel: rgba(255, 255, 255, 0.058);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --text: #f4efe7;
  --muted: #9d9993;
  --line: rgba(255, 255, 255, 0.115);
  --gold: #d9b96c;
  --blue: #9ed8ff;
  --insilico: #24a63b;
  --moovi: #6f7d5b;
  --radius: 28px;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 185, 108, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(158, 216, 255, 0.08), transparent 30rem),
    linear-gradient(145deg, var(--bg) 0%, #0b0d12 52%, var(--bg) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.85; }
h1, h2, h3, p { margin-top: 0; }

.site-header, main, .footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.76);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.brand, .nav-links, .hero-actions, .stats, .filters, .contact-links, .footer {
  display: flex;
  align-items: center;
}

.brand { gap: 12px; font-weight: 800; letter-spacing: 0.02em; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: var(--gold);
}

.nav-links { gap: 4px; }
.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.68fr);
  gap: 58px;
  align-items: center;
  padding: 92px 0 82px;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h3 { margin-bottom: 10px; font-size: 23px; letter-spacing: -0.02em; }
.hero-text { max-width: 760px; font-size: 18px; }
.hero-actions { flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }

.button, .filter, .contact-links a {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { border-color: transparent; color: #111; background: var(--gold); }
.button.ghost { color: var(--text); }

.stats {
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.stats div {
  min-width: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.stats dt { color: var(--text); font-size: 24px; font-weight: 900; }
.stats dd { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.hero-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.15), transparent), #151820;
  box-shadow: var(--shadow);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(7, 8, 11, 0.92));
}
.portrait {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.03) saturate(0.92);
}
.visual-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(18px);
}
.visual-card span { display: block; color: var(--muted); font-size: 13px; }
.visual-card strong { display: block; margin-top: 6px; font-size: 20px; }

.section { padding: 78px 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 30px; }
.section-heading.split { display: flex; align-items: end; justify-content: space-between; gap: 24px; }

.profile-strip {
  display: grid;
  grid-template-columns: 0.68fr 1fr;
  gap: 42px;
  align-items: center;
}
.profile-strip img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.profile-strip p:last-child { font-size: 17px; }

.filters { flex-wrap: wrap; gap: 10px; }
.filter {
  cursor: pointer;
  padding: 0 15px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  transition: 0.2s ease;
}
.filter.active { color: #111; border-color: transparent; background: var(--gold); font-weight: 800; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.work-card:hover { transform: translateY(-6px); }
.work-card.is-hidden { display: none; }
.work-card.featured { grid-column: span 1; }
.poster {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
}
.poster::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
}
.poster span {
  position: relative;
  z-index: 1;
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -0.06em;
}
.poster-a { background: linear-gradient(145deg, #111827, #7f1d1d); }
.poster-b { background: linear-gradient(145deg, #1f2937, #854d0e); }
.poster-c { background: linear-gradient(145deg, #172554, #0f766e); }
.poster-d { background: linear-gradient(145deg, #064e3b, #1e1b4b); }
.poster-e { background: linear-gradient(145deg, #312e81, #701a75); }
.poster-f { background: linear-gradient(145deg, #111827, #be123c); }
.work-body { padding: 24px; }
.work-body p { margin-bottom: 0; }
.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.timeline article, .education-card, .skills-card, .qr-card, .contact-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.timeline article { padding: 26px; }
.timeline span { display: block; margin-bottom: 14px; color: var(--gold); font-weight: 900; }
.timeline p { margin-bottom: 0; }

.education-skills {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 18px;
}
.education-card, .skills-card { padding: 30px; }
.education-card h2 { margin-top: 22px; font-size: 34px; }
.tags { display: flex; flex-wrap: wrap; gap: 11px; }
.tags span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: stretch;
}
.contact-copy { padding: 34px; }
.contact-links { flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-links a { display: inline-flex; align-items: center; padding: 0 16px; color: var(--text); }
.qr-card { padding: 18px; text-align: center; }
.qr-card img { width: 100%; border-radius: 20px; }
.qr-card p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; }

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  color: var(--muted);
}
.footer a { color: var(--text); }

@media (max-width: 960px) {
  .hero, .profile-strip, .education-skills, .contact-section { grid-template-columns: 1fr; }
  .work-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .section-heading.split { align-items: flex-start; flex-direction: column; }
  .hero-visual, .portrait { min-height: auto; height: 520px; }
  .qr-card { max-width: 360px; }
}

@media (max-width: 680px) {
  .site-header, main, .footer { width: min(100% - 28px, 1180px); }
  .nav { align-items: flex-start; border-radius: 24px; }
  .nav-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--text); }
  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7, 8, 11, 0.96);
  }
  .nav-links.open { display: flex; }
  .hero { padding: 70px 0 62px; }
  h1 { font-size: clamp(38px, 13vw, 58px); }
  .hero-visual, .portrait, .profile-strip img { height: 420px; }
  .work-grid, .timeline { grid-template-columns: 1fr; }
  .stats { align-items: stretch; flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; }
}

.video-card .video-trigger {
  position: relative;
  display: block;
  width: 100%;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  background: #111;
}

.video-card .video-trigger img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.video-card .video-trigger:hover img {
  transform: scale(1.04);
  filter: brightness(0.8);
}

.play-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #111;
  background: var(--gold);
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #111;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
}

.video-modal.open { display: grid; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0b0d12;
  box-shadow: var(--shadow);
}

.video-modal-panel h2 {
  margin: 0 54px 16px 0;
  font-size: clamp(22px, 3vw, 34px);
}

.video-modal-panel video {
  width: 100%;
  max-height: 76vh;
  border-radius: 18px;
  background: #000;
}

.video-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  line-height: 1;
}

body.modal-open { overflow: hidden; }

@media (max-width: 680px) {
  .video-card .video-trigger img { height: 230px; }
  .video-modal { padding: 12px; }
  .video-modal-panel { padding: 14px; border-radius: 22px; }
}

.brand-project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.brand-project-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.brand-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 192, 106, 0.52);
}

.brand-project-card > img,
.brand-project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.2;
  filter: saturate(0.9);
}

.insilico-card { background: radial-gradient(circle at 50% 24%, rgba(35, 165, 62, 0.34), transparent 34rem), #07090b; }
.insilico-card > img { padding: 52px; }
.moovi-card { background: linear-gradient(145deg, rgba(20, 83, 45, 0.34), rgba(9, 11, 16, 0.92)); }
.brand-project-image { background: url('./assets/moovi-hero-water.jpg') center/cover; opacity: 0.22; }

.brand-project-card > div:last-child {
  position: relative;
  z-index: 1;
  padding: 30px;
  background: linear-gradient(transparent, rgba(7, 8, 11, 0.86));
}

.brand-project-card span,
.brand-summary-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-project-card p,
.section-note { margin-bottom: 0; }
.section-note { max-width: 420px; color: var(--muted); }
.section-note code { color: var(--text); }

.brand-page { width: min(1180px, calc(100% - 40px)); }
.brand-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
  padding: 82px 0 72px;
  overflow: hidden;
}

.brand-hero-copy { position: relative; z-index: 1; }
.brand-hero-copy p { max-width: 760px; font-size: 18px; }
.brand-logo-bg {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  opacity: 0.34;
  filter: drop-shadow(0 34px 70px rgba(35, 165, 62, 0.25));
}
.logo-hero::before {
  content: "";
  position: absolute;
  inset: 12% -12% 0 auto;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 165, 62, 0.28), transparent 64%);
}

.brand-hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.brand-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.brand-summary-grid article,
.empty-work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.brand-summary-grid article { padding: 26px; }
.brand-summary-grid strong { display: block; font-size: 22px; line-height: 1.35; }

.two-column-detail {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 46px;
  align-items: start;
}
.detail-list p {
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.052);
}

.empty-work-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
}
.empty-work-card img { opacity: 0.72; }
.empty-work-card p { margin-bottom: 0; }

@media (max-width: 960px) {
  .brand-project-grid,
  .brand-hero,
  .brand-summary-grid,
  .two-column-detail,
  .empty-work-card { grid-template-columns: 1fr; }
  .brand-hero { min-height: auto; }
  .brand-logo-bg { max-height: 360px; }
}

@media (max-width: 680px) {
  .brand-page { width: min(100% - 28px, 1180px); }
  .brand-project-card { min-height: 310px; }
  .brand-hero { padding-top: 62px; }
  .empty-work-card { padding: 20px; }
}

/* Premium minimal landing cover */
.entry-cover {
  position: relative;
  min-height: 100svh;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #f6f1e8;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.12), transparent 20rem),
    radial-gradient(circle at 78% 88%, rgba(232, 192, 106, 0.11), transparent 22rem),
    #030305;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  isolation: isolate;
}

.entry-noise {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.entry-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.entry-logo {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.entry-nav div { display: flex; gap: 28px; }
.entry-nav a { color: rgba(246, 241, 232, 0.84); }
.entry-nav a:hover { color: var(--gold); }

.entry-stage {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100svh - 98px);
  grid-template-columns: 0.64fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 70px 58px;
}

.entry-copy {
  position: relative;
  z-index: 5;
  align-self: end;
  padding-bottom: 88px;
  opacity: 1;
  transform: none;
}
.entry-kicker {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.entry-copy h1 {
  margin: 0;
  max-width: 460px;
  font-size: clamp(42px, 7vw, 98px);
  line-height: 0.86;
  letter-spacing: -0.075em;
  color: #fffaf0;
  text-shadow: 0 14px 54px rgba(0, 0, 0, 0.42);
}

.entry-copy h1 span { display: block; overflow: hidden; }
.entry-copy p:last-child { max-width: 360px; margin: 24px 0 0; color: rgba(246, 241, 232, 0.64); }

.kinetic-object {
  position: relative;
  z-index: 3;
  width: min(52vw, 570px);
  aspect-ratio: 1;
  justify-self: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: objectFloat 7s ease-in-out infinite;
}

.kinetic-object::before,
.kinetic-object::after {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  transform: rotate(45deg);
}

.kinetic-object::after {
  inset: 23%;
  border-color: rgba(232, 192, 106, 0.25);
  filter: blur(0.2px);
}

.kinetic-ring {
  position: absolute;
  inset: 15% 3%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: ringSpin 12s linear infinite;
}

.kinetic-ring span {
  position: absolute;
  color: rgba(246, 241, 232, 0.94);
  font-size: clamp(42px, 8vw, 104px);
  font-weight: 950;
  line-height: 0.84;
  letter-spacing: -0.1em;
  text-transform: uppercase;
  text-shadow:
    2px 0 rgba(133, 215, 255, 0.48),
    -2px 0 rgba(232, 192, 106, 0.36),
    0 24px 70px rgba(255, 255, 255, 0.16);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
}

.kinetic-ring span:nth-child(1) { transform: rotateY(0deg) translateZ(145px); }
.kinetic-ring span:nth-child(2) { transform: rotateY(120deg) translateZ(145px); }
.kinetic-ring span:nth-child(3) { transform: rotateY(240deg) translateZ(145px); }
.ring-b { inset: 28% 14%; animation-direction: reverse; animation-duration: 16s; opacity: 0.72; }
.ring-b span { font-size: clamp(30px, 5vw, 72px); }
.ring-b span:nth-child(1) { transform: rotateX(0deg) translateZ(104px); }
.ring-b span:nth-child(2) { transform: rotateX(120deg) translateZ(104px); }
.ring-b span:nth-child(3) { transform: rotateX(240deg) translateZ(104px); }

.kinetic-core {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #050506;
  background: var(--gold);
  font-size: 36px;
  font-weight: 950;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 70px rgba(232, 192, 106, 0.22);
}

.entry-index {
  position: absolute;
  right: -14px;
  bottom: -54px;
  color: transparent;
  font-size: clamp(150px, 20vw, 310px);
  font-weight: 950;
  letter-spacing: -0.12em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
}

.entry-button {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 58px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 172px;
  min-height: 44px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #f6f1e8;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 850;
  transform: translateX(-50%);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.entry-button:hover {
  border-color: var(--gold);
  background: rgba(232, 192, 106, 0.12);
  transform: translateX(-50%) translateY(-2px);
}

.entry-button i {
  width: 38px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  animation: linePulse 1.8s ease-in-out infinite;
}

.entry-dots {
  position: absolute;
  z-index: 3;
  right: 34px;
  top: 50%;
  display: grid;
  gap: 17px;
  transform: translateY(-50%);
}
.entry-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
}
.entry-dots span:nth-child(2) { opacity: 0.48; }
.entry-dots span:nth-child(3) { opacity: 0.28; }

.scroll-cue {
  position: absolute;
  left: 34px;
  bottom: 30px;
  color: rgba(246, 241, 232, 0.42);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 3, 5, 0.92), transparent 48%, rgba(3, 3, 5, 0.2));
}

.main-site { scroll-margin-top: 0; }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.work-card.reveal { transition-delay: calc(var(--reveal-index, 0) * 35ms); }

.cursor-light {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(232, 192, 106, 0.12), transparent 66%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

body.has-pointer .cursor-light { opacity: 1; }

.video-card,
.brand-project-card,
.button,
.filter {
  will-change: transform;
}

.video-card:hover,
.brand-project-card:hover {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(232, 192, 106, 0.18);
}

@keyframes ringSpin {
  from { transform: rotateY(0deg) rotateX(6deg); }
  to { transform: rotateY(360deg) rotateX(6deg); }
}

@keyframes objectFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotateZ(-1.5deg); }
  50% { transform: translate3d(0, -18px, 0) rotateZ(1.5deg); }
}

@keyframes linePulse {
  0%, 100% { transform: scaleX(0.5); opacity: 0.48; }
  50% { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .entry-cover { width: min(100% - 28px, 1180px); }
  .entry-stage { grid-template-columns: 1fr; padding: 26px 28px 110px; }
  .entry-copy { align-self: auto; padding-bottom: 0; }
  .kinetic-object { width: min(82vw, 520px); }
  .entry-button { left: 28px; transform: none; }
  .entry-button:hover { transform: translateY(-2px); }
}

@media (max-width: 640px) {
  .entry-cover { min-height: 94svh; margin-top: 12px; }
  .entry-nav { padding: 20px; }
  .entry-nav div { gap: 14px; font-size: 11px; }
  .entry-stage { min-height: calc(94svh - 78px); }
  .entry-copy h1 { font-size: clamp(42px, 16vw, 74px); }
  .kinetic-ring span { font-size: clamp(34px, 14vw, 76px); }
  .kinetic-ring span:nth-child(1),
  .kinetic-ring span:nth-child(2),
  .kinetic-ring span:nth-child(3) { transform: none; position: static; }
  .kinetic-ring { display: flex; flex-direction: column; gap: 8px; animation: objectFloat 7s ease-in-out infinite; }
  .ring-b { display: none; }
  .entry-index { font-size: 140px; }
  .scroll-cue, .entry-dots { display: none; }
}

/* Global cinematic transition + hover preview */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  background: #050506;
  transform: translateY(100%);
}

.page-transition span {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 185, 108, 0.22), transparent 24rem),
    linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0.58;
}

body.is-entering .page-transition {
  animation: cinematicEnter 1.05s cubic-bezier(.76, 0, .24, 1) forwards;
}

body.is-navigating .page-transition {
  pointer-events: auto;
  animation: cinematicLeave 0.62s cubic-bezier(.76, 0, .24, 1) forwards;
}

.video-card .video-trigger img,
.video-card .hover-preview {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.video-card .hover-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.5s ease;
  pointer-events: none;
  background: #050506;
}

.video-card.is-previewing .hover-preview,
.video-card .video-trigger:hover .hover-preview {
  opacity: 1;
  transform: scale(1.055);
}

.video-card.is-previewing .video-trigger img,
.video-card .video-trigger:hover img {
  opacity: 0;
}

.video-card .work-body {
  background: linear-gradient(180deg, rgba(16, 17, 22, 0.98), rgba(8, 9, 12, 0.98));
}

.brand-project-card,
.work-card,
.timeline article,
.education-card,
.skills-card,
.contact-copy,
.qr-card,
.brand-summary-grid article,
.empty-work-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.064), rgba(255,255,255,0.038));
}

.insilico-card {
  background: radial-gradient(circle at 50% 24%, rgba(36, 166, 59, 0.28), transparent 34rem), #050506;
}

.moovi-card {
  background: linear-gradient(145deg, rgba(111, 125, 91, 0.28), rgba(5, 5, 6, 0.94));
}

.logo-hero::before {
  background: radial-gradient(circle, rgba(36, 166, 59, 0.22), transparent 64%);
}

@keyframes cinematicEnter {
  0% { opacity: 1; transform: translateY(0); }
  48% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-100%); }
}

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

/* Fullscreen opening cover refinement */
.entry-cover {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.entry-nav,
.entry-stage {
  width: min(1440px, calc(100% - 80px));
  margin-right: auto;
  margin-left: auto;
}

.entry-stage {
  min-height: calc(100svh - 96px);
  padding-right: 0;
  padding-left: 0;
}

.entry-button {
  bottom: 68px;
}

.ai-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ai-workflow-grid article {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.064), rgba(255,255,255,0.034));
}

.ai-workflow-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ai-workflow-grid p {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .entry-nav,
  .entry-stage {
    width: min(100% - 40px, 1180px);
  }
  .ai-workflow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .entry-nav,
  .entry-stage {
    width: min(100% - 28px, 1180px);
  }
  .entry-cover { min-height: 100svh; }
  .entry-stage { min-height: calc(100svh - 78px); }
  .ai-workflow-grid { grid-template-columns: 1fr; }
}

/* Full-viewport layout system across all pages */
:root {
  --page-pad: clamp(28px, 5vw, 88px);
  --content-max: 1680px;
  --content-wide: 1880px;
}

.site-header,
main,
.footer,
.brand-page {
  width: 100%;
  max-width: none;
}

.nav,
.hero,
.section,
.footer,
.brand-hero,
.entry-nav,
.entry-stage {
  width: min(var(--content-max), calc(100% - (var(--page-pad) * 2)));
  margin-right: auto;
  margin-left: auto;
}

.entry-cover {
  width: 100%;
  max-width: none;
}

.entry-nav,
.entry-stage {
  width: min(var(--content-wide), calc(100% - (var(--page-pad) * 2)));
}

.nav {
  margin-top: 18px;
}

.hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.72fr);
  min-height: calc(100svh - 84px);
  padding-top: clamp(72px, 8vw, 132px);
  padding-bottom: clamp(72px, 8vw, 118px);
}

.hero-copy {
  max-width: 980px;
}

.hero-text {
  max-width: 860px;
}

.section {
  padding-top: clamp(76px, 8vw, 132px);
  padding-bottom: clamp(76px, 8vw, 132px);
}

.section-heading.split {
  align-items: flex-end;
}

.profile-strip {
  grid-template-columns: minmax(420px, 0.74fr) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 110px);
}

.profile-strip > div {
  max-width: 880px;
}

.brand-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 26px);
}

.video-card .video-trigger img,
.video-card .hover-preview {
  height: clamp(230px, 18vw, 360px);
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.education-skills {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
}

.contact-section {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.brand-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 0.85fr);
  min-height: calc(100svh - 84px);
  padding-top: clamp(72px, 8vw, 132px);
  padding-bottom: clamp(72px, 8vw, 118px);
}

.brand-hero-copy {
  max-width: 980px;
}

.brand-logo-bg {
  max-height: min(62vh, 620px);
}

.brand-hero-image {
  height: min(64vh, 680px);
}

.brand-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column-detail {
  grid-template-columns: minmax(360px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(42px, 6vw, 110px);
}

.detail-list {
  columns: 2;
  column-gap: 18px;
}

.detail-list p {
  break-inside: avoid;
}

.empty-work-card {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

@media (min-width: 1800px) {
  :root { --content-max: 1820px; --content-wide: 2040px; }
  .work-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .entry-copy h1 { font-size: clamp(70px, 6vw, 128px); }
}

@media (max-width: 1280px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-list { columns: 1; }
}

@media (max-width: 960px) {
  :root { --page-pad: clamp(20px, 4vw, 40px); }
  .hero,
  .profile-strip,
  .brand-hero,
  .education-skills,
  .contact-section,
  .two-column-detail,
  .empty-work-card {
    grid-template-columns: 1fr;
  }
  .hero,
  .brand-hero {
    min-height: auto;
  }
  .work-grid,
  .timeline,
  .ai-workflow-grid,
  .brand-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading.split {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  :root { --page-pad: 14px; }
  .nav,
  .hero,
  .section,
  .footer,
  .brand-hero,
  .entry-nav,
  .entry-stage {
    width: calc(100% - 28px);
  }
  .work-grid,
  .timeline,
  .ai-workflow-grid,
  .brand-project-grid,
  .brand-summary-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }
}

/* Page-specific full-width polish */
.ai-workflow-section .section-heading {
  max-width: none;
}

.ai-workflow-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-page .nav {
  margin-top: 18px;
}

.insilico-page .brand-hero {
  position: relative;
}

.insilico-page .brand-hero::after {
  content: "";
  position: absolute;
  inset: 16% 4% auto auto;
  width: min(42vw, 640px);
  height: min(42vw, 640px);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 166, 59, 0.14), transparent 70%);
}

.moovi-page .brand-hero::after {
  content: "";
  position: absolute;
  inset: auto 6% 10% auto;
  width: min(38vw, 560px);
  height: min(38vw, 560px);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 125, 91, 0.18), transparent 70%);
}

.moovi-page .brand-hero {
  position: relative;
}

@media (min-width: 1281px) {
  .ai-workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Sequential AI process animation + full photo display */
.hero-visual {
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.2vw, 34px);
  overflow: visible;
}

.hero-visual::after {
  inset: auto clamp(18px, 2.2vw, 34px) clamp(18px, 2.2vw, 34px);
  height: 36%;
  border-radius: 0 0 30px 30px;
}

.portrait {
  width: 100%;
  height: min(68vh, 680px);
  object-fit: contain;
  object-position: center;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
}

.profile-strip img {
  height: auto;
  max-height: min(74vh, 760px);
  object-fit: contain;
  object-position: center;
  background: rgba(255,255,255,0.026);
}

.ai-workflow-section {
  position: relative;
  overflow: hidden;
}

.ai-workflow-section::before {
  content: "";
  position: absolute;
  inset: 24% var(--page-pad) auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(217,185,108,0.45), rgba(158,216,255,0.16), transparent);
  transform-origin: left center;
  animation: processLine 1.4s ease both;
  animation-timeline: view();
  animation-range: entry 10% cover 44%;
}

.ai-process {
  position: relative;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: clamp(12px, 1vw, 18px);
  align-items: stretch;
}

.ai-process::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42px;
  height: 1px;
  background: rgba(255,255,255,0.11);
}

.ai-step {
  position: relative;
  min-height: 300px;
  padding-top: 32px;
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  animation: stepReveal 0.72s cubic-bezier(.22, .8, .26, 1) forwards;
  animation-delay: calc((var(--step) - 1) * 120ms);
}

.ai-step::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 24px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 8px rgba(217,185,108,0.055), 0 0 34px rgba(217,185,108,0.24);
}

.ai-step span {
  margin-bottom: 70px;
  padding-left: 24px;
}

.ai-step h3 {
  font-size: clamp(20px, 1.4vw, 28px);
}

.ai-step p {
  font-size: 14px;
  line-height: 1.75;
}

.ai-step:nth-child(1) { --accent-step: rgba(217,185,108,0.16); }
.ai-step:nth-child(2) { --accent-step: rgba(217,185,108,0.12); }
.ai-step:nth-child(3) { --accent-step: rgba(158,216,255,0.10); }
.ai-step:nth-child(4) { --accent-step: rgba(36,166,59,0.10); }
.ai-step:nth-child(5) { --accent-step: rgba(158,216,255,0.12); }
.ai-step:nth-child(6) { --accent-step: rgba(217,185,108,0.14); }

.ai-step {
  background:
    radial-gradient(circle at 18% 12%, var(--accent-step), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.064), rgba(255,255,255,0.032));
}

@keyframes stepReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes processLine {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (min-width: 1281px) {
  .ai-process { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
  .ai-process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-process::before { display: none; }
  .ai-step { min-height: 250px; }
}

@media (max-width: 680px) {
  .hero-visual { padding: 14px; }
  .portrait { height: auto; max-height: 520px; }
  .profile-strip img { max-height: none; }
  .ai-process { grid-template-columns: 1fr; }
  .ai-step { min-height: auto; }
  .ai-step span { margin-bottom: 42px; }
}

.ai-step.process-waiting {
  animation: none;
}

.ai-step.process-active {
  animation: stepReveal 0.72s cubic-bezier(.22, .8, .26, 1) forwards;
}

.ai-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 41px;
  right: -16px;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217,185,108,0.48), rgba(255,255,255,0.08));
  transform-origin: left center;
  opacity: 0;
}

.ai-step.process-active:not(:last-child)::after {
  animation: connectorReveal 0.55s ease forwards;
  animation-delay: 0.28s;
}

.ai-step:not(:last-child)::after {
  box-shadow: 24px 0 0 -23px rgba(217,185,108,0.9);
}

@keyframes connectorReveal {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 1280px) {
  .ai-step:not(:last-child)::after { display: none; }
}

/* Categorized work section */
.category-switcher .filter.active {
  box-shadow: 0 12px 40px rgba(217, 185, 108, 0.14);
}

.work-category-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.work-category-guide div {
  display: none;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

.work-category-guide div.is-active {
  display: block;
}

.work-category-guide span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.work-category-guide p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

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

@media (max-width: 960px) {
  .work-category-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .work-category-guide { grid-template-columns: 1fr; }
}
