.home-rethink {
  --hero-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-rethink .hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 64px 0 84px;
}

.home-rethink .hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  z-index: -1;
  opacity: 0.45;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.home-rethink .hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.home-rethink .hero h1 {
  margin: 0;
  font-size: 96px;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: initial;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.06em;
}

.hero-line > span {
  display: inline-block;
  animation: hero-line-up 1s var(--hero-ease) 0.1s both;
}

.hero-line + .hero-line > span {
  animation-delay: 0.22s;
}

.hero-thin {
  font-weight: 300;
}

.home-rethink .hero .highlight::after {
  transform-origin: left;
  animation: hero-draw 1s var(--hero-ease) 0.8s both;
}

.home-rethink .hero .lead {
  max-width: 29em;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.55;
  animation: hero-rise 0.9s var(--hero-ease) 0.45s both;
}

.home-rethink .hero-actions {
  display: flex;
  margin-top: 32px;
  gap: 12px;
  animation: hero-rise 0.9s var(--hero-ease) 0.6s both;
}

.home-rethink .hero-actions .btn {
  min-height: 58px;
  font-size: 16px;
}

.home-rethink .proof-list {
  margin-top: 26px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  animation: hero-rise 0.9s var(--hero-ease) 0.75s both;
}

.hero-visual {
  position: relative;
  min-width: 0;
  animation: hero-card-in 1.2s var(--hero-ease) 0.25s both;
}

.channel-card {
  padding: 12px;
  background: var(--wash);
  border-radius: 36px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.channel-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.channel-tab {
  position: relative;
  overflow: hidden;
  border: 0;
  background: #ffffffd9;
  color: var(--ink);
  border-radius: 999px;
  min-height: 44px;
  padding: 11px 4px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}

.channel-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

.tab-progress {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

.channel-tab.is-active .tab-progress {
  animation: channel-progress var(--channel-duration, 6200ms) linear forwards;
}

.channel-idle .tab-progress {
  animation-play-state: paused !important;
}

.channel-stage {
  position: relative;
  height: 488px;
  margin-top: 10px;
  border-radius: 26px;
  overflow: hidden;
}

.channel-panel {
  position: absolute;
  inset: 0;
  isolation: isolate;
  padding: 18px;
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 0.55s var(--hero-ease),
    transform 0.55s var(--hero-ease);
}

.channel-panel[hidden] {
  display: none;
}

.channel-panel.is-active {
  opacity: 1;
  transform: none;
}

.channel-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.24;
  pointer-events: none;
}

.channel-website {
  background: var(--pink);
}
.channel-search {
  background: var(--blue);
}
.channel-enquiries {
  background: var(--lilac);
}
.channel-email {
  background: var(--yellow);
}

.channel-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform 0.5s var(--hero-ease),
    opacity 0.5s;
}

.channel-caption.is-visible {
  transform: none;
  opacity: 1;
}

.channel-caption strong {
  flex: none;
  color: var(--lime);
  font-size: 17px;
}

.booking-browser {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 14px 30px #1011141a;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.browser-url {
  min-width: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-body {
  padding: 16px;
}

.booking-body h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.booking-body > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.booking-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.booking-days > div {
  display: grid;
  gap: 6px;
}

.booking-days b {
  font-size: 12px;
  text-transform: uppercase;
}

.booking-days [data-booking] {
  display: grid;
  place-items: center;
  height: 30px;
  border: 1px dashed #d4d5cf;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.35s,
    color 0.35s,
    border-color 0.35s,
    transform 0.35s var(--hero-ease);
}

.booking-days .is-booked {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
  transform: scale(1.04);
}

.booking-stamp {
  position: absolute;
  top: 56%;
  left: 50%;
  max-width: calc(100% - 20px);
  padding: 10px 18px;
  border: 3px solid var(--green-deep);
  border-radius: 14px;
  background: var(--lime);
  color: var(--green-deep);
  box-shadow: 0 18px 40px #0c6f4540;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.7);
  transition:
    opacity 0.3s,
    transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.booking-stamp.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1);
}

.channel-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: 0 10px 24px #10111414;
  font-weight: 600;
  font-size: 15px;
}

.channel-searchbar svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.search-caret {
  width: 2px;
  height: 18px;
  background: var(--ink);
  animation: channel-blink 1s steps(1) infinite;
}

