/* =========================================================
   Agência Home — portfolio site
   Type: Albert Sans (display + text, light & minimal)
         Newsreader italic (editorial accents)
   Colour: brand mocha + blush on a warm off-white base.
   ========================================================= */

:root {
  --cream: #FAF6F0;
  --paper: #FFFDFB;
  --blush: #EFE7DC;
  --blush-2: #E6DACB;
  --rose: #D9C7AE;
  --salmon: #B89573;
  --mocha: #8A6B52;
  --mocha-deep: #6B4E3A;
  --cocoa: #2A211B;
  --ink: #352B22;
  --ink-soft: #665A4C;
  --line: rgba(138, 107, 82, .22);

  --sans: "Albert Sans", "Helvetica Neue", system-ui, sans-serif;
  --italic: "Newsreader", Georgia, serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --section: clamp(72px, 8vw, 116px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(assets/fonts/AlbertSans-normal-300-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(assets/fonts/AlbertSans-normal-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 400; font-display: swap; src: url(assets/fonts/Newsreader-italic-300-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 400; font-display: swap; src: url(assets/fonts/Newsreader-italic-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow-x: hidden; scroll-padding-top: 96px; }
button, a, label, [role="button"] { touch-action: manipulation; }
button, .btn, .nav-cta, .chips span { -webkit-user-select: none; user-select: none; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
  max-width: 100vw;
}
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; }
svg { display: block; }
::selection { background: var(--rose); color: var(--cocoa); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Editorial italic accent */
em, .accent {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.accent { color: var(--mocha); font-size: 1.06em; line-height: .9; }

.display {
  font-weight: 300;
  font-size: clamp(38px, 5vw, 74px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 0;
  color: var(--cocoa);
}

.lede {
  font-size: clamp(16px, 1.2vw, 17.5px);
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 14px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.2;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s var(--ease), color .3s;
  white-space: nowrap;
}
.btn:active, .nav-cta:active, .cover:active .cover-img, .tile:active .tile-img img, .phone:active .phone-frame, .lb-nav:active { transform: scale(0.97); transition-duration: 120ms; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--cocoa); color: var(--cream); box-shadow: 0 10px 26px -14px rgba(42, 33, 27, .6); }
@media (hover: hover) and (pointer: fine) { .btn-dark:hover { background: var(--mocha-deep); transform: translateY(-2px); } }
.btn-rose { background: var(--rose); color: var(--cocoa); }
@media (hover: hover) and (pointer: fine) { .btn-rose:hover { background: var(--salmon); color: var(--cocoa); transform: translateY(-2px); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  color: var(--cocoa);
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(4px); } }
.hero-cta .link-arrow svg { transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) { .hero-cta .link-arrow:hover svg { transform: rotate(90deg) translateX(3px); } }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; height: 44px; position: relative; z-index: 2; flex: none; transition: transform .6s var(--ease); transform-origin: left center; }
.brand-house { width: 30px; height: 30px; color: var(--mocha); flex: none; margin-top: -4px; }
.brand-house path { stroke-width: 3.4; }
.brand-word {
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mocha-deep);
  padding-top: 2px;
}
.brand-script {
  display: block;
  width: 56px; height: 42px;
  margin-left: -6px; margin-top: 4px;
  background: url(assets/brand/home-script-cocoa.webp) center / contain no-repeat;
}

/* ---------- Floating nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px var(--gutter);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  margin: 0 auto;
  max-width: calc(var(--max) - 2 * 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 6px 0;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: max-width .8s var(--ease), padding .8s var(--ease), background .5s, border-color .5s, box-shadow .6s var(--ease), transform .6s var(--ease);
}
.nav.scrolled .nav-inner {
  max-width: 860px;
  padding: 6px 6px 6px 18px;
  background: rgba(250, 246, 240, .8);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  border-color: rgba(138, 107, 82, .18);
  box-shadow: 0 16px 40px -22px rgba(66, 48, 34, .45);
}
.nav.scrolled .brand { transform: scale(.9); }
.nav.hide .nav-inner { transform: translateY(-120%); }

.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; z-index: 1;
  padding: 9px 15px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: color .3s;
}
.nav-links a.active { color: var(--cocoa); }
.nav-pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%;
  border-radius: 999px; background: var(--blush);
  width: var(--pw, 0); transform: translateX(var(--px, 0));
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.nav-pill.on { opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 11px 18px 11px 15px; border-radius: 999px;
  background: var(--cocoa); color: var(--cream);
  font-size: 14px; font-weight: 500;
  transition: background .3s, transform .4s var(--ease);
}
.nav-cta svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) { .nav-cta:hover { background: var(--mocha-deep); } }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; flex: none; border-radius: 50%; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cocoa); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--blush);
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 36px; font-weight: 300; letter-spacing: -.03em; line-height: 1.25; color: var(--cocoa);
  padding: 6px 0; border-bottom: 1px solid var(--line);
  transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s;
}
.mobile-menu .btn { align-self: flex-start; }
.nav-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .45s; }
.nav-open .mobile-menu nav a { transform: none; opacity: 1; }
.nav-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
.nav-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.nav-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
.nav-open .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px var(--gutter) 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #F1EADF 0%, var(--blush) 55%, var(--cream) 100%);
  isolation: isolate;
}
.petals { position: absolute; inset: -10%; z-index: -2; opacity: .9; }
.petals i { position: absolute; border-radius: 50%; display: block; animation: drift 22s ease-in-out infinite alternate; }
.petals i:nth-child(1) { width: 46vw; height: 40vw; left: -6vw; top: 4vh; background: radial-gradient(circle, #CDB391 0%, transparent 68%); }
.petals i:nth-child(2) { width: 40vw; height: 42vw; right: -8vw; top: -6vh; background: radial-gradient(circle, #DCCBB2 0%, transparent 66%); animation-duration: 26s; animation-delay: -6s; }
.petals i:nth-child(3) { width: 34vw; height: 30vw; left: 30vw; bottom: -4vh; background: radial-gradient(circle, #BFA282 0%, transparent 70%); animation-duration: 30s; animation-delay: -12s; opacity: .7; }
.petals i:nth-child(4) { width: 22vw; height: 22vw; left: 18vw; top: 48vh; background: radial-gradient(circle, #EDE3D3 0%, transparent 70%); animation-duration: 18s; }
.petals i:nth-child(5) { width: 26vw; height: 24vw; right: 14vw; bottom: 8vh; background: radial-gradient(circle, #D3BEA1 0%, transparent 70%); animation-duration: 24s; animation-delay: -3s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(4vw, -3vh, 0) scale(1.12) rotate(14deg); }
  100% { transform: translate3d(-3vw, 4vh, 0) scale(.94) rotate(-10deg); }
}

.hero-house {
  position: absolute; z-index: -1;
  width: min(76vh, 82vw); height: min(76vh, 82vw);
  left: 50%; top: 52%; transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, .75);
}
.hero-house path { stroke-width: .35; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 3.2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-copy { position: relative; text-align: center; max-width: 940px; z-index: 2; }
.hero-title {
  font-weight: 300;
  font-size: clamp(44px, 6.8vw, 104px);
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--cocoa);
  margin: 0 0 26px;
}
.hero-title .line { display: block; }
.hero-title .accent { font-size: 1.12em; letter-spacing: -.02em; padding-right: .04em; }
.hero-sub { max-width: 560px; margin: 0 auto 32px; font-size: clamp(16px, 1.2vw, 17.5px); color: var(--ink-soft); }
.hero-cta { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

.floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float {
  position: absolute; margin: 0;
  box-shadow: 0 30px 60px -24px rgba(66, 48, 34, .45), 0 2px 6px rgba(66, 48, 34, .08);
  background: var(--paper);
  opacity: 0;
  animation: floatIn 1.4s var(--ease) forwards;
  will-change: transform;
}
.float img { width: 100%; height: 100%; object-fit: cover; }
.float.f1 { width: clamp(120px, 12vw, 210px); left: 4vw; top: 16vh; --r: -7deg; animation-delay: .5s; }
.float.f2 { width: clamp(110px, 10vw, 180px); left: 13vw; bottom: 9vh; --r: 5deg; animation-delay: .7s; }
.float.f3 { width: clamp(130px, 13vw, 230px); right: 4vw; top: 14vh; --r: 6deg; animation-delay: .6s; }
.float.f4 { width: clamp(110px, 10vw, 175px); right: 14vw; bottom: 8vh; --r: -4deg; animation-delay: .8s; }
.float.f5 { width: clamp(80px, 7vw, 120px); left: 2vw; top: 56vh; --r: 3deg; animation-delay: .9s; }
.float.f6 { width: clamp(90px, 8vw, 140px); right: 1.5vw; top: 54vh; --r: -8deg; animation-delay: 1s; }
.float { transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--r)); }
@keyframes floatIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

.hero-fan { display: none; }

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 48px; background: rgba(42, 33, 27, .15); overflow: hidden; z-index: 3;
}
.scroll-cue span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--cocoa); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- Client logos band ---------- */
.clients-band { background: var(--cocoa); padding: 30px 0; position: relative; z-index: 2; }
.logos-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);
}
.logos-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
@media (hover: hover) and (pointer: fine) { .clients-band:hover .logos-track { animation-play-state: paused; } }
.logos-group { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.mq-logo { display: block; flex: none; width: auto; opacity: .85; transition: opacity .3s; }
@media (hover: hover) and (pointer: fine) { .mq-logo:hover { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */

/* ---------- Portfolio ---------- */
.portfolio { background: var(--paper); padding-top: var(--section); position: relative; }
.cover-cap { transition: opacity 240ms ease; }
.cover.clipped .cover-cap { opacity: 0; visibility: hidden; }


.chapter-title {
  font-weight: 300; font-size: clamp(34px, 3.8vw, 56px); line-height: 1.02; letter-spacing: -.04em;
  margin: 10px 0 16px; color: var(--cocoa);
}
.chapter-title em { color: var(--mocha); font-size: 1.06em; }

/* Chapter 01 — infinite draggable rail */
.rail-section { position: relative; background: var(--blush); padding: clamp(56px, 6vw, 84px) 0; overflow: hidden; }
.rail-intro {
  position: absolute; z-index: 3; left: 0; top: 0; bottom: 0;
  width: calc(var(--gutter) + min(380px, 32vw) + 90px);
  padding: 0 90px 0 var(--gutter);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: linear-gradient(90deg, var(--blush) 0%, var(--blush) 72%, rgba(239, 231, 220, 0) 100%);
  pointer-events: none;
}
.rail-intro > * { pointer-events: auto; }
.rail-intro p { color: var(--ink-soft); font-size: 16px; margin: 0 0 24px; max-width: 34ch; }
.drag-hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-size: 14px; color: var(--mocha-deep);
}
.drag-hint svg { width: 22px; height: 22px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

.rail { position: relative; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rail.dragging { cursor: grabbing; }
.rail-track { display: flex; align-items: flex-start; gap: clamp(26px, 3vw, 48px); width: max-content; will-change: transform; padding: 10px 0 0; }
.cover { flex: none; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.cover-img {
  display: block; height: clamp(320px, 50vh, 440px); aspect-ratio: var(--ar, 0.72);
  background: var(--paper); overflow: hidden; position: relative;
  box-shadow: 0 36px 60px -30px rgba(66, 48, 34, .5), 0 2px 8px rgba(66, 48, 34, .08);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); -webkit-user-drag: none; }
.cover:nth-child(even) { margin-top: 36px; }
@media (hover: hover) and (pointer: fine) { .cover:hover .cover-img { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 54px 80px -34px rgba(66, 48, 34, .6); } }
@media (hover: hover) and (pointer: fine) { .cover:hover .cover-img img { transform: scale(1.04); } }
.cover-cap { display: flex; flex-direction: column; gap: 0; }
.cover-cap b { font-weight: 500; font-size: 16.5px; color: var(--cocoa); line-height: 1.3; letter-spacing: -.01em; }
.cover-cap i { font-style: normal; font-size: 14px; color: var(--mocha-deep); }

.drag-cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cocoa); color: var(--cream);
  font-size: 13px; font-weight: 500;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0.6); opacity: 0;
  transition: transform .35s var(--ease), opacity 200ms ease;
}
.drag-cursor.on { transform: translate3d(var(--x), var(--y), 0) scale(1); opacity: 1; }
.drag-cursor.down { transform: translate3d(var(--x), var(--y), 0) scale(.82); opacity: 1; }

/* Chapters */
.chapter { padding: var(--section) 0; }
.chapter-head { max-width: 540px; margin-bottom: clamp(34px, 4vw, 52px); }
.chapter-head p { color: var(--ink-soft); margin: 0; font-size: 16.5px; }

/* Chapter 02 — internal comms */
.chapter-internal { background: var(--paper); }
.internal { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.internal-side { position: sticky; top: 110px; }
.internal-side p { color: var(--ink-soft); margin: 0 0 26px; font-size: 16.5px; }
.internal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 26px); align-items: start; }
.internal-col { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 26px); }
.internal-col-offset { margin-top: clamp(40px, 6vw, 90px); }

.tile { position: relative; display: flex; flex-direction: column; text-align: left; width: 100%; }
.tile-img {
  display: grid; place-items: center; position: relative; overflow: hidden;
  padding: clamp(22px, 9%, 48px);
  background: var(--bg, var(--blush));
}
.tile-img img {
  width: 100%; height: auto;
  box-shadow: 0 28px 50px -24px rgba(66, 48, 34, .5), 0 2px 6px rgba(66, 48, 34, .1);
  transition: transform 1.1s var(--ease), box-shadow 1.1s var(--ease);
}
.tile-img::after {
  content: "Ver"; position: absolute; right: 16px; top: 16px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cocoa); color: var(--cream);
  font-size: 13px; font-weight: 500;
  opacity: 0; transform: scale(.6); transition: opacity .4s, transform .6s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-img img { transform: translateY(-6px) scale(1.02) rotate(-.6deg); box-shadow: 0 44px 70px -30px rgba(66, 48, 34, .55); } }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-img::after { opacity: 1; transform: none; } }
