/* Soluções Cast · link na bio */

@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial');
  size-adjust: 108%;
  ascent-override: 86%;
  descent-override: 21%;
}

:root {
  --navy-900: #060C2B;
  --navy-700: #0C1951;
  --blue-500: #3B82FF;
  --white: #FFFFFF;

  --ink-2: rgb(255 255 255 / .70);
  --ink-3: rgb(255 255 255 / .62);
  --line: rgb(255 255 255 / .14);
  --plate: rgb(6 12 43 / .55);
  --wash: rgb(59 130 255 / .10);
  --blue-press: color-mix(in srgb, var(--blue-500) 86%, var(--navy-900));

  --radius: 6px;
  --gutter: 24px;
  --sans: 'Archivo', 'Archivo Fallback', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

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

html {
  background: var(--navy-900);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--blue-500) var(--navy-900);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--white);
  font-family: var(--sans);
  font-stretch: 112%;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(130% 70% at 50% 0%, var(--navy-700) 0%, var(--navy-900) 72%) no-repeat,
    var(--navy-900);
}

::selection { background: var(--blue-500); color: var(--white); }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* Inside clipped containers the ring is drawn inward so it stays visible. */
.plate :focus-visible { outline-offset: -3px; }

/* Photo links: the ring rides above the photo layer instead of under it. */
.episode__link,
.tile { position: relative; }
.episode__link:focus-visible,
.tile:focus-visible { outline: none; }
.episode__link:focus-visible::after,
.tile:focus-visible::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 3;
  border: 2px solid var(--white);
  border-radius: 4px;
  pointer-events: none;
}
.tile:focus-visible::after { inset: 0; border-radius: var(--radius); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Page ---------- */

.page {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding:
    max(44px, env(safe-area-inset-top))
    var(--gutter)
    max(28px, env(safe-area-inset-bottom));
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  margin-top: 56px;
}

/* ---------- Masthead: the logo lockup ---------- */

.masthead { container-type: inline-size; }

.brand { margin: 0; line-height: 0; }

.wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Rule + tagline, proportioned from the official lockup (1793 units wide). */
.tagline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5.1cqi 0 0;
  padding-top: max(9px, 2.35cqi);
  border-top: max(1.5px, .28cqi) solid var(--blue-500);
  font-size: max(11px, 3.05cqi);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Cancel each word's trailing tracking so the dots sit centred between words. */
.tagline > span:not(.tagline__dot) { margin-right: -.2em; }
.tagline__dot {
  flex: none;
  width: .42em;
  height: .42em;
  margin-inline: .45em;
  border-radius: 50%;
  background: var(--blue-500);
}
/* Narrower columns step size and tracking down together (measured to fit). */
@container (max-width: 339px) {
  .tagline { font-size: 10.5px; letter-spacing: .15em; }
  .tagline > span:not(.tagline__dot) { margin-right: -.15em; }
}
@container (max-width: 309px) {
  .tagline { font-size: 10px; letter-spacing: .12em; }
  .tagline > span:not(.tagline__dot) { margin-right: -.12em; }
}
@container (max-width: 289px) {
  .tagline { font-size: 9.5px; letter-spacing: .1em; }
  .tagline > span:not(.tagline__dot) { margin-right: -.1em; }
}

.lede {
  margin: 28px 0 0;
  max-width: 30ch;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Platform actions ---------- */

.platforms {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 19px;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.15;
  transition:
    background-color .25s var(--ease),
    box-shadow .25s var(--ease),
    transform .2s var(--ease);
}
.btn:active { transform: scale(.985); }

.btn--primary { background: var(--blue-500); color: var(--white); }
.btn--secondary {
  background: var(--plate);
  box-shadow: inset 0 0 0 1.5px var(--blue-500);
}

.btn__icon { flex: none; width: 24px; height: 24px; }
.btn__label { flex: 1 1 auto; min-width: 0; }

@container (max-width: 330px) {
  .btn { gap: 12px; padding-inline: 16px; font-size: 18.7px; }
}
@container (max-width: 300px) {
  .btn .wave { display: none; }
}

/* Sound-wave glyph (brand graphic) */
.wave {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.wave i {
  display: block;
  width: 3px;
  height: calc(var(--h) * 100%);
  border-radius: 2px;
  background: currentColor;
  transform-origin: 50% 50%;
}
.btn--secondary .wave { color: var(--blue-500); }

@media (hover: hover) {
  .btn--primary:hover { background: var(--blue-press); }
  .btn--secondary:hover { background: var(--wash); }
}

/* ---------- Section titles ---------- */

.section-title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: .2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title--rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.section-title--rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--blue-500);
  opacity: .7;
}

/* ---------- Plate: the nameplate container ---------- */

.plate {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--plate);
}

