/* =====================================================================
   raulsilvero.com — personal portfolio
   Direction: warm editorial. Ink & Vermilion. Fraunces + Space Grotesk.
   ===================================================================== */

:root {
  --paper:      #f4f1ea;
  --paper-2:    #efebe1;
  --ink:        #16140f;
  --ink-soft:   #3a372f;
  --muted:      #8a8478;
  --line:       #d9d3c5;
  --accent:     #f97316;   /* orange */
  --accent-ink: #c2410c;
  --purple:     #7c3aed;
  --purple-soft:#a855f7;

  /* playful colour set (disciplines + the o's) */
  --c-blue:   #2563eb;
  --c-green:  #16a34a;
  --c-violet: #7c3aed;
  --c-orange: #ea580c;
  --c-cyan:   #0891b2;
  --c-amber:  #f59e0b;

  --display: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { -webkit-font-smoothing: antialiased; }

body {
  background:
    radial-gradient(80% 70% at 96% 0%, var(--accent), transparent 60%),
    radial-gradient(78% 72% at 2% 100%, var(--purple), transparent 60%),
    radial-gradient(65% 60% at 100% 100%, color-mix(in oklab, var(--purple) 85%, transparent), transparent 58%),
    radial-gradient(62% 55% at 0% 0%, color-mix(in oklab, var(--accent) 85%, transparent), transparent 58%),
    linear-gradient(150deg, #ff9e3d 0%, #ffc78d 28%, #e3b4f5 66%, #b483ec 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  overflow-x: clip;   /* clip sideways overflow WITHOUT breaking position:sticky */
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--paper); }

/* ---------------------------------------------------------------- HEADER */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem var(--gutter);
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.wordmark .dot { color: var(--accent); }
.nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { position: relative; color: var(--ink-soft); transition: color 0.25s ease; }
.nav a:hover { color: var(--ink); }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ HERO */
.hero-scene { position: relative; }

/* scroll room so the climb-down finishes before Projects; socials live here */
.descent { position: relative; height: 100vh; }
.descent-socials {
  display: flex;             /* NOT sticky: scrolls up & away as you scroll down */
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.75rem, 2.4vh, 1.5rem);   /* rows close together */
  min-height: 100vh;
  padding-right: var(--gutter);
}
.socials-head {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: clamp(0.75rem, 2vh, 1.75rem);
}
.social {
  display: flex;
  flex-direction: row;          /* username (left) + icon (right) */
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
}
.social-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 3rem);   /* nice and big */
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.social:hover .social-name { color: var(--accent); }
.social img {
  display: block;
  width: clamp(44px, 4.6vw, 70px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(20, 18, 15, 0.18));
  transition: transform 0.25s ease;
}
.social:hover img { transform: scale(1.1); }
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: 100svh;
  padding: clamp(2.5rem, 7vh, 6rem) var(--gutter) clamp(2.5rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  column-gap: clamp(1.5rem, 5vw, 4rem);
}
/* the name fills its column; only the paragraph caps its own width */
.hero-name { white-space: nowrap; }
.say-hi {
  --bub: var(--ink);
  align-self: start;
  justify-self: center;
  margin-top: clamp(1rem, 6vh, 4rem);
  position: relative;
  background: var(--bub);
  color: var(--paper);
  border: none;
  border-radius: 16px;
  padding: 0.8rem 1.45rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}
.say-hi::after {                 /* tail, pointing right toward the avatar */
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  transform: translateY(-50%);
  border: 9px solid transparent;
  border-left-color: var(--bub);
  border-right: 0;
  transition: border-color 0.25s ease;   /* lights up together with the body */
}
.say-hi:hover { --bub: var(--accent); transform: translateY(-2px); }
.say-hi:active { transform: translateY(0); }
.say-hi:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero-avatar {
  align-self: start;
  justify-self: end;
  position: relative;
}
.avatar-canvas,
.avatar-poster {
  display: block;
  height: clamp(380px, 70vh, 760px);
  width: auto;
  aspect-ratio: 400 / 720;
}
.avatar-poster {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.hero-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;
}

