/* Home narrative layout, shared by the en-GB and es-ES editions. */

.home-story {
  --home-ink: #0f172a;
  --home-muted: #475569;
  --home-soft: #64748b;
  --home-line: #e2e8f0;
  --home-accent: #c1121f;
  --home-accent-hover: #a30f1a;
  --home-band: #f8fafc;
  --home-head: "Instrument Sans", "IBM Plex Sans", sans-serif;
  font-family: var(--home-head) !important;
  color: var(--home-ink);
  background: #ffffff;
}

.home-story .serif-heading {
  font-family: var(--home-head);
}

.home-wrap,
.home-story .site-nav {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.home-head {
  font-family: var(--home-head);
}

.home-eyebrow {
  margin: 0 0 16px;
  font-family: var(--home-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--home-ink);
}

.home-eyebrow--accent {
  color: var(--home-accent);
}

.home-label {
  margin: 0;
  font-family: var(--home-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-h2 {
  margin: 0;
  font-family: var(--home-head);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  font-weight: 600;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--home-accent);
  color: #ffffff;
  font-family: var(--home-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.home-button:hover {
  background: var(--home-accent-hover);
}

.home-button:focus-visible,
.home-link:focus-visible,
.home-idea a:focus-visible,
.home-dot:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 4px;
}

.home-link {
  font-family: var(--home-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--home-ink);
  text-decoration: underline;
  text-decoration-color: var(--home-accent);
  text-underline-offset: 4px;
  white-space: nowrap;
}

.home-link:hover {
  color: var(--home-accent);
}

.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

/* Hero */

.home-hero {
  padding-top: 96px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.home-hero-rule {
  width: 1px;
  height: 64px;
  margin-bottom: 48px;
  background: var(--home-accent);
}

.home-hero h1 {
  margin: 0 0 24px;
  font-family: var(--home-head);
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-hero h1 span {
  display: block;
}

.home-hero-lead {
  margin: 0 0 36px;
  max-width: 38rem;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--home-muted);
}

.home-hero:lang(es) .home-hero-lead {
  max-width: 44rem;
}

.home-hero #cta-anchor {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Clients */

.home-clients {
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-clients .home-wrap {
  padding-top: 28px;
  padding-bottom: 28px;
}

.home-clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.home-clients-title {
  margin: 0;
  font-family: var(--home-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-clients-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 24px 32px;
  align-items: center;
}

.home-clients-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.home-clients-list img {
  display: block;
  width: 100%;
  max-width: 176px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1);
}

.home-clients-list .home-clients-logo--inverse {
  filter: brightness(0);
}

.home-clients-list--copy {
  display: none;
}

.home-clients-control {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--home-muted);
  cursor: pointer;
}

.home-clients-control[hidden],
.home-clients-control .home-clients-resume,
.home-clients[data-paused] .home-clients-pause {
  display: none;
}

.home-clients[data-paused] .home-clients-resume {
  display: block;
}

.home-clients-control:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 4px;
}

.home-clients[data-animated] .home-clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.home-clients[data-animated] .home-clients-track {
  display: flex;
  width: max-content;
  animation: home-clients-scroll 90s linear infinite;
}

.home-clients[data-animated] .home-clients-list {
  display: flex;
  flex: none;
  width: max-content;
  gap: clamp(32px, 4vw, 64px);
  padding-right: clamp(32px, 4vw, 64px);
}

.home-clients[data-animated] .home-clients-list li {
  flex: none;
  width: clamp(144px, 12vw, 176px);
}

.home-clients[data-paused] .home-clients-track,
.home-clients-marquee:hover .home-clients-track {
  animation-play-state: paused;
}

@keyframes home-clients-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-clients[data-animated] .home-clients-track {
    animation: none;
  }
}

/* Questions */

.home-questions {
  padding-top: 120px;
  padding-bottom: 96px;
}

.home-questions-head {
  text-align: center;
  margin-bottom: 48px;
}

.home-questions-head .home-h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.home-questions-head .home-eyebrow {
  margin-bottom: 24px;
}

.home-question-grid,
.home-step-grid,
.home-case-grid,
.home-idea-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.home-question-grid {
  gap: 56px;
}

.home-question {
  margin: 0;
}

.home-question blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

/* ASCII pause */

#cta-anchor {
  min-height: var(--cta-height, 0px);
}

#ascii-hero {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-ascii {
  position: relative;
  width: calc(100% - 48px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
}

/* How we work */

.home-approach {
  padding-top: 112px;
  padding-bottom: 96px;
}

.home-approach-head {
  text-align: center;
  margin-bottom: 64px;
}

.home-motto {
  margin: 0;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: var(--home-muted);
}

.home-motto-translation {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--home-soft);
}

