:root {
  --red: #d64d65;
  --ink: #29272b;
  --paper: #f3f4f0;
  --gold: #bca1e5;
  --sky: #dceeee;
  --teal: #285f68;
  --coral: #785678;
  --violet: #75699a;
  --muted: #b9bdba;
  --body: 'Nunito Sans', sans-serif;
  --display: 'Mouse Memoirs', sans-serif;
  --accent: 'Tilt Warp', sans-serif;
  --page-width: min(1480px, 86vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: #d9cffe; color: var(--ink); font-family: var(--body); font-size: 20px; line-height: 1.7; }
a { color: inherit; }
img { display: block; max-width: 100%; }
main, footer { width: var(--page-width); margin-inline: auto; box-shadow: 0 0 34px rgba(41, 39, 43, .08); }

.site-header { position: fixed; top: 0; left: 50%; z-index: 20; width: var(--page-width); height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); transform: translateX(-50%); background: rgba(41, 39, 43, .93); color: #fff; backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .13); }
.brand { display: block; width: 64px; height: 46px; text-decoration: none; }
.brand-mark { position: relative; display: block; width: 64px; height: 46px; font: 400 37px/1 var(--accent); letter-spacing: -.12em; }
.brand-mark::before, .brand-mark::after { position: absolute; top: 5px; text-shadow: 3px 3px 0 rgba(0,0,0,.2); }
.brand-mark::before { content: 'a'; left: 0; color: var(--red); transform: rotate(-5deg); }
.brand-mark::after { content: 'n'; left: 27px; color: #fff; transform: rotate(4deg); }
nav { display: flex; gap: 34px; }
nav a { text-decoration: none; font: 650 22px/1 var(--body); letter-spacing: -.015em; }
nav a:hover, nav a:focus-visible { color: var(--gold); }
.menu-toggle { display: none; color: #fff; background: none; border: 1px solid #777; border-radius: 999px; padding: 8px 16px; font: 400 15px var(--accent); }

.hero { position: relative; min-height: 100svh; overflow: hidden; padding-top: 78px; background: var(--teal); }
.hero-photo { position: absolute; inset: 78px 0 0; background: linear-gradient(90deg, rgba(24, 50, 57, .34), rgba(24, 50, 57, 0) 65%), url('assets/hero-petrol.webp') right center / cover no-repeat; }
.hero-copy { position: relative; z-index: 1; min-height: calc(100svh - 78px); width: min(64%, 950px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 7vw; color: #fff; transform: translateY(3vh); }
.kicker, .eyebrow { margin: 0 0 12px; font: 400 25px/1.05 var(--display); letter-spacing: .025em; }
.hero .kicker { position: absolute; top: clamp(64px, 9vh, 108px); left: 7vw; display: flex; align-items: flex-end; gap: .2em; margin: 0; color: #fff; font: 400 clamp(35px, 4vw, 61px)/.8 var(--display); text-shadow: 0 3px 14px rgba(0,0,0,.3); }
.hero .kicker span { display: inline-block; }
.hero .kicker span:nth-child(1) { transform: rotate(-5deg) translateY(2px); }
.hero .kicker span:nth-child(2) { color: #d9f2ef; transform: rotate(3deg) translateY(-4px); }
.hero .kicker span:nth-child(3) { color: var(--gold); transform: rotate(-2deg); }
.hero h1, .section-copy h2, .section-heading h2, .contact h2 { margin: 0; font-family: var(--display); font-weight: 400; line-height: .86; }
.hero h1 { text-transform: lowercase; }
.hero h1 { position: relative; max-width: none; padding: 0; background: none; font-family: var(--accent); font-size: clamp(70px, 9.2vw, 146px); letter-spacing: -.055em; text-shadow: 5px 6px 0 rgba(41,39,43,.25); }
.hero h1 span { display: block; width: fit-content; }
.hero h1 span:first-child { color: #fff; transform: rotate(-1deg); }
.hero h1 span:last-child { margin: -.05em 0 0 .35em; color: var(--gold); transform: rotate(1deg); }
.hero ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.hero li { display: flex; align-items: center; padding: 0; color: #9ccbd5; font: 400 18px/1.2 var(--accent); letter-spacing: -.01em; }
.hero li:not(:last-child)::after { content: '·'; margin: 0 11px; color: var(--gold); font-size: 1.35em; line-height: .7; }
.scroll-cue { position: absolute; z-index: 2; bottom: 28px; left: 50%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 29px; text-decoration: none; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); }

.split { display: grid; grid-template-columns: 3fr 2fr; min-height: 760px; }
.section-copy { padding: clamp(58px, 7vw, 105px) clamp(30px, 8vw, 130px); }
.section-copy h2, .section-heading h2, .contact h2 { max-width: 100%; font-size: clamp(68px, 9vw, 138px); letter-spacing: -.025em; overflow-wrap: normal; }
.eyebrow { color: var(--red); }
.lead { font-size: clamp(22px, 2.2vw, 31px); font-weight: 700; line-height: 1.35; }
.button { display: inline-flex; align-items: center; gap: 20px; margin-top: 24px; padding: 15px 24px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font: 600 18px var(--body); letter-spacing: -.01em; }
.button:hover, .button:focus-visible { background: var(--gold); color: var(--ink); }
.portrait { position: relative; margin: 0; background: #fff; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-brasil img { object-position: 58% center; }
.portrait figcaption { position: absolute; right: 0; bottom: 0; max-width: 85%; padding: 26px 34px; background: var(--gold); font: 700 26px/1.2 var(--display); text-transform: uppercase; }

.dark { position: relative; overflow: hidden; background: linear-gradient(145deg, #e3f0ef 0%, #f1f1ec 45%, #e9e3ef 100%); color: var(--ink); }
.dark::before, .dark::after { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.dark::before { display: none; }
.dark::after { display: none; }
.ridiculum-overview { position: relative; z-index: 1; padding: clamp(60px, 7vw, 105px) clamp(24px, 7vw, 110px); }
.ridiculum-overview::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: center top / 100% auto repeat-y url('assets/ridiculum-doodles.svg'); }
.section-heading { margin-bottom: clamp(50px, 7vw, 90px); }
.section-heading h2 { color: var(--red); }
.section-heading > p { max-width: 620px; margin: 24px 0 0; color: var(--teal); font: 400 clamp(31px, 3.3vw, 47px)/1.05 var(--display); }
.roles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 42px); }
.role-card { position: relative; min-width: 0; padding: clamp(34px, 4vw, 62px); background: rgba(255,255,255,.92); border: 2px solid var(--ink); border-radius: 76px 26px 76px 26px; box-shadow: 11px 12px 0 var(--gold); }
.role-card:nth-child(3n) { border-radius: 28px 84px 28px 84px; box-shadow: 11px 12px 0 #b494b8; }
.role-card:nth-child(3n + 2) { border-radius: 86px 32px 60px 38px; box-shadow: 11px 12px 0 #82bcc0; }
.roles-grid h3 { max-width: 100%; margin: 0 0 18px; color: var(--teal); font: 400 clamp(58px, 6.2vw, 94px)/.86 var(--display); overflow-wrap: normal; text-transform: lowercase; letter-spacing: -.02em; }
.roles-grid p { margin: 0; color: var(--ink); }
.clown-card { padding: clamp(34px, 4vw, 62px); background: #f7f8f2; border-radius: 110px 34px 110px 34px; }
.clown-card .role-copy { margin-bottom: 28px; }
.role-link { display: inline-flex; margin-top: 25px; padding: 13px 20px; border: 2px solid var(--red); border-radius: 999px; background: var(--red); color: #fff; font: 600 18px var(--body); letter-spacing: -.01em; text-decoration: none; }
.role-link:hover, .role-link:focus-visible { background: var(--gold); border-color: var(--ink); color: var(--ink); }
.press-card { background: #d9cffe; color: var(--ink); border-radius: 32px 92px 32px 92px; box-shadow: 11px 12px 0 #82bcc0; }
.press-card h3 { color: var(--ink); }
.press-slider { position: relative; padding: 0; }
.press-slider::before { content: none; }
.press-slider blockquote { max-width: 1050px; margin: 0; font: 400 20px/1.7 var(--body); }

.books-image { width: 100%; height: auto; margin: 30px 0 6px; border-radius: 24px 10px 24px 10px; }
.divulgador-card { display: flex; flex-direction: column; align-items: flex-start; }
.divulgador-card h3 { white-space: nowrap; }
.divulgador-card > img { width: min(76%, 300px); margin: 24px auto 0; filter: drop-shadow(7px 9px 4px rgba(0,0,0,.13)); image-rendering: auto; }
.webmaster-card { grid-column: 1 / -1; }
.webmaster-card a { color: var(--red); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.clown-slider { container-type: inline-size; position: relative; max-width: 960px; margin: 0 auto; padding-bottom: 78px; }
.slider-viewport { overflow: hidden; border: 2px solid var(--ink); border-radius: 52px 18px 52px 18px; background: #111318; }
.slider-track { display: flex; transition: transform .5s cubic-bezier(.22, .75, .25, 1); }
.show-slide { position: relative; flex: 0 0 100%; min-width: 0; aspect-ratio: 1048 / 576; height: auto; padding: 0; overflow: hidden; border: 0; background: #111318; color: #fff; cursor: zoom-in; text-align: left; }
.show-slide img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transform: translateZ(0); }
.show-slide > span { position: absolute; inset: auto 18px 18px; display: flex; align-items: baseline; gap: .42em; width: fit-content; max-width: calc(100% - 36px); padding: 11px 16px; border-radius: 16px; background: rgba(41, 39, 43, .9); font: 400 clamp(14px, 4.6cqw, 28px)/1 var(--display); white-space: nowrap; }
.show-slide small { display: inline; margin: 0; color: var(--gold); font-size: .72em; letter-spacing: .025em; }
.framed-slide img { object-fit: cover; }
.slider-arrow { position: absolute; z-index: 2; bottom: 0; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 24px; cursor: pointer; }
.slider-prev { left: calc(50% - 57px); }
.slider-next { left: calc(50% + 9px); }
.slider-dots { position: absolute; left: 8px; bottom: 16px; display: flex; gap: 8px; }
.slider-dots button { width: 11px; height: 11px; padding: 0; border: 1px solid var(--red); border-radius: 50%; background: transparent; cursor: pointer; }
.slider-dots button.active { background: var(--red); }

.photo-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(5, 6, 8, .94); }
.photo-modal[hidden] { display: none; }
.photo-modal figure { margin: 0; max-width: 94vw; max-height: 92vh; }
.photo-modal img { width: auto; height: auto; max-width: 94vw; max-height: 82vh; margin: auto; object-fit: contain; }
.photo-modal figcaption { padding: 12px 8px 0; color: #fff; font: 400 clamp(25px, 2.8vw, 38px) var(--display); text-align: center; }
.photo-modal-close { position: fixed; z-index: 1; top: 20px; right: 24px; width: 50px; height: 50px; border: 1px solid #fff; border-radius: 50%; background: var(--red); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
body.modal-open { overflow: hidden; }

.directions { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(285px, .8fr) minmax(460px, 1.2fr); gap: 7vw; padding: clamp(60px, 7vw, 105px) clamp(24px, 7vw, 110px); border-top: 2px solid #b7cbca; background: #e9e5ef; }
.directions-intro h3 { max-width: 100%; margin: 0; color: var(--red); font: 400 clamp(68px, 9vw, 138px)/.86 var(--display); overflow-wrap: normal; white-space: nowrap; letter-spacing: -.025em; }
.directions-intro p:last-child { color: var(--teal); }
.accordion { border-top: 2px solid rgba(18,107,117,.45); }
.accordion details { border-bottom: 2px solid rgba(18,107,117,.35); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 400 clamp(28px, 2.7vw, 38px)/1 var(--display); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { color: var(--red); font-size: 32px; transition: transform .2s; }
.accordion details[open] summary span { transform: rotate(45deg); }
.accordion details > div { padding: 0 0 28px; color: var(--ink); }
.accordion details p { margin: 0 0 12px; }
.direction-body { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; gap: 28px; align-items: start; }
.direction-body img { width: 100%; max-height: 330px; object-fit: cover; }
.direction-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.direction-gallery figure { margin: 0; background: #fff; }
.direction-gallery img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; }
.direction-gallery figcaption { padding: 10px 13px; color: var(--ink); font: 400 25px var(--display); }

.contact { display: grid; grid-template-columns: 3fr 2fr; align-items: start; padding: 0; gap: 0; background: #f3f4f0; }
.contact > div { padding: clamp(60px, 7vw, 105px) clamp(30px, 8vw, 130px); }
.contact-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button.outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.button.outline:hover { background: var(--ink); color: #fff; }
.text-link { margin-top: 24px; font-weight: 800; }
.write-me { margin: 28px 0 0; color: var(--ink); font-family: var(--body); font-size: clamp(22px, 2.2vw, 31px); font-weight: 700; line-height: 1.35; }
.giraffe { align-self: start; margin: 0; overflow: hidden; box-shadow: inset -18px 0 0 var(--red); }
.giraffe img { width: 100%; margin: 0; }
.giraffe img:nth-child(2) { height: 170px; object-fit: cover; object-position: top; }

footer { background: #3c3a3a; color: #fff; }
footer > div { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px clamp(20px, 5vw, 72px); font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
.footer-links a { color: var(--gold); font: 600 16px/1.25 var(--body); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  body { font-size: 20px; }
  .site-header { height: 68px; }
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 22px; background: #29272b; flex-direction: column; gap: 22px; border-top: 1px solid #565159; }
  nav.open { display: flex; }
  .hero { padding-top: 68px; }
  .hero-photo { inset: 68px 0 0; background-size: auto 100%; background-position: right center; }
  .hero-copy { min-height: calc(100svh - 68px); width: 100%; justify-content: flex-end; padding: 22px 18px 14px; background: linear-gradient(180deg, rgba(41,39,43,.04), transparent 48%, rgba(41,39,43,.64)); transform: none; }
  .hero .kicker { position: absolute; top: 46px; left: 18px; font-size: clamp(31px, 9vw, 50px); }
  .hero h1 { max-width: none; padding: 0; font-size: clamp(58px, 18vw, 84px); }
  .hero h1 span:last-child { margin-left: .18em; }
  .hero ul { margin-top: 10px; gap: 6px; }
  .hero li { padding: 0; font-size: 18px; }
  .scroll-cue { display: none; }
  .split, .contact { grid-template-columns: 1fr; }
  .section-copy { padding: 58px 24px; }
  .portrait { height: 720px; }
  .roles-grid { grid-template-columns: 1fr; }
  .clown-card { grid-column: auto; }
  .ridiculum-overview { padding: 58px 24px; }
  .role-card, .clown-card { border-radius: 56px 22px 56px 22px; }
  .press-card, .webmaster-card { grid-column: auto; }
  .divulgador-card { display: flex; }
  .directions { grid-template-columns: 1fr; gap: 42px; padding: 58px 24px; }
  .direction-body { grid-template-columns: 1fr; }
  .contact { padding: 0; }
  .contact > div { padding: 58px 24px; }
  .giraffe { width: 100%; max-width: none; margin: 0; }
  footer > div { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .direction-gallery { grid-template-columns: 1fr; }
  .portrait { height: 650px; }
  .role-card, .clown-card { padding: 30px 22px; border-radius: 42px 18px 42px 18px; }
  .slider-viewport { border-radius: 34px 14px 34px 14px; }
  .show-slide > span { inset: auto 12px 12px; max-width: calc(100% - 24px); }
  .divulgador-card h3 { font-size: clamp(67px, 19vw, 86px); }
  .divulgador-card > img { width: 180px; margin: 15px auto 0; }
}

@media (min-width: 1600px) {
  :root { --page-width: min(1480px, 74vw); }
}

@media (max-width: 1100px) {
  :root { --page-width: 100%; }
  main, footer { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
