:root {
  --bg: #070605;
  --bg-2: #0e0c0a;
  --ink: #f3ede6;
  --ink-2: #b9b0a6;
  --ink-3: #6f675f;
  --line: rgba(243, 237, 230, .1);
  --ember: #ff5b14;
  --amber: #ffaa00;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
::selection { background: var(--ember); color: #000; }

/* ---------- fundo ---------- */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.aura {
  position: fixed; inset: -20% -30% auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(255, 91, 20, .16), transparent 70%),
    radial-gradient(35% 40% at 75% 45%, rgba(255, 170, 0, .07), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(6%, 4%, 0) scale(1.08); } }

/* ---------- página ---------- */
.page {
  width: 100%; max-width: 520px; margin-inline: auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(36px, env(safe-area-inset-bottom));
}

/* entrada */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- HUD ---------- */
.hud { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); padding: 4px 4px 16px; font-size: 10px; }
.hud__status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hud__clocks { display: inline-flex; gap: 14px; }
.hud__clocks b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 4px; }

/* ---------- capa ---------- */
.cover { position: relative; }
.cover__photo {
  position: relative; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 4 / 4.3; background: var(--bg-2);
  box-shadow: 0 40px 80px -40px rgba(255, 91, 20, .35);
}
.cover__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.04); animation: breathe 14s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); } }
.cover__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 6, 5, .55) 75%, var(--bg) 100%);
}
.cover__tag {
  position: absolute; top: 14px; right: 14px; z-index: 1; font-size: 9.5px;
  padding: 7px 10px; border-radius: 99px; color: var(--ink);
  background: rgba(7, 6, 5, .45); border: 1px solid rgba(243, 237, 230, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cover__tag i { font-style: normal; color: var(--ember); margin: 0 3px; }

/* nome igual ao hero do portfólio: Breno sans pesado, Santh serifa laranja */
.cover__name { position: relative; z-index: 2; margin: -22% 0 0 4px; line-height: 0; }
.cover__name svg { width: 92%; height: auto; overflow: visible; }
.nm { font-size: 200px; }
.nm--breno { font-family: var(--sans); font-weight: 600; letter-spacing: -11px; fill: var(--ink); }
.nm--santh { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -6px; fill: var(--ember); }

.cover__lead { margin: 18px 4px 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); letter-spacing: -.01em; max-width: 30em; }
.cover__lead em { color: var(--ink); font-size: 1.12em; }
.cover__roles { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 18px 4px 0; font-size: 9px; letter-spacing: .08em; }
.cover__roles li { padding: 6px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); }

/* ---------- cards ---------- */
.links { display: grid; gap: 14px; margin-top: 34px; }
.card {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.card:active { transform: scale(.985); }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); border-color: rgba(255, 91, 20, .45); box-shadow: 0 30px 60px -30px rgba(255, 91, 20, .45); }
  .card:hover .go { background: var(--ember); color: #000; transform: rotate(45deg); }
}
/* luz que segue o dedo/mouse */
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 170, 0, .12), transparent 60%);
}
.card.is-lit::before { opacity: 1; }

