/* =========================================================
   Ash Treanor — Portfolio
   Palette (focus on greys, blush/rose as accents)
   ========================================================= */
:root {
  --blush:  #FFDBDA;   /* Soft Blush  */
  --rose:   #DB7F8E;   /* Old Rose    */
  --slate:  #D5C5C8;   /* Pale Slate  */
  --steel:  #9DA3A4;   /* Cool Steel  */
  --taupe:  #604D53;   /* Taupe Grey  */

  /* Greys carry the design; blush/rose accent it */
  --bg:        #eef0f0;             /* airy cool-steel wash        */
  --bg-2:      #e2e5e5;             /* alternating section         */
  --surface:   #f6f4f4;            /* cards                        */
  --ink:       #3a2f33;            /* deep taupe text              */
  --ink-soft:  #6c6468;            /* muted text                   */
  --line:      rgba(96, 77, 83, 0.16);

  --radius: 18px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hide the native cursor only on fine pointers (desktop) */
@media (pointer: fine) {
  body, a, button, [data-cursor] { cursor: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =========================================================
   Custom dynamic cursor
   ========================================================= */
.cursor-ring, .cursor-star {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  width: 42px; height: 42px;
  /* Default: over light backgrounds -> rose */
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  transition: width .25s var(--ease), height .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease),
              opacity .25s var(--ease);
  mix-blend-mode: multiply;
}
/* Over the dark (taupe) sections -> soft blush (and drop the multiply blend
   so the light ring stays visible on the dark background) */
body.on-dark .cursor-ring {
  border-color: var(--blush);
  mix-blend-mode: normal;
}
.cursor-star svg { display: block; }
.cursor-star svg path {
  /* Default: over light backgrounds -> rose */
  fill: var(--rose);
  filter: drop-shadow(0 0 6px rgba(219, 127, 142, 0.55));
  transition: transform .25s var(--ease), fill .25s var(--ease), filter .25s var(--ease);
}
/* Over the dark (taupe) sections -> soft blush so it stays visible */
body.on-dark .cursor-star svg path {
  fill: var(--blush);
  filter: drop-shadow(0 0 6px rgba(255, 219, 218, 0.9));
}
/* grow ring + spin star over interactive elements */
body.is-hovering .cursor-ring {
  width: 66px; height: 66px;
  background: rgba(219, 127, 142, 0.14);
  border-color: var(--rose);
}
/* keep the swell blush over dark sections */
body.on-dark.is-hovering .cursor-ring {
  background: rgba(255, 219, 218, 0.16);
  border-color: var(--blush);
}
body.is-hovering .cursor-star svg { transform: rotate(45deg) scale(1.25); }

@media (pointer: coarse) {
  .cursor-ring, .cursor-star { display: none; }
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  background: rgba(238, 240, 240, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.scrolled { border-color: var(--line); }
.nav__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.nav__dot { color: var(--rose); }
.nav__links { display: flex; gap: clamp(18px, 3vw, 38px); }
.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--rose);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__resume {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1.5px solid var(--taupe);
  border-radius: 100px;
  color: var(--taupe);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__resume:hover { background: var(--taupe); color: var(--blush); }
@media (max-width: 680px) {
  .nav__links { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 56px) 80px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(213, 197, 200, 0.7), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(157, 163, 164, 0.35), transparent 55%),
    var(--bg);
}
.hero__glow {
  position: absolute;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  right: -6vw; top: 8vh;
  background: radial-gradient(circle, rgba(255, 219, 218, 0.85), rgba(219, 127, 142, 0.25) 45%, transparent 70%);
  filter: blur(10px);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
  z-index: 0;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.05); }
}
.hero__inner { position: relative; z-index: 1; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero__eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(4rem, 15vw, 12rem);
  color: var(--ink);
}
.hero__title span { display: block; }
.hero__title--accent {
  font-style: italic;
  color: var(--taupe);
}
.hero__sub {
  margin-top: 30px;
  max-width: 540px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
}
.hero__cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--steel);
  border-radius: 100px;
  z-index: 1;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--rose);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 100px;
  transition: transform .3s var(--ease), background .3s var(--ease),
              color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--solid {
  background: var(--taupe);
  color: var(--blush);
  box-shadow: 0 10px 26px -12px rgba(96, 77, 83, 0.7);
}
.btn--solid:hover { transform: translateY(-3px); background: var(--rose); color: #fff; }
.btn--ghost { border: 1.5px solid var(--taupe); color: var(--taupe); }
.btn--ghost:hover { transform: translateY(-3px); background: var(--taupe); color: var(--blush); }

/* =========================================================
   Sections
   ========================================================= */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 56px);
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 54px;
}
.section__index {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--rose);
  letter-spacing: 0.1em;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.about__body p { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--ink-soft); }
