/* ============================================
   Portfolio — Graphic Designer (Qubril)
   Aesthetic: scrapbook / analog-meets-digital
   ============================================ */

:root {
  --forest: #1a3a2a;
  --forest-deep: #0f2418;
  --cream: #f3f0e1;
  --paper: #f6f4ee;
  --ink: #14110e;
  --brown: #564130;
  --brown-dark: #1d1912;
  --sand: #e8dfc8;
  --sky: #7eb8d8;
  --white: #ffffff;
  --muted: rgba(20, 17, 14, 0.65);

  --font-sans: "DM Sans", sans-serif;
  --font-serif: "Cormorant Garamond", "Instrument Serif", serif;
  --font-display: "Syne", sans-serif;
  --font-script: "Mr Dafoe", cursive;
  --font-instrument: "Instrument Serif", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- HERO (scrapbook collage) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6vh 3vw;
  overflow: hidden;
  background: #22301f;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/bg-mountains.png") center 45% / cover no-repeat;
  filter: saturate(0.9) contrast(1.03);
}

.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__stage {
  position: relative;
  z-index: 2;
  width: min(880px, 94vw);
  aspect-ratio: 1.55 / 1;
  animation: card-in 1s var(--ease) both;
}

/* Main postage stamp */
.hero__stamp {
  position: absolute;
  inset: 7% 7% 2%;
  background: #fff;
  transform: rotate(-2.5deg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4% 4% 4.5%;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.38),
    0 6px 16px rgba(0, 0, 0, 0.15);
  clip-path: polygon(0% 0%, 0.8% 0%, 0.8% 11px, 3.2% 11px, 3.2% 0%, 4.8% 0%, 4.8% 11px, 7.2% 11px, 7.2% 0%, 8.8% 0%, 8.8% 11px, 11.2% 11px, 11.2% 0%, 12.8% 0%, 12.8% 11px, 15.2% 11px, 15.2% 0%, 16.8% 0%, 16.8% 11px, 19.2% 11px, 19.2% 0%, 20.8% 0%, 20.8% 11px, 23.2% 11px, 23.2% 0%, 24.8% 0%, 24.8% 11px, 27.2% 11px, 27.2% 0%, 28.8% 0%, 28.8% 11px, 31.2% 11px, 31.2% 0%, 32.8% 0%, 32.8% 11px, 35.2% 11px, 35.2% 0%, 36.8% 0%, 36.8% 11px, 39.2% 11px, 39.2% 0%, 40.8% 0%, 40.8% 11px, 43.2% 11px, 43.2% 0%, 44.8% 0%, 44.8% 11px, 47.2% 11px, 47.2% 0%, 48.8% 0%, 48.8% 11px, 51.2% 11px, 51.2% 0%, 52.8% 0%, 52.8% 11px, 55.2% 11px, 55.2% 0%, 56.8% 0%, 56.8% 11px, 59.2% 11px, 59.2% 0%, 60.8% 0%, 60.8% 11px, 63.2% 11px, 63.2% 0%, 64.8% 0%, 64.8% 11px, 67.2% 11px, 67.2% 0%, 68.8% 0%, 68.8% 11px, 71.2% 11px, 71.2% 0%, 72.8% 0%, 72.8% 11px, 75.2% 11px, 75.2% 0%, 76.8% 0%, 76.8% 11px, 79.2% 11px, 79.2% 0%, 80.8% 0%, 80.8% 11px, 83.2% 11px, 83.2% 0%, 84.8% 0%, 84.8% 11px, 87.2% 11px, 87.2% 0%, 88.8% 0%, 88.8% 11px, 91.2% 11px, 91.2% 0%, 92.8% 0%, 92.8% 11px, 95.2% 11px, 95.2% 0%, 96.8% 0%, 96.8% 11px, 99.2% 11px, 99.2% 0%, 100% 0%, 100% 0.8%, calc(100% - 11px) 0.8%, calc(100% - 11px) 3.2%, 100% 3.2%, 100% 4.8%, calc(100% - 11px) 4.8%, calc(100% - 11px) 7.2%, 100% 7.2%, 100% 8.8%, calc(100% - 11px) 8.8%, calc(100% - 11px) 11.2%, 100% 11.2%, 100% 12.8%, calc(100% - 11px) 12.8%, calc(100% - 11px) 15.2%, 100% 15.2%, 100% 16.8%, calc(100% - 11px) 16.8%, calc(100% - 11px) 19.2%, 100% 19.2%, 100% 20.8%, calc(100% - 11px) 20.8%, calc(100% - 11px) 23.2%, 100% 23.2%, 100% 24.8%, calc(100% - 11px) 24.8%, calc(100% - 11px) 27.2%, 100% 27.2%, 100% 28.8%, calc(100% - 11px) 28.8%, calc(100% - 11px) 31.2%, 100% 31.2%, 100% 32.8%, calc(100% - 11px) 32.8%, calc(100% - 11px) 35.2%, 100% 35.2%, 100% 36.8%, calc(100% - 11px) 36.8%, calc(100% - 11px) 39.2%, 100% 39.2%, 100% 40.8%, calc(100% - 11px) 40.8%, calc(100% - 11px) 43.2%, 100% 43.2%, 100% 44.8%, calc(100% - 11px) 44.8%, calc(100% - 11px) 47.2%, 100% 47.2%, 100% 48.8%, calc(100% - 11px) 48.8%, calc(100% - 11px) 51.2%, 100% 51.2%, 100% 52.8%, calc(100% - 11px) 52.8%, calc(100% - 11px) 55.2%, 100% 55.2%, 100% 56.8%, calc(100% - 11px) 56.8%, calc(100% - 11px) 59.2%, 100% 59.2%, 100% 60.8%, calc(100% - 11px) 60.8%, calc(100% - 11px) 63.2%, 100% 63.2%, 100% 64.8%, calc(100% - 11px) 64.8%, calc(100% - 11px) 67.2%, 100% 67.2%, 100% 68.8%, calc(100% - 11px) 68.8%, calc(100% - 11px) 71.2%, 100% 71.2%, 100% 72.8%, calc(100% - 11px) 72.8%, calc(100% - 11px) 75.2%, 100% 75.2%, 100% 76.8%, calc(100% - 11px) 76.8%, calc(100% - 11px) 79.2%, 100% 79.2%, 100% 80.8%, calc(100% - 11px) 80.8%, calc(100% - 11px) 83.2%, 100% 83.2%, 100% 84.8%, calc(100% - 11px) 84.8%, calc(100% - 11px) 87.2%, 100% 87.2%, 100% 88.8%, calc(100% - 11px) 88.8%, calc(100% - 11px) 91.2%, 100% 91.2%, 100% 92.8%, calc(100% - 11px) 92.8%, calc(100% - 11px) 95.2%, 100% 95.2%, 100% 96.8%, calc(100% - 11px) 96.8%, calc(100% - 11px) 99.2%, 100% 99.2%, 100% 100%, 99.2% 100%, 99.2% calc(100% - 11px), 96.8% calc(100% - 11px), 96.8% 100%, 95.2% 100%, 95.2% calc(100% - 11px), 92.8% calc(100% - 11px), 92.8% 100%, 91.2% 100%, 91.2% calc(100% - 11px), 88.8% calc(100% - 11px), 88.8% 100%, 87.2% 100%, 87.2% calc(100% - 11px), 84.8% calc(100% - 11px), 84.8% 100%, 83.2% 100%, 83.2% calc(100% - 11px), 80.8% calc(100% - 11px), 80.8% 100%, 79.2% 100%, 79.2% calc(100% - 11px), 76.8% calc(100% - 11px), 76.8% 100%, 75.2% 100%, 75.2% calc(100% - 11px), 72.8% calc(100% - 11px), 72.8% 100%, 71.2% 100%, 71.2% calc(100% - 11px), 68.8% calc(100% - 11px), 68.8% 100%, 67.2% 100%, 67.2% calc(100% - 11px), 64.8% calc(100% - 11px), 64.8% 100%, 63.2% 100%, 63.2% calc(100% - 11px), 60.8% calc(100% - 11px), 60.8% 100%, 59.2% 100%, 59.2% calc(100% - 11px), 56.8% calc(100% - 11px), 56.8% 100%, 55.2% 100%, 55.2% calc(100% - 11px), 52.8% calc(100% - 11px), 52.8% 100%, 51.2% 100%, 51.2% calc(100% - 11px), 48.8% calc(100% - 11px), 48.8% 100%, 47.2% 100%, 47.2% calc(100% - 11px), 44.8% calc(100% - 11px), 44.8% 100%, 43.2% 100%, 43.2% calc(100% - 11px), 40.8% calc(100% - 11px), 40.8% 100%, 39.2% 100%, 39.2% calc(100% - 11px), 36.8% calc(100% - 11px), 36.8% 100%, 35.2% 100%, 35.2% calc(100% - 11px), 32.8% calc(100% - 11px), 32.8% 100%, 31.2% 100%, 31.2% calc(100% - 11px), 28.8% calc(100% - 11px), 28.8% 100%, 27.2% 100%, 27.2% calc(100% - 11px), 24.8% calc(100% - 11px), 24.8% 100%, 23.2% 100%, 23.2% calc(100% - 11px), 20.8% calc(100% - 11px), 20.8% 100%, 19.2% 100%, 19.2% calc(100% - 11px), 16.8% calc(100% - 11px), 16.8% 100%, 15.2% 100%, 15.2% calc(100% - 11px), 12.8% calc(100% - 11px), 12.8% 100%, 11.2% 100%, 11.2% calc(100% - 11px), 8.8% calc(100% - 11px), 8.8% 100%, 7.2% 100%, 7.2% calc(100% - 11px), 4.8% calc(100% - 11px), 4.8% 100%, 3.2% 100%, 3.2% calc(100% - 11px), 0.8% calc(100% - 11px), 0.8% 100%, 0% 100%, 0% 99.2%, 11px 99.2%, 11px 96.8%, 0% 96.8%, 0% 95.2%, 11px 95.2%, 11px 92.8%, 0% 92.8%, 0% 91.2%, 11px 91.2%, 11px 88.8%, 0% 88.8%, 0% 87.2%, 11px 87.2%, 11px 84.8%, 0% 84.8%, 0% 83.2%, 11px 83.2%, 11px 80.8%, 0% 80.8%, 0% 79.2%, 11px 79.2%, 11px 76.8%, 0% 76.8%, 0% 75.2%, 11px 75.2%, 11px 72.8%, 0% 72.8%, 0% 71.2%, 11px 71.2%, 11px 68.8%, 0% 68.8%, 0% 67.2%, 11px 67.2%, 11px 64.8%, 0% 64.8%, 0% 63.2%, 11px 63.2%, 11px 60.8%, 0% 60.8%, 0% 59.2%, 11px 59.2%, 11px 56.8%, 0% 56.8%, 0% 55.2%, 11px 55.2%, 11px 52.8%, 0% 52.8%, 0% 51.2%, 11px 51.2%, 11px 48.8%, 0% 48.8%, 0% 47.2%, 11px 47.2%, 11px 44.8%, 0% 44.8%, 0% 43.2%, 11px 43.2%, 11px 40.8%, 0% 40.8%, 0% 39.2%, 11px 39.2%, 11px 36.8%, 0% 36.8%, 0% 35.2%, 11px 35.2%, 11px 32.8%, 0% 32.8%, 0% 31.2%, 11px 31.2%, 11px 28.8%, 0% 28.8%, 0% 27.2%, 11px 27.2%, 11px 24.8%, 0% 24.8%, 0% 23.2%, 11px 23.2%, 11px 20.8%, 0% 20.8%, 0% 19.2%, 11px 19.2%, 11px 16.8%, 0% 16.8%, 0% 15.2%, 11px 15.2%, 11px 12.8%, 0% 12.8%, 0% 11.2%, 11px 11.2%, 11px 8.8%, 0% 8.8%, 0% 7.2%, 11px 7.2%, 11px 4.8%, 0% 4.8%, 0% 3.2%, 11px 3.2%, 11px 0.8%, 0% 0.8%);
}

