:root {
  /* Brand palette */
  --color-gold:   #FADD9B;
  --color-cream:  #FAF8F1;
  --color-blush:  #EFCACA;
  --color-steel:  #88A3A9;
  --color-carbon: #2F292A;
  --color-signal: #CD422D;
  --color-green: #B4D3B2;
  --color-orange: #F5C89A;

  /* App-wide tokens */
  --bg:           var(--color-cream);   /* global background */
  --ink:          var(--color-carbon);  /* main text color */
  --accent:       var(--color-gold);    /* chips / buttons / dots */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  scroll-behavior: smooth;
}


/* Floating site header bubble (top center) */
.site-header-bubble {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: color-mix(in srgb, var(--color-cream) 0%, #ffffff 100%);
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10), 0 1.5px 8px 0 rgba(0,0,0,0.07);
  border-radius: 999px;
  padding: 8px 20px;
  z-index: 2000;
  font-weight: 500;
  color: var(--color-carbon);
  border: 1.5px solid #ececec;
  min-width: 0;
  max-width: 94vw;
  /* keep single-line layout but let the name truncate when space is tight */
  white-space: nowrap;
  transition: box-shadow 0.2s;
}
.site-header-bubble:hover {
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.13), 0 2px 12px 0 rgba(0,0,0,0.09);
}
.site-header-name {
  display: inline-block;
  max-width: calc(60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(12px, 2.2vw, 16px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-carbon);
}
.site-header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--color-green) 36%, #fff 64%);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 500;
  color: var(--color-carbon);
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.status-dot {
  width: clamp(7px, 1.2vw, 10px);
  height: clamp(7px, 1.2vw, 10px);
  border-radius: 50%;
  background: var(--color-green);
  margin-right: 2px;
  box-shadow: 0 0 0 2px #eaeaea;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 2px #eaeaea, 0 0 0 rgba(180, 211, 178, 0);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
    box-shadow: 0 0 0 2px #eaeaea, 0 0 12px 2px rgba(180, 211, 178, 0.9);
  }
}

@media (max-width: 600px) {
  .site-header-bubble {
    top: 12px;
    gap: 8px;
    padding: 6px 10px;
    max-width: 92vw;
  }
  .site-header-name {
    font-size: clamp(11px, 3.2vw, 14px);
    max-width: calc(50vw);
  }
  .site-header-status {
    font-size: clamp(9px, 2.4vw, 11px);
    padding: 3px 8px;
  }
  .status-dot {
    width: 8px;
    height: 8px;
  }
}

/* ===== Scroll snap slides ===== */

.slides {
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  scroll-padding: 0;
  overscroll-behavior: contain;
}

.slide {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

/* Allow work slide to have overflow content */
.slide--work {
  min-height: auto;
  scroll-snap-align: start;
}

/* Snap point at the end of work slide */
.slide--work::after {
  content: '';
  display: block;
  height: 1px;
  scroll-snap-align: end;
}

/* Individual slide backgrounds */

.slide--hero {
  background: #536872; /* keep CRT hero dark */
  padding: 0;
}

.slide--intro {
  background: var(--color-cream); /* soft pink */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide--work {
  background: var(--color-cream);
}

.slide--contact {
  background: var(--color-steel);
}

/* ===== CRT hero ===== */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 60% at 50% 45%,
    transparent 0 60%,
    rgba(32, 42, 68, 0.3) 100%
  );
  z-index: 1;
}

.crt-screen {
  position: absolute;
  display: grid;
  align-items: flex-start;
  padding: clamp(10px, 1.2vw, 18px);
  background: rgba(14, 21, 14, 0.75);
  box-shadow:
    inset 0 0 0.8vmin rgba(165, 176, 182, 0.15),
    inset 0 0 2.2vmin rgba(165, 176, 182, 0.25);
  backdrop-filter: blur(1px);
  overflow: auto;
  z-index: 2;
}

.crt-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.typewrap {
  width: 100%;
  max-width: 100%;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.35;
  margin-top: 20px;
  color: #ffce1bcd;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.caret {
  display: inline-block;
  width: 0.6ch;
  translate: 0 0.05em;
  border-right: 2px solid #a5b0b6;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

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

/* ===== Intro slide content ===== */

.intro-wrap {
  max-width: 1100px;
  padding: clamp(20px, 4vw, 40px);
  display: grid;
  gap: clamp(14px, 1.8vw, 28px);
}

.slide--intro h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-signal);
}

.intro-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  opacity: 0.9;
  line-height: 1.5;
  color: var(--ink);
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Colored chip cycle (yellow, pink, green, blue) */
.intro-tags span:nth-child(4n + 1) {
  background: var(--color-gold);
}

.intro-tags span:nth-child(4n + 2) {
  background: var(--color-blush);
}

.intro-tags span:nth-child(4n + 3) {
  background: var(--color-green);
}

.intro-tags span:nth-child(4n + 4) {
  background: var(--color-steel);
}

.intro-tags span:nth-child(4n + 5) {
  background: var(--color-orange);
}