.about__body p + p { margin-top: 22px; }
.about__body strong { color: var(--ink); font-weight: 600; }
.about__facts {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fact { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.fact:last-child { border-bottom: none; }
.fact__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--steel); }
.fact__value { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-top: 2px; }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- Experience / Timeline ---------- */
.experience { background: var(--bg-2); max-width: none; }
.experience > .section__head, .experience > .timeline {
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
}
.timeline { list-style: none; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--rose), var(--steel));
  opacity: 0.5;
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 0 0 46px 34px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(219, 127, 142, 0.2);
}
.timeline__date { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; color: var(--steel); text-transform: uppercase; }
.timeline__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.timeline__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(96, 77, 83, 0.55); }
.timeline__card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.timeline__org { display: block; font-size: 0.9rem; color: var(--rose); font-weight: 500; margin: 4px 0 14px; }
.timeline__card ul { list-style: none; display: grid; gap: 8px; }
.timeline__card li { position: relative; padding-left: 20px; font-size: 0.98rem; color: var(--ink-soft); }
.timeline__card li::before { content: "→"; position: absolute; left: 0; color: var(--steel); }
@media (max-width: 680px) {
  .timeline__item { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Projects ---------- */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  margin-bottom: clamp(70px, 12vh, 130px);
}
.project:last-child { margin-bottom: 0; }
.project--reverse .project__device { order: 2; }
.project__tag { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--rose); font-weight: 600; }
.project__name { font-family: var(--font-head); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); margin: 10px 0 18px; }
.project__desc { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }
.project__stack { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.project__stack li {
  font-size: 0.78rem; letter-spacing: 0.04em; font-weight: 500;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--taupe);
  background: rgba(246, 244, 244, 0.6);
}
@media (max-width: 820px) {
  .project { grid-template-columns: 1fr; }
  .project--reverse .project__device { order: 0; }
}

/* Device frames */
.project__device { display: flex; justify-content: center; perspective: 1200px; }
.project__device .phone, .project__device .laptop { transition: transform .5s var(--ease); }
.project__device:hover .phone { transform: rotateY(-8deg) rotateX(3deg) translateY(-6px); }
.project__device:hover .laptop { transform: translateY(-6px); }

/* iPhone */
.phone {
  position: relative;
  width: 260px; height: 540px;
  background: var(--taupe);
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 40px 70px -30px rgba(96, 77, 83, 0.7),
    inset 0 0 0 2px rgba(255, 219, 218, 0.25);
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px;
  background: var(--taupe);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  background: var(--blush);
  border-radius: 32px;
  overflow: hidden;
}
/* Laptop */
.laptop { width: 480px; max-width: 100%; }
.laptop__screen {
  background: var(--taupe);
  border-radius: 16px 16px 0 0;
  padding: 12px 12px 0;
  height: 300px;
  box-shadow: 0 34px 60px -34px rgba(96, 77, 83, 0.7);
}
.laptop__screen .mock { height: 100%; border-radius: 8px 8px 0 0; }
.laptop__base {
  height: 18px;
  background: linear-gradient(var(--steel), var(--taupe));
  border-radius: 0 0 14px 14px;
  position: relative;
  box-shadow: 0 14px 22px -14px rgba(96, 77, 83, 0.8);
}
.laptop__base span {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 7px; background: var(--taupe); border-radius: 0 0 8px 8px;
}

/* Mock screen content */
.mock { width: 100%; height: 100%; background: var(--blush); padding: 16px; display: flex; flex-direction: column; }
.mock--pet .mock__bar { display: flex; gap: 6px; margin: 12px 0 14px; }
.mock__bar span { height: 6px; border-radius: 4px; background: rgba(96,77,83,.25); }
.mock__bar span:first-child { width: 40%; } .mock__bar span:last-child { width: 22%; }
.mock__hero { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; line-height: 1.05; color: var(--taupe); margin-bottom: 16px; }
.mock__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.mock__card { background: rgba(219,127,142,.55); border-radius: 12px; box-shadow: inset 0 -18px 0 rgba(96,77,83,.18); }
.mock__tabbar { display: flex; justify-content: space-around; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(96,77,83,.18); }
.mock__tabbar i { width: 18px; height: 18px; border-radius: 6px; background: rgba(96,77,83,.35); }
.mock__tabbar i:first-child { background: var(--rose); }

.mock--apt { background: var(--slate); }
.mock__nav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mock__nav b { width: 60px; height: 12px; background: var(--taupe); border-radius: 4px; }
.mock__nav span { width: 34px; height: 8px; background: rgba(96,77,83,.4); border-radius: 4px; margin-left: auto; }
.mock__nav span:nth-child(2){ margin-left: auto; }
.mock__banner { font-family: var(--font-head); font-weight: 600; font-size: 1.7rem; color: var(--taupe); background: var(--blush); border-radius: 10px; padding: 22px 16px; text-align: center; margin-bottom: 12px; }
.mock__listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.mock__listing { background: rgba(219,127,142,.5); border-radius: 10px; box-shadow: inset 0 -16px 0 rgba(96,77,83,.16); }

