@font-face {
  font-family: "Amerga";
  src: url("extras/Amerga.woff") format("woff");
  font-display: swap;
}

:root {
  --cream: #fff8dc;
  --coral: #ff6b5f;
  --pink: #f4b8b3;
  --brown: #70401f;
  --mustard: #f7c957;
  --olive: #86a94a;
  --purple: #7652c8;
  --emotion-neutral: var(--purple);
  --emotion-happy: #ff4f9a;
  --emotion-angry: #d7352a;
  --emotion-sad: #3778c2;
  --ink: #432611;
  --paper: rgba(255, 248, 220, 0.82);
  --paper-strong: rgba(255, 252, 236, 0.94);
  --line: rgba(112, 64, 31, 0.22);
  --shadow: 10px 12px 0 rgba(112, 64, 31, 0.16);
  --shadow-strong: 12px 14px 0 rgba(112, 64, 31, 0.24);
  --frame-cream: #fff3cf;
  --register-red: rgba(255, 83, 76, 0.34);
  --register-blue: rgba(48, 137, 198, 0.28);
  --active-accent: var(--purple);
  --wizmo-emotion-accent: var(--emotion-neutral);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family:
    "Avenir Next", Avenir, "Gill Sans", "Trebuchet MS", Arial, sans-serif;
  background:
    linear-gradient(rgba(255, 248, 220, 0.78), rgba(255, 248, 220, 0.78)),
    repeating-linear-gradient(
      92deg,
      rgba(112, 64, 31, 0.035) 0 1px,
      transparent 1px 7px
    ),
    url("assets/sanserifa-retro/png/fluid-hero-bg.png") center top /
      min(1180px, 96vw) auto no-repeat,
    linear-gradient(135deg, #fffbed 0%, var(--cream) 48%, #fff3d0 100%);
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 16px;
  z-index: -4;
  border-radius: 38px;
  background: var(--paper-strong);
  box-shadow: inset 0 0 0 1px rgba(112, 64, 31, 0.1);
  content: "";
}

body::after {
  display: none;
  content: "";
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(
      circle at 8% 12%,
      rgba(67, 38, 17, 0.08) 0 0.7px,
      transparent 0.8px 5px
    ),
    radial-gradient(
      circle at 20% 30%,
      rgba(112, 64, 31, 0.08) 0 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 107, 95, 0.08) 0 1px,
      transparent 1px
    );
  background-size:
    11px 11px,
    18px 18px,
    24px 24px;
}

.fluid-bands {
  position: fixed;
  z-index: -3;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(8px 9px 0 rgba(112, 64, 31, 0.1));
  mask-image: radial-gradient(ellipse at center, #000 0 52%, transparent 72%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 0 52%,
    transparent 72%
  );
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.fluid-bands-right {
  top: 10vh;
  right: -12vw;
  width: min(48vw, 660px);
  height: 86vh;
  opacity: 0.42;
  background-image: url("assets/sanserifa-retro/png/fluid-bands-right.png");
  background-position: right center;
}

.fluid-bands-left {
  top: 18vh;
  left: -16vw;
  width: min(44vw, 580px);
  height: 78vh;
  opacity: 0.2;
  background-image: url("assets/sanserifa-retro/png/fluid-bands-left.png");
  background-position: left center;
}

.scroll-asset {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(9px 10px 0 rgba(112, 64, 31, 0.12));
  opacity: var(--asset-opacity, 0.42);
  transform: translate3d(0, var(--parallax-y, 0px), 0)
    rotate(var(--asset-rotate, 0deg));
  will-change: transform;
}

.scroll-asset-coral {
  top: 132vh;
  left: -4vw;
  width: min(24vw, 320px);
  aspect-ratio: 1;
  --asset-opacity: 0.2;
  --asset-rotate: -16deg;
  background-image: url("assets/sanserifa-retro/png/blob-coral.png");
}

.scroll-asset-mustard {
  top: 176vh;
  right: 5vw;
  width: min(19vw, 260px);
  aspect-ratio: 1;
  --asset-opacity: 0.2;
  --asset-rotate: 18deg;
  background-image: url("assets/sanserifa-retro/png/blob-mustard.png");
}

.scroll-asset-olive {
  top: 324vh;
  right: -6vw;
  width: min(27vw, 360px);
  aspect-ratio: 1;
  --asset-opacity: 0.18;
  --asset-rotate: -8deg;
  background-image: url("assets/sanserifa-retro/png/blob-olive.png");
}

.scroll-asset-pink {
  top: 430vh;
  left: 6vw;
  width: min(22vw, 300px);
  aspect-ratio: 1;
  --asset-opacity: 0.16;
  --asset-rotate: 10deg;
  background-image: url("assets/sanserifa-retro/png/blob-pink.png");
}

.scroll-asset-purple {
  top: 540vh;
  right: 12vw;
  width: min(25vw, 340px);
  aspect-ratio: 1;
  --asset-opacity: 0.18;
  --asset-rotate: -22deg;
  background-image: url("assets/sanserifa-retro/png/blob-purple.png");
}

.retro-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 18px 16px;
  border: 1px solid rgba(112, 64, 31, 0.22);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(
    rgba(255, 248, 220, 0.94),
    rgba(255, 248, 220, 0.68)
  );
  box-shadow: 0 6px 0 rgba(112, 64, 31, 0.1);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  will-change: transform;
}

.is-header-hidden .retro-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% - 16px));
}

.brand {
  color: var(--coral);
  font-family: "Amerga", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 0.86;
  text-decoration: none;
}

.retro-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px 16px;
  padding: 8px;
  border: 1px solid rgba(112, 64, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 236, 0.35);
}

.retro-nav a,
.retro-button,
.contact-links a,
.project-card a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  color: var(--brown);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.retro-nav a {
  min-width: 0;
  padding: 0 18px;
}

.retro-nav a:hover,
.retro-nav a.is-active,
.retro-button:hover,
.contact-links a:hover,
.project-card a:hover {
  color: #fffdf3;
  background: var(--active-accent);
  border-color: var(--active-accent);
  box-shadow: 4px 5px 0
    color-mix(in srgb, var(--active-accent), transparent 62%);
  transform: translateY(-2px);
}

.section-shell {
  position: relative;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) 24px;
}

.tv-era {
  padding-top: clamp(10px, 2vw, 28px);
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(28px, 4.5vw, 66px);
  align-items: start;
  isolation: isolate;
}

.tv-era::before,
.tv-era::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.tv-era::before {
  top: clamp(-12px, 2vw, 36px);
  right: -3vw;
  z-index: -2;
  width: min(68vw, 920px);
  height: min(64vw, 760px);
  background:
    url("assets/sanserifa-retro/png/fluid-bands-right.png") right center /
      contain no-repeat,
    url("assets/sanserifa-retro/png/fluid-bands-left.png") left bottom / 48%
      auto no-repeat;
  opacity: 0.78;
  filter: drop-shadow(13px 14px 0 rgba(112, 64, 31, 0.13));
  transform: rotate(0.5deg);
}

.tv-era::after {
  top: clamp(88px, 13vw, 150px);
  right: min(3vw, 36px);
  z-index: -1;
  width: min(48vw, 560px);
  aspect-ratio: 1.8;
  border: 4px solid rgba(112, 64, 31, 0.2);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  opacity: 0.56;
  transform: rotate(10deg);
  box-shadow:
    22px 0 0 rgba(255, 107, 95, 0.16),
    44px 0 0 rgba(247, 201, 87, 0.18),
    66px 0 0 rgba(118, 82, 200, 0.12);
}