.hero__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 0.9;
}

.hero__word {
  font-family: "Titan One", var(--font-display), sans-serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 11.5vw, 7.4rem);
  color: #0d0d0d;
  line-height: 0.9;
}

.hero__year {
  font-family: "Titan One", var(--font-display), sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.9vw, 1.9rem);
  color: #0d0d0d;
  align-self: center;
  transform: translateY(0.4em);
}

/* Torn lined note */
.hero__note {
  position: absolute;
  top: 7%;
  left: 11%;
  z-index: 5;
  width: clamp(190px, 30%, 265px);
  background:
    repeating-linear-gradient(
      transparent,
      transparent 19px,
      rgba(125, 150, 175, 0.4) 20px
    ),
    #f6f1de;
  padding: 0.95rem 1rem 1.1rem 1.6rem;
  box-shadow: 3px 9px 22px rgba(0, 0, 0, 0.28);
  transform: rotate(-4deg);
  clip-path: polygon(
    0% 5%, 2.5% 9%, 0.5% 15%, 3% 21%, 0% 27%, 2.5% 33%, 0.5% 40%, 3% 46%,
    0% 53%, 2.5% 59%, 0.5% 66%, 3% 72%, 0% 79%, 2.5% 85%, 0.5% 92%, 2% 100%,
    100% 100%, 100% 0%, 9% 0%, 6% 2%, 3% 0.5%
  );
}

