/* =========================================================
   Gabi Cordeiro — site
   Paleta: rosa #d65884, laranja #ff7a00, off-white #fff8f5,
   rosa claro #ffe3ec, preto #1e1e1e, amarelo #f6fbb9
   ========================================================= */

:root {
  --bg: #FFF8F5;
  --bg-2: #FFE3EC;
  --surface: #FFFFFF;
  --ink: #1E1E1E;
  --ink-soft: #2B2B2B;
  --ink-2: #4A4A4A;
  --ink-3: #6B6B6B;
  --line: rgba(30, 30, 30, .12);
  --line-dark: rgba(255, 248, 245, .14);
  --accent: #D65884;          /* rosa: títulos, destaques grandes */
  --accent-deep: #B23D6B;     /* rosa escuro: textos pequenos sobre claro */
  --accent-soft: #FFE3EC;
  --orange: #FF7A00;
  --yellow: #F6FBB9;
  --on-dark: #FFF8F5;
  --on-dark-2: rgba(255, 248, 245, .72);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --safe-top: env(safe-area-inset-top, 0px);   /* área do "notch" no iPhone */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--safe-top)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
main { overflow-x: clip; background: var(--bg); }
body::after {
  /* granulado sutil */
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.flor { width: 1em; height: 1em; flex: none; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  padding: .75rem 1rem; background: var(--yellow); color: var(--ink); border-radius: 999px;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

/* ---------- Tipografia ---------- */
h1, h2, h3, .brand, blockquote, .ghost, .card-num, .step-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.7rem, 1.6rem + 5vw, 5.6rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4rem); line-height: 1.05; }
h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); line-height: 1.15; }
h1 em, h2 em, blockquote em, .brand em {
  font-style: italic; color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--ink-2); max-width: 34ch; margin-top: 1.5rem; }