.tv-era-copy {
  display: grid;
  gap: clamp(56px, 8vw, 104px);
  min-width: 0;
}

.showcase {
  display: grid;
  min-height: calc(100vh - 96px);
  grid-template-columns: minmax(300px, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(28px, 4.5vw, 66px);
  align-items: center;
  padding-top: clamp(6px, 1.4vw, 18px);
}

.tv-era .showcase {
  display: block;
  min-height: calc(100vh - 118px);
}

.showcase::before,
.showcase::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  content: "";
}

.showcase::before {
  top: 8%;
  right: 32%;
  width: min(22vw, 280px);
  aspect-ratio: 1.6;
  background: url("assets/sanserifa-retro/png/blob-mustard.png") center /
    contain no-repeat;
  transform: rotate(-18deg);
  opacity: 0.22;
  animation: blob-drift 13s ease-in-out infinite reverse;
}

.showcase::after {
  right: 4%;
  bottom: 7%;
  width: min(30vw, 390px);
  aspect-ratio: 1.25;
  background: url("assets/sanserifa-retro/png/blob-pink.png") center / contain
    no-repeat;
  opacity: 0.18;
  animation: blob-drift 16s ease-in-out infinite;
}

.showcase-copy {
  display: grid;
  gap: clamp(24px, 5vh, 42px);
}

.scroll-scene {
  display: flex;
  min-height: min(760px, calc(100vh - 150px));
  flex-direction: column;
  justify-content: center;
}

.showcase .scroll-scene {
  min-height: auto;
}

.scroll-scene.compact {
  min-height: min(620px, calc(88vh - 110px));
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(112, 64, 31, 0.16);
  border-radius: 28px;
  background: rgba(255, 252, 236, 0.48);
  box-shadow: var(--shadow);
}

.legacy-channel-copy {
  display: none;
}

.channel-guide {
  position: relative;
  display: grid;
  gap: 13px;
  max-width: 620px;
  padding: clamp(16px, 2.2vw, 22px);
  border: 3px solid var(--brown);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 107, 95, 0.12), transparent 34%),
    rgba(255, 252, 236, 0.68);
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}

.channel-copy {
  display: grid;
  gap: 8px;
  color: var(--brown);
}

.channel-copy strong {
  color: var(--active-accent);
  font-family: "Amerga", Georgia, serif;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 0.9;
}

.channel-copy span {
  max-width: 48ch;
  color: rgba(67, 38, 17, 0.82);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.32;
}

.channel-list {
  display: grid;
  gap: 10px;
}

.channel-button {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border: 2px solid var(--brown);
  border-radius: 4px;
  color: var(--brown);
  background: rgba(255, 248, 220, 0.76);
  text-decoration: none;
  box-shadow:
    inset 0 -5px 0 rgba(112, 64, 31, 0.08),
    4px 5px 0 rgba(112, 64, 31, 0.16);
  transform: rotate(var(--channel-tilt, -1deg));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.channel-button span {
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.channel-button strong {
  font-family: "Amerga", Georgia, serif;
  font-size: clamp(1.55rem, 2.45vw, 2.1rem);
  font-weight: 400;
  line-height: 0.86;
}

.channel-button:hover,
.channel-button:focus-visible,
.channel-button.is-active {
  border-color: var(--active-accent);
  background: color-mix(in srgb, var(--active-accent), #fff8dc 78%);
  box-shadow:
    inset 0 -5px 0 rgba(112, 64, 31, 0.12),
    6px 7px 0 color-mix(in srgb, var(--active-accent), transparent 72%);
  transform: translateY(-2px) rotate(0.6deg);
}

.channel-button:nth-child(2) {
  --channel-tilt: 0.9deg;
}

.channel-button:nth-child(3) {
  --channel-tilt: -0.35deg;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--olive);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--active-accent);
  font-family: "Amerga", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  background:
    linear-gradient(
      180deg,
      transparent 0 34%,
      rgba(255, 248, 220, 0.78) 39% 43%,
      transparent 48% 100%
    ),
    repeating-linear-gradient(
      180deg,
      var(--active-accent) 0 5px,
      color-mix(in srgb, var(--active-accent), var(--brown) 34%) 5px 7px,
      var(--active-accent) 7px 10px
    );
  background-size:
    100% 230%,
    100% 14px;
  background-position:
    0 -120%,
    0 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-vhs-scan 1.65s linear infinite;
  text-shadow:
    1px 0 0 rgba(255, 83, 76, 0.16),
    -1px 0 0 rgba(48, 137, 198, 0.14);
}

h1 {
  max-width: 8.6ch;
  margin-bottom: 24px;
  font-size: clamp(4.8rem, 8.7vw, 8.6rem);
  line-height: 0.82;
}

.showcase h1 {
  max-width: 11.5ch;
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 5.2vw, 5.8rem);
}

.hero-title-brand {
  display: block;
}

.hero-title-name {
  display: block;
  color: var(--brown);
  font-family: Bahnschrift, Montserrat, "Avenir Next", Avenir, "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(0.92rem, 1.15vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-text-fill-color: currentColor;
  background: none;
  text-shadow: none;
  animation: none;
}

.showcase .lead {
  max-width: 38ch;
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.34;
}

.showcase p:not(.eyebrow):not(.lead) {
  max-width: 48ch;
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  line-height: 1.5;
}

.showcase .hero-actions {
  margin-top: 18px;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 7vw, 7rem);
  line-height: 0.86;
}

h3 {
  margin-bottom: 10px;
  color: var(--brown);
  font-family: "Amerga", Georgia, serif;
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  font-weight: 400;
  line-height: 0.95;
}

p {
  color: rgba(67, 38, 17, 0.86);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.62;
}

