/* ═══════════════════════════════════════════════
   GRACIELA MÉRIDA — motion portfolio
   Concept: the portfolio as a live design file
   ═══════════════════════════════════════════════ */

:root {
  --canvas: #f3eef7;      /* design-tool canvas, lavender-pink */
  --canvas-deep: #e9e0f0;
  --ink: #211430;         /* deep plum ink */
  --ink-soft: #5d4d6e;
  --violet: #6550ff;      /* Graciela's cursor */
  --rose: #f4517f;        /* warm pink accent */
  --teal: #0fb5a8;        /* third collaborator */
  --white: #fdfbff;

  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

html, body { overflow-x: clip; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }

::selection { background: var(--violet); color: var(--white); }

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

em { font-style: normal; color: var(--violet); }

/* ── Preloader ─────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.loader-inner { width: min(420px, 80vw); display: grid; gap: 0.75rem; }
.loader-file { font-size: 0.8125rem; opacity: 0.6; }
.loader-count { font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; line-height: 1; }
.loader-bar { height: 2px; background: rgba(251,250,255,0.15); overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0%; background: var(--violet); }
.loader-status { font-size: 0.75rem; opacity: 0.5; }

/* ── Custom cursor ─────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  pointer-events: none;
  display: none;
}
.cursor-arrow { display: block; }
.cursor-arrow path { fill: var(--rose); stroke: var(--white); stroke-width: 1.5; }
.cursor-tag {
  position: absolute; top: 16px; left: 14px;
  background: var(--rose); color: var(--white);
  font-size: 0.6875rem; padding: 0.1rem 0.45rem; border-radius: 3px;
  white-space: nowrap;
  transition: background-color 150ms ease;
}
.cursor.is-hover .cursor-tag { background: var(--violet); }
.cursor.is-hover .cursor-arrow path { fill: var(--violet); }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
  body.has-cursor .cursor { display: block; }
}

/* ── Nav ───────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  transition: background-color 250ms ease, box-shadow 250ms ease;
}
.nav.is-scrolled {
  background: rgba(243, 238, 247, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(23, 20, 31, 0.08);
}
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav-logo-dot { color: var(--violet); font-size: 0.7em; vertical-align: super; }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav-link {
  font-weight: 500; font-size: 0.95rem; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--violet);
  transform: scaleX(0); transform-origin: right;
  transition: transform 250ms var(--ease-out-quint);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-sound {
  font-size: 0.8rem; color: var(--ink-soft);
  width: 28px; height: 24px; border-radius: 6px;
  transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}
.nav-sound:hover { background: rgba(33, 20, 48, 0.07); }
.nav-sound.is-off { opacity: 0.35; text-decoration: line-through; }
.nav-zoom {
  font-size: 0.75rem; color: var(--ink-soft);
  background: rgba(33, 20, 48, 0.07);
  padding: 0.25rem 0.6rem; border-radius: 6px;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav-zoom:hover { background: var(--violet); color: var(--white); }
.lang-toggle { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; }
.lang-btn { opacity: 0.45; transition: opacity 150ms ease, color 150ms ease; padding: 0.2rem; }
.lang-btn:hover { opacity: 0.8; }
.lang-btn.is-active { opacity: 1; color: var(--violet); font-weight: 700; }
.lang-sep { opacity: 0.3; }

/* ── Hero ──────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--pad-x) 4rem;
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(23,20,31,0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 30%, transparent 75%);
}
/* spotlight layer: violet dots revealed around the cursor */
.hero-canvas-glow {
  background-image: radial-gradient(rgba(101, 80, 255, 0.85) 1.2px, transparent 1.2px);
  mask-image: radial-gradient(200px circle at var(--mx, -400px) var(--my, -400px), black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(200px circle at var(--mx, -400px) var(--my, -400px), black 0%, transparent 72%);
}
.hero-content { position: relative; }
.hero-eyebrow {
  font-size: clamp(0.75rem, 1.4vw, 0.9375rem);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.hero-title-wrap { position: relative; display: inline-block; padding: 0.5rem 1rem; margin-left: -1rem; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 13vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: inline-block; will-change: transform; }
.hero-title .ch { display: inline-block; will-change: transform; }
.line-accent { color: var(--violet); }
.title-caret {
  display: inline-block; width: 0.06em; height: 0.78em;
  background: var(--rose); margin-left: 0.06em;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* Figma-style selection box */
.selection-box {
  position: absolute; inset: 0;
  border: 1.5px solid var(--violet);
  pointer-events: none;
}
.handle {
  position: absolute; width: 9px; height: 9px;
  background: var(--white); border: 1.5px solid var(--violet);
}
.h-tl { top: -5px; left: -5px; } .h-tr { top: -5px; right: -5px; }
.h-bl { bottom: -5px; left: -5px; } .h-br { bottom: -5px; right: -5px; }
.dim-chip {
  position: absolute; bottom: -2rem; left: 50%; transform: translateX(-50%);
  background: var(--violet); color: var(--white);
  font-size: 0.6875rem; padding: 0.15rem 0.5rem; border-radius: 3px;
  white-space: nowrap;
}

.hero-foot {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2rem 4rem;
  justify-content: space-between;
}
.hero-tag { max-width: 34rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); }
.hero-tag em { font-weight: 700; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: background-color 200ms ease, color 200ms ease, transform 150ms var(--ease-out-quint);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--violet); border-color: var(--violet); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-big { font-size: clamp(1.05rem, 2.4vw, 1.4rem); padding: 1.3rem 2.8rem; }

/* floating collaborator cursors */
.fake-cursor { position: absolute; z-index: 5; pointer-events: none; will-change: transform; }
.fake-cursor svg path { stroke-width: 1.5; stroke: var(--white); }
.fc-tag {
  position: absolute; top: 14px; left: 12px;
  font-size: 0.6875rem; padding: 0.12rem 0.5rem; border-radius: 3px;
  color: var(--white); white-space: nowrap;
}
.fc-1 { top: 15%; right: 12%; }
.fc-1 svg path, .fc-1 .fc-tag { fill: var(--teal); background: var(--teal); }
.fc-1 .fc-tag { left: auto; right: 6px; }
.fc-2 { bottom: 34%; left: 58%; }
@media (max-width: 760px) { .fake-cursor { display: none; } }
.fc-2 svg path, .fc-2 .fc-tag { fill: var(--violet); background: var(--violet); }

.hero-scroll {
  position: absolute; bottom: 2rem; right: var(--pad-x);
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-scroll-line { width: 52px; height: 1px; background: var(--ink-soft); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ''; position: absolute; inset: 0; background: var(--violet);
  animation: scroll-slide 1.8s var(--ease-out-quint) infinite;
}
@keyframes scroll-slide { 0% { transform: translateX(-100%);} 60% { transform: translateX(0);} 100% { transform: translateX(100%);} }

/* ── Figma comment pins ────────────────────── */
.comment-pin {
  position: absolute; z-index: 6;
  display: flex; align-items: center; gap: 0.6rem;
  animation: pin-bob 3.4s ease-in-out infinite;
}
.pin-bubble {
  display: grid; place-items: center;
  width: 40px; height: 40px; font-size: 1.05rem;
  background: var(--white);
  border: 1.5px solid rgba(33, 20, 48, 0.14);
  border-radius: 50% 50% 50% 4px;
  box-shadow: 0 6px 18px rgba(33, 20, 48, 0.18);
}
.pin-note {
  font-size: 0.75rem; color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(33, 20, 48, 0.14);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  box-shadow: 0 6px 18px rgba(33, 20, 48, 0.12);
  white-space: nowrap;
}
@keyframes pin-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.cp-work { top: -14px; right: 8%; }
@media (max-width: 760px) { .comment-pin { display: none; } }

/* ── Figma toolbar (hero) ──────────────────── */
.fig-toolbar {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.35rem;
  background: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(33, 20, 48, 0.35);
  z-index: 5;
}
.tool {
  position: relative;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: rgba(253, 251, 255, 0.85);
  font-size: 0.95rem; font-weight: 700;
  transition: background-color 150ms ease;
}
.tool svg path { fill: currentColor; }
.tool:hover { background: rgba(253, 251, 255, 0.12); }
.tool.is-active { background: var(--violet); color: var(--white); }
.tool::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--white);
  font-family: var(--font-mono); font-size: 0.6875rem;
  padding: 0.2rem 0.55rem; border-radius: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity 150ms ease, transform 150ms var(--ease-out-quint);
  white-space: nowrap;
}
.tool:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 760px) { .fig-toolbar { display: none; } }

/* ── Frame wipe: section-change transition ──── */
.frame-wipe {
  position: fixed; inset: 0; z-index: 70;
  display: none;
  align-items: center; justify-content: center;
  background: var(--ink);
  will-change: transform;
}
.fw-label {
  font-size: 0.875rem; letter-spacing: 0.1em;
  color: var(--white);
  border: 1px solid rgba(253, 251, 255, 0.3);
  padding: 0.4rem 1rem; border-radius: 999px;
}

/* ── Project overlay: Figma presentation view ── */
.proj-overlay { position: fixed; inset: 0; z-index: 80; }
.proj-overlay[hidden] { display: none; }
.po-backdrop {
  position: absolute; inset: 0;
  background: rgba(18, 10, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.po-window {
  position: absolute; inset: clamp(0.5rem, 2vw, 1.5rem);
  background: #170e22;
  border: 1px solid rgba(253, 251, 255, 0.08);
  border-radius: 18px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.po-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: rgba(253, 251, 255, 0.04);
  border-bottom: 1px solid rgba(253, 251, 255, 0.08);
  color: var(--white);
}
.po-bar-left { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; }
.po-fig-icon { width: 11px; height: 11px; border-radius: 3px; background: linear-gradient(135deg, var(--violet), var(--rose)); }
.po-file { opacity: 0.55; }
.po-sep { opacity: 0.35; }
.po-bar-right { display: flex; align-items: center; gap: 0.9rem; }
.po-zoom {
  font-size: 0.8125rem; color: rgba(253, 251, 255, 0.65);
  background: rgba(253, 251, 255, 0.07);
  padding: 0.2rem 0.6rem; border-radius: 6px;
}
.po-close { color: var(--white); font-size: 1rem; padding: 0.3rem 0.6rem; border-radius: 8px; transition: background-color 150ms ease; }
.po-close:hover { background: rgba(253, 251, 255, 0.12); }
.po-body {
  flex: 1; display: grid; grid-template-columns: 1.5fr 1fr;
  min-height: 0; overflow-y: auto;
}
.po-stage {
  display: grid; place-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background-image: radial-gradient(rgba(253, 251, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  min-height: 0;
}
.po-frame-wrap { position: relative; width: min(100%, 660px); }
.po-frame-label { display: block; margin-bottom: 0.55rem; font-size: 0.72rem; color: rgba(253, 251, 255, 0.5); }
.po-frame { border-radius: 16px; overflow: hidden; }
.po-frame .mockup { width: 100%; }
.po-selection { inset: 24px -8px -8px; }
.po-info {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  color: var(--white);
  border-left: 1px solid rgba(253, 251, 255, 0.08);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.po-case { font-size: 0.75rem; color: var(--rose); letter-spacing: 0.1em; }
.po-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -0.01em; }
.po-role { font-size: 0.78rem; color: rgba(253, 251, 255, 0.55); }
.po-desc { color: rgba(253, 251, 255, 0.8); font-size: 1.02rem; }
.po-chips-label { font-size: 0.72rem; color: rgba(253, 251, 255, 0.45); margin-top: 0.3rem; }
.po-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.po-chip {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--white);
  border: 1px solid rgba(253, 251, 255, 0.25);
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.po-link { align-self: flex-start; margin-top: 0.6rem; background: var(--violet); border-color: var(--violet); }
.po-link:hover { background: var(--rose); border-color: var(--rose); }
.po-nav {
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  padding: 0.7rem;
  border-top: 1px solid rgba(253, 251, 255, 0.08);
  color: var(--white);
}
.po-arrow { color: var(--white); font-size: 1rem; width: 42px; height: 36px; border-radius: 10px; transition: background-color 150ms ease; }
.po-arrow:hover { background: rgba(253, 251, 255, 0.12); }
.po-counter { font-size: 0.78rem; color: rgba(253, 251, 255, 0.5); }
@media (max-width: 900px) {
  .po-body { grid-template-columns: 1fr; }
  .po-info { border-left: none; border-top: 1px solid rgba(253, 251, 255, 0.08); }
}

/* ── Marquee ───────────────────────────────── */
.marquee {
  background: var(--ink); color: var(--white);
  overflow: hidden; padding: 1.1rem 0;
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-seq {
  display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  white-space: nowrap;
}
.marquee-seq i { font-style: normal; color: var(--rose); font-size: 0.8em; }

/* ── Sections shared ───────────────────────── */
.section { position: relative; padding: clamp(5rem, 12vh, 9rem) var(--pad-x); }

/* ghost titles: huge outlined words drifting behind sections */
.ghost-title {
  position: absolute; top: 0; right: 0; z-index: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(5rem, 16vw, 14rem);
  line-height: 1; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(33, 20, 48, 0.09);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}
.about .ghost-title { -webkit-text-stroke-color: rgba(253, 251, 255, 0.07); }
.ghost-center { right: auto; left: 0; width: 100%; text-align: center; }

/* sparkles left behind while dragging the photo */
.sparkle {
  position: fixed; z-index: 95;
  pointer-events: none; user-select: none;
  font-size: 1.05rem; line-height: 1;
}
.section-head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section-label {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--ink-soft);
  border: 1px solid rgba(23,20,31,0.2);
  padding: 0.25rem 0.7rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.02; letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ── Work ──────────────────────────────────── */
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.project:nth-child(even) { transform: translateY(clamp(1.5rem, 4vw, 4rem)); }
.project { cursor: pointer; }
.project-frame { position: relative; }
.frame-name {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 0.5rem;
  transition: color 200ms ease;
}
.project:hover .frame-name { color: var(--violet); }
.frame-open {
  color: var(--violet);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 200ms ease, transform 250ms var(--ease-out-quint);
}
.project:hover .frame-open { opacity: 1; transform: none; }
.mockup {
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(1rem, 2.5vw, 2rem);
  transition: transform 400ms var(--ease-out-quint);
  will-change: transform;
}
.project:hover .mockup { transform: scale(0.985); }
.mock-glow {
  position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(70px); opacity: 0.55; pointer-events: none;
  right: -15%; bottom: -25%;
}

/* selection box appears on hover over project frames */
.sel-hover { opacity: 0; inset: -6px; top: 18px; transition: opacity 200ms ease; z-index: 3; }
.project:hover .sel-hover { opacity: 1; }
.sel-hover .dim-chip { bottom: -1.8rem; }

/* FX Replay — dark trading dashboard */
.mockup-fx { background: #10141f; gap: 8%; }
.mockup-fx .mock-glow { background: #3b82f6; }
.mock-nav { display: flex; align-items: center; gap: 4%; }
.mock-logo { width: 9%; aspect-ratio: 1; border-radius: 6px; background: #3b82f6; }
.mock-pill { width: 12%; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.18); }
.mock-search {
  width: 70%; margin: 0 auto; height: 14%; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; padding: 0 4%;
}
.mock-search-line { width: 34%; height: 7px; border-radius: 99px; background: rgba(255,255,255,0.25);
  animation: pulse-w 2.6s ease-in-out infinite; }
@keyframes pulse-w { 0%,100% { width: 34%; } 50% { width: 52%; } }
.mock-cards { display: flex; gap: 4%; flex: 1; }
.mock-card {
  flex: 1; border-radius: 8px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8% 6%; display: flex; flex-direction: column; gap: 12%;
}
.mock-card span { display: block; height: 7px; border-radius: 99px; background: rgba(255,255,255,0.22); width: 80%; }
.mock-card span + span { width: 55%; opacity: 0.6; }
.mock-card:nth-child(2) { animation: float-y 4s ease-in-out infinite; }
.mock-card:nth-child(1) { animation: float-y 4s ease-in-out 0.6s infinite; }
.mock-card:nth-child(3) { animation: float-y 4s ease-in-out 1.2s infinite; }
@keyframes float-y { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6%);} }

/* Chill it — icy cool */
.mockup-chill { background: linear-gradient(160deg, #dff3f6 0%, #bfe4ee 100%); justify-content: center; align-items: flex-start; gap: 7%; }
.mockup-chill .mock-glow { background: #22d3ee; left: -15%; top: -25%; right: auto; bottom: auto; }
.mock-blob {
  position: absolute; right: 8%; top: 12%; width: 34%; aspect-ratio: 1;
  background: linear-gradient(200deg, #0e7490, #22d3ee);
  border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%;
  animation: blob-morph 7s ease-in-out infinite;
}
@keyframes blob-morph {
  0%,100% { border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%; transform: rotate(0deg); }
  50% { border-radius: 45% 55% 42% 58% / 48% 52% 48% 52%; transform: rotate(8deg); }
}
.mock-hero-lines { display: grid; gap: 24%; width: 48%; }
.mock-hero-lines span { height: 12px; border-radius: 99px; background: #0e3a47; display: block; }
.mock-hero-lines span:last-child { width: 65%; opacity: 0.55; }
.mock-btn-row { display: flex; gap: 5%; width: 48%; }
.mock-btn { width: 34%; height: 16px; border-radius: 99px; background: #0e7490; }
.mock-btn-o { background: transparent; border: 1.5px solid #0e7490; }

/* Offsiteio — warm tiles */
.mockup-offsite { background: #f7efe6; }
.mockup-offsite .mock-glow { background: var(--rose); }
.mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; flex: 1; }
.mock-tile { border-radius: 8px; background: linear-gradient(145deg, #e8804f, #d4552c); }
.mock-tile:nth-child(2) { background: linear-gradient(145deg, #2d4a43, #1d332e); animation: float-y 5s ease-in-out 0.4s infinite; }
.mock-tile:nth-child(3) { background: linear-gradient(145deg, #e5c565, #d9a83f); animation: float-y 5s ease-in-out 1s infinite; }
.mock-tile:nth-child(4) { background: linear-gradient(145deg, #b0715a, #8f4f3b); }
.mock-tile:nth-child(1) { animation: float-y 5s ease-in-out infinite; }

/* Folka — bold type media */
.mockup-folka { background: var(--ink); justify-content: space-between; }
.mockup-folka .mock-glow { background: var(--violet); }
.mock-type {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: 0.02em;
  color: var(--white); line-height: 1;
  animation: tracking-breathe 5s ease-in-out infinite;
}
@keyframes tracking-breathe { 0%,100% { letter-spacing: 0.02em; } 50% { letter-spacing: 0.12em; } }
.mock-strips { display: grid; gap: 10px; }
.mock-strips span { display: block; height: 10px; border-radius: 99px; }
.mock-strips span:nth-child(1) { background: var(--violet); width: 72%; }
.mock-strips span:nth-child(2) { background: var(--rose); width: 48%; }
.mock-strips span:nth-child(3) { background: rgba(251,250,255,0.35); width: 60%; }

.project-info { margin-top: 1.4rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.project-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em;
}
.project-role { font-size: 0.75rem; color: var(--ink-soft); max-width: 22rem; text-align: right; }

/* ── About ─────────────────────────────────── */
.about { background: var(--ink); color: var(--white); }
.about .section-label { color: rgba(251,250,255,0.6); border-color: rgba(251,250,255,0.25); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.7fr;
  grid-template-areas:
    "photo text"
    "photo panel";
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
  grid-template-rows: auto 1fr;
}
.about-left { grid-area: photo; align-self: center; }
.about-text { grid-area: text; }
.about-panel { grid-area: panel; max-width: 560px; align-self: end; }

/* ── Photo sticker: a draggable layer on the canvas ── */
.me-sticker {
  position: relative;
  max-width: 380px;
  touch-action: manipulation;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .me-sticker { cursor: grab; }
  .me-sticker.is-dragging { cursor: grabbing; }
}
.me-label { display: block; color: rgba(251,250,255,0.5); }
.me-sticker:hover .me-label { color: var(--rose); }
.me-tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.me-img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.45));
  user-select: none; -webkit-user-drag: none;
}
.me-selection {
  opacity: 0; inset: 2px -6px -6px;
  border-color: var(--rose);
  transition: opacity 200ms ease;
}
.me-selection .handle { border-color: var(--rose); }
.me-selection .dim-chip { background: var(--rose); bottom: -1.9rem; }
.me-sticker:hover .me-selection { opacity: 1; }
.me-sticker.is-dragging .me-selection { opacity: 1; }
.me-badge {
  position: absolute; right: -34px; bottom: -6px;
  width: clamp(88px, 10vw, 122px); height: auto;
  animation: badge-spin 14s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes badge-spin { to { transform: rotate(360deg); } }
.me-badge-core { fill: var(--rose); }
.me-badge-text { fill: var(--white); font-size: 10.5px; letter-spacing: 0.12em; }
.me-badge-emoji { fill: var(--white); font-size: 16px; }
.me-hint {
  display: inline-block; margin-top: 1.4rem;
  font-size: 0.75rem; color: rgba(251,250,255,0.45);
}
.about-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.25; letter-spacing: -0.01em;
}
.about-text .w { opacity: 0.15; transition: none; }
.about-text em { color: var(--rose); }

.about-panel, .layers-panel {
  border: 1px solid rgba(23,20,31,0.15);
  border-radius: 16px; overflow: hidden;
  background: var(--white);
  color: var(--ink);
}
.about-panel { border-color: rgba(251,250,255,0.18); background: rgba(251,250,255,0.05); color: var(--white); }
.panel-head {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: lowercase;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(23,20,31,0.12);
}
.about-panel .panel-head { border-color: rgba(251,250,255,0.15); }
.panel-list { padding: 0.6rem 0; }
.panel-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 1.2rem; font-size: 0.8125rem;
}
.panel-row dt { opacity: 0.55; }
.panel-row dd { text-align: right; }
.panel-status { display: inline-flex; align-items: center; gap: 0.45rem; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3ddc84;
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(61,220,132,0.5);} 50% { box-shadow: 0 0 0 6px rgba(61,220,132,0);} }

/* ── Experience ────────────────────────────── */
.exp-grid {
  display: grid; grid-template-columns: 1fr 1.8fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.layers-panel { position: sticky; top: 6rem; }
.layers-list { list-style: none; }
.layer {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem 1.2rem; font-size: 0.875rem;
  border-top: 1px solid rgba(23,20,31,0.07);
  transition: background-color 150ms ease, color 150ms ease;
}
.layer:hover { background: var(--violet); color: var(--white); }
.layer-icon { width: 1.2em; text-align: center; opacity: 0.6; }
.layer-eye { margin-left: auto; font-size: 0.7em; opacity: 0.35; }

.services { display: grid; }
.service {
  padding: 2rem 0;
  border-top: 1px solid rgba(23,20,31,0.15);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem;
  transition: padding-left 300ms var(--ease-out-quint);
}
.service:hover { padding-left: 1.25rem; }
.service:last-child { border-bottom: 1px solid rgba(23,20,31,0.15); }
.service-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -0.01em;
}
.service-desc { color: var(--ink-soft); font-size: 1rem; }

/* ── Contact ───────────────────────────────── */
.contact {
  position: relative;
  text-align: center;
  padding-top: clamp(6rem, 15vh, 11rem);
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 108%, rgba(101, 80, 255, 0.22), transparent 70%),
    var(--canvas);
}
.contact-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 7.5vw, 6.5rem);
  line-height: 1.02; letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.contact-links {
  display: flex; gap: clamp(1.25rem, 4vw, 3rem); flex-wrap: wrap; justify-content: center;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  font-size: 0.875rem;
}
.contact-link { position: relative; }
.contact-link::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 250ms var(--ease-out-quint);
}
.contact-link:hover::after { transform: scaleX(1); transform-origin: left; }
.footer {
  margin-top: clamp(4rem, 10vh, 7rem);
  padding: 1.5rem 0;
  width: 100%;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--ink-soft);
  border-top: 1px solid rgba(23,20,31,0.12);
}

/* ── Reveal defaults (JS sets initial state) ── */
[data-reveal] { will-change: transform, opacity; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .project:nth-child(even) { transform: none; }
  .about-grid, .exp-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-areas: "photo" "text" "panel"; }
  .me-sticker { max-width: 300px; }
  .me-badge { right: -12px; }
  .layers-panel { position: static; }
  .service { grid-template-columns: 1fr; gap: 0.5rem; }
  .project-role { text-align: left; }
  .fc-1 { right: 6%; }
}

/* ── Reduced motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .title-caret, .hero-scroll-line::after, .mock-card, .mock-tile,
  .mock-blob, .mock-type, .mock-search-line, .status-dot, .me-badge,
  .comment-pin { animation: none; }
  .marquee-track { transform: none !important; }
  .nav-link::after, .contact-link::after, .btn, .mockup, .service { transition: none; }
  .about-text .w { opacity: 1; }
}
