/* Tokens: the studio backdrop is the ground, the dog's fur is the ink.
   Type: Work Sans Black (the original felipeantunes.com.br wordmark)
   played against Instrument Serif italic. */
:root {
  --ground: #a52b2d;
  --ink: #f7f2eb;
  --deep: #2b1213;
  --margin: clamp(16px, 2.5vw, 40px);
  --sans: "Work Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
::selection { background: var(--ink); color: var(--ground); }

/* The two voices. */
.name, .foot-name, .wordmark {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
.script, em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* Bar */
.bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px var(--margin);
}
.wordmark {
  font-size: 20px;
  text-decoration: none;
  margin-right: auto;
  letter-spacing: -0.02em;
}
/* The logo: a split-flap departures board, city over local time. */
.board {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  letter-spacing: 0;
}
.board-row { display: flex; gap: 2px; }
.flap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 24px;
  border-radius: 2px;
  background: var(--deep);
  color: var(--ink);
  font: 700 15px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
/* The hinge across the middle of each flap. */
.flap::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(0, 0, 0, .55);
}
.board-row[data-flap="time"] .flap { color: #f2c94c; }
.flap.is-flipping { animation: flap 110ms ease-in; }
@keyframes flap {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(.15); filter: brightness(.6); }
  100% { transform: scaleY(1); }
}
.board:hover .flap { background: #3a1a19; }

.bar nav { display: flex; gap: 28px; }
.bar nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: opacity .2s;
}
.bar nav a:hover { opacity: .7; }
/* Buttons: plain pills, one fill. */
.bar-cta, .btn {
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: var(--ink);
  color: var(--deep);
  transition: background-color .2s, color .2s, transform .15s var(--ease-out);
}
.bar-cta { padding: 10px 20px; font-size: 15px; }
.btn { padding: 18px 32px; font-size: 17px; white-space: nowrap; }
.bar-cta:hover, .btn:hover { background: var(--deep); color: var(--ink); }
.bar-cta:active, .btn:active { transform: scale(.97); }
.link {
  font-weight: 500;
  font-size: 17px;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-underline-offset .2s;
}
.link:hover { text-underline-offset: 8px; }

/* Hero: the words on the left, the dog on the right. */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy stage";
  column-gap: clamp(24px, 3vw, 56px);
  padding: 72px var(--margin) 0;
}
.hero-copy {
  grid-area: copy;
  align-self: center;
  padding: 32px 0 48px;
}

.stage {
  grid-area: stage;
  position: relative;
  min-height: 0;
  /* Clip only the floor, so the frame's soft edges run out into the ground. */
  clip-path: inset(-100vh -100vw 0 -100vw);
  margin-right: calc(-1 * var(--margin));
  margin-top: -72px;
}
.stage-dog {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 768 / 720;
  translate: -50% 0;
  will-change: transform;
}
.stage-poster, .stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.stage-canvas { opacity: 0; transition: opacity .3s; }
.stage-caption {
  position: absolute;
  right: calc(var(--margin) + 8px);
  bottom: 20px;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(43, 18, 19, .72);
  color: var(--ink);
}
.stage.is-live .stage-canvas { opacity: 1; }

/* Lockup: serif italic "Digital" over the name in Work Sans Black,
   "Services" tucked under it on the right. */
.lockup {
  position: relative;
  z-index: 2;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  font-size: inherit;
  font-weight: inherit;
}
.script {
  display: block;
  font-size: clamp(40px, 4.4vw, 80px);
  line-height: 1;
  margin-top: .15em;
}
.name { display: block; line-height: .82; padding: .06em 0 .02em; overflow: hidden; }
.name-line { display: inline-block; white-space: nowrap; font-size: 10vw; }
.name-line > span { display: block; }
/* ANTUNES: outline only, the ground shows through. */
.hero .name-line > span + span {
  color: transparent;
  -webkit-text-stroke: max(2px, .022em) var(--ink);
  paint-order: stroke fill;
}

.lede {
  margin: 32px 0 0;
  max-width: 38ch;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.4;
}
.lede em { font-size: 1.3em; line-height: 1; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 32px;
}

/* Journey: a pinned stage; scrolling drives one camera flight over the
   miniature planet, and each stop says one thing the agency does. */
