/* =========================================================================
   HUGO PASCOAL — PORTFÓLIO 2026
   Design system: preto absoluto, ciano elétrico, formas primárias,
   tipografia LT Amber Extended / Wide.
   ========================================================================= */

@font-face { font-family: 'Amber Ext'; src: url('../assets/fonts/LTAmberExt-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Amber Ext'; src: url('../assets/fonts/LTAmberExt-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Amber Ext'; src: url('../assets/fonts/LTAmberExt-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Amber Ext'; src: url('../assets/fonts/LTAmberExt-Demibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Amber Ext'; src: url('../assets/fonts/LTAmberExt-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Amber Wide'; src: url('../assets/fonts/LTAmberWide-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Amber Wide'; src: url('../assets/fonts/LTAmberWide-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Amber Wide'; src: url('../assets/fonts/LTAmberWide-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Amber Wide'; src: url('../assets/fonts/LTAmberWide-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .9);
  --hair: rgba(255, 255, 255, .22);
  --cyan: #3DDBFF;
  --cyan-2: #00CBFF;
  --cyan-deep: #266D81;
  --red: #FF2738;
  --yellow: #FFDC0F;
  --green: #18FF17;
  --lilac: #EBB2FF;
  --purple: #A60FFF;
  --blue: #002FFF;
  --forest: #007414;

  --f-ext: 'Amber Ext', 'Helvetica Neue', Arial, sans-serif;
  --f-wide: 'Amber Wide', 'Amber Ext', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 6.25vw, 120px);
  --maxw: 1680px;
  --radius: clamp(14px, 1.6vw, 30px);

  --t-display: clamp(46px, 7.7vw, 150px);
  --t-h1: clamp(34px, 4.4vw, 86px);
  --t-h2: clamp(26px, 3vw, 58px);
  --t-h3: clamp(20px, 2.05vw, 40px);
  --t-sec: clamp(20px, 2.45vw, 48px);
  --t-body: clamp(15px, 1.25vw, 24px);
  --t-small: clamp(12px, .9vw, 17px);
  --t-nav: clamp(15px, 1.45vw, 28px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-ext); font-weight: 400; font-size: var(--t-body); line-height: 1.22;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul { list-style: none; }
em { font-style: normal; color: var(--cyan); }
.intro__title em { animation: color-cycle 9s infinite; }
@keyframes color-cycle {
  0%, 15%   { color: #3DDBFF; }
  20%, 35%  { color: #FFDC0F; }
  40%, 55%  { color: #18FF17; }
  60%, 75%  { color: #EBB2FF; }
  80%, 95%  { color: #FF2738; }
  100%      { color: #3DDBFF; }
}
::selection { background: var(--yellow); color: #000; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-out); }
.cursor__label {
  position: absolute; left: 14px; top: 10px; white-space: nowrap;
  font-family: var(--f-wide); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.cursor.is-link .cursor__dot { transform: scale(3.4); }
.cursor.is-drag .cursor__dot { transform: scale(2.2); }
.cursor.is-drag .cursor__label, .cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-grab .cursor__dot { transform: scale(1.4); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2.6vw, 50px) var(--gutter) 0;
  pointer-events: none; transition: transform .5s var(--ease-out);
}
.site-header > * { pointer-events: auto; }
.site-header.is-hidden { transform: translateY(-140%); }
.site-header.is-scrolled { mix-blend-mode: difference; }
.menu-btn { display: inline-flex; align-items: center; gap: .55em; font-size: var(--t-nav); text-transform: uppercase; letter-spacing: .01em; }
.menu-btn__icon { width: 1.05em; height: .72em; position: relative; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out), opacity .2s; }
.menu-btn__icon i:nth-child(1) { top: 0; }
.menu-btn__icon i:nth-child(2) { top: calc(50% - 1px); }
.menu-btn__icon i:nth-child(3) { top: calc(100% - 2px); }
.menu-btn:hover .menu-btn__icon i:nth-child(2) { transform: scaleX(.6); transform-origin: left; }
.is-menu-open .menu-btn__icon i:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.is-menu-open .menu-btn__icon i:nth-child(2) { opacity: 0; }
.is-menu-open .menu-btn__icon i:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

.lang { display: inline-flex; align-items: center; font-size: var(--t-nav); }
.lang button { padding: .1em .45em; opacity: 1; transition: color .2s; }
.lang button.is-active { color: var(--yellow); }
.lang button:not(.is-active):hover { color: var(--yellow); }
.lang__sep { width: 2px; height: 1.25em; background: currentColor; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 800; background: var(--bg);
  display: grid; grid-template-rows: 1fr auto; padding: clamp(90px, 10vw, 170px) var(--gutter) clamp(24px, 3vw, 50px);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.is-menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s 0s; }
.menu__list { display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, .6vw, 12px); }
.menu__link {
  display: flex; align-items: baseline; gap: .4em; width: max-content; max-width: 100%;
  font-family: var(--f-wide); font-size: clamp(38px, 8.6vw, 168px); line-height: .88; text-transform: uppercase; letter-spacing: -.01em;
  transform: translateY(40%); opacity: 0; transition: transform .9s var(--ease-out), opacity .6s, color .25s;
}
.menu__link small { font-family: var(--f-ext); font-size: clamp(11px, .9vw, 16px); letter-spacing: .1em; color: var(--c); transform: translateY(-1.6em); }
.menu__link:hover, .menu__link.is-current { color: var(--c); }
.menu__link:nth-child(1) { --c: var(--yellow); } .menu__link:nth-child(2) { --c: var(--lilac); }
.menu__link:nth-child(3) { --c: var(--green); } .menu__link:nth-child(4) { --c: var(--red); }
.menu__link:hover .menu__arrow { transform: translateX(0) rotate(0); opacity: 1; }
.menu__arrow { width: .6em; height: .6em; transform: translateX(-30%) rotate(-45deg); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.is-menu-open .menu__link { transform: none; opacity: 1; }
.is-menu-open .menu__link:nth-child(2) { transition-delay: .06s; }
.is-menu-open .menu__link:nth-child(3) { transition-delay: .12s; }
.is-menu-open .menu__link:nth-child(4) { transition-delay: .18s; }
.menu__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; font-size: var(--t-small); color: var(--muted); border-top: 1px solid var(--hair); padding-top: 18px; }
.menu__foot a { color: var(--fg); }
.menu__foot a:hover { color: var(--yellow); }
.menu__shapes { position: absolute; right: var(--gutter); top: 50%; width: clamp(120px, 22vw, 380px); transform: translateY(-50%); pointer-events: none; }
.menu__shapes span { animation: floaty 6s ease-in-out infinite; }
.menu__shapes span:nth-child(2) { animation-delay: -2s; }
.menu__shapes span:nth-child(3) { animation-delay: -4s; }
.menu__shapes svg { width: 100%; height: auto; }

/* ---------- Common bits ---------- */
.rule-title {
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 32px);
  font-family: var(--f-wide); font-weight: 400; font-size: clamp(17px, 2.1vw, 42px); text-transform: uppercase; letter-spacing: .01em; line-height: 1;
  margin: 0 0 clamp(40px, 5vw, 96px);
}
.rule-title::before, .rule-title::after { content: ''; flex: 1; height: 2px; background: var(--line); transform-origin: right; transition: transform 1.2s var(--ease-out); }
.rule-title::after { transform-origin: left; }
.rule-title.reveal:not(.in)::before, .rule-title.reveal:not(.in)::after { transform: scaleX(0); }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.3vw, 26px); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  padding: .62em 2em .68em; border: 1.5px solid var(--fg); border-radius: .55em;
  color: var(--fg); font-size: clamp(13px, 1.45vw, 30px); line-height: 1; white-space: nowrap; isolation: isolate;
  transition: color .3s, border-color .3s;
}
.pill::before { content: ''; position: absolute; inset: 0; background: var(--c, var(--yellow)); transform: translateY(101%); transition: transform .45s var(--ease-out); z-index: -1; }
.pill:hover, .pill.is-active { color: #000; border-color: var(--c, var(--yellow)); }
.pill:hover::before, .pill.is-active::before { transform: none; }
/* tags de categoria: sempre numa linha. A fonte encolhe com a largura da própria linha (cqi);
   --k = largura da linha em "em" com os nomes curtos em PT (os mais longos), 20px = bordas */
.pills.pills--line { --k: 45.5; --gap: .8em; container-type: inline-size; flex-wrap: nowrap; gap: 0; }
.pills--line .pill { font-size: min(clamp(13px, 1.45vw, 30px), calc((100cqi - 20px) / var(--k))); }
.pills--line .pill + .pill { margin-left: var(--gap); }
@media (max-width: 760px) {
  .pills.pills--line { --k: 29.2; --gap: .3em; }
  .pills--line .pill { padding-left: .6em; padding-right: .6em; }
}
.pills--white .pill { color: var(--fg); }
.pills--white .pill.is-active { color: #000; }

.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .7em 1.05em .72em;
  background: var(--fg); color: #000; font-size: clamp(14px, 1.2vw, 22px); line-height: 1;
  position: relative; overflow: hidden; isolation: isolate; transition: color .3s;
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); z-index: -1; }
.btn:hover::before { transform: none; }
.btn svg { width: .85em; height: .85em; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--dark { background: #000; color: #fff; text-transform: uppercase; padding: 1em 1.3em; }
.btn--dark::before { background: #fff; }
.btn--dark:hover { color: #000; }

.hint {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-wide); font-size: clamp(9px, .66vw, 12px);
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.45); opacity: .5; } }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(6deg); } }

.signoff { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
.signoff__name { font-size: clamp(13px, 1vw, 19px); line-height: 1.15; }
.signoff__name b { font-weight: 700; display: block; }
.signature { width: clamp(110px, 9vw, 175px); height: auto; color: var(--fg); }
.signature path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io) .2s; }
.in .signature path, .signature.in path { stroke-dashoffset: 0; }

/* ---------- Physics layer ---------- */
.physics { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
/* formas podem sair para cima, mas nunca criam rolagem lateral */
.hero, .ah, .ph, .pj-hero { overflow-x: clip; }
.physics--clip { overflow: hidden; }
.shape {
  position: absolute; left: 0; top: 0; pointer-events: auto; touch-action: none; cursor: grab;
  will-change: transform; user-select: none; -webkit-user-select: none;
}
.shape svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 0 transparent); transition: filter .3s; }
.shape:hover svg { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.shape.is-held { cursor: grabbing; }
.shape.is-held svg { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.no-physics .shape { cursor: default; }

/* ---------- Photo frame (cyan rect + cutout) ---------- */
.frame { position: relative; width: 100%; }
.frame__years { display: flex; align-items: center; gap: .6em; font-family: var(--f-wide); font-size: clamp(12px, 1.25vw, 24px); margin-bottom: clamp(10px, 1.2vw, 22px); }
.frame__years i { flex: 1; height: 2px; background: var(--fg); transform-origin: center; }
.frame__years b { width: 30%; }
.frame__box { position: relative; aspect-ratio: 470 / 345; background: var(--cyan); }
.frame__img { position: absolute; left: 50%; bottom: 0; width: 101%; transform: translateX(-50%); z-index: 2; }
.frame__img img { width: 100%; height: auto; }

/* ---------- HOME: hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(110px, 11vw, 190px) 0 clamp(40px, 4vw, 70px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(30px, 4.5vw, 90px); }
.hero__photo { position: relative; z-index: 2; padding-left: clamp(0px, 1.5vw, 30px); }
.hero__copy { position: relative; z-index: 4; }
.hero__name { font-family: var(--f-wide); font-size: clamp(13px, 1.45vw, 28px); letter-spacing: .32em; text-transform: uppercase; margin-bottom: .4em; }
.hero__title { font-family: var(--f-wide); font-weight: 300; font-size: clamp(36px, 6.9vw, 134px); line-height: .84; text-transform: uppercase; letter-spacing: -.01em; margin-left: -.04em; width: max-content; max-width: 100%; }
.hero__sub { font-size: clamp(16px, 1.65vw, 32px); line-height: 1.02; margin: .55em 0 1.1em; }
.hero .pills { margin-top: clamp(40px, 4.6vw, 90px); position: relative; z-index: 4; }
.hero__hint { position: absolute; left: 50%; top: clamp(22px, 3.1vw, 60px); transform: translateX(-50%); z-index: 4; white-space: nowrap; }

.line-mask { display: block; overflow: hidden; padding-bottom: .04em; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.in .line-mask > span, .line-mask.in > span { transform: none; }
.line-mask:nth-child(2) > span { transition-delay: .08s; }
.line-mask:nth-child(3) > span { transition-delay: .16s; }

/* ---------- HOME: vision + notepad ---------- */
.vision { padding: clamp(60px, 7vw, 140px) 0 clamp(80px, 9vw, 170px); }
.vision__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 5vw, 100px); align-items: center; }
.kicker { display: flex; align-items: center; gap: .6em; font-size: clamp(11px, .95vw, 18px); text-transform: uppercase; letter-spacing: .02em; margin-bottom: .8em; }
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); }
.kicker--plain { text-transform: none; font-size: clamp(14px, 1.45vw, 28px); margin-bottom: .2em; }
.kicker--plain::before { display: none; }
.vision__title { font-family: var(--f-wide); font-weight: 300; font-size: clamp(28px, 3.7vw, 72px); line-height: .9; margin-bottom: .5em; }
.vision__text { font-size: clamp(15px, 1.3vw, 25px); line-height: 1.1; max-width: 36em; margin-bottom: 1.4em; }

.notepad { position: relative; width: min(100%, 470px); aspect-ratio: 1 / .86; margin: 0 auto; touch-action: pan-y; }
.notepad__hint { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); white-space: nowrap; }
.note {
  position: absolute; inset: 0; border-radius: clamp(26px, 3vw, 54px); background: var(--note, var(--cyan));
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #000;
  user-select: none; -webkit-user-select: none; will-change: transform;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1), 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: transform .7s var(--ease-out), opacity .4s;
}
.note.is-top { cursor: grab; touch-action: none; }
.note.is-dragging { transition: none; cursor: grabbing; }
.note.is-flying { transition: transform .55s cubic-bezier(.3, .7, .4, 1), opacity .55s; }
.note__num { font-family: var(--f-ext); font-weight: 700; font-size: clamp(60px, 7.4vw, 142px); line-height: .82; letter-spacing: -.03em; display: flex; align-items: flex-start; }
.note__num sup { font-weight: 400; font-size: .52em; line-height: 1; margin-left: .02em; }
.note__label { font-weight: 500; font-size: clamp(16px, 1.75vw, 34px); line-height: .9; margin-top: .3em; }
.note__curl {
  position: absolute; right: 0; bottom: 0; width: 17%; aspect-ratio: 1; border-radius: 26% 0 clamp(26px, 3vw, 54px) 0;
  background: rgba(0, 0, 0, .16); box-shadow: -3px -3px 10px rgba(0, 0, 0, .12);
  transform-origin: 100% 100%; transition: transform .45s var(--ease-out);
}
.note.is-top:hover .note__curl { transform: scale(1.4); }
.note__idx { position: absolute; left: 9%; top: 9%; font-family: var(--f-wide); font-size: clamp(9px, .7vw, 13px); letter-spacing: .18em; opacity: .55; }

/* ---------- Project cards ---------- */
.selected { padding-bottom: clamp(24px, 2.4vw, 48px); }
.selected .pills { margin-bottom: clamp(30px, 3.2vw, 64px); }
.proj-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(36px, 4vw, 70px) clamp(18px, 2.6vw, 50px); }
.proj-grid > .card { grid-column: span 3; }
.proj-grid > .card:nth-child(n+3) { grid-column: span 2; }
.proj-grid--4 > .card:nth-child(n+3) { grid-column: span 3; }
.card { display: block; position: relative; }
.card__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #111; isolation: isolate; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover .card__media img, .card:hover .cover__inner { transform: scale(1.045); }
.card__cap { display: flex; align-items: center; gap: clamp(8px, .9vw, 16px); padding: clamp(12px, 1.2vw, 22px) clamp(10px, 1.2vw, 22px) 0; }
.card__name { font-weight: 700; font-size: clamp(14px, 1.35vw, 26px); white-space: nowrap; }
.card__rule { flex: 1; height: 1.5px; background: var(--fg); transform-origin: left; transition: transform .8s var(--ease-out), background .3s; }
.card__date { font-size: clamp(11px, 1vw, 19px); white-space: nowrap; }
.card:hover .card__rule { background: var(--c, var(--yellow)); }
.card__go {
  position: absolute; right: clamp(12px, 1.2vw, 22px); top: clamp(12px, 1.2vw, 22px); z-index: 3;
  width: clamp(40px, 3.6vw, 66px); aspect-ratio: 1; border-radius: 50%; background: #000; color: #fff;
  display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease-out);
}
.card__go svg { width: 38%; }
.card:hover .card__go { transform: none; }
.card__tags { position: absolute; left: clamp(12px, 1.2vw, 22px); bottom: clamp(12px, 1.2vw, 22px); z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; opacity: 0; transform: translateY(10px); transition: .45s var(--ease-out); }
.card__tags span { background: #000; color: #fff; font-size: clamp(10px, .75vw, 14px); padding: .45em .8em; border-radius: 100px; }
.card:hover .card__tags { opacity: 1; transform: none; }

/* Generated placeholder cover */
.cover { position: absolute; inset: 0; background: var(--c, var(--cyan)); color: #000; overflow: hidden; }
.cover__inner { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.cover__name {
  position: absolute; left: 6%; bottom: 7%; right: 6%;
  font-family: var(--f-wide); font-size: clamp(26px, 4.4vw, 88px); line-height: .8; text-transform: uppercase; letter-spacing: -.02em; word-break: break-word;
}
.cover__kicker { position: absolute; left: 6%; top: 8%; font-size: clamp(10px, .8vw, 15px); text-transform: uppercase; letter-spacing: .14em; }
.cover__year { position: absolute; right: 6%; top: 8%; font-family: var(--f-wide); font-size: clamp(10px, .8vw, 15px); letter-spacing: .14em; }
.cover__shape { position: absolute; right: -5%; top: 18%; height: 52%; }
.cover__shape svg { height: 100%; width: auto; }
.cover__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px); background-size: 8.333% 12.5%; }
.cover--dark { color: #fff; }
.cover--dark .cover__grid { background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); }
.proj-grid > .card:nth-child(n+3) .cover__name { font-size: clamp(22px, 3vw, 60px); }

.see-more { display: flex; flex-direction: column; align-items: center; gap: .35em; margin: clamp(50px, 5vw, 90px) auto 0; width: max-content; font-size: clamp(22px, 2.4vw, 46px); text-transform: uppercase; }
.see-more__plus { width: 1.15em; height: 1.15em; border: 1.5px solid var(--yellow); border-radius: 50%; position: relative; transition: transform .6s var(--ease-out), background .3s; }
.see-more__plus::before, .see-more__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 100%; height: 1.5px; background: var(--fg); transform: translate(-50%, -50%); }
.see-more__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.see-more:hover .see-more__plus { transform: rotate(180deg); background: var(--yellow); }

/* ---------- Awards / quote / stats ---------- */
.awards { padding: clamp(20px, 2vw, 40px) 0 clamp(60px, 6vw, 110px); }
/* lista tipo índice: troféu | prêmio | ano (discreto, no fim da linha). No hover a cor sobe de baixo e enche a linha (o pulo e o confete vêm do sections.js) */
.awards__list { max-width: 1240px; margin: 0 auto; border-bottom: 1.5px solid var(--hair); }
.award {
  position: relative; isolation: isolate; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(14px, 2vw, 40px); padding: clamp(16px, 1.7vw, 32px) clamp(12px, 1.6vw, 30px); border-top: 1.5px solid var(--hair); transition: color .35s;
}
.award::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c); clip-path: inset(100% 0 0 0); transition: clip-path .5s var(--ease-out); }
.award:nth-child(4n+1) { --c: var(--yellow); } .award:nth-child(4n+2) { --c: var(--green); }
.award:nth-child(4n+3) { --c: var(--lilac); } .award:nth-child(4n+4) { --c: var(--red); }
.award__year { font-family: var(--f-wide); font-size: var(--t-small); letter-spacing: .16em; line-height: 1; color: var(--muted); transition: color .35s; }
.award__title { font-size: clamp(16px, 1.75vw, 34px); line-height: 1.05; transition: transform .6s var(--ease-out); }
.award__icon { width: clamp(28px, 2.7vw, 52px); color: var(--c); transition: color .35s; }
.award__icon path[fill="#000"] { fill: #000; transition: fill .35s; }
.award:hover, .award.is-on { color: #000; }
.award:hover::before, .award.is-on::before { clip-path: inset(0); }
.award:hover .award__year, .award.is-on .award__year, .award:hover .award__icon, .award.is-on .award__icon { color: #000; }
.award:hover .award__icon path[fill="#000"], .award.is-on .award__icon path[fill="#000"] { fill: var(--c); }
.award:hover .award__title, .award.is-on .award__title { transform: translateX(.5em); }
/* confete que sai do troféu (criado no body para voar por cima de tudo) */
.confetti { position: fixed; z-index: 90; pointer-events: none; display: block; }
.confetti svg { display: block; width: 100%; height: auto; }

.quote { text-align: center; padding: clamp(60px, 6vw, 110px) 0 0; }
.quote__text { font-size: clamp(22px, 2.6vw, 50px); line-height: .98; }
.quote__by { color: var(--c, var(--yellow)); font-size: clamp(13px, 1.25vw, 24px); margin-top: 1.4em; }
.qrot { cursor: pointer; user-select: none; }
.qrot__stack { display: grid; }
.qrot__item { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .8s var(--ease-out); pointer-events: none; }
.qrot__item.is-on { opacity: 1; transform: none; transition-delay: .25s; }
.qrot__item .quote__text { max-width: 22em; margin: 0 auto; text-wrap: balance; }
.qrot__count { margin-top: 1.2em; font-family: var(--f-wide); font-size: clamp(9px, .7vw, 13px); letter-spacing: .2em; color: var(--muted); }
.qrot__count span { color: var(--fg); }
/* na Home (seção própria, depois da assinatura) as frases ficam ~15% maiores e mais perto da assinatura;
   a margem negativa aproxima a faixa de contato até a cabeça da foto quase encostar no texto */
.quote-sec { margin-bottom: calc(-1 * clamp(14px, 1.4vw, 50px)); }
.quote-sec .quote { padding-top: clamp(20px, 2vw, 40px); }
.quote-sec .quote__text { font-size: clamp(25px, 3vw, 58px); }
.quote-sec .quote__by { font-size: clamp(15px, 1.44vw, 28px); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: clamp(50px, 5.5vw, 100px) auto 0; }
.stats--3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
.stat { text-align: center; padding: 0 clamp(8px, 1.4vw, 26px); position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; background: var(--fg); transform-origin: top; transition: transform 1s var(--ease-out) .2s; }
.stats.reveal:not(.in) .stat + .stat::before { transform: scaleY(0); }
.stat:nth-child(1) { --c: var(--yellow); } .stat:nth-child(2) { --c: var(--lilac); }
.stat:nth-child(3) { --c: var(--green); } .stat:nth-child(4) { --c: var(--red); }
.stat__num { color: var(--c); font-size: clamp(40px, 5.6vw, 108px); line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: clamp(11px, 1.2vw, 22px); line-height: 1.05; margin-top: .3em; }

/* ---------- Partners ---------- */
.partners { padding: clamp(60px, 6vw, 110px) 0 clamp(50px, 5vw, 90px); }
.testis { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 4vw, 70px) clamp(30px, 4vw, 80px); max-width: 1500px; margin: 0 auto; }
.testi { display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(12px, 1.4vw, 26px); }
.testi:nth-child(4n+1) { --c: var(--yellow); } .testi:nth-child(4n+2) { --c: var(--lilac); }
.testi:nth-child(4n+3) { --c: var(--green); } .testi:nth-child(4n+4) { --c: var(--red); }
.testi__mark { width: clamp(50px, 4.6vw, 88px); aspect-ratio: 1; border: 2px solid var(--c); display: grid; place-items: center; transition: background .3s, transform .5s var(--ease-out); }
.testi__mark svg { width: 58%; color: var(--fg); }
.testi:hover .testi__mark { background: var(--c); transform: rotate(-6deg); }
.testi:hover .testi__mark svg { color: #000; }
.testi__body { padding-top: clamp(26px, 2.4vw, 46px); }
.testi__name { font-weight: 700; font-size: clamp(18px, 2.05vw, 40px); line-height: 1; margin-bottom: .4em; }
.testi__name small { font-weight: 400; font-size: .55em; }
.testi__text { font-size: clamp(14px, 1.3vw, 25px); line-height: 1.22; }

.marquee {
  position: relative; overflow: hidden; margin-top: clamp(60px, 6vw, 110px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; padding: 0 clamp(36px, 4.6vw, 90px); }
.marquee__item img { height: clamp(26px, 2.8vw, 54px); width: auto; opacity: .92; transition: opacity .3s, transform .5s var(--ease-out), filter .3s; }
.marquee__item img:hover { opacity: 1; transform: translateY(-4px); filter: drop-shadow(0 0 14px rgba(255, 255, 255, .45)); }
@keyframes marquee { to { transform: translateX(-50%); } }
.partners__text { text-align: center; font-size: clamp(14px, 1.3vw, 25px); max-width: 44em; margin: clamp(30px, 3vw, 60px) auto 0; color: var(--fg); }

/* ---------- Outro (logo + physics) ---------- */
.outro { position: relative; height: clamp(520px, 62vw, 1080px); overflow: hidden; display: grid; place-items: center; }
.outro__logo { position: relative; z-index: 2; text-align: center; pointer-events: none; }
.logo-type { display: inline-flex; flex-direction: column; font-family: var(--f-ext); font-weight: 400; text-transform: uppercase; line-height: .9; font-size: clamp(64px, 12vw, 236px); letter-spacing: -.01em; }
.logo-type__l1 { display: flex; align-items: center; gap: .1em; }
.logo-type__l1 i { flex: 1; height: .052em; background: currentColor; margin-top: -.05em; transform-origin: left; transition: transform 1.2s var(--ease-io) .2s; }
.outro__logo.reveal:not(.in) .logo-type__l1 i { transform: scaleX(0); }
.outro__role { font-size: clamp(14px, 1.6vw, 31px); text-transform: uppercase; margin-top: .9em; }
.outro__hint { position: absolute; left: 50%; bottom: clamp(18px, 2vw, 34px); transform: translateX(-50%); z-index: 4; }
.outro__reset { position: absolute; right: var(--gutter); bottom: clamp(14px, 1.6vw, 28px); z-index: 4; font-family: var(--f-wide); font-size: clamp(9px, .66vw, 12px); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: .6em; align-items: center; }
.outro__reset:hover { color: var(--yellow); }
.outro__reset svg { width: 14px; }

/* ---------- Contact band ---------- */
/* a faixa tem só a altura do texto; a foto fica presa embaixo e vaza para cima (a margem de cima abre espaço para ela) */
.contact { position: relative; background: var(--cyan); color: #000; margin-top: clamp(120px, 13.5vw, 260px); }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.contact__copy { padding: clamp(20px, 1.8vw, 36px) 0; position: relative; z-index: 2; }
.contact__kicker { font-family: var(--f-wide); font-size: clamp(12px, 1.2vw, 22px); letter-spacing: .14em; text-transform: uppercase; }
.contact__title { font-family: var(--f-wide); font-weight: 400; font-size: clamp(24px, 3.3vw, 64px); line-height: .86; margin: .15em 0 .35em; letter-spacing: -.01em; }
.contact__text { font-size: clamp(13px, 1.15vw, 22px); line-height: 1.02; margin-bottom: .9em; }
.contact__row { display: flex; align-items: center; gap: clamp(14px, 1.2vw, 22px); flex-wrap: wrap; }
.contact__info { font-size: clamp(13px, 1.2vw, 23px); line-height: 1.15; }
.contact__info a { display: flex; align-items: center; gap: .4em; }
.contact__info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__info svg { width: .8em; height: .8em; }
.contact__photo { position: relative; align-self: stretch; width: clamp(312px, 33.8vw, 650px); margin-right: clamp(0px, 3vw, 60px); }
.contact__photo img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; z-index: 2; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 0; }
.site-footer::before { content: ''; display: block; height: 6px; background: linear-gradient(90deg, var(--yellow) 0 20%, var(--lilac) 20% 40%, var(--green) 40% 60%, var(--red) 60% 80%, var(--cyan) 80%); }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; }
.footer__left { display: flex; gap: clamp(18px, 2vw, 40px); padding: clamp(22px, 2.2vw, 40px) clamp(10px, 4vw, 80px) clamp(22px, 2.2vw, 40px) 0; border-right: 1.5px solid var(--hair); }
.social { display: flex; flex-direction: column; gap: 10px; }
.social a:nth-child(1) { --c: var(--yellow); } .social a:nth-child(2) { --c: var(--lilac); } .social a:nth-child(3) { --c: var(--green); }
.social a { width: clamp(34px, 2.6vw, 50px); aspect-ratio: 1; border: 1.5px solid var(--fg); display: grid; place-items: center; transition: background .25s, color .25s; }
.social a svg { width: 66%; }
.social a:hover { background: var(--c); border-color: var(--c); color: #000; }
.fcol { padding-right: clamp(14px, 2vw, 36px); }
.fcol + .fcol { border-left: 1.5px solid var(--hair); padding-left: clamp(14px, 2vw, 36px); }
.fcol:nth-child(2) h4 { --c: var(--yellow); } .fcol:nth-child(3) h4 { --c: var(--lilac); }
.fcol h4 { color: var(--c); font-weight: 400; font-size: clamp(12px, 1.05vw, 20px); text-transform: uppercase; margin-bottom: .25em; }
.fcol a { display: block; font-size: clamp(12px, 1.05vw, 20px); line-height: 1.35; transition: color .2s, transform .3s var(--ease-out); }
.fcol a:hover { color: var(--yellow); transform: translateX(4px); }
.footer__right { display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 2.2vw, 40px) 0 clamp(22px, 2.2vw, 40px) clamp(20px, 5.5vw, 110px); }
.footer__brand { color: var(--fg); font-family: var(--f-wide); font-weight: 400; font-size: clamp(22px, 2.5vw, 48px); line-height: .88; text-transform: uppercase; }
.footer__role { font-size: clamp(16px, 1.75vw, 34px); line-height: 1; margin-bottom: .45em; }
.footer__right a { font-size: clamp(13px, 1.3vw, 25px); line-height: 1.1; display: flex; align-items: center; gap: .4em; }
.footer__right a:hover { color: var(--yellow); }
.footer__right svg { width: .75em; height: .75em; }
.footer__bottom { border-top: 1.5px solid var(--hair); text-align: center; font-size: clamp(11px, .95vw, 18px); padding: clamp(16px, 1.4vw, 28px) var(--gutter) clamp(24px, 2.6vw, 50px); }
.to-top {
  display: inline-grid; place-items: center; vertical-align: middle; margin-left: 1em;
  width: 2.4em; height: 2.4em; border: 1.5px solid var(--fg); border-radius: 50%; color: var(--fg); cursor: pointer;
  transition: background .25s, color .25s, transform .4s var(--ease-out);
}
.to-top svg { width: 50%; height: 50%; }
.to-top:hover { background: var(--yellow); border-color: var(--yellow); color: #000; transform: translateY(-3px); }
.be-ico { font-family: var(--f-ext); font-weight: 700; font-size: clamp(13px, 1.05vw, 20px); line-height: 1; letter-spacing: -.02em; display: inline-flex; align-items: baseline; }
.be-ico span { font-size: .92em; margin-left: .04em; }

/* ---------- PROJECTS page ---------- */
.ph { position: relative; padding: clamp(120px, 12vw, 220px) 0 clamp(40px, 4vw, 80px); overflow: visible; }
.stack { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; user-select: none; }
.stack__line {
  display: block; font-family: var(--f-wide); font-weight: 300; text-transform: uppercase; font-size: clamp(46px, 14.6vw, 284px); line-height: .8; letter-spacing: -.005em;
  overflow: hidden; height: var(--h, .78em); transition: height .7s var(--ease-out), transform .7s var(--ease-out);
}
.stack__line span { display: block; transform: translateY(var(--ty, 0)); transition: transform 1s var(--ease-out); }
.stack__line:nth-child(1) { --h: .78em; }
.stack__line:nth-child(2) { --h: .5em; margin-top: .02em; }
.stack__line:nth-child(3) { --h: .34em; margin-top: .02em; }
.stack__line:nth-child(4) { --h: .22em; margin-top: .02em; }
.stack:hover .stack__line:nth-child(2) { --h: .6em; }
.stack:hover .stack__line:nth-child(3) { --h: .46em; }
.stack:hover .stack__line:nth-child(4) { --h: .34em; }
.ph .pills { margin-top: clamp(40px, 4.4vw, 84px); position: relative; z-index: 4; }

.plist { padding: clamp(40px, 4vw, 80px) 0 0; display: flex; flex-direction: column; gap: clamp(70px, 8vw, 160px); }
.prow { display: grid; grid-template-columns: 1.58fr 1fr; gap: clamp(24px, 4vw, 80px); align-items: center; }
.prow.prow--flip { grid-template-columns: 1fr 1.58fr; }
.prow:nth-child(even) .prow__media { order: 2; }
.prow__media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; position: relative; background: #111; isolation: isolate; }
.prow__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.prow:hover .prow__media img, .prow:hover .cover__inner { transform: scale(1.04); }
.prow__title { font-family: var(--f-wide); font-weight: 300; font-size: clamp(28px, 3.2vw, 62px); line-height: .9; margin-bottom: .3em; display: flex; align-items: baseline; gap: .3em; flex-wrap: wrap; }
.prow__title small { font-size: .38em; }
.prow__kicker { font-family: var(--f-wide); color: var(--c, var(--yellow)); font-size: clamp(10px, .8vw, 15px); letter-spacing: .2em; text-transform: uppercase; display: block; margin-bottom: 1.2em; }
.prow__text { font-size: clamp(15px, 1.4vw, 27px); line-height: 1.15; max-width: 25em; }
.prow__tags { font-size: clamp(14px, 1.3vw, 25px); margin: 1.3em 0 .9em; }
.prow__more { display: inline-flex; align-items: center; gap: .35em; font-size: clamp(14px, 1.3vw, 25px); position: relative; }
.prow__more::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--c, var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.prow__more:hover { color: var(--c, var(--yellow)); }
.prow__more:hover::after { transform: none; }
.prow.is-hidden { display: none; }
.plist__empty { text-align: center; color: var(--muted); padding: 60px 0; display: none; }
.plist.is-empty .plist__empty { display: block; }

/* ---------- PROJECT page ---------- */
.pj-hero { padding: clamp(120px, 11vw, 210px) 0 clamp(30px, 3vw, 60px); position: relative; }
.pj-back { display: inline-flex; align-items: center; gap: .5em; font-size: var(--t-small); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: clamp(24px, 2.6vw, 50px); }
.pj-back svg { width: 1em; transform: rotate(180deg); transition: transform .4s var(--ease-out); }
.pj-back:hover { color: var(--yellow); }
.pj-back:hover svg { transform: rotate(180deg) translateX(4px); }
.pj-kicker { display: flex; gap: 1em; align-items: center; font-family: var(--f-wide); font-size: clamp(11px, 1vw, 19px); letter-spacing: .24em; text-transform: uppercase; margin-bottom: .6em; }
.pj-kicker b { font-weight: 400; color: var(--c, var(--yellow)); }
.pj-title { font-family: var(--f-wide); font-weight: 300; text-transform: uppercase; font-size: clamp(40px, 9.4vw, 182px); line-height: .8; letter-spacing: -.02em; word-break: break-word; }
.pj-shape { position: absolute; right: var(--gutter); top: clamp(110px, 10vw, 190px); width: clamp(70px, 10vw, 190px); z-index: 3; }
.pj-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; position: relative; background: #111; margin-top: clamp(30px, 3.4vw, 64px); }
.pj-cover img { width: 100%; height: 100%; object-fit: cover; }
.pj-cover.is-layered { overflow: visible; background: none; }
.plx { position: absolute; inset: 0; }
.plx__clip { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); background: #111; }
.plx__float { position: absolute; inset: 0; animation: plx-float-y 7s ease-in-out infinite; pointer-events: none; }
.plx--x .plx__float { animation-name: plx-float-x; }
.plx img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.plx.is-pendulum .plx__float { animation: none; }
@keyframes plx-float-x { 0%, 100% { transform: translateX(-.8%); } 50% { transform: translateX(.8%); } }
@keyframes plx-float-y { 50% { transform: translateY(-1.6%); } }
.pj-cover .cover__name { font-size: clamp(40px, 9vw, 180px); }
.pj-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 2px solid var(--fg); border-bottom: 1px solid var(--hair); margin-top: clamp(40px, 4vw, 80px); }
.pj-meta > div { padding: clamp(16px, 1.6vw, 30px) clamp(10px, 1.2vw, 24px) clamp(16px, 1.6vw, 30px) 0; }
.pj-meta > div + div { border-left: 1px solid var(--hair); padding-left: clamp(12px, 1.4vw, 26px); }
.pj-meta dt { color: var(--c, var(--yellow)); font-size: var(--t-small); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5em; }
.pj-meta dd { margin: 0; font-size: clamp(14px, 1.25vw, 24px); line-height: 1.15; }
.pj-intro { font-size: clamp(22px, 2.6vw, 50px); line-height: 1.04; max-width: 26em; margin-inline: auto; text-align: center; text-wrap: pretty; padding: clamp(50px, 6vw, 120px) 0 clamp(40px, 4vw, 80px); }
.pj-platform { border-top: 1.5px solid var(--hair); padding: clamp(36px, 3.6vw, 70px) 0 clamp(50px, 5vw, 100px); }
.pj-platform[hidden] { display: none; }
.pj-platform__title { font-family: var(--f-wide); font-weight: 400; font-size: clamp(13px, 1.1vw, 20px); letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--yellow)); margin-bottom: clamp(26px, 2.8vw, 54px); }
.pj-platform__grid { display: grid; grid-template-columns: var(--cols, 1.4fr 1fr 1fr); gap: clamp(24px, 3vw, 60px); margin: 0; }
/* pilares: faixa própria embaixo, ocupando a largura toda, um pilar ao lado do outro */
.pf--pillars { grid-column: 1 / -1; margin-top: clamp(4px, 1vw, 20px); padding-top: clamp(24px, 2.8vw, 54px); border-top: 1.5px solid var(--hair); }
.pf dt { font-size: var(--t-small); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1em; }
.pf dd { margin: 0; }
.pf__big { font-family: var(--f-wide); font-weight: 300; font-size: clamp(22px, 2.2vw, 42px); line-height: .95; }
.pf__sub { margin-top: .9em; font-size: clamp(12px, .95vw, 17px); color: var(--muted); }
.pf__example { margin-top: 1em; font-family: var(--f-wide); font-weight: 300; font-size: clamp(14px, 1.2vw, 22px); line-height: 1.1; color: var(--c, var(--yellow)); }
.pf__pillars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(20px, 3vw, 60px); }
.pf__pillars li { display: flex; gap: .7em; align-items: flex-start; }
.pf__pillars svg { width: clamp(16px, 1.3vw, 24px); height: auto; flex: none; margin-top: .15em; }
.pf__pillars b { display: block; font-family: var(--f-wide); font-weight: 400; font-size: clamp(16px, 1.45vw, 27px); line-height: 1; margin-bottom: .25em; }
.pf__pillars span { font-size: clamp(13px, 1.05vw, 19px); color: rgba(255, 255, 255, .78); }
.pf__kw { display: flex; flex-wrap: wrap; gap: .5em; }
.pf__kw span { border: 1.5px solid var(--c, var(--yellow)); border-radius: 100px; padding: .45em 1em; font-size: clamp(13px, 1.1vw, 20px); line-height: 1; }
.pj-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 100px); padding-bottom: clamp(50px, 5vw, 100px); }
.pj-cols[hidden] { display: none; }
.pj-cols h3 { font-weight: 400; font-size: var(--t-h3); margin-bottom: .6em; display: flex; align-items: center; gap: .5em; }
.pj-cols h3 svg { width: .8em; }
.pj-cols p { font-size: clamp(15px, 1.3vw, 25px); line-height: 1.22; color: rgba(255, 255, 255, .86); }
.gallery { display: flex; flex-direction: column; gap: clamp(40px, 4.4vw, 84px); }
.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; align-items: start; gap: clamp(12px, 1.4vw, 26px); }
.gallery__group { display: flex; align-items: baseline; gap: .7em; margin-bottom: clamp(14px, 1.4vw, 26px); font-family: var(--f-wide); font-weight: 400; font-size: clamp(16px, 1.6vw, 30px); text-transform: uppercase; }
.gallery__group::before { content: ''; width: .5em; height: .5em; border-radius: 50%; background: var(--c, var(--yellow)); transform: translateY(-.1em); }
.gallery__group small { font-family: var(--f-ext); font-size: .5em; color: var(--muted); letter-spacing: .1em; }
.gallery__item { grid-column: span 3; position: relative; display: grid; place-items: center; border-radius: var(--radius); overflow: hidden; background: #0d0d0d; cursor: zoom-in; }
.gallery__item.g-w { grid-column: 1 / -1; }
.gallery__item.g-t { grid-column: span 2; }
.gallery__item img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.gallery__item.is-more { display: none; }
.gallery__sec.is-open .gallery__item.is-more { display: grid; }
.gallery__more {
  display: block; margin: clamp(18px, 2vw, 36px) auto 0; padding: .8em 1.6em; border: 1.5px solid var(--fg); border-radius: 100px;
  font-size: clamp(13px, 1.1vw, 20px); transition: background .3s, color .3s, border-color .3s;
}
.gallery__more:hover { background: var(--c, var(--yellow)); border-color: var(--c, var(--yellow)); color: #000; }
.gallery__item:hover img { transform: scale(1.02); }
.gallery__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 1.6vw, 30px); border: 1px dashed rgba(255, 255, 255, .18); border-radius: inherit; cursor: default; }
.gallery__ph span { font-family: var(--f-wide); font-size: clamp(10px, .8vw, 14px); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gallery__ph b { font-weight: 400; font-size: clamp(40px, 6vw, 120px); line-height: .8; color: rgba(255, 255, 255, .1); }
.gallery__ph svg { position: absolute; right: 10%; top: 50%; width: 22%; transform: translateY(-50%); opacity: .9; }
.gallery__ph--c { background: var(--c); border-color: transparent; }
.gallery__ph--c span { color: rgba(0, 0, 0, .6); }
.gallery__ph--c b { color: rgba(0, 0, 0, .14); }
.pj-next { display: block; border-top: 2px solid var(--fg); margin-top: clamp(80px, 8vw, 160px); padding: clamp(24px, 2.4vw, 46px) 0 0; position: relative; overflow: hidden; }
.pj-next__label { font-size: var(--t-small); text-transform: uppercase; letter-spacing: .12em; color: var(--nc, var(--yellow)); }
.pj-next__name { display: flex; align-items: center; justify-content: space-between; gap: .3em; font-family: var(--f-wide); font-weight: 300; font-size: clamp(34px, 7.4vw, 144px); text-transform: uppercase; line-height: .82; letter-spacing: -.02em; transition: color .3s; }
.pj-next__name svg { width: .6em; flex: none; transition: transform .6s var(--ease-out); }
.pj-next:hover .pj-next__name { color: var(--nc, var(--yellow)); }
.pj-next:hover .pj-next__name svg { transform: translateX(10px) rotate(-45deg); }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .94); display: grid; place-items: center; padding: 4vw; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 10px; }
.lightbox__close, .lightbox__nav { position: absolute; color: #fff; font-family: var(--f-wide); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 14px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 10px; top: 50%; }
.lightbox__nav--next { right: 10px; top: 50%; }
.lightbox__nav:hover, .lightbox__close:hover { color: var(--yellow); }

/* ---------- ABOUT page ---------- */
.ah { position: relative; padding: clamp(110px, 10vw, 190px) 0 clamp(40px, 4vw, 80px); text-align: center; }
.ah__photo { position: relative; width: min(470px, 72vw); margin: 0 auto; z-index: 2; }
.ah .logo-type { margin-top: clamp(36px, 3.6vw, 70px); position: relative; z-index: 4; font-size: clamp(60px, 10vw, 196px); }
.ah__hint { display: flex; width: max-content; margin: clamp(20px, 2vw, 36px) auto 0; }

.intro { padding: clamp(60px, 6vw, 120px) 0 clamp(60px, 6vw, 110px); }
.intro__title { text-align: center; font-family: var(--f-wide); font-weight: 300; font-size: clamp(22px, 2.75vw, 54px); line-height: .96; margin-bottom: clamp(36px, 3.6vw, 70px); }
.intro__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 2.6vw, 50px); max-width: 1640px; margin: 0 auto; font-size: clamp(15px, 1.4vw, 27px); line-height: 1.12; }
.intro .signoff { justify-content: center; margin: clamp(40px, 4vw, 80px) 0 clamp(50px, 5vw, 100px); }