/* scattered letters that loop into the perfect position */
.hero-name .ltr {
  display: inline-block;
  animation: name-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.hero-name .sp { animation: none; }
@keyframes name-in {
  from { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(var(--sc)); opacity: 0; }
  to   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-name .ltr { animation: none; transform: none; opacity: 1; }
}
.hero-line {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.2rem, 0.9rem + 1.3vw, 1.85rem);
  line-height: 1.34;
  max-width: 34ch;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: var(--ink-soft);
}
.hero-line mark {
  background: none;
  color: var(--ink);
  font-style: italic;
  box-shadow: inset 0 -0.42em 0 color-mix(in oklab, var(--accent) 28%, transparent);
}
.hero-line em {
  font-style: normal;
  font-weight: 600;
}
.hero-line em:nth-of-type(1) { color: var(--c-blue);   box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--c-blue) 35%, transparent); }
.hero-line em:nth-of-type(2) { color: var(--c-green);  box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--c-green) 35%, transparent); }
.hero-line em:nth-of-type(3) { color: var(--c-violet); box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--c-violet) 35%, transparent); }
.hero-line em:nth-of-type(4) { color: var(--c-orange); box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--c-orange) 35%, transparent); }
.hero-line em:nth-of-type(5) { color: var(--c-cyan);   box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--c-cyan) 35%, transparent); }

/* Welcoooome! greeting */
.hero-hello {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 1rem + 3.2vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: clamp(0.6rem, 1.6vw, 1.1rem);
}
.hero-hello .ooo span {
  display: inline-block;
  animation: bob 1.9s var(--ease) infinite;
}
.hero-hello .ooo span:nth-child(1) { color: var(--c-violet); }
.hero-hello .ooo span:nth-child(2) { color: var(--c-blue);  animation-delay: 0.11s; }
.hero-hello .ooo span:nth-child(3) { color: var(--c-green); animation-delay: 0.22s; }
.hero-hello .ooo span:nth-child(4) { color: var(--c-amber); animation-delay: 0.33s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-0.16em); }
}

/* hero buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s ease,
              color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: clamp(2rem, 6vw, 3.5rem);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-meta span { position: relative; padding-left: 1.1rem; }
.hero-meta span::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent);
}

/* ------------------------------------------------------------------ WORK */
.work {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) var(--gutter);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 0.5rem;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.75rem);
  letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); max-width: 34ch; font-size: 0.95rem; }

.work-index { list-style: none; }
.work-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3.2vw, 2.4rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  transition: padding-left 0.4s var(--ease), color 0.3s ease;
}
.work-row::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--row, var(--ink));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.wr-no {
  font-size: 0.8rem;
  color: var(--row, var(--muted));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
.wr-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 1rem + 2.6vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.3s ease;
}
.wr-type { color: var(--muted); font-size: 0.9rem; transition: color 0.3s ease; }
.wr-role {
  font-size: 0.82rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft);
  transition: color 0.3s ease;
}
.wr-go {
  font-size: 1.4rem;
  color: var(--row, var(--accent));
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) {
  .work-row:hover { padding-left: 1.5rem; }
  .work-row:hover::before { transform: scaleY(1); }
  .work-row:hover .wr-name,
  .work-row:hover .wr-type,
  .work-row:hover .wr-role,
  .work-row:hover .wr-no { color: var(--paper); }
  .work-row:hover .wr-type { color: color-mix(in oklab, var(--paper) 70%, transparent); }
  .work-row:hover .wr-go { transform: translate(6px, -6px); }
}

/* ----------------------------------------------------------------- ABOUT */
.about {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) var(--gutter);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}
.about-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.6rem;
}
.about-body {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.35rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 24ch;
}
.about-body p + p { margin-top: 1.4rem; color: var(--ink-soft); }
.about-body strong { font-weight: 600; }
.about-body em { font-style: italic; color: var(--accent-ink); }

/* ---------------------------------------------------------------- FOOTER */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 12vh, 8rem) var(--gutter) 2.5rem;
}
.foot-cta {
  max-width: var(--wrap);
  margin: 0 auto clamp(3rem, 9vw, 6rem);
}
.foot-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  margin-bottom: 0.8rem;
}
.foot-mail {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1rem + 5vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
  position: relative;
  background:
    linear-gradient(var(--accent), var(--accent)) left bottom / 0% 3px no-repeat;
  transition: background-size 0.45s var(--ease);
  padding-bottom: 0.1em;
}
.foot-mail:hover { background-size: 100% 3px; }

.foot-meta {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
  font-size: 0.9rem;
}
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a, .foot-phone a { color: color-mix(in oklab, var(--paper) 75%, transparent); transition: color 0.25s ease; }
.foot-links a:hover, .foot-phone a:hover { color: var(--accent); }
.foot-copy { color: color-mix(in oklab, var(--paper) 45%, transparent); }

