/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg:        #0A0A0C;
  --bg-soft:   #101014;
  --surface:   #14141A;
  --surface-2: #1C1C24;
  --border:    rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text:      #F4F2EC;
  --text-dim:  #A6A39B;
  --text-faint:#6B6862;
  --accent:    #E8C66B;        /* warm champagne */
  --accent-soft: rgba(232,198,107,0.12);
  --accent-glow: rgba(232,198,107,0.35);
  --danger:    #E66B6B;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 20px 50px -20px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,0.7), 0 10px 30px rgba(0,0,0,0.4);
}

/* =========================================================
   LIGHT MODE TOKENS
   ========================================================= */
[data-theme="light"] {
  --bg:             #F7F4EF;
  --bg-soft:        #EEEAE1;
  --surface:        #E5E0D6;
  --surface-2:      #D8D2C6;
  --border:         rgba(0,0,0,0.08);
  --border-strong:  rgba(0,0,0,0.16);
  --text:           #1C1A16;
  --text-dim:       #5C5850;
  --text-faint:     #948F88;
  --accent:         #B8921E;
  --accent-soft:    rgba(184,146,30,0.12);
  --accent-glow:    rgba(184,146,30,0.28);
  --danger:         #C0393B;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.08);
  --shadow:         0 20px 50px -20px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg:      0 40px 80px -30px rgba(0,0,0,0.15), 0 10px 30px rgba(0,0,0,0.08);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(184,146,30,0.08), transparent 60%),
    radial-gradient(700px 500px at 0% 30%,   rgba(184,146,30,0.04), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(184,146,30,0.05), transparent 60%);
}
[data-theme="light"] .nav-inner {
  background: rgba(247,244,239,0.75);
}
[data-theme="light"] .nav.scrolled .nav-inner {
  background: rgba(238,234,225,0.92);
}
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color 0.35s ease, color 0.35s ease,
              border-color 0.35s ease, box-shadow 0.35s ease !important;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
img { display:block; max-width:100%; }
button { font: inherit; cursor: pointer; }

/* Ambient gradient backdrop */
body::before {
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(232,198,107,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(232,198,107,0.05), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(232,198,107,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  /* grain */
  content:"";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}

.shell { position: relative; z-index: 1; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: center;
  padding: 18px 16px;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  background: rgba(16,16,20,0.65);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: all .35s ease;
  max-width: calc(100vw - 32px);
}
.nav.scrolled .nav-inner {
  background: rgba(10,10,12,0.85);
  border-color: var(--border-strong);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  padding-right: 8px;
  border-right: 1px solid var(--border);
}
.nav-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}
.nav-links {
  display: flex; gap: 2px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--bg);
  background: var(--accent);
}
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--text);
  color: var(--bg);
  transition: transform .2s ease, background .2s ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); background: #fff; }