.kicker { color: var(--ember); margin-bottom: 10px; }
.card h2, .tools h2 { font-weight: 500; font-size: 27px; line-height: 1.05; letter-spacing: -.035em; }
.card h2 em, .tools h2 em { font-size: 1.12em; letter-spacing: -.01em; }
.card__sub { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

.go {
  position: absolute; top: 16px; right: 16px; z-index: 4;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(243, 237, 230, .08); color: var(--ink); border: 1px solid rgba(243, 237, 230, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .35s, color .35s, transform .5s var(--ease);
}
.go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.go--sm { width: 36px; height: 36px; top: 12px; right: 12px; }
.go--sm svg { width: 15px; height: 15px; }

/* 01: portfólio com parede de artes passando */
.card--folio { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.folio__wall {
  position: absolute; inset: -30% -20% 10% -20%; z-index: -1;
  display: grid; gap: 10px; align-content: start;
  transform: rotate(-8deg); opacity: .75;
}
.folio__row { display: flex; gap: 10px; width: max-content; animation: slide 46s linear infinite; }
.folio__row--rev { animation-direction: reverse; animation-duration: 52s; }
.folio__row img { width: 108px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
.card--folio::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 12, 10, .1) 0%, rgba(14, 12, 10, .7) 48%, var(--bg-2) 78%);
}
.card--folio .card__body { padding: 22px; }

/* 02: ferramentas */
.tools {
  border-radius: var(--r); border: 1px solid var(--line); padding: 22px 12px 12px;
  background: linear-gradient(180deg, rgba(243, 237, 230, .03), transparent 60%);
  display: grid; gap: 12px;
}
.tools__head { padding: 0 10px 6px; }
.card--tool { border-radius: 16px; background: #0b0a09; }
.tool__shot { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; }
.tool__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform 1.2s var(--ease); }
.tool__shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #0b0a09 100%); }
.card--light .tool__shot::after { background: linear-gradient(180deg, transparent 40%, rgba(11, 10, 9, .35) 75%, #0b0a09 100%); }
@media (hover: hover) { .card--tool:hover .tool__shot img { transform: scale(1.06) translate3d(-2%, -2%, 0); } }
.tool__body { padding: 4px 16px 16px; margin-top: -14px; position: relative; }
.tool__logo { height: 22px; width: auto; margin-bottom: 10px; }
.tool__body p { color: var(--ink-2); font-size: 14px; line-height: 1.45; }

/* 03: whatsapp, a lâmpada acende */
.card--talk { padding: 26px 22px 24px; display: grid; gap: 18px; align-items: start; }
.talk__glow {
  position: absolute; z-index: -1; left: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 170, 0, .35), rgba(255, 91, 20, .12) 40%, transparent 70%);
  opacity: 0; transform: scale(.6); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease);
}
.bulb { width: 46px; overflow: visible; margin-top: 2px; }
.bulb__glass { fill: none; stroke: #2a2622; transition: stroke .25s; }
.bulb__base { fill: #2a2622; transition: fill .25s; }
.bulb__rays line { stroke: #2a2622; opacity: .5; transition: stroke .25s, opacity .25s; }
.card--talk.is-on .talk__glow { opacity: 1; transform: none; }
.card--talk.is-on .bulb { animation: flicker .9s steps(1) both; filter: drop-shadow(0 0 16px rgba(255, 170, 0, .8)) drop-shadow(0 0 40px rgba(255, 120, 0, .5)); }
.card--talk.is-on .bulb__glass { stroke: var(--amber); }
.card--talk.is-on .bulb__base { fill: var(--amber); }
.card--talk.is-on .bulb__rays line { stroke: var(--amber); opacity: 1; }
@keyframes flicker { 0% { opacity: 1; } 8% { opacity: .2; } 14% { opacity: 1; } 22% { opacity: .35; } 30%, 100% { opacity: 1; } }
.card--talk.is-on { border-color: rgba(255, 170, 0, .28); }

.btn {
  margin-top: 22px; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 16px 20px; border-radius: 99px; background: var(--amber); color: #120b02;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  box-shadow: 0 14px 40px -12px rgba(255, 170, 0, .8);
  transition: box-shadow .4s, transform .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn__wa { fill: currentColor; }
.btn__arrow { margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
@media (hover: hover) { .card--talk:hover .btn { box-shadow: 0 20px 60px -10px rgba(255, 170, 0, 1); } .card--talk:hover .btn__arrow { transform: translateX(4px); } }
.talk__note { margin-top: 14px; color: var(--ink-3); font-size: 9.5px; }

/* ---------- rodapé ---------- */
.foot { margin-top: 40px; display: grid; justify-items: center; gap: 22px; text-align: center; }
.foot__insta { color: var(--ink); font-size: 12px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 99px; transition: border-color .3s, color .3s; }
.foot__insta i { font-style: normal; color: var(--ember); margin-left: 4px; }
.foot__insta:hover { border-color: var(--ember); }
.signature { display: grid; justify-items: center; gap: 10px; color: var(--ink-3); opacity: .8; transition: opacity .3s; }
.signature:hover { opacity: 1; }
.signature span { font-size: 9.5px; }
.signature img { height: 20px; width: auto; }
.foot__copy { color: var(--ink-3); font-size: 9.5px; }

/* telas maiores: um pouco mais de respiro */
@media (min-width: 560px) {
  .page { padding-top: 32px; }
  .card h2, .tools h2 { font-size: 32px; }
  .card--folio { min-height: 340px; }
  .card--talk { grid-template-columns: 60px 1fr; padding: 30px 28px 28px; }
  .bulb { width: 60px; }
  .btn { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
}