.tile-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; }
.tile-cap b { font-weight: 500; font-size: 16px; color: var(--cocoa); line-height: 1.3; letter-spacing: -.01em; }
.tile-cap i { font-style: normal; font-size: 13.5px; color: var(--mocha-deep); text-align: right; }
.t-a { --bg: #E7DCCB; }
.t-b { --bg: #E7E0D6; }
.t-c { --bg: #F2ECE3; }
.t-d { --bg: #E6D8C3; }
.t-e { --bg: #D7C6B0; }
.tile-quote { margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--cocoa); }
.tile-quote p { font-weight: 300; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; letter-spacing: -.03em; color: var(--cream); margin: 0; }
.tile-quote em { color: var(--rose); font-size: 1.05em; }

/* Chapter 03 — social */
.chapter-social { background: linear-gradient(180deg, var(--paper) 0%, var(--blush) 22%, var(--rose) 100%); overflow: hidden; }
.chapter-social .chapter-head { margin: 0 auto clamp(20px, 2vw, 28px); text-align: center; max-width: 620px; }
.chapter-social .chapter-head p { margin: 0 auto; color: var(--cocoa); }
.chapter-social p, .chapter-social .phone-cap { color: var(--cocoa); }
.chapter-social .chapter-title em { color: var(--mocha-deep); }
.phones-viewport { overflow: visible; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 5vw, 80px); padding: 50px var(--gutter) 30px; }
.phone { display: flex; flex-direction: column; align-items: center; gap: 16px; will-change: transform; flex: none; }
.phone.clone { display: none; }
.phone:nth-child(2) { margin-top: 70px; }
.phone-frame {
  display: block; width: clamp(200px, 20vw, 290px); aspect-ratio: 398 / 864;
  border-radius: 42px; padding: 11px; background: var(--cocoa);
  box-shadow: 0 50px 90px -40px rgba(42, 33, 27, .7), inset 0 0 0 1.5px #463A2E;
  position: relative; transition: transform .7s var(--ease), opacity .7s;
}
.phone-frame::before { content: ""; position: absolute; top: 19px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); background: var(--cocoa); border-radius: 20px; z-index: 2; }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) { .phone:hover .phone-frame { transform: translateY(-12px) rotate(-1.5deg); } }
.phone-cap { font-size: 14px; font-weight: 500; color: var(--cocoa); }
.phones-dots { display: none; }

/* Chapter 04 — strategy */
.chapter-strategy { background: var(--cocoa); color: var(--blush); position: relative; overflow: hidden; }
.strategy-house { position: absolute; width: 46vw; height: 46vw; right: -12vw; top: -14vw; color: rgba(217, 199, 174, .07); pointer-events: none; }
.strategy-house path { stroke-width: .5; }
.chapter-strategy .wrap { position: relative; }
.chapter-strategy .chapter-title { color: var(--cream); font-size: clamp(38px, 4.6vw, 68px); }
.chapter-strategy .chapter-title em { color: var(--salmon); }
.strategy-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.strategy-intro p { font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.6; color: #DDD2C2; margin: 0 0 30px; max-width: 50ch; }

.report {
  background: var(--cream); color: var(--ink);
  border-radius: 8px; padding: clamp(22px, 2.6vw, 34px);
  box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .8);
  transform: rotate(1.5deg);
  transition: transform .8s var(--ease), opacity 1s var(--ease);
}
.report.in { transform: rotate(1.5deg); }
@media (hover: hover) and (pointer: fine) { .report:hover { transform: rotate(0deg) translateY(-6px); } }
.report-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.report-head svg { width: 38px; height: 38px; color: var(--mocha); flex: none; }
.report-head svg path { stroke-width: 3; }
.report-head b { display: block; font-weight: 500; font-size: 17px; color: var(--cocoa); letter-spacing: -.01em; }
.report-head small { font-size: 13px; color: var(--ink-soft); }
.report-rows { list-style: none; margin: 0; padding: 6px 0; }
.report-rows li { display: grid; grid-template-columns: 9.5em 1fr 7.5em; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.report-rows i.v82 { --v: .82; } .report-rows i.v46 { --v: .46; } .report-rows i.v30 { --v: .3; } .report-rows i.v68 { --v: .68; }
.report-rows i { display: block; height: 6px; border-radius: 6px; background: var(--blush); position: relative; overflow: hidden; }
.report-rows i::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px; background: var(--mocha);
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .3s;
}
.report.in .report-rows i::after { transform: scaleX(var(--v, 0)); }
.report-rows li:nth-child(2) i::after { transition-delay: .45s; }
.report-rows li:nth-child(3) i::after { transition-delay: .6s; }
.report-rows li:nth-child(4) i::after { transition-delay: .75s; }
.tag { justify-self: end; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; letter-spacing: 0; }
.tag-ok { background: #E4EADC; color: #52683F; }
.tag-warn { background: #F5E4CB; color: #8A5A1E; }
.tag-opp { background: var(--blush); color: var(--mocha-deep); }
.report-foot { padding-top: 18px; }
.report-foot small { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.report-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.report-chips span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--cocoa); }

.steps { list-style: none; padding: 0; margin: clamp(56px, 6vw, 88px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px;
  background: rgba(217, 199, 174, .28);
  transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease);
}
.steps.in::before { transform: scaleX(1); }
.step { position: relative; }
.step-icon {
  width: 56px; height: 56px; padding: 13px; border-radius: 50%;
  border: 1px solid rgba(217, 199, 174, .4); background: var(--cocoa); color: var(--rose);
  position: relative; transition: background .4s, color .4s;
}
@media (hover: hover) and (pointer: fine) { .step:hover .step-icon { background: var(--rose); color: var(--cocoa); } }
.step-num { display: block; margin: 22px 0 6px; font-family: var(--italic); font-style: italic; font-size: 18px; color: var(--salmon); }
.step h4 { margin: 0 0 8px; font-weight: 400; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; color: var(--cream); }
.step p { margin: 0; font-size: 15px; color: #C2B4A0; max-width: 30ch; }

/* ---------- Differentials: bento ---------- */
.diffs { background: var(--blush); padding: var(--section) 0; }
.diffs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 60px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.diffs-head .lede { max-width: 40ch; }
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: minmax(0, auto); gap: 14px; }
.b-card {
  background: var(--paper); border-radius: 8px; padding: clamp(24px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .b-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(66, 48, 34, .45); } }
.b-icon { width: 38px; height: 38px; color: var(--mocha); margin-bottom: 26px; }
.b-card h3 { margin: 0 0 8px; font-weight: 400; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; color: var(--cocoa); }
.b-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- About ---------- */
.about { padding: var(--section) 0; background: var(--cream); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; }
.about-house { position: absolute; inset: -6%; width: 112%; height: 112%; color: var(--rose); z-index: 0; }
.about-house path { stroke-width: .5; }
.about-stack { position: absolute; inset: 18% 14% 4% 14%; z-index: 1; }
.about-stack img {
  position: absolute; width: 58%; box-shadow: 0 34px 60px -28px rgba(66, 48, 34, .55); background: var(--paper);
  transition: transform 1s var(--ease);
}
.about-stack img:nth-child(1) { left: 0; top: 6%; transform: rotate(-8deg); }
.about-stack img:nth-child(2) { right: 0; top: 0; width: 62%; transform: rotate(6deg); }
.about-stack img:nth-child(3) { left: 22%; top: 24%; width: 56%; transform: rotate(-1deg); }
@media (hover: hover) and (pointer: fine) { .about-visual:hover .about-stack img:nth-child(1) { transform: rotate(-12deg) translateX(-14px); } }
@media (hover: hover) and (pointer: fine) { .about-visual:hover .about-stack img:nth-child(2) { transform: rotate(10deg) translateX(14px); } }
.about-copy .display { margin-bottom: 22px; }
.about-copy > p { color: var(--ink-soft); max-width: 56ch; margin: 0 0 14px; }
.founders { display: flex; gap: clamp(30px, 5vw, 64px); margin-top: 30px; flex-wrap: wrap; }
.founder { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid var(--rose); }
.sig { font-family: var(--italic); font-style: italic; font-weight: 400; font-size: clamp(26px, 2.2vw, 32px); white-space: nowrap; line-height: 1.15; color: var(--mocha); }
.founder small { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--cocoa); color: var(--blush); padding: var(--section) 0; position: relative; overflow: hidden; }
.contact-house { position: absolute; width: 64vw; height: 64vw; left: -18vw; bottom: -22vw; color: rgba(217, 199, 174, .12); }
.contact-house path { stroke-width: .35; }
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; }
.contact-title { font-weight: 300; font-size: clamp(40px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -.045em; color: var(--cream); margin: 0 0 22px; }
.contact-title .accent { color: var(--rose); }
.contact-copy > p { color: #D3C6B3; max-width: 44ch; margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; border-top: 1px solid rgba(239, 231, 220, .16); flex-wrap: wrap; }
.contact-list li:last-child { border-bottom: 1px solid rgba(239, 231, 220, .16); }
.contact-list span { font-size: 14px; color: var(--salmon); }
.contact-list a { font-weight: 300; font-size: 21px; letter-spacing: -.02em; color: var(--cream); transition: color .3s; word-break: break-all; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { color: var(--rose); } }

.composer { background: var(--cream); color: var(--ink); padding: clamp(26px, 3vw, 42px); border-radius: 8px; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .7); }
.composer-title { font-weight: 300; font-size: 28px; letter-spacing: -.03em; line-height: 1; color: var(--cocoa); margin: 0 0 22px; }
.field { display: block; border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field > span, .field legend { display: block; font-size: 13.5px; font-weight: 500; color: var(--mocha-deep); margin-bottom: 4px; padding: 0; }
.field input[type=text] {
  width: 100%; font: inherit; font-size: 16px; color: var(--cocoa);
  border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 8px 0 10px; outline: none; transition: border-color .3s;
  border-radius: 0;
}
.field input[type=text]::placeholder { color: #766A5A; }
.field input[type=text]:focus { border-color: var(--mocha); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
@media (hover: hover) and (pointer: fine) { .chips label:hover span { border-color: var(--mocha); } }
.chips input:checked + span { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
.chips input:focus-visible + span { outline: 2px solid var(--mocha); outline-offset: 2px; }
.composer .btn { width: 100%; justify-content: center; margin-top: 6px; }
.composer-note { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--cocoa); border-top: 1px solid rgba(239, 231, 220, .1); padding: 36px 0 40px; color: #B3A592; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand-light .brand-house { color: var(--salmon); }
.brand-light .brand-word { color: var(--salmon); }
.brand-light .brand-script { background-image: url(assets/brand/home-script-rose.webp); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14.5px; transition: color .3s; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--cream); } }
.footer-copy { font-size: 13px; margin: 0; width: 100%; color: #BFB09C; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 20px 0 17px; border-radius: 999px;
  background: var(--cocoa); color: var(--cream);
  box-shadow: 0 18px 40px -14px rgba(42, 33, 27, .6), 0 0 0 1px rgba(239, 231, 220, .28);
  transform: translateY(120px); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s, background .3s;
}
.wa-float.show { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { background: var(--mocha-deep); } }
.wa-float svg { width: 23px; height: 23px; color: #9EE2B4; }
.wa-float span { font-size: 14.5px; font-weight: 500; }

/* ---------- Mobile WhatsApp bar ---------- */
.m-cta { display: none; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(36, 25, 20, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; gap: 20px; padding: 40px 80px;
  opacity: 0; transition: opacity .4s;
}
.lb.open { opacity: 1; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); max-width: 1200px; width: 100%; justify-content: center; }
.lb-fig img { max-height: 84vh; max-width: min(60vw, 760px); width: auto; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); background: var(--paper); transform: scale(.96); transition: transform .6s var(--ease), opacity .3s; }
.lb.open .lb-fig img { transform: none; }
.lb-fig figcaption { color: var(--blush); display: flex; flex-direction: column; gap: 6px; max-width: 300px; }
.lb-type { font-size: 14px; color: var(--salmon); }
.lb-title { font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.035em; line-height: 1.08; color: var(--cream); }
.lb-client { font-size: 15px; color: #C2B4A0; margin-bottom: 22px; }
.lb-close { position: absolute; top: 18px; right: 24px; width: 48px; height: 48px; font-size: 34px; line-height: 1; color: var(--blush); font-weight: 300; }
.lb-nav { width: 52px; height: 52px; border: 1px solid rgba(239, 231, 220, .3); border-radius: 50%; display: grid; place-items: center; color: var(--blush); flex: none; transition: background .3s, color .3s; }
@media (hover: hover) and (pointer: fine) { .lb-nav:hover { background: var(--blush); color: var(--cocoa); } }
.lb-nav svg { width: 20px; height: 20px; }
.lb-prev svg { transform: rotate(180deg); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.report.reveal.in { transform: rotate(1.5deg); }
@media (hover: hover) and (pointer: fine) { .report.reveal.in:hover { transform: rotate(0deg) translateY(-6px); } }
@media (hover: hover) and (pointer: fine) { .b-card.reveal.in:hover { transform: translateY(-4px); } }
.bento .reveal:nth-child(2), .step:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .step:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4), .step:nth-child(4) { transition-delay: .24s; }
.bento .reveal:nth-child(5) { transition-delay: .32s; }
.hero-copy .reveal:nth-child(2) { transition-delay: .12s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .3s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .42s; }

:focus-visible { outline: 2px solid var(--mocha); outline-offset: 3px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .float.f5, .float.f6 { display: none; }
  .internal { grid-template-columns: 1fr; }
  .internal-side { position: static; max-width: 560px; }
  .strategy-top { grid-template-columns: 1fr; }
  .report { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .nav-links a { padding: 9px 11px; }
}

@media (max-width: 860px) {
  :root { --section: 68px; --gutter: 20px; }
  body { font-size: 16.5px; }
  .lede { font-size: 16.5px; }

  /* nav: brand + WhatsApp + menu, floating pill once scrolled */
  .nav { padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; }
  html { scroll-padding-top: 84px; scroll-padding-bottom: 96px; }
  .nav-inner { padding: 4px 4px 4px 10px; }
  .nav.scrolled .nav-inner { max-width: none; padding: 4px 4px 4px 14px; }
  .nav.scrolled .brand { transform: scale(.94); }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { gap: 6px; }
  .mobile-menu nav a { font-size: 34px; }

  .hero { padding-top: 100px; padding-bottom: 56px; align-content: center; }
  .floats { display: none; }
  .hero-fan { display: flex; justify-content: center; margin-top: 44px; height: 210px; position: relative; width: 100%; }
  .hero-fan img { position: absolute; width: 124px; box-shadow: 0 24px 40px -20px rgba(66, 48, 34, .5); background: var(--paper); }
  .hero-fan img:nth-child(1) { transform: translateX(-82px) rotate(-10deg); top: 18px; }
  .hero-fan img:nth-child(2) { transform: translateX(82px) rotate(9deg); top: 18px; }
  .hero-fan img:nth-child(3) { z-index: 1; top: 0; width: 134px; }
  .hero-cta { flex-direction: column; gap: 20px; }

  .clients-band { padding: 24px 0; }
  .logos-group { gap: 48px; padding-right: 48px; }
  .logos-group { zoom: .78; }

  
  .display { font-size: clamp(36px, 10vw, 50px); }
  .portfolio-head { grid-template-columns: 1fr; }
  .portfolio-head .lede { justify-self: start; }

  .chapter-title { font-size: clamp(34px, 9.4vw, 44px); }
  .chapter-head p, .rail-intro p, .internal-side p { font-size: 16.5px; }

  /* jornais rail: keeps drifting, swipe to drag */
  .rail-section { padding: 60px 0 50px; }
  .rail-intro { position: static; width: auto; padding: 0 var(--gutter); background: none; margin-bottom: 28px; }
  .drag-hint { display: inline-flex; margin-top: 18px; }
  .rail { cursor: auto; }
  .rail-track { gap: 18px; padding-left: var(--gutter); }
  .cover:nth-child(even) { margin-top: 0; }
  .cover-img { height: 340px; }
  .cover-cap b { font-size: 17px; }
  .drag-cursor { display: none; }

  .internal-grid { grid-template-columns: 1fr; gap: 30px; }
  .internal-col-offset { margin-top: 0; }
  .internal-col { gap: 30px; }
  .tile-img { padding: 26px; }
  .tile-cap { flex-direction: column; gap: 0; }
  .tile-cap b { font-size: 17px; }
  .tile-cap i { font-size: 14px; text-align: left; }
  .tile-img::after { display: none; }

  /* social: auto-sliding infinite carousel, middle phone first */
  .chapter-social .chapter-head { text-align: left; margin: 0 0 30px; }
  .phones-viewport { overflow: hidden; }
  .phones { justify-content: flex-start; gap: 18px; padding: 10px 0 18px; width: max-content; transition: transform .8s var(--ease); touch-action: pan-y; }
  .phones.no-anim { transition: none; }
  .phone.clone { display: flex; }
  .phone:nth-child(n) { margin-top: 0; }
  .phone { transform: none !important; }
  .phone-frame { width: 214px; transform: scale(.86); opacity: .5; }
  .phone.is-active .phone-frame { transform: none; opacity: 1; }
  .phone:hover .phone-frame { transform: scale(.86); }
  .phone.is-active:hover .phone-frame { transform: none; }
  .phone-cap { opacity: 0; transition: opacity .5s; }
  .phone.is-active .phone-cap { opacity: 1; }
  .phones-dots { display: flex; justify-content: center; gap: 8px; padding-top: 6px; }
  .phones-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(42, 33, 27, .25); transition: width .5s var(--ease), background .5s; }
  .phones-dots i.on { width: 22px; background: var(--cocoa); }

  .strategy-house { width: 90vw; height: 90vw; right: -40vw; top: -20vw; }
  .chapter-strategy .chapter-title { font-size: clamp(36px, 9.6vw, 46px); }
  .strategy-intro p { font-size: 16.5px; }
  .report { transform: none; padding: 20px; }
  .report.reveal.in, .report.reveal.in:hover { transform: none; }
  .report-rows li { grid-template-columns: 1fr auto; row-gap: 8px; font-size: 14.5px; }
  .report-rows i { grid-column: 1 / -1; grid-row: 2; }
  .steps { grid-template-columns: 1fr; row-gap: 0; margin-top: 48px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 20px 0; border-top: 1px solid rgba(217, 199, 174, .16); }
  .step-icon { grid-row: span 3; width: 50px; height: 50px; padding: 12px; }
  .step-num { margin: 0 0 2px; font-size: 16px; }
  .step h4 { font-size: 19px; }
  .step p { font-size: 15px; }

  .bento { grid-template-columns: 1fr; gap: 12px; }
  .b-icon { margin-bottom: 18px; }
  .b-card h3 { font-size: 20px; }
  .b-card p { font-size: 15px; }

  .strategy, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; width: 100%; margin: 0 auto; }
  .about-copy > p { font-size: 15.5px; line-height: 1.6; }
  .sig { font-size: 26px; }
  .founder small { font-size: 13px; }
  .founders { gap: 20px 28px; }

  .contact-list a { font-size: 19px; }
  .chips span { font-size: 15px; padding: 9px 15px; }
  .footer-links { gap: 18px; }

  .lb { padding: 70px 16px 24px; flex-direction: column; }
  .lb-fig { flex-direction: column; gap: 20px; }
  .lb-fig img { max-width: 100%; max-height: 58vh; }
  .lb-fig figcaption { max-width: none; align-items: center; text-align: center; }
  .lb-client { margin-bottom: 14px; }
  .lb-nav { position: absolute; top: 14px; width: 46px; height: 46px; }
  .lb-prev { left: 16px; }
  .lb-next { left: 72px; }

  .wa-float { display: none; }
  .m-cta {
    position: fixed; z-index: 60; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 20px;
    background: rgba(42, 33, 27, .96); color: var(--cream);
    box-shadow: 0 20px 44px -18px rgba(42, 33, 27, .7), 0 0 0 1px rgba(239, 231, 220, .12);
    transform: translateY(calc(100% + 30px)); opacity: 0;
    transition: transform .7s var(--ease), opacity .5s;
  }
  .m-cta.show { transform: none; opacity: 1; }
  .nav-open .m-cta { transform: translateY(calc(100% + 30px)); opacity: 0; }
  .m-cta-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .m-cta-copy b { font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; }
  .m-cta-copy span { font-size: 13px; color: #C2B4A0; }
  .m-cta .btn { padding: 12px 16px 12px 14px; font-size: 14.5px; flex: none; }
}

@media (max-width: 560px) {
  .hero-title { font-size: clamp(40px, 11.6vw, 56px); }
  .hero-title .line { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .float { opacity: 1; }
}

/* ---------- Document pages: privacy policy, 404 ---------- */
.doc-page { background: var(--cream); }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 760px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top, 0px)) 24px 0; }
.doc-back svg { display: none; }
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc .display { font-size: clamp(38px, 6vw, 60px); margin-bottom: 12px; }
.doc-date { color: var(--ink-soft); font-size: 15px; margin: 0 0 32px; }
.doc-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin: 0 0 40px; color: var(--ink); }
.doc h2 { font-family: var(--sans); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; line-height: 1.2; color: var(--cocoa); margin: 44px 0 12px; }
.doc p { color: var(--ink); max-width: 66ch; margin: 0 0 14px; }
.doc a:not(.btn) { color: var(--mocha-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc-foot { max-width: 760px; margin: 0 auto; padding: 0 24px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--ink-soft); }
.doc-404 { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 18px; }
.doc-house { width: 72px; height: 72px; color: var(--mocha); }
.footer-copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Services: what Beatriz offers ---------- */

/* ---------- About: the person behind the agency ---------- */
.about-copy > .about-lead { max-width: 46ch; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink); }
.about-trail { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.about-trail li { padding: 8px 14px; border-radius: 999px; background: var(--blush); color: var(--cocoa); font-size: 14.5px; font-weight: 500; }
.about-copy .founders { margin-top: 28px; }
.about-copy .btn { margin-top: 30px; }
.about-portrait { display: none; margin: 0; }
.about-visual.has-photo .about-portrait { display: block; position: absolute; z-index: 2; inset: 6% 12% 8% 12%; overflow: hidden; border-radius: 8px; background: var(--blush); box-shadow: 0 40px 70px -36px rgba(66, 48, 34, .5); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.about-visual.has-photo .about-stack { inset: auto 0 2% auto; z-index: 3; width: 34%; aspect-ratio: .72; }
.about-visual.has-photo .about-stack img:nth-child(n+2) { display: none; }
.about-visual.has-photo .about-stack img:nth-child(1) { top: auto; right: 0; bottom: 0; left: auto; width: 100%; transform: rotate(6deg); }

@media (max-width: 860px) {
  .about-copy > .about-lead { font-size: 18px; }
  .about-trail li { font-size: 14px; }
  .about-visual.has-photo { max-width: 340px; }
}

/* images sized by width only (their width/height attributes just reserve space) */
.about-stack img, .hero-fan img { height: auto; }

/* ---------- Made by a person ---------- */

/* tablets: two columns for the internal-communication pieces instead of one oversized column */
@media (min-width: 561px) and (max-width: 860px) {
  .internal-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .internal-col, .internal-col-offset { gap: 20px; margin-top: 0; }
}

/* hero copy: pure-CSS entrance, so the title paints without waiting for scripts */
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .hero-copy .reveal { opacity: 1; transform: none; transition: none; animation: hero-rise .9s var(--ease) both; }
.js .hero-copy .reveal:nth-child(1) { animation-delay: .05s; }
.js .hero-copy .reveal:nth-child(2) { animation-delay: .2s; }
.js .hero-copy .reveal:nth-child(3) { animation-delay: .35s; }


/* =========================================================
   V1.1: cleaner page, neutral palette, colour logos, merged services
   ========================================================= */

/* client logos: light band, full-colour logos, larger */
.clients-band { background: var(--paper); border-block: 1px solid var(--line); padding: 38px 0; }
.logos-group { gap: 76px; padding-right: 76px; }
.mq-logo { height: 58px; width: auto; opacity: 1; mix-blend-mode: multiply; }
.mq-logo[width="304"], .mq-logo[width="400"] { height: 48px; }
.mq-logo[width="380"] { height: 44px; }

/* manifesto: one statement and one supporting line */

/* services + projects in one section */
.chapter-head .btn, .internal-side .btn { margin-top: 24px; }
.chapter-social .chapter-head .btn { margin-top: 24px; }

.sindicos { background: var(--cocoa); color: var(--cream); position: relative; overflow: hidden; }
.sindicos-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(40px, 5vw, 64px); }
.sindicos-house { position: absolute; width: 220px; height: 220px; left: -40px; top: -50px; color: rgba(217, 199, 174, .08); pointer-events: none; }
.sindicos-house path { stroke-width: .6; }
.sindicos-copy { position: relative; }
.sindicos-copy h3 { margin: 0 0 8px; font-weight: 300; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.04em; line-height: 1.05; color: var(--cream); }
.sindicos-copy p { margin: 0; max-width: 46ch; color: #DDD2C2; }
.sindicos .btn-dark { background: var(--rose); color: var(--cocoa); flex: none; position: relative; }
@media (hover: hover) and (pointer: fine) { .sindicos .btn-dark:hover { background: var(--cream); color: var(--cocoa); } }

/* why Home: impact numbers, then short cards */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(107, 78, 58, .3); margin-bottom: clamp(28px, 3vw, 40px); }
.impact-item { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 8px 0; }
.impact-item + .impact-item { padding-left: 24px; border-left: 1px solid rgba(107, 78, 58, .3); }
.impact-num { font-weight: 300; font-size: clamp(52px, 6vw, 92px); line-height: 1; letter-spacing: -.05em; color: var(--mocha-deep); }
.impact-label { font-size: 15px; line-height: 1.35; color: var(--ink); max-width: 18ch; }
.bento { grid-template-columns: repeat(2, 1fr); }
.b-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 20px; align-content: start; }
.b-card .b-icon { margin: 2px 0 0; grid-row: span 2; }
.b-card h3 { font-size: 22px; }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .impact-label { max-width: none; }
}

