
/* Layout: a marketer's working draft. Paper ground, big soft-serif headlines, handwritten notes scribbled over the layout, stickers and taped photos. Sections alternate paper, orange, coffee and ink. "Modo loucura" turns the whole page up. */
:root {
  --paper: #F4EFE6;
  --cream: #FFF9EF;
  --ink: #15110E;
  --orange: #FF5B1F;
  --coffee: #4B2E1F;
  --cobalt: #2E44E8;
  --muted: #6B625A;
  --line: rgba(21, 17, 14, 0.16);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --logo: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
}
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.page { background: var(--paper); transition: background .4s; }
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.col { max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding-inline: clamp(0px, 3vw, 40px); position: relative; }
.h { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; margin: 0; text-wrap: balance; }
.hand { font-family: var(--hand); font-weight: 700; color: var(--cobalt); line-height: 1.05; }
.kicker { font-family: var(--hand); font-weight: 700; font-size: 30px; color: var(--orange); margin: 0 0 10px; transform: rotate(-2deg); display: inline-block; }
.dot { color: var(--orange); }
.logo { font-family: var(--logo); font-stretch: 75%; font-weight: 800; letter-spacing: -0.035em; text-decoration: none; line-height: 1; }
.logo .lt { font-weight: 300; color: var(--muted); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 22px; }
.nav .logo { font-size: 30px; }
.menu { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; font-size: 16px; font-weight: 600; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--orange); }
.crazy-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border: 2px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--cream); }
.switch { width: 38px; height: 22px; border-radius: 999px; background: #D7CFC3; position: relative; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.crazy-btn.on .switch { background: var(--orange); }
.crazy-btn.on .switch i { transform: translateX(16px); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 104px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-title { font-size: clamp(56px, 9vw, 132px); }
.word-wrap { position: relative; display: inline-block; }
.word-btn { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; font-weight: 600; color: var(--orange); letter-spacing: -0.035em; line-height: 0.95; text-align: left; border-bottom: 6px solid var(--orange); animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.word-btn:hover { color: var(--coffee); border-color: var(--coffee); }
@keyframes pop { from { transform: translateY(14px) rotate(-3deg); opacity: 0.001; } to { transform: none; opacity: 1; } }
.word-note { position: absolute; right: -8px; top: -46px; font-size: 26px; transform: rotate(6deg); white-space: nowrap; display: flex; align-items: flex-end; gap: 4px; }
.word-note svg { width: 34px; height: 34px; }
@media (max-width: 640px) { .word-note { position: static; display: inline-flex; margin-top: 14px; transform: rotate(-2deg); } }
.hero-lede { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; max-width: 40ch; margin: 32px 0 32px; }
.hero-lede strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(255, 91, 31, 0.35) 62%); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; box-sizing: border-box; padding: 0 26px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn.hot { background: var(--orange); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { box-shadow: 4px 4px 0 var(--orange); }

/* Polaroid + stickers */
.polaroid-wrap { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.polaroid { background: #fff; padding: 16px 16px 64px; transform: rotate(3deg); box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 18px 40px rgba(75, 46, 31, .18); position: relative; transition: transform .3s; }
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid .shot { aspect-ratio: 4 / 5; max-width: 100%; background: repeating-linear-gradient(135deg, #E9DFD0 0 14px, #E2D6C4 14px 28px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; box-sizing: border-box; color: var(--muted); font-size: 15px; }
.polaroid .cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 30px; color: var(--ink); }
.tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(255, 225, 160, 0.75); transform: rotate(-4deg); }
.sticker { position: absolute; display: grid; place-items: center; text-align: center; font-weight: 800; line-height: 1; z-index: 2; }
.st-1 { top: -26px; left: -30px; width: 112px; height: 112px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 15px; transform: rotate(-14deg); padding: 10px; box-sizing: border-box; }
.st-2 { bottom: 40px; right: -26px; background: var(--cobalt); color: #fff; padding: 12px 16px; font-size: 16px; border-radius: 10px; transform: rotate(8deg); }
.st-3 { bottom: -22px; left: 18px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 14px; transform: rotate(-5deg); }
@media (max-width: 520px) { .st-1 { left: -8px; width: 92px; height: 92px; font-size: 13px; } .st-2 { right: -6px; } }

/* Ticker */
.ticker { background: var(--orange); color: var(--ink); overflow: hidden; white-space: nowrap; padding-block: 16px; border-block: 2px solid var(--ink); }
.track { display: inline-flex; gap: 36px; animation: slide 36s linear infinite; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em; }
.ticker:hover .track { animation-play-state: paused; }
.track i { font-style: normal; color: var(--paper); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Persona */
.persona { padding-block: clamp(72px, 10vw, 136px); }
.persona-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .persona-grid { grid-template-columns: 1fr; } }
.sec-title { font-size: clamp(44px, 6vw, 88px); }
.persona .side { margin: 24px 0 0; font-size: 19px; max-width: 34ch; color: var(--muted); }
.persona .scribble { font-size: 30px; margin-top: 36px; transform: rotate(-3deg); display: inline-block; }
.card-doc { background: var(--cream); border: 2px solid var(--ink); border-radius: 18px; padding: clamp(20px, 3vw, 36px); box-shadow: 10px 10px 0 var(--ink); transform: rotate(-1deg); position: relative; }
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 2px dashed var(--line); margin-bottom: 8px; }
.doc-top strong { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.badge { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--orange); }
.fields { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); margin: 0; }
.fields dt, .fields dd { padding-block: 12px; border-bottom: 1px solid var(--line); margin: 0; }
.fields dt { font-size: 14px; font-weight: 700; color: var(--muted); padding-right: 12px; }
.fields dd { font-size: 17px; min-width: 0; }
.fields dd .hand { font-size: 24px; }
.fill { color: var(--cobalt); font-family: var(--hand); font-weight: 700; font-size: 22px; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } .fields dt { border-bottom: 0; padding-bottom: 0; } }

/* Life bento */
.life { background: var(--ink); color: var(--paper); padding-block: clamp(72px, 10vw, 136px); }
.life-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.life-head p { margin: 0; color: #BDB3A8; max-width: 36ch; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } }
.tile { min-height: 230px; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-align: left; transition: transform .25s cubic-bezier(.2,1.3,.4,1); position: relative; overflow: hidden; }
.tile:hover { transform: rotate(-1.5deg) scale(1.02); }
.tile:nth-child(even):hover { transform: rotate(1.5deg) scale(1.02); }
.tile .num { font-family: var(--hand); font-weight: 700; font-size: 24px; opacity: 0.8; }
.tile .t-name { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: clamp(38px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 0.95; }
.tile .t-back { font-size: 17px; line-height: 1.45; animation: pop .35s ease; }
.tile .t-hint { font-size: 13px; font-weight: 700; opacity: 0.75; }
.tile.open .t-name { font-size: 26px; }
.c-orange { background: var(--orange); color: var(--ink); }
.c-paper { background: var(--paper); color: var(--ink); }
.c-coffee { background: var(--coffee); color: var(--paper); }
.c-cobalt { background: var(--cobalt); color: #fff; }
.c-cream { background: var(--cream); color: var(--ink); }
.tile.wide { grid-column: span 2; }
@media (max-width: 520px) { .tile.wide { grid-column: auto; } }

/* Funnel */
.mkt { padding-block: clamp(72px, 10vw, 136px); }
.mkt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 88px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .mkt-grid { grid-template-columns: 1fr; } }
.funnel-wrap { position: relative; padding-right: 72px; }
@media (max-width: 520px) { .funnel-wrap { padding-right: 52px; } }
.funnel { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stage { min-height: 82px; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 10px 24px 10px 12px; text-align: left; color: var(--ink); background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 6px 0 var(--ink); transition: transform .25s cubic-bezier(.2,1.3,.4,1), box-shadow .25s, background .2s; }
.stage:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
.stage.on { background: var(--orange); transform: translateY(-3px) rotate(-1.2deg); box-shadow: 0 9px 0 var(--ink); }
.st-num { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 26px; transition: background .2s, color .2s; }
.stage.on .st-num { background: var(--paper); color: var(--ink); }
.st-text { display: flex; flex-direction: column; min-width: 0; }
.st-name { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1; }
.stage small { font-family: var(--hand); font-size: 21px; font-weight: 700; color: var(--cobalt); line-height: 1.1; }
.stage.on small { color: var(--ink); }
.drop-row { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 16px; }
.funnel-drop { width: 34px; height: 44px; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.drop-row .hand { font-size: 26px; color: var(--orange); }
.loop { position: absolute; right: 4px; top: 36px; width: 60px; height: calc(100% - 150px); overflow: visible; color: var(--cobalt); }
.loop-label { position: absolute; right: -4px; top: -8px; font-size: 22px; transform: rotate(8deg); white-space: nowrap; }
.stage-panel { background: var(--cream); border: 2px solid var(--ink); border-radius: 18px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; animation: pop .35s ease; }
.stage-panel h3 { font-size: clamp(34px, 3.6vw, 48px); }
.stage-panel p { margin: 0; font-size: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li { font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.proof { font-size: 15px; color: var(--muted); border-top: 2px dashed var(--line); padding-top: 14px; }

/* Brands */
.brands { background: var(--cream); padding-block: clamp(72px, 10vw, 136px); border-top: 2px solid var(--ink); }
.brands-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.brands-head p { margin: 0; color: var(--muted); max-width: 34ch; }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 980px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .brand-grid { grid-template-columns: 1fr; } }
.brand { min-height: 210px; border: 2px solid var(--ink); border-radius: 18px; padding: 22px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-decoration: none; color: var(--ink); background: var(--paper); transition: transform .25s cubic-bezier(.2,1.3,.4,1), background .2s, box-shadow .2s; }
.brand:hover { transform: rotate(-1.5deg) translateY(-4px); background: var(--orange); box-shadow: 8px 8px 0 var(--ink); }
.brand:nth-child(even):hover { transform: rotate(1.5deg) translateY(-4px); background: var(--cobalt); color: #fff; }
.brand:nth-child(even):hover .brand-years { color: #fff; }
.brand:nth-child(even):hover .brand-status { border-color: #fff; }
.brand-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand-status { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.brand-status.now { background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; gap: 8px; }
.brand-status.now i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.brand-years { font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--orange); }
.brand:hover .brand-years { color: var(--ink); }
.brand-name { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: clamp(32px, 3vw, 42px); letter-spacing: -0.03em; line-height: 0.95; margin: 0; overflow-wrap: anywhere; }
.brand-role { font-size: 16px; margin: 6px 0 0; }
.brand-url { font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .brand-status.now i, .funnel-drop { animation: none; } }

/* Work */
.work { background: var(--coffee); color: var(--paper); padding-block: clamp(72px, 10vw, 136px); }
.work .kicker { color: var(--orange); }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.work-head p { margin: 0; color: #D9C7B8; max-width: 34ch; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wcard { min-height: 150px; padding: 18px; border-radius: 16px; background: rgba(255, 249, 239, 0.08); border: 2px solid rgba(255, 249, 239, 0.18); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; transition: background .2s, transform .2s, border-color .2s; }
.wcard:hover { transform: translateY(-3px); border-color: var(--paper); }
.wcard.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.wcard strong { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1; }
.wcard span { font-size: 14px; opacity: 0.85; }
.detail { margin-top: 14px; background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(22px, 3.5vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px 48px; animation: pop .35s ease; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.detail h3 { font-size: clamp(44px, 5.4vw, 80px); }
.detail .role { font-size: 17px; font-weight: 700; margin: 14px 0 0; }
.detail .role span { color: var(--muted); font-weight: 500; }
.detail p { margin: 0 0 14px; }
.detail .label { font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--cobalt); margin: 0 0 4px; }
.calc { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.calc strong { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 48px; font-weight: 800; color: var(--orange); line-height: 1; font-variant-numeric: tabular-nums; }
.calc em { font-style: normal; font-size: 14px; opacity: 0.8; font-variant-numeric: tabular-nums; }
.field-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-top: 6px; }
.field-top output { font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: rgba(244, 239, 230, 0.3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); margin-top: -9px; border: 0; }
input[type="range"]::-moz-range-track { height: 3px; background: rgba(244, 239, 230, 0.3); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); border: 0; }

/* House rules */
.rules { padding-block: clamp(72px, 10vw, 136px); }
.rules-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .rules-grid { grid-template-columns: 1fr; } }
.stack { position: relative; min-height: 340px; }
.note { position: absolute; inset: 0; border-radius: 20px; padding: clamp(24px, 4vw, 44px); box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 14px 30px rgba(75, 46, 31, 0.18); }
.note.n3 { background: var(--cobalt); transform: rotate(5deg); }
.note.n2 { background: var(--coffee); transform: rotate(-4deg); }
.note.n1 { background: #FFD66B; color: var(--ink); transform: rotate(-1deg); animation: drop .4s cubic-bezier(.2,1.3,.4,1); }
@keyframes drop { from { transform: translateY(-30px) rotate(-6deg); opacity: 0.001; } to { transform: rotate(-1deg); opacity: 1; } }
.note.n1 p { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: clamp(34px, 4.4vw, 62px); line-height: 1; letter-spacing: -0.03em; margin: 0; }
.note.n1 small { font-size: 17px; line-height: 1.45; max-width: 46ch; display: block; }
.note-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.note-foot .hand { font-size: 24px; color: var(--coffee); }

/* Path */
.path { background: var(--cream); padding-block: clamp(72px, 10vw, 136px); border-block: 2px solid var(--ink); }
.path-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 88px); margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .path-grid { grid-template-columns: 1fr; } }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 2px dashed var(--line); }
.tl li:first-child { border-top: 2px dashed var(--line); }
.tl .yr { font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--orange); line-height: 1.1; }
.tl strong { font-weight: 700; display: block; }
.tl span { color: var(--muted); font-size: 16px; }
.side-box { border: 2px solid var(--ink); border-radius: 18px; padding: 24px; background: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.side-box h3 { font-size: 34px; }
.side-box ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.lvl { display: flex; flex-direction: column; gap: 6px; }
.bar { height: 12px; border-radius: 999px; background: #E3D9CB; overflow: hidden; border: 2px solid var(--ink); }
.bar i { display: block; height: 100%; background: var(--orange); }

/* Contact */
.contact { background: var(--orange); color: var(--ink); }
.contact .col { padding-block: clamp(72px, 10vw, 140px) 28px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact .h { font-size: clamp(60px, 10vw, 150px); }
.contact .hand { color: var(--ink); font-size: 32px; transform: rotate(-3deg); display: inline-block; margin: 18px 0 28px; }
.mail { font-family: var(--body); font-weight: 700; font-size: clamp(22px, 3.4vw, 40px); word-break: break-all; user-select: all; margin: 0 0 22px; }
.cup { justify-self: center; width: 240px; max-width: 100%; }
.cup .steam path { animation: steam 2.4s ease-in-out infinite; }
.cup .steam path:nth-child(2) { animation-delay: .4s; }
.cup .steam path:nth-child(3) { animation-delay: .8s; }
@keyframes steam { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-8px); opacity: .4; } }
.big-logo { font-size: clamp(64px, 16vw, 250px); margin: clamp(56px, 8vw, 104px) 0 0; white-space: nowrap; overflow: hidden; }
.big-logo .lt { color: rgba(21, 17, 14, 0.55); }
.big-logo .dot { color: var(--paper); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; border-top: 2px solid var(--ink); margin-top: 18px; padding-top: 18px; }

/* Modo loucura */
.rain { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.drop { position: absolute; top: -140px; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 900; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; animation-name: fall; animation-timing-function: cubic-bezier(.45, 0, .85, 1); animation-fill-mode: forwards; text-shadow: 3px 3px 0 var(--ink); }
@keyframes fall { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(calc(100vh + 280px)) rotate(var(--rot)); } }
.page.crazy { background: #FFE3D3; }
.crazy .hero-title { transform: rotate(-2deg); }
.crazy .sticker { animation: wiggle .9s ease-in-out infinite; }
.crazy .polaroid { transform: rotate(-6deg); }
.crazy .card-doc { transform: rotate(2deg); box-shadow: 14px 14px 0 var(--orange); }
.crazy .tile { animation: jiggle 2.4s ease-in-out infinite; }
.crazy .tile:nth-child(odd) { animation-delay: .6s; }
.crazy .sec-title { color: var(--cobalt); }
.crazy .track { animation-duration: 9s; }
@keyframes wiggle { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes jiggle { 0%, 100% { rotate: 0deg; } 50% { rotate: -1.6deg; } }
@media (prefers-reduced-motion: reduce) {
  .track, .word-btn, .note.n1, .tile .t-back, .stage-panel, .detail, .cup .steam path, .crazy .sticker, .crazy .tile { animation: none !important; }
}

/* ---- Site-only additions (outside the canvas) ---- */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.polaroid .shot { padding: 0; overflow: hidden; }
.polaroid .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mail a { text-decoration: none; }
.mail a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.word-btn.replay, .stage-panel.replay, .detail.replay, .note.n1.replay, .tile .t-back.replay { animation: none; }
/* Hero note sits under the rotating word so it never covers the line above */
.word-note { right: auto; left: 4px; top: 100%; margin-top: 10px; transform: rotate(-3deg); flex-direction: row-reverse; }
.word-note svg { transform: scaleY(-1) rotate(10deg); }
.hero-lede { margin-top: 56px; }
@media (max-width: 640px) { .word-note { position: absolute; display: flex; margin-top: 8px; } }

.crazy .life-head p, .crazy .work-head p, .crazy .persona .side, .crazy .tl span { color: inherit; opacity: 0.85; }
/* Buttons keep dark text on their own light fill, whatever color the section takes */
.btn, .crazy-btn { color: var(--ink); }
.btn.dark { color: var(--paper); }
/* Stories and the Fé verse */
.story-text { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.35; letter-spacing: -0.01em; }
.tile .t-back .verse-intro { display: block; font-weight: 700; margin-bottom: 6px; }
.tile .t-back .verse { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.4; }
.tile .t-back .verse::before { content: "“"; }
.tile .t-back .verse::after { content: "”"; }
.tile .t-back .verse-ref { display: block; font-family: var(--hand); font-style: normal; font-weight: 700; font-size: 24px; margin: 6px 0 12px; }
.tile .t-back .verse-thanks { display: block; font-weight: 600; }

/* Estudei: formação e certificados */
.side-box .study { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.study li { display: flex; flex-direction: column; gap: 2px; padding-block: 10px; border-bottom: 2px dashed var(--line); }
.study li:last-child { border-bottom: 0; }
.study strong { font-weight: 700; font-size: 16px; line-height: 1.3; }
.study span { font-size: 14px; color: var(--muted); }
.study-h { font-size: 26px; margin: 6px 0 -4px; color: var(--orange); }

/* Closing line */
.god { text-align: center; font-size: clamp(28px, 3.4vw, 40px); color: var(--ink); margin: 32px 0 8px; transform: rotate(-1.5deg); }

/* Excelência: dictionary card */
.dict { margin-top: clamp(40px, 6vw, 72px); background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 10px 10px 0 var(--orange); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
@media (max-width: 860px) { .dict { grid-template-columns: 1fr; } }
.dict-entry { padding: clamp(24px, 3.5vw, 44px); border-right: 2px dashed var(--line); min-width: 0; }
@media (max-width: 860px) { .dict-entry { border-right: 0; border-bottom: 2px dashed var(--line); } }
.dict-word { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: clamp(42px, 5vw, 68px); letter-spacing: -0.03em; line-height: 1; margin: 0; overflow-wrap: anywhere; }
.dict-class { font-style: italic; color: var(--muted); margin: 8px 0 18px; }
.dict-defs { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.dict-etym { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.dict-src { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.dict-mine { padding: clamp(24px, 3.5vw, 44px); background: var(--orange); display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.dict-note { font-size: 30px; color: var(--ink); margin: 0; transform: rotate(-2deg); }
.dict-quote { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }

/* Rules stack: only the site palette, and the back card comes forward */
.note.c-or { background: var(--orange); color: var(--ink); }
.note.c-ink { background: var(--ink); color: var(--paper); }
.note.c-co { background: var(--cobalt); color: #fff; }
.note.n1 { animation: forward .5s cubic-bezier(.2,1.3,.4,1); }
@keyframes forward { from { transform: translate(18px, 8px) rotate(5deg) scale(.95); } to { transform: rotate(-1deg); } }
.note-foot .hand { color: inherit; opacity: 0.85; }

/* ---------- Portfólio page ---------- */
.menu a.active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--orange); }
.menu .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.pf-hero { padding-block: clamp(32px, 6vw, 72px) clamp(16px, 3vw, 32px); max-width: 900px; }
.pf-title { font-size: clamp(52px, 8.5vw, 120px); }
.pf-lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 52ch; margin: 24px 0 8px; }
.pf-count { font-size: 26px; color: var(--orange); margin: 0; }
.featured { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 10px 10px 0 var(--orange); margin: 8px 0 0; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }
.featured .pcard-media { aspect-ratio: 16 / 9; }
.featured-body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.featured-body h2 { font-size: clamp(30px, 3.2vw, 44px); }
.featured-body p { margin: 0; color: #D9CFC5; }
.featured-note { font-size: 28px; color: var(--orange); margin: 0; }
.featured .tag { border-color: var(--paper); }
.featured .tag-brand { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.filters-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: clamp(36px, 5vw, 56px); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-row .lbl { font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--cobalt); margin-right: 6px; min-width: 70px; }
.chip { min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 14px; transition: background .2s, color .2s, transform .2s; }
.chip:hover { transform: translateY(-2px); }
.chip.on { background: var(--ink); color: var(--paper); }
.pgrid { columns: 3 300px; column-gap: 16px; margin-top: clamp(24px, 3vw, 36px); }
.pgrid .pcard { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 16px; border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--cream); color: var(--ink); transition: transform .25s cubic-bezier(.2,1.3,.4,1), box-shadow .25s; }
.pgrid .pcard:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 6px 6px 0 var(--ink); }
.pgrid .pcard[hidden] { display: none; }
.pcard-media.yt { aspect-ratio: 16 / 9; position: relative; background: var(--ink); max-width: 100%; }
.yt-play { display: block; width: 100%; height: 100%; position: relative; padding: 0; border: 0; cursor: pointer; background: var(--ink); }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-ico { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--orange); border: 2px solid var(--ink); display: grid; place-items: center; transition: transform .2s; box-shadow: 0 6px 0 var(--ink); }
.yt-play:hover .play-ico, .yt-play:focus-visible .play-ico { transform: scale(1.1); }
.pcard-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.pcard-media.ig { padding: 0 10px 10px; }
.pcard-media.ig .instagram-media, .pcard-media.ig iframe.instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: 14px !important; box-shadow: none !important; border: 1px solid var(--line) !important; }
.pcard-media.ig blockquote.instagram-media { padding: 24px; background: var(--paper); text-align: center; }
.pcard-body { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.pcard-body h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.pcard-body p { margin: 0; font-size: 15px; color: var(--muted); }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); }
.tag-brand { background: var(--ink); color: var(--paper); }
.pf-empty { font-family: var(--hand); font-size: 28px; color: var(--cobalt); text-align: center; margin: 24px 0; }
.pf-cta { margin: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); padding: clamp(28px, 4vw, 48px); border-radius: 20px; background: var(--orange); border: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pf-cta .h { font-size: clamp(34px, 4.6vw, 64px); }
.pf-foot .col { padding-block: 0 24px; }
.pf-foot .foot { border-top-color: var(--line); color: var(--muted); }
.pf-foot .foot a { color: inherit; }
/* Home teaser */
.pf-teaser { display: flex; justify-content: center; margin-top: 28px; }

/* Back to top */
.to-top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); text-decoration: none; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.2,1.3,.4,1), box-shadow .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.to-top:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; transform: none; } }

/* Photo band: a breath between sections */
.photo-band { position: relative; margin: 0; border-block: 2px solid var(--ink); background: #2A63B5; }
.photo-band img { display: block; width: 100%; max-width: 100%; height: clamp(260px, 52vw, 680px); object-fit: cover; object-position: 50% 75%; }
.photo-note { position: absolute; top: clamp(16px, 4vw, 48px); left: max(16px, calc((100vw - 1240px) / 2 + 40px)); display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: clamp(14px, 1.4vw, 17px); color: var(--ink); background: var(--cream); padding: 8px 16px 8px 12px; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); }
.photo-note svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--orange); }
.photo-band figcaption { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 14px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(21, 17, 14, 0.55); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 520px) { .photo-band figcaption { position: static; display: block; border-radius: 0; background: var(--ink); color: var(--paper); text-align: center; font-size: 12px; padding: 10px 16px; } .photo-note { font-size: 13px; padding: 6px 12px 6px 10px; } }

/* Portfólio hero: floating icons */
.pf-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 900px) { .pf-hero-grid { grid-template-columns: 1fr; } }
.floaters { position: relative; height: clamp(380px, 38vw, 520px); }
.floater { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: translate .6s cubic-bezier(.2,.8,.2,1); }
.fl-badge { width: var(--s, 96px); height: var(--s, 96px); border-radius: 50%; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); display: grid; place-items: center; transform: rotate(var(--r, 0deg)); animation: bob var(--t, 5s) ease-in-out infinite; animation-delay: var(--dl, 0s); transition: transform .3s cubic-bezier(.2,1.3,.4,1); }
.fl-badge svg { width: 46%; height: 46%; }
.floater:hover .fl-badge { transform: rotate(calc(var(--r, 0deg) - 12deg)) scale(1.1); }
.fl-label { font-size: 22px; color: var(--ink); line-height: 1; }
.c-or .fl-badge { background: var(--orange); color: var(--ink); }
.c-ink .fl-badge { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 var(--orange); }
.c-co .fl-badge { background: var(--cobalt); color: #fff; }
.c-cr .fl-badge { background: var(--cream); color: var(--ink); }
.f1 { top: 4%; left: 8%; --s: 118px; --r: -8deg; --t: 5.2s; }
.f2 { top: 0; left: 52%; --s: 92px; --r: 6deg; --t: 4.6s; --dl: -1.2s; }
.f3 { top: 30%; left: 34%; --s: 104px; --r: -4deg; --t: 6s; --dl: -2s; }
.f4 { top: 24%; right: 9%; --s: 100px; --r: 10deg; --t: 5.6s; --dl: -.6s; }
.f5 { top: 56%; left: 2%; --s: 92px; --r: 8deg; --t: 4.8s; --dl: -3s; }
.f6 { top: 62%; left: 58%; --s: 86px; --r: -10deg; --t: 5s; --dl: -1.8s; }
.f7 { top: 70%; left: 30%; --s: 80px; --r: 4deg; --t: 6.4s; --dl: -.9s; }
.f8 { top: 2%; right: 4%; --s: 72px; --r: -6deg; --t: 4.4s; --dl: -2.6s; }
.f8 { top: 3%; right: 3%; }
.fl-note { position: absolute; bottom: 0; right: 6%; font-size: 26px; color: var(--cobalt); transform: rotate(-4deg); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 900px) {
  .floaters { height: auto; display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: flex-start; padding-bottom: 8px; }
  .floater { position: static; }
  .fl-badge { --s: 64px; }
  .fl-label { font-size: 18px; }
  .fl-note { position: static; width: 100%; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .fl-badge { animation: none; } .floater { transition: none; } }

.photo-fav { position: absolute; top: clamp(24px, 4vw, 56px); left: 46%; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.1; white-space: nowrap; color: var(--ink); background: var(--cream); padding: 6px 18px; border: 2px solid var(--ink); border-radius: 999px; transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--ink); }
.photo-fav svg { position: absolute; left: 22%; bottom: -60px; width: 52px; height: 52px; color: #fff; filter: drop-shadow(1px 1px 0 rgba(21, 17, 14, .6)); }
@media (max-width: 760px) { .photo-fav { white-space: normal; border-radius: 18px; left: auto; right: 12px; top: 64px; font-size: 16px; padding: 4px 12px; max-width: 58%; } .photo-fav svg { width: 32px; height: 32px; bottom: -36px; left: 30%; } }

/* Hero lede spacing without the handwritten note */
.hero-lede { margin-top: 36px; }

/* Project still under wraps */
.brand-soon { border-style: dashed; cursor: default; }
.brand-soon .brand-status.now i { background: var(--orange); }
.brand-soon .brand-url { text-decoration: none; font-family: var(--hand); font-size: 20px; }