/* ---------------------------------------------------------------- REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work-row, .wr-go, .foot-mail { transition: none; }
  .hero-hello .ooo span { animation: none; }
}

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    row-gap: 2rem;
  }
  .say-hi { justify-self: start; }
  .hero-avatar { justify-self: center; }
  .avatar-canvas, .avatar-poster { height: clamp(300px, 52vh, 540px); }
  .hero-line { max-width: 100%; }
}
@media (max-width: 760px) {
  .nav .nav-cta { display: none; }
  .work-row {
    grid-template-columns: auto 1fr auto;
    row-gap: 0.4rem;
  }
  .wr-type { grid-column: 2 / 3; }
  .wr-role { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-kicker { padding-top: 0; }
}

/* ============================================================== PROJECTS */
.projects { background: transparent; }
.projects-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.proj-title {
  position: sticky;
  top: clamp(2rem, 12vh, 6rem);
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.6vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
}
@media (max-width: 760px) {
  .projects-inner { grid-template-columns: 1fr; gap: 1rem; }
  .proj-title {
    position: static;
    flex-direction: row;
    gap: 0.06em;
    font-size: clamp(1.4rem, 7vw, 2.2rem);
  }
}

/* ============================================================== PROJECTS */
.projects { background: transparent; padding: 0 var(--gutter); }
.projects-head {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 13vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: right;
  padding: clamp(3rem, 10vh, 8rem) 0 clamp(1rem, 4vh, 3rem);
  color: var(--ink);
}
.projects-body {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.studio {
  position: sticky;
  top: clamp(4rem, 16vh, 8rem);
  margin-top: 50vh;
  max-width: 42ch;
  padding-bottom: 2rem;
}
.studio-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.studio-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 1rem + 2.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.studio-text {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 36ch;
}
.studio-text strong { color: var(--ink); font-weight: 600; }
.studio-text em { font-style: italic; color: var(--accent-ink); }
.studio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.25s ease;
}
.studio-link:hover { color: var(--accent); }

.proj-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 40vh;
}
@media (max-width: 900px) {
  .projects-body { grid-template-columns: 1fr; }
  .studio { position: static; max-width: none; }
}
.stack-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.stack-card {
  position: relative;
  top: calc(-9vh + (var(--i) * 26px));
  transform-origin: top right;
  transform: scale(var(--scale, 1));
  display: block;
  width: clamp(280px, 46vw, 560px);
  aspect-ratio: 16 / 10;
  border-radius: clamp(1rem, 2vw, 1.75rem);
  overflow: hidden;
  background: var(--row, var(--ink-soft));
  box-shadow: 0 40px 80px -30px rgba(20, 18, 15, 0.5);
}
.stack-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  background: linear-gradient(to top, rgba(10, 9, 7, 0.82), rgba(10, 9, 7, 0));
  color: #fff;
}
.card-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.6rem);
  line-height: 1.05;
}
.card-type { font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.8); }

@media (prefers-reduced-motion: reduce) {
  .stack-card { transform: none !important; }
  .stack-sticky { min-height: auto; padding: 1.5vh 0; }
}


/* =====================================================================
   SPICE — grain, scroll progress, stickers, marquee, colour, footer
   ===================================================================== */

/* film grain over everything (subtle) */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 120; pointer-events: none; }
.scroll-progress-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  box-shadow: 0 0 14px rgba(245,57,28,0.55);
}

/* warm colour wash behind the hero */
.hero-scene::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 82% 12%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(52% 50% at 6% 74%, color-mix(in oklab, var(--purple) 20%, transparent), transparent 70%),
    radial-gradient(48% 48% at 95% 90%, color-mix(in oklab, var(--purple) 16%, transparent), transparent 70%);
}
.hero { position: relative; z-index: 1; }

/* available pill */
.avail-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink);
  background: color-mix(in oklab, var(--paper) 70%, #fff);
  border: 1.5px solid var(--line); border-radius: 100px;
  padding: 0.45rem 0.95rem; margin-bottom: clamp(1rem, 3vh, 1.6rem);
  box-shadow: 0 6px 20px -12px rgba(20,18,15,.5);
}
.avail-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-green);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-green) 22%, transparent);
  animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.65); opacity: .55; } }

/* floating hero sparkles */
.hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.spark { position: absolute; line-height: 1; font-size: clamp(1rem, 2vw, 1.9rem);
  animation: twinkle 3.4s ease-in-out infinite; }