.journey {
  --space: #0b0f14;
  position: relative;
  height: 820vh;
  background: var(--space);
  color: var(--ink);
}
.journey-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.journey-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--space) url("assets/journey/poster.jpg") center / cover no-repeat;
}
.journey-chapters { position: absolute; inset: 0; pointer-events: none; }
.chapter {
  position: absolute;
  right: var(--margin);
  bottom: clamp(32px, 8vh, 80px);
  max-width: 30rem;
  text-align: right;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.chapter.is-on { opacity: 1; transform: none; pointer-events: auto; }
.chapter h3 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: .9;
  font-size: clamp(40px, 5.4vw, 96px);
}
.chapter p {
  margin: 16px 0 0 auto;
  max-width: 28ch;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.4;
}
.chapter .btn { margin-top: 24px; }
/* The first and last stops sit over the whole globe: centred, larger. */
.chapter[data-stop="0"], .chapter[data-stop="6"] {
  left: 50%;
  right: auto;
  bottom: auto;
  top: 50%;
  translate: -50% -50%;
  text-align: center;
  max-width: 44rem;
}
.chapter[data-stop="0"] p, .chapter[data-stop="6"] p { margin-inline: auto; }
.chapter[data-stop="0"] h3, .chapter[data-stop="6"] h3 { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; font-size: clamp(48px, 7vw, 120px); }

.journey-index {
  position: absolute;
  left: var(--margin);
  bottom: clamp(32px, 8vh, 80px);
  margin: 0;
  padding: 18px 22px;
  list-style: none;
  display: grid;
  gap: 8px;
  background: rgba(11, 15, 20, .72);
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
}
.journey-index li { opacity: .45; transition: opacity .3s, color .3s; }
.journey-index li.is-on { opacity: 1; color: #f2c94c; }

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .journey { height: 700vh; }
  .journey-index { display: none; }
  .chapter { left: var(--margin); right: var(--margin); max-width: none; }
}

/* Services: the field turns to the fur colour. */
.services {
  background: var(--ink);
  color: var(--deep);
  padding: clamp(96px, 14vw, 200px) var(--margin);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 32px;
}
.services ::selection { background: var(--ground); color: var(--ink); }
.services h2, .service-list h3 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
/* The heading stays in view while the list runs past it. */
.services-head {
  align-self: start;
  position: sticky;
  top: 48px;
}
.services h2 {
  line-height: .85;
  font-size: clamp(56px, 7.6vw, 136px);
  color: var(--ground);
}
.services-head p { margin: 28px 0 0; max-width: 30ch; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; }
.services-head .btn { margin-top: 32px; }
.btn-ground { background: var(--ground); color: var(--ink); }
.btn-ground:hover { background: var(--deep); }

.service-list { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(40px, 4.4vw, 72px); }
.service-list li { transition: transform .3s var(--ease-out); }
.service-list h3 {
  line-height: .95;
  font-size: clamp(34px, 3.8vw, 64px);
  color: var(--deep);
  transition: color .25s;
}
.service-list li:hover { transform: translateX(10px); }
.service-list li:hover h3 { color: var(--ground); }
.service-list p { margin: 12px 0 0; max-width: 46ch; font-size: clamp(18px, 1.3vw, 20px); }
.clients {
  grid-column: 2;
  margin: clamp(64px, 8vw, 120px) 0 0;
  max-width: 30ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.1;
}

/* Projects: the group's own sites and channels, on a dark field. */
.projects {
  background: var(--deep);
  color: var(--ink);
  padding: clamp(96px, 12vw, 180px) var(--margin);
}
.projects-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  column-gap: 32px;
  margin-bottom: clamp(56px, 7vw, 104px);
}
.projects h2 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: .85;
  font-size: clamp(52px, 8.4vw, 152px);
}
.projects-head p { margin: 0; max-width: 32ch; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.4; }
.projects h3 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: .9;
}

.proj-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 72px) 32px;
}
.proj-feature h3 { font-size: clamp(44px, 5.6vw, 100px); color: #f2c94c; }
.proj-text { align-self: center; }
.proj-text p { margin: 24px 0 0; max-width: 34ch; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.45; }
.proj-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.proj-links a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: #43201f;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.proj-links a:hover { background: var(--ink); color: var(--deep); }

/* A site shown in a plain browser frame; its screenshot drifts up on hover. */
.proj-shot {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  transition: transform .4s var(--ease-out);
}
.proj-shot:hover { transform: translateY(-6px); }
.proj-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #e9e4de;
  color: #6d6460;
  font-size: 13px;
}
.proj-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfc6bf; }
.proj-bar b { margin-left: 10px; font-weight: 500; }
.proj-shot img { display: block; width: 100%; height: auto; }