/* ---------- Mobile: lighter, less crowded ---------- */
@media (max-width: 860px) {
  :root { --section: 56px; }
  body { font-size: 16px; }

  .hero-sub { font-size: 16px; margin-bottom: 26px; }
  .hero-fan { margin-top: 34px; height: 190px; }

  .clients-band { padding: 26px 0; }
  .logos-group { gap: 44px; padding-right: 44px; zoom: 1; }
  .mq-logo { height: 44px; }
  .mq-logo[width="304"], .mq-logo[width="400"] { height: 36px; }
  .mq-logo[width="380"] { height: 34px; }


  .display { font-size: clamp(30px, 8.4vw, 40px); }
  .portfolio-head { gap: 14px; margin-bottom: 8px; }
  .lede { font-size: 16px; }
  .chapter-title { font-size: clamp(28px, 7.6vw, 36px); }
  .chapter-head p, .rail-intro p, .internal-side p, .strategy-intro p { font-size: 16px; }
  .chapter-head .btn, .internal-side .btn, .rail-intro .btn, .strategy-intro .btn { margin-top: 20px; }

  .rail-section { padding: 36px 0 40px; }
  .rail-intro { margin-bottom: 22px; }
  .drag-hint { display: none; }
  .cover-img { height: 290px; }
  .cover-cap b { font-size: 16px; }

  .chapter { padding: 48px 0; }
  /* internal comms: two compact columns instead of five stacked tiles */
  .internal-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .internal-col, .internal-col-offset { gap: 12px; margin-top: 0; }
  .internal-side { margin-bottom: 24px; }
  .tile-img { padding: 8px; }
  .tile-cap b { font-size: 14px; }
  .tile-cap i { font-size: 12.5px; }
  .tile-quote { display: none; }

  .chapter-social .chapter-head { margin-bottom: 18px; }

  /* strategy: heading, one line, button and the four steps as a short list */
  .report { display: none; }
  .steps { margin-top: 30px; }
  .step { grid-template-columns: 46px 1fr; padding: 14px 0; align-items: center; }
  .step-icon { grid-row: span 2; width: 42px; height: 42px; padding: 10px; }
  .step-num { font-size: 14px; }
  .step h4 { font-size: 18px; margin: 0; }
  .step p { display: none; }

  .sindicos-inner { flex-direction: column; align-items: flex-start; padding-block: 40px; }
  .sindicos-copy h3 { font-size: 28px; }
  .sindicos .btn { width: 100%; justify-content: center; }

  .diffs-head { margin-bottom: 22px; }
  .impact { grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
  .impact-item, .impact-item + .impact-item { padding: 18px 12px 18px 0; border-left: 0; border-bottom: 1px solid rgba(107, 78, 58, .3); }
  .impact-item:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(107, 78, 58, .3); }
  .impact-num { font-size: 46px; }
  .impact-label { font-size: 14px; }
  .bento { grid-template-columns: 1fr; gap: 10px; }
  .b-card { padding: 20px; column-gap: 16px; grid-template-columns: 30px minmax(0, 1fr); }
  .b-card .b-icon { width: 30px; height: 30px; }
  .b-card h3 { font-size: 19px; }
  .b-card p { font-size: 14.5px; }

  .about-trail { display: none; }
  .about-copy > .about-lead { font-size: 17px; }
  .founders { gap: 16px 24px; }

}


