@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #101010;
  --paper: #f1efe3;
  --orange: #f15a29;
  --acid: #d7ff2f;
  --white: #fffdf4;
  --line: rgba(16, 16, 16, 0.18);
  --page: min(1440px, calc(100vw - 64px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 112px; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: grid;
  width: var(--page);
  min-height: 76px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  color: var(--ink);
  transform: translateX(-50%);
}

.wordmark {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.wordmark i {
  color: var(--orange);
  font: inherit;
}

.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a, .contact-pill {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.topbar nav a { padding: 12px 0; white-space: nowrap; transition: color 160ms ease; }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--orange); }
.topbar a:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.contact-pill:hover { background: var(--orange); border-color: var(--orange); }

.contact-pill {
  justify-self: end;
  padding: 12px 17px;
  border: 1px solid rgba(16,16,16,.22);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #0d0d0d;
  color: white;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.48), transparent 44%, rgba(0,0,0,.15));
  content: "";
}

.hero-noise {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  filter: saturate(.88) contrast(1.08);
}

.hero-type {
  position: absolute;
  z-index: 1;
  top: 7%;
  right: -2vw;
  display: flex;
  flex-direction: column;
  color: var(--orange);
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(10rem, 27vw, 31rem);
  letter-spacing: -.035em;
  line-height: .7;
  opacity: .88;
}

.hero-title {
  position: absolute;
  z-index: 4;
  bottom: 14%;
  left: max(32px, calc((100vw - 1440px) / 2));
}

.hero-title p {
  margin: 0 0 clamp(44px, 4vw, 64px);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-title h1 {
  max-width: 960px;
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(5.8rem, 12vw, 13rem);
  letter-spacing: -.02em;
  line-height: .75;
  text-transform: uppercase;
}

.hero-title h1 em {
  display: block;
  margin-top: .16em;
  color: var(--orange);
  font: inherit;
}

.hero-foot {
  position: absolute;
  z-index: 4;
  right: max(32px, calc((100vw - 1440px) / 2));
  bottom: 34px;
  left: max(32px, calc((100vw - 1440px) / 2));
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px) 52px;
  align-items: end;
  gap: 36px;
  border-top: 1px solid rgba(255,255,255,.4);
  padding-top: 18px;
}

.hero-foot span, .hero-foot p {
  margin: 0;
  font-size: .72rem;
  line-height: 1.55;
}

