/* ============================================================
   Milan Kalita — Portfolio
   Monochrome editorial. Oversized grotesque. One accent.
   ============================================================ */

:root {
  /* palette */
  --black: #000000;
  --near-black: #0a0a0a;
  --ink: #111111;
  --muted: #6a6a6a;
  --muted-dark: #8c8c8c;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(0, 0, 0, 0.12);
  --white: #ffffff;
  --paper: #fafafa;

  /* accent (overridden by tweaks) */
  --accent: #2b53ff;

  /* type */
  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-dur: 1s;

  /* layout */
  --gutter: clamp(20px, 4.4vw, 80px);
  --maxw: 1680px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* honor reduced-motion / motion-off tweak */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- shared layout ---------- */
.section { position: relative; padding: clamp(90px, 12vh, 180px) var(--gutter); }
.section--dark { background: var(--black); color: var(--white); }
.section--light { background: var(--white); color: var(--ink); }
.inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.eyebrow {
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(44px, 8vw, 132px);
  text-wrap: balance;
}

/* ============================================================
   NAV (fixed, blends over light + dark via difference)
   ============================================================ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}
.topnav.is-hidden { transform: translateY(-130%); }
.topnav { transition: transform 0.5s var(--ease); }
.topnav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 17px;
  pointer-events: auto;
}
.topnav__links { display: flex; gap: clamp(14px, 2vw, 34px); pointer-events: auto; }
.topnav__links a {
  font-size: 14px; font-weight: 500;
  position: relative; padding: 4px 0;
  opacity: 0.85; transition: opacity 0.3s var(--ease);
}
.topnav__links a:hover { opacity: 1; }
.topnav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.topnav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .topnav__links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  position: relative;
}

.hero__top { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; }

.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.82;
  font-size: clamp(72px, 18.4vw, 320px);
  margin-top: 14vh;
  margin-bottom: 0.14em;
  cursor: default;
  color: #fff;
  /* cursor position in viewport coords (set by JS); off-screen = all white */
  --gx: -9999px;
  --gy: -9999px;
}
html[data-motion="off"] .hero__name { transition: none; }
.hero__name .word { display: block; overflow: hidden; }
.hero__name .word > span {
  display: block;
  transform: translateY(102%);
  animation: rise 1.1s var(--ease) forwards;
  /* blue spotlight that tracks the cursor; white elsewhere.
     background-attachment:fixed anchors the gradient to the viewport,
     so one coordinate lights every letter consistently. */
  background-image: radial-gradient(circle 30vw at var(--gx) var(--gy),
    var(--accent) 0%, #4f6dff 28%, #8ea2ff 48%, #cdd6ff 66%, #ffffff 82%);
  background-attachment: fixed;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__name .word:nth-child(2) > span { animation-delay: 0.09s; }
@keyframes rise { to { transform: translateY(0); } }

/* vertical pill nav, pinned top-right */
.hero__nav {
  position: absolute;
  top: clamp(74px, 9vh, 104px);
  right: var(--gutter);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.5s forwards;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1px solid var(--line-dark);
  font-size: 15px; font-weight: 500;
  background: rgba(255,255,255,0.02);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero__nav .pill { min-width: 132px; justify-content: center; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transition: transform 0.4s var(--ease); }
@media (max-width: 600px) {
  .hero__nav { top: 66px; gap: 8px; }
  .hero__nav .pill { min-width: 104px; padding: 10px 18px; font-size: 14px; }
}
.pill:hover { background: var(--white); color: var(--black); border-color: var(--white); transform: translateY(-2px); }
.pill:hover .dot { transform: scale(1.6); }

.hero__intro {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  padding-bottom: clamp(40px, 9vh, 110px);
}
.hero__statement {
  max-width: 30ch;
  font-size: clamp(18px, 1.7vw, 27px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #e8e8e8;
  text-align: left;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.65s forwards;
}
.hero__statement .lead { color: #fff; font-weight: 500; }
.hero__scroll {
  position: absolute;
  left: var(--gutter); bottom: clamp(40px, 9vh, 110px);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-dark);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; animation: fade-up 0.9s var(--ease) 0.8s forwards;
}
.hero__scroll .bar { position: relative; width: 1px; height: 38px; background: var(--line-dark); overflow: hidden; }
.hero__scroll .bar::after {
  content:""; position:absolute; inset:0; background: #fff;
  animation: scrolltick 2.2s var(--ease) infinite;
}
@keyframes scrolltick { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(100%)} }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .hero__intro { justify-items: start; }
  .hero__scroll { display: none; }
}

/* ============================================================
   WORK — project grid
   ============================================================ */
.work__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.work__count { font-size: clamp(13px, 1vw, 15px); color: var(--muted-dark); font-weight: 500; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3vw, 56px) clamp(24px, 2.4vw, 44px);
}
.project { position: relative; cursor: pointer; }
.project__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 16px;
}
.project__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.5vw, 23px); letter-spacing: -0.01em; }
.project__tags { display: flex; gap: 8px; }
.tag {
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  padding: 5px 11px; border: 1px solid var(--line-dark); border-radius: 5px;
  color: #d8d8d8;
}
.project__frame {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 4px;
  background: #141414;
}
.project__frame image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- bright, obvious drop/browse affordance on dark frames --- */
.project__frame image-slot,
.quote__avatar image-slot { color: rgba(255, 255, 255, 0.92); }
.project__frame image-slot::part(empty) {
  color: rgba(255, 255, 255, 0.9);
  gap: 12px;
}
.project__frame image-slot::part(ring) {
  border: 1.6px dashed rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  margin: 14px;
  inset: 0;
}
.project__frame image-slot::part(frame) {
  background: #161616;
  transition: background 0.4s var(--ease);
}
.project:hover .project__frame image-slot::part(frame) { background: #1c1c1c; }
.project:hover .project__frame image-slot::part(ring) { border-color: rgba(255, 255, 255, 0.5); }

.project__overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.project__view {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px;
  background: var(--white); color: var(--black);
  font-size: 14px; font-weight: 600;
  transform: translateY(14px) scale(0.96); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  pointer-events: none;
}
.project:hover .project__view { pointer-events: auto; cursor: pointer; }
.project__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: rgba(0,0,0,0); transition: background 0.5s var(--ease);
  pointer-events: none; /* never intercept clicks/drops meant for the image-slot */
}
.project:hover .project__frame::after { background: rgba(0,0,0,0.28); }
.project:hover .project__view { transform: translateY(0) scale(1); opacity: 1; }
.project:hover .project__title { color: var(--accent); }
.project__title { transition: color 0.4s var(--ease); }