/* ---------- Services: heading + index, one section with the chapters below ---------- */
.portfolio { padding-top: clamp(64px, 7vw, 104px); }
.svc-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(28px, 3.4vw, 48px); }
.svc-head .display { max-width: 18ch; margin: 0; }
.svc-head .lede { margin: 0; max-width: 40ch; }
.svc-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; border-radius: 8px; background: var(--cream); min-height: 176px; transition: background .4s, transform .5s var(--ease); }
.svc-n { font-family: var(--italic); font-style: italic; font-size: 18px; color: var(--mocha); }
.svc-card b { margin-top: auto; font-weight: 400; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; color: var(--cocoa); }
.svc-card i { font-style: normal; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); }
.svc-card svg { position: absolute; top: 22px; right: 20px; width: 20px; height: 20px; color: var(--mocha); transform: rotate(90deg); transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .svc-card:hover { background: var(--blush); transform: translateY(-3px); } .svc-card:hover svg { transform: rotate(90deg) translateX(4px); } }

@media (max-width: 1100px) { .svc-index { grid-template-columns: repeat(2, 1fr); } .svc-card { min-height: 150px; } }
@media (max-width: 860px) {
  .portfolio { padding-top: 52px; }
  .svc-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
  .svc-head .display { font-size: clamp(28px, 7.6vw, 36px); max-width: none; }
  .svc-index { gap: 10px; margin-bottom: 8px; }
  .svc-card { min-height: 128px; padding: 16px 14px 16px; }
  .svc-card b { font-size: 17px; }
  .svc-card i { display: none; }
  .svc-card svg { top: 16px; right: 14px; width: 18px; height: 18px; }
}