.spark.s1 { top: 17%; left: 47%; color: var(--c-violet); }
.spark.s2 { top: 62%; left: 39%; color: var(--c-cyan); font-size: clamp(1.3rem,2.6vw,2.3rem); animation-delay: .7s; }
.spark.s3 { top: 26%; right: 31%; color: var(--c-amber); animation-delay: 1.2s; }
.spark.s4 { bottom: 16%; right: 11%; color: var(--accent); animation-delay: 1.8s; }
@keyframes twinkle { 0%,100% { transform: scale(.9) rotate(0); opacity:.45; } 50% { transform: scale(1.35) rotate(22deg); opacity:1; } }

/* discipline words: stronger highlight on hover */
.hero-line em { transition: box-shadow .25s var(--ease); }
.hero-line em:hover { box-shadow: inset 0 -0.55em 0 color-mix(in oklab, currentColor 32%, transparent); }

/* studio block -> colour card with a spinning star sticker */
.studio {
  background: linear-gradient(155deg, color-mix(in oklab, #fff 55%, var(--paper)),
                              color-mix(in oklab, var(--accent) 9%, var(--paper)));
  border: 1.5px solid var(--line);
  border-radius: clamp(1rem, 2vw, 1.6rem);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: 0 40px 70px -45px rgba(20,18,15,.45);
}
.studio-star { position: absolute; top: -16px; right: -12px; font-size: 2.4rem;
  color: var(--accent); animation: spin 9s linear infinite; filter: drop-shadow(0 4px 10px rgba(245,57,28,.4)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* numbered project cards + colour hover ring */
.proj-stack { counter-reset: card; }
.stack-card { counter-increment: card; transition: box-shadow .35s var(--ease); }
.stack-card::after {
  content: "0" counter(card); position: absolute;
  top: clamp(.7rem, 2vw, 1.3rem); right: clamp(.8rem, 2vw, 1.4rem); z-index: 3;
  font-family: var(--display); font-weight: 900; line-height: 1;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem); color: #fff; mix-blend-mode: difference;
}
.stack-card:hover { box-shadow: 0 55px 95px -30px rgba(20,18,15,.62), 0 0 0 3px var(--row, var(--accent)); }

/* marquee band */
.marquee { overflow: hidden; background: var(--accent); border-block: 3px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 3.2rem); letter-spacing: -0.01em;
  color: var(--paper); white-space: nowrap; padding: .55rem 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ FOOTER (bold dark finish) ============ */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.footer-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(4rem, 11vh, 8.5rem) var(--gutter) clamp(2rem, 5vh, 3.5rem); }
.footer-kicker { font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; font-size: .82rem; color: var(--accent); margin-bottom: 1rem; }
.footer-cta { display: block; font-family: var(--display); font-weight: 900;
  font-size: clamp(2.6rem, 9.5vw, 8.5rem); line-height: .9; letter-spacing: -0.035em;
  color: var(--paper); margin-bottom: clamp(2.5rem, 6vh, 4.5rem); transition: color .25s var(--ease); }
.footer-cta em { font-style: italic; color: var(--accent); }
.footer-cta:hover { color: var(--accent); }
.footer-cta .footer-arrow { display: inline-block; font-size: .42em; vertical-align: super;
  margin-left: .15em; transition: transform .3s var(--ease); }
.footer-cta:hover .footer-arrow { transform: translate(.3em, -.3em); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-top: 1px solid rgba(244,241,234,.18); padding-top: clamp(1.5rem, 3vh, 2.5rem); }
.footer-col { display: flex; flex-direction: column; gap: .45rem; }
.footer-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.footer-col a, .footer-col > span:not(.footer-label) { color: var(--paper); font-size: clamp(.95rem, 1.3vw, 1.12rem); }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-soc { display: flex; flex-direction: column; gap: .4rem; }
.footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 1rem; margin-top: clamp(2.5rem, 6vh, 4rem); padding-top: 1.25rem;
  border-top: 1px solid rgba(244,241,234,.18); font-size: .85rem; color: var(--muted); }
.footer-top { color: var(--muted); transition: color .2s ease; }
.footer-top:hover { color: var(--paper); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* spinning circular sticker (footer) */
.spin-sticker { position: absolute; z-index: 3; pointer-events: none;
  width: clamp(98px, 12vw, 150px); aspect-ratio: 1;
  top: clamp(2rem, 6vh, 4rem); right: clamp(1.5rem, 5vw, 5rem); }
.spin-sticker svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.spin-sticker text { font-family: var(--sans); font-weight: 700; font-size: 14.5px;
  letter-spacing: 1.5px; fill: var(--accent); }
.spin-core { position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--paper); font-size: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .spark, .studio-star, .spin-sticker svg, .marquee-track, .avail-dot { animation: none !important; }
}


