/* Raiza Tomazoni — portfólio
   Títulos em Bricolage Grotesque condensada; texto em Inter. Fundo off-white, texto preto. */

:root {
  --paper: #f3f4f5;
  --paper-2: #e7e9eb;
  --ink: #000;
  --ink-2: #2a2c2f;
  --muted: #5f6368;
  --line: #d6d9dd;
  --cobalt: #2443e0;
  --sun: #ffcc1a;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --f-xs: 0.8125rem;
  --f-sm: 0.9375rem;
  --f-md: 1.0625rem;
  --f-lg: 1.3125rem;
  --f-xl: clamp(2rem, 3.6vw, 2.875rem);
  --f-xxl: clamp(2.75rem, 7vw, 5.5rem);
  --f-hero: clamp(4rem, 15vw, 13.5rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--f-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" 85;
  line-height: 1;
  letter-spacing: -0.01em;
}

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--cobalt); color: #fff; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #000; color: var(--paper); padding: 8px 12px; z-index: 20; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ——— Barra de progresso de leitura ——— */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--cobalt); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; }

/* ——— Navegação (esconde ao rolar para baixo) ——— */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nav__name { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 24, "wdth" 85; font-size: 1.125rem; text-decoration: none; white-space: nowrap; }
.nav ul { display: flex; gap: clamp(16px, 3vw, 34px); list-style: none; margin: 0; padding: 0; font-size: var(--f-sm); }
.nav ul a { text-decoration: none; }

/* Sublinhado que cresce no hover */
.u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.u:hover, .u:focus-visible { background-size: 100% 1.5px; }

/* ——— Hero ——— */
.hero { padding: clamp(40px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero__name { font-size: var(--f-hero); font-weight: 800; line-height: 0.86; letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 80; margin-bottom: clamp(28px, 5vw, 56px); }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: inline-block; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) { .hero__grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; } }
.hero__lede { font-size: var(--f-lg); line-height: 1.45; max-width: 32ch; margin: 0; color: var(--ink); }
.hero__now { font-size: var(--f-sm); color: var(--muted); margin: 0; }
.hero__now strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Botões com preenchimento que desliza */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: var(--f-sm); text-decoration: none; border: 1.5px solid #000; color: #000; transition: color .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: #000; transform: translateY(101%); transition: transform .4s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: none; }
.btn--solid { background: #000; color: var(--paper); }
.btn--solid::before { background: var(--cobalt); }

/* ——— Faixa em movimento ——— */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; padding-left: 48px; }
.marquee__track span { font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 48, "wdth" 85; font-size: clamp(1.25rem, 2.4vw, 1.75rem); display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--cobalt); box-sizing: border-box; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ——— Seções ——— */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__title { font-size: var(--f-xxl); }
.section__note { color: var(--muted); font-size: var(--f-sm); margin: 0; max-width: 34ch; text-align: right; }
@media (max-width: 640px) { .section__head { flex-direction: column; align-items: start; } .section__note { text-align: left; } }

/* ——— Projetos em destaque ——— */
.feature { display: grid; gap: 24px; text-decoration: none; padding-bottom: clamp(44px, 6vw, 80px); margin-bottom: clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
  .feature:nth-child(even) .feature__media { order: 2; }
}
.feature__media { position: relative; border-radius: 14px; overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 9; }
.feature__media img, .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature:hover .feature__media img, .card:hover .card__media img { transform: scale(1.045); }
.feature__client { color: var(--muted); font-size: var(--f-sm); margin: 0 0 12px; }
.feature__title { font-size: var(--f-xl); margin-bottom: 16px; }
.feature__text { margin: 0 0 18px; max-width: 46ch; color: var(--ink-2); }
.feature__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--f-sm); }
.feature__more i { display: inline-block; width: 28px; height: 1.5px; background: var(--cobalt); transition: width .4s var(--ease); }
.feature:hover .feature__more i { width: 52px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; }
.tags li { font-size: var(--f-xs); padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* Selo que segue o cursor sobre as imagens */
.cursor { position: fixed; left: 0; top: 0; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; background: #000; color: var(--paper); display: grid; place-items: center; text-align: center; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; pointer-events: none; z-index: 40; transform: scale(0); transition: transform .35s var(--ease); }
.cursor.is-on { transform: scale(1); }

/* ——— Mais trabalhos ——— */
.grid { display: grid; gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px); }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } .grid > :nth-child(even) { margin-top: clamp(0px, 8vw, 96px); } }
.card { text-decoration: none; display: block; }
.card__media { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); margin-bottom: 18px; }
.card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; transition: transform .35s var(--ease); }
.card:hover h3 { transform: translateX(6px); }
.card p { color: var(--muted); font-size: var(--f-sm); margin: 0; max-width: 48ch; }

