/* ============================================================
   Felippe Amaral — Portfólio
   Design system: luz quente, movimento sutil, editorial.
   ============================================================ */

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #16130F;
  --ink-soft: #3E3A33;
  --muted: #756E63;
  --line: #E5E0D5;
  --accent: #FF4517;
  --accent-dark: #D63508;
  --accent-warm: #FFB347;
  --glow: rgba(255, 69, 23, .28);
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-color: #C9C2B4 transparent; }

/* Transição suave entre páginas (navegadores compatíveis) */
@view-transition { navigation: auto; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.wrap { width: min(1200px, 92vw); margin: 0 auto; }

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

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skiplink {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: top .2s;
}
.skiplink:focus { top: 12px; }

/* ---------- Animações base ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.anim { animation: rise .85s cubic-bezier(.2, .7, .3, 1) both; animation-delay: var(--a, 0ms); }

@keyframes floatA {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40px, 34px) scale(1.12); }
  100% { transform: translate(24px, -20px) scale(.96); }
}
@keyframes floatB {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(46px, -28px) scale(1.08); }
  100% { transform: translate(-30px, 18px) scale(1.02); }
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 10px 34px -22px rgba(22, 19, 15, .35);
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand { min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  background: var(--ink); color: var(--bg);
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  transition: background .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover .brand__mark { background: var(--accent); transform: rotate(-8deg) scale(1.06); }
/* O logotipo enviado aparece inteiro (nunca cortado), seja quadrado ou deitado */
.brand__img {
  height: 38px; width: auto;
  max-width: min(150px, 42vw);
  border-radius: 10px;
  object-fit: contain; object-position: left center;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover .brand__img { transform: scale(1.05); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s; position: relative;
}
.nav a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: right .28s cubic-bezier(.2, .7, .3, 1);
}
.nav a:not(.nav__cta):hover::after,
.nav a.is-active:not(.nav__cta)::after { right: 0; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav__cta {
  background: var(--ink); color: var(--bg) !important;
  padding: 9px 20px; border-radius: 999px;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.nav__cta:hover {
  background: var(--accent); transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px var(--glow);
}

@media (max-width: 560px) {
  .brand__name { display: none; }
  .nav { gap: 16px; }
  .nav__cta { padding: 9px 16px; }
  /* logotipo deitado não pode empurrar o menu */
  .brand__img { height: 32px; max-width: 104px; }
}
@media (max-width: 400px) {
  .nav { gap: 13px; font-size: 14px; }
  .brand__img { max-width: 78px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: 92px 0 0; overflow: hidden; }
.hero__in { position: relative; z-index: 2; }

.hero__orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 1;
  transition: translate .9s cubic-bezier(.2, .7, .3, 1);
  translate: calc(var(--mx, 0) * var(--px, 0px)) calc(var(--my, 0) * var(--py, 0px));
}
.hero__orb--a {
  width: 640px; height: 640px; top: -230px; right: -140px;
  --px: 26px; --py: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 69, 23, .16) 0%, rgba(255, 69, 23, .05) 42%, transparent 68%);
  animation: floatA 17s ease-in-out infinite alternate;
}
.hero__orb--b {
  width: 460px; height: 460px; bottom: -160px; left: -120px;
  --px: -18px; --py: -12px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 179, 71, .17) 0%, rgba(255, 179, 71, .05) 45%, transparent 70%);
  animation: floatB 21s ease-in-out infinite alternate;
}

.hero__hello {
  font-size: 14px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9.5vw, 7.2rem);
  font-weight: 700; line-height: .98; letter-spacing: -.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__dot { color: var(--accent); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__shine {
    background: linear-gradient(115deg, var(--ink) 40%, #8A6A4C 50%, var(--ink) 60%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: nameShine 9s ease-in-out 1.6s infinite;
  }
}
@keyframes nameShine {
  0%   { background-position: 100% 0; }
  32%  { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}

.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted); max-width: 620px;
  text-wrap: pretty;
}
.hero__row { display: flex; align-items: center; gap: 16px; margin-top: 30px; }