.hero-foot span { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-foot p { color: rgba(255,255,255,.7); }
.hero-foot a { display: grid; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 1.5rem; place-items: center; }

.section-tag {
  margin: 0;
  color: var(--orange);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-tag--light { color: var(--acid); }

.manifesto {
  width: var(--page);
  margin: 0 auto;
  padding: 140px 0;
}

.manifesto h2, .projects-heading h2, .studio-heading h2, .macaco h2, .contact h2 {
  margin: 36px 0 64px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(4.4rem, 8vw, 9rem);
  letter-spacing: -.018em;
  line-height: .92;
  text-transform: uppercase;
}

.manifesto h2 em {
  color: var(--orange);
  font: inherit;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 11vw;
  margin: 0 0 100px 20%;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.manifesto-grid p { margin: 0; line-height: 1.75; }
.manifesto-grid > div p + p { margin-top: 26px; }
.manifesto-lead { font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 600; line-height: 1.4!important; }

.manifesto-image { position: relative; display: grid; grid-template-columns: 1.45fr .55fr; align-items: end; }
.manifesto-image img { width: 100%; height: min(72vw, 780px); object-fit: cover; object-position: center; }
.manifesto-image figcaption { margin-left: -40px; padding: 40px; background: var(--orange); }
.manifesto-image figcaption span { font-family: "Archivo Black", sans-serif; font-size: 1.8rem; text-transform: uppercase; }
.manifesto-image figcaption p { margin: 60px 0 0; font-size: 1rem; line-height: 1.55; }

.projects { padding: 140px max(32px, calc((100vw - 1440px) / 2)); background: var(--ink); color: var(--white); }
.projects-heading { display: grid; grid-template-columns: .35fr 1.1fr .55fr; gap: 48px; align-items: start; margin-bottom: 88px; }
.projects-heading h2 { margin: 0; font-size: clamp(4rem, 7vw, 7.8rem); }
.projects-heading > p:last-child { margin: 0; color: rgba(255,255,255,.58); line-height: 1.7; }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 80px 24px; }
.project-card { grid-column: span 5; }
.project-card--wide { grid-column: span 7; }
.project-card--landscape { grid-column: 1 / span 7; }
.project-card--portrait { grid-column: span 5; padding-top: 15%; }
.project-card figure { position: relative; overflow: hidden; background: #222; }
.project-card figure::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.18); content: ""; pointer-events: none; }
.project-card img { width: 100%; height: 560px; object-fit: cover; transition: transform 500ms ease; }
.project-card--portrait img { height: 650px; }
.project-card:hover img { transform: scale(1.035); }
.project-card figure > span { position: absolute; top: 18px; left: 18px; display: grid; width: 48px; height: 48px; border-radius: 50%; background: var(--acid); color: var(--ink); font-size: .72rem; font-weight: 800; place-items: center; }
.project-card > div { display: grid; grid-template-columns: 1fr 1.8fr; gap: 20px; padding-top: 20px; }
.project-card > div p { margin: 5px 0 0; color: var(--orange); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.project-card > div h3 { grid-column: 2; margin: 0; font-family: "Archivo Black", sans-serif; font-size: clamp(2rem, 3vw, 3.5rem); letter-spacing: -.012em; line-height: .92; text-transform: uppercase; }
.project-card > div > span { grid-column: 2; color: rgba(255,255,255,.56); font-size: .86rem; line-height: 1.65; }

.quote-band { display: grid; min-height: 680px; grid-template-columns: .3fr 2fr .5fr; align-items: center; gap: 50px; padding: 100px max(32px, calc((100vw - 1440px) / 2)); background: var(--orange); }
.quote-mark { font-family: Georgia, serif; font-size: 16rem; line-height: 0; }
.quote-band blockquote { font-family: "Archivo Black", sans-serif; font-size: clamp(3rem, 6vw, 6.8rem); letter-spacing: -.015em; line-height: .91; text-transform: uppercase; }
.quote-band > span { align-self: end; padding-bottom: 60px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.studio { width: var(--page); margin: 0 auto; padding: 140px 0; }
.studio-heading { display: grid; grid-template-columns: .4fr 1fr .5fr; gap: 48px; align-items: start; margin-bottom: 90px; }
.studio-heading h2 { margin: 0; font-size: clamp(4rem, 7vw, 8rem); }
.studio-heading > p:last-child { margin: 0; color: rgba(16,16,16,.58); line-height: 1.7; }
.studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.work-card:nth-child(3n+2) { margin-top: 120px; }
.work-card:nth-child(3n+3) { margin-top: 48px; }
.work-card figure { overflow: hidden; background: #ddd8c8; }
.work-card img { width: 100%; height: 520px; object-fit: cover; transition: transform 500ms ease; }
.work-card--2 img { height: 660px; }
.work-card:hover img { transform: scale(1.035); }
.work-card > div { padding: 18px 2px 44px; border-top: 1px solid var(--ink); }
.work-card h3 { margin: 0; font-family: "Archivo Black", sans-serif; font-size: 2rem; letter-spacing: -.01em; text-transform: uppercase; }
.work-card p { margin: 7px 0 0; color: rgba(16,16,16,.58); font-size: .72rem; }

.macaco { background: #778e5f; }
.macaco-hero { position: relative; min-height: 800px; overflow: hidden; }
.macaco-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.05)); content: ""; }
.macaco-hero > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.macaco-hero > div { position: relative; z-index: 2; width: min(720px, calc(100% - 64px)); padding: 110px 0 80px max(32px, calc((100vw - 1440px) / 2)); color: white; }
.macaco-hero h2 { margin: 42px 0; font-size: clamp(6rem, 13vw, 14rem); line-height: .79; }
.macaco-hero > div > p:last-child { max-width: 560px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.7; }
.initiatives { width: var(--page); margin: 0 auto; padding: 100px 0 130px; }
.initiatives article { display: grid; min-height: 330px; grid-template-columns: 70px .75fr 1.25fr; gap: 36px; align-items: center; padding: 34px 0; border-top: 1px solid rgba(16,16,16,.45); }
.initiatives article:last-child { border-bottom: 1px solid rgba(16,16,16,.45); }
.initiatives article > span { align-self: start; font-size: .7rem; font-weight: 700; }
.initiatives figure { height: 280px; overflow: hidden; }
.initiatives figure img { width: 100%; height: 100%; object-fit: cover; }
.initiatives article > div { max-width: 580px; }
.initiatives article > div p { margin: 0 0 16px; color: rgba(16,16,16,.58); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.initiatives h3 { margin: 0 0 18px; font-family: "Archivo Black", sans-serif; font-size: clamp(2.5rem, 4vw, 4.8rem); letter-spacing: -.014em; line-height: .9; text-transform: uppercase; }
.initiatives article > div > span { color: rgba(16,16,16,.7); line-height: 1.6; }

.contact { position: relative; min-height: 760px; overflow: hidden; background: var(--ink); color: white; }
.contact::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.85) 68%); content: ""; }
.contact > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contact-copy { position: relative; z-index: 2; display: flex; min-height: 760px; width: var(--page); margin: 0 auto; flex-direction: column; justify-content: center; padding-left: 42%; }
.contact h2 { margin: 36px 0 70px; font-size: clamp(4rem, 7vw, 8rem); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-links a { padding: 16px 20px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-links a:first-child { background: var(--orange); border-color: var(--orange); color: var(--ink); }

footer { display: grid; min-height: 130px; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; padding: 24px max(32px, calc((100vw - 1440px) / 2)); background: var(--paper); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wordmark--footer { font-size: 1.1rem; letter-spacing: -.05em; }
footer span { text-align: center; }
footer > a:last-child { text-align: right; }

@media (max-width: 1000px) {
  :root { --page: calc(100vw - 40px); }
  section[id] { scroll-margin-top: 190px; }
  .topbar { grid-template-columns: 1fr 1fr; gap: 8px 20px; padding: 12px 18px; }
  .topbar nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
  .topbar nav a { padding: 10px 0; }
  .contact-pill { grid-column: 2; grid-row: 1; }
  .hero-portrait { object-position: 62% center; }
  .manifesto-grid { margin-left: 0; gap: 60px; }
  .projects-heading, .studio-heading { grid-template-columns: .45fr 1.55fr; }
  .projects-heading > p:last-child, .studio-heading > p:last-child { grid-column: 2; }
  .project-card, .project-card--wide, .project-card--landscape, .project-card--portrait { grid-column: span 6; padding-top: 0; }
  .project-card img, .project-card--portrait img { height: 480px; }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card:nth-child(n) { margin-top: 0; }
  .quote-band { grid-template-columns: 1fr; gap: 20px; }
  .quote-mark { height: 90px; }
  .quote-band > span { padding-bottom: 0; }
}

@media (max-width: 700px) {
  :root { --page: calc(100vw - 28px); }
  .topbar { top: 10px; min-height: 0; width: calc(100vw - 20px); padding: 10px 14px; }
  .topbar .wordmark { font-size: 1rem; }
  .topbar nav { gap: 0 18px; }
  .contact-pill { padding: 10px 13px; }
  .hero { min-height: 760px; }
  .hero-portrait { object-position: 64% center; }
  .hero-type { top: 18%; right: -4%; font-size: 40vw; }
  .hero-title { bottom: 17%; left: 14px; }
  .hero-title h1 { font-size: 23vw; line-height: .8; }
  .hero-foot { right: 14px; bottom: 18px; left: 14px; grid-template-columns: 1fr 48px; }
  .hero-foot p { display: none; }
  .manifesto, .studio { padding: 90px 0; }
  .manifesto h2, .studio-heading h2 { font-size: 14vw; }
  .manifesto-grid, .manifesto-image, .projects-heading, .studio-heading { grid-template-columns: 1fr; }
  .manifesto-grid { gap: 28px; margin-bottom: 60px; }
  .manifesto-image img { height: 125vw; }
  .manifesto-image figcaption { margin: -60px 14px 0; padding: 26px; }
  .manifesto-image figcaption p { margin-top: 30px; }
  .projects { padding: 90px 14px; }
  .projects-heading > p:last-child, .studio-heading > p:last-child { grid-column: auto; }
  .projects-heading h2 { font-size: 14vw; }
  .projects-grid { gap: 70px; }
  .project-card, .project-card--wide, .project-card--landscape, .project-card--portrait { grid-column: 1 / -1; }
  .project-card img, .project-card--portrait img { height: 95vw; }
  .project-card > div { grid-template-columns: 1fr; }
  .project-card > div h3, .project-card > div > span { grid-column: auto; }
  .quote-band { min-height: 600px; padding: 80px 14px; }
  .quote-band blockquote { font-size: 12vw; }
  .studio-grid { grid-template-columns: 1fr; }
  .work-card img, .work-card--2 img { height: 120vw; }
  .macaco-hero { min-height: 690px; }
  .macaco-hero > div { width: 100%; padding: 86px 14px 60px; }
  .macaco-hero h2 { font-size: 23vw; }
  .initiatives { padding: 60px 0 90px; }
  .initiatives article { grid-template-columns: 40px 1fr; gap: 20px; }
  .initiatives figure, .initiatives article > div { grid-column: 2; }
  .initiatives figure { height: 90vw; }
  .contact, .contact-copy { min-height: 720px; }
  .contact > img { object-position: 42% center; opacity: .65; }
  .contact::after { background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.05)); }
  .contact-copy { justify-content: flex-end; padding: 0 0 70px; }
  .contact h2 { font-size: 14vw; }
  .contact-links { align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr; align-items: start; padding-top: 38px; padding-bottom: 38px; }
  footer span, footer > a:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card img, .work-card img { transition: none; }
}
