/* ============================================
   Natalia Victoria Garzón — Portfolio
   Clean / product-canvas direction, pink accent
   ============================================ */

:root {
  --paper: #fffbfc;
  --paper-2: #fff1f6;
  --ink: #15131a;
  --ink-soft: #6b6570;
  --line: rgba(21, 19, 26, 0.12);
  --accent: #f5327b;
  --accent-deep: #c41f63;
  --accent-soft: #ffd9e8;
  --radius: 14px;
  --radius-sm: 8px;

  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1180px;
  --edge: clamp(24px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
b { font-weight: 700; }

.ink-accent { color: var(--accent); }
.pink-accent { color: var(--accent); }

/* Dot-grid canvas background */
.dotgrid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(21,19,26,0.14) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 78%);
}

/* ---------- placeholder markers ---------- */
.placeholder {
  display: inline-block;
  color: var(--ink-soft);
  background: repeating-linear-gradient(
    -45deg, rgba(245,50,123,0.08), rgba(245,50,123,0.08) 6px,
    rgba(245,50,123,0.03) 6px, rgba(245,50,123,0.03) 12px
  );
  border: 1px dashed rgba(245,50,123,0.5);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  position: relative;
  cursor: help;
}
.placeholder::after {
  content: attr(data-note);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
  z-index: 20;
}
.placeholder:hover::after { opacity: 1; visibility: visible; transform: translateY(0); }

.chip--placeholder { position: relative; }
[data-placeholder] { position: relative; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.chip--sm { padding: 6px 13px; font-size: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip--select {
  border: 1.5px dashed var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 14px 7px 20px;
}
.chip--select::before, .chip--select::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
}
.chip--select::before { top: -3px; left: -3px; }
.chip--select::after { bottom: -3px; right: -3px; }

/* comment bubble (Figma-comment style annotation) */
.bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px 999px 999px 4px;
  position: relative;
}
.bubble::before {
  content: "💬";
  font-size: 12px;
}

/* section index tag */
.section-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  margin-bottom: 32px;
}
.section-tag em { font-style: normal; color: var(--accent-deep); margin-left: 2px; }
.section-tag--dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.6); }
.section-tag--dark em { color: var(--accent); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--edge);
  background: rgba(255, 251, 252, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__dot {
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--accent);
}
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-size: 14px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.25s;
}
.nav__cta:hover { background: var(--accent); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px var(--edge) 80px;
}

.hero__tags {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
}

.hero__main { position: relative; z-index: 1; max-width: 780px; }

/* ============ SAKURA BLOOM SCENE ============ */
.sakura-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sakura-flower {
  position: absolute;
  display: block;
  opacity: 0;
  transform-origin: center;
  animation: sakura-bloom 1.15s cubic-bezier(.22, 1.4, .36, 1) forwards;
  filter: drop-shadow(0 10px 18px rgba(196, 31, 99, 0.22));
  user-select: none;
  -webkit-user-drag: none;
}

.sakura-flower--a { top: 6%; right: 13%; width: 92px; height: 92px; animation-delay: .35s; }
.sakura-flower--b { top: 21%; right: 3%; width: 56px; height: 56px; animation-delay: .65s; }
.sakura-flower--c { top: 0%; right: 27%; width: 42px; height: 42px; animation-delay: .95s; }

@keyframes sakura-bloom {
  0%   { opacity: 0; transform: scale(0.15) rotate(calc(var(--end-rot, 0deg) - 30deg)); }
  55%  { opacity: 1; transform: scale(1.1) rotate(calc(var(--end-rot, 0deg) + 5deg)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--end-rot, 0deg)); }
}

.sparkle {
  position: absolute;
  display: block;
  opacity: 0;
  /* Fluent Emoji sparkles ship amber/gold — rotate hue toward the pink brand */
  filter: hue-rotate(300deg) saturate(1.5) brightness(1.05);
  animation: sparkle-twinkle var(--dur, 2.4s) ease-in-out var(--delay, 1s) infinite;
  user-select: none;
  -webkit-user-drag: none;
}
.sparkle--a { top: 10%; right: 33%; width: 15px; height: 15px; }
.sparkle--b { top: 34%; right: 22%; width: 10px; height: 10px; }
.sparkle--c { top: 4%; right: 6%; width: 11px; height: 11px; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(20deg); }
}