.hero__note::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8%;
  bottom: 8%;
  width: 9px;
  background:
    radial-gradient(circle 4px at 50% 50%, rgba(0, 0, 0, 0.13) 3.2px, transparent 4px)
    0 0 / 9px 15% repeat-y;
}

.hero__hi {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.7rem, 1.15vw, 0.82rem);
  letter-spacing: 0.03em;
  color: #111;
  border-bottom: 1.5px solid #111;
  display: inline-block;
  padding-bottom: 0.14rem;
  margin-bottom: 0.9rem;
}

.hero__roles {
  font-family: var(--font-sans);
  font-size: clamp(0.55rem, 0.95vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.95;
  color: #161616;
  text-transform: uppercase;
}

/* Vintage stamp pinned between note and polaroid */
.hero__badge {
  position: absolute;
  left: 37%;
  top: 6.5%;
  z-index: 6;
  width: clamp(58px, 9%, 84px);
  transform: rotate(9deg);
  filter: drop-shadow(2px 5px 8px rgba(0, 0, 0, 0.35));
}

.hero__badge-img {
  width: 100%;
  display: block;
  border-radius: 2px;
}

.hero__safety-pin {
  position: absolute;
  top: -26%;
  left: -16%;
  width: 46%;
  height: auto;
  transform: rotate(-48deg);
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.4));
}