.avail {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 6px 22px -14px rgba(22, 19, 15, .3);
}
.avail i {
  width: 8px; height: 8px; border-radius: 50%; background: #1E9E5A;
  box-shadow: 0 0 0 0 rgba(30, 158, 90, .45);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(30, 158, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 158, 90, 0); } }

.marquee {
  position: relative; z-index: 2;
  margin-top: 64px; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 28px;
  animation: marquee 24s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; text-transform: uppercase; letter-spacing: .06em;
}
.marquee__star { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secção de trabalhos ---------- */

.work { padding: 60px 0 96px; }

.shead { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.shead h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
}
.shead__line { flex: 1; height: 1px; background: var(--line); }
.shead__count { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-weight: 500; font-size: 14px;
  padding: 9px 20px; border-radius: 999px;
  transition: all .22s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.filter.is-active {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
  box-shadow: 0 8px 20px -12px rgba(22, 19, 15, .5);
}

/* ---------- Grid de projetos ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.gcell { transition: opacity .26s, transform .26s; }
.gcell.is-hiding { opacity: 0; transform: scale(.94); }
.gcell.is-hidden { display: none; }
.gcell--wide { grid-column: span 2; }
@media (max-width: 620px) { .gcell--wide { grid-column: span 1; } }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transform: perspective(1000px) translateY(var(--ty, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s, border-color .35s;
  will-change: transform;
}
.card:hover {
  --ty: -7px;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow:
    0 28px 56px -22px rgba(22, 19, 15, .28),
    0 18px 44px -22px var(--glow);
}

.card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line);
}
.gcell--wide .card__media { aspect-ratio: 2 / 1.18; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card__media img { transform: scale(1.05); }

/* Reflexo que atravessa a capa no hover */
.card__media::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .32) 50%, transparent 58%);
  transform: translateX(-130%) skewX(-4deg);
  transition: transform .85s cubic-bezier(.3, .6, .3, 1);
  pointer-events: none;
}
.card:hover .card__media::after { transform: translateX(130%) skewX(-4deg); }

.card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .5);
  padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 4px 14px -6px rgba(22, 19, 15, .25);
}

.card__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 42px; color: var(--muted);
}

.card__body {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 20px;
  margin-top: auto;
}
.card__text h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  line-height: 1.3; margin-bottom: 3px;
}
.card__text p { font-size: 13.5px; color: var(--muted); min-height: 1em; }
.card__arrow {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 16px;
  transition: all .3s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card__arrow {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: rotate(-45deg) scale(1.06);
  box-shadow: 0 6px 16px -6px var(--glow);
}

/* ---------- Reveal ao rolar ---------- */

/* Só esconde quando há JavaScript para revelar de volta */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.reveal.in {
  opacity: 1; transform: none; filter: none;
  transition:
    opacity .7s ease var(--d, 0ms),
    transform .7s cubic-bezier(.2, .7, .3, 1) var(--d, 0ms),
    filter .7s ease var(--d, 0ms);
}
/* Depois de revelado, respostas rápidas (filtros/hover) sem o atraso da entrada */
.gcell.reveal.in.rdone { transition: opacity .26s 0ms, transform .26s 0ms; filter: none; }

/* ---------- Vazio ---------- */

.empty { text-align: center; padding: 90px 0; }
.empty h2 { font-family: var(--font-display); font-size: 30px; margin-bottom: 10px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Chips / botões ---------- */

.chip {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 15px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.chip--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip--draft { background: #FFF3CC; border-color: #EFD98A; color: #7A5E00; }
.chip--big {
  font-size: 15px; padding: 10px 20px; color: var(--ink);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.chip--big:hover {
  transform: translateY(-2px); border-color: var(--accent);
  box-shadow: 0 10px 22px -14px var(--glow);
}

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px;
  transition: all .28s;
}
.btn .ico { flex: 0 0 auto; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.btn:hover .ico { transform: scale(1.1); }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .3) 50%, transparent 60%);
  transform: translateX(-140%);
  transition: transform .7s ease;
}
.btn--solid:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--glow); }
.btn--solid:hover::after { transform: translateX(140%); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* ---------- Página de projeto ---------- */

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 0 3px 3px 0;
}