.sakura-petals { position: absolute; inset: 0; }
.petal-fall {
  position: absolute;
  display: block;
  top: -24px;
  left: var(--left, 50%);
  width: var(--size, 16px);
  height: var(--size, 16px);
  opacity: 0;
  animation: petal-fall var(--dur, 10s) linear var(--delay, 0s) infinite;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes petal-fall {
  0%   { transform: translate3d(0, -5%, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .9; }
  88%  { opacity: .8; }
  100% { transform: translate3d(var(--drift, 20px), 115vh, 0) rotate(380deg); opacity: 0; }
}

@media (max-width: 760px) {
  .sakura-flower--b, .sakura-flower--c, .sparkle--b, .sparkle--c { display: none; }
  .sakura-flower--a { width: 58px; height: 58px; top: 2%; right: 6%; }
  .sparkle--a { top: 8%; right: 24%; }
}

@media (prefers-reduced-motion: reduce) {
  .sakura-flower { animation: none; opacity: 1; }
  .sparkle { animation: none; opacity: .8; }
  .petal-fall { display: none; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}

.hero__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.bubble--hero { margin-bottom: 28px; }

.hero__intro {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 40px;
}

.hero__row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__social { display: flex; gap: 10px; }
.hero__social a {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: 0.25s;
}
.hero__social a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  transition: 0.25s cubic-bezier(.16,1,.3,1);
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.btn--lg { padding: 18px 36px; font-size: 16px; }

/* ============ ABOUT ============ */
.about {
  position: relative;
  z-index: 1;
  padding: 100px var(--edge);
  max-width: var(--container);
  margin: 0 auto;
}
.about__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-areas:
    "photo intro"
    "facts facts";
  gap: 44px 56px;
  align-items: start;
}

.about__photo { grid-area: photo; position: relative; width: 100%; }
.about__photo-blob {
  position: absolute;
  inset: -10% -10% -6% -6%;
  background: var(--accent-soft);
  border-radius: 42% 58% 63% 37% / 41% 45% 55% 59%;
  transform: rotate(-6deg);
  z-index: 0;
}
.about__photo-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #fff;
}
.about__photo-frame.placeholder {
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  color: var(--accent-deep);
}
.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__intro { grid-area: intro; display: flex; flex-direction: column; gap: 18px; }
.about__lead {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.45;
  max-width: 62ch;
}

.about__more {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

.about__facts-row {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.about__facts { display: flex; flex-direction: column; gap: 12px; }
.fact__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .about__facts-row { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
}

@media (max-width: 760px) {
  .about__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "intro" "facts";
  }
  .about__photo { width: 140px; }
}

/* ============ WORK ============ */
.work { position: relative; z-index: 1; padding: 40px var(--edge) 0; max-width: var(--container); margin: 0 auto; }
.work__intro { margin-bottom: 56px; }
.work__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* contents nav */
.contents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 90px;
}
.contents__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: 0.25s;
}
.contents__item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -12px rgba(245,50,123,0.35);
}
.contents__tile {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--tile);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink);
}
.contents__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .contents { grid-template-columns: repeat(2, 1fr); }
}

.case {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.case--flip { grid-template-columns: 1.15fr 1fr; }
.case--flip .case__visual { order: 2; }
.case--flip .case__body { order: 1; }

.case__visual { position: relative; }
.case__frame {
  aspect-ratio: 4/3;
  border-radius: 20px;
  background: var(--card-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21,19,26,0.06);
}
.case__frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1.5px dashed rgba(21,19,26,0.18);
  border-radius: 12px;
}
.case__wordmark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--ink);
  text-align: center;
  line-height: 1.15;
}
.case__img-note {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  text-align: center;
}

.case__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.case__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.case__summary {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: 22px;
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 20px 0 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case__meta b { color: var(--ink); font-weight: 700; margin-right: 4px; }
.case__meta .placeholder { padding: 2px 8px; font-size: 12px; }

.case__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 30px;
}
.case__col h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0 8px;
}
.case__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.case__col p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.case__col p.placeholder { font-size: 12.5px; }

@media (max-width: 900px) {
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__visual, .case--flip .case__body { order: initial; }
  .case__grid { grid-template-columns: 1fr; }
  .case { padding: 56px 0; gap: 32px; }
}

/* ============ MORE PROJECTS ============ */
.more { position: relative; z-index: 1; padding: 100px var(--edge); max-width: var(--container); margin: 0 auto; }
.more__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.more__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}
.more__card::before {
  content: "";
  position: absolute;
  top: -30%; right: -30%;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--tile);
  opacity: 0.7;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}