[data-theme="light"] .nav-cta:hover { background: #1C1A16; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color .25s, background .25s, border-color .25s;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 999px;
  align-items: center; justify-content: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 140px;
}
.hero > .container {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 80px;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-eyebrow .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-eyebrow .pill::before {
  content:""; width:6px; height:6px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.8vw, 62px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero h1 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero h1 .reveal {
  display: inline-block;
  overflow-x: visible;
  overflow-y: clip;
}
.hero h1 .reveal span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 .reveal:nth-child(1) span { animation-delay: .05s; }
.hero h1 .reveal:nth-child(2) span { animation-delay: .15s; }
.hero h1 .reveal:nth-child(3) span { animation-delay: .25s; }
.hero h1 .reveal:nth-child(4) span { animation-delay: .35s; }
.hero h1 .reveal:nth-child(5) span { animation-delay: .45s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  max-width: 540px;
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp .8s .7s ease forwards;
}
.hero-sub b { color: var(--text); font-weight: 500; }

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 56px;
  opacity: 0; animation: fadeUp .8s .85s ease forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--accent);
  color: #1a1408;
}
.btn-primary:hover {
  background: #f3d585;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px var(--accent-glow);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.btn-ghost .arrow { background: rgba(255,255,255,0.08); }

.hero-meta {
  display: flex; gap: 36px;
  opacity: 0; animation: fadeUp .8s 1s ease forwards;
}
.hero-meta .item {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.hero-meta .item:first-child { border-left: none; padding-left: 0; }
.hero-meta .item .k {
  font-size: 12px; color: var(--text-faint);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-meta .item .v {
  font-size: 15px; color: var(--text); font-weight: 500;
}
.hero-meta .item .v .pin {
  color: var(--accent); margin-right: 4px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   HANGING ID CARD
   ========================================================= */
.id-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  margin-top: 20px;
  animation: swing 5s ease-in-out infinite;
  transform-origin: top center;
  will-change: transform;
}
.id-hook {
  width: 50px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
  position: relative;
  z-index: 10;
}
.id-cord {
  display: block;
  width: 10px;
  height: 28px;
  margin: 0 auto;
  position: relative;
  z-index: 9;
  overflow: visible;
}
.cord-path {
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.35));
}
.id-card {
  width: 260px;
  background:
    linear-gradient(160deg, #2e7d2e 0%, #1a5c1a 50%, #256025 100%);
  border: 7px solid #f5c800;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 70px -15px rgba(0,0,0,0.85),
    0 0 0 1px rgba(245,200,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  will-change: transform;
  cursor: pointer;
}
.id-shine {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 10;
}
.id-wrap.tilting {
  animation-play-state: paused;
}
/* Gloss overlay */
.id-card::before {
  content:"";
  position: absolute; top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 7px 7px 0 0;
}
/* Subtle diagonal pattern */
.id-card::after {
  content:"";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px,
    transparent 1px, transparent 12px
  );
  pointer-events: none;
  z-index: 1;
}
/* Punch hole */
.id-punch {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.9);
  margin: 6px auto 6px;
  position: relative;
  z-index: 3;
}
.id-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 6px 14px;
}

/* All direct children sit above the overlays */
.id-punch, .id-school-name, .id-address, .id-divider,
.id-mid-row, .id-name-block, .id-footer {
  position: relative;
  z-index: 3;
}

/* School name */
.id-school-name {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding: 12px 12px 2px;
}
.id-address {
  font-size: 8px;
  color: rgba(255,255,255,0.75);
  text-align: center;
  line-height: 1.5;
  padding: 0 10px 10px;
}

/* Photo + Seal row */
.id-mid-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 14px 8px;
}
.id-photo-wrap {
  width: 78px;
  height: 94px;
  flex-shrink: 0;
  border: 2px solid #fff;
  overflow: hidden;
  border-radius: 3px;
  background: #ccc;
}
.id-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.id-mid-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}
.id-seal {
  width: 72px; height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.id-num {
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.06em;
  text-align: center;
}

/* Name block */
.id-name-block {
  text-align: center;
  padding: 6px 14px 10px;
}
.id-surname {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.id-firstname {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
}
.id-sig-area {
  padding: 0 20px;
  margin-top: 6px;
}
.id-sig-line {
  height: 1px;
  background: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.id-sig-lbl {
  font-size: 8px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Footer band */
.id-footer {
  background: rgba(0,0,0,0.45);
  padding: 8px 12px;
  text-align: center;
  border-top: 2px solid #f5c800;
}
.id-course {
  font-size: 11px;
  font-weight: 800;
  color: #f5c800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.id-sy {
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  margin-top: 2px;
}
@keyframes swing {
  0%   { transform: rotate(-5deg); }
  50%  { transform: rotate(5deg); }
  100% { transform: rotate(-5deg); }
}

/* Hero portrait card */
.portrait-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(30px) scale(0.97);
  animation: portraitIn 1s .4s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes portraitIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.portrait-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.95) contrast(1.02);
  transition: transform .6s ease;
}
.portrait-card:hover img { transform: scale(1.04); }
.portrait-card::after {
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,12,0.85) 100%);
  pointer-events: none;
}
.portrait-card .tag {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: rgba(10,10,12,0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  font-size: 13px;
}
.portrait-card .tag .status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.portrait-card .tag .status .live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6BE89F;
  box-shadow: 0 0 8px #6BE89F;
  animation: pulse 1.6s ease-in-out infinite;
}
.portrait-card .tag .role { color: var(--text-dim); }


/* =========================================================
   SECTIONS COMMON
   ========================================================= */