.project { padding: 64px 0 90px; }
.backlink {
  display: inline-block; font-size: 14.5px; font-weight: 500; color: var(--muted);
  margin-bottom: 28px; transition: color .2s, transform .2s;
}
.backlink:hover { color: var(--accent); transform: translateX(-3px); }
.project__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -.02em;
  max-width: 900px; margin-bottom: 22px;
  text-wrap: balance;
}
.project__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }

.project__coverwrap { margin-bottom: 48px; }
.project__cover {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -34px rgba(22, 19, 15, .35);
}

.project__body { max-width: 1000px; }
.project__desc {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft); max-width: 720px; margin-bottom: 48px;
}
.project__desc p + p { margin-top: 1em; }

.project__video {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 48px; background: #000;
  box-shadow: 0 24px 56px -28px rgba(22, 19, 15, .4);
}
.project__video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.project__gallery { display: grid; gap: 26px; }
.project__gallery img,
.project__cover.js-zoom {
  cursor: zoom-in;
}
.project__gallery img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s;
}
.project__gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px -26px rgba(22, 19, 15, .35);
}

/* Compartilhar */
.share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
  margin-top: 54px; padding-top: 30px;
  border-top: 1px solid var(--line);
}
.share__label {
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px;
}
.share__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  transition: all .25s cubic-bezier(.2, .7, .3, 1);
}
.share__btn:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px var(--glow);
}

/* Navegação anterior / próximo */
.project__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line);
}
.pnav {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .28s;
}
.pnav:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(22, 19, 15, .3);
}
.pnav__thumb {
  flex: 0 0 66px; width: 66px; height: 50px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.pnav__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pnav__text span { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pnav__text strong {
  font-family: var(--font-display); font-size: 16.5px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pnav--next { justify-content: flex-end; text-align: right; }
.pnav--next .pnav__text { align-items: flex-end; }
@media (max-width: 620px) {
  .project__nav { grid-template-columns: 1fr; }
  .pnav--next { justify-content: flex-start; text-align: left; }
  .pnav--next .pnav__text { align-items: flex-start; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: rgba(14, 11, 8, .93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb__img {
  max-width: min(92vw, 1400px); max-height: 84vh;
  border-radius: 14px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8);
  transform: scale(.96);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.lightbox.open .lb__img { transform: none; }
.lb__btn {
  position: absolute; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 17px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.lb__btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.07); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb__prev:hover { transform: translateY(-50%) scale(1.07); }
.lb__next:hover { transform: translateY(-50%) scale(1.07); }
.lb__count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .75); font-size: 13.5px; font-weight: 600; letter-spacing: .08em;
}
@media (max-width: 620px) {
  .lb__prev { left: 8px; } .lb__next { right: 8px; }
  .lb__img { max-width: 96vw; }
}

/* ---------- Sobre ---------- */

.about { padding: 72px 0 90px; }
.about__grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 44px; } }

.about__media { position: sticky; top: 96px; }
.about__frame { position: relative; }
.about__frame::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border: 2px solid var(--accent); border-radius: var(--radius);
  transform: translate(14px, 14px);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.about__frame:hover::after { transform: translate(8px, 8px); }
.about__frame img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.about__placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 69, 23, .32), transparent 46%),
    linear-gradient(145deg, var(--ink) 0%, #3A342B 100%);
  display: grid; place-items: center;
}
.about__placeholder span {
  font-family: var(--font-display); font-weight: 700; font-size: 84px; color: var(--bg);
  opacity: .92;
}
@media (max-width: 900px) { .about__media { position: static; max-width: 340px; } }