.more__card:hover::before { transform: scale(2.4); }
.more__card:hover { border-color: var(--accent); transform: translateY(-3px); }
.more__tag, .more__card h4, .more__arrow { position: relative; z-index: 1; }
.more__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.more__card h4 {
  font-weight: 700;
  font-size: 20px;
  margin-top: 10px;
}
.more__arrow {
  align-self: flex-end;
  font-size: 18px;
  transition: transform 0.3s;
}
.more__card:hover .more__arrow { transform: translate(3px,-3px); }

@media (max-width: 900px) {
  .more__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .more__grid { grid-template-columns: 1fr; }
}

/* ============ CONTACT ============ */
.contact {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: #fff;
  padding: 130px var(--edge);
}
.contact__inner { max-width: var(--container); margin: 0 auto; }
.contact__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}
.contact__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.contact .btn--primary { background: var(--accent); color: #fff; }
.contact .btn--primary:hover { background: #fff; color: var(--ink); }
.contact__linkedin {
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 4px;
  transition: 0.25s;
}
.contact__linkedin:hover { border-color: var(--accent); color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 26px var(--edge) 40px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: #fff; }

/* ============================================
   Homepage project grid (links out to detail pages)
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 90px;
}
.project-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s cubic-bezier(.16,1,.3,1);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(245,50,123,0.4);
}
.project-card__cover {
  aspect-ratio: 16/10;
  background: var(--card-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-card__cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1.5px dashed rgba(21,19,26,0.18);
  border-radius: 12px;
}
.project-card__wordmark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--ink);
  text-align: center;
  line-height: 1.15;
}
.project-card__body { padding: 26px 28px 28px; }
.project-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-deep);
  margin-bottom: 8px;
  display: block;
}
.project-card__title {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.project-card__summary {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 18px;
}
.project-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-card__link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-card__link span { transition: transform 0.25s; }
.project-card:hover .project-card__link span { transform: translateX(4px); }

@media (max-width: 860px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Case detail page template
   ============================================ */
.case-page { position: relative; z-index: 1; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: 0.2s;
}
.back-link:hover { color: var(--accent); }
.back-link span { transition: transform 0.25s; }
.back-link:hover span { transform: translateX(-3px); }

.case-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--edge) 0;
}
.case-hero__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 22px 0 20px;
}
.case-hero__summary {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
  margin-bottom: 28px;
}
.case-hero__cover {
  margin-top: 40px;
  aspect-ratio: 21/9;
  border-radius: 24px;
  background: var(--card-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21,19,26,0.06);
}
.case-hero__cover::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px dashed rgba(21,19,26,0.2);
  border-radius: 14px;
}
.case-hero__cover-mark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  color: var(--ink);
}
.case-hero__cover-note {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.case-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px var(--edge);
  border-top: 1px solid var(--line);
}
.case-section__head { max-width: 62ch; margin-bottom: 44px; }
.case-section__head h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.case-section__head p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.6;
}

/* pain points */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.pain-card__num {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}
.pain-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.pain-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 860px) {
  .pain-grid { grid-template-columns: 1fr; }
}

/* UX process timeline */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; padding-right: 16px; }
.process-step__dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .process-steps::before { display: none; }
}

/* solution gallery */
.solution-text { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 68ch; margin-bottom: 36px; }
.solution-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}
.solution-gallery .case__frame { aspect-ratio: auto; height: 100%; min-height: 260px; }
.solution-gallery__stack { display: flex; flex-direction: column; gap: 18px; }
.solution-gallery__stack .case__frame { flex: 1; min-height: 120px; }

@media (max-width: 760px) {
  .solution-gallery { grid-template-columns: 1fr; }
}

/* Mercado Libre: public chooser with two protected projects (visibility handled by unlock.js) */
.ml-project-grid { margin-bottom: 0; }
.ml-project-grid .case__frame { aspect-ratio: 16 / 10; border-radius: 0; }

/* process stages: text + image, one per row */
.stage {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px dashed var(--line);
}
.case-section__head + .stage { border-top: 0; padding-top: 0; }
.stage__text h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.stage__text p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.stage__media { margin: 0; }
.stage__media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.stage__media.case__frame { aspect-ratio: 16 / 10; }

@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; gap: 18px; }
}