.home-step-grid {
  gap: 48px;
}

.home-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-step-number {
  font-family: var(--home-head);
  font-size: 14px;
  color: var(--home-accent);
}

.home-step h3 {
  margin: 0;
  font-family: var(--home-head);
  font-size: 26px;
  font-weight: 600;
}

.home-step-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--home-muted);
}

.home-step img {
  display: block;
  width: 100%;
  margin-top: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center calc(50% + 32px);
}

/* Selected work */

.home-work,
.home-ideas,
.home-final {
  border-top: 1px solid var(--home-line);
}

.home-work .home-wrap,
.home-ideas .home-wrap {
  padding-top: 96px;
  padding-bottom: 96px;
}

.home-case-grid {
  gap: 24px;
}

.home-case {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-line);
  background: #ffffff;
}

.home-case-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.home-case h3 {
  margin: 0;
  font-family: var(--home-head);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.home-case-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--home-muted);
}

.home-case img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.home-work-cta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--home-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-work-cta p {
  margin: 0;
  font-size: 20px;
  color: var(--home-muted);
}

/* Team */

.home-team {
  background: var(--home-band);
  border-top: 1px solid var(--home-line);
}

.home-team .home-wrap {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

.home-team-claim {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35;
  font-weight: 600;
}

.home-team-detail {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-team-text {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--home-muted);
}

.home-facts {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid #cbd5e1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.home-facts dt {
  margin: 0 0 6px;
  font-family: var(--home-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--home-accent);
}

.home-facts dd {
  margin: 0;
  font-size: 17px;
  color: var(--home-ink);
}

/* Ideas */

.home-idea-grid {
  gap: 40px 32px;
}

.home-idea {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-idea img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 8px;
}

.home-idea h3 {
  margin: 0;
  font-family: var(--home-head);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}

.home-idea h3 a {
  color: var(--home-ink);
  text-decoration: none;
}

.home-idea h3 a:hover {
  color: var(--home-accent);
}

/* Final call to action */

.home-final .home-wrap {
  max-width: 64rem;
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.home-final .home-eyebrow {
  margin: 0;
}

.home-rotator {
  margin: 0;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-pair {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--home-head);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.3;
  font-weight: 600;
}

.home-pair[hidden] {
  display: none;
}

.home-pair-lead {
  font-weight: 400;
  color: var(--home-muted);
}

.home-dots {
  display: flex;
  align-items: center;
}

.home-dots[hidden] {
  display: none;
}

.home-dot {
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.home-dot[aria-pressed="true"] span {
  background: var(--home-accent);
}

@media (min-width: 768px) {
  .home-wrap,
  .home-story .site-nav {
    padding-left: 40px;
    padding-right: 40px;
  }

  .home-team .home-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-ascii {
    /* Match home-wrap's content width inside its 40px side padding. */
    width: min(calc(72rem - 80px), calc(100% - 80px));
    aspect-ratio: 3 / 1;
  }
}

@media (min-width: 1024px) {
  .home-question-grid,
  .home-step-grid,
  .home-case-grid,
  .home-idea-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .home-questions,
  .home-approach {
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .home-work .home-wrap,
  .home-ideas .home-wrap,
  .home-team .home-wrap {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .home-final .home-wrap {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .home-rotator {
    min-height: 9rem;
  }
}

.home-nowrap {
  white-space: nowrap;
}