.edu { padding: clamp(40px, 4vw, 80px) 0 clamp(60px, 6vw, 110px); }
.edu .quote { padding-top: 0; }
.timeline { position: relative; max-width: 1630px; margin: clamp(50px, 5vw, 100px) auto 0; display: grid; grid-template-columns: repeat(12, 1fr); row-gap: clamp(36px, 3.4vw, 64px); }
.tl {
  position: relative; border: 2px solid var(--c); padding: clamp(16px, 1.6vw, 30px) clamp(16px, 1.6vw, 30px); background: #000; z-index: 2;
  transition: background .35s, color .35s, transform .6s var(--ease-out);
}
.tl:hover { background: var(--c); color: #000; transform: translateY(-4px); }
.tl:nth-child(1) { --c: var(--yellow); } .tl:nth-child(2) { --c: var(--lilac); } .tl:nth-child(3) { --c: var(--green); }
.tl:nth-child(1) { grid-column: 1 / span 7; }
.tl:nth-child(2) { grid-column: 5 / span 8; }
.tl:nth-child(3) { grid-column: 1 / span 7; }
.tl__title { font-weight: 500; font-size: clamp(14px, 1.45vw, 28px); text-transform: uppercase; line-height: 1.1; }
.tl__desc { font-size: clamp(12px, 1.05vw, 20px); margin-top: .35em; }
.tl__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.tl__svg path { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-io) .3s; }
.tl__svg path.arrow-head { fill: var(--fg); stroke: none; opacity: 0; transition: opacity .3s 1.5s; }
.timeline.in .tl__svg path { stroke-dashoffset: 0; }
.timeline.in .tl__svg path.arrow-head { opacity: 1; }
.tl__future { position: absolute; font-size: clamp(12px, 1.1vw, 21px); line-height: 1.05; z-index: 2; transform: translateY(-50%); }
.tl__future b { font-weight: 700; display: block; }