/* feature groups inside a case solution */
.feature-group__title { font-size: 20px; font-weight: 800; margin: 40px 0 14px; }
.feature-group__intro { font-size: 15px; color: var(--ink-soft); max-width: 640px; margin: -4px 0 18px; }
.feature-group__title + .pain-grid { margin-top: 0; }
.pain-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .pain-grid--2 { grid-template-columns: 1fr; } }
.pain-grid + .solution-gallery,
.pain-grid + .solution-shot { margin-top: 40px; }
.solution-shot--single { max-width: 760px; margin-left: auto; margin-right: auto; }

/* benchmark / moodboard: illustrative recreations of subscription patterns */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bench-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 20px;
}
.bench-card h3 { font-size: 15.5px; font-weight: 700; margin: 16px 6px 6px; }
.bench-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 6px; }
.bench-card p b { color: var(--ink); }

.bench-screen {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  font-size: 11px;
}
.bs-brand { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; color: var(--accent); }
.bs-step, .bs-label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bs-title { font-weight: 700; font-size: 14px; }
.bs-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.bs-plans--2 { grid-template-columns: repeat(2, 1fr); }
.bs-plan {
  position: relative;
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-weight: 600;
  line-height: 1.25;
}
.bs-plan small { font-weight: 400; color: var(--muted); font-size: 9.5px; }
.bs-plan--on { border: 2px solid var(--accent); }
.bs-badge {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  border-radius: 99px;
  padding: 2px 7px;
  align-self: flex-start;
  margin-bottom: auto;
}
.bs-btn {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  padding: 7px;
  margin-top: auto;
}
.bs-toggle { display: flex; align-self: flex-start; border: 1px solid var(--muted); border-radius: 99px; padding: 2px; }
.bs-toggle span { padding: 3px 10px; border-radius: 99px; color: var(--muted); }
.bs-toggle .is-on { background: var(--accent); color: #fff; }
.bs-banner {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 12px 10px;
}
.bs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 5px 0;
}
.bs-add { color: var(--accent); font-weight: 700; }
.bs-live { font-family: var(--font-mono); font-size: 9px; color: var(--accent); }
.bs-check::before { content: "✓  "; color: var(--accent); font-weight: 700; }

@media (max-width: 900px) {
  .bench-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bench-grid { grid-template-columns: 1fr; }
}

/* real screenshots of the final solution */
.solution-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.solution-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.solution-shot--wide { grid-column: 1 / -1; }
.solution-shot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.solution-shots .solution-shot:not(.solution-shot--wide) img { aspect-ratio: 1 / 1; object-fit: contain; }
.solution-shot figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .solution-shots { grid-template-columns: 1fr; }
}

/* metrics */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.metric-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1.5px dashed rgba(245,50,123,0.45);
  background: repeating-linear-gradient(
    -45deg, rgba(245,50,123,0.06), rgba(245,50,123,0.06) 6px,
    rgba(245,50,123,0.02) 6px, rgba(245,50,123,0.02) 12px
  );
}
.metric-card__value {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 28px;
  color: var(--accent-deep);
  margin-bottom: 8px;
  display: block;
}
.metric-card__label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .metric-grid { grid-template-columns: 1fr; }
}

/* Cover variants that hold a real image instead of a wordmark placeholder */
.case-hero__cover--image { aspect-ratio: 16 / 9; }
.case-hero__cover--image::before,
.project-card__cover--image::before { display: none; }
.case-hero__cover--image img,
.project-card__cover--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center top);
  display: block;
}