/* Real screenshots / video inside the device frames */
.project__device { text-decoration: none; }
.device__shot { display: block; }

/* Phone: full-length screenshot that scrolls to reveal the page on hover */
.phone__screen .device__shot { width: 100%; height: auto; }
.phone__screen .device__shot--scroll { transition: transform 3.6s var(--ease); will-change: transform; }
.project__device--phone:hover .phone__screen .device__shot--scroll { transform: translateY(calc(516px - 100%)); }

/* Laptop: fill the screen, anchored to the top of the page */
.laptop__screen .device__shot {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
}

/* "View project" link under each project */
.project__view {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  color: var(--taupe);
  transition: color .3s var(--ease);
}
.project__view span { transition: transform .3s var(--ease); }
.project__view:hover { color: var(--rose); }
.project__view:hover span { transform: translateX(6px); }
.project__name a { transition: color .3s var(--ease); }
.project__name a:hover { color: var(--rose); }

/* =========================================================
   Project detail (case study) pages
   ========================================================= */
.case {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(110px, 16vh, 150px) clamp(20px, 5vw, 56px) 40px;
}
.case__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 36px;
  transition: color .3s var(--ease);
}
.case__back span { transition: transform .3s var(--ease); }
.case__back:hover { color: var(--rose); }
.case__back:hover span { transform: translateX(-5px); }
.case__title {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.01em;
  color: var(--ink); margin: 12px 0 14px;
}
.case__lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 56ch; margin-bottom: 46px; }
.case__stage { display: flex; justify-content: center; }

/* Phone frame — shows the whole home page */
.case__phone {
  position: relative;
  width: 320px; max-width: 100%;
  background: var(--taupe); border-radius: 46px; padding: 14px;
  box-shadow: 0 44px 90px -36px rgba(96,77,83,.7), inset 0 0 0 2px rgba(255,219,218,.25);
}
.case__phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 26px; background: var(--taupe); border-radius: 0 0 16px 16px; z-index: 2;
}
.case__phone img { width: 100%; border-radius: 34px; display: block; }

/* Laptop frame — shows the whole home page / looping capture */
.case__laptop { width: 900px; max-width: 100%; }
.case__laptop-screen {
  background: var(--taupe); border-radius: 18px 18px 0 0; padding: 16px 16px 0;
  box-shadow: 0 44px 80px -38px rgba(96,77,83,.7);
}
.case__laptop-screen img, .case__laptop-screen video {
  width: 100%; display: block; border-radius: 10px 10px 0 0; background: var(--surface);
}
.case__laptop-base {
  height: 22px; background: linear-gradient(var(--steel), var(--taupe));
  border-radius: 0 0 16px 16px; position: relative;
  box-shadow: 0 16px 26px -16px rgba(96,77,83,.8);
}
.case__laptop-base span {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 9px; background: var(--taupe); border-radius: 0 0 9px 9px;
}

/* Under-construction notice */
.case__uc {
  margin-top: 56px; text-align: center;
  padding: clamp(36px, 6vw, 60px) 24px;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(219,127,142,.05) 0 14px, transparent 14px 28px),
    var(--surface);
}
.case__uc-badge {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem); color: var(--taupe);
}
.case__uc-badge::before { content: "🚧"; font-style: normal; }
.case__uc p { margin-top: 12px; color: var(--ink-soft); font-size: 1.02rem; }

/* ---- Embedded "live site" scroll with interactive hotspots ---- */
.case__subhead { text-align: center; margin: clamp(60px, 10vh, 100px) 0 30px; }
.case__subhead .project__tag { display: block; }
.case__subtitle {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--ink); margin: 8px 0 10px;
}
.case__note { color: var(--ink-soft); font-size: 1rem; max-width: 52ch; margin: 0 auto; }
.case__note .hint-star { width: 15px; height: 15px; vertical-align: -2px; fill: var(--rose); margin: 0 1px; }

.site-embed {
  position: relative;
  max-width: 1040px; margin: 0 auto;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 44px 90px -40px rgba(96,77,83,.65);
  background: var(--surface);
}
.site-embed__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-embed__dots { display: inline-flex; gap: 7px; }
.site-embed__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--slate); }
.site-embed__dots i:nth-child(1) { background: var(--rose); }
.site-embed__dots i:nth-child(2) { background: var(--steel); }
.site-embed__url {
  flex: 1; text-align: center; max-width: 300px; margin: 0 auto;
  font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-soft);
  background: var(--bg); border-radius: 100px; padding: 5px 16px;
}
.site-embed__hint { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--steel); white-space: nowrap; }
.site-embed__hint .hint-star { width: 13px; height: 13px; vertical-align: -2px; fill: var(--rose); }
@media (max-width: 620px) { .site-embed__hint { display: none; } }

