* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #efe0cd;
  color: #111;
  font-family: Helvetica, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(#000 0.5px, transparent 0.5px);
  background-size: 6px 6px;
  z-index: -1;
}

/* NAV */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background: #efe0cd;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  z-index: 1000;
}

.logo,
.nav-links a {
  color: #111;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.logo img {
  height: 72px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 4px;
  background: #111;
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

u {
  text-decoration-color: #f5c400;
  text-decoration-thickness: 5px;
  text-underline-offset: 3px;
}

/* HOME */

/* HOME / FULL-WIDTH SPLIT FLAP HERO */

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 7.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: rgba(245, 196, 0, 0.16);
  filter: blur(80px);
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-inner {
  width: 100vw;
  padding: 0 clamp(0.75rem, 2vw, 2rem);
  position: relative;
  z-index: 2;
}

.hero-topline,
.hero-bottomline {
  width: min(1600px, 96vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.5);
}

.hero-topline {
  margin-bottom: 1rem;
}

.hero-bottomline {
  margin-top: 1rem;
}

.board-shell {
  width: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

.board {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: clamp(0.12rem, 0.35vw, 0.34rem);
  width: 100%;
  margin: 0 auto;
  padding: 0;
  transform-style: preserve-3d;
}

.tile {
  aspect-ratio: 1 / 1.08;
  background: #101010;
  color: rgba(244, 239, 227, 0.25);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: clamp(0.75rem, 2.55vw, 2.45rem);
  font-weight: 800;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 0 rgba(0,0,0,0.8),
    0 12px 24px rgba(17,17,17,0.08);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.08), transparent 44%),
    linear-gradient(to top, rgba(0,0,0,0.58), transparent 45%);
  pointer-events: none;
}

.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #000;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.07);
}

.char {
  z-index: 2;
  line-height: 1;
}

.tile.flipping .char {
  animation: flap 0.16s ease-in-out;
}

.tile.final {
  color: #f5c400;
  text-shadow:
    0 0 8px rgba(245,196,0,0.22),
    0 0 2px rgba(0,0,0,0.75);
}

.tile.empty .char {
  color: transparent;
}

.tile.ambient-flash {
  color: #efe0cd;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -2px 0 rgba(0,0,0,0.8),
    0 0 22px rgba(245,196,0,0.24);
}

.board.is-animating .tile.final {
  animation: finalPulse 0.65s ease both;
}

.active-nav {
  opacity: 1 !important;
}

.active-nav::after {
  width: 100% !important;
}

@keyframes flap {
  0% { transform: rotateX(0deg); }
  40% { transform: rotateX(95deg); }
  60% { transform: rotateX(85deg); }
  100% { transform: rotateX(0deg); }
}

@keyframes finalPulse {
  0% { filter: brightness(1); }
  45% { filter: brightness(1.45); }
  100% { filter: brightness(1); }
}

/* STANDARD PAGES */

.intro,
.about-page,
.contact-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3rem;
}

.section-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}

.intro-text {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.about-copy {
  font-size: 20px;
}

.about-image img {
  width: 100%;
  display: block;
  box-shadow: 16px 16px 0 #f5c400;
}

.work-preview {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem 7rem;
}

.work-list {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.work-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  text-decoration: none;
  color: #111;
}

.work-item span:first-child {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  display: inline-flex;
  width: fit-content;
  position: relative;
}

.work-item span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #f5c400;
  transition: width 0.25s ease;
}

.work-item:hover span:first-child::after {
  width: 100%;
}

.page-section {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.page-section.active {
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
}

.featured-image {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.featured-image img {
  width: 100%;
  display: block;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.featured-image img:hover {
  transform: translateY(-4px);
}

/* CASE STUDY */

.case-study {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px 4rem;
}

.case-hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  position: relative;
  padding-bottom: 80px;
}

.case-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  opacity: 0.55;
  margin-bottom: 20px;
}

.case-hero h1 {
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.85;
  margin: 0 0 28px;
  letter-spacing: -0.07em;
}

.case-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}

.case-intro {
  font-size: clamp(21px, 2.2vw, 34px);
  line-height: 1.25;
  max-width: 760px;
  letter-spacing: -0.035em;
}

.hero-image-stack {
  position: relative;
  min-height: 560px;
  max-width: 100%;
}

.image-placeholder {
  border: 1px dashed rgba(17, 17, 17, 0.28);
  border-radius: 32px;
  background: rgba(17, 17, 17, 0.035);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: rgba(17, 17, 17, 0.45);
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
}

.hero-main-image {
  width: 78%;
  height: 420px;
  margin-left: auto;
}

.hero-small-image {
  width: 48%;
  height: 220px;
  position: absolute;
  left: 0;
  bottom: 20px;
  background: rgba(17, 17, 17, 0.06);
}