/* ===== orange + purple refresh + hero additions (round 2) ===== */

/* static name (scatter animation removed) */
.hero-name .ltr { animation: none !important; transform: none !important; opacity: 1 !important; }

/* disciplines in orange + purple */
.hero-line em:nth-of-type(1){ color: var(--accent); box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--accent) 35%, transparent); }
.hero-line em:nth-of-type(2){ color: var(--purple); box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--purple) 35%, transparent); }
.hero-line em:nth-of-type(3){ color: var(--accent); box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--accent) 35%, transparent); }
.hero-line em:nth-of-type(4){ color: var(--purple); box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--purple) 35%, transparent); }
.hero-line em:nth-of-type(5){ color: var(--accent); box-shadow: inset 0 -0.1em 0 color-mix(in oklab, var(--accent) 35%, transparent); }
.hero-line mark { box-shadow: inset 0 -0.42em 0 color-mix(in oklab, var(--purple) 32%, transparent); }
.avail-dot { background: var(--purple); box-shadow: 0 0 0 4px color-mix(in oklab, var(--purple) 22%, transparent); }

/* hero CTA buttons */
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.25rem, 3vh, 1.9rem); }
.hero-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans);
  font-weight: 600; font-size: 0.98rem; padding: 0.7rem 1.25rem; border-radius: 100px;
  color: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.hero-btn .arr { transition: transform .25s var(--ease); }
.hero-btn:hover .arr { transform: translate(3px,-3px); }
.hero-btn-1 { background: var(--accent); box-shadow: 0 12px 28px -12px var(--accent); }
.hero-btn-1:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px var(--accent); }
.hero-btn-2 { background: var(--purple); box-shadow: 0 12px 28px -12px var(--purple); }
.hero-btn-2:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px var(--purple); }

/* floating Spotify widget around the avatar */
.spotify-float { position: absolute; z-index: 4; width: clamp(240px, 22vw, 300px);
  right: clamp(0.5rem, 13vw, 11rem); top: 26vh; border-radius: 14px;
  box-shadow: 0 26px 55px -22px rgba(20,18,15,.6); rotate: -4deg;
  animation: floaty 6.5s ease-in-out infinite; }
.spotify-float iframe { display: block; width: 100%; border: 0; border-radius: 14px; }
.spotify-float::before { content: "♫ now playing"; position: absolute; top: -11px; left: 14px; z-index: 1;
  font-family: var(--sans); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--purple); padding: .25rem .65rem; border-radius: 100px;
  box-shadow: 0 6px 14px -6px var(--purple); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@media (max-width: 900px) { .spotify-float { position: static; margin: 1.5rem auto 0; rotate: 0deg; animation: none; } }

/* slide-to-go-down-the-stairs */
.slide-stairs { margin-top: clamp(1.25rem, 3vh, 1.9rem); }
.slide-track { position: relative; width: min(340px, 82vw); height: 60px; border-radius: 100px;
  background: color-mix(in oklab, var(--purple) 10%, #fff);
  border: 2px solid color-mix(in oklab, var(--purple) 28%, var(--line));
  box-shadow: inset 0 2px 8px rgba(20,18,15,.12); overflow: hidden; user-select: none; touch-action: pan-y; }
.slide-fill { position: absolute; inset: 0 auto 0 0; width: 30px; border-radius: 100px;
  background: linear-gradient(90deg, var(--purple), var(--accent)); z-index: 1; }
.slide-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding-left: 2.5rem; z-index: 2; pointer-events: none; font-family: var(--sans); font-weight: 600;
  font-size: .95rem; color: var(--ink-soft); white-space: nowrap; }
.slide-handle { position: absolute; top: 4px; left: 4px; width: 52px; height: 52px; z-index: 3;
  border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
  cursor: grab; touch-action: none; box-shadow: 0 8px 18px -6px var(--accent); }