.proj-channel { grid-column: 1 / -1; }
.proj-channel h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 38px);
}
.proj-channel h4 img { border-radius: 50%; }
.thumbs, .posts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.posts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.thumbs a, .posts a { display: block; text-decoration: none; }
.thumbs img, .posts img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform .4s var(--ease-out);
}
.thumbs img { aspect-ratio: 16 / 9; object-fit: cover; }
.thumbs a:hover img, .posts a:hover img { transform: scale(1.03); }
.thumbs span { display: block; margin-top: 10px; font-weight: 500; font-size: 16px; line-height: 1.35; }

.proj-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(96px, 10vw, 160px);
}
.proj-pair h3 { margin-top: 28px; font-size: clamp(34px, 3.6vw, 60px); }
.proj-pair p { margin: 14px 0 18px; max-width: 40ch; font-size: clamp(18px, 1.3vw, 20px); line-height: 1.45; }

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .projects-head, .proj-feature, .proj-pair { grid-template-columns: minmax(0, 1fr); }
  .projects-head { row-gap: 24px; }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posts li:nth-child(n+4) { display: none; }
}

/* Fifi: the agency's cockatiel flies in with the scroll and lands on a branch. */
.fifi {
  --sage: #e7e6d6;
  position: relative;
  height: 260vh;
  background: var(--sage);
  color: var(--deep);
}
.fifi-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.fifi-flight, .fifi-idle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.fifi-flight { background: var(--sage) url("assets/fifi/branch.jpg") 70% 50% / cover no-repeat; }
.fifi-idle { opacity: 0; transition: opacity .4s; }
.fifi.is-landed .fifi-idle { opacity: 1; }
.fifi-copy {
  position: absolute;
  left: var(--margin);
  top: 50%;
  translate: 0 -50%;
  max-width: 34rem;
}
.fifi h2 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: .85;
  font-size: clamp(64px, 10vw, 184px);
  color: var(--ground);
}
.fifi h2 span {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: .5em;
  color: var(--deep);
}
/* Skills: filled tags that wrap in a row, each on one line, all one height. */
.skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 32rem;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.skills li {
  white-space: nowrap;
  line-height: 1.2;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  font-weight: 600;
  font-size: clamp(15px, 1.1vw, 17px);
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.skills li:hover { background: var(--ground); color: var(--ink); transform: translateY(-2px); }
.fifi-caption {
  position: absolute;
  right: var(--margin);
  bottom: 24px;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  opacity: .7;
}

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .fifi-flight, .fifi-idle { object-position: 78% 50%; height: 48%; top: auto; bottom: 0; }
  .fifi-copy { top: 80px; translate: none; right: var(--margin); }
  .skills { gap: 8px; margin-top: 20px; }
  .skills li { padding: 9px 14px; font-size: 14px; }
}

/* Footer: a serif question, then the name at full width. */
.foot {
  padding: clamp(96px, 12vw, 180px) var(--margin) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  justify-items: start;
}
.foot-script {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(56px, 9vw, 160px);
  line-height: .9;
}
.foot-script em {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: .8em;
}
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-name { margin: 0; line-height: .8; padding-top: .06em; overflow: hidden; width: 100%; }

/* Narrow or portrait. */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .bar { gap: 20px; }
  .bar nav { display: none; }
  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "copy";
  }
  .stage { height: min(100vw, 600px); margin: 0 calc(-1 * var(--margin)); }
  .stage-dog { height: auto; width: min(112vw, 680px); }
  .script { font-size: clamp(48px, 16vw, 120px); }
  .hero-copy { padding: 8px 0 64px; }
  .services { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .services-head { position: static; }
  .service-list li:hover { transform: none; }
  .clients { grid-column: 1; }
}

/* Entrance: the name rises, the script words slide in from their sides. */
@keyframes up { from { transform: translateY(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes from-l { from { opacity: 0; transform: translate(-40px, .2em); } }
@keyframes from-r { from { opacity: 0; transform: translate(40px, .2em); } }
.hero .name-line { animation: up 1s var(--ease-out) both; }
.hero .script { animation: rise .9s var(--ease-out) .25s both; }
.hero .lede { animation: rise .9s var(--ease-out) .36s both; }
.hero .actions { animation: rise .9s var(--ease-out) .44s both; }
.bar { animation: rise .6s var(--ease-out) .5s both; }

/* Sections reveal their parts once, if the script runs. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero .name-line, .hero .script, .hero .lede, .hero .actions, .bar { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