/* síndicos band: house fully inside the band */
.sindicos-house { left: auto; right: clamp(180px, 22vw, 340px); top: 50%; width: 150px; height: 150px; transform: translateY(-50%); color: rgba(217, 199, 174, .14); }
@media (max-width: 860px) { .sindicos-house { right: 16px; top: 28px; width: 84px; height: 84px; transform: none; } }

/* ---------- Subtle rosé accents, kept only where they contrast (dark bands, buttons, small marks) ---------- */
:root { --rose-soft: #E4BDB1; --salmon-soft: #D99883; }
::selection { background: var(--rose-soft); }
.btn-rose, .sindicos .btn-dark { background: var(--rose-soft); color: var(--cocoa); }
@media (hover: hover) and (pointer: fine) { .btn-rose:hover, .sindicos .btn-dark:hover { background: var(--salmon-soft); color: var(--cocoa); } }
.chapter-strategy .chapter-title em, .step-num, .contact-list span, .brand-light .brand-house, .brand-light .brand-word { color: var(--salmon-soft); }
.contact-title .accent { color: var(--rose-soft); }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { color: var(--rose-soft); } .step:hover .step-icon { background: var(--rose-soft); } }
.svc-n, .svc-card svg { color: var(--salmon-soft); }
.founder { border-left-color: var(--rose-soft); }
.sindicos-house, .strategy-house { color: rgba(228, 189, 177, .1); }
.m-cta .btn { background: var(--rose-soft); }


