/* Base look of fernandacreates.com: light page, ink caption boxes like the videos, one rec-red accent, plus nav and hero. */

:root {
  --bg: #FBFBFA;
  --surface: #FFFFFF;
  --surface-2: #F1F1EE;
  --line: rgba(17, 17, 19, 0.09);
  --text: #111113;
  --text-2: rgba(17, 17, 19, 0.68);
  --text-3: rgba(17, 17, 19, 0.52);
  --ink: #111113;
  --on-ink: #F4F3F1;
  --on-ink-2: rgba(244, 243, 241, 0.66);
  --accent: #FF4733;
  --accent-text: #D3301B;
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --shadow: 0 1px 2px rgba(17, 17, 19, 0.06), 0 12px 32px -12px rgba(17, 17, 19, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Caption box: the label style from the videos themselves. */
.cap {
  display: inline-block;
  background: var(--ink); color: var(--on-ink);
  font-weight: 700; font-size: 14px; line-height: 1.3;
  padding: 4px 10px; border-radius: 6px;
}
.cap-light { background: var(--on-ink); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: 15px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 160ms;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(17, 17, 19, 0.45); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -14px rgba(17, 17, 19, 0.3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* Reading progress */
.progress { position: fixed; z-index: 30; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 68px; padding: 0 var(--gutter);
  transition: background-color 240ms, box-shadow 240ms;
}
.nav.scrolled { background: rgba(251, 251, 250, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.03em; display: inline-flex; align-items: flex-start; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 4px 0 0 3px; animation: rec 2.4s ease-in-out infinite; }
@keyframes rec { 0%, 60%, 100% { opacity: 1; } 75% { opacity: 0.25; } }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--text-2); }
.nav-links a { position: relative; transition: color 160ms; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 260ms var(--ease-out); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang { height: 38px; min-width: 44px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.lang:hover { color: var(--text); background: var(--surface-2); }

/* Hero */
.hero { --copy: min(560px, 44vw); position: relative; min-height: 100svh; display: flex; align-items: center; padding: 96px var(--gutter) 56px; isolation: isolate; }
.canvas {
  position: absolute; inset: 0 0 0 calc(var(--gutter) + var(--copy) - 48px); z-index: -1;
  overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%);
}
.canvas.dragging { cursor: grabbing; }
.canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0, transparent 14%, transparent 84%, var(--bg) 100%); }
.canvas-world { position: absolute; inset: 0; }
.card {
  position: absolute; top: 0; left: 0; width: var(--cw); aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
  box-shadow: var(--shadow); will-change: transform;
  opacity: 0; transition: opacity 700ms var(--ease-out);
}
.card.ready { opacity: 1; }
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 600ms var(--ease-out); }
.card:hover img { transform: scale(1.06); }
.card-views { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.card-views svg, .phone-views svg { width: 12px; height: 12px; fill: currentColor; }
.canvas-hint { position: absolute; right: var(--gutter); bottom: 28px; font-size: 13px; color: var(--text-3); pointer-events: none; transition: opacity 400ms; }
.canvas.touched .canvas-hint { opacity: 0; }

.hero-copy { position: relative; width: var(--copy); }
.hero h1 { font-size: clamp(40px, 4.6vw, 70px); margin-top: 20px; }
.lead { color: var(--text-2); font-size: clamp(17px, 1.5vw, 19px); margin-top: 20px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; align-items: flex-end; gap: 16px; margin-top: 44px; }
.hero-big { font-size: clamp(56px, 6.4vw, 92px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.9; }
.hero-proof-label { color: var(--text-2); font-size: 15px; max-width: 18ch; padding-bottom: 6px; }
.plus { color: var(--accent); }

/* Motion: headline words, load-in pieces, the label pop */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; animation: rise 900ms var(--ease-out) calc(120ms + var(--i) * 70ms) both; }
.rise { animation: fade-up 800ms var(--ease-out) calc(var(--d) * 90ms + 200ms) both; }
.cap-pop { animation: pop 520ms var(--ease-pop) 100ms both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.86) translateY(8px); } to { opacity: 1; transform: none; } }

/* Scroll reveals (set up by main.js) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Endless rows (brands, photos) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.toast { position: fixed; z-index: 40; left: 50%; bottom: 28px; transform: translate(-50%, 16px) scale(0.9); opacity: 0; transition: transform 300ms var(--ease-pop), opacity 200ms; pointer-events: none; }
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; padding-top: 0; }
  .canvas { position: relative; inset: auto; height: 58svh; min-height: 380px; margin: 0 calc(-1 * var(--gutter)); -webkit-mask-image: none; mask-image: none; }
  .canvas-hint { display: none; }
  .hero-copy { margin-top: -40px; width: auto; }
}
@media (max-width: 560px) {
  .nav .btn-sm { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-big { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}