.lead {
  color: var(--coral);
  font-size: clamp(1.18rem, 2.1vw, 1.65rem);
  font-weight: 500;
  line-height: 1.32;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.retro-button,
.contact-links a,
.project-card a {
  padding: 0 20px 0 28px;
  background: rgba(255, 252, 236, 0.52);
}

.retro-button span:last-child {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.retro-button.secondary {
  border-color: rgba(112, 64, 31, 0.28);
}

.retro-button.small {
  min-height: 38px;
  font-size: 0.78rem;
}

.text-link {
  color: var(--active-accent);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration-thickness: 2px;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.tv-composition {
  position: sticky;
  top: 112px;
  display: grid;
  min-width: 0;
  min-height: min(820px, calc(100vh - 118px));
  place-items: center;
}

.tv-composition::before,
.tv-composition::after {
  position: absolute;
  display: none;
  z-index: -1;
  width: clamp(116px, 12vw, 156px);
  height: clamp(520px, 72vh, 680px);
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  filter: drop-shadow(10px 12px 0 rgba(112, 64, 31, 0.12));
  transition: opacity 180ms ease;
}

.tv-composition::before {
  left: max(-6vw, -72px);
  top: 6%;
  background-image: url("assets/sanserifa-retro/png/fluid-bands-left.png");
  opacity: 0.52;
  transform: rotate(-5deg);
}

.tv-composition::after {
  right: max(-5vw, -64px);
  top: -5%;
  background-image: url("assets/sanserifa-retro/png/fluid-bands-right.png");
  opacity: 0.76;
  transform: rotate(2deg);
}

.retro-tv {
  position: relative;
  width: min(940px, 108%);
  aspect-ratio: 1062 / 1016;
  filter: drop-shadow(14px 18px 0 rgba(112, 64, 31, 0.22));
  isolation: isolate;
  animation: tv-idle 7s ease-in-out infinite;
}

.retro-tv::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: url("assets/sanserifa-retro/png/tv canvas maior.png") center /
    contain no-repeat;
  content: "";
}

.tv-button-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: url("assets/sanserifa-retro/png/botoes.png") center / contain
    no-repeat;
}

.tv-hotspot {
  position: absolute;
  width: var(--size, 7%);
  aspect-ratio: 1;
  --control-accent: var(--wizmo-emotion-accent);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.tv-hotspot:disabled {
  cursor: default;
  pointer-events: none;
}

.tv-hotspot::after {
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  content: "";
  opacity: 0;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--control-accent), #fff8dc 54%),
    0 0 24px color-mix(in srgb, var(--control-accent), transparent 34%);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.tv-hotspot:hover::after,
.tv-hotspot:focus-visible::after {
  opacity: 1;
  transform: scale(1.08);
}

.tv-hotspot:focus-visible {
  outline: none;
}

.tv-hotspot[data-wizmo-control="neutral"] {
  --control-accent: var(--emotion-neutral);
}

.tv-hotspot[data-wizmo-control="smile"],
.tv-hotspot[data-wizmo-control="jump"],
.tv-hotspot[data-wizmo-control="wiggle"] {
  --control-accent: var(--emotion-happy);
}

.tv-hotspot[data-wizmo-control="angry"] {
  --control-accent: var(--emotion-angry);
}

.tv-hotspot[data-wizmo-control="sad"] {
  --control-accent: var(--emotion-sad);
}

.tv-hotspot-left-top {
  left: 8.1%;
  top: 20.2%;
  --size: 8.2%;
}

.tv-hotspot-left-bottom {
  left: 8.3%;
  top: 34.5%;
  --size: 6.7%;
}

.tv-hotspot-right-top {
  left: 89.8%;
  top: 19.5%;
  --size: 7.7%;
}

.tv-hotspot-right-second {
  left: 89.8%;
  top: 26.6%;
  --size: 6.6%;
}

.tv-hotspot-right-third {
  left: 89.8%;
  top: 34.1%;
  --size: 6.6%;
}

.tv-hotspot-right-bottom {
  left: 89.8%;
  top: 41.7%;
  --size: 7.3%;
}

.antenna {
  display: none;
}

.tv-screen {
  position: absolute;
  left: 18.93%;
  top: 14.27%;
  z-index: 1;
  width: 60.17%;
  height: 45.37%;
  overflow: hidden;
  border: 0;
  border-radius: 12% / 15%;
  background: var(--purple);
  box-shadow:
    inset 0 0 34px rgba(67, 38, 17, 0.38),
    inset 0 0 78px rgba(255, 252, 236, 0.2);
}

.tv-screen::before,
.tv-screen::after {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  content: "";
}

.tv-screen::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.06) 50%),
    radial-gradient(
      ellipse at 50% 45%,
      transparent 52%,
      rgba(0, 0, 0, 0.18) 100%
    );
  background-size:
    100% 4px,
    100% 100%;
  opacity: 0.58;
}

.tv-screen::after {
  background:
    radial-gradient(
      ellipse at 34% 22%,
      rgba(255, 255, 255, 0.34),
      transparent 28%
    ),
    linear-gradient(
      100deg,
      transparent 0 46%,
      rgba(255, 255, 255, 0.18) 47% 51%,
      transparent 52%
    );
  opacity: 0.72;
}

.tv-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tv-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.tv-slide video,
.tv-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-slide .tv-intro-video {
  display: block;
  object-fit: cover;
  object-position: center;
  background: #f3d6a8;
}

.tv-label-home {
  display: none;
}

.screen-landscape {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #8a50bd 0 50%, #f6b2aa 50% 100%);
}

.sun,
.cloud,
.spark,
.wave {
  position: absolute;
}

.sun {
  left: 16%;
  top: 27%;
  width: 31%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f15b35;
}

.cloud {
  top: 18%;
  left: 52%;
  width: 29%;
  height: 13%;
  border-radius: 999px;
  background: var(--pink);
  box-shadow:
    -28px 10px 0 var(--pink),
    24px 9px 0 var(--pink);
}

.spark {
  width: 38px;
  aspect-ratio: 1;
  background: var(--mustard);
  clip-path: polygon(
    50% 0,
    61% 38%,
    100% 50%,
    61% 62%,
    50% 100%,
    39% 62%,
    0 50%,
    39% 38%
  );
}

.spark.one {
  top: 30%;
  right: 16%;
}

.spark.two {
  top: 17%;
  left: 14%;
  width: 22px;
}

.wave {
  left: -10%;
  right: -10%;
  height: 28%;
  border-radius: 50% 50% 0 0;
}

.wave.pink {
  bottom: 23%;
  background: var(--pink);
  transform: rotate(-4deg);
}

.wave.mustard {
  bottom: 8%;
  background: var(--mustard);
  transform: rotate(5deg);
}

.wave.olive {
  bottom: -6%;
  background: var(--olive);
  transform: rotate(-2deg);
}

.tv-label,
.tv-project-overlay,
.tv-contact-card,
.tv-pill {
  position: absolute;
  z-index: 5;
}

.tv-label {
  left: 8%;
  bottom: 8%;
  display: grid;
  gap: 4px;
  max-width: 68%;
  color: #fff8dc;
  text-shadow: 0 2px 8px rgba(67, 38, 17, 0.35);
}

.tv-label strong {
  font-family: "Amerga", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.85;
}