/* Polaroid clipped to the stamp */
.hero__polaroid {
  position: absolute;
  top: -2%;
  right: 5%;
  z-index: 6;
  width: clamp(150px, 24%, 220px);
  margin: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transform: rotate(-3deg);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

.hero__polaroid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  .hero__stage {
    width: 94vw;
    aspect-ratio: 1 / 1.05;
  }

  .hero__stamp {
    inset: 16% 2% 2%;
  }

  .hero__note {
    left: 0;
    top: 6%;
    width: 54%;
  }

  .hero__badge {
    left: 48%;
    top: 8%;
    width: 62px;
  }

  .hero__polaroid {
    right: 0;
    width: 42%;
  }
}

/* ---------- MARQUEES ---------- */
.marquee {
  background: var(--forest);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee--hola {
  background: linear-gradient(90deg, #1e3d2c, #163226 50%, #1e3d2c);
  padding: 0.55rem 0;
}

.marquee--brand,
.marquee--social {
  padding: 0.65rem 0;
  background: var(--forest-deep);
}

.marquee__track {
  display: inline-flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee--hola .marquee__track {
  animation-duration: 32s;
}

.marquee__item {
  padding: 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.02em;
}

.marquee__item em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.35em;
  margin: 0 0.15em;
}

.marquee__item strong {
  font-family: var(--font-instrument);
  font-weight: 400;
  font-style: italic;
  font-size: 1.15em;
}

.marquee--hola .chair {
  display: inline-block;
  transform: translateY(1px);
  filter: grayscale(1) brightness(2);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- ABOUT / NOTEBOOK ---------- */
.about {
  position: relative;
  padding: 7vh 3vw 5vh;
  overflow: hidden;
  background: #4a7a9a;
}

.about__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(5, 22, 11, 0.5) 100%),
    url("assets/bg-about-sky.png") center / cover no-repeat;
}

.about__stage {
  position: relative;
  z-index: 1;
  width: min(1060px, 97vw);
  margin: 0 auto;
}

.notebook {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: #f7f4ec;
  border-radius: 6px;
  box-shadow:
    0 45px 95px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.notebook__spiral {
  display: none;
}

.notebook__page {
  position: relative;
  padding: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #f7f4ec;
  background-size: 180px 180px, auto;
}

.notebook__page--right {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #f3f0e7;
  background-size: 180px 180px, auto;
}

/* Person cutout on torn cardboard */
.notebook__cutout {
  position: relative;
  width: min(250px, 72%);
  margin: 0 auto 1.4rem;
}

.cutout-board {
  position: absolute;
  inset: -4% -10% -2% -12%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #b08b58;
  background-size: 160px 160px, auto;
  transform: rotate(2deg);
  z-index: 0;
  box-shadow: 3px 8px 18px rgba(0, 0, 0, 0.3);
  clip-path: polygon(
    6% 2%, 30% 0%, 55% 4%, 78% 1%, 96% 8%, 100% 28%, 94% 46%, 99% 64%,
    92% 82%, 97% 95%, 74% 100%, 48% 96%, 22% 100%, 4% 93%, 0% 72%,
    5% 52%, 0% 30%, 3% 12%
  );
}

.notebook__cutout > img:not(.notebook__keys) {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(2deg);
  filter: drop-shadow(3px 8px 12px rgba(0, 0, 0, 0.28));
  z-index: 1;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.notebook__keys {
  position: absolute;
  left: -12%;
  bottom: 14%;
  width: 38%;
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
  z-index: 2;
}

/* Typewriter receipt */
.receipt {
  position: relative;
  width: min(272px, 94%);
  margin: 0 auto;
  background: #fcfbf5;
  font-family: "Courier Prime", ui-monospace, "Courier New", monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #1c1c1c;
  padding: 1.9rem 1.05rem 1.1rem;
  box-shadow: 3px 9px 20px rgba(0, 0, 0, 0.18);
  transform: rotate(1deg);
}

.receipt__tape {
  position: absolute;
  width: 76px;
  height: 22px;
  background: rgba(233, 226, 203, 0.65);
  border: 1px solid rgba(180, 165, 120, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.receipt__tape--a {
  top: -8px;
  left: -28px;
  transform: rotate(-38deg);
}

.receipt__tape--b {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
}

.receipt__title {
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
}

.receipt__stars {
  text-align: center;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin: 0.12rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.receipt__sub {
  text-align: center;
}

.receipt__date {
  text-align: center;
  margin: 0.3rem 0 0.55rem;
}

.receipt__list {
  border-top: 1px dashed #333;
  padding-top: 0.5rem;
  margin-bottom: 0.55rem;
}

.receipt__list li {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.14rem 0;
}

.receipt__list span:last-child {
  font-weight: 700;
}

.receipt__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed #333;
  padding-top: 0.5rem;
  font-weight: 700;
}

.receipt__foot span:last-child {
  text-align: right;
}

.receipt__barcode {
  margin-top: 0.7rem;
  height: 44px;
  background: repeating-linear-gradient(
    90deg,
    #111 0 2px,
    transparent 2px 4px,
    #111 4px 7px,
    transparent 7px 9px,
    #111 9px 10px,
    transparent 10px 13px
  );
}

/* Red stamp pinned with safety pin */
.notebook__red-stamp {
  position: relative;
  width: 124px;
  margin: 1.2rem auto 0;
  transform: rotate(-4deg);
  filter: drop-shadow(2px 5px 7px rgba(0, 0, 0, 0.3));
  z-index: 3;
}

.notebook__red-stamp img {
  width: 100%;
  display: block;
}

.notebook__pin {
  position: absolute;
  top: -16%;
  left: -14%;
  width: 42%;
  transform: rotate(-52deg);
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.35));
}

/* Pinned translucent panel: Softwares + Contacto */
.sticky {
  position: relative;
  background: rgba(236, 236, 233, 0.85);
  backdrop-filter: blur(2px);
  padding: 1.25rem 1.1rem 1.1rem;
  box-shadow: 2px 8px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.4rem;
}

.sticky__pin {
  position: absolute;
  top: -12px;
  right: 14%;
  width: 20px;
  height: 26px;
  z-index: 2;
}

.sticky__pin::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -9px;
  width: 18px;
  height: 12px;
  background: linear-gradient(#e9e9e9, #9a9a9a);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sticky__pin::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  margin-left: -1.5px;
  width: 3px;
  height: 13px;
  background: linear-gradient(#8a8a8a, #4c4c4c);
}

.sticky h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #161616;
}

.sticky__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.1rem;
  margin-bottom: 0.9rem;
}

.sticky__cols li,
.sticky__contact li {
  font-size: 0.7rem;
  line-height: 1.75;
  color: #2e2e2e;
}

/* Manila folder: Educacion */
.edu-folder {
  position: relative;
  background: #c9ae7d;
  padding: 1.05rem 1.05rem 1.15rem;
  box-shadow: 2px 8px 18px rgba(0, 0, 0, 0.2);
  border-radius: 0 6px 6px 6px;
  margin-bottom: 1.4rem;
}

.edu-folder::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 0;
  width: 38%;
  height: 14px;
  background: #c9ae7d;
  border-radius: 5px 8px 0 0;
}

.edu-folder h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #241c10;
}