/* ---------- V2: service index with 5 cards, new About, footer Instagram ---------- */
.svc-index { grid-template-columns: repeat(6, 1fr); }
.svc-card { grid-column: span 2; }
.svc-card:nth-child(4) { grid-column: span 3; }
.svc-card-wide { grid-column: span 3; background: var(--cocoa); }
.svc-card-wide b { color: var(--cream); margin-top: 0; font-size: 24px; }
.svc-card-wide i { color: #DDD2C2; max-width: 40ch; }
.svc-card-wide .svc-n { color: var(--salmon-soft); }
.svc-go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--rose-soft); }
.svc-card-wide .svc-go svg { position: static; width: 18px; height: 18px; transform: none; color: currentColor; }
@media (hover: hover) and (pointer: fine) { .svc-card-wide:hover { background: var(--mocha-deep); } }
@media (max-width: 1100px) { .svc-index { grid-template-columns: repeat(2, 1fr); } .svc-card, .svc-card:nth-child(4) { grid-column: span 1; } .svc-card-wide { grid-column: span 2; } }
@media (max-width: 860px) {
  .svc-card-wide { min-height: 0; padding: 18px 16px; }
  .svc-card-wide b { font-size: 20px; }
  .svc-card-wide i { display: block; font-size: 14px; }
}