.slide-handle:active { cursor: grabbing; }
.slide-track.is-done .slide-label { color: #fff; }
.slide-track.is-done .slide-handle { background: var(--c-green); box-shadow: 0 8px 18px -6px var(--c-green); }

@media (prefers-reduced-motion: reduce) { .spotify-float { animation: none; } }


/* ===== round 3: layout + slider fixes ===== */
.hero-head { position: relative; z-index: 2; }   /* never hidden behind the avatar */
.spotify-float { display: none !important; }

/* slider parked bottom-right, clear of the avatar */
.slide-stairs { position: absolute; right: clamp(1.5rem, 5vw, 4rem); bottom: clamp(2rem, 6vh, 4rem);
  margin-top: 0; z-index: 6; }
.slide-track.is-done .slide-handle { background: var(--purple); box-shadow: 0 8px 18px -6px var(--purple); }
.slide-track.is-done .slide-fill { background: linear-gradient(90deg, var(--accent), var(--purple)); }


/* ===== round 4: purple+orange footer, spacing, no black ===== */
.site-footer {
  background: linear-gradient(165deg, #3a0a63 0%, #4c1d95 48%, #c2410c 100%);
  margin-top: clamp(3rem, 9vh, 7rem);   /* nice space above the marquee */
}
.marquee { border-block-color: var(--purple); }
.footer-label, .footer-base, .footer-top { color: rgba(255,255,255,0.72); }
.footer-base, .footer-grid { border-top-color: rgba(255,255,255,0.22); }


/* ===== round 5: scroll cue + seamless single-background ===== */
.hero-scene::before { display: none !important; }   /* remove hero-only wash -> no seam */

.scroll-cue { position: absolute; right: clamp(1.5rem, 5vw, 4rem); bottom: clamp(2rem, 6vh, 4rem);
  z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  text-align: center; pointer-events: none; }
.scroll-cue-text { font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.4rem); color: var(--ink-soft); max-width: 18ch; line-height: 1.2; }
.scroll-cue-arrow { font-size: 1.7rem; line-height: 1; color: var(--accent);
  animation: bobdown 1.4s ease-in-out infinite; }
@keyframes bobdown { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(9px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue-arrow { animation: none; } }


/* Spotify logo floating to the right of the avatar */
.spotify-logo { position: absolute; z-index: 4; right: clamp(2rem, 6vw, 7rem); top: 30vh;
  width: clamp(64px, 7vw, 110px); transition: transform .3s var(--ease); }
.spotify-logo img { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 12px 26px rgba(29,185,84,.35)); }
.spotify-logo:hover { transform: scale(1.08) rotate(-5deg); }
@media (max-width: 900px) { .spotify-logo { top: auto; bottom: 1rem; right: 1rem; width: 56px; } }


/* ===== round 6: scroll-drawn swerving side lines ===== */
.squiggle { position: fixed; top: 0; height: 100vh; width: clamp(54px, 7vw, 120px);
  z-index: 0; pointer-events: none; }
.squiggle-left { left: 0; }
.squiggle-right { right: 0; }
.squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 6px 14px rgba(20,18,15,.12)); }
/* keep section content above the lines (lines peek through the gaps) */
.descent, .projects { position: relative; z-index: 1; }
@media (max-width: 700px) { .squiggle { width: 36px; opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .squiggle path { stroke-dashoffset: 0; } }


/* ===== round 7: bigger squiggles, smaller + relocated Spotify ===== */
.squiggle { width: clamp(85px, 12vw, 210px); }   /* wider = bigger curves */
.spotify-logo { width: clamp(46px, 4vw, 62px); top: 9vh; right: clamp(0.75rem, 1.5vw, 1.5rem); }
@media (max-width: 900px) { .spotify-logo { top: auto; bottom: 1rem; right: 1rem; width: 48px; } }


/* ===== round 8: Bored CTA + bigger Socials ===== */
.socials-head { font-size: clamp(4rem, 15vw, 12rem) !important; line-height: .85; }

.bored { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 6rem) var(--gutter) clamp(2rem, 5vh, 4rem); text-align: center; }
.bored-title { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 4.2vw, 3.4rem); color: var(--ink); max-width: 22ch;
  margin: 0 auto clamp(2rem, 5vh, 3.5rem); }
.bored-title em { font-style: italic; }
.bored-title em:nth-of-type(1) { color: var(--accent); }
.bored-title em:nth-of-type(2) { color: var(--purple); }
.bored-logos { display: flex; flex-wrap: wrap; gap: clamp(1.75rem, 6vw, 4.5rem);
  justify-content: center; align-items: flex-start; }
.bored-logo { display: flex; flex-direction: column; align-items: center; gap: .8rem;
  transition: transform .3s var(--ease); }
.bored-logo img { width: clamp(88px, 10vw, 132px); height: auto; border-radius: 24px;
  box-shadow: 0 22px 44px -18px rgba(124,58,237,.55); }
.bored-logo span { font-family: var(--sans); font-weight: 600; font-size: clamp(.95rem, 1.4vw, 1.15rem); color: var(--ink); }
.bored-logo:hover { transform: translateY(-7px) rotate(-2deg); }