.floating-note {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 220px;
  border-radius: 24px;
  padding: 24px;
  background: #efe0cd;
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.09);
  font-size: 14px;
  line-height: 1.5;
}

.case-section {
  padding: 96px 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 76px;
}

.case-section .section-label span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  opacity: 0.45;
  margin-bottom: 16px;
}

.case-section .section-label h2 {
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.06em;
}

.section-content p {
  font-size: 19px;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 0 24px;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fact-card {
  border-radius: 28px;
  padding: 28px;
  min-height: 170px;
  background: rgba(17, 17, 17, 0.035);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fact-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.45;
}

.fact-card p {
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}

.research-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.research-card {
  border-radius: 30px;
  padding: 30px;
  background: rgba(239, 224, 205, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.1);
  min-height: 250px;
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.045);
}

.research-card:nth-child(1),
.research-card:nth-child(4) {
  grid-column: span 7;
}

.research-card:nth-child(2),
.research-card:nth-child(3) {
  grid-column: span 5;
}

.research-card h3 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
}

.research-card p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.75;
  margin: 0;
}

.image-break {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  margin-top: 48px;
}

.wide-placeholder,
.tall-placeholder {
  height: 420px;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 40px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 240px;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  align-items: start;
}

.timeline-row span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.45;
}

.timeline-row h3 {
  font-size: 28px;
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}

.timeline-row p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.72;
}

.mini-placeholder {
  height: 130px;
  border-radius: 22px;
}

/* Fixed to prevent horizontal scrolling */

.feature-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
  max-width: 100%;
  overflow: hidden;
}

.feature-pill {
  min-height: 150px;
  width: clamp(150px, 18vw, 210px);
  border-radius: 999px;
  padding: 24px 22px;
  background: rgba(17, 17, 17, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  box-sizing: border-box;
}

.feature-pill:nth-child(odd) {
  transform: translateY(24px);
}

.placeholder-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.gallery-card {
  border-radius: 30px;
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.1);
}

.gallery-card .image-placeholder {
  height: 260px;
  margin-bottom: 18px;
}

.gallery-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.gallery-card p {
  font-size: 15px;
  opacity: 0.65;
}

.next-section {
  padding: 120px 24px;
  text-align: center;
}

.next-section h2 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.9;
  margin: 0 0 28px;
  letter-spacing: -0.07em;
}

.next-section p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.72;
}

/* FOOTER */