.section-label {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 1rem;
}
.section-label::before {
  content: ""; width: 1.05em; height: 1.05em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='4.5' r='3.2'/%3E%3Ccircle cx='12' cy='19.5' r='3.2'/%3E%3Ccircle cx='4.5' cy='12' r='3.2'/%3E%3Ccircle cx='19.5' cy='12' r='3.2'/%3E%3Ccircle cx='6.7' cy='6.7' r='3.2'/%3E%3Ccircle cx='17.3' cy='6.7' r='3.2'/%3E%3Ccircle cx='6.7' cy='17.3' r='3.2'/%3E%3Ccircle cx='17.3' cy='17.3' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='3.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='4.5' r='3.2'/%3E%3Ccircle cx='12' cy='19.5' r='3.2'/%3E%3Ccircle cx='4.5' cy='12' r='3.2'/%3E%3Ccircle cx='19.5' cy='12' r='3.2'/%3E%3Ccircle cx='6.7' cy='6.7' r='3.2'/%3E%3Ccircle cx='17.3' cy='6.7' r='3.2'/%3E%3Ccircle cx='6.7' cy='17.3' r='3.2'/%3E%3Ccircle cx='17.3' cy='17.3' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='3.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.eyebrow .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.section-intro { color: var(--ink-2); max-width: 52ch; margin-top: 1rem; }

/* anotações à mão */
.hand {
  font-family: var(--font-hand); font-weight: 600;
  font-size: clamp(1.35rem, 1.15rem + .6vw, 1.8rem); line-height: 1.1;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: .3rem;
  transform: rotate(-3deg); transform-origin: left center;
  margin-top: 1rem;
}
.hand svg { width: 1.5em; height: 1.5em; flex: none; }

/* seções escuras */
.dark { background: var(--ink); color: var(--on-dark); }
.dark .section-label { color: var(--yellow); }
.dark h2 em, .dark h1 em { color: var(--yellow); }
.dark .section-intro { color: var(--on-dark-2); }
.dark .hand { color: var(--yellow); }
.pink { background: var(--bg-2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--orange); color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(255, 122, 0, .6); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); transform: translateY(-2px); }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: var(--orange); color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255, 122, 0, .7); }
.btn-outline { border-color: rgba(255, 248, 245, .35); color: var(--on-dark); }
.btn-outline:hover { border-color: var(--on-dark); background: rgba(255, 248, 245, .08); transform: translateY(-2px); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  color: var(--on-dark);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header::before {
  /* o fundo desfocado fica nesta camada: se ficasse na própria barra, o menu aberto (position: fixed)
     ficaria preso dentro da altura dela e apareceria sem fundo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.scrolled { color: var(--ink); }
.site-header.scrolled::before {
  background: rgba(255, 248, 245, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; z-index: 2; }
.site-header:not(.scrolled) .brand em { color: var(--yellow); }
.nav-links { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); }
.nav-links a:not(.btn) {
  position: relative; padding: .5rem .1rem; font-weight: 500; color: inherit; opacity: .8;
  transition: opacity .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { padding-block: .7rem; min-height: 44px; }
.site-header:not(.scrolled) .nav-cta { background: var(--yellow); color: var(--ink); }
.site-header:not(.scrolled) .nav-cta:hover { background: var(--orange); }
.menu-toggle {
  display: none; position: relative; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
}
.menu-toggle span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 27px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- Hero (escuro, sol atrás dela) ---------- */
.hero {
  position: relative;
  background: var(--ink); color: var(--on-dark);
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--safe-top) + 1rem);
  padding-bottom: 3.5rem;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; left: -25%; bottom: -35%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center, rgba(214, 88, 132, .38), rgba(214, 88, 132, 0) 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero-copy { position: relative; z-index: 3; }
.hero .eyebrow { color: var(--on-dark-2); }
.hero .eyebrow .dot { background: var(--yellow); box-shadow: 0 0 0 4px rgba(246, 251, 185, .18); }
.hero h1 em { color: var(--yellow); }
.hero .lead { color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; color: rgba(255, 248, 245, .75); font-size: .85rem; font-weight: 500; }
.hero-tags li { padding: .4rem .8rem; border: 1px solid rgba(255, 248, 245, .18); border-radius: 999px; line-height: 1; }

.hero-visual {
  position: relative;
  width: min(100%, 540px, 58vh);
  aspect-ratio: 1 / 1.25;
  margin: 15% auto 0;
}
.rays {
  /* pétalas de luz atrás do sol: centro alinhado ao centro do sol */
  position: absolute; left: 50%; top: 51.6%; width: 142%; aspect-ratio: 1;
  translate: -50% -50%; overflow: visible;
  fill: var(--yellow); opacity: .12;
  animation: spin 90s linear infinite;
  pointer-events: none;
}
.sun {
  position: absolute; left: 8%; right: 8%; top: 18%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--yellow) 0%, var(--orange) 55%, var(--accent) 100%);
  box-shadow: 0 0 110px 20px rgba(255, 122, 0, .2);
}
.sun::after {
  /* o sol se pondo no escuro, só na base */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(to bottom, transparent 64%, var(--ink) 100%);
}
.ghost {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); z-index: 1;
  font-size: clamp(6rem, 18vw, 12rem); font-style: italic; line-height: 1;
  color: rgba(255, 248, 245, .08); letter-spacing: -.05em; white-space: nowrap;
  pointer-events: none; user-select: none;
}
.portrait {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  width: 96%; height: auto; transform: translateX(-50%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
  will-change: transform;
}
.chip {
  position: absolute; z-index: 3;
  padding: .6rem 1.05rem; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: .9rem; line-height: 1;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  animation: float 6s ease-in-out infinite;
}
.chip-1 { top: 36%; left: -6%; transform: rotate(-8deg); animation-delay: 0s; background: var(--yellow); }
.chip-2 { top: 50%; right: -8%; transform: rotate(6deg); animation-delay: -2s; }
.chip-3 { bottom: 22%; left: -10%; transform: rotate(-4deg); animation-delay: -4s; background: var(--accent); color: var(--ink); }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.hero-note { position: absolute; z-index: 3; top: -10%; right: -2%; margin: 0; transform: rotate(5deg); color: var(--yellow); }
.hero-note svg { transform: rotate(60deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Faixa ---------- */
.marquee {
  position: relative; z-index: 3;
  background: var(--accent); color: var(--ink);
  transform: rotate(-1.3deg) scale(1.02);
  margin-block: -1.75rem;
  overflow: hidden;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.2rem;
  width: max-content; padding: 1.1rem 0;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .8vw, 1.6rem); font-weight: 400;
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1; letter-spacing: -.01em;
}
.marquee-track span { white-space: nowrap; }
.marquee-track .flor { width: 1.15rem; height: 1.15rem; color: var(--yellow); --flor-miolo: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section-head-row .hand { margin-top: 0; margin-bottom: .5rem; }

/* Sobre */
.about { padding-top: clamp(6rem, 12vw, 10rem); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-quote { position: sticky; top: calc(var(--header-h) + var(--safe-top) + 2rem); }
.about-quote blockquote p {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -.025em;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--ink-2); max-width: 58ch; }
.about-text p + p { margin-top: 1rem; }

/* Serviços (escuro) */
.services { border-radius: var(--radius-lg); margin-inline: clamp(.5rem, 1.5vw, 1.5rem); margin-top: clamp(1rem, 3vw, 2rem); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ink-soft); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  color: var(--on-dark);
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card-num { font-style: italic; font-size: 1.6rem; color: var(--yellow); margin-bottom: 2.5rem; }
.card h3 { margin-bottom: .75rem; }
.card p { color: var(--on-dark-2); transition: color .35s var(--ease); }
.card ul { margin-top: 1.5rem; display: grid; gap: .55rem; padding-bottom: .25rem; }
.card li { display: flex; align-items: center; gap: .65rem; font-weight: 500; }
.card li::before {
  content: ""; width: 1.4rem; height: 1.4rem; border-radius: 50%; flex: none;
  background: rgba(246, 251, 185, .14) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6FBB9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  transition: background-color .35s var(--ease);
}
.card-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 2rem; font-weight: 600; color: var(--yellow); transition: color .35s var(--ease); }
.card-link .icon { transition: transform .25s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }
@media (hover: hover) {
  .card:hover { transform: translateY(-8px); background: var(--accent); color: var(--ink); border-color: var(--accent); box-shadow: 0 18px 32px -16px rgba(214, 88, 132, .6); }
  .card:hover p { color: rgba(30, 30, 30, .78); }
  .card:hover .card-num, .card:hover .card-link { color: var(--ink); }
  .card:hover li::before { background-color: rgba(30, 30, 30, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1E1E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
}
/* o bloco começa recolhido e cresce junto com a rolagem (altura controlada pelo main.js) */
.skills-wrap { overflow: hidden; }
.js .skills-wrap { height: 0; }
.js .skills-wrap.open { height: auto; }
.skills-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.js .skills-inner { opacity: 0; }
.js .skills-wrap.open .skills-inner { opacity: 1; }
.skills-inner > * { margin-top: clamp(3rem, 6vw, 4.5rem); }
.skills-inner::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line-dark); margin-top: clamp(3rem, 6vw, 4.5rem); margin-bottom: calc(clamp(2rem, 4vw, 3rem) - 2rem); }
.skills-inner > * { margin-top: 0; }

.skills-wrap h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.skills-wrap .hand { margin-top: .5rem; }
.skills { display: flex; flex-wrap: wrap; gap: .6rem; }
.skills li {
  padding: .6rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line-dark); font-weight: 500; font-size: .95rem; color: var(--on-dark);
}
.skills li.tool { background: rgba(246, 251, 185, .12); border-color: transparent; color: var(--yellow); }

/* Cases */
.case {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.case-list { display: grid; gap: 1.25rem; }
.swipe { display: none; }
.case-head { margin-bottom: 1.5rem; }
.case-cat { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; margin-bottom: .4rem; }
.case h3 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); }
.case-block + .case-block { margin-top: 1.1rem; }
.case-block strong { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .3rem; }
.case-block p { color: var(--ink-2); }
.case-link { margin-top: 1.75rem; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-content: start; }
.metric { padding: 1.1rem 1.2rem; background: var(--bg-2); border-radius: var(--radius); }
.metric b {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
  font-variant-numeric: tabular-nums;
}
.metric span { display: block; margin-top: .35rem; font-size: .85rem; color: var(--ink-2); }
.metric i {
  display: inline-block; margin-top: .7rem; padding: .28rem .65rem; border-radius: 999px;
  background: var(--ink); color: var(--yellow); font-style: normal; font-size: .78rem; font-weight: 600;
}

