:root {
  --ivory: #f4f1ea;
  --charcoal: #242421;
  --stone: #b6b0a6;
  --red: #ed3237;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --gutter: clamp(22px, 4.5vw, 76px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--charcoal);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ivory);
  background: var(--charcoal);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a,
button {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: var(--gutter);
  padding: 10px 14px;
  color: var(--charcoal);
  background: var(--ivory);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.backdrop,
.backdrop__slide,
.backdrop__shade,
.backdrop__grain {
  position: absolute;
  inset: 0;
}

.backdrop {
  z-index: -2;
  background: #262724;
}

.backdrop__slide {
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.35s var(--ease);
}

.backdrop__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 12, 0.13);
}

.backdrop__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.055);
  transition: transform 7s linear;
}

.backdrop__slide.is-active {
  opacity: 1;
}

.backdrop__slide.is-active img {
  transform: scale(1);
}

.backdrop__shade {
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.86) 0%, rgba(16, 16, 15, 0.57) 48%, rgba(16, 16, 15, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 10, 9, 0.45) 0%, transparent 28%, rgba(10, 10, 9, 0.62) 100%);
}

.backdrop__grain {
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 3.2vw, 50px) var(--gutter);
}

.brand {
  width: clamp(116px, 10.5vw, 160px);
}

.brand img {
  width: 100%;
  height: auto;
}

.header__contact {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.55);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: border-color 200ms ease;
}

.header__contact:hover {
  border-color: var(--ivory);
}

.header__contact svg,
.button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 260ms var(--ease);
}

.header__contact:hover svg,
.button:hover svg {
  transform: translateX(4px);
}

.main {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(118px, 15vh, 160px) var(--gutter) clamp(28px, 4vw, 58px);
}

.eyebrow {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
}

.eyebrow__pulse {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(237, 50, 55, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  55%, 100% { box-shadow: 0 0 0 8px rgba(237, 50, 55, 0); }
}

.hero {
  width: min(790px, 75vw);
  margin-bottom: clamp(44px, 7vh, 86px);
}

.hero__kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__kicker::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  margin: 0 12px 3px 0;
  background: var(--red);
}

.hero__title {
  margin: 0;
  font-size: clamp(3.4rem, min(7.1vw, 11vh), 7.6rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.053em;
}

.hero__title em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero__copy {
  max-width: 580px;
  margin: clamp(24px, 4vh, 42px) 0 0;
  color: rgba(244, 241, 234, 0.8);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(28px, 4vh, 43px);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 15px 21px 15px 24px;
  color: var(--charcoal);
  background: var(--ivory);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover {
  color: var(--ivory);
  background: var(--red);
}

.email-link {
  padding: 7px 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.42);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 180ms ease;
}

.email-link:hover {
  border-color: var(--ivory);
}

.footerline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-top: clamp(20px, 2.5vh, 34px);
  border-top: 1px solid rgba(244, 241, 234, 0.24);
}

.facts {
  display: flex;
  gap: clamp(28px, 5vw, 84px);
  margin: 0;
}

.fact {
  display: grid;
  gap: 4px;
}

.fact dt {
  order: 2;
  color: rgba(244, 241, 234, 0.57);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact dd {
  order: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1;
}

.slideshow {
  display: flex;
  align-items: center;
  gap: 13px;
}

.slideshow__count {
  min-width: 48px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.slideshow__track {
  width: clamp(78px, 10vw, 150px);
  height: 1px;
  overflow: hidden;
  background: rgba(244, 241, 234, 0.34);
}

.slideshow__track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ivory);
  transform: scaleX(0);
  transform-origin: left;
}

.slideshow__track span.is-running {
  animation: progress 6s linear forwards;
}

@keyframes progress {
  to { transform: scaleX(1); }
}

.slideshow__toggle {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(244, 241, 234, 0.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.pause-icon {
  position: relative;
  width: 7px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.slideshow__toggle.is-paused .pause-icon {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}

.side-note {
  position: absolute;
  top: 50%;
  left: 16px;
  margin: 0;
  color: rgba(244, 241, 234, 0.48);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

body.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

body.is-ready .reveal--1 { transition-delay: 100ms; }
body.is-ready .reveal--2 { transition-delay: 180ms; }
body.is-ready .reveal--3 { transition-delay: 260ms; }
body.is-ready .reveal--4 { transition-delay: 400ms; }
body.is-ready .reveal--5 { transition-delay: 510ms; }
body.is-ready .reveal--6 { transition-delay: 640ms; }

@media (max-width: 820px) {
  .backdrop__shade {
    background:
      linear-gradient(90deg, rgba(16, 16, 15, 0.67), rgba(16, 16, 15, 0.34)),
      linear-gradient(180deg, rgba(10, 10, 9, 0.4), transparent 23%, rgba(10, 10, 9, 0.82) 78%, rgba(10, 10, 9, 0.94));
  }

  .header__contact span,
  .side-note,
  .eyebrow {
    display: none;
  }

  .header__contact {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(244, 241, 234, 0.55);
    border-radius: 50%;
  }

  .main {
    padding-top: 110px;
  }

  .hero {
    width: min(100%, 650px);
    margin-bottom: 38px;
  }

  .hero__title {
    font-size: clamp(3.35rem, 14.5vw, 6.5rem);
  }

  .footerline {
    align-items: center;
  }

  .fact--wide {
    display: none;
  }
}

@media (max-width: 560px) {
  .header {
    padding-top: 24px;
  }

  .brand {
    width: 112px;
  }

  .main {
    justify-content: flex-end;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .hero {
    margin-bottom: 32px;
  }

  .hero__kicker {
    margin-bottom: 13px;
  }

  .hero__title {
    font-size: clamp(3.08rem, 14.8vw, 5.1rem);
    line-height: 0.91;
  }

  .hero__copy {
    display: -webkit-box;
    margin-top: 20px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .button {
    min-height: 50px;
  }

  .email-link {
    font-size: 12px;
  }

  .facts {
    gap: 28px;
  }

  .fact dd {
    font-size: 21px;
  }

  .slideshow__track {
    display: none;
  }
}

@media (max-height: 700px) and (min-width: 561px) {
  .main {
    padding-top: 105px;
    padding-bottom: 22px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .hero__copy {
    margin-top: 18px;
  }

  .hero__actions {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .backdrop__slide:not(:first-child),
  .slideshow {
    display: none;
  }
}