.channel-results {
  position: relative;
  height: 236px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.channel-results li {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--rank) * 59px);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #ffffff8c;
  border-radius: 15px;
  transition:
    top 0.9s cubic-bezier(0.65, 0, 0.25, 1),
    background 0.4s,
    box-shadow 0.4s;
}

.result-favicon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #e1e3e6;
}
.result-copy {
  min-width: 0;
  display: grid;
}
.result-copy strong {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}
.result-copy small {
  font-size: 12px;
  color: var(--muted);
}
.result-copy > * {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-rank {
  margin-left: auto;
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}
.channel-results li.is-winner {
  z-index: 2;
  background: var(--paper);
  box-shadow: 0 16px 32px #10111424;
}
.is-winner .result-favicon {
  background: var(--green);
}
.is-winner .result-rank {
  background: var(--lime);
  color: var(--ink);
}

.channel-counter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 10px 24px #10111414;
}

.channel-counter > div:first-child {
  display: grid;
  gap: 8px;
}
.channel-counter strong {
  font-size: 46px;
  font-weight: 800;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.channel-counter > div > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.channel-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
}
.channel-bars span {
  width: 9px;
  height: 8%;
  border-radius: 4px;
  background: var(--ink);
  transition: height 0.9s var(--hero-ease);
}
.channel-bars.is-grown span {
  height: var(--bar-height);
}
.channel-phone {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  animation: channel-ring 1.6s ease-in-out infinite;
}
.channel-phone svg {
  width: 20px;
  height: 20px;
}

.channel-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-top: 9px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 10px 24px #10111414;
  opacity: 0;
  transform: translateY(22px) rotate(-0.8deg);
  transition:
    opacity 0.5s,
    transform 0.6s var(--hero-ease);
}

.channel-notification:nth-of-type(3) {
  --notification-rotation: 0.8deg;
}
.channel-notification.is-visible {
  opacity: 1;
  transform: rotate(var(--notification-rotation, -0.8deg));
}
.notification-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  background: var(--lime);
}
.channel-email .notification-avatar {
  background: var(--peach);
}
.channel-notification > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}
.channel-notification strong {
  font-size: 13px;
}
.channel-notification small {
  font-size: 12px;
  color: var(--muted);
}
.channel-notification strong,
.channel-notification small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px #1011141f;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  animation: hero-bob 6s ease-in-out infinite;
}

.hero-float small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.float-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
}
.float-icon svg {
  width: 15px;
  height: 15px;
}
.hero-rating {
  right: -20px;
  top: -58px;
  animation-delay: -3s;
}
.hero-rating .float-icon {
  background: var(--yellow);
}
.hero-maps {
  left: -34px;
  bottom: 96px;
}

.home-rethink.motion-paused .hero-float,
.home-rethink.motion-paused .rail-track,
.home-rethink.motion-paused .channel-panel *,
.home-rethink.motion-paused .tab-progress {
  animation-play-state: paused !important;
}
.home-rethink.motion-paused .channel-panel * {
  transition: none;
}

.result-track-group {
  display: flex;
  flex: none;
}
.rail:hover .rail-track {
  animation-play-state: paused;
}
.rail-dot {
  flex: none;
  margin-right: 20px;
}

.home-rethink .steps {
  position: relative;
  isolation: isolate;
}
.home-rethink .steps::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 58px;
  right: 58px;
  height: 2px;
  background: var(--green);
  z-index: -1;
}
.home-rethink .step {
  padding: 26px;
}
.home-rethink .step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--lime);
  font-size: 24px;
  margin-bottom: 24px;
}
.home-rethink .step h3 {
  font-size: 24px;
  margin-bottom: 14px;
}
.home-rethink .step p {
  margin: 0;
}
.home-rethink .about-photo {
  min-height: 0;
  height: 400px;
}
.home-rethink .about-photo img {
  object-position: 50% 65%;
}
.home-rethink .about-card {
  padding: 32px;
}
.home-rethink .about-card h2 {
  font-size: 42px;
  line-height: 1.05;
  max-width: 11em;
  margin-bottom: 16px;
}
.home-rethink .about-points {
  margin: 18px 0 22px;
}