/* Cover art with a flat background: show it whole on the same flat color, so nothing is cropped and no edge shows */
.cover--yellow { background: #ffe600; }
.cover--yellow img { object-fit: contain; object-position: center; }

/* ============================================
   Password-protected case + locked project card
   ============================================ */
[hidden] { display: none !important; }

.gate {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px var(--edge) 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gate .back-link { align-self: flex-start; margin-bottom: 48px; }
.gate__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.gate__title {
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.gate__text { color: var(--ink-soft); max-width: 44ch; margin-bottom: 30px; }
.gate__form { display: flex; gap: 10px; width: 100%; max-width: 440px; }
.gate__input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gate__input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 50, 123, 0.14); }
.gate__form .btn { flex-shrink: 0; border: 0; cursor: pointer; }
.gate__form .btn:disabled { opacity: 0.6; cursor: wait; }
.gate__error { color: var(--accent-deep); font-size: 13.5px; font-weight: 600; margin-top: 14px; }
.gate__help { margin-top: 26px; font-size: 13.5px; color: var(--ink-soft); }
.gate__help a { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.gate__help a:hover { color: var(--accent); border-color: var(--accent); }

.gate__form--shake { animation: gate-shake 0.4s; }
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@media (max-width: 480px) {
  .gate__form { flex-direction: column; }
}

.lock-badge {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
}

.project-card--wide { grid-column: 1 / -1; flex-direction: row; }
.project-card--wide .project-card__cover { flex: 0 0 42%; aspect-ratio: auto; min-height: 260px; }
.project-card--wide .project-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 36px;
}
@media (max-width: 860px) {
  .project-card--wide { flex-direction: column; }
  .project-card--wide .project-card__cover { flex: none; aspect-ratio: 16/10; min-height: 0; }
}

/* next project nav */
.case-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px var(--edge) 100px;
}
.case-next__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: 0.25s;
}
.case-next__link:hover { border-color: var(--accent); transform: translateY(-3px); }
.case-next__link span.label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.case-next__link span.title { font-size: 20px; font-weight: 700; }

/* ============================================
   Display typography: retro high-contrast serif for titles
   ============================================ */
:root { --font-display: "Gloock", Georgia, "Times New Roman", serif; }

.hero__name,
.work__title,
.contact__title,
.case-hero__title,
.case-section__head h2,
.case__title,
.case__wordmark,
.case-hero__cover-mark,
.project-card__title,
.project-card__wordmark,
.feature-group__title,
.metric-card__value,
.gate__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.hero__name { line-height: 1.04; }
.case-hero__title { line-height: 1.06; }
.project-card__title { font-size: 26px; }
.metric-card__value { font-size: 30px; line-height: 1.15; }

/* ============================================
   Koi pair swimming in circles next to the hero name
   ============================================ */