/* slight scale on the inner image */
.project__frame image-slot { transition: transform 0.8s var(--ease); transform-origin: center; }
.project:hover .project__frame image-slot { transform: scale(1.04); }

@media (max-width: 820px) {
  .work__grid { grid-template-columns: 1fr; }
  .project__view { opacity: 1; transform: none; } /* touch: always show */
}

/* ============================================================
   ABOUT — split screen
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.about__lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.3vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.about__lead em { font-style: normal; color: var(--muted); }
.about__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
}
.about__portrait image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.about__body { margin-top: 40px; display: grid; gap: 26px; max-width: 52ch; }
.about__body p { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: #2b2b2b; }
.about__cols {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
}
.about__col h4 {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; font-weight: 600;
}
.about__col ul { list-style: none; display: grid; gap: 10px; }
.about__col li { font-size: clamp(15px, 1.1vw, 17px); display: flex; gap: 12px; align-items: baseline; }
.about__col li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-3px); }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

/* ============================================================
   EXPERIENCE — timeline
   ============================================================ */
.timeline { border-top: 1px solid var(--line-light); }
.tl-row {
  display: grid;
  grid-template-columns: 0.5fr 1.4fr 0.9fr 0.5fr;
  gap: 30px;
  align-items: start;
  padding: clamp(28px, 3.4vw, 50px) 0;
  border-bottom: 1px solid var(--line-light);
  position: relative;
}
.tl-row__year { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.01em; }
.tl-row__role { font-size: clamp(19px, 1.7vw, 27px); font-weight: 600; letter-spacing: -0.015em; }
.tl-row__org { font-size: 15px; color: var(--muted); margin-top: 6px; }
.tl-row__desc { font-size: 15px; line-height: 1.55; color: #444; }
.tl-row__kind {
  justify-self: end; align-self: start;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-light); padding: 5px 10px; border-radius: 5px; white-space: nowrap;
}
.tl-row::before {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 0.8s var(--ease);
}
.tl-row.in::before { width: 100%; }
@media (max-width: 900px) {
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-row__kind { justify-self: start; margin-top: 8px; }
}

/* ============================================================
   SKILLS — grid
   ============================================================ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.skill {
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: clamp(26px, 2.6vw, 42px);
  min-height: clamp(180px, 17vw, 260px);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.skill__num { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; font-weight: 600; }
.skill__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -0.02em; line-height: 1.02; }
.skill__desc { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; transition: color 0.45s var(--ease); }
.skill:hover { background: var(--ink); color: #fff; }
.skill:hover .skill__num, .skill:hover .skill__desc { color: rgba(255,255,255,0.7); }

/* ============================================================
   PROCESS — How I work
   ============================================================ */