section { position: relative; padding: 140px 0; }
.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.section-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 580px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-bio {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.75;
}
.about-bio p + p { margin-top: 1.2em; }
.about-bio b { color: var(--text); font-weight: 500; }
.about-bio .accent { color: var(--accent); font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.fact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fact-card {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s ease;
  overflow: hidden;
}
.fact-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: var(--surface-2);
}
.fact-card::before {
  content:"";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.fact-card:hover::before { opacity: 1; }
.fact-card .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.fact-card h4 {
  font-size: 16px; font-weight: 500; margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.fact-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.fact-card.span2 { grid-column: span 2; }

/* =========================================================
   SKILLS
   ========================================================= */
.skills-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.skill-group {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s ease;
}
.skill-group:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.skill-group .gh {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
  font-weight: 500;
}
.skill-group .gh .gi {
  display: inline-flex;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  align-items: center; justify-content: center;
}
.skill-list {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.skill-group:first-child .skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.skill-group:nth-child(3) .skill-list {
  flex-direction: column;
}
.skill-group:nth-child(4) .skill-list {
  flex-direction: column;
}
.skill-group:nth-child(4) .tag-row {
  flex-wrap: nowrap;
  overflow: hidden;
}
.skill {
  display: inline-flex; align-items: center;
}
.skill .nm {
  font-size: 13px; font-weight: 500;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: all .2s ease;
}
.skill .nm:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.tag-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.skill-group:first-child .tag-row,
.skill-group:nth-child(2) .tag-row,
.skill-group:nth-child(3) .tag-row {
  flex-wrap: nowrap;
  overflow: hidden;
}
.skill-group:nth-child(2) .tag-row .tg {
  white-space: nowrap;
}
.tag-row .tg {
  font-size: 12.5px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  transition: all .2s ease;
}
.tag-row .tg:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* =========================================================
   EDUCATION TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 24px;
}
.timeline::before {
  content:"";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 50%, transparent 100%);
}
.tline-item {
  position: relative;
  padding: 0 0 40px 32px;
}
.tline-item:last-child { padding-bottom: 0; }
.tline-item::before {
  content:"";
  position: absolute;
  left: -22px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(232,198,107,0.1);
}
.tline-date {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 6px;
}
.tline-item h4 {
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.tline-item h4 .school {
  color: var(--text-dim); font-weight: 400; font-size: 15px;
}
.tline-item p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 640px;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-list {
  display: flex; flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.project:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
}
.project:nth-child(even) .project-media { order: 2; }
.project:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-media {
  position: relative;
  overflow: hidden;
  background: #0e0e12;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.project-media::before {
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 30% 30%, var(--accent-soft), transparent 60%),
    linear-gradient(135deg, #1a1a22 0%, #0e0e12 100%);
  z-index: 0;
}
.project-media img {
  position: relative; z-index: 1;
  max-width: 86%;
  max-height: 86%;
  width: auto; height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6),
              0 0 0 1px rgba(255,255,255,0.06);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.project:hover .project-media img {
  transform: translateY(-6px) scale(1.02);
}
.project-body {
  padding: 44px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.project-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 14px;
}
.project-body h3 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.project-body p {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 22px;
}
.project-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 28px;
}
.project-tags .ptag {
  font-size: 12px;
  padding: 5px 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.project-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.btn-sm {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  transition: all .2s ease;
}
.btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.btn-sm.primary {
  background: var(--accent);
  color: #1a1408;
  border-color: var(--accent);
}
.btn-sm.primary:hover { background: #f3d585; color: #1a1408; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}
.contact-side h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.contact-side > p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 36px;
}
.contact-links {
  display: flex; flex-direction: column;
  gap: 8px;
}
.c-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s ease;
}
.c-link:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateX(4px);
}
.c-link .left {
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
}
.c-link .left > div { min-width: 0; }
.c-link .val {
  font-size: 15px; font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-link .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.c-link .lbl { font-size: 12px; color: var(--text-faint); letter-spacing: 0.04em; text-transform: uppercase; }
.c-link .arr {
  color: var(--text-faint);
  transition: transform .25s ease, color .25s ease;
}
.c-link:hover .arr { color: var(--accent); transform: translateX(4px); }

.contact-form {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content:"";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 20%, var(--accent) 50%, transparent 80%);
  opacity: 0.5;
}
.field { margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 28px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: all .2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(232,198,107,0.04);
  box-shadow: 0 0 0 4px rgba(232,198,107,0.08);
}
.field textarea {
  min-height: 130px; resize: vertical;
}
.contact-form .btn { width: 100%; justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 50px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-inner p {
  font-size: 14px; color: var(--text-faint);
}
.footer-inner .right {
  display: flex; gap: 14px;
  font-size: 14px; color: var(--text-dim);
}
.footer-inner .right a:hover { color: var(--accent); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- Tablet / collapsed nav (≤960px) ---- */
@media (max-width: 960px) {
  .container { padding: 0 22px; }
  section { padding: 100px 0; }
  .hero { padding-top: 120px; }
  .hero > .container { padding-bottom: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .portrait-card { max-width: 400px; margin: 0 auto; width: 100%; }
  .id-wrap { align-self: center; margin-top: 0; }
  .hero-meta { gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-wrap { grid-template-columns: repeat(2, 1fr); }
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
  .project-body { padding: 32px; }
  .project-media { min-height: 240px; padding: 30px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 8px;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    background: rgba(10,10,12,0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 12px; }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-inner { padding: 8px 8px 8px 18px; }
}

/* ---- Tablet portrait (≤640px) ---- */
@media (max-width: 640px) {
  .skills-wrap { grid-template-columns: 1fr; }
  .portrait-card { max-width: 320px; }
  .project-media { min-height: 200px; padding: 24px; }
  .edu-wrapper { margin-top: 70px; }
  .skill-group:first-child .skill-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile (≤560px) ---- */
@media (max-width: 560px) {
  section { padding: 80px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .hero-meta .item { border-left: none; padding-left: 0; }
  .fact-cards { grid-template-columns: 1fr; }
  .fact-card.span2 { grid-column: auto; }
  .project-body { padding: 26px; }
  .project-body h3 { font-size: 26px; }
  .contact-form { padding: 26px; }
.portrait-card { max-width: 260px; }
  .edu-wrapper { margin-top: 60px; }
  .skill-group:first-child .tag-row,
  .skill-group:nth-child(2) .tag-row,
  .skill-group:nth-child(3) .tag-row,
  .skill-group:nth-child(4) .tag-row { flex-wrap: wrap; overflow: visible; }
  .skill .nm, .tag-row .tg { padding: 8px 14px; }
}

/* ---- Small phones (≤400px) ---- */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 100px; }
  .hero > .container { padding-bottom: 40px; }
  .portrait-card { max-width: 220px; }
  .section-title { letter-spacing: -0.025em; }
  .project-body { padding: 20px; }
  .project-body h3 { font-size: 22px; }
  .contact-form { padding: 20px; }
  .btn { padding: 12px 18px; }
  .hero-eyebrow { flex-wrap: wrap; row-gap: 6px; }
  .skill-group:first-child .skill-list { grid-template-columns: 1fr; }
  .skill-group:nth-child(4) .skill-list { flex-direction: column; }
}

/* Reveal on scroll */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal-up.in {
  opacity: 1; transform: translateY(0);
}

/* Education section spacing */
.edu-wrapper { margin-top: 100px; }
.edu-wrapper .section-head { margin-bottom: 32px; }
.edu-wrapper .section-title { font-size: clamp(28px, 3.4vw, 40px); }

/* =========================================================
   DYNAMIC ISLAND MUSIC PLAYER
   ========================================================= */
:root { --sp-green: #1DB954; }

.di {
  position: fixed;
  top: 18px; right: 24px; bottom: auto; left: auto;
  transform: translateY(-120px);
  will-change: width, height, border-radius, transform;

  /* Desktop: pill */
  width: 270px;
  height: 52px;
  border-radius: 999px;

  background: rgba(0,0,0,0.90);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.6),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.07);

  overflow: hidden;
  z-index: 200;

  transition:
    width   0.5s cubic-bezier(0.32,0.72,0,1),
    height  0.5s cubic-bezier(0.32,0.72,0,1),
    border-radius 0.5s cubic-bezier(0.32,0.72,0,1),
    transform 0.55s cubic-bezier(0.32,0.72,0,1),
    box-shadow 0.4s ease;
}
.di.di-visible {
  transform: translateY(0);
}
.di.di-visible:not(.di-open):hover {
  transform: translateY(2px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.75),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.di:not(.di-open) { cursor: grab; }
.di.di-dragging { cursor: grabbing; transition: none !important; }

/* Pulse ring — mobile only, GPU-only (transform + opacity) */
.di-ring {
  display: none; /* shown only in mobile media query */
  position: fixed;
  bottom: 24px; right: 24px; top: auto; left: auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--sp-green);
  opacity: 0;
  pointer-events: none;
  z-index: 199;
  will-change: transform, opacity;
}
.di-ring.pulsing {
  animation: di-ring-pulse 2s ease-out infinite;
}
@keyframes di-ring-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.38); opacity: 0;   }
  100% { transform: scale(1.38); opacity: 0;   }
}

.di.di-open {
  width: 340px;
  height: 192px;
  border-radius: 28px;
  cursor: default;
  animation: none;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.8),
    0 4px 16px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ---- Compact pill (desktop default) ---- */
.di-compact-view {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 8px 10px 8px 8px;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.18s ease;
  pointer-events: auto;
}
.di.di-open .di-compact-view {
  opacity: 0; pointer-events: none;
}
.di-art-sm {
  width: 36px; height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.di-art-sm img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
}
.di-compact-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 5px;
}
.di-track-sm {
  font-size: 12.5px; font-weight: 500;
  color: #fff; font-family: var(--font-sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Waveform bars */
.di-wave {
  display: flex; align-items: center;
  gap: 2px; height: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.di.playing .di-wave { opacity: 1; }
.di-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--sp-green);
  will-change: transform;
  animation: di-bar 0.9s ease-in-out infinite;
  transform-origin: bottom;
}
.di-wave span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.di-wave span:nth-child(2) { height: 12px; animation-delay: 0.18s; }
.di-wave span:nth-child(3) { height: 6px;  animation-delay: 0.08s; }
.di-wave span:nth-child(4) { height: 10px; animation-delay: 0.26s; }
.di:not(.playing) .di-wave span { animation-play-state: paused; }
@keyframes di-bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.3); }
}