.koi {
  position: absolute;
  z-index: 0;
  top: 54%;
  right: clamp(12px, 6vw, 96px);
  width: clamp(240px, 30vw, 420px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
/* soft "pond" glow under the fish */
.koi::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 50, 123, 0.10) 0%, rgba(245, 50, 123, 0.04) 55%, transparent 72%);
}
.koi__fish {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(196, 31, 99, 0.18));
  animation: koi-swim 40s linear infinite;
  user-select: none;
  -webkit-user-drag: none;
}
/* counter-clockwise: the way both heads are pointing */
@keyframes koi-swim {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@media (max-width: 860px) {
  .koi { top: 72px; right: 12px; width: 116px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .koi__fish { animation: none; }
}
/* the rotating koi image can poke past the viewport edge on small screens */
.hero { overflow-x: clip; }

/* ============================================
   Fuurin (wind chime, teru-teru-bozu style) swaying from the top of the hero
   ============================================ */
.fuurin {
  position: absolute;
  z-index: 0;
  top: 0;
  right: clamp(300px, 36vw, 560px);
  width: clamp(84px, 7.5vw, 112px);
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(196, 31, 99, 0.16));
}
/* the charm hangs from a cord; the whole piece pivots at the top of the cord */
.fuurin__swing {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: fuurin-swing 3.6s ease-in-out infinite alternate;
}
.fuurin__cord {
  display: block;
  width: 3px;
  height: clamp(70px, 9vw, 120px);
  border-radius: 2px;
  background: linear-gradient(#f7b6cb, #f39ab9);
  margin-bottom: -8px; /* tuck the cord under the charm's knot */
}
.fuurin__charm { display: block; width: 100%; height: auto; }
@keyframes fuurin-swing {
  from { transform: rotate(-5deg); }
  to   { transform: rotate(5deg); }
}

@media (max-width: 860px) {
  .fuurin { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fuurin__swing { animation: none; }
}

/* fuurin hangs over the koi "pond": koi sit a bit lower to leave room */
.koi { top: 62%; }
.fuurin {
  right: calc(clamp(12px, 6vw, 96px) + clamp(240px, 30vw, 420px) * 0.58);
  width: clamp(96px, 9vw, 126px);
}
@media (max-width: 860px) {
  .koi { top: 72px; }
}
.fuurin { z-index: 1; width: clamp(120px, 12vw, 170px); }
/* keep the small blossom off the fuurin cord */
.sakura-flower--c { right: 44%; top: 3%; }
/* charm sits in the free space right of the name (koi removed for now) */
.fuurin { right: clamp(40px, 22vw, 360px); }

/* Charm v2: bigger, centered in the free space right of the name.
   The cord matches the charm's own rope (≈5.4% of the charm width, same pink)
   and runs behind the bow loops into the knot (≈17% from the top of the image). */
.fuurin {
  --charm-w: min(26vw, 330px);
  top: 0;
  left: 62%;
  right: 2%;
  width: auto;
  display: flex;
  justify-content: center;
  filter: none;
}
.fuurin__swing {
  width: var(--charm-w);
  animation-duration: 4.2s;
  animation-name: charm-swing;
}
@keyframes charm-swing {
  from { transform: rotate(-3deg); }
  to   { transform: rotate(3deg); }
}
.fuurin__cord {
  width: calc(var(--charm-w) * 0.054);
  height: max(48px, calc((92svh - var(--charm-w) * 1.59) / 2 + var(--charm-w) * 0.18));
  margin-bottom: calc(var(--charm-w) * -0.18);
  border-radius: 999px;
  background: linear-gradient(90deg, #e2849f 0%, #f7b3c7 45%, #ee98b2 100%);
}
.fuurin__charm {
  position: relative;
  filter: drop-shadow(0 18px 24px rgba(196, 31, 99, 0.18));
}
/* keep the big blossoms clear of the charm cord */
.sakura-flower--a { right: 4%; top: 6%; }
.sakura-flower--b { right: 2.5%; top: 32%; }

/* Charm v3: six views (front, 3/4, side, back, side, 3/4) cross-fading in turn,
   so the charm slowly spins on its cord while it swings.
   Frames are 206x428 (ratio 2.078); the knot sits ≈19% from the top. */
.fuurin { --charm-w: min(20vw, 250px); }
.fuurin__cord {
  width: calc(var(--charm-w) * 0.06);
  height: max(48px, calc((92svh - var(--charm-w) * 2.078) / 2 + var(--charm-w) * 0.39));
  margin-bottom: calc(var(--charm-w) * -0.39);
}
.charm-turn {
  position: relative;
  width: 100%;
  aspect-ratio: 206 / 428;
}
.charm-turn__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: charm-turn 7.2s linear infinite;
}

/* Charm v4: no full spin. The views follow the pendulum: one 3/4 side at each end
   of the swing and the front while it passes through the middle.
   Same duration + alternate direction as the swing keeps both in sync. */
.fuurin__swing {
  animation: charm-swing 4.2s ease-in-out infinite alternate;
}
@keyframes charm-swing {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}
.charm-turn__frame { animation: none; animation-delay: 0s; }
.charm-turn__frame--front { animation: charm-view-front 4.2s ease-in-out infinite alternate; }
.charm-turn__frame--right { animation: charm-view-right 4.2s ease-in-out infinite alternate; }
.charm-turn__frame--left  { animation: charm-view-left  4.2s ease-in-out infinite alternate; }
@keyframes charm-view-right { 0%, 18% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes charm-view-front { 0%, 18% { opacity: 0; } 36%, 64% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes charm-view-left  { 0%, 64% { opacity: 0; } 82%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .charm-turn__frame--front, .charm-turn__frame--right, .charm-turn__frame--left { animation: none; }
  .charm-turn__frame--front { opacity: 1; }
}
/* shorter cross-fades so two views never linger on top of each other */
@keyframes charm-view-right { 0%, 24% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes charm-view-front { 0%, 24% { opacity: 0; } 31%, 69% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes charm-view-left  { 0%, 69% { opacity: 0; } 76%, 100% { opacity: 1; } }

/* Charm v5: no pendulum. It drops in once from above on load and then stays still. */
.fuurin__swing {
  animation: charm-drop 1.2s cubic-bezier(.22, 1.25, .36, 1) .3s both;
}
@keyframes charm-drop {
  from { transform: translateY(-110%); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: translateY(0); opacity: 1; }
}
.fuurin__charm { display: block; width: 100%; height: auto; aspect-ratio: auto; }
@media (prefers-reduced-motion: reduce) {
  .fuurin__swing { animation: none; }
}

/* ============================================
   Folder scene: a cursor clicks a pink folder, its contents pop out,
   float for a moment and tuck back in. 7s loop. Sized in em so it scales.
   ============================================ */
.folder-scene {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 62%;
  right: 2%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  font-size: min(0.95vw, 10px);
  pointer-events: none;
}
.fs-stage { position: relative; width: 34em; height: 40em; perspective: 60em; }

/* folder back with its tab */
.fs-back {
  position: absolute;
  left: 3em; right: 3em; bottom: 3em;
  height: 19em;
  border-radius: 1.6em;
  background: linear-gradient(180deg, #f39ab9, #e9789f);
  box-shadow: 0 2em 3em -1em rgba(196, 31, 99, 0.35);
}
.fs-tab {
  position: absolute;
  top: -2.6em; right: 2.5em;
  width: 10em; height: 3.4em;
  border-radius: 1.2em 1.2em 0 0;
  background: #f39ab9;
}

/* contents: each item starts tucked inside the folder */
.fs-items { position: absolute; inset: 0; }
.fs-item {
  position: absolute;
  left: 50%;
  top: 22em;
  transform: translate(-50%, calc(-50% + 5em)) scale(0.4);
  opacity: 0;
  animation: fs-pop 7s cubic-bezier(.3, 1.35, .5, 1) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes fs-pop {
  0%, 14%  { transform: translate(-50%, calc(-50% + 5em)) scale(0.4) rotate(0deg); opacity: 0; }
  17%      { opacity: 1; }
  27%, 66% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); opacity: 1; }
  78%      { opacity: 1; }
  82%, 100%{ transform: translate(-50%, calc(-50% + 5em)) scale(0.4) rotate(0deg); opacity: 0; }
}
.fs-float { animation: fs-bob 2.2s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0s) * -6); }
@keyframes fs-bob { from { transform: translateY(0); } to { transform: translateY(-0.7em); } }

.fs-tag {
  display: block;
  padding: 0.8em 1.3em;
  font: 600 1.15em/1 var(--font-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: #c41f63;
  background: linear-gradient(180deg, #ffffff, #ffe3ee);
  border: 0.12em dashed #f5327b;
  border-radius: 0.9em;
  box-shadow: inset 0 -0.3em 0 rgba(196, 31, 99, 0.12), 0 0.8em 1.4em rgba(196, 31, 99, 0.2);
}
.fs-clip { display: block; width: 3.4em; filter: drop-shadow(0 0.5em 0.6em rgba(80, 60, 90, 0.25)); }
.fs-card {
  position: relative;
  display: block;
  width: 9em; height: 6.6em;
  padding: 1em;
  border-radius: 0.9em;
  background: linear-gradient(180deg, #ffffff, #f6f1f4);
  box-shadow: 0 0.8em 1.4em rgba(80, 60, 90, 0.18);
}
.fs-card i { display: block; height: 0.7em; margin-bottom: 0.6em; border-radius: 0.4em; background: #f1d7e1; }
.fs-card i:first-child { width: 60%; background: #f5327b; }
.fs-card i:nth-child(3) { width: 75%; }
.fs-card b { position: absolute; right: 1em; bottom: 1em; width: 2.6em; height: 1.4em; border-radius: 0.5em; background: #15131a; }
.fs-pencil {
  display: block;
  width: 1.5em; height: 10em;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
  background:
    linear-gradient(180deg, #f5327b 0 11%, #d9d6e2 11% 17%, transparent 17% 84%, #f3d1a6 84% 95%, #5a4a50 95%),
    linear-gradient(90deg, #f7a3c0, #ffe0ec 45%, #f39ab9);
  filter: drop-shadow(0 0.6em 0.6em rgba(196, 31, 99, 0.25));
}
.fs-pin { display: block; width: 5.4em; filter: drop-shadow(0 0.6em 0.8em rgba(196, 31, 99, 0.25)); }
.fs-sakura { display: block; width: 6.4em; height: auto; filter: drop-shadow(0 0.6em 1em rgba(196, 31, 99, 0.25)); }
.fs-sparkle { display: block; width: 3em; height: auto; }
.fs-bubble {
  position: relative;
  display: block;
  padding: 0.35em 0.8em 0.45em;
  font: 400 2em/1 var(--font-display);
  color: #fff;
  background: linear-gradient(180deg, #ff5a95, #e2286f);
  border-radius: 0.6em;
  box-shadow: 0 0.4em 0.8em rgba(196, 31, 99, 0.3);
}
.fs-bubble::after {
  content: "";
  position: absolute;
  left: 0.7em; bottom: -0.35em;
  width: 0.7em; height: 0.7em;
  background: #e2286f;
  transform: rotate(45deg);
}
.fs-hola {
  display: block;
  font: 400 3.4em/1 var(--font-display);
  color: #f5327b;
  text-shadow: 0.05em 0.05em 0 #fff, -0.05em 0.05em 0 #fff, 0.05em -0.05em 0 #fff, -0.05em -0.05em 0 #fff, 0 0.18em 0.25em rgba(196, 31, 99, 0.3);
}

/* folder front: tips forward while the contents are out */
.fs-front {
  position: absolute;
  left: 3em; right: 3em; bottom: 3em;
  height: 16em;
  border-radius: 1.4em;
  background: linear-gradient(180deg, #ffd3e3, #ffb6cf);
  box-shadow: inset 0 0.25em 0 rgba(255, 255, 255, 0.7), 0 -0.2em 1em rgba(196, 31, 99, 0.12);
  transform-origin: 50% 100%;
  animation: fs-open 7s ease-in-out infinite;
  display: flex;
  align-items: flex-end;
  padding: 0 0 2.4em 2.4em;
}
@keyframes fs-open {
  0%, 14%  { transform: rotateX(0deg); }
  20%, 68% { transform: rotateX(-20deg); }
  80%, 100%{ transform: rotateX(0deg); }
}
.fs-label {
  padding: 0.35em 1em 0.45em;
  border: 0.14em solid rgba(196, 31, 99, 0.45);
  border-radius: 2em;
  font: 400 2em/1 var(--font-display);
  color: rgba(196, 31, 99, 0.75);
  background: rgba(255, 255, 255, 0.35);
}

/* the cursor glides in, clicks the folder and leaves */
.fs-cursor {
  position: absolute;
  left: 22em; top: 31em;
  width: 3.4em;
  opacity: 0;
  filter: drop-shadow(0 0.3em 0.4em rgba(21, 19, 26, 0.3));
  animation: fs-cursor 7s ease-in-out infinite;
}
@keyframes fs-cursor {
  0%       { transform: translate(9em, 7em); opacity: 0; }
  4%       { opacity: 1; }
  11%      { transform: translate(0, 0) scale(1); }
  13%      { transform: translate(0, 0) scale(0.8); }
  15%      { transform: translate(0, 0) scale(1); opacity: 1; }
  26%, 100%{ transform: translate(6em, 6em); opacity: 0; }
}

@media (max-width: 860px) {
  .folder-scene { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-item { animation: none; opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); }
  .fs-float, .fs-front, .fs-cursor { animation: none; }
  .fs-front { transform: rotateX(-20deg); }
}
/* a bit larger so the scene fills the free space */
.folder-scene { left: 63%; font-size: min(1.1vw, 12px); }
.fs-stage { height: 42em; }

/* ============================================
   Languages (EN / ES / JA): only the active language is shown
   ============================================ */
html[lang="en"] [data-l]:not([data-l="en"]),
html[lang="es"] [data-l]:not([data-l="es"]),
html[lang="ja"] [data-l]:not([data-l="ja"]) { display: none !important; }

/* Japanese glyphs come from Noto; Google Fonts only downloads the subsets in use */
:root {
  --font-sans: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans JP", monospace;
  --font-display: "Gloock", "Noto Serif JP", Georgia, "Times New Roman", serif;
}
html[lang="ja"] body { line-height: 1.7; }
html[lang="ja"] .hero__intro,
html[lang="ja"] .about__lead,
html[lang="ja"] .about__more { line-break: strict; word-break: normal; }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  font: 600 12px/1 var(--font-sans);
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav__end { display: flex; align-items: center; gap: 12px; }
@media (max-width: 520px) {
  .nav__cta { display: none; }
}

/* "More projects" are preview thumbnails only, not links */
.more__card { cursor: default; }
.more__card:hover { border-color: var(--line); transform: none; }
.more__card:hover::before { transform: none; }

/* user interviews: questions on the left, insights on the right */
.interview {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 36px;
  align-items: start;
}
.interview__title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.interview__questions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.interview__list { padding-left: 20px; display: grid; gap: 12px; }
.interview__list li { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.interview__list li::marker { color: var(--accent); font-weight: 700; }
.interview__outcome {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .interview { grid-template-columns: 1fr; }
}

/* Walmart cover: logo kept whole, card filled with the logo's own blue */
.cover--walmart { background: #0153e3; }
.cover--walmart img { object-fit: contain; object-position: center; }