.plate__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.plate__band .section-title { white-space: nowrap; }

.plate__code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--blue-500);
}

.wave--live { height: 12px; gap: 2px; }
.wave--live i { width: 2px; }

/* ---------- Photos ---------- */

.photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--navy-700);
  isolation: isolate;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
  transition: transform .8s var(--ease);
}
/* Navy grade that unifies every photo, real or provisional. */
.photo::before,
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.photo::before { background: var(--navy-700); mix-blend-mode: multiply; opacity: .38; }
.photo::after { background: linear-gradient(180deg, rgb(6 12 43 / 0) 45%, rgb(6 12 43 / .72) 100%); }

/* A photo that fails to load falls back to the gear mark. */
.photo--empty { background: var(--navy-700) url("assets/engrenagem.svg") center / 64px no-repeat; }
.photo--empty img { opacity: 0; }
.photo--empty::before,
.photo--empty::after { display: none; }

.photo--wide { aspect-ratio: 16 / 10; }
/* Lighter grade on the hero photo so the guest's face reads clearly. */
.photo--wide::before { opacity: .2; }
.photo--wide::after { background: linear-gradient(180deg, rgb(6 12 43 / 0) 62%, rgb(6 12 43 / .6) 100%); }
.photo--tall {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Latest episode ---------- */

.episode__link { display: block; }

.play {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--blue-500);
  color: var(--white);
  transition: background-color .25s var(--ease), transform .3s var(--ease);
}
.play svg { width: 22px; height: 22px; margin-left: 2px; }

.episode__body { padding: 18px 16px 20px; }

.episode__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.2;
  text-wrap: balance;
}

.episode__guest {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}
.episode__guest:empty { display: none; }

/* Nameplate cells: Tema across the top on phones, three in a row from 640px. */
.plate__data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}
.plate__data > div { padding: 12px 16px 14px; }
.plate__data--n1 { grid-template-columns: minmax(0, 1fr); }
.plate__data--n2 > div + div,
.plate__data--n3 > div:last-child { border-left: 1px solid var(--line); }
.plate__data--n3 > div:first-child {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
}
.plate__data dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plate__data dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.plate__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  transition: background-color .25s var(--ease);
}
.plate__row-icon { flex: none; width: 20px; height: 20px; }

.arrow {
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--blue-500);
  transition: transform .3s var(--ease);
}

@media (hover: hover) {
  .episode__link:hover .photo img,
  .tile:hover .photo img { transform: scale(1.03); }
  .episode__link:hover .play { background: var(--blue-press); transform: translateY(-2px); }
  .plate__row:hover,
  .cta:hover { background: var(--wash); }
  .plate__row:hover .arrow,
  .cta:hover .arrow { transform: translate(2px, -2px); }
}

/* ---------- Strip of photos ---------- */

