/* Terrance Lamonte, Jr. portfolio. Black and white layout, Open Sans, photos and logos in colour. */

/* ---------- 1. Base ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  --ink: #0a0a0a; --paper: #ffffff; --body: #333333; --muted: #555555;
  --line: #e5e5e5; --soft: #f7f7f7; --pad: clamp(20px, 5vw, 48px);
  background: var(--paper); color: var(--ink); text-align: left; overflow-x: clip;
  font: 400 16px/1.6 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p, ul, li, dl, dt, dd,
figure, figcaption, blockquote {
  margin: 0; padding: 0; max-width: none; list-style: none;
  font: inherit; color: inherit; letter-spacing: normal; text-transform: none;
}
a { color: inherit; background: none; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
section { scroll-margin-top: 84px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
svg { flex: none; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--ink); color: #fff; font-weight: 700; border-radius: 999px; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.ph { background: var(--line); overflow: hidden; }

/* Buttons and hashtags */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 999px; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #3a3a3a; border-color: #3a3a3a; color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 14px; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tags li { font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 700; }

/* ---------- 2. Header ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.nav__logo { width: auto; height: 30px; object-fit: contain; }
.nav__name { gap: 12px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav__links a:not(.btn) { font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav__links .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- 3. Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 88px); }
.hero__text { flex: 1.25 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__title { font-size: clamp(44px, 6.4vw, 88px); line-height: .98; font-weight: 800; letter-spacing: -.035em; }
.hero__title span { display: block; text-wrap: balance; }
.hero__bio { max-width: 34em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--body); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__fig { flex: 1 1 320px; min-width: 0; max-width: 480px; display: flex; flex-direction: column; gap: 10px; }
.hero__fig .ph { aspect-ratio: 4 / 5; }
.hero__fig img { object-position: 50% 18%; }
.hero__fig figcaption { font-size: 12px; color: var(--muted); }

/* Worked with: logo scroller */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0 36px; }
.logos__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 12px; }
.logos__toggle { min-height: 44px; padding: 0 4px; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.logos__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logos__track { display: flex; width: max-content; animation: logosScroll 80s linear infinite; }
.logos__track:hover, .logos.is-paused .logos__track { animation-play-state: paused; }
.logos__set { display: flex; align-items: center; flex: none; gap: clamp(40px, 5vw, 72px); padding-right: clamp(40px, 5vw, 72px); }
.logos__set li { flex: none; }
.logos__set img { width: var(--w); height: auto; object-fit: contain; }
@keyframes logosScroll { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .logos__set img { width: calc(var(--w) * .8); }
  .logos__track { animation-duration: 60s; }
}

/* Reel */
.reel { background: var(--ink); color: #fff; }
.reel :focus-visible { outline-color: #fff; }
.reel__in { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.reel .eyebrow { color: #bdbdbd; }
.reel__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* ---------- 4. About ---------- */
.about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.about__side { flex: 1 1 300px; min-width: 0; max-width: 400px; display: flex; flex-direction: column; gap: 28px; }
.about__side .ph { aspect-ratio: 3 / 4; }
.about__side img { object-position: 30% 30%; }
.about__doc { align-self: flex-start; }
.about__main { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.about__bio { margin-top: 8px; font-size: 18px; line-height: 1.7; color: var(--body); }
.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 32px; }
.strengths li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.strengths h3 { font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.strengths p { font-size: 15px; line-height: 1.6; color: var(--body); }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.skills > div { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 5. Projects ---------- */
.work { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work__in { display: flex; flex-direction: column; gap: 48px; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.card .ph { aspect-ratio: 3 / 2; }
.card img { transition: transform .5s ease; }
.card:hover img { transform: scale(1.03); }
.card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.card__role { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.card__desc { font-size: 15px; line-height: 1.65; color: var(--body); }
.card .tags { gap: 2px 12px; margin-top: 4px; }
.card .tags li { font-size: 13px; color: var(--muted); }
.card__actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.credits { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.credits ul { border-bottom: 1px solid #d4d4d4; }
.credits li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; min-height: 68px; padding: 12px 8px; border-top: 1px solid #d4d4d4; transition: background-color .15s ease; }
.credits li:hover { background: #ececec; }
.credits__title { flex: 2 1 280px; min-width: 0; font-size: 17px; font-weight: 700; }
.credits__meta { flex: 1.4 1 200px; min-width: 0; font-size: 14px; color: var(--muted); }
.credits__link { flex: 0 0 150px; }

/* Gallery */
.gallery { display: flex; flex-direction: column; gap: 40px; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--line); }
.gallery__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gallery__grid li { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--line); }
.gallery__grid a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__grid a:focus-visible { outline-offset: -4px; outline-color: #fff; box-shadow: inset 0 0 0 6px var(--ink); }
.gallery__grid img { object-position: var(--pos, 50% 50%); transition: transform .5s ease; }
.gallery__grid a:hover img { transform: scale(1.05); }
.gallery__tag { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
@media (max-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}

/* Photo viewer */
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .93); }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; padding: 64px 16px 24px; }
.lightbox__fig img { width: auto; height: auto; max-width: min(92vw, 1500px); max-height: calc(100dvh - 150px); object-fit: contain; }
.lightbox__fig figcaption { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #e5e5e5; text-align: center; }
.lightbox__btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; background: rgba(0, 0, 0, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; cursor: pointer; }
.lightbox__btn:hover { background: #fff; color: var(--ink); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 12px; top: 50%; margin-top: -24px; }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; margin-top: 0; }
  .lightbox__fig { padding-bottom: 76px; }
}

/* Services */
.services { display: flex; flex-direction: column; gap: 40px; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.services__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.services__list li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.services__list h3 { font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.services__list p { font-size: 15px; line-height: 1.6; color: var(--body); }
.services__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.services__cta p { font-size: 17px; font-weight: 600; }

/* ---------- 6. Kind words ---------- */
.words { background: var(--ink); color: #fff; }
.words :focus-visible { outline-color: #fff; }
.words__in { display: flex; flex-direction: column; gap: 44px; padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.words .eyebrow { color: #bdbdbd; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; }
.quotes figure { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; border-top: 1px solid #555; }
.quotes blockquote { font-size: 21px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; border: 0; }
.quotes figcaption { margin-top: auto; font-size: 14px; line-height: 1.5; color: #bdbdbd; }
.quotes figcaption strong { display: block; font-weight: 700; color: #fff; }

/* ---------- 7. Contact and footer ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 80px; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.contact__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__text p { max-width: 30em; font-size: 17px; line-height: 1.65; color: var(--body); }
.contact__email { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.contact__email a { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact__side { flex: 1.1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.socials { border-bottom: 1px solid var(--line); }
.socials li { border-top: 1px solid var(--line); }
.socials a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-size: 17px; font-weight: 700; text-decoration: none; }
.contact__form { min-width: 0; }
.contact__form[hidden] { display: none; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #8a8a8a; border-radius: 0;
}
.field textarea { min-height: 160px; line-height: 1.5; resize: vertical; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; font-family: inherit; }
.form .btn:disabled { opacity: .6; cursor: default; }
.form__status { min-height: 1.6em; font-size: 15px; font-weight: 600; }
.form__status[data-state="error"] { color: #b00020; }
.form__done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px; border: 1px solid var(--ink); }
.form__done[hidden] { display: none; }
.form__done h3 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.form__done p { font-size: 17px; color: var(--body); }
.foot { border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 28px; padding-bottom: 96px; }
.foot__copy { font-size: 14px; font-weight: 700; }
.foot__credit { font-size: 13px; color: var(--muted); }

/* ---------- 8. Surprise me: random 90s / early-00s pop-ups ---------- */
.fx-btn {
  position: fixed; left: 20px; bottom: 20px; z-index: 99990;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px;
  background: #0a0a0a; color: #fff; border: 2px solid #fff; border-radius: 999px;
  font: 800 14px/1 'Open Sans', system-ui, sans-serif; letter-spacing: .02em; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .15s ease;
}
.fx-btn[hidden] { display: none; }
.fx-btn:hover { transform: translateY(-2px) rotate(-2deg); }
.fx-btn:disabled { opacity: .5; cursor: default; transform: none; }
.fx-btn:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; }
.fx { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999; overflow: hidden; pointer-events: none; }
.fx-stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
@keyframes fxOut { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fxFade { 0%, 100% { opacity: 0; } 15%, 85% { opacity: 1; } }
@keyframes fxPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* Slime */
.fx-slime i {
  position: absolute; top: -40%; bottom: -40%; border-radius: 999px; background: #62d51f;
  box-shadow: inset -12px 0 0 rgba(0,0,0,.07), inset 9px 0 0 rgba(255,255,255,.16);
  animation: fxDrip 4.2s both;
}
.fx-slime b {
  position: absolute; top: 50%; left: 0; right: 0; margin-top: -.5em; text-align: center;
  font: 800 clamp(56px, 15vw, 220px)/1 'Open Sans', system-ui, sans-serif; letter-spacing: -.04em;
  color: #fff; text-shadow: 0 6px 0 rgba(0,0,0,.28); transform: rotate(-4deg);
  animation: fxSlimeWord 4.7s both;
}
@keyframes fxDrip {
  0%   { transform: translateY(-101%); animation-timing-function: cubic-bezier(.5,.05,.8,.55); }
  30%  { transform: translateY(0); animation-timing-function: linear; }
  70%  { transform: translateY(0); animation-timing-function: cubic-bezier(.6,0,.9,.45); }
  100% { transform: translateY(101%); }
}
@keyframes fxSlimeWord {
  0%, 27%   { opacity: 0; transform: rotate(-4deg) scale(.8); }
  35%       { opacity: 1; transform: rotate(-4deg) scale(1.05); }
  40%, 64%  { opacity: 1; transform: rotate(-4deg) scale(1); }
  72%, 100% { opacity: 0; transform: rotate(-4deg) scale(.96); }
}

/* Graffiti tag */
.fx-graffiti { animation: fxOut 3.8s both; }
.fx-tag { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-7deg); text-align: center; white-space: nowrap; }
.fx-tag__main {
  display: block; padding: 0 .08em;
  font: 400 clamp(130px, 26vw, 360px)/.95 'Permanent Marker', 'Comic Sans MS', cursive;
  background: linear-gradient(180deg, #ff3cac 0%, #ff8a00 55%, #ffe600 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: clamp(3px, .6vw, 7px) #111;
  filter: drop-shadow(clamp(4px, .8vw, 9px) clamp(4px, .8vw, 9px) 0 #111);
  animation: fxSpray .8s steps(14) both;
}
.fx-tag__sub {
  display: block; margin: -.15em 0 0 34%;
  font: 400 clamp(34px, 6vw, 84px)/1 'Permanent Marker', 'Comic Sans MS', cursive;
  color: #fff; -webkit-text-stroke: 2px #111; filter: drop-shadow(3px 3px 0 #111);
  transform: rotate(-4deg); animation: fxSpray .5s .75s steps(8) both;
}
@keyframes fxSpray { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -10% -30% 0); } }
.fx-tag__drip {
  position: absolute; top: 58%; width: clamp(6px, 1vw, 12px); height: var(--h);
  border-radius: 0 0 99px 99px; background: var(--c); transform-origin: top;
  animation: fxDripDown 1.6s var(--d) cubic-bezier(.3,.6,.4,1) both;
}
@keyframes fxDripDown { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.fx-dot { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); animation: fxPop .2s var(--d) both; }

/* Pop-up windows */
.fx-popups { animation: fxOut 4.2s both; }
.fx-win, .fx-counter {
  background: #c0c0c0; color: #000; font: 13px/1.35 Tahoma, Verdana, 'Segoe UI', sans-serif;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf, 6px 8px 0 rgba(0,0,0,.25);
}
.fx-win {
  position: absolute; width: min(330px, 88vw); padding: 3px;
  left: calc(var(--x) * (100vw - min(330px, 88vw))); top: calc(var(--y) * (100vh - 200px));
  animation: fxPop .25s var(--d) steps(3) both;
}
.fx-win__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 3px 3px 6px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; }
.fx-win__x, .fx-win__btn { box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; background: #c0c0c0; color: #000; }
.fx-win__x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 16px; font: 700 12px/1 Tahoma, sans-serif; }
.fx-win__body { display: flex; align-items: flex-start; gap: 12px; padding: 16px 12px 10px; }
.fx-win__body p { margin: 0; padding-top: 4px; }
.fx-win__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #1a5fd0; color: #fff; font: 700 italic 18px/1 Georgia, serif; }
.fx-win__icon--warn { border-radius: 0; background: #ffd400; color: #000; padding-top: 9px; font: 700 16px/1 Tahoma, sans-serif; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fx-win__btns { display: flex; justify-content: center; gap: 8px; padding: 4px 0 10px; }
.fx-win__btn { min-width: 76px; padding: 4px 10px; text-align: center; }

/* Under construction */
.fx-construction { animation: fxOut 3.8s both; }
.fx-tape {
  position: absolute; left: -20vw; width: 140vw; height: clamp(46px, 7vw, 72px);
  display: flex; align-items: center; justify-content: space-around;
  background: repeating-linear-gradient(-45deg, #ffd400 0 28px, #111 28px 56px); box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.fx-tape span { padding: 4px 14px; background: #ffd400; color: #111; font: 800 clamp(14px, 2.2vw, 24px)/1 'Open Sans', Impact, sans-serif; letter-spacing: .12em; white-space: nowrap; }
.fx-tape--a { top: 20%; transform: rotate(-7deg); animation: fxTapeA .5s cubic-bezier(.2,.8,.3,1.2) both; }
.fx-tape--b { top: 70%; transform: rotate(5deg); animation: fxTapeB .5s .2s cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes fxTapeA { from { transform: translateX(-110%) rotate(-7deg); } to { transform: translateX(0) rotate(-7deg); } }
@keyframes fxTapeB { from { transform: translateX(110%) rotate(5deg); } to { transform: translateX(0) rotate(5deg); } }
.fx-counter { position: absolute; left: 50%; top: 46%; margin: -60px 0 0 -130px; width: 260px; padding: 14px 16px 16px; text-align: center; font-weight: 700; animation: fxPop .25s .45s steps(3) both; }
.fx-counter__digits { display: flex; justify-content: center; gap: 3px; margin-top: 10px; }
.fx-counter__digits b { width: 1.1em; padding: 4px 0; background: #000; color: #39ff14; font: 700 34px/1 'Courier New', monospace; text-shadow: 0 0 6px #39ff14; }
.fx-new {
  position: absolute; right: -30px; top: -34px; width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  background: #ff1e56; color: #ffe600; font: 800 16px/1 'Open Sans', Impact, sans-serif; transform: rotate(14deg);
  clip-path: polygon(50% 0%, 59.8% 13.3%, 75% 6.7%, 76.9% 23.1%, 93.3% 25%, 86.7% 40.2%, 100% 50%, 86.7% 59.8%, 93.3% 75%, 76.9% 76.9%, 75% 93.3%, 59.8% 86.7%, 50% 100%, 40.2% 86.7%, 25% 93.3%, 23.1% 76.9%, 6.7% 75%, 13.3% 59.8%, 0% 50%, 13.3% 40.2%, 6.7% 25%, 23.1% 23.1%, 25% 6.7%, 40.2% 13.3%);
  animation: fxBlink .5s steps(1) infinite;
}
@keyframes fxBlink { 50% { opacity: 0; } }

/* Word art */
.fx-wordart { animation: fxOut 3.6s both; }
.fx-wa {
  position: absolute; left: 0; right: 0; top: 50%; padding: 0 16px;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .25em; font-size: clamp(52px, 14vw, 200px);
  transform: translateY(-50%) skewY(-6deg); animation: fxZoom .6s cubic-bezier(.2,1.4,.4,1) both;
}
.fx-wa__word { display: inline-flex; white-space: nowrap; }
@keyframes fxZoom {
  from { opacity: 0; transform: translateY(-50%) skewY(-6deg) scale(.2) rotate(-20deg); }
  to   { opacity: 1; transform: translateY(-50%) skewY(-6deg) scale(1) rotate(0); }
}
.fx-wa__word span {
  display: inline-block; white-space: pre; color: var(--c);
  font: italic 800 1em/1.05 'Open Sans', Impact, sans-serif;
  -webkit-text-stroke: clamp(2px, .4vw, 5px) #111;
  filter: drop-shadow(3px 3px 0 #111) drop-shadow(3px 3px 0 #111) drop-shadow(2px 2px 0 #111);
  animation: fxWave .5s var(--d) ease-in-out infinite alternate;
}
@keyframes fxWave { from { transform: translateY(-.07em); } to { transform: translateY(.07em); } }
.fx-spark {
  position: absolute; width: var(--s); height: var(--s); background: var(--c);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: fxTwinkle .6s var(--d) ease-in-out infinite alternate both;
}
@keyframes fxTwinkle { from { opacity: .2; transform: scale(.2) rotate(0deg); } to { opacity: 1; transform: scale(1) rotate(45deg); } }

/* Reduced motion: each surprise fades in and out with no movement. */
.fx-reduced * { animation: none !important; }
.fx-reduced { animation: fxFade var(--dur, 3.6s) linear both !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logos__track { animation: none; }
  .logos__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logos__set[aria-hidden="true"] { display: none; }
  .logos__toggle { display: none; }
  .card img, .gallery__grid img, .fx-btn { transition: none; }
}

/* Phones: the header scrolls away with the page instead of sticking, so it never covers the content. */
@media (max-width: 640px) {
  .nav { position: static; }
  section { scroll-margin-top: 16px; }
}