.process__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.4vw, 44px);
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  position: relative;
}
.step__index {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(40px, 5vw, 78px);
  line-height: 1; color: rgba(255,255,255,0.16);
  transition: color 0.5s var(--ease);
}
.step:hover .step__index { color: var(--accent); }
.step__name { font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; letter-spacing: -0.01em; margin: 18px 0 12px; }
.step__desc { font-size: 15px; line-height: 1.55; color: var(--muted-dark); max-width: 34ch; }
.step__progress { position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--accent); transition: width 0.9s var(--ease); }
.step.in .step__progress { width: 100%; }
@media (max-width: 900px) { .process__grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(30px, 4vw, 70px); }
.quote { display: flex; flex-direction: column; gap: 30px; }
.quote__mark { font-family: var(--font-display); font-size: 64px; line-height: 0.5; color: var(--accent); font-weight: 800; height: 28px; }
.quote__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2vw, 32px); line-height: 1.28; letter-spacing: -0.02em; text-wrap: balance; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #1c1c1c; flex: none; }
.quote__avatar image-slot { width: 100%; height: 100%; }
.quote__name { font-weight: 600; font-size: 16px; }
.quote__role { font-size: 13px; color: var(--muted-dark); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT + FOOTER
   ============================================================ */
.contact__big {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.04em; line-height: 0.86;
  font-size: clamp(46px, 11vw, 200px);
}
.contact__grid {
  margin-top: clamp(50px, 7vw, 100px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__links { display: grid; gap: 2px; }
.clink {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-top: 1px solid var(--line-dark);
  font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.01em;
  transition: padding 0.4s var(--ease), color 0.4s var(--ease);
}
.clink:last-child { border-bottom: 1px solid var(--line-dark); }
.clink .arrow { transition: transform 0.4s var(--ease); color: var(--muted-dark); }
.clink:hover { padding-left: 18px; color: var(--accent); }
.clink:hover .arrow { transform: translate(6px,-6px); color: var(--accent); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); }
.field input, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line-dark);
  color: #fff; font-family: inherit; font-size: 17px; padding: 12px 2px;
  transition: border-color 0.4s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #555; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.field textarea { resize: vertical; min-height: 90px; }
.field.err input, .field.err textarea { border-color: #ff5a5a; }
.form__submit {
  justify-self: start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--black);
  padding: 16px 30px; border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.form__submit:hover { transform: translateY(-2px); }
.form__note { font-size: 13px; color: var(--accent); min-height: 18px; }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } }

.footer {
  background: var(--black); color: #fff;
  padding: clamp(40px, 5vw, 70px) var(--gutter);
  border-top: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 60px); letter-spacing: -0.03em; }
.footer__meta { font-size: 13px; color: var(--muted-dark); text-align: right; display: grid; gap: 4px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }

html[data-motion="off"] .reveal,
html[data-motion="off"] .hero__name .word > span,
html[data-motion="off"] .hero__nav,
html[data-motion="off"] .hero__statement,
html[data-motion="off"] .hero__scroll { opacity: 1 !important; transform: none !important; }

/* custom cursor dot (cursor-aware, subtle) */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); pointer-events: none;
  transform: translate(-50%, -50%); mix-blend-mode: difference;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
  opacity: 0;
}
@media (hover: none) { .cursor-dot { display: none; } }

/* ---------- Fluid Glass cursor ---------- */
.fluid-glass-defs { position: absolute; pointer-events: none; }
.fluid-glass {
  position: fixed; top: 0; left: 0; z-index: 150;
  width: 200px; height: 200px; border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
  will-change: transform, opacity;
  -webkit-backdrop-filter: url(#fluid-glass-filter) brightness(1.12) saturate(1.25);
  backdrop-filter: url(#fluid-glass-filter) brightness(1.12) saturate(1.25);
  /* glass body: rim light + inner depth (kept light so content shows through) */
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.28),
    inset 8px 10px 30px rgba(255, 255, 255, 0.14),
    inset -10px -12px 32px rgba(120, 150, 255, 0.16),
    0 16px 44px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.26);
}
.fluid-glass.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* chromatic-aberration rim — red/cyan split on the glass edge */
.fluid-glass__edge {
  position: absolute; inset: -1px; border-radius: 50%; pointer-events: none;
  box-shadow:
    inset 2px 0 6px rgba(255, 60, 90, 0.55),
    inset -2px 0 6px rgba(40, 220, 255, 0.55),
    inset 0 2px 7px rgba(150, 90, 255, 0.40);
  mix-blend-mode: screen; opacity: 0.8;
}

/* specular highlights — soft warm + white blobs like the reference */
.fluid-glass__spec { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.fluid-glass__spec--a {
  width: 46px; height: 30px; top: 24%; left: 26%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%);
  transform: rotate(-18deg);
}
.fluid-glass__spec--b {
  width: 30px; height: 22px; bottom: 26%; right: 28%;
  background: radial-gradient(circle, rgba(255,150,90,0.85), rgba(255,150,90,0) 70%);
}
.fluid-glass__spec--c {
  width: 18px; height: 18px; top: 30%; right: 30%;
  background: radial-gradient(circle, rgba(255,120,70,0.8), rgba(255,120,70,0) 70%);
}
@media (hover: none) { .fluid-glass { display: none; } }
html[data-motion="off"] .fluid-glass { transition: opacity 0.2s linear; }

/* ---------- double-click slot menu ---------- */
.slot-menu {
  position: fixed;
  z-index: 300;
  min-width: 210px;
  padding: 6px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
  font-family: var(--font-body);
}
.slot-menu.is-open { display: flex; opacity: 1; transform: none; }
.slot-menu button {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: #f0f0f0; text-align: left;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.slot-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.slot-menu button .i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 600; line-height: 1;
}
.slot-menu button.danger { color: #ff8a7a; }
.slot-menu button.danger:hover { background: rgba(255, 90, 60, 0.12); }