.edu-folder p {
  font-size: 0.68rem;
  line-height: 1.5;
  color: #33291a;
  margin-bottom: 0.4rem;
}

/* Clipboard: Experiencia */
.clipboard {
  position: relative;
  width: min(330px, 94%);
  margin: 0 auto;
  background: linear-gradient(165deg, #c59a63, #ad7f46);
  border-radius: 8px;
  padding: 2.9rem 0.8rem 0.9rem;
  box-shadow: 5px 16px 34px rgba(0, 0, 0, 0.3);
  transform: rotate(2deg);
}

.clipboard__clip {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 46px;
  background: linear-gradient(#dcdcdc, #8f8f8f);
  border-radius: 10px 10px 6px 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.clipboard__clip::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 34px;
  height: 24px;
  margin-left: -17px;
  border: 5px solid #b9b9b9;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
}

.clipboard__clip::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 58px;
  height: 12px;
  margin-left: -29px;
  background: linear-gradient(#777, #4e4e4e);
  border-radius: 3px;
}

.clipboard__paper {
  background: #f6f3ea;
  padding: 1rem 0.9rem 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.clipboard h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #141414;
}

.clipboard li {
  font-size: 0.66rem;
  line-height: 1.4;
  padding: 0.3rem 0;
  color: #1f1f1f;
}

.clipboard em {
  display: block;
  font-style: normal;
  opacity: 0.65;
  font-size: 0.62rem;
}

/* Indice */
.indice {
  position: relative;
  z-index: 1;
  width: min(1060px, 97vw);
  margin: 7vh auto 2vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.indice__title {
  font-family: "Archivo Black", var(--font-display), sans-serif;
  font-weight: 400;
  font-size: clamp(4.2rem, 13vw, 8.6rem);
  color: #fff;
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.indice__cols {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
}

.indice__list {
  color: #fff;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  line-height: 1.7;
}

.indice__list span {
  font-weight: 700;
  margin-right: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.indice__list a:hover {
  opacity: 0.75;
}

/* Desktop collage layout */
@media (min-width: 901px) {
  .about {
    min-height: 100svh;
    padding: 4vh 2vw 3vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .about__stage {
    height: clamp(560px, 60vw, 680px);
  }

  .notebook {
    position: absolute;
    top: 3%;
    left: 0;
    width: 90%;
    height: 90%;
    display: block;
    transform: rotate(-2deg);
  }

  .notebook__spiral {
    display: block;
    position: absolute;
    left: 50%;
    top: -16px;
    bottom: -16px;
    width: 46px;
    transform: translateX(-50%);
    z-index: 9;
    pointer-events: none;
    background:
      radial-gradient(ellipse 21px 8px at 50% 13px, #141414 55%, #454545 70%, transparent 75%)
      0 0 / 100% 27px repeat-y;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.4));
  }

  .notebook__page {
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 0;
    min-height: 0;
  }

  .notebook__page--left {
    left: 0;
    width: 50%;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px 0 0 6px;
  }

  .notebook__page--right {
    right: 0;
    width: 50%;
    border-radius: 0 6px 6px 0;
  }

  .notebook__cutout {
    position: absolute;
    left: 3%;
    top: 14%;
    width: 46%;
    max-width: 255px;
    margin: 0;
  }

  .notebook__keys {
    left: -14%;
    bottom: 12%;
    width: 40%;
  }

  .receipt {
    position: absolute;
    left: 43%;
    top: 4%;
    width: 51%;
    max-width: 272px;
    margin: 0;
    font-size: 0.63rem;
  }

  .notebook__red-stamp {
    position: absolute;
    left: 60%;
    bottom: 3.5%;
    width: 25%;
    max-width: 138px;
    margin: 0;
  }

  .sticky {
    position: absolute;
    left: 8%;
    top: 5%;
    width: 46%;
    margin: 0;
  }

  .edu-folder {
    position: absolute;
    left: 16%;
    bottom: 7%;
    width: 48%;
    margin: 0;
  }

  .clipboard {
    position: absolute;
    top: 4%;
    right: -1.5%;
    width: 25.5%;
    min-width: 245px;
    margin: 0;
    z-index: 10;
    padding: 3rem 0.8rem 1rem;
  }

  .indice {
    margin: 5vh auto 1vh;
    flex-wrap: nowrap;
  }

  .indice__cols {
    justify-content: flex-end;
    padding-bottom: 0.4rem;
  }

  .indice__list {
    white-space: nowrap;
  }
}

/* ---------- CHAPTER HEROES ---------- */
.chapter-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.chapter-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: contrast(1.08) saturate(0.85) brightness(0.72);
  transform: scale(1.05);
}

.chapter-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.chapter-hero__script {
  position: relative;
  z-index: 1;
  font-family: var(--font-script);
  font-size: clamp(4.5rem, 16vw, 11rem);
  color: var(--white);
  font-weight: 400;
  line-height: 0.9;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.01em;
  padding: 0 4vw;
  animation: script-in 1.2s var(--ease) both;
}

@keyframes script-in {
  from {
    opacity: 0;
    transform: scale(1.08);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* ---------- PROJECTS ---------- */
.project {
  position: relative;
  padding: clamp(3rem, 7vh, 5.5rem) clamp(1.25rem, 5vw, 4rem) 4rem;
  overflow: hidden;
}

.project--light {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    var(--paper);
}

.project--dark {
  background: #111;
  color: var(--white);
}

.project--sf500 {
  background: #0c0c0c;
}

.project__pattern {
  position: absolute;
  right: -5%;
  top: 0;
  width: 55%;
  height: 55%;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  mask-image: linear-gradient(225deg, #000 30%, transparent 85%);
  -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 85%);
  pointer-events: none;
}

.project--ck {
  background: #f3f2ea;
}

.project--overlay {
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.project--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* Fancy project showcase (MurMur-style) */
.showcase {
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.showcase__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.showcase__copy {
  position: relative;
  max-width: 36rem;
}

.showcase__num {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(5rem, 14vw, 9.5rem);
  line-height: 0.75;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
  user-select: none;
}

.showcase__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1rem;
  color: #fff;
}

.showcase__desc {
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  line-height: 1.65;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
}

.showcase__tags {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.showcase__stage {
  position: relative;
  min-height: clamp(360px, 52vh, 520px);
  display: grid;
  place-items: center;
}

.phone--hero {
  width: clamp(180px, 22vw, 250px);
  background: #0e0e0e;
  border-radius: 34px;
  padding: 11px;
  border: 2px solid #2c2c2c;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 3;
  transform: rotate(-3deg);
}

.phone--hero .phone__screen {
  border-radius: 26px;
  aspect-ratio: 9 / 19;
  padding: 0;
  overflow: hidden;
  background: #111;
}

.phone--hero .phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desk-frame {
  width: min(460px, 92%);
  margin: 0;
  background: #101010;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.desk-frame img {
  width: 100%;
  display: block;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.desk-frame--tilt {
  transform: rotate(-4deg);
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  color: #141414;
  padding: 0.85rem 1.05rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  z-index: 4;
}

.float-card--a {
  top: 12%;
  left: 4%;
  transform: rotate(-8deg);
  background: #1d3557;
  color: #fff;
}

.float-card--b {
  top: 18%;
  right: 2%;
  transform: rotate(7deg);
  background: #f1faee;
}

.float-card--c {
  bottom: 16%;
  left: 8%;
  transform: rotate(5deg);
  background: #e63946;
  color: #fff;
}

.float-card--d {
  bottom: 12%;
  right: 6%;
  transform: rotate(-6deg);
  background: #111;
  color: #fff;
}

@media (max-width: 900px) {
  .showcase__inner {
    grid-template-columns: 1fr;
  }

  .showcase__stage {
    min-height: 380px;
    order: -1;
  }

  .showcase__num {
    font-size: clamp(4rem, 18vw, 6rem);
  }
}

.project__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: 2.5rem;
  width: min(1200px, 100%);
  margin-inline: auto;
}

.project__header--split {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  margin-bottom: 0;
  width: 100%;
}

.project--dark .project__header,
.project--sf500 .project__header {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin-left: 0;
  margin-right: auto;
}

.project__num {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.project__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin: 0.15rem 0 1rem;
  letter-spacing: -0.01em;
}

.project__desc {
  font-size: clamp(0.85rem, 1.2vw, 0.98rem);
  line-height: 1.65;
  max-width: 38ch;
  opacity: 0.82;
  font-weight: 400;
}

.project__stickers {
  justify-self: end;
  width: min(420px, 100%);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.15));
  animation: float-y 6s ease-in-out infinite;
}

.project__stickers img {
  width: 100%;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0) rotate(0.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-0.5deg);
  }
}

.project__grid {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.project__grid--alfajor {
  grid-template-columns: 0.9fr 1fr 1.2fr;
  grid-template-rows: auto auto;
}

.project__grid--alfajor .shot--tall {
  grid-row: span 2;
}

.project__grid--alfajor .shot--wide {
  grid-column: span 2;
}

.project__grid--sf {
  grid-template-columns: 0.85fr 1fr 1.2fr;
}

.project__grid--sf .shot--tall {
  grid-row: span 2;
}

.project__grid--sf .shot--wide {
  grid-column: span 2;
}

.shot {
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.project--dark .shot {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: #222;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.shot:hover img {
  transform: scale(1.04);
}

.shot--tall {
  min-height: 420px;
}

.shot--wide {
  min-height: 260px;
}

/* Swatches */
.swatches {
  position: absolute;
  right: clamp(0.75rem, 3vw, 2rem);
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.swatch {
  width: 42px;
  height: 72px;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.swatch span {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center;
  font-size: 0.55rem;
  white-space: nowrap;
  color: #fff;
  mix-blend-mode: difference;
  letter-spacing: 0.04em;
}

.swatches--dark .swatch {
  border-color: rgba(255, 255, 255, 0.1);
}

/* CK fit */
.ck-logo {
  justify-self: end;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #ffbb4b;
  color: #dd5e32;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 0.95;
  box-shadow: 0 16px 40px rgba(221, 94, 50, 0.25);
  transform: rotate(-6deg);
}

.ck-logo span {
  font-size: 1.1rem;
  font-weight: 600;
}

.project__grid--ck {
  grid-template-columns: 1fr 1.4fr;
}

.salad-mock {
  min-height: 320px;
  background: linear-gradient(160deg, #7cb342, #558b2f);
  display: grid;
  place-items: center;
  position: relative;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.salad-mock__lid {
  position: absolute;
  top: 18%;
  width: 55%;
  height: 18%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.ck-banner {
  min-height: 320px;
  background: linear-gradient(120deg, #ffbb4b, #dd5e32);
  display: grid;
  place-items: center;
  color: #f3f2ea;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* Phones / social */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.phones--row {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.phones--cuantika {
  gap: 1.5rem;
}

.phone {
  width: 220px;
  background: #111;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  border: 2px solid #2a2a2a;
  position: relative;
  z-index: 2;
}

.phone--sm {
  width: 130px;
  border-radius: 22px;
  padding: 6px;
}

.phone__screen {
  border-radius: 24px;
  aspect-ratio: 9 / 19.5;
  background: #222;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
}

.phone--sm .phone__screen {
  border-radius: 16px;
  padding: 0.6rem;
  justify-content: flex-end;
}

.phone__screen--murmur {
  background: linear-gradient(180deg, #2d4a3e, #1a2e26);
  color: white;
}

.ig-handle {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

.ig-bio {
  font-size: 0.65rem;
  opacity: 0.75;
  margin: 0.35rem 0 1rem;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: auto;
}

.ig-grid span {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.15);
}

.ig-grid span:nth-child(2) {
  background: rgba(255, 255, 255, 0.28);
}
.ig-grid span:nth-child(4) {
  background: rgba(255, 255, 255, 0.22);
}

.phone__screen--cafe1 {
  background: linear-gradient(#3e2723, #1b100e);
  color: #f3e5d0;
  font-size: 0.65rem;
  font-weight: 600;
}
.phone__screen--cafe2 {
  background: linear-gradient(#1b5e20, #81c784);
  color: white;
  font-family: var(--font-script);
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
}
.phone__screen--cafe3 {
  background: linear-gradient(#4e342e, #a1887f);
  color: white;
  font-size: 0.65rem;
}
.phone__screen--cafe4 {
  background: linear-gradient(#1565c0, #90caf9);
  color: white;
  font-size: 0.8rem;
  font-family: var(--font-serif);
  align-items: center;
  justify-content: center;
}

.phone__screen--cuantika {
  background: linear-gradient(160deg, #f5e6dc, #e8cfc0);
  color: #5c4033;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.phone__screen--cuantika small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  opacity: 0.7;
}

.tile-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tile {
  width: 120px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.88);
  color: #5c4033;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
}

.tile:nth-child(2) {
  transform: rotate(-3deg);
  background: rgba(255, 248, 240, 0.9);
}
.tile:nth-child(3) {
  transform: rotate(4deg);
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
}

.footer__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  filter: brightness(0.45) saturate(0.8);
}

.footer__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer__script {
  font-family: var(--font-script);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
}

.footer__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  opacity: 0.85;
  margin: 0.5rem 0 1.5rem;
}

.footer__mail {
  display: inline-block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 0.15rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: opacity 0.3s;
}

.footer__mail:hover {
  opacity: 0.7;
}

.footer__hire {
  display: inline-block;
  margin-top: 1.35rem;
  margin-left: 0.75rem;
  background: #0057ff;
  color: #fff;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: background 0.25s, transform 0.25s;
}

.footer__hire:hover {
  background: #0046cc;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .footer__hire {
    display: block;
    margin: 1.25rem auto 0;
    width: fit-content;
  }
}

/* Hire bar */
.hire-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 15, 15, 0.92);
  color: white;
  padding: 0.45rem 0.5rem 0.45rem 0.45rem;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
  animation: bar-in 0.8s var(--ease) 0.6s both;
}

.hire-bar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.hire-bar__btn {
  background: #0057ff;
  color: white;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  transition: background 0.25s;
}

.hire-bar__btn:hover {
  background: #0046cc;
}

@keyframes bar-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .notebook {
    grid-template-columns: 1fr;
  }

  .notebook__spiral {
    display: none;
  }

  .notebook__page--left,
  .notebook__page--right {
    padding: 1.5rem;
  }

  .project__header,
  .project__header--split {
    grid-template-columns: 1fr;
  }

  .project__stickers {
    justify-self: center;
    order: -1;
  }

  .project__grid--alfajor,
  .project__grid--sf,
  .project__grid--ck {
    grid-template-columns: 1fr 1fr;
  }

  .project__grid--alfajor .shot--tall,
  .project__grid--sf .shot--tall {
    grid-row: auto;
  }

  .project__grid--alfajor .shot--wide,
  .project__grid--sf .shot--wide {
    grid-column: span 2;
  }

  .swatches {
    flex-direction: row;
    right: 1rem;
    bottom: 1rem;
  }

  .swatch {
    width: 56px;
    height: 36px;
  }

  .swatch span {
    transform: none;
    bottom: 4px;
    font-size: 0.5rem;
  }

  .project--overlay {
    background-attachment: scroll;
    min-height: auto;
    padding-block: 4rem;
  }

  .indice {
    flex-direction: column;
    align-items: flex-start;
  }

  .indice__list {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .project__grid--alfajor,
  .project__grid--sf,
  .project__grid--ck {
    grid-template-columns: 1fr;
  }

  .project__grid--alfajor .shot--wide,
  .project__grid--sf .shot--wide {
    grid-column: auto;
  }

  .shot--tall {
    min-height: 280px;
  }

  .hire-bar span {
    display: none;
  }

  .phone {
    width: 180px;
  }

  .phones--row .phone--sm {
    width: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .hero,
  .project__stickers,
  .hire-bar {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
