:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #66666d;
  --line: #dedfe5;
  --soft: #f7f7f9;
  --blue: #2862e9;
  --blue-hover: #174fd1;
  --footer-height: 34px;
  --sans:
    'Bricolage Grotesque', ui-sans-serif, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  height: 100%;
  background: #fff;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 320px;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--ink);
  border-radius: 0.6rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
  padding: 0.85rem clamp(1.25rem, 3vw, 3.6rem) 0.55rem;
}

.mueble-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.mueble-brand img {
  display: block;
  max-width: 100%;
  width: clamp(9rem, 11vw, 10.75rem);
  height: auto;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  font-size: 1.02rem;
  line-height: 1;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.header-cta {
  flex: 0 0 auto;
  padding: 0.8rem 1.15rem;
  background: var(--soft);
  white-space: nowrap;
}

.button-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.icon-play {
  color: var(--blue);
  -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXBsYXkgcHJldmlldy1pY29uIj48cGF0aCBkPSJNNSA1YTIgMiAwIDAgMSAzLjAwOC0xLjcyOGwxMS45OTcgNi45OThhMiAyIDAgMCAxIC4wMDMgMy40NThsLTEyIDdBMiAyIDAgMCAxIDUgMTl6Ii8+PC9zdmc+');
  mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXBsYXkgcHJldmlldy1pY29uIj48cGF0aCBkPSJNNSA1YTIgMiAwIDAgMSAzLjAwOC0xLjcyOGwxMS45OTcgNi45OThhMiAyIDAgMCAxIC4wMDMgMy40NThsLTEyIDdBMiAyIDAgMCAxIDUgMTl6Ii8+PC9zdmc+');
}

.icon-arrow {
  -webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFycm93LXVwLXJpZ2h0IHByZXZpZXctaWNvbiI+PHBhdGggZD0iTTcgN2gxMHYxMCIvPjxwYXRoIGQ9Ik03IDE3IDE3IDciLz48L3N2Zz4=');
  mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFycm93LXVwLXJpZ2h0IHByZXZpZXctaWNvbiI+PHBhdGggZD0iTTcgN2gxMHYxMCIvPjxwYXRoIGQ9Ik03IDE3IDE3IDciLz48L3N2Zz4=');
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-cta:hover {
  border-color: #c6c8d0;
  background: #f0f1f4;
}

.hero {
  display: grid;
  grid-template-columns: minmax(330px, 484px) fit-content(880px);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: 'video content';
  column-gap: clamp(3.5rem, 5.2vw, 6.2rem);
  align-items: center;
  justify-content: center;
  width: min(1415px, calc(100% - 3rem));
  min-height: 0;
  height: 100%;
  margin: 0 auto;
  padding: clamp(0.5rem, 2vh, 1.5rem) 0 clamp(0.75rem, 2.5vh, 2rem);
  overflow: hidden;
}

.video-card {
  grid-area: video;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
  border-radius: clamp(2.2rem, 3.3vw, 4rem);
  box-shadow: 0 20px 55px rgba(63, 42, 25, 0.08);
}

.video-card video {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 880px;
}

.content-column {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.6rem, 2.4vh, 2.25rem);
  min-width: 0;
  width: 100%;
  max-width: 880px;
}

.threeflow-brand {
  display: flex;
  align-items: center;
}

.mobile-brand {
  display: none;
}

.threeflow-brand img {
  display: block;
  width: clamp(13rem, 18vw, 17.45rem);
  height: auto;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2rem, min(3vw, 6vh), 3.15rem);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-description {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.45;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2rem, 2.7vw, 2.65rem);
}

.button {
  padding: 0.85rem 1.2rem;
}
.button-secondary {
  background: var(--soft);
}
.button-secondary:hover {
  border-color: #c6c8d0;
  background: #f0f1f4;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.button-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: var(--footer-height);
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-size: 0.72rem;
  text-align: center;
}

.site-footer b {
  color: #fff;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(290px, 42vw) minmax(0, 1fr);
    column-gap: 3rem;
  }

  h1 {
    font-size: clamp(2.55rem, 4.8vw, 3.4rem);
  }
}

@media (max-width: 900px) {
  body {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .site-footer {
    display: none;
  }

  .site-header {
    padding: clamp(0.65rem, 2vh, 1.15rem) 1.1rem 0.5rem;
  }

  .mueble-brand img {
    width: 9rem;
  }

  .header-cta {
    min-height: 2.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.9rem;
    font-size: 0.84rem;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      'content'
      'video';
    gap: clamp(0.65rem, 2vh, 1.25rem);
    width: min(calc(100% - 2rem), 36rem);
    height: 100%;
    padding: 0.5rem 0 0.75rem;
  }

  .video-card {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: clamp(1.5rem, 7vw, 2.25rem);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    min-height: 0;
    padding: 0 0.25rem;
    text-align: center;
  }

  .content-column {
    display: block;
    align-self: start;
    max-width: none;
  }

  .desktop-brand {
    display: none;
  }
  .mobile-brand {
    display: none;
  }
  .threeflow-brand img {
    width: clamp(10rem, 42vw, 12.5rem);
  }
  h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    line-height: 0.98;
    text-wrap: balance;
  }
  h1 br {
    display: none;
  }
  .hero-description {
    max-width: 34rem;
    margin: 0.65rem auto 0;
    font-size: clamp(0.74rem, 2.9vw, 0.88rem);
    line-height: 1.3;
  }
  .hero-actions {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
    margin-top: clamp(0.75rem, 2vh, 1.25rem);
  }
  .button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.65rem;
    padding: 0.65rem 0.55rem;
    font-size: clamp(0.7rem, 3.2vw, 0.86rem);
    white-space: nowrap;
  }
  .button-icon {
    width: 1rem;
    height: 1rem;
  }
}

@media (max-width: 420px) {
  .header-cta {
    padding-inline: 0.7rem;
    font-size: 0.78rem;
  }
  .mueble-brand img {
    width: 8.25rem;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .site-header {
    padding-top: 0.8rem;
  }
  .hero {
    padding-block: 0.5rem 0.8rem;
  }
  .video-card {
    max-height: 100%;
  }
  .hero-actions {
    margin-top: 1.25rem;
  }
}

@media (max-width: 900px) and (max-height: 700px) {
  .hero {
    gap: 0.55rem;
    padding-top: 0.25rem;
  }
  .threeflow-brand img {
    width: 9rem;
  }
  h1 {
    font-size: clamp(1.65rem, 7.8vw, 2rem);
  }
  .hero-actions {
    margin-top: 0.65rem;
  }
  .button {
    min-height: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-cta,
  .button {
    transition: none;
  }
}
