/* ============================================================
   RAFAELA COLTRO — Brand Designer & Art Director
   Swiss-brut system · Archivo variable · white/ink/red
   ============================================================ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --ink: #0c0c0d;
  --ink-soft: #55585b;
  --line: #e5e4e0;
  --red: #be3b83;        /* interactive accent, sampled from Rafaela's red session */
  --red-deep: #be3b83;   /* drenched field — magenta pinned by the user (2026-08-18) */
  --gray-field: #909598; /* matches pink-sunglasses backdrop */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.7, 0, 0.24, 1);
  --pad: clamp(1.25rem, 3.4vw, 3.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 420;
  caret-color: var(--red);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--paper); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.on-dark :focus-visible, .site-head :focus-visible { outline-color: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
p a, .prose a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.25s var(--ease-out);
}
p a:hover, .prose a:hover { color: var(--red); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; max-width: 66ch; }

/* ---------- shared vocabulary ---------- */

.label {
  font-size: 0.8125rem;
  font-weight: 520;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.on-dark .label { color: rgba(255, 255, 255, 0.72); }

.index {
  font-variant-numeric: tabular-nums;
  font-weight: 520;
  font-size: 0.8125rem;
}

.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- fixed header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}
.hr-right { text-align: right; justify-self: end; }
.hr-left { text-align: left; justify-self: start; }
.site-head a { pointer-events: auto; }
/* difference-blend has no legible product over the mid-tone magenta field:
   when #contato sits under the header, JS flips this flag and the header
   paints plain white instead */
.head-flat .site-head { mix-blend-mode: normal; }
.brand {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 2.1rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 520;
  position: relative;
  padding-block: 0.15rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }

/* ---------- hero split ---------- */

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-left { grid-column: 1; }

.panel {
  position: relative;
  display: block;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.panel .media {
  position: absolute;
  inset: 0;
  margin: 0;
}
.panel .media img,
.panel .media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.no-gl .panel .media img,
.panel .media img {
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
}
.no-gl .panel:hover .media img { transform: scale(1.035); }

.panel-meta {
  position: absolute;
  left: var(--pad);
  bottom: 1.4rem;
  z-index: 2;
  color: #fff;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0 1.2rem;
  align-items: start;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}
.panel-meta .index { padding-top: 0.2rem; color: rgba(255,255,255,0.85); }
.panel-title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.panel-tag {
  display: block;
  font-size: 0.875rem;
  font-weight: 460;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34ch;
}

.hero-right {
  grid-column: 2;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 5.2rem var(--pad) 0;
  background: var(--paper);
  overflow: hidden;
}
.hr-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.9375rem;
  font-weight: 520;
  line-height: 1.35;
}
.hr-mid {
  align-self: end;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-bottom: 1.6rem;
}
.hr-mid .label { font-size: 0.9375rem; }
.cta-scroll {
  font-size: 0.9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  transition: color 0.25s var(--ease-out);
}
.cta-scroll:hover { color: var(--red); }
.cta-scroll .arr { display: inline-block; transition: transform 0.4s var(--ease-out); }
.cta-scroll:hover .arr { transform: translateY(4px); }

.giant-name {
  margin: 0;
  font-size: 12.4vw;
  line-height: 0.78;
  font-weight: 800;
  font-stretch: 116%;
  letter-spacing: -0.028em;
  transform: translateY(0.14em);
  white-space: nowrap;
  user-select: none;
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--ink);
  padding-block: 0.9rem;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee span {
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  font-weight: 640;
  letter-spacing: -0.015em;
  white-space: nowrap;
  padding-right: 1.1em;
}
.marquee .dot { color: var(--red); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(4.5rem, 9vw, 8.5rem) var(--pad);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2.2rem, 4.5vw, 4rem);
}

/* Sobre */
.sobre-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.manifesto {
  font-size: clamp(1.9rem, 4.1vw, 3.6rem);
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.manifesto em {
  font-style: normal;
  color: var(--red);
}
.sobre-links {
  display: flex;
  gap: 1.6rem;
  margin-top: clamp(1.8rem, 3vw, 2.8rem);
}
.link-plain {
  font-size: 0.9375rem;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.18rem;
  transition: color 0.25s var(--ease-out);
}
.link-plain:hover { color: var(--red); }
.sobre-photo { margin: 0; }
.sobre-photo img { width: 100%; }
.sobre-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* Atuação + Experiência rows */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 7fr) minmax(0, 5fr);
  gap: 1rem clamp(1.4rem, 3vw, 3rem);
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.rows .row:last-child { border-bottom: 1px solid var(--ink); }
.row .index { padding-top: 0.55rem; color: var(--ink-soft); }
.row h3 {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 1.02;
  transition: color 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.row:hover h3 { color: var(--red); transform: translateX(0.35rem); }
.row p { color: var(--ink); }
.row .org {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.row .org strong { color: var(--ink); font-weight: 640; }

/* art break */
.art-break {
  position: relative;
  background: var(--gray-field);
  overflow: hidden;
 
}
.art-break img {
  width: min(1200px, 92vw);
  margin-inline: auto;
  width: 100%;
  height: auto;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);

}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .art-break img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes drift {
      from { transform: translateY(-4%) scale(1.06); }
      to { transform: translateY(4%) scale(1.06); }
    }
  }
}