/* Compact play button */
.di-play-sm {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff; color: #000;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: transform 0.12s ease, background 0.2s ease;
}
.di-play-sm:hover { transform: scale(1.1); }
.di.playing .di-play-sm { background: var(--sp-green); color: #fff; }

/* ---- Expanded view ---- */
.di-expanded-view {
  position: absolute; inset: 0;
  display: flex; gap: 12px;
  padding: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease 0.18s;
}
.di.di-open .di-expanded-view {
  opacity: 1; pointer-events: auto;
}

/* Left column */
.di-exp-left {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  flex-shrink: 0;
}
.di-art-lg {
  width: 96px; height: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  transition: box-shadow 0.4s ease;
}
.di.playing .di-art-lg {
  box-shadow: 0 0 0 2px var(--sp-green), 0 4px 20px rgba(29,185,84,0.25);
}
.di-art-lg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
}
.di-like-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer; padding: 4px;
  display: flex;
  transition: color 0.15s ease;
}
.di-like-btn:hover { color: #fff; }
.di-like-btn.liked svg { fill: var(--sp-green); stroke: var(--sp-green); }

/* Right column */
.di-exp-right {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.di-title {
  font-size: 13.5px; font-weight: 600;
  color: #fff; font-family: var(--font-sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.di-artist {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  font-family: var(--font-sans);
}
.di-controls {
  display: flex; align-items: center;
  justify-content: center; gap: 10px;
}
.di-ctrl-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; border-radius: 50%;
  transition: color 0.15s ease;
}
.di-ctrl-btn:hover { color: #fff; }

/* Large play button */
.di-play-lg {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff; color: #000;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}
.di-play-lg:hover { transform: scale(1.07); }
.di.playing .di-play-lg { background: var(--sp-green); color: #fff; }

/* Play/pause icon toggling */
.sp-icon-pause { display: none; }
.di.playing .sp-icon-play  { display: none; }
.di.playing .sp-icon-pause { display: block; }

/* Seek row */
.di-seek-row {
  display: flex; align-items: center;
  gap: 6px;
}
.di-time {
  font-size: 10px;
  color: rgba(255,255,255,0.32);
  font-variant-numeric: tabular-nums;
  min-width: 26px; text-align: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

/* Range inputs */
.di-range {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  outline: none; border: none;
}
.di-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.12s ease;
}
.di-range:hover::-webkit-slider-thumb { opacity: 1; }
.di-range::-moz-range-thumb {
  width: 10px; height: 10px;
  border: none; border-radius: 50%;
  background: #fff;
  opacity: 0; cursor: pointer;
  transition: opacity 0.12s ease;
}
.di-range:hover::-moz-range-thumb { opacity: 1; }
#diSeek { flex: 1; }
.di-vol { flex: 1; }

/* Footer row */
.di-footer-row {
  display: flex; align-items: center;
  gap: 6px;
}
.di-muted-icon { display: none; }
.di-close { margin-left: auto; }

/* Hint badge */
.di-hint {
  position: fixed;
  top: calc(18px + 52px + 8px); bottom: auto;
  right: 24px; left: auto;
  transform: translateY(-6px);
  background: rgba(0,0,0,0.85);
  border: 1px solid var(--sp-green);
  color: #fff;
  font-size: 12.5px; font-weight: 500;
  font-family: var(--font-sans);
  padding: 7px 16px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  z-index: 201;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease 0.8s, transform 0.4s ease 0.8s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 10px rgba(29,185,84,0.15);
}
.di-hint.di-hint-show {
  opacity: 1;
  transform: translateY(0);
}
.di-hint.di-hint-hide {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.di-hint-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sp-green);
  will-change: opacity, transform;
  animation: di-pulse 1.5s ease-in-out infinite;
}
@keyframes di-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.6); }
}