/* ——— Sobre ——— */
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 72px; } }
.about__bio p { font-size: var(--f-md); line-height: 1.65; color: var(--ink-2); }
.quote { margin: 36px 0 0; padding-left: 18px; border-left: 3px solid var(--cobalt); color: var(--muted); }
.quote cite { display: block; font-style: normal; font-size: var(--f-sm); margin-top: 8px; color: var(--ink); }
.timeline h3 { font-size: 1.375rem; margin: 0 0 12px; }
.timeline ol { list-style: none; margin: 0 0 44px; padding: 0; border-top: 1px solid var(--line); }
.timeline ol li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: var(--f-sm); }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline b { display: block; font-weight: 600; }
.timeline span { color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.skills li { font-size: var(--f-sm); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; transition: background .25s, color .25s, border-color .25s; }
.skills li:hover { background: #000; color: var(--paper); border-color: #000; }

/* ——— Contato ——— */
.contact { background: #000; color: var(--paper); }
.section + .contact { border-top: 0; }
.contact .section__title { color: var(--paper); margin-bottom: 32px; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact__mail { display: inline-block; font-family: var(--text); font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: 0; text-decoration: none; line-height: 1.3; word-break: break-word; color: var(--paper); background: linear-gradient(var(--cobalt), var(--cobalt)) 0 100% / 100% 2px no-repeat; padding: 2px 0 4px; transition: background-size .4s var(--ease), color .3s; }
.contact__mail:hover { background-size: 100% 100%; color: #fff; }
.copy { font: inherit; font-size: var(--f-sm); background: none; border: 1.5px solid rgba(243,244,245,.5); color: var(--paper); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.copy:hover { background: var(--paper); color: #000; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.contact .btn { border-color: var(--paper); color: var(--paper); }
.contact .btn::before { background: var(--paper); }
.contact .btn:hover { color: #000; }

.foot { padding: 28px 0; font-size: var(--f-xs); color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ——— Estudo de caso ——— */
.case-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: var(--f-sm); color: var(--muted); text-decoration: none; margin-bottom: 32px; transition: color .25s, gap .3s var(--ease); }
.back:hover { color: #000; gap: 14px; }
.case-hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); max-width: 14ch; margin-bottom: 24px; letter-spacing: -0.015em; font-variation-settings: "opsz" 96, "wdth" 80; }
.case-hero .lede { font-size: var(--f-lg); line-height: 1.45; max-width: 52ch; margin: 0; }
.meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin: clamp(32px, 4vw, 52px) 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .meta { grid-template-columns: repeat(4, 1fr); } }
.meta dt { font-size: var(--f-xs); color: var(--muted); margin-bottom: 4px; }
.meta dd { margin: 0; font-size: var(--f-sm); font-weight: 600; }
.meta a { color: var(--ink); text-decoration-color: var(--cobalt); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.case-cover { margin: clamp(24px, 4vw, 40px) auto 0; }
.case-cover__frame { border-radius: 16px; overflow: hidden; }
.case-cover img { width: 100%; }

.block { display: grid; gap: 16px; padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .block { grid-template-columns: 4fr 8fr; gap: 56px; } .block h2 { position: sticky; top: 96px; align-self: start; } }
.block h2 { font-size: var(--f-xl); }
.block__body { max-width: 66ch; color: var(--ink-2); }
.block__body ul { padding-left: 1.1em; margin: 0 0 1em; }
.block__body li { margin-bottom: .5em; }
.block__body b { color: var(--ink); }
.block__body h3 { font-size: 1.5rem; margin: 1.5em 0 .4em; color: var(--ink); }
.block__body a { color: var(--ink); text-decoration-color: var(--cobalt); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 12px 0 28px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-top: 2px solid var(--cobalt); padding-top: 10px; }
.stat b { display: block; font-family: var(--display); font-size: 3rem; font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 80; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--f-sm); color: var(--muted); }

.figure { margin: 0 0 clamp(36px, 5vw, 64px); }
.figure__frame { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.figure__frame img { width: 100%; }
.figure figcaption { font-size: var(--f-sm); color: var(--muted); margin-top: 12px; max-width: 70ch; }

.phones { display: flex; align-items: flex-start; gap: clamp(12px, 2.5vw, 28px); overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.phones img { flex: 0 0 auto; width: clamp(200px, 26vw, 280px); height: auto; border-radius: 24px; border: 1px solid var(--line); scroll-snap-align: start; background: #fff; transition: transform .45s var(--ease); }
.phones img:hover { transform: translateY(-8px); }

.scrollframe { height: min(78vh, 760px); overflow-y: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); }
.scrollframe img { width: 100%; }

.next { display: flex; justify-content: flex-end; text-decoration: none; padding: 36px 0 56px; border-top: 1px solid var(--line); }
.next__in { display: inline-flex; align-items: center; gap: 14px; text-align: right; }
.next__label { display: block; color: var(--muted); font-size: var(--f-xs); margin-bottom: 2px; }
.next__name { display: block; font-size: var(--f-md); font-weight: 600; color: var(--ink); }
.next__arrow { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #000; font-size: 1rem; opacity: 0; transform: translateX(-10px); transition: opacity .3s var(--ease), transform .35s var(--ease), background .25s, color .25s; }
.next:hover .next__arrow, .next:focus-visible .next__arrow { opacity: 1; transform: none; background: #000; color: var(--paper); }
.next:hover .next__name { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: none) { .next__arrow { opacity: 1; transform: none; } }

/* ——— Animações de entrada (só com JS e sem preferência por menos movimento) ——— */
@media (prefers-reduced-motion: no-preference) {
  .js .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
  .js .is-loaded .line > span { transform: none; }
  .js .is-loaded .line:nth-child(2) > span { transition-delay: .12s; }

  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(12% 6% 12% 6% round 14px); transition: clip-path 1.2s var(--ease); }
  .js [data-reveal="clip"] img { transform: scale(1.15); transition: transform 1.4s var(--ease); }
  .js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 14px); }
  .js [data-reveal="clip"].is-in img { transform: none; }
  .js .feature:hover [data-reveal="clip"].is-in img { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .feature__media img, .card__media img, .phones img { transition: none; }
  .nav { transition: none; }
}

/* ——— Blocos extras dos estudos de caso ——— */
.block__body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid #000; font-family: var(--display); font-weight: 700; font-variation-settings: "opsz" 48, "wdth" 85; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; color: var(--ink); }
.block__body ol { padding-left: 1.2em; margin: 0 0 1em; }
.block__body ol li { margin-bottom: .5em; }

.story { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.story li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.story b { font-family: var(--display); font-weight: 700; font-variation-settings: "opsz" 24, "wdth" 85; color: var(--muted); font-size: var(--f-sm); }
@media (max-width: 560px) { .story li { grid-template-columns: 1fr; gap: 2px; } }

.stat--wide { grid-column: 1 / -1; }

.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
.swatch { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.swatch i { display: block; aspect-ratio: 4 / 3; }
.swatch div { padding: 10px 12px; font-size: var(--f-sm); }
.swatch b { display: block; }
.swatch span { color: var(--muted); font-variant-numeric: tabular-nums; }

.typespec { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: clamp(20px, 4vw, 40px); display: grid; gap: 20px; }
@media (min-width: 760px) { .typespec { grid-template-columns: 1fr 1fr; align-items: end; } }
.typespec__big { font-family: "Quicksand", var(--text); font-weight: 600; font-size: clamp(4.5rem, 12vw, 9rem); line-height: .9; color: #016e74; }
.typespec__name { font-family: "Quicksand", var(--text); font-size: 1.75rem; font-weight: 600; margin-bottom: 6px; }
.typespec__chars { font-family: "Quicksand", var(--text); font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); word-break: break-all; }
.typespec__weights { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-family: "Quicksand", var(--text); font-size: 1.0625rem; }

.figure--wide { margin-left: calc(-1 * min(4vw, 40px)); margin-right: calc(-1 * min(4vw, 40px)); }
.figure--plain .figure__frame { border: 0; }


/* ——— Guia de estilo (recriado com os tokens do Figma) ——— */
.sg { font-family: "Quicksand", var(--text); color: var(--sg-text); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 44px); display: grid; gap: clamp(36px, 5vw, 56px); }
.sg-h { font-family: var(--display); font-size: 1.75rem; color: #000; margin-bottom: 18px; }
.sg-sub { font-size: 0.8125rem; font-weight: 600; color: #6b6b6b; margin: 18px 0 10px; }
.sg-sec > .sg-sub:first-of-type { margin-top: 0; }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 42%), 1fr)); gap: 14px; }
.sg-swatches--small { grid-template-columns: repeat(auto-fill, minmax(min(120px, 42%), 1fr)); }
.sg-sw i { display: block; height: 84px; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); margin-bottom: 8px; }
.sg-swatches--small .sg-sw i { height: 56px; }
.sg-sw b { display: block; font-weight: 600; font-size: 0.9375rem; }
.sg-sw span { display: block; font-size: 0.8125rem; color: #6b6b6b; font-variant-numeric: tabular-nums; }
.sg-sw small { display: block; font-size: 0.75rem; color: #8a8a8a; line-height: 1.35; margin-top: 2px; }

.sg-type { display: grid; gap: 24px; }
@media (min-width: 820px) { .sg-type { grid-template-columns: 5fr 7fr; align-items: center; } }
.sg-type__hero { display: flex; align-items: center; gap: 20px; }
.sg-aa { font-size: clamp(4.5rem, 10vw, 7rem); font-weight: 600; line-height: .9; color: #016E74; }
.sg-type__hero b { display: block; font-size: 1.5rem; font-weight: 600; }
.sg-type__hero div span { font-size: 0.875rem; color: #6b6b6b; }
.sg-scale { margin: 0; border-top: 1px solid #eee; }
.sg-scale > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #eee; }
.sg-scale dt { font-weight: 600; font-size: 0.875rem; }
.sg-scale dt small { display: block; font-weight: 400; color: #8a8a8a; font-size: 0.75rem; }
.sg-scale dd { margin: 0; line-height: 1.15; }

.sg-comp { display: grid; gap: 16px; }
@media (min-width: 760px) { .sg-comp { grid-template-columns: 1fr 1fr; } .sg-card--wide { grid-column: 1 / -1; } }
.sg-card { border: 1px solid #eee; border-radius: 12px; padding: 18px 20px 22px; background: #fcfcfc; }
.sg-card .sg-sub { margin-top: 0; }
.sg-stack { display: grid; gap: 12px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sg-btn { display: block; text-align: center; background: var(--sg-green); color: #fff; font-weight: 500; font-size: 16px; padding: 11px 16px; border-radius: 6px; border: 1px solid var(--sg-green); }
.sg-btn--outline { background: #fff; color: var(--sg-green); }
.sg-btn--sm { display: inline-block; background: var(--sg-teal); border-color: var(--sg-teal); font-size: 14px; padding: 6px 10px; }
.sg-follow { display: inline-block; font-size: 13px; color: var(--sg-green); border: 1px solid var(--sg-green); border-radius: 6px; padding: 3px 8px; }
.sg-field { display: block; }
.sg-field span { display: block; font-size: 14px; margin-bottom: 6px; }
.sg-field i, .sg-field--search { display: block; font-style: normal; font-size: 12px; color: #7a7a7a; background: var(--sg-field); border: 1px solid var(--sg-border); border-radius: 6px; padding: 11px 12px; position: relative; }
.sg-field--select i { background: #fff; color: var(--sg-text); }
.sg-field--select i::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #303030; border-bottom: 2px solid #303030; transform: translateY(-70%) rotate(45deg); }
.sg-field--search { border-color: transparent; border-radius: 10px; }
.sg-field--search i { all: unset; }
.sg-field--search svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.sg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-chip { font-size: 13px; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--sg-text); background: #fff; }
.sg-chip.is-on { background: var(--sg-orange); border-color: var(--sg-orange); color: #fff; }
.sg-steps { display: flex; align-items: center; margin-bottom: 18px; }
.sg-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sg-orange); color: var(--sg-orange); font-size: 14px; background: #fff; position: relative; }
.sg-steps span + span { margin-left: 24px; }
.sg-steps span + span::before { content: ""; position: absolute; right: 100%; width: 24px; top: 50%; border-top: 1px solid var(--sg-green); }
.sg-steps .is-done { border-color: var(--sg-green); color: var(--sg-green); }
.sg-steps .is-now { background: var(--sg-orange); color: #fff; }
.sg-radios { display: flex; gap: 28px; }
.sg-radio { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.sg-radio::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #5f5f5f; box-sizing: border-box; }
.sg-radio.is-on::before { border-color: var(--sg-orange); background: radial-gradient(circle, var(--sg-orange) 0 4px, #fff 5px); }
.sg-post { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.sg-post img { max-width: min(100%, 428px); border-radius: 10px; border: 1px solid #eee; background: #fff; }

/* Fluxos em acordeão */
.flow { border-bottom: 1px solid var(--line); }
.block__body h3 + .flow { border-top: 1px solid var(--line); }
.flow summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-weight: 600; color: var(--ink); }
.flow summary::-webkit-details-marker { display: none; }
.flow summary::after { content: "+"; font-weight: 400; font-size: 1.375rem; line-height: 1; transition: transform .3s var(--ease); }
.flow[open] summary::after { transform: rotate(45deg); }
.flow summary:hover::after { color: var(--cobalt); }
.flow ol { margin: 0 0 18px; }
@media (prefers-reduced-motion: no-preference) { .flow[open] ol { animation: flowin .35s var(--ease); } @keyframes flowin { from { opacity: 0; transform: translateY(-6px); } } }

/* Link do projeto no ar, no fim do estudo de caso */
.live { padding: clamp(8px, 2vw, 16px) 0 clamp(56px, 7vw, 88px); }
.live__label { display: block; color: var(--muted); font-size: var(--f-sm); margin-bottom: 8px; }
.live__link { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 85; font-size: clamp(1.75rem, 4.5vw, 3rem); line-height: 1.05; text-decoration: none; word-break: break-word; background: linear-gradient(var(--cobalt), var(--cobalt)) 0 100% / 100% 4px no-repeat; padding-bottom: 6px; transition: background-size .4s var(--ease), color .3s; }
.live__link span { display: inline-block; font-size: .7em; transition: transform .35s var(--ease); }
.live__link:hover { background-size: 100% 100%; color: #fff; }
.live__link:hover span { transform: translate(4px, -4px); }

/* Texto fixo à esquerda enquanto a página inteira desce à direita */
.pin { display: grid; gap: 28px; padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.pin__text h2 { font-size: var(--f-xl); margin-bottom: 20px; }
.pin__media { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.pin__media img { width: 100%; }
@media (min-width: 900px) {
  .pin { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
  .pin__text { position: sticky; top: 96px; }
}

/* Azul como cor de destaque em elementos (não em texto) */
.cursor { background: var(--cobalt); color: #fff; }
.next:hover .next__arrow, .next:focus-visible .next__arrow { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.next:hover .next__name { text-decoration-color: var(--cobalt); text-decoration-thickness: 1.5px; }
.skills li:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.block__body blockquote { border-left-color: var(--cobalt); }
.story { border-top-color: var(--cobalt); }

/* Sobre: números, detalhes da experiência e ferramentas */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 80; font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; }
.facts dd { margin: 6px 0 0; font-size: var(--f-sm); color: var(--muted); line-height: 1.4; }
.timeline em { display: block; font-style: normal; font-size: var(--f-xs); color: var(--muted); margin-top: 4px; }
.timeline__h { margin-top: 36px !important; }
.skills + .timeline__h { margin-top: 32px !important; }
.skills--tools li { background: transparent; }
.soft { font-size: var(--f-sm); color: var(--ink-2); max-width: 56ch; margin: 0; }
@media (min-width: 900px) { .about { align-items: start; } .about__bio { position: sticky; top: 96px; } }

/* Guia de estilo do Vitra */
.sg--lato { font-family: "Lato", var(--text); }
.sg-themes { display: grid; gap: 16px; }
@media (min-width: 820px) { .sg-themes { grid-template-columns: 1fr 1fr; } }
.sg-theme { border-radius: 12px; padding: 18px; border: 1px solid #e2e6ee; }
.sg-theme > b { display: block; margin-bottom: 12px; font-size: 1rem; }
.sg-theme--dark .sg-sw span, .sg-theme--dark .sg-sw small { color: #a9aed0; }
.sg-theme--dark .sg-sw i { border-color: rgba(255,255,255,.15); }
.sg-tokens { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.sg-tokens div { border: 1px solid #eee; border-radius: 10px; padding: 14px 16px; background: #fcfcfc; }
.sg-tokens b { display: block; font-size: .875rem; }
.sg-tokens span { font-size: .875rem; color: #6b6b6b; }

/* Duas imagens lado a lado */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.pair .figure__frame { display: block; }
.pair img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }

/* Foto no topo */
.hero { overflow-x: clip; }
.hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(28px, 5vw, 56px); }
.hero__top .hero__name { margin-bottom: 0; min-width: 0; }
.hero__photo { position: relative; margin: 0.6vw 0 0; flex: 0 0 auto; width: clamp(84px, 19vw, 280px); aspect-ratio: 1; }
.hero__photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; background: var(--paper-2); }
.orbit { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; overflow: visible; pointer-events: none; }
.orbit ellipse { fill: none; stroke: var(--cobalt); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.orbit--back { z-index: 0; }
.orbit--front { z-index: 2; }
@media (max-width: 700px) { .hero__photo { width: 30vw; margin-top: 1vw; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__photo { opacity: 0; transform: scale(.96); transition: opacity 1s var(--ease) .25s, transform 1.2s var(--ease) .25s; }
  .js .hero__photo.is-loaded { opacity: 1; transform: none; }
  .js .orbit { opacity: 0; transform: rotate(-24deg) scale(.9); transition: opacity 1s var(--ease) .7s, transform 1.6s var(--ease) .7s; }
  .js .hero__photo.is-loaded .orbit { opacity: 1; transform: none; }
}
.hero__cta:first-child { margin-top: 0; }

