:root {
  --navy: #111f6a;
  --electric: #000000;
  --white: #ffffff;
  --bg: #f4e9e1;
  --text: #331808;
  --carousel-image-h: 60vh;
  --carousel-caption-space: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  font-family: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.cover-stage {
  position: relative;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 0;
  box-sizing: border-box;
  background: var(--bg);
}


.headline-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: min(640px, calc(100dvh - 330px));
}

.headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -2.56px;
  color: var(--text);
}

.headline-name {
  font-weight: 600;
  white-space: nowrap;
}

.headline-title {
  font-weight: 400;
  width: 620px;
  line-height: 52px;
  white-space: normal;
}

/* Scrollable strip (like carterandrew.com) */
.strip-wrap {
  position: relative;
  flex: 1 1 calc(var(--carousel-image-h) + var(--carousel-caption-space));
}

.strip {
  --strip-gap: 12px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--strip-gap);
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.strip::before {
  content: "";
  flex: 0 0 32px;
  width: 32px;
  height: 1px;
}

.strip::after {
  content: "";
  flex: 0 0 var(--strip-gap);
  width: var(--strip-gap);
  height: 1px;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip-prev,
.strip-next {
  position: absolute;
  top: calc(min(640px, calc(100dvh - 330px)) / 2);
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.strip-prev {
  left: 20px;
}

.strip-next {
  right: 20px;
}

.strip-prev[hidden],
.strip-next[hidden] {
  display: none;
}

.strip-prev img,
.strip-next img {
  display: block;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.18));
  transition: filter 160ms ease;
}

.strip-prev img {
  transform: rotate(180deg);
}

.strip-prev:hover,
.strip-next:hover {
  transform: translateY(-50%) scale(1.03);
  opacity: 1;
}

.strip-prev:hover img,
.strip-next:hover img {
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.22));
}

.strip-prev:focus-visible,
.strip-next:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--text) 55%, transparent);
  outline-offset: 3px;
}

.preview {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}

.preview-media {
  width: auto;
  height: min(640px, calc(100dvh - 330px));
  aspect-ratio: 830 / 640;
  border-radius: 4px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 8%, var(--bg));
}

.preview img,
.preview-media video {
  display: block;
  object-fit: cover;
  border-radius: 4px;
  background: transparent;
}

.preview-media video {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.preview-label {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.12;
  letter-spacing: 0.16px;
  color: color-mix(in srgb, var(--text) 60%, transparent);
}

.text-block {
  position: relative;
  margin: 0;
  margin-top: auto;
  width: 100%;
  padding-top: 40px;
  padding-left: 44px;
  padding-right: 44px;
  display: flex;
  gap: 80px;
  align-items: flex-end;
}

.logo-lockup {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 1.12;
  font-size: 70px;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo-ex {
  font-size: 56px;
  line-height: 56px;
  letter-spacing: 0.56px;
  transform: translateY(-3px);
}

.logo-mark {
  height: 52px;
  width: auto;
  display: block;
}

.text-left {
  flex: 1 1 auto;
  max-width: 486px;
}

.copy {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.16px;
  color: var(--text);
}

.copy p {
  margin: 0 0 10px;
}
.copy p:last-child {
  margin-bottom: 0;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.16px;
  color: var(--text);
  flex-shrink: 0;
}

.contact {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.16px;
  color: var(--text);
}

.contact-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent);
}

.contact-link:hover {
  text-decoration-color: var(--text);
}

@media (max-width: 1100px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .cover-stage {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding: 24px 0;
  }
  .headline-item {
    width: 100%;
    height: auto;
    padding: 0 20px;
  }
  .headline {
    gap: 8px;
    font-size: 34px;
    letter-spacing: -1.61px;
  }
  .headline-title {
    width: 100%;
    max-width: 740px;
    line-height: 38px;
  }
  .preview {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 20px;
  }
  .preview-media {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .preview img,
  .preview-media video {
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .strip-wrap {
    position: relative;
    height: auto;
    flex: 0 0 auto;
    padding: 0;
  }
  .strip {
    position: relative;
    inset: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 0;
    overflow: visible;
  }
  .strip::before,
  .strip::after {
    display: none;
  }
  .strip-prev,
  .strip-next {
    display: none;
  }
  .text-block {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    margin: 0;
    margin-top: auto;
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 24px;
  }
  .text-left {
    max-width: 100%;
    display: contents;
  }
  .copy {
    order: 1;
  }
  .meta {
    order: 2;
    margin-left: 0;
    justify-content: flex-start;
    gap: 8px 16px;
  }
  .contact {
    order: 3;
    margin-top: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .contact-cta {
    width: 100%;
  }
  .logo-lockup {
    font-size: clamp(44px, 9vw, 70px);
    white-space: normal;
  }
  .logo-ex {
    font-size: 44px;
    line-height: 44px;
    letter-spacing: 0.44px;
  }
  .logo-mark {
    height: 40px;
  }
  .cover-stage::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* no animated scrolling */
  .cover-stage {
    animation: none;
  }
}