@keyframes hero-line-up {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-card-in {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-draw {
  from {
    transform: rotate(-1deg) scaleX(0);
  }
  to {
    transform: rotate(-1deg) scaleX(1);
  }
}
@keyframes hero-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}
@keyframes channel-progress {
  to {
    transform: scaleX(1);
  }
}
@keyframes channel-blink {
  50% {
    opacity: 0;
  }
}
@keyframes channel-ring {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  10%,
  30% {
    transform: rotate(-12deg);
  }
  20%,
  40% {
    transform: rotate(12deg);
  }
}

@media (max-width: 1280px) and (min-width: 1021px) {
  .home-rethink .hero h1 {
    font-size: 80px;
  }
  .home-rethink .hero-grid {
    gap: 48px;
  }
  .channel-stage {
    height: 460px;
  }
}

@media (max-width: 1020px) {
  .home-rethink .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 60px;
  }
  .hero-visual {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }
  .hero-maps {
    left: -10px;
  }
  .hero-rating {
    right: -6px;
  }
  .home-rethink .hero h1 {
    max-width: 760px;
    font-size: 76px;
  }
}

@media (max-width: 900px) {
  .home-rethink .steps::before {
    top: 58px;
    bottom: 58px;
    left: 58px;
    right: auto;
    width: 2px;
    height: auto;
  }
}

@media (max-width: 760px) {
  .home-rethink .hero {
    padding: 28px 0 64px;
  }
  .home-rethink .hero::before {
    inset: 45% 0 0;
  }
  .home-rethink .hero h1 {
    font-size: 64px;
  }
  .home-rethink .hero-grid {
    gap: 72px;
  }
  .home-rethink .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-rethink .hero-actions .btn {
    font-size: 16px;
    min-height: 56px;
  }
  .home-rethink .hero .lead {
    font-size: 18px;
  }
  .home-rethink .proof-list {
    gap: 10px 18px;
    font-size: 12px;
  }
  .channel-card {
    transform: none;
    padding: 8px;
    border-radius: 28px;
  }
  .channel-stage {
    height: 432px;
    border-radius: 22px;
  }
  .channel-tab {
    font-size: 13px;
  }
  .hero-float {
    font-size: 13px;
    padding: 8px 12px;
  }
  .hero-rating {
    right: 6px;
    top: -50px;
  }
  .hero-maps {
    left: 6px;
    bottom: -50px;
  }
  .home-rethink .about-photo {
    height: 300px;
  }
  .home-rethink .about-card {
    padding: 26px;
  }
  .home-rethink .about-card h2 {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .home-rethink .hero h1 {
    font-size: 52px;
  }
  .booking-stamp {
    font-size: 16px;
    padding: 10px 12px;
  }
  .channel-caption {
    font-size: 12px;
  }
  .channel-caption strong {
    font-size: 15px;
  }
  .channel-results li {
    padding: 0 10px;
    gap: 9px;
  }
  .result-copy strong {
    font-size: 13px;
  }
  .channel-notification {
    padding: 11px 12px;
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .home-rethink .hero h1 {
    font-size: 46px;
  }
  .home-rethink .hero .wrap {
    width: calc(100% - 32px);
  }
  .channel-panel {
    padding: 12px;
  }
  .channel-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
    gap: 8px;
  }
  .channel-caption span {
    min-width: 0;
  }
  .channel-caption strong {
    font-size: 14px;
  }
  .booking-body {
    padding: 12px;
  }
  .browser-bar {
    padding: 10px;
    gap: 6px;
  }
  .browser-url {
    padding: 3px 8px;
  }
  .booking-stamp {
    font-size: 15px;
    padding: 8px 10px;
  }
  .hero-float {
    gap: 8px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .hero-float .float-icon {
    width: 28px;
    height: 28px;
  }
  .channel-tab {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-rethink .hero *,
  .home-rethink .hero *::after,
  .rail-track {
    animation: none !important;
    transition: none !important;
  }
  .channel-tab.is-active .tab-progress {
    transform: scaleX(1);
  }
  .rail-track {
    width: auto;
  }
  .result-track-group {
    flex: 1;
    flex-wrap: wrap;
    gap: 14px;
  }
  .rail-item {
    padding: 0 24px;
    flex-wrap: wrap;
    white-space: normal;
  }
  .rail-dot {
    margin-right: 4px;
  }
  .result-track-group[aria-hidden="true"] {
    display: none;
  }
}