.site-embed__frame { position: relative; line-height: 0; }
.site-embed__frame img { width: 100%; display: block; }

/* Diamond hotspot markers (echo the site cursor's four-pointed star) */
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; padding: 0; border: none; background: none;
  display: grid; place-items: center; z-index: 3;
}
.hotspot::before {
  content: ""; position: absolute; inset: -5px;
  border: 1.5px solid var(--rose); border-radius: 50%;
  opacity: 0; animation: hotspotPulse 2.6s var(--ease) infinite;
}
@keyframes hotspotPulse {
  0% { transform: scale(.55); opacity: .7; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { opacity: 0; }
}
.hotspot__dot {
  position: relative; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.55); backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(58,47,51,.28);
}
.hotspot__dot svg { width: 20px; height: 20px; fill: var(--rose); transition: transform .3s var(--ease); }
.hotspot:hover .hotspot__dot svg,
.hotspot:focus-visible .hotspot__dot svg { transform: rotate(45deg) scale(1.25); }
.hotspot:hover, .hotspot:focus-visible { z-index: 6; }

.hotspot__tip {
  position: absolute; left: 50%; bottom: calc(100% + 14px);
  width: max-content; max-width: 240px;
  transform: translate(-50%, 6px);
  background: var(--taupe); color: var(--blush);
  padding: 11px 15px; border-radius: 12px; line-height: 0;
  text-align: left; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow: 0 18px 40px -18px rgba(58,47,51,.75); z-index: 7;
}
.hotspot__tip b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; line-height: 1.2; color: #fff; margin-bottom: 5px; }
.hotspot__tip span { display: block; font-size: 0.82rem; line-height: 1.45; color: var(--slate); }
.hotspot__tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--taupe);
}
.hotspot:hover .hotspot__tip,
.hotspot:focus-within .hotspot__tip { opacity: 1; transform: translate(-50%, 0); }

/* Markers near the top flip their tooltip below the diamond */
.hotspot--below .hotspot__tip { bottom: auto; top: calc(100% + 14px); transform: translate(-50%, -6px); }
.hotspot--below .hotspot__tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--taupe); }
.hotspot--below:hover .hotspot__tip,
.hotspot--below:focus-within .hotspot__tip { transform: translate(-50%, 0); }

/* Edge markers: open the tooltip leftward so it stays inside the frame */
.hotspot--tipleft .hotspot__tip { left: auto; right: -8px; transform: translate(0, 6px); }
.hotspot--tipleft .hotspot__tip::after { left: auto; right: 18px; transform: none; }
.hotspot--tipleft:hover .hotspot__tip,
.hotspot--tipleft:focus-within .hotspot__tip { transform: translate(0, 0); }

@media (prefers-reduced-motion: reduce) { .hotspot::before { animation: none; } }

/* ---------- Skills ---------- */
.skills { background: var(--bg-2); max-width: none; }
.skills > .section__head, .skills > .skills__grid { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.skills__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.skills__group {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.skills__group:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(96,77,83,.55); }
.skills__group h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--taupe); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--blush); }
.skills__group ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.skills__group li { font-size: 0.96rem; color: var(--ink-soft); }
@media (max-width: 860px) { .skills__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .skills__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(255,219,218,.7), transparent 60%),
    var(--taupe);
  max-width: none;
  color: var(--blush);
}
.contact__inner { max-width: 760px; margin: 0 auto; }
.contact .section__index { color: var(--blush); opacity: 0.8; }
.contact__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 0.98; color: #fff; margin: 14px 0 22px; }
.contact__sub { color: var(--slate); font-size: 1.1rem; max-width: 460px; margin: 0 auto 34px; }
.contact__email {
  display: inline-block;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--blush);
  border-bottom: 2px solid rgba(255,219,218,.4);
  padding-bottom: 4px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.contact__email:hover { color: #fff; border-color: #fff; }
.contact__links { margin-top: 34px; display: flex; gap: 26px; justify-content: center; }
.contact__links a {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  color: var(--slate); position: relative;
}
.contact__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--blush); transition: width .3s var(--ease); }
.contact__links a:hover { color: var(--blush); }
.contact__links a:hover::after { width: 100%; }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 56px);
  background: var(--taupe);
  color: var(--steel);
  font-size: 0.8rem; letter-spacing: 0.04em;
  border-top: 1px solid rgba(255,219,218,.12);
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