.intro-tags span {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-cream);
  color: #1a1f27;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover / focus grow */
.intro-tags span:hover,
.intro-tags span:focus {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  cursor: pointer;
}

/* ===== Slide 2: Services ===== */

.slide--services {
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-inner {
  max-width: 1320px; /* wider than intro */
  padding: clamp(24px, 5vw, 64px);
  display: grid;
  gap: clamp(18px, 2vw, 32px);
  text-align: left;
}

.services-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.7;
}

.services-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  margin: 0;
  color: var(--color-carbon);
}

.services-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 100%; /* let it breathe horizontally */
  opacity: 0.9;
}

/* grid of services — 3 cards across full width */

.services-grid {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 2 columns on medium screens */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1 column on small screens */
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* service cards – colorful, rounded, studio-y */

.service-item {
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: 20px;
  background:  #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.service-item h3 {
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  color: var(--color-carbon);
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  color: var(--color-carbon);
}

.service-item ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-item ul li {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  color: var(--color-carbon);
  position: relative;
  padding-left: 0;
  margin-bottom: 0.5em;
}

.service-item ul li:last-child {
  margin-bottom: 0;
}

/* ===== Skills strip under Services ===== */

.skills-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  max-width: 100%;
  overflow: hidden;      /* prevent the row itself from pushing the page */
}

.skills-window {
  flex: 1 1 auto;
  min-width: 0;          /* <-- critical: let the window shrink */
  overflow: hidden;      /* clip anything past the right edge */
}

/* keep the track as-is */
.skills-track {
  display: flex;
  align-items: center;
  will-change: transform;
}


.skills-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
}


/* individual chips */
.skill-chip {
  font-size: 0.75rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-carbon);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0.95;
  margin-right: 10px;        /* used in JS for step size */
}

/* last chip doesn’t need extra gap */
.skill-chip:last-child {
  margin-right: 0;
}

/* multicolor chips - assigned by data-color attribute */
.skill-chip[data-color="gold"] { background: var(--color-gold); }
.skill-chip[data-color="blush"] { background: var(--color-blush); }
.skill-chip[data-color="green"] { background: var(--color-green); }
.skill-chip[data-color="steel"] { background: var(--color-steel); }
.skill-chip[data-color="orange"] { background: var(--color-orange); }
.skill-chip[data-color="cream"] { background: var(--color-cream); }

/* reduced motion = no auto-scroll */
@media (prefers-reduced-motion: reduce) {
  .skills-track {
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Slide 3: Selected Work ===== */

.slide--work {
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-inner {
  max-width: 1320px;
  padding: clamp(24px, 5vw, 64px);
  display: grid;
  gap: clamp(18px, 2vw, 32px);
  text-align: left;
}

.work-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.7;
}

.work-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  margin: 0;
  color: var(--color-carbon);
}

.work-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  opacity: 0.9;
}

/* project grid: 3 → 2 → 1 */

.work-grid {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 2 columns on medium screens */
@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1 column on small screens */
@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* project cards – thumbnail + body */

.work-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--color-cream);
  border: 1px solid rgba(0, 0, 0, 0.04);
  /* slightly stronger base shadow for more perceived depth */
  box-shadow: 0 14px 40px rgba(18, 20, 22, 0.1);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* subtle hover */
.work-card:hover {
  transform: translateY(-6px);
  /* stronger hover shadow for a more noticeable lift */
  box-shadow: 0 22px 60px rgba(18, 20, 22, 0.12);
}

/* thumbnail at top */

.work-thumb {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #d6d1c7;
}

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

/* placeholder thumb for in-progress */

.work-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--color-orange) 50%, #ffffff 50%);
  color: var(--color-carbon);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.work-thumb--placeholder span {
  opacity: 0.8;
}

/* card body */

.work-card-body {
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  gap: 4px;
}

/* color cycle for card base via slight tint on body background */