.site-footer { margin-top: clamp(1rem, 3vh, 2.5rem); }   /* bored section now fills the gap */


/* ===== round 9: coding playlist in the projects gap ===== */
.projects-body { grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.66fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 2.5vw, 2.75rem); }
.stack-card { width: clamp(240px, 38vw, 500px); }
.proj-music { position: sticky; top: clamp(4rem, 15vh, 8rem); align-self: start;
  margin-top: clamp(18vh, 28vh, 32vh); max-width: 340px; justify-self: center; z-index: 2; }
.music-pssst { font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--ink-soft); line-height: 1.35; margin-bottom: 1rem; }
.music-embed { display: block; width: 100%; border: 0; border-radius: 12px;
  box-shadow: 0 28px 58px -22px rgba(124,58,237,.55); }
@media (max-width: 900px) {
  .proj-music { position: static; margin: 2rem auto; max-width: 100%; }
}


/* ===== round 10: tiny hero spotify with pssst label ===== */
.spotify-cue { position: absolute; z-index: 4; top: 8vh; right: clamp(1rem, 2.5vw, 3rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; }
.spotify-cue-text { font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(0.72rem, 1vw, 0.9rem); color: var(--ink-soft); line-height: 1.2; white-space: nowrap; }
.spotify-logo { position: static !important; top: auto !important; right: auto !important;
  width: clamp(30px, 2.6vw, 42px) !important; }


/* ===== round 11: one-line Bored title + sticker logos + blue garmin ===== */
.bored-title { max-width: none !important; font-size: clamp(1.05rem, 2.5vw, 2.3rem) !important; }
.bored-logo { transition: none; }
.bored-logo:hover { transform: none; }
.bored-logo img { border-radius: 0 !important; box-shadow: none !important; background: none !important;
  filter: drop-shadow(0 14px 20px rgba(20,18,15,.30)); transition: transform .3s var(--ease); }
.bored-logo:nth-of-type(1) img { transform: rotate(-6deg); }
.bored-logo:nth-of-type(2) img { transform: rotate(6deg); }
.bored-logo:hover img { transform: translateY(-9px) rotate(0deg) scale(1.04); }


/* ===== round 12: playlist under projects (wider) + bigger studio ===== */
.projects-body { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) !important; }
.stack-card { width: clamp(280px, 46vw, 560px) !important; }

.proj-music { position: static !important; top: auto !important; justify-self: auto !important;
  margin: clamp(1.5rem, 5vh, 3.5rem) auto clamp(1rem, 3vh, 2rem) !important;
  max-width: 740px !important; width: 100%; }
.music-pssst { text-align: center; }

.studio { max-width: 52ch !important; padding: clamp(2rem, 3vw, 3rem) !important; }
.studio-title, .studio-text { overflow-wrap: break-word; }


/* ===== round 13: playlist in the right column, after the last card ===== */
.proj-col { display: flex; flex-direction: column; min-width: 0; }
.proj-stack { padding-bottom: clamp(8vh, 14vh, 18vh) !important; }
.proj-music { position: static !important; top: auto !important; justify-self: auto !important;
  max-width: none !important; width: 100% !important; margin: clamp(1rem, 3vh, 2rem) 0 0 !important; }
.music-pssst { text-align: center; }


/* =====================================================================
   round 14: FULL MOBILE PASS — same premium design, reflowed for phones.
   Fixes the page-width zoom-out, declutters the hero, keeps the
   ladder-climb + socials composition, and unbreaks the projects grid.
   ===================================================================== */

/* Hard stop on the horizontal zoom-out: nothing may push the page wider
   than the screen (the oversized ladder canvas used to force ~638px). */
html, body { overflow-x: clip; max-width: 100%; }