.about__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.02em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.about__bio { font-size: 1.08rem; color: var(--ink-soft); max-width: 640px; }
.about__bio p + p { margin-top: 1em; }

.about__sub {
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  margin: 42px 0 18px;
}
.about__services { display: flex; flex-wrap: wrap; gap: 10px; }

.about__links { list-style: none; max-width: 560px; }
.about__links li {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  transition: background .2s, padding .2s;
}
.about__links li:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); padding-left: 10px; }
.about__links-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.about__links-label .ico { color: var(--ink); flex: 0 0 auto; }
.about__links a {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; transition: color .2s;
}
.about__links a:hover { color: var(--accent); }
.about__links a .ico { opacity: .5; transition: opacity .2s, transform .2s; }
.about__links a:hover .ico { opacity: 1; transform: translate(2px, -2px); }

/* ---------- Footer ---------- */

.footer {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg);
  padding: 84px 0 36px; margin-top: 20px;
  border-radius: 32px 32px 0 0;
}
.footer__in { position: relative; z-index: 2; }
.footer__orb {
  position: absolute; z-index: 1; pointer-events: none;
  width: 720px; height: 720px; top: -320px; right: -200px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 69, 23, .22) 0%, rgba(255, 69, 23, .06) 45%, transparent 70%);
  animation: floatA 19s ease-in-out infinite alternate;
}
.footer__kicker {
  font-size: 14px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.footer__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 3.8rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
  max-width: 760px; margin-bottom: 34px;
  text-wrap: balance;
}
.footer__title em {
  font-style: normal; color: var(--accent);
  text-shadow: 0 0 34px rgba(255, 69, 23, .45);
}
.footer__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.footer .btn--ghost { border-color: rgba(246, 244, 239, .5); color: var(--bg); }
.footer .btn--ghost:hover { background: var(--bg); color: var(--ink); }

/* Redes sociais em ícones outline */
.sociais { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 64px; }
.soc {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(246, 244, 239, .82);
  border: 1px solid rgba(246, 244, 239, .26);
  background: rgba(246, 244, 239, .04);
  transition: color .25s, background .25s, border-color .25s, transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s;
}
.soc:hover {
  color: #fff; background: var(--accent); border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -12px var(--glow);
}

.footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 26px; border-top: 1px solid rgba(246, 244, 239, .16);
  font-size: 13.5px; color: rgba(246, 244, 239, .62);
}
.footer__meta { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__meta a { transition: color .2s; }
.footer__meta a:hover { color: var(--accent); }
.footer__admin { opacity: .45; }

/* Botões de contato (página Sobre) */
.ctabtns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.ctabtn {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 13px 22px 13px 15px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s, border-color .28s;
}
.ctabtn:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 18px 34px -20px rgba(22, 19, 15, .38);
}
.ctabtn__ico {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  transition: background .25s, color .25s;
}
.ctabtn:hover .ctabtn__ico { background: var(--accent); color: #fff; }
.ctabtn__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ctabtn__txt strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.ctabtn__txt small { font-size: 13px; color: var(--muted); }

/* ---------- Voltar ao topo / Toast ---------- */

.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(22, 19, 15, .5);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .3s, transform .3s, background .25s;
}
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 130;
  transform: translate(-50%, 16px);
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 18px 40px -16px rgba(22, 19, 15, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Movimento reduzido / toque ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .reveal { animation: none; opacity: 1; transform: none; filter: none; }
  .reveal.in { transition: none; }
  .marquee__track, .hero__orb--a, .hero__orb--b, .footer__orb, .avail i { animation: none; }
  .hero__shine { animation: none; }
  .card, .card__media img, .card__media::after { transition: none; }
  .lightbox, .lb__img { transition: none; }
}

@media (hover: none) {
  .card__media::after { display: none; }
}