/* Responsive */

/* ≤960px: switch to top-right tiny circle (below navbar) */
@media (max-width: 960px) {
  .di {
    top: 16px; bottom: auto;
    width: 52px; height: 52px; border-radius: 50%;
    cursor: pointer;
    transform: translateY(-120px);
  }
  .di.di-visible              { transform: translateY(0); }
  .di.di-visible:not(.di-open):hover { transform: translateY(2px); }
  .di.di-open      { width: 340px; height: 192px; border-radius: 28px; cursor: default; }
  .di-ring         { display: block; top: 16px; bottom: auto; }
  /* Hint sits LEFT of the circle at the same height */
  .di-hint {
    top: 22px; bottom: auto;
    right: calc(24px + 52px + 10px);
    left: auto;
    transform: translateX(12px);
    transition: opacity 0.4s ease 0.8s, transform 0.4s ease 0.8s;
  }
  .di-hint.di-hint-show { transform: translateX(0); }
  .di-hint.di-hint-hide { transform: translateX(12px); transition: opacity 0.3s ease, transform 0.3s ease; }

  .di-compact-view { padding: 0; justify-content: center; }
  .di-art-sm       { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; border: none; flex-shrink: unset; }
  .di-compact-info { display: none; }

  .di-play-sm {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: rgba(0,0,0,0.38);
    color: #fff; flex-shrink: unset;
    transition: background 0.2s ease;
  }
  .di-play-sm:hover      { transform: none; background: rgba(0,0,0,0.55); }
  .di.playing .di-play-sm { background: rgba(0,0,0,0.25); }
}

@media (max-width: 480px) {
  .di              { right: 16px; }
  .di.di-open      { width: min(310px, calc(100vw - 32px)); height: 200px; }
  .di-art-lg       { width: 88px; height: 88px; }
  .di-ring         { right: 16px; }
  .di-hint         { right: calc(16px + 52px + 10px); }
}
@media (max-width: 390px) {
  .di              { right: 16px; }
  .di.di-open      { width: min(300px, calc(100vw - 32px)); height: 196px; }
  .di-ring         { right: 16px; }
  .di-hint         { right: calc(16px + 52px + 10px); font-size: 11.5px; padding: 6px 12px; }
}
@media (max-width: 360px) {
  .di              { right: 14px; }
  .di.di-open      { width: min(280px, calc(100vw - 28px)); height: 190px; }
  .di-ring         { right: 14px; }
  .di-title        { font-size: 12.5px; }
  .di-hint         { right: calc(14px + 52px + 10px); font-size: 11px; }
}