.site-footer {
  position: relative;
  bottom: 0;
  left: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer img {
  height: 40px;
}

.linkedin-fixed {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  opacity: 0.8;
}

.linkedin-fixed svg {
  fill: #f5c400;
}

.linkedin-fixed:hover {
  opacity: 1;
}

/* ANIMATION */

@keyframes flap {
  0% { transform: rotateX(0deg); }
  40% { transform: rotateX(95deg); }
  60% { transform: rotateX(85deg); }
  100% { transform: rotateX(0deg); }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .case-hero,
  .section-split,
  .image-break,
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .board-shell {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .project-facts,
  .placeholder-gallery {
    grid-template-columns: 1fr;
  }

  .research-card,
  .research-card:nth-child(1),
  .research-card:nth-child(2),
  .research-card:nth-child(3),
  .research-card:nth-child(4) {
    grid-column: span 12;
  }

  .feature-cloud {
    display: flex;
    flex-wrap: wrap;
  }

  .feature-pill {
    width: 100%;
    min-height: 120px;
  }

  .feature-pill:nth-child(odd) {
    transform: none;
  }

  .hero-image-stack {
    min-height: auto;
  }

  .hero-main-image,
  .hero-small-image,
  .floating-note {
    position: static;
    width: 100%;
    margin-top: 18px;
  }
}

@media (max-width: 700px) {
  .nav {
    height: 68px;
    padding: 0 1rem;
  }

  .logo img {
    height: 48px;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .hero {
    min-height: auto;
    padding: 6rem 1rem 3rem;
  }

  .hero-inner {
    width: 100%;
    padding: 0;
  }

  .hero-topline,
  .hero-bottomline {
    width: 100%;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    gap: 1rem;
    overflow: hidden;
  }

  .hero-topline span:last-child,
  .hero-bottomline span:last-child {
    text-align: right;
  }

  .eyebrow {
    align-items: flex-start;
    gap: 1rem;
    flex-direction: column;
  }

  .board-shell {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .board {
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 0.13rem;
  max-width: 300px;
  margin: 0 auto;
}

.tile {
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

  .intro,
  .about-page,
  .contact-page {
    grid-template-columns: 1fr;
    padding: 3rem 1rem 4rem;
    gap: 1.5rem;
  }

  .section-label {
    font-size: 0.68rem;
  }

  .intro-text {
    font-size: 1.15rem;
    line-height: 1.45;
    letter-spacing: -0.02em;
  }

  .about-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .about-image img {
    max-width: 260px;
  }

  .work-preview {
    padding: 2rem 1rem 4rem;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.2rem 0;
  }

  .work-item span:first-child {
    font-size: 1.25rem;
  }

  .work-item span:last-child {
    font-size: 0.65rem;
  }

  .contact-page {
    padding-bottom: 6rem;
  }

  .case-study {
    padding: 88px 1rem 3rem;
  }

  .case-hero {
    min-height: auto;
    gap: 32px;
    padding-bottom: 64px;
  }

  .case-hero h1 {
    font-size: clamp(54px, 18vw, 88px);
  }

  .case-section {
    padding: 64px 0;
  }

  .section-content p {
    font-size: 17px;
  }

  .project-facts {
    gap: 12px;
  }

  .fact-card {
    min-height: 140px;
  }

  .research-board {
    grid-template-columns: 1fr;
  }

  .research-card {
    grid-column: auto !important;
  }

  .wide-placeholder,
  .tall-placeholder {
    height: 280px;
  }

  .next-section {
    padding: 80px 0;
  }

  .site-footer {
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }

  .site-footer img {
    height: 34px;
  }

  .site-footer p {
    font-size: 9px !important;
  }

  .linkedin-fixed {
    right: 1rem;
    bottom: 1rem;
  }

  .linkedin-fixed svg {
    width: 17px;
    height: 17px;
  }
}
/* ROOST CASE STUDY */

.roost-case {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px 4rem;
}

.roost-hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  padding-bottom: 88px;
}

.roost-hero h1 {
  font-size: clamp(72px, 13vw, 180px);
  line-height: 0.78;
  letter-spacing: -0.09em;
  margin: 0 0 32px;
}

.roost-hero-visual {
  min-height: 620px;
  border-radius: 48px;
}

.roost-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 40px 0 96px;
}

.roost-section {
  padding: 96px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.roost-split {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  gap: 76px;
}

.roost-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.roost-note-grid article,
.roost-opportunity-strip > div,
.persona-card {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 30px;
  padding: 30px;
  background: rgba(17, 17, 17, 0.035);
}

.roost-note-grid h3,
.roost-opportunity-strip h3,
.persona-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.roost-note-grid p,
.roost-opportunity-strip p,
.persona-card p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.75;
  margin: 0;
}

.roost-wide-img {
  height: 520px;
  margin-top: 42px;
}

.roost-opportunity-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  margin-top: 42px;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.persona-card {
  min-height: 620px;
}

.persona-image {
  height: 320px;
  margin-bottom: 28px;
  border-radius: 28px;
}

.persona-role {
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.5 !important;
  margin-bottom: 22px !important;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.brand-grid .image-placeholder {
  min-height: 360px;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.flow-steps div {
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  padding: 16px 22px;
  font-size: 15px;
  background: rgba(17, 17, 17, 0.035);
}

.screen-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 42px;
}

.screen-gallery .image-placeholder {
  min-height: 420px;
}

.roost-final {
  padding: 130px 24px;
  text-align: center;
}

.roost-final h2 {
  max-width: 980px;
  margin: 0 auto 28px;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.roost-final p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.72;
}

/* RESPONSIVE ROOST */

@media (max-width: 900px) {
  .roost-hero,
  .roost-split,
  .roost-opportunity-strip {
    grid-template-columns: 1fr;
  }

  .roost-facts,
  .roost-note-grid,
  .persona-grid,
  .brand-grid,
  .screen-gallery {
    grid-template-columns: 1fr;
  }

  .roost-hero-visual {
    min-height: 420px;
  }

  .persona-card {
    min-height: auto;
  }

  .roost-wide-img {
    height: 360px;
  }
}

@media (max-width: 700px) {
  .roost-case {
    padding: 88px 1rem 3rem;
  }

  .roost-hero {
    min-height: auto;
    gap: 36px;
    padding-bottom: 64px;
  }

  .roost-hero h1 {
    font-size: clamp(72px, 24vw, 118px);
  }

  .roost-section {
    padding: 64px 0;
  }

  .roost-note-grid article,
  .roost-opportunity-strip > div,
  .persona-card {
    padding: 24px;
  }

  .persona-image,
  .brand-grid .image-placeholder,
  .screen-gallery .image-placeholder {
    min-height: 280px;
  }

  .flow-steps div {
    width: 100%;
    text-align: center;
  }

  .roost-final {
    padding: 88px 0;
  }
}

.underline-wrap {
  position: relative;
  display: inline-block;
}

.underline-reveal {
  position: relative;
  display: inline;
  background-image: linear-gradient(#f5c400, #f5c400);
  background-repeat: no-repeat;
  background-size: 0% 0.22em;
  background-position: 0 94.5%;
  transition: background-size 1.4s ease;
}

.underline-reveal.active {
  background-size: 100% 0.22em;
}