.faixa__lista {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(68%, 260px);
  gap: 12px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 4px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.faixa__lista::-webkit-scrollbar { display: none; }
.faixa__lista > li { scroll-snap-align: start; }

.tile { display: block; border-radius: var(--radius); }
.tile__meta { display: block; padding: 12px 2px 0; }
.tile__code {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--blue-500);
  margin-top: 8px;
}
.tile__title {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}
.tile__guest {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Participe ---------- */

.participe__grid { display: grid; }

.cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px 22px;
  transition: background-color .25s var(--ease);
}
.cta + .cta { border-top: 1px solid var(--line); }
.cta__head { display: flex; align-items: flex-start; gap: 12px; }
.cta__title {
  font-size: 19px;
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.25;
  text-wrap: balance;
}
.cta__text {
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 56px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.socials {
  display: flex;
  gap: 6px;
  margin: 0 0 0 -12px;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.socials svg { width: 20px; height: 20px; }
@media (hover: hover) { .socials a:hover { color: var(--white); } }

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Very narrow screens (large display zoom): tighten tracking, never scroll sideways. */
@media (max-width: 359px) {
  .section-title { letter-spacing: .12em; }
  .plate__band { gap: 8px; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise .7s var(--ease) both;
    animation-delay: calc(var(--d, 0) * 1ms);
  }
  /* The platform actions only move, never fade: tappable from the first frame. */
  .lift {
    animation: lift .7s var(--ease) both;
    animation-delay: calc(var(--d, 0) * 1ms);
  }

  /* Signature: the logo's 15 bars settle once, like a level meter. */
  .wordmark__bars rect {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: settle 1.35s cubic-bezier(.3, .7, .2, 1) both;
    animation-delay: calc(150ms + var(--i) * 32ms);
  }

  @media (hover: hover) {
    .btn:hover .wave i { animation: pulse .9s ease-in-out infinite; animation-delay: calc(var(--n) * -140ms); }
  }
  /* Self-starting motion stops within 5s (WCAG 2.2.2). */
  .btn:focus-visible .wave i,
  .btn.is-pressed .wave i { animation: pulse .9s ease-in-out 3; animation-delay: calc(var(--n) * -140ms); }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes lift { from { transform: translateY(10px); } }

@keyframes settle {
  0%   { transform: scaleY(.08); }
  30%  { transform: scaleY(var(--p1)); }
  55%  { transform: scaleY(var(--p2)); }
  78%  { transform: scaleY(var(--p3)); }
  100% { transform: scaleY(1); }
}

@keyframes pulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  .page { max-width: 600px; }

  .faixa__lista {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .participe__grid { grid-template-columns: 1fr 1fr; }
  .cta + .cta { border-top: 0; border-left: 1px solid var(--line); }

  .plate__data--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plate__data--n3 > div:first-child { grid-column: auto; border-bottom: 0; }
  .plate__data--n3 > div + div { border-left: 1px solid var(--line); }
}

/* ---------- Desktop: identity column + content column ---------- */

@media (min-width: 960px) {
  body {
    background:
      radial-gradient(60% 85% at 24% 45%, var(--navy-700) 0%, var(--navy-900) 72%) fixed no-repeat,
      var(--navy-900);
  }

  .page {
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(480px, 600px);
    column-gap: clamp(48px, 7vw, 136px);
    justify-content: center;
    max-width: 1280px;
    padding: 0 clamp(32px, 4vw, 56px);
  }

  .masthead {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 96px 0 72px; /* shares the content column's top line */
  }

  .content {
    grid-column: 2;
    grid-row: 1;
    gap: 72px;
    margin-top: 0;
    padding-top: 96px;
  }

  .footer {
    grid-column: 2;
    grid-row: 2;
    margin: 72px 0 56px;
  }

  .lede { margin-top: 32px; font-size: 19px; }
  .platforms { margin-top: 40px; }
  .btn { min-height: 64px; }
  .photo--wide { aspect-ratio: 16 / 9; }
  .episode__title { font-size: 26px; }
}

/* The identity column stays put only when the whole column fits the screen. */
@media (min-width: 960px) and (min-height: 660px) {
  .masthead { position: sticky; top: 0; }
}