/* Contato */
.contato {
  background: var(--red-deep);
  color: #fff;
}
.contato-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.contato .label { color: rgba(255, 255, 255, 0.9); }
.contato h2 {
  font-size: clamp(3.4rem, 9.5vw, 8.6rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin-block: 1.4rem 2rem;
}
.contato p { color: rgba(255, 255, 255, 0.92); max-width: 38ch; }
.btn {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 1.05rem 2.1rem;
  background: #fff;
  color: var(--red-deep);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.contato-links {
  display: flex;
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.contato-links .link-plain { color: #fff; }
.contato-links .link-plain:hover { color: rgba(255, 255, 255, 0.8); }
.contato-photo { margin: 0; }
.contato-photo img { width: 100%; }

/* ---------- footer ---------- */

.site-foot {
  padding: 2.2rem var(--pad) 2.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: end;
  border-top: 1px solid var(--ink);
  font-size: 0.875rem;
}
.foot-id { line-height: 1.5; }
.foot-id strong { font-weight: 700; }
.foot-clock {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
}
.foot-legal { text-align: right; color: var(--ink-soft); }

/* ---------- case pages ---------- */

.case-hero {
  padding: clamp(7rem, 14vh, 10rem) var(--pad) 0;
}
.case-hero .index { color: var(--ink-soft); }
.case-title {
  font-size: clamp(3.6rem, 13vw, 12rem);
  font-weight: 800;
  font-stretch: 116%;
  letter-spacing: -0.03em;
  line-height: 0.88;
  margin-top: 0.6rem;
}
.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.4rem, 5vw, 4.4rem);
}
.case-intro .lede {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.3;
  font-weight: 540;
  letter-spacing: -0.015em;
  max-width: 30ch;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.6rem;
  align-content: start;
  border-top: 1px solid var(--ink);
  padding-top: 1.4rem;
}
.case-meta dt {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.case-meta dd {
  margin: 0;
  font-weight: 620;
  font-size: 0.9975rem;
  line-height: 1.45;
}

.case-cover { margin: 0; }
.case-cover img { width: 100%; }

.case-blocks { padding: clamp(3.5rem, 7vw, 6.5rem) var(--pad); }
.case-block {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 1rem clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(1.8rem, 3.4vw, 2.8rem);
  border-top: 1px solid var(--line);
}
.case-block:first-child { border-top: 1px solid var(--ink); }
.case-block:last-child { border-bottom: 1px solid var(--ink); }
.case-block h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 16ch;
}

.case-gallery {
  padding: 0 var(--pad) clamp(3.5rem, 7vw, 6.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
}
.case-gallery figure { margin: 0; overflow: hidden; background: var(--line); }
.case-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-gallery .wide { grid-column: 1 / -1; }

.case-next {
  display: block;
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad);
  overflow: hidden;
}
.case-next .label { color: rgba(255, 255, 255, 0.65); }
.case-next .next-name {
  display: block;
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 800;
  font-stretch: 116%;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-top: 0.8rem;
  transition: transform 0.6s var(--ease-out), color 0.4s var(--ease-out);
}
.case-next:hover .next-name {
  transform: translateX(1.2rem);
  color: #ffb3b3;
}

/* ---------- reveals ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- custom cursor ---------- */

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  display: none;
  /* park off-screen until the first mousemove positions it */
  transform: translate(-100px, -100px);
}
.has-cursor .cursor { display: block; }
.cursor-dot {
  position: absolute;
  top: -5px; left: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.cursor.is-ver .cursor-dot {
  transform: scale(7.4);
  background: var(--red);
}
.cursor-label {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-ver .cursor-label { opacity: 1; }
@media (pointer: fine) {
  .has-cursor .panel,
  .has-cursor .panel * { cursor: none; }
}

/* ---------- view transitions ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) {
    animation: vt-out 0.4s var(--ease-inout) both;
  }
  ::view-transition-new(root) {
    animation: vt-in 0.6s var(--ease-out) both;
  }
  @keyframes vt-out {
    to { opacity: 0; transform: translateY(-2.5vh); }
  }
  @keyframes vt-in {
    from { opacity: 0; transform: translateY(3.5vh); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .panel .media img { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .site-head {
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 0.9rem;
  }
  .site-nav { justify-content: flex-start; gap: 1rem; }
  .site-nav a { font-size: 0.8125rem; }

  .hero-split { grid-template-columns: 1fr; }
  .hero-right {
    grid-column: 1;
    grid-row: 1;
    position: static;
    height: auto;
    min-height: 0;
    padding-top: 6.4rem;
  }
  .giant-name { font-size: 24.5vw; }
  .hr-mid { padding-block: 3rem 1.4rem; }
  .hero-left { grid-row: 2; }
  .panel { height: 72svh; }

  .sobre-grid,
  .contato-grid,
  .case-intro { grid-template-columns: 1fr; }
  .sobre-photo { max-width: 30rem; }

  .row {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    grid-template-areas: "i t" "i p";
  }
  .row .index { grid-area: i; }
  .row h3 { grid-area: t; }
  .row .row-body { grid-area: p; }

  .case-block { grid-template-columns: 1fr; gap: 0.7rem; }
  .case-block .label { margin-bottom: 0.2rem; }
  .case-gallery { grid-template-columns: 1fr; }

  .site-foot {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.8rem;
  }
  .foot-clock, .foot-legal { text-align: left; }
}