.work-card:nth-child(6n + 1) .work-card-body {
  background: color-mix(in srgb, var(--color-gold) 28%, #ffffff 72%);
}

.work-card:nth-child(6n + 2) .work-card-body {
  background: color-mix(in srgb, var(--color-blush) 28%, #ffffff 72%);
}

.work-card:nth-child(6n + 3) .work-card-body {
  background: color-mix(in srgb, var(--color-green) 28%, #ffffff 72%);
}

.work-card:nth-child(6n + 4) .work-card-body {
  background: color-mix(in srgb, var(--color-steel) 24%, #ffffff 76%);
}

/* let the in-progress ones stay lighter but consistent */
.work-card:nth-child(6n + 5) .work-card-body,
.work-card:nth-child(6n + 6) .work-card-body {
  background: color-mix(in srgb, var(--color-cream) 80%, #ffffff 20%);
}

.work-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-carbon);
}

.work-tag--soft {
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

.work-card-title {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.work-card-role {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.work-card-description {
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* live site link */

.work-link {
  margin-top: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-carbon);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.work-link::after {
  content: "↗";
  font-size: 0.8rem;
}

.work-link:hover {
  text-decoration: underline;
}

/* ===== Slide 4: About ===== */

.slide--about {
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-inner {
  max-width: 1320px;
  padding: clamp(24px, 5vw, 64px);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  color: var(--color-carbon);
}

/* stack on smaller screens */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Center services and work content on small screens (match about page) */
@media (max-width: 900px) {
  .services-inner,
  .work-inner {
    /* stack columns and center content like the about page */
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .services-title,
  .work-title {
    margin-left: 0;
    margin-right: 0;
  }

  .services-sub,
  .work-sub {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

.about-col {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
}

.about-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.8;
}

.about-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.2;
  margin: 0;
}

/* tagline with subtle style */
.about-tagline {
  font-size: 0.92rem;
  opacity: 0.85;
  font-weight: 500;
  color: #C88B48;
}
.about-tagline span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.75;
}

.about-body {
  line-height: 1.7;
}

/* headshot styling */
.about-headshot-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-headshot {
  width: clamp(220px, 35vw, 380px);
  height: clamp(220px, 35vw, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 12px 38px rgba(0,0,0,0.12);
}



/* ===== Slide 5: Contact ===== */

.slide--contact {
  /* background: radial-gradient(circle at top left,
              color-mix(in srgb, var(--color-cream) 26%, #ffffff 74%),
              color-mix(in srgb, var(--color-steel) 45%, #fff 55%)); */
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-carbon);
}

.contact-inner {
  max-width: 1320px;
  width: 100%;
  padding: clamp(24px, 5vw, 64px);
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

/* stack on small screens */
@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* left column */

.contact-col {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
}

.contact-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.contact-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.2;
  margin: 0;
}

.contact-body {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 34rem;
  opacity: 0.96;
}

.contact-meta {
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.75;
  margin: 12px 0 0;
}

.contact-link {
  font-size: 0.94rem;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  color: #D49A5C;
  transition: transform 0.2s ease;
  display: inline-block;
  transform-origin: left center;
}

.contact-link:hover {
  transform: scale(1.05);
}

.contact-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* right column: form */

.contact-col-form {
  align-self: stretch;
}

.contact-form {
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: 22px;
  background: color-mix(in srgb, var(--color-steel) 42%, #ffffff 58%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 14px;
}

.contact-form-title {
  margin: 0 0 2px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* fields */

.field {
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
}

.field span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  opacity: 0.8;
}

.field input,
.field select,
.field textarea {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  font: inherit;
  background: #ffffff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232F292A' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
  color: rgba(47, 42, 42, 0.5);
}

.field select:has(option:checked:not([value=""])) {
  color: var(--color-carbon);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: color-mix(in srgb, var(--color-steel) 60%, #000 40%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-steel) 60%, #000 40%);
}

/* submit button */

.contact-submit {
  margin-top: 6px;
  border-radius: 999px;
  border: none;
  padding: 10px 22px;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--color-carbon);
  color: var(--color-cream);
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  background: #181417;
}

.contact-small {
  font-size: 0.78rem;
  opacity: 0.75;
}


/* ===== Sidebar bubble navigation ===== */

.dots {
  position: fixed;
  right: clamp(24px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: clamp(10px, 1vw, 14px);
  z-index: 100;
}

@media (max-width: 768px) {
  .dots {
    display: none;
  }
}

.dot {
  width: clamp(10px, 1vw, 14px);
  height: clamp(10px, 1vw, 14px);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-carbon) 40%, transparent);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot:hover {
  background: var(--color-steel);
  transform: scale(1.2);
}

.dot[aria-current="true"] {
  background: var(--color-carbon);
  box-shadow: 0 0 0 6px rgba(56, 59, 61, 0.25);
}

/* Key hint */

.keyhint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  font-size: 0.9rem;
  color: var(--color-cream);
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
}

/* Sparkle cursor effect */

.sparkle {
  position: fixed;
  pointer-events: none;
  user-select: none;
  color: goldenrod;
  text-shadow:
    0 0 4px rgba(255, 215, 120, 0.7),
    0 0 8px rgba(255, 230, 150, 0.5);
  opacity: 0.9;
  animation: sparkleFade 0.7s ease-out forwards;
  mix-blend-mode: screen;
  z-index: 9999;
}

@keyframes sparkleFade {
  0% {
    transform: scale(0.6) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(15deg);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.8) rotate(30deg);
    opacity: 0;
  }
}

.intro-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9999;
  animation: introFadeIn 0.6s ease;
  /* REMOVE flexbox */
  display: block;
}


@keyframes introFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade-out when done */
.intro-overlay.fade-out {
  animation: introFadeOut 1.2s ease-out forwards;
}

@keyframes introFadeOut {
  0% { 
    opacity: 1; 
    transform: scale(1); 
  }
  100% { 
    opacity: 0; 
    transform: scale(1.01); 
  }
}

/* Hide slides until intro is done */
.hidden {
  opacity: 0;
  pointer-events: none;
}

.slides.reveal {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1.4s ease-out;
}