.manifesto { padding: clamp(80px, 8vw, 160px) 0; }
.manifesto__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 96px); align-items: center; max-width: 1560px; margin: 0 auto; }
.manifesto__img { position: relative; overflow: hidden; aspect-ratio: 667 / 1055; max-height: 90vh; width: 100%; }
.manifesto__img img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.manifesto__title { font-family: var(--f-wide); font-weight: 300; font-size: clamp(30px, 3.9vw, 76px); line-height: .86; position: relative; margin: .1em 0 .55em; }
.manifesto__burst { position: absolute; width: clamp(60px, 6.4vw, 124px); left: clamp(240px, 26vw, 500px); top: -.4em; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.manifesto__text p { font-size: clamp(15px, 1.5vw, 29px); line-height: 1.12; max-width: 21em; }
.manifesto__text p + p { margin-top: 1.1em; }

.exp { padding: clamp(40px, 4vw, 80px) 0 clamp(36px, 3.6vw, 70px); }
.exp__hint { display: flex; justify-content: center; margin: calc(-1 * clamp(20px, 3vw, 60px)) 0 clamp(26px, 2.6vw, 50px); }
.exp__list { max-width: 1340px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 34px); }
.xp {
  --p: 0; --hs: clamp(84px, 8.4vw, 162px); --pad: 10px;
  position: relative; border: 1.5px solid var(--fg); border-radius: calc(var(--hs) / 2 + 12px); padding: var(--pad);
  overflow: hidden; isolation: isolate; touch-action: pan-y; transition: border-color .3s;
}
.xp__fill { position: absolute; top: var(--pad); bottom: var(--pad); left: var(--pad); width: calc(var(--hs) + (100% - var(--hs) - 2 * var(--pad)) * var(--p)); background: var(--c); border-radius: calc(var(--hs) / 2); z-index: 0; opacity: 0; transition: opacity .2s; }
.xp.is-active .xp__fill { opacity: 1; }
.xp--r .xp__fill { left: auto; right: var(--pad); }
.xp__row { position: relative; z-index: 1; display: flex; align-items: center; min-height: var(--hs); }
.xp--r .xp__row { flex-direction: row-reverse; }
.xp__handle {
  position: absolute; left: var(--pad); top: var(--pad); z-index: 3; width: var(--hs); height: var(--hs); border-radius: 50%; background: var(--c);
  display: grid; place-items: center; cursor: grab; touch-action: none; transform: translateX(var(--x, 0px));
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); transition: box-shadow .3s, background .3s;
}
.xp--r .xp__handle { left: auto; right: var(--pad); }
.xp__handle svg { width: 52%; height: 52%; }
.xp__handle svg path { fill: #000; }
.xp.is-active .xp__handle, .xp.is-open .xp__handle { background: #000; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.xp.is-active .xp__handle svg path, .xp.is-open .xp__handle svg path { fill: var(--c); }
.xp__handle:active { cursor: grabbing; }
.xp__text { position: relative; flex: 1; padding: clamp(10px, 1vw, 18px) calc(var(--hs) + clamp(16px, 2vw, 40px)); }
.xp__title { font-family: var(--f-wide); font-weight: 300; font-size: clamp(18px, 2.15vw, 42px); line-height: .92; transition: color .3s; }
.xp__title small { font-family: var(--f-ext); font-weight: 400; font-size: .66em; margin-left: .25em; }
.xp__swap { display: grid; margin-top: .35em; }
.xp__swap > * { grid-area: 1 / 1; align-self: start; transition: opacity .35s, transform .55s var(--ease-out), color .3s; }
.xp__period { font-size: clamp(15px, 1.65vw, 32px); line-height: 1.1; }
/* no desktop a descrição não reserva altura: fechada, título e data ficam centralizados na cápsula
   (a altura vem do círculo, então abrir não muda o tamanho) */
@media (min-width: 761px) { .xp__swap { position: relative; } .xp__desc { position: absolute; top: 0; left: 0; right: 0; } }
.xp__desc { font-size: clamp(12px, .98vw, 19px); line-height: 1.22; max-width: 68em; opacity: 0; transform: translateY(10px); }
.xp.is-open .xp__period { opacity: 0; transform: translateY(-10px); }
.xp.is-open .xp__desc { opacity: 1; transform: none; transition-delay: .1s; }
.xp.is-full .xp__title, .xp.is-full .xp__period, .xp.is-full .xp__desc { color: #000; }
.xp.is-full { border-color: var(--c); }
.xp:nth-child(4n+1) { --c: var(--yellow); } .xp:nth-child(4n+2) { --c: var(--lilac); }
.xp:nth-child(4n+3) { --c: var(--green); } .xp:nth-child(4n+4) { --c: var(--red); }
.xp.is-settling .xp__handle { transition: transform .7s var(--ease-out), box-shadow .3s, background .3s; }
.xp.is-settling { transition: border-color .3s; }
.xp.is-settling .xp__fill { transition: width .7s var(--ease-out); }

.cv-cta { text-align: center; margin-top: clamp(30px, 3vw, 56px); }
.cv-cta a { font-family: var(--f-wide); font-weight: 700; color: var(--yellow); text-transform: uppercase; font-size: clamp(16px, 2.3vw, 44px); letter-spacing: .02em; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .14em; display: inline-flex; align-items: center; gap: .3em; transition: color .3s; }
.cv-cta a:hover { color: var(--fg); }
.cv-cta a svg { width: .7em; transition: transform .5s var(--ease-out); }
.cv-cta a:hover svg { transform: translate(3px, -3px); }
.cv-cta p { font-size: clamp(13px, 1.25vw, 24px); margin-top: .8em; }

/* ---------- Reveal ---------- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal-up.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.stagger.in > *:nth-child(5) { transition-delay: .32s; }
.stagger.in > *:nth-child(6) { transition-delay: .4s; }
.stagger.in > *:nth-child(7) { transition-delay: .48s; }
.stagger.in > *:nth-child(8) { transition-delay: .56s; }

/* ---------- Page transition ---------- */
.curtain { position: fixed; inset: 0; z-index: 2000; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.curtain i { margin: 0 -2px; background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-io); }
.curtain i:nth-child(1) { --c: var(--yellow); } .curtain i:nth-child(2) { --c: var(--lilac); } .curtain i:nth-child(3) { --c: var(--green); }
.curtain i:nth-child(4) { --c: var(--red); } .curtain i:nth-child(5) { --c: var(--cyan); }
.curtain i:nth-child(2) { transition-delay: .04s; } .curtain i:nth-child(3) { transition-delay: .08s; }
.curtain i:nth-child(4) { transition-delay: .12s; } .curtain i:nth-child(5) { transition-delay: .16s; }
.is-leaving .curtain i { transform: scaleY(1); }
.is-entering:not(.is-entered) body::before { content: ''; position: fixed; inset: 0; z-index: 1999; background: linear-gradient(90deg, var(--yellow) 0 20%, var(--lilac) 20% 40%, var(--green) 40% 60%, var(--red) 60% 80%, var(--cyan) 80%); }
.is-entering .curtain i { transform: scaleY(1); transform-origin: top; }
.is-entered .curtain i { transform: scaleY(0); transform-origin: top; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .vision__grid { grid-template-columns: 1fr; }
  .notepad { width: min(78vw, 440px); margin-top: 20px; }
  .manifesto__burst { left: auto; right: 0; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { width: 78%; margin: 0 auto 46px; padding: 0; }
  .hero__title { font-size: 12.4vw; }
  .hero__sub br, .intro__title br, .quote__text br, .vision__title br, .contact__title br, .contact__text br { display: none; }
  .stack__line { font-size: 16.4vw; }
  .hero__copy { text-align: left; }
  .hero__hint { top: 66px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-grid > .card, .proj-grid > .card:nth-child(n+3) { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .stats .stat:nth-child(3)::before { display: none; }
  .stats--3 { grid-template-columns: 1fr 1fr 1fr; }
  .stat__num { font-size: 11vw; }
  .stats--3 .stat__num { font-size: 8.6vw; }
  .stats--3 .stat { padding: 0 4px; }
  .testis { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__copy { padding: 44px 0 6px; }
  .contact { margin-top: clamp(90px, 9vw, 180px); }
  .contact__photo { width: 80%; margin: 34px auto 0; }
  .contact__photo img { position: relative; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__left { border-right: 0; border-bottom: 1.5px solid var(--hair); padding-right: 0; }
  .footer__right { padding-left: 0; }
  .prow, .prow.prow--flip { grid-template-columns: 1fr; gap: 22px; }
  .prow .prow__media { order: 0 !important; }
  .pj-meta { grid-template-columns: 1fr 1fr; }
  .pj-meta > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); }
  .pj-meta > div:nth-child(4) { border-top: 1px solid var(--hair); }
  .pj-cols { grid-template-columns: 1fr; }
  .pj-platform__grid { grid-template-columns: 1fr 1fr; }
  .pj-platform__grid .pf:first-child { grid-column: 1 / -1; }
  .pf__pillars { grid-auto-flow: row; gap: 18px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item, .gallery__item.g-w { grid-column: 1 / -1; }
  .gallery__item.g-t { grid-column: span 1; }
  .intro__cols { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .tl:nth-child(n) { grid-column: 1; }
  .tl__svg { display: none; }
  .tl__future { position: static; transform: none; margin-top: -14px; padding-left: 16px; border-left: 2px solid var(--red); }
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__img { aspect-ratio: 4 / 5; }
  .xp { --hs: 50px; --pad: 12px; border-radius: 36px; }
  .xp__fill { border-radius: 25px; }
  .xp__row { min-height: 0; }
  .xp__text { padding: calc(var(--hs) + 14px) 8px 6px; }
  .xp__title { font-size: 6vw; }
  .xp__desc { font-size: 13px; }
  .site-footer .fcol a { line-height: 1.6; }
  .menu__shapes { display: none; }
  .outro { height: 120vw; min-height: 520px; }
}
@media (max-width: 420px) {
  .pills { gap: 8px; }
  .pill { padding: .55em 1em .6em; }
  .footer__left { flex-wrap: wrap; }
}

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