/* Paulo Laporta, portfólio 2027 */

@font-face {
  font-family: "Bodyslam Three";
  src: url("/assets/fonts/BodyslamThree.woff2") format("woff2"), url("/assets/fonts/BodyslamThree.woff") format("woff");
  font-display: block;
}

:root {
  --bg: #000000;
  --ink: #f2f2f2;
  --muted: #8a8a8a;
  --line: #f2f2f2;
  --soft: #111111;
  --rule: #2b2b2b;
  --radius: 18px;
  --gutter: clamp(20px, 3.4vw, 56px);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Bodyslam Three", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 99px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- grid ---------- */
.wrap { padding-inline: var(--gutter); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: clamp(18px, 2vw, 28px) var(--gutter) clamp(14px, 1.6vw, 22px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .brand { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .01em; text-transform: uppercase; font-weight: 300; }
.site-header nav { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.site-header nav a {
  font-size: clamp(18px, 1.6vw, 22px); text-transform: uppercase; font-weight: 300;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background-size: 100% 1px; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 24px; padding: 3px 16px;
  border: 1px solid var(--line); border-radius: 99px;
  font-size: 11px; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.pill--lg { min-height: 30px; font-size: 13px; padding: 5px 18px; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(32px, 6vh, 80px) clamp(48px, 9vh, 120px);
  margin-bottom: clamp(40px, 6vw, 96px);
}
.hero__inner { width: 100%; padding-inline: clamp(0px, 7vw, 140px); }
.wordmark { display: block; width: 100%; height: auto; overflow: visible; }
.wordmark text { font-family: var(--display); font-weight: 400; fill: var(--ink); }
.hero__pills { display: flex; justify-content: space-between; gap: 12px; margin-top: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.hero__pills div { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- work list ---------- */
.work { list-style: none; margin: 0; padding-block: 0; }
.work-item { padding-bottom: clamp(72px, 9vw, 140px); }
.work-item a { display: contents; }
.work-item__num { grid-column: 1 / 4; align-self: start; padding-top: clamp(10px, 1.4vw, 22px); }
.work-item__title {
  grid-column: 4 / 11; margin: 0;
  font-weight: 400; font-size: clamp(40px, 6.6vw, 104px); line-height: .98; letter-spacing: -.025em;
  text-wrap: balance;
}
.work-item__meta {
  grid-column: 11 / -1; text-align: right; font-size: 13px; line-height: 1.35; padding-top: clamp(10px, 1.4vw, 22px);
}
.work-item__media {
  grid-column: 4 / -1; margin-top: clamp(20px, 2.6vw, 36px);
  border-radius: var(--radius); overflow: hidden; background: var(--soft);
}
.work-item__media img {
  width: 100%; height: auto;
  transition: transform 1.1s var(--ease);
}
.work-item:hover .work-item__media img { transform: scale(1.035); }
.work-item__title span {
  background: linear-gradient(currentColor, currentColor) 0 92% / 0 2px no-repeat;
  transition: background-size .5s var(--ease);
}
.work-item:hover .work-item__title span { background-size: 100% 2px; }

/* ---------- project page ---------- */
.project-head { padding-top: clamp(28px, 4vw, 56px); }
.project-head__num { grid-column: 1 / 4; align-self: start; padding-top: clamp(8px, 1.2vw, 18px); }
.project-head__title {
  grid-column: 4 / -1; margin: 0;
  font-weight: 400; font-size: clamp(36px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance;
}
.project-facts {
  grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 8px 40px;
  margin: clamp(28px, 3.4vw, 48px) 0 0; padding: 0;
}
.project-facts div { display: grid; gap: 2px; }
.project-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.project-facts dd { margin: 0; font-size: 15px; }
.project-body {
  grid-column: 4 / 12; margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; font-weight: 300;
}
.project-body p { margin: 0 0 1em; max-width: 68ch; }

.gallery { display: grid; gap: clamp(10px, 1.2vw, 18px); margin-top: clamp(48px, 6vw, 96px); }
.gallery > * { border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery .row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: inherit; background: none; align-items: start; }
.gallery .row > * { border-radius: var(--radius); overflow: hidden; }
.gallery img, .gallery video { width: 100%; }
.gallery video { background: #000; height: auto; }
.gallery > .is-portrait { justify-self: center; width: min(100%, 460px); }
.gallery > .is-portrait-row { justify-self: center; width: min(100%, 940px); }

/* next project */
.next { margin-top: clamp(96px, 12vw, 180px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.next a { display: contents; }
.next__label { grid-column: 1 / 4; align-self: start; padding-top: 10px; }
.next__title {
  grid-column: 4 / 10; margin: 0;
  font-weight: 400; font-size: clamp(36px, 5.2vw, 80px); line-height: 1; letter-spacing: -.025em;
}
.next__thumb { grid-column: 10 / -1; border-radius: calc(var(--radius) * .7); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.next__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.next:hover .next__thumb img { transform: scale(1.05); }
.next:hover .next__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }

/* index of all projects */
.index { margin-top: clamp(96px, 12vw, 180px); }
.index__label {
  grid-column: 1 / 6; margin: 0;
  font-weight: 400; font-size: clamp(36px, 5.2vw, 80px); line-height: .95; letter-spacing: -.025em; text-transform: uppercase;
}
.index__list { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; }
.index__list li { border-top: 1px solid var(--rule); }
.index__list li:last-child { border-bottom: 1px solid var(--rule); }
.index__list a {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  font-size: clamp(15px, 1.2vw, 18px); text-transform: uppercase; letter-spacing: .01em;
  transition: padding .35s var(--ease), color .2s;
}
.index__list a span:last-child { color: var(--muted); font-size: .8em; }
.index__list a:hover { padding-left: 12px; }
.index__list a[aria-current="page"] { color: var(--muted); }

/* ---------- about ---------- */
.about-head__title { grid-column: 4 / -1; margin: 0; font-weight: 400; font-size: clamp(30px, 4.4vw, 76px); line-height: 1.06; letter-spacing: -.025em; text-wrap: pretty; }
.about-cols { margin-top: clamp(72px, 9vw, 140px); row-gap: 56px; }
.about-col h2 { margin: 0 0 16px; font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.about-col ul { list-style: none; margin: 0; padding: 0; }
.about-col li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.about-col--exp { grid-column: 1 / 5; }
.about-col li.is-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.about-col .current-tag { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill--case { text-transform: none; letter-spacing: .01em; }
.about-col li.is-current .pill { min-height: 22px; padding: 2px 11px; font-size: 12px; }
.about-col--awards { grid-column: 6 / -1; }
.award-group + .award-group { margin-top: 28px; }
.award-group h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.award-group li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.award-group li b { font-weight: 500; }

.contact-big {
  display: block; margin-top: clamp(96px, 12vw, 180px);
  font-size: clamp(28px, 5.4vw, 88px); letter-spacing: -.03em; line-height: 1; word-break: break-word;
}
.contact-big:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }

/* ---------- footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: clamp(96px, 12vw, 180px) var(--gutter) 22px;
  font-size: clamp(15px, 1.3vw, 18px); text-transform: uppercase; font-weight: 300;
}
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .grid { column-gap: 12px; }
  .hero { min-height: 62svh; }
  .hero__inner { padding-inline: 0; }
  .work-item__num, .project-head__num, .next__label { grid-column: 1 / 7; padding-top: 0; margin-bottom: 14px; }
  .work-item__meta { grid-column: 7 / -1; padding-top: 0; font-size: 12px; }
  .work-item__title, .work-item__media, .project-head__title, .project-facts, .project-body,
  .next__title, .next__thumb, .index__label, .index__list, .about-head__title,
  .about-col--exp, .about-col--awards { grid-column: 1 / -1; }
  .work-item__media { margin-top: 18px; }
  .next__thumb { margin-top: 20px; aspect-ratio: 16 / 9; }
  .index__list { margin-top: 24px; }
  .gallery .row { grid-auto-flow: row; }
  .award-group li { grid-template-columns: 1fr; gap: 0; }
  .site-header .brand, .site-header nav a { font-size: 16px; }
}