@media (max-width: 760px) {

  /* ---------- HERO ---------- */
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    row-gap: clamp(1rem, 3.5vh, 1.75rem);
    column-gap: 0;
    padding: clamp(1.75rem, 6vh, 3rem) var(--gutter) clamp(3rem, 9vh, 5rem);
    align-items: start;
  }
  .hero-head { text-align: left; }
  .hero-name { font-size: clamp(2.9rem, 17vw, 5rem); line-height: 0.9; }
  .hero-line { font-size: clamp(1.08rem, 4.6vw, 1.4rem); max-width: 100%; margin-top: 1rem; }
  .hero-cta-row { margin-top: 1.25rem; }
  .hero-btn { font-size: 0.95rem; padding: 0.7rem 1.15rem; }

  /* "Say hi!" bubble sits above the centred avatar, tail pointing down */
  .say-hi {
    justify-self: center;
    align-self: center;
    margin-top: clamp(0.75rem, 3vh, 1.5rem);
    order: 2;
  }
  .say-hi::after {
    top: auto; right: auto;
    bottom: -9px; left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-top-color: var(--bub);
    border-bottom: 0;
  }

  /* avatar centred, sane size, sits below the bubble */
  .hero-avatar { justify-self: center; order: 3; }
  .avatar-canvas, .avatar-poster { height: clamp(260px, 42vh, 380px); }

  /* declutter: hero playlist cue is hidden (the full embed returns in Projects) */
  .spotify-cue { display: none !important; }

  /* scroll hint: centred in the flow under the avatar, not absolute */
  .scroll-cue {
    position: static;
    right: auto; bottom: auto;
    order: 4;
    margin: clamp(0.5rem, 2vh, 1rem) auto 0;
    align-items: center;
  }
  .scroll-cue-text { max-width: 24ch; font-size: clamp(1rem, 4vw, 1.25rem); }

  /* ---------- PROJECTS (force single column — round 12 !important bug) ---------- */
  .projects-head {
    font-size: clamp(3rem, 18vw, 6rem);
    padding: clamp(2rem, 8vh, 4rem) 0 clamp(1rem, 3vh, 2rem);
  }
  .projects-body {
    grid-template-columns: 1fr !important;
    gap: clamp(1.5rem, 5vh, 2.5rem);
  }
  .studio {
    position: static !important;
    margin-top: 0 !important;
    max-width: none !important;
    padding: clamp(1.5rem, 6vw, 2rem) !important;
  }
  .proj-stack { align-items: center; padding-bottom: clamp(5vh, 9vh, 12vh) !important; }
  .stack-sticky { min-height: 88vh; }
  .stack-card { width: min(86vw, 460px) !important; top: 0; }

  /* ---------- BORED + FOOTER ---------- */
  .bored-title { font-size: clamp(1.3rem, 6.2vw, 2rem) !important; max-width: 22ch !important; }
  .footer-cta { font-size: clamp(2.4rem, 13vw, 4.5rem); }
}

/* smallest phones */
@media (max-width: 400px) {
  .hero-name { font-size: clamp(2.6rem, 16vw, 3.4rem); }
}


/* =====================================================================
   round 15: ladder removed — packed Socials card grid + tighter rhythm.
   The socials area used to be empty on the left (ladder lived there);
   it's now a full-width grid of social cards that fills the space.
   ===================================================================== */

/* descent is now a normal packed section, not 100vh of climb room */
.descent { height: auto; padding: clamp(3rem, 9vh, 7rem) 0; }
.descent-socials {
  min-height: 0;
  display: block;
  align-items: stretch;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.socials-kicker {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.socials-head {
  font-size: clamp(2.75rem, 8vw, 6rem) !important;
  line-height: 0.92 !important;
  margin-bottom: clamp(1.75rem, 4vh, 3rem) !important;
  text-align: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
}
.social {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: clamp(1.15rem, 2vw, 1.7rem) clamp(1.3rem, 2.2vw, 1.9rem);
  background: linear-gradient(155deg,
              color-mix(in oklab, #fff 58%, var(--paper)),
              color-mix(in oklab, var(--accent) 9%, var(--paper)));
  border: 1.5px solid var(--line);
  border-radius: clamp(0.9rem, 1.5vw, 1.4rem);
  box-shadow: 0 22px 45px -32px rgba(20, 18, 15, 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.social-meta { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.social-plat {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-name {
  font-size: clamp(1.15rem, 1.7vw, 1.6rem) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
.social img {
  width: clamp(40px, 4vw, 54px) !important;
  height: auto;
}
.social:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 55px -28px rgba(124, 58, 237, 0.5);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
}
.social:hover .social-name { color: var(--accent); }

/* pack the vertical rhythm now that the climb is gone */
.studio { margin-top: clamp(1.5rem, 8vh, 5rem) !important; }
.stack-sticky { min-height: 84vh; }
.proj-stack { padding-bottom: clamp(3vh, 7vh, 10vh) !important; }

@media (max-width: 760px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .social { padding: 1rem 1.1rem; gap: 0.6rem; }
  .social-name { font-size: clamp(0.95rem, 4vw, 1.25rem) !important; }
  .social img { width: clamp(32px, 8vw, 42px) !important; }
  .socials-head { font-size: clamp(2.4rem, 12vw, 4rem) !important; }
}
@media (max-width: 380px) {
  .social-grid { grid-template-columns: 1fr; }
}