.about-grid { align-items: start; }
.about-visual { aspect-ratio: auto; max-width: 460px; }
.about-house { inset: -4% -6% auto auto; width: 70%; height: auto; aspect-ratio: 1; z-index: 0; }
.about-portrait { display: block; position: relative; z-index: 1; margin: 0; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: 8px; box-shadow: 0 40px 70px -36px rgba(66, 48, 34, .5); }
.about-portrait figcaption { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .about-visual { max-width: 320px; }
}

.footer-ig { display: inline-flex; align-items: center; gap: 8px; color: var(--rose-soft); }
.footer-ig svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .footer-ig:hover { color: var(--cream); } }

/* V2 test: no cover fan under the hero text (the floating covers were removed on desktop too) */
.hero-fan { display: none; }


/* About: single portrait with name caption */
.about-visual { max-width: 460px; }
.about-portrait { width: 100%; }
.about-portrait figcaption { display: grid; gap: 2px; margin-top: 14px; }
.about-portrait figcaption b { font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.about-portrait figcaption span { font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 860px) { .about-visual { max-width: 340px; } }

/* ---------- Dúvidas: botão no rodapé + janela com as perguntas ---------- */
.footer-faq { font-size: 14.5px; transition: color .3s; }
@media (hover: hover) and (pointer: fine) { .footer-faq:hover { color: var(--cream); } }
.faq-modal { width: min(680px, calc(100vw - 32px)); max-height: min(86vh, 760px); overflow: auto; overscroll-behavior: contain; margin: auto; padding: clamp(26px, 4vw, 44px); border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .6); }
.faq-modal::backdrop { background: rgba(42, 33, 27, .62); }
.faq-modal .display { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; margin: 0 44px 22px 0; }
.faq-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; font-weight: 300; line-height: 1; color: var(--mocha-deep); transition: background .3s; }
@media (hover: hover) and (pointer: fine) { .faq-close:hover { background: var(--blush); } }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-weight: 400; font-size: clamp(16.5px, 1.3vw, 18.5px); letter-spacing: -.015em; line-height: 1.35; color: var(--cocoa); }
.faq-item summary::after { content: "+"; flex: none; font-weight: 300; font-size: 22px; line-height: 1; color: var(--mocha); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 20px; font-size: 15.5px; color: var(--ink-soft); }