/* Vídeos (molduras de celular, arrasta pro lado) */
.videos { border-radius: var(--radius-lg); margin-inline: clamp(.5rem, 1.5vw, 1.5rem); }
.swipe.always { display: inline-flex; margin: 0 0 .5rem; font-size: 1.5rem; }
.swipe.always.no-scroll { visibility: hidden; }
.video-row {
  display: flex; gap: clamp(.9rem, 2vw, 1.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
  /* folga embaixo para a sombra não ser cortada pela área de rolagem; a margem negativa devolve o espaço */
  padding: .75rem var(--gutter) 3rem; margin: 0 calc(-1 * var(--gutter)) -1.5rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.video-row::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  .video-row { cursor: grab; }
  .video-row.dragging { cursor: grabbing; scroll-snap-type: none; -webkit-user-select: none; user-select: none; }
  .video-row.dragging .frame { pointer-events: none; }
}
.frame {
  position: relative; flex: 0 0 clamp(200px, 17vw, 236px); aspect-ratio: 9 / 16;
  scroll-snap-align: start;
  border-radius: 30px; border: 7px solid var(--ink); background: var(--ink);
  overflow: hidden; isolation: isolate; cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(30, 30, 30, .45);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.frame::before {
  /* "ilha" do celular */
  content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; z-index: 3;
  width: 34%; height: 7px; border-radius: 999px; background: var(--ink);
}
.frame-media { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #FFD3E0, #D65884 60%, #FF7A00); }
.frame:nth-child(2n) .frame-media { background: linear-gradient(160deg, #F6FBB9, #FF7A00 55%, #D65884); }
.frame:nth-child(3n) .frame-media { background: linear-gradient(160deg, #2B2B2B, #D65884); }
.frame-media video, .frame-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-play {
  position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 248, 245, .92); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.frame-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.frame.playing .frame-play { opacity: 0; transform: scale(.8); }
.frame.loading .frame-play { opacity: 1; transform: none; }
.frame.loading .frame-play svg { display: none; }
.frame.loading .frame-play::after {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(30, 30, 30, .22); border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
.frame-label {
  position: absolute; z-index: 2; left: 1rem; bottom: .9rem;
  font-family: var(--font-hand); font-weight: 600; font-size: 1.25rem; color: var(--on-dark);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.frame.wide { flex-basis: clamp(360px, 30vw, 420px); aspect-ratio: 16 / 9; border-radius: 22px; align-self: center; }
.frame.wide::before { display: none; }
.frame.wide .frame-media { border-radius: 14px; }
.frame.started .frame-label { opacity: 0; }
.frame-label { transition: opacity .3s var(--ease); }
/* controles próprios: som, barra arrastável e tempo */
.frame-ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: .5rem;
  padding: 2.25rem .7rem .55rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.frame.started .frame-ui { opacity: 1; pointer-events: auto; }
.frame-mute {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(30, 30, 30, .55); color: #fff;
}
.frame-mute svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.frame-mute .xis { display: none; }
.frame-mute.off .xis { display: inline; }
.frame-mute.off .ondas { display: none; }
.frame-bar {
  /* área de toque alta, trilho fino: arrastar aqui não rola a fileira */
  flex: 1; height: 36px; display: flex; align-items: center; cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.frame-bar-track { display: block; width: 100%; height: 5px; border-radius: 999px; background: rgba(255, 248, 245, .38); overflow: hidden; }
.frame-bar-fill { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--yellow); }
.frame-time { flex: none; min-width: 2.2em; text-align: right; font-size: .72rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.frame video { -webkit-tap-highlight-color: transparent; }
.frame video:not(:fullscreen)::-webkit-media-controls { display: none !important; }
.frame video:fullscreen { object-fit: contain; background: #000; }
.frame-fs {
  position: absolute; z-index: 4; top: 26px; right: 10px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(30, 30, 30, .55); color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.frame.started .frame-fs { opacity: 1; pointer-events: auto; }
.frame.wide .frame-fs { top: 10px; }
.frame-fs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .frame:hover { transform: translateY(-6px); box-shadow: 0 20px 30px -16px rgba(30, 30, 30, .5); }
}

/* Contato + rodapé */
.contact {
  position: relative; overflow: hidden;
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: clamp(5rem, 12vw, 9rem) 0 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.contact::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at center, rgba(214, 88, 132, .5), rgba(214, 88, 132, 0) 60%);
  pointer-events: none;
}
.contact::after {
  content: ""; position: absolute; bottom: -30%; left: -15%; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle at center, rgba(255, 122, 0, .28), rgba(255, 122, 0, 0) 60%);
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(2.6rem, 1.5rem + 5vw, 6rem); max-width: 14ch; }
.contact-intro { margin-top: 1.5rem; max-width: 46ch; color: var(--on-dark-2); font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.contact .hand { display: inline-flex; margin-top: 1.25rem; }
.contact-email {
  display: block; width: max-content; max-width: 100%; margin-top: 1.5rem;
  font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem); font-style: italic;
  color: var(--on-dark); border-bottom: 1px solid rgba(255, 248, 245, .3); padding-bottom: .15rem;
  transition: color .2s, border-color .2s; overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--yellow); border-color: var(--yellow); }
.site-footer { position: relative; z-index: 1; margin-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line-dark); padding: 1.5rem 0 max(1.5rem, env(safe-area-inset-bottom)); font-size: .9rem; color: var(--on-dark-2); }
.footer-row { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.footer-row nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; }
.footer-row nav a { padding: .5rem 0; transition: color .2s; }
.footer-row nav a:hover { color: var(--yellow); }
.made-by { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .35rem; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 248, 245, .55); }
.made-by img { height: 18px; width: auto; opacity: .85; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hand.reveal.in { transform: rotate(-3deg); }
.js .swipe.reveal.in { transform: rotate(-2deg); }
@media (max-width: 640px) { .js .contact .hand.reveal.in { transform: rotate(-2deg); } }
.js .hero-note.reveal.in { transform: rotate(5deg); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: .25rem;
    padding: calc(var(--header-h) + var(--safe-top) + 1rem) var(--gutter) 2rem;
    background: var(--ink); color: var(--on-dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
  .nav-links a:not(.btn) { font-family: var(--font-display); font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.15; padding: .35rem 0; opacity: 1; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1.5rem; font-size: 1.05rem; padding: 1rem 1.6rem; background: var(--yellow); color: var(--ink); }
  body.menu-open { overflow: hidden; }
  .site-header.menu-open { color: var(--on-dark); }
  .site-header.menu-open::before { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .site-header.menu-open .brand em { color: var(--yellow); }

  /* foto primeiro: ela é a estrela */
  .hero { padding-top: calc(var(--header-h) + var(--safe-top) + .5rem); padding-bottom: 3rem; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { order: -1; width: min(100%, 440px); margin-top: 14%; }
  .hero-copy { margin-top: -1.5rem; }
  .hero-actions { justify-content: center; }
  .hero::before { width: 90vw; height: 90vw; left: -40%; bottom: 10%; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-quote { position: static; }
  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .skills-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .skills-inner::before { margin-bottom: 0; }
  .case { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services, .videos { border-radius: var(--radius); margin-inline: .5rem; }
  .about { border-radius: 0 0 var(--radius) var(--radius); }
  .section { padding-block: 3rem; }
  .section-head { margin-bottom: 1.75rem; }
  .swipe { display: flex; justify-content: center; width: 100%; margin-top: 1rem; font-size: 1.7rem; transform: rotate(-2deg); }
  .swipe svg { width: 1.3em; height: 1.3em; transform: rotate(-20deg); }

  /* hero mais curto */
  .hero-visual { width: min(100%, 320px); margin-top: 15%; }
  .hero h1 { font-size: clamp(2.25rem, 1.2rem + 5vw, 5.6rem); }
  .hero .lead { font-size: 1.05rem; margin-top: 1rem; }
  .hero-actions { margin-top: 1.5rem; justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; max-width: 360px; }
  .hero-tags { margin-top: 1.5rem; justify-content: center; }

  /* sobre enxuto */
  .about { padding-top: 4rem; }
  .about-grid { gap: 1.5rem; }
  .about-quote blockquote p { font-size: 1.9rem; }
  .desk-only { display: none; }
        
  /* serviços: cards deslizam pro lado */
  .cards { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 14px var(--gutter) 36px; margin: -14px calc(-1 * var(--gutter)) -28px; scrollbar-width: none; max-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 82%; scroll-snap-align: start; padding: 1.35rem; }
  .card-num { margin-bottom: 1.1rem; font-size: 1.3rem; }
  .card h3 { font-size: 1.4rem; }
  .card p { font-size: .95rem; }
  .card ul { margin-top: 1rem; gap: .4rem; font-size: .95rem; }
  .skills-inner { gap: .75rem; }
  .skills-inner::before { margin-top: 2rem; margin-bottom: .5rem; }
  .skills-wrap h3 { font-size: 1.4rem; }
  .skills-wrap .hand { margin-top: 0; font-size: 1.2rem; }
  .skills { gap: .45rem; }
  .skills li { padding: .4rem .75rem; font-size: .85rem; }

  /* cases: um por vez, deslizando */
  .case-list { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) .5rem; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
  .case-list::-webkit-scrollbar { display: none; }
  .case { flex: 0 0 86%; scroll-snap-align: start; padding: 1.25rem; gap: 1rem; }
  .case h3 { font-size: 1.7rem; }
  .case-head { margin-bottom: 1rem; }
  .case-cat { font-size: .68rem; }
  .case-block p { font-size: .95rem; }
  .case-block.sec { display: none; }
  .case-link { margin-top: 1rem; min-height: 42px; padding: .6rem 1.1rem; font-size: .92rem; }
  .metrics { gap: .5rem; }
  .metric { padding: .75rem .85rem; border-radius: 14px; }
  .metric b { font-size: 1.45rem; }
  .metric span { font-size: .78rem; margin-top: .2rem; }
  .metric i { margin-top: .45rem; font-size: .7rem; padding: .2rem .5rem; }

  /* vídeos no celular */
  .frame { flex-basis: 64%; border-width: 6px; border-radius: 26px; }
  .frame.wide { flex-basis: 92%; border-radius: 18px; }
  .swipe.always { font-size: 1.5rem; }

  .contact { padding-top: 3.5rem; }
  .contact h2 { font-size: clamp(2.2rem, 1.5rem + 5vw, 6rem); }
  .contact-actions { justify-content: center; }
  .contact-actions .btn { width: 100%; max-width: 360px; }
  .contact-actions .btn span { overflow: hidden; text-overflow: ellipsis; }
  .contact .hand { display: flex; justify-content: center; width: 100%; transform: rotate(-2deg); }

  .site-footer { margin-top: 2.5rem; }
  .chip { font-size: .8rem; padding: .5rem .85rem; }
  .chip-1 { left: -3%; }
  .chip-2 { right: -4%; }
  .chip-3 { left: -5%; bottom: 20%; }
  .hero-note { top: -12.5%; right: 0; }
  
@media (max-width: 400px) {
  .hero-actions .btn { width: 100%; }
  .metrics { grid-template-columns: 1fr 1fr; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .skills-wrap { height: auto; }
  .js .skills-inner { opacity: 1; }
  .chip, .marquee-track, .rays { animation: none; }
  .btn, .card { transition: none; }
}