.tv-label span,
.tv-project-overlay span,
.tv-contact-card span,
.tv-pill {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-slide-wizmo {
  background:
    radial-gradient(
      circle at 50% 48%,
      color-mix(in srgb, var(--wizmo-emotion-accent), #fff8dc 42%),
      transparent 38%
    ),
    radial-gradient(
      circle at 72% 24%,
      color-mix(in srgb, var(--emotion-happy), transparent 60%),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #ffe6a6,
      color-mix(in srgb, var(--wizmo-emotion-accent), #fff8dc 54%) 56%,
      #fff3d0
    );
}

.wizmo-rig-preview {
  position: relative;
  width: min(48%, 230px);
  aspect-ratio: 347 / 393;
  --wizmo-look-x: 0px;
  --wizmo-look-y: 0px;
  --wizmo-head-tilt: 0deg;
  --wizmo-eye-base-x: 0px;
  --wizmo-eye-base-y: -4px;
  --wizmo-emotion-color: var(--emotion-neutral);
  filter: drop-shadow(8px 10px 0 rgba(67, 38, 17, 0.18));
  animation: float 5s ease-in-out infinite;
  cursor: pointer;
}

.wizmo-rig-preview::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background: var(--wizmo-emotion-color);
  opacity: var(--wizmo-emotion-opacity, 0);
  mix-blend-mode: color;
  -webkit-mask: url("assets/wizmo-head.png") center / contain no-repeat;
  mask: url("assets/wizmo-head.png") center / contain no-repeat;
  transition:
    background 160ms ease,
    opacity 160ms ease;
}

.wizmo-rig-preview.is-smile {
  --wizmo-emotion-color: var(--emotion-happy);
  --wizmo-emotion-opacity: 0.72;
}

.wizmo-rig-preview.is-angry {
  --wizmo-emotion-color: var(--emotion-angry);
  --wizmo-emotion-opacity: 0.88;
}

.wizmo-rig-preview.is-sad {
  --wizmo-emotion-color: var(--emotion-sad);
  --wizmo-emotion-opacity: 0.74;
}

.wizmo-rig-preview.is-jumping {
  animation: wizmo-jump 700ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

.wizmo-rig-preview.is-wiggling {
  animation: wizmo-wiggle 720ms ease-in-out both;
}

.tv-wizmo-rig {
  width: min(48%, 230px);
}

.wizmo-rig-head,
.wizmo-rig-eye {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wizmo-rig-head {
  z-index: 1;
  object-fit: contain;
  transform: rotate(var(--wizmo-head-tilt));
  transition:
    filter 160ms ease,
    transform 120ms ease-out;
}

.wizmo-rig-preview.is-smile .wizmo-rig-head {
  filter: saturate(1.12) brightness(1.04) contrast(1.03);
}

.wizmo-rig-preview.is-angry .wizmo-rig-head {
  filter: saturate(1.34) brightness(1.02) contrast(1.08);
}

.wizmo-rig-preview.is-sad .wizmo-rig-head {
  filter: saturate(1.18) brightness(1.03) contrast(1.04);
}

.wizmo-rig-eye {
  z-index: 3;
  object-fit: cover;
  opacity: 0.98;
  transform: translate3d(
      calc(var(--wizmo-look-x) + var(--wizmo-eye-base-x)),
      calc(var(--wizmo-look-y) + var(--wizmo-eye-base-y)),
      0
    )
    scale(1.34);
  transition: transform 120ms ease-out;
}

.wizmo-rig-eye-right {
  z-index: 4;
}

.tv-logo {
  position: absolute;
  z-index: 6;
}

.wizmo-logo {
  left: 8%;
  bottom: 8%;
  width: min(42%, 260px);
  filter: drop-shadow(0 4px 0 rgba(67, 38, 17, 0.16));
}

.tv-pill {
  right: 8%;
  top: 8%;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #fffdf3;
  background: var(--wizmo-emotion-accent);
  box-shadow: 4px 5px 0
    color-mix(in srgb, var(--wizmo-emotion-accent), transparent 58%);
}

.tv-project-overlay {
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  color: #fffdf3;
  background: linear-gradient(transparent, rgba(67, 38, 17, 0.72));
}

.tv-project-overlay img {
  max-width: min(48%, 230px);
  max-height: 86px;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(67, 38, 17, 0.2));
}

.tv-slide-work {
  background: #ad2323;
}

.tv-slide-work .tv-project-image {
  object-fit: contain;
  padding: 8px;
}

.tv-slide-statphys {
  background: #fffdf3;
}

.tv-slide-statphys .tv-project-image {
  object-fit: contain;
  padding: 16px;
  background: linear-gradient(135deg, #fffdf3, #d9f2e7);
}

.tv-slide-statphys .tv-project-overlay {
  background: linear-gradient(transparent, rgba(22, 48, 92, 0.82));
}

.tv-slide-contact {
  background:
    radial-gradient(circle at 72% 22%, var(--mustard) 0 12%, transparent 13%),
    radial-gradient(circle at 22% 72%, var(--pink) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--olive), var(--coral));
}

.tv-contact-card {
  display: grid;
  gap: 12px;
  width: min(78%, 360px);
  padding: 26px;
  border: 1px solid rgba(255, 248, 220, 0.5);
  border-radius: 26px;
  color: #fffdf3;
  background: rgba(112, 64, 31, 0.42);
  box-shadow: 7px 8px 0 rgba(67, 38, 17, 0.16);
}

.tv-contact-card strong {
  font-family: "Amerga", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.82;
}

.tv-slide-cv {
  background:
    linear-gradient(135deg, rgba(118, 82, 200, 0.38), rgba(247, 201, 87, 0.34)),
    #fffdf3;
}

.tv-cv-preview {
  width: 54%;
  max-height: 86%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 7px 8px 0 rgba(67, 38, 17, 0.2);
  transform: rotate(-2deg);
}

.tv-controls {
  display: none;
}

.tv-controls span {
  width: clamp(17px, 2.4vw, 26px);
  aspect-ratio: 1;
  border: 3px solid #f3dd9f;
  border-radius: 50%;
  background: var(--brown);
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.24);
  opacity: 0.7;
}

.tv-controls span.is-active {
  background: var(--active-accent);
  opacity: 1;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.project-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.project-overview::before {
  position: absolute;
  inset: 38px 0 auto;
  z-index: -1;
  height: 70%;
  border-block: 4px solid rgba(112, 64, 31, 0.22);
  background: repeating-linear-gradient(
    -8deg,
    rgba(247, 201, 87, 0.22) 0 18px,
    rgba(255, 107, 95, 0.12) 18px 32px,
    rgba(118, 82, 200, 0.12) 32px 48px,
    transparent 48px 68px
  );
  opacity: 0.62;
  content: "";
  transform: rotate(-0.7deg);
}

.project-overview .project-grid {
  grid-column: 1 / -1;
}

.more-projects-heading {
  margin-bottom: 0;
}

.more-projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-design-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.site-design-section::before {
  position: absolute;
  inset: 8% auto auto 4%;
  z-index: -1;
  width: min(30vw, 360px);
  aspect-ratio: 1;
  background: url("assets/sanserifa-retro/png/blob-coral.png") center / contain
    no-repeat;
  opacity: 0.26;
  content: "";
  animation: blob-drift 15s ease-in-out infinite reverse;
}

.site-design-copy {
  max-width: 700px;
}

.site-design-copy h2 {
  max-width: 9.4ch;
}

.design-reference-grid {
  display: grid;
  gap: 16px;
}

.design-reference-grid article {
  position: relative;
  display: grid;
  min-height: 170px;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 2px solid rgba(112, 64, 31, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(112, 64, 31, 0.1) 0 1px, transparent 1px 100%),
    rgba(255, 252, 236, 0.74);
  background-size:
    18px 100%,
    auto;
  box-shadow: var(--shadow);
}

.design-reference-grid article span {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fffdf3;
  background: var(--active-accent);
  font-family: "Amerga", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.design-reference-grid h3 {
  margin-bottom: 8px;
}

.design-reference-grid p {
  grid-column: 2;
  font-size: 0.98rem;
}

.project-grid,
.detail-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card,
.detail-cards article,
.cv-card,
.statphys-panel,
.media-stack,
.organic-panel {
  border: 3px solid var(--brown);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.5),
      rgba(244, 184, 179, 0.16)
    ),
    var(--paper);
  box-shadow: var(--shadow);
}

.project-card {
  position: relative;
  display: grid;
  min-height: 100%;
  grid-template-rows: 255px 1fr;
  overflow: clip;
  border-radius: 4px;
  border-width: 4px;
  --channel-accent: var(--coral);
  --channel-secondary: var(--mustard);
  --channel-deep: var(--brown);
  --vhs-stripe-1: var(--mustard);
  --vhs-stripe-2: var(--coral);
  --vhs-stripe-3: #e84855;
  --vhs-stripe-4: var(--purple);
  background:
    linear-gradient(90deg, rgba(112, 64, 31, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(
      180deg,
      rgba(255, 252, 236, 0.98) 0 58%,
      color-mix(in srgb, var(--channel-accent), #fff8dc 90%) 100%
    );
  background-size:
    18px 100%,
    auto;
  box-shadow: var(--shadow-strong);
  transform: rotate(var(--card-tilt, -0.4deg));
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.program-slot {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 18px;
  border: 2px solid var(--frame-cream);
  border-radius: 2px;
  color: #fffdf3;
  background: var(--channel-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 5px 6px 0 rgba(112, 64, 31, 0.18);
  transform: rotate(-3deg);
}

.project-card::before,
.project-card::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.project-card::before {
  left: 0;
  right: 0;
  top: 94px;
  z-index: 0;
  height: 112px;
  background: linear-gradient(
    180deg,
    var(--vhs-stripe-1) 0 24%,
    var(--vhs-stripe-2) 24% 48%,
    var(--vhs-stripe-3) 48% 72%,
    var(--vhs-stripe-4) 72% 100%
  );
  opacity: 0.92;
}

.project-card::after {
  right: -44px;
  top: 126px;
  z-index: 1;
  width: 158px;
  height: 134px;
  border-radius: 28px 0 0 28px;
  background:
    radial-gradient(
      circle at 24px 50%,
      rgba(255, 252, 236, 0.18) 0 16px,
      transparent 17px
    ),
    linear-gradient(135deg, #432611, #70401f);
  box-shadow: -5px 6px 0 rgba(112, 64, 31, 0.18);
  transform: skewX(-14deg);
  opacity: 0.95;
}

.project-card img {
  position: relative;
  z-index: 2;
  width: min(58%, 300px);
  height: 168px;
  margin: 56px auto 28px;
  object-fit: contain;
  padding: 10px;
  border: 4px solid var(--frame-cream);
  outline: 3px solid var(--brown);
  outline-offset: -1px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 252, 236, 0.88),
      color-mix(in srgb, var(--channel-secondary), #fff8dc 70%)
    ),
    var(--frame-cream);
  box-shadow: 7px 8px 0 rgba(112, 64, 31, 0.2);
  transform: translate(2px, -2px) rotate(-0.4deg);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.project-card div {
  position: relative;
  z-index: 2;
  padding: 34px 28px 30px;
}

.project-card[data-retro-state="work"] {
  --channel-accent: #d7352a;
  --channel-secondary: #fff1bf;
  --channel-deep: #8e1f1a;
  --vhs-stripe-1: #f7c957;
  --vhs-stripe-2: #ff6b5f;
  --vhs-stripe-3: #d7352a;
  --vhs-stripe-4: #8e1f1a;
  --card-tilt: -0.9deg;
}

.project-card[data-retro-state="statphys"] {
  --channel-accent: #2a8f8b;
  --channel-secondary: #7cd6b4;
  --channel-deep: #164c70;
  --vhs-stripe-1: #d9f2e7;
  --vhs-stripe-2: #7cd6b4;
  --vhs-stripe-3: #2a8f8b;
  --vhs-stripe-4: #164c70;
  --card-tilt: 0.65deg;
}

.project-card[data-retro-state="site"] {
  --channel-accent: var(--purple);
  --channel-secondary: var(--pink);
  --channel-deep: #5d3daa;
  --vhs-stripe-1: #f7c957;
  --vhs-stripe-2: #86a94a;
  --vhs-stripe-3: #f4b8b3;
  --vhs-stripe-4: #70401f;
  --card-tilt: -0.2deg;
}

.project-card:hover,
.project-card:focus-within {
  background:
    linear-gradient(90deg, rgba(112, 64, 31, 0.09) 0 1px, transparent 1px 100%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--channel-secondary), #fff8dc 78%) 0 58%,
      color-mix(in srgb, var(--channel-accent), #fff8dc 84%) 100%
    );
  box-shadow: 8px 9px 0 color-mix(in srgb, var(--channel-deep), transparent 58%);
  transform: translateY(-5px) rotate(0.45deg);
}

.project-card:hover img,
.project-card:focus-within img {
  background: linear-gradient(
    135deg,
    var(--frame-cream),
    color-mix(in srgb, var(--channel-accent), #fff8dc 72%)
  );
  transform: translate(-1px, -5px) rotate(1deg);
}

.project-card[data-retro-state="work"] img {
  clip-path: none;
}

.project-card[data-retro-state="statphys"] img {
  width: min(74%, 390px);
  border-radius: 999px;
}

.project-card p,
.detail-cards p,
.cv-card p {
  font-size: 0.98rem;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  isolation: isolate;
}

.project-section::before {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.project-copy {
  max-width: 640px;
  min-width: 0;
}

.wizmo-section {
  grid-template-areas:
    "copy"
    "panel"
    "cards";
  grid-template-columns: 1fr;
  align-items: start;
}

.wizmo-section::before {
  top: 10%;
  right: 2%;
  width: min(48vw, 560px);
  aspect-ratio: 1.4;
  background:
    linear-gradient(
      122deg,
      transparent 0 48%,
      rgba(255, 248, 220, 0.72) 48% 54%,
      transparent 54%
    ),
    conic-gradient(from 28deg, #7652c8, #ff4f9a, #f7c957, #7652c8);
  clip-path: polygon(
    4% 32%,
    32% 0,
    58% 18%,
    94% 8%,
    84% 50%,
    100% 84%,
    56% 76%,
    28% 100%,
    18% 66%,
    0 58%
  );
  opacity: 0.24;
  filter: drop-shadow(12px 13px 0 rgba(112, 64, 31, 0.14));
  transform: rotate(-8deg);
}

.wizmo-section .project-copy {
  grid-area: copy;
}

.wizmo-panel {
  grid-area: panel;
}

.detail-cards.wide {
  grid-area: cards;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.organic-panel {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  border-radius: 38% 62% 54% 46% / 46% 40% 60% 54%;
  background:
    linear-gradient(
      142deg,
      transparent 0 38%,
      rgba(118, 82, 200, 0.18) 38% 41%,
      transparent 41%
    ),
    conic-gradient(
      from 22deg at 60% 46%,
      rgba(118, 82, 200, 0.34),
      rgba(255, 79, 154, 0.2),
      rgba(247, 201, 87, 0.3),
      rgba(118, 82, 200, 0.34)
    ),
    radial-gradient(
      circle at 50% 46%,
      rgba(247, 201, 87, 0.4),
      transparent 38%
    ),
    rgba(255, 239, 200, 0.84);
  box-shadow: var(--shadow-strong);
}

.organic-panel::before {
  position: absolute;
  inset: 9%;
  border: 4px solid rgba(255, 248, 220, 0.72);
  clip-path: polygon(12% 0, 100% 8%, 84% 100%, 0 88%);
  content: "";
  pointer-events: none;
  transform: rotate(5deg);
}

.project-wizmo-rig {
  width: min(360px, 72%);
  filter: drop-shadow(10px 12px 0 rgba(112, 64, 31, 0.16));
}

.speech-bubble {
  position: absolute;
  top: 12%;
  left: 7%;
  max-width: 230px;
  padding: 24px 28px;
  border-radius: 42% 58% 50% 50% / 46% 48% 52% 54%;
  color: #fff;
  font-weight: 900;
  line-height: 1.28;
  background: var(--coral);
  box-shadow: 7px 8px 0 rgba(112, 64, 31, 0.2);
  transform: rotate(-4deg);
}

.wizmo-panel .retro-button {
  position: absolute;
  right: 7%;
  bottom: 9%;
  background: var(--olive);
  color: #fffdf3;
}

.detail-cards article {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.detail-cards article h3 {
  max-width: 100%;
  font-size: clamp(1.75rem, 2.1vw, 2.25rem);
  line-height: 0.96;
}

.detail-cards article p {
  max-width: 32ch;
  line-height: 1.48;
}

.detail-cards article[data-wizmo-expression] {
  cursor: pointer;
}

.detail-cards article[data-wizmo-expression]:hover,
.detail-cards article[data-wizmo-expression]:focus-visible,
.detail-cards article[data-wizmo-expression].is-previewing {
  border-color: var(--emotion-accent, var(--active-accent));
  box-shadow:
    var(--shadow),
    0 14px 24px
      color-mix(
        in srgb,
        var(--emotion-accent, var(--active-accent)),
        transparent 78%
      );
  transform: translateY(-4px);
}

.detail-cards article[data-wizmo-expression]:focus-visible {
  outline: 3px solid
    color-mix(
      in srgb,
      var(--emotion-accent, var(--active-accent)),
      transparent 42%
    );
  outline-offset: 4px;
}

.detail-cards article[data-wizmo-expression="neutral"] {
  --emotion-accent: var(--emotion-neutral);
}

.detail-cards article[data-wizmo-expression="smile"] {
  --emotion-accent: var(--emotion-happy);
}

.detail-cards article[data-wizmo-expression="angry"] {
  --emotion-accent: var(--emotion-angry);
}

.detail-cards article[data-wizmo-expression="sad"] {
  --emotion-accent: var(--emotion-sad);
}

.detail-cards article[data-wizmo-expression="neutral"] .icon-dot {
  background: var(--emotion-neutral);
}

.detail-cards article[data-wizmo-expression="smile"] .icon-dot {
  background: var(--emotion-happy);
}

.detail-cards article[data-wizmo-expression="angry"] .icon-dot {
  background: var(--emotion-angry);
}

.detail-cards article[data-wizmo-expression="sad"] .icon-dot {
  background: var(--emotion-sad);
}

.icon-dot {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fffdf3;
  font-weight: 900;
  background: var(--olive);
}

.icon-dot.coral {
  background: var(--coral);
}

.icon-dot.mustard {
  background: #eba51d;
}

.detail-cards article[data-wizmo-expression="neutral"] .icon-dot {
  background: var(--emotion-neutral);
}

.detail-cards article[data-wizmo-expression="smile"] .icon-dot {
  background: var(--emotion-happy);
}

.detail-cards article[data-wizmo-expression="angry"] .icon-dot {
  background: var(--emotion-angry);
}

.detail-cards article[data-wizmo-expression="sad"] .icon-dot {
  background: var(--emotion-sad);
}

.media-stack {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      -8deg,
      rgba(215, 53, 42, 0.15) 0 18px,
      transparent 18px 38px
    ),
    rgba(255, 248, 220, 0.86);
  transform: rotate(0.5deg);
}

.media-stack video {
  width: 100%;
  max-height: 620px;
  border: 5px solid var(--frame-cream);
  border-radius: 4px;
  background: var(--brown);
  box-shadow: 8px 9px 0 rgba(112, 64, 31, 0.2);
}

.asset-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.asset-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--frame-cream);
  border-radius: 2px;
  background: #fffdf3;
  box-shadow: 5px 6px 0 rgba(112, 64, 31, 0.18);
}

#somos-ufba::before {
  top: 12%;
  right: 2%;
  width: min(48vw, 620px);
  height: min(34vw, 420px);
  background:
    linear-gradient(
      -8deg,
      transparent 0 15%,
      #8e1f1a 15% 31%,
      transparent 31% 40%,
      #d7352a 40% 58%,
      transparent 58% 68%,
      #fff1bf 68% 82%,
      transparent 82%
    ),
    radial-gradient(
      circle at 84% 18%,
      rgba(255, 248, 220, 0.72) 0 12%,
      transparent 13%
    );
  opacity: 0.34;
  clip-path: polygon(6% 18%, 100% 0, 92% 86%, 0 100%);
  filter: drop-shadow(12px 13px 0 rgba(112, 64, 31, 0.14));
  transform: rotate(-3deg);
}

#somos-ufba .eyebrow,
.project-card[data-retro-state="work"] .tag {
  color: #8e1f1a;
}

.statphys-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background:
    radial-gradient(
      ellipse at 72% 12%,
      transparent 0 18%,
      rgba(42, 143, 139, 0.22) 18% 19%,
      transparent 20%
    ),
    radial-gradient(
      ellipse at 76% 16%,
      transparent 0 28%,
      rgba(22, 76, 112, 0.18) 28% 29%,
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(124, 214, 180, 0.24),
      rgba(255, 252, 236, 0.82)
    );
  box-shadow: var(--shadow-strong);
}

.statphys-panel > img {
  width: 100%;
  border: 5px solid var(--frame-cream);
  border-radius: 6px;
  box-shadow: 8px 9px 0 rgba(22, 76, 112, 0.16);
}

.brand-marks {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 3px solid rgba(22, 76, 112, 0.48);
  border-radius: 6px;
  background: rgba(255, 252, 236, 0.72);
}

#statphys::before {
  top: 8%;
  left: 0;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  border: 4px solid rgba(42, 143, 139, 0.28);
  border-radius: 50%;
  opacity: 0.72;
  transform: rotate(-18deg);
  box-shadow:
    inset 0 0 0 28px rgba(124, 214, 180, 0.1),
    32px 20px 0 -8px rgba(22, 76, 112, 0.14),
    64px -16px 0 -14px rgba(42, 143, 139, 0.16);
}

#statphys .eyebrow,
.project-card[data-retro-state="statphys"] .tag {
  color: #164c70;
}

#statphys .statphys-title {
  position: relative;
  display: inline-block;
  color: #7d9b4a;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow:
    1px 0 0 rgba(255, 248, 220, 0.34),
    3px 4px 0 rgba(22, 76, 112, 0.12);
}

#statphys .statphys-title::after {
  position: absolute;
  inset: 0;
  color: transparent;
  background:
    linear-gradient(
      180deg,
      transparent 0 34%,
      rgba(255, 248, 220, 0.7) 39% 43%,
      transparent 48% 100%
    ),
    repeating-linear-gradient(
      180deg,
      #86a94a 0 5px,
      color-mix(in srgb, #86a94a, var(--brown) 34%) 5px 7px,
      #86a94a 7px 10px
    );
  background-size:
    100% 230%,
    100% 14px;
  background-position:
    0 -120%,
    0 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-vhs-scan 1.65s linear infinite;
  text-shadow:
    1px 0 0 rgba(255, 83, 76, 0.16),
    -1px 0 0 rgba(48, 137, 198, 0.14);
  pointer-events: none;
  content: attr(data-title);
}

.brand-marks span {
  color: var(--brown);
  font-weight: 800;
  line-height: 1.45;
}

.contact-cv {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
  padding-bottom: clamp(28px, 4vw, 52px);
}

.contact-copy {
  max-width: 980px;
}

.contact-links a {
  padding: 0 24px;
}

.cv-card {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cv-card .eyebrow,
.cv-card h2 {
  display: none;
}

.cv-video-link {
  position: relative;
  display: block;
  padding-top: clamp(74px, 8vw, 128px);
  margin-bottom: 22px;
  color: inherit;
  text-decoration: none;
}

.cv-hover-copy {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  width: clamp(560px, 72vw, 920px);
  height: auto;
  overflow: visible;
  fill: var(--brown);
  filter: drop-shadow(0 3px 0 rgba(255, 252, 236, 0.95));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.cv-hover-copy text {
  font-family: "Amerga", Georgia, serif;
  font-size: 60px;
  letter-spacing: 0;
}

.cv-hover-reveal {
  width: 0;
}

.cv-video-shell {
  position: relative;
  width: min(100%, 1240px);
  margin-inline: auto;
}

.cv-video-stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-items: start;
}

.cv-video-shell.is-ready .cv-video-stage {
  animation: tv-idle 7.4s ease-in-out infinite;
}

.cv-video {
  width: 100%;
  aspect-ratio: 1920 / 2935;
  height: auto;
  max-height: min(92vh, 1320px);
  object-fit: contain;
  position: relative;
  z-index: 2;
  background: transparent;
  filter: drop-shadow(0 26px 34px rgba(112, 64, 31, 0.18));
  transition:
    transform 220ms ease,
    filter 220ms ease;
  will-change: auto;
}

.cv-video-link:hover .cv-video,
.cv-video-link:focus-visible .cv-video {
  transform: translateY(-8px) scale(1.02);
  filter:
    drop-shadow(0 34px 40px rgba(112, 64, 31, 0.2))
    drop-shadow(0 0 22px rgba(247, 201, 87, 0.16));
}

.cv-video-link:hover .cv-hover-copy,
.cv-video-link:focus-visible .cv-hover-copy {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.cv-video-link:hover .cv-hover-reveal,
.cv-video-link:focus-visible .cv-hover-reveal {
  animation: cv-text-reveal 980ms steps(29, end) forwards;
}

.cv-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  animation: cv-orb-drift 11s ease-in-out infinite;
  will-change: transform;
}

.cv-orb-coral {
  top: 5%;
  left: 6%;
  width: clamp(150px, 18vw, 250px);
  aspect-ratio: 1;
  background: rgba(244, 184, 179, 0.42);
  animation-duration: 13.5s;
  animation-delay: -3s;
}

.cv-orb-mustard {
  top: 4%;
  right: 11%;
  width: clamp(120px, 13vw, 200px);
  aspect-ratio: 1;
  background: rgba(247, 201, 87, 0.46);
  animation-duration: 11.2s;
  animation-delay: -1.4s;
}

.cv-orb-olive {
  left: 12%;
  bottom: 8%;
  width: clamp(160px, 19vw, 270px);
  aspect-ratio: 1;
  background: rgba(134, 169, 74, 0.24);
  animation-duration: 14.4s;
  animation-delay: -5.2s;
}

.cv-orb-purple {
  right: 8%;
  bottom: 18%;
  width: clamp(190px, 22vw, 320px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 36% 58%, rgba(255, 252, 236, 0.72) 0 18%, transparent 18.8%),
    rgba(118, 82, 200, 0.16);
  animation-duration: 12.6s;
  animation-delay: -7s;
}

.retro-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 24px 24px;
  color: rgba(67, 38, 17, 0.62);
}

.retro-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.retro-footer span {
  color: var(--coral);
  font-size: 1.5rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes tv-idle {
  0%,
  100% {
    transform: translateY(0) rotate(-0.35deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.35deg);
  }
}

@keyframes blob-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1);
  }
  50% {
    transform: translate3d(16px, -18px, 0) rotate(5deg) scale(1.04);
  }
}

@keyframes cv-orb-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  35% {
    transform: translate3d(0, -18px, 0);
  }
  65% {
    transform: translate3d(0, 12px, 0);
  }
}

@keyframes cv-text-reveal {
  from {
    width: 0;
  }

  to {
    width: 920px;
  }
}

@keyframes wizmo-jump {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  38% {
    transform: translateY(-34px) rotate(4deg) scale(1.04);
  }
  68% {
    transform: translateY(8px) rotate(-3deg) scale(0.98);
  }
}

@keyframes wizmo-wiggle {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  16% {
    transform: translateX(-10px) rotate(-5deg);
  }
  32% {
    transform: translateX(10px) rotate(5deg);
  }
  48% {
    transform: translateX(-7px) rotate(-3deg);
  }
  64% {
    transform: translateX(7px) rotate(3deg);
  }
}

@keyframes title-vhs-scan {
  0% {
    background-position:
      0 -120%,
      0 0;
    text-shadow:
      1px 0 0 rgba(255, 83, 76, 0.16),
      -1px 0 0 rgba(48, 137, 198, 0.14);
  }

  46% {
    background-position:
      0 72%,
      0 6px;
    text-shadow:
      1px 0 0 rgba(255, 83, 76, 0.16),
      -1px 0 0 rgba(48, 137, 198, 0.14);
  }

  50% {
    background-position:
      0 84%,
      0 8px;
    text-shadow:
      2px 0 0 rgba(255, 83, 76, 0.22),
      -1px 0 0 rgba(48, 137, 198, 0.16);
  }

  54% {
    background-position:
      0 96%,
      0 9px;
    text-shadow:
      0 0 0 transparent,
      -2px 0 0 rgba(48, 137, 198, 0.18);
  }

  100% {
    background-position:
      0 220%,
      0 14px;
    text-shadow:
      1px 0 0 rgba(255, 83, 76, 0.16),
      -1px 0 0 rgba(48, 137, 198, 0.14);
  }
}

@media (max-width: 1120px) {
  .retro-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .retro-nav {
    flex-wrap: wrap;
  }

  .showcase,
  .tv-era,
  .project-section,
  .contact-cv {
    grid-template-columns: 1fr;
  }

  .showcase,
  .tv-era .showcase {
    min-height: auto;
  }

  .tv-composition {
    position: relative;
    top: auto;
    order: initial;
    justify-self: stretch;
    width: 100%;
    min-height: auto;
    padding: 24px 0 32px;
  }

  .retro-tv {
    width: min(760px, 94vw, calc((100vh - 190px) * 1.045));
    margin-inline: auto;
  }

  .tv-era::before,
  .tv-era::after {
    display: none;
  }

  .scroll-scene,
  .scroll-scene.compact {
    min-height: auto;
  }

  .project-copy {
    max-width: 820px;
  }

  .project-overview,
  .more-projects-grid,
  .site-design-section {
    grid-template-columns: 1fr;
  }

  .detail-cards.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-video-shell {
    width: min(100%, 1040px);
  }

  .cv-video-link {
    padding-top: clamp(62px, 8vw, 104px);
  }

  .cv-hover-copy {
    width: clamp(500px, 82vw, 760px);
  }

  .cv-hover-copy text {
    font-size: 54px;
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(rgba(255, 248, 220, 0.78), rgba(255, 248, 220, 0.78)),
      repeating-linear-gradient(
        92deg,
        rgba(112, 64, 31, 0.035) 0 1px,
        transparent 1px 7px
      ),
      linear-gradient(135deg, #fffbed 0%, var(--cream) 48%, #fff3d0 100%);
  }

  body::before {
    inset: 8px;
    border-radius: 24px;
  }

  body::after {
    display: none;
  }

  .fluid-bands-right {
    display: block;
    top: 42vh;
    right: -32vw;
    width: 86vw;
    opacity: 0.28;
  }

  .fluid-bands-left {
    display: block;
    top: 50vh;
    left: -38vw;
    width: 82vw;
    opacity: 0.2;
  }

  .scroll-asset {
    opacity: calc(var(--asset-opacity, 0.42) * 0.72);
  }

  .scroll-asset,
  .tv-era::before,
  .tv-era::after,
  .showcase::before,
  .showcase::after {
    display: none;
  }

  .scroll-asset-coral,
  .scroll-asset-olive,
  .scroll-asset-purple {
    width: 34vw;
  }

  .scroll-asset-mustard,
  .scroll-asset-pink {
    width: 32vw;
  }

  .scroll-asset-coral,
  .scroll-asset-pink {
    left: 4vw;
  }

  .scroll-asset-mustard,
  .scroll-asset-olive,
  .scroll-asset-purple {
    right: 6vw;
  }

  .retro-header {
    width: min(100% - 20px, 680px);
    padding: 18px 10px 10px;
    overflow: hidden;
  }

  .retro-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    contain: paint;
  }

  .retro-nav a {
    min-width: max-content;
    padding-inline: 18px;
  }

  .section-shell {
    width: min(100% - 20px, 680px);
    padding: 18px 14px 54px;
  }

  .tv-era {
    gap: 24px;
  }

  .showcase {
    min-height: auto;
    padding-top: 0;
  }

  .tv-era .showcase {
    min-height: auto;
  }

  .showcase-copy {
    max-width: min(100%, 420px);
    gap: 18px;
  }

  .showcase h1 {
    display: grid;
    gap: 4px;
    max-width: none;
    margin-bottom: 8px;
    line-height: 0.88;
  }

  .hero-title-brand {
    display: block;
    font-size: clamp(3.3rem, 15vw, 4.8rem);
  }

  .hero-title-name {
    display: block;
    color: var(--brown);
    font-family: Bahnschrift, Montserrat, "Avenir Next", Avenir, "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(0.98rem, 4.2vw, 1.18rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    -webkit-text-fill-color: currentColor;
    background: none;
    text-shadow: none;
  }

  .showcase .lead {
    max-width: none;
    font-size: 1rem;
  }

  .showcase p:not(.eyebrow):not(.lead) {
    max-width: none;
    font-size: 0.88rem;
  }

  .wizmo-section::before {
    display: none;
  }

  h1 {
    max-width: none;
    margin-bottom: 8px;
    font-size: clamp(3.1rem, 13vw, 4.25rem);
  }

  h2 {
    font-size: clamp(3.2rem, 16vw, 5.4rem);
  }

  .retro-tv {
    width: min(100%, 520px, calc((100vh - 170px) * 1.045));
    margin-inline: auto;
    cursor: pointer;
    transition:
      width 260ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 260ms ease;
  }

  .tv-composition {
    position: relative;
    order: initial;
    top: auto;
    justify-items: center;
    width: 100%;
    margin-inline: auto;
    padding: 0 0 6px;
  }

  .tv-composition::before,
  .tv-composition::after {
    display: none;
  }

  .tv-slide[data-tv-slide="home"] {
    background:
      radial-gradient(
        circle at 50% 46%,
        rgba(247, 201, 87, 0.34),
        transparent 36%
      ),
      linear-gradient(
        135deg,
        rgba(118, 82, 200, 0.16),
        rgba(255, 248, 220, 0.92)
      );
  }

  .tv-slide[data-tv-slide="home"] .tv-label {
    display: none;
  }

  .showcase .hero-actions {
    display: none;
  }

  .tv-era-copy {
    gap: 24px;
    padding-top: 0;
  }

  .project-section::before,
  .organic-panel::before,
  #somos-ufba::before,
  #statphys::before {
    display: none;
  }

  .organic-panel {
    min-height: 360px;
    overflow: hidden;
    border-radius: 28px;
    background:
      radial-gradient(
        circle at 50% 38%,
        rgba(247, 201, 87, 0.32),
        transparent 34%
      ),
      linear-gradient(
        145deg,
        rgba(118, 82, 200, 0.2),
        rgba(255, 248, 220, 0.84)
      );
  }

  .speech-bubble {
    top: 8%;
    left: 7%;
    max-width: 190px;
    padding: 16px 18px;
    font-size: 0.9rem;
  }

  .media-stack,
  .statphys-panel {
    gap: 12px;
    padding: 10px;
    border-width: 2px;
    border-radius: 8px;
    transform: none;
    box-shadow: 5px 6px 0 rgba(112, 64, 31, 0.14);
  }

  .media-stack video {
    max-height: 68vh;
    border-width: 3px;
    box-shadow: none;
  }

  .asset-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .asset-strip img {
    flex: 0 0 72%;
    aspect-ratio: 4 / 3;
    border-width: 3px;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .statphys-panel > img {
    max-height: 58vh;
    object-fit: contain;
    border-width: 3px;
    box-shadow: none;
  }

  .brand-marks {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-width: 2px;
  }

  .brand-marks img {
    max-width: 220px;
  }

  .tv-screen {
    left: 18.93%;
    top: 14.27%;
    width: 60.17%;
    height: 45.37%;
    border-radius: 10% / 14%;
  }

  .tv-controls {
    display: none;
  }

  .channel-guide {
    padding: 16px;
    border-radius: 18px;
  }

  .channel-button {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 68px;
    border-radius: 18px;
  }

  .channel-button:hover,
  .channel-button:focus-visible,
  .channel-button.is-active {
    transform: translateY(-2px);
  }

  .project-grid,
  .detail-cards,
  .detail-cards.wide,
  .asset-strip,
  .design-reference-grid article {
    grid-template-columns: 1fr;
  }

  .design-reference-grid p {
    grid-column: auto;
  }

  .project-card {
    grid-template-rows: 210px 1fr;
  }

  .organic-panel {
    min-height: 360px;
    border-radius: 28px;
  }

  .speech-bubble {
    top: 8%;
    left: 7%;
    max-width: 190px;
    padding: 16px 18px;
    font-size: 0.9rem;
  }

  .wizmo-panel .retro-button {
    right: 7%;
    bottom: 7%;
  }

  .brand-marks {
    grid-template-columns: 1fr;
  }

  .cv-video-shell {
    width: 100%;
  }

  .cv-video-shell.is-ready .cv-video-stage {
    animation: none;
  }

  .cv-video {
    max-height: none;
    filter: drop-shadow(0 14px 20px rgba(112, 64, 31, 0.12));
  }

  .cv-hover-copy {
    width: min(112%, 620px);
  }

  .cv-hover-copy text {
    font-size: 56px;
  }

  .cv-orb-coral {
    left: 1%;
    width: clamp(94px, 24vw, 160px);
  }

  .cv-orb-mustard {
    right: 3%;
    width: clamp(88px, 21vw, 144px);
  }

  .cv-orb-olive {
    left: 2%;
    bottom: 12%;
    width: clamp(98px, 26vw, 172px);
  }

  .cv-orb-purple {
    right: 1%;
    bottom: 18%;
    width: clamp(112px, 28vw, 188px);
  }
}

@media (max-width: 520px) {
  .cv-video-link {
    padding-top: 82px;
  }

  .cv-hover-copy {
    top: 10px;
    width: min(112%, 420px);
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  .cv-hover-copy text {
    font-size: 34px;
  }

  .cv-hover-reveal {
    width: 920px;
  }

  .cv-video {
    filter: none;
  }

  .cv-video-link:hover .cv-video,
  .cv-video-link:focus-visible .cv-video {
    transform: none;
    filter: none;
  }

  .cv-video-link:hover .cv-hover-copy,
  .cv-video-link:focus-visible .cv-hover-copy {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  .cv-video-link:hover .cv-hover-reveal,
  .cv-video-link:focus-visible .cv-hover-reveal {
    animation: none;
  }

  .cv-orb {
    animation: none;
  }

  .cv-orb-coral,
  .cv-orb-mustard,
  .cv-orb-olive,
  .cv-orb-purple {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  h1,
  h2 {
    background-position:
      0 0,
      0 0;
    text-shadow: none;
  }
}
