:root {
  --ivory: #f2eee3;
  --ivory-deep: #e7e0d2;
  --graphite: #241f1c;
  --ink-soft: #433e39;
  --bronze: #6e4e2c;
  --bronze-deep: #5c3f24;
  --gold: #c4a36a;
  --gold-soft: #e4c9a2;
  --terracotta: #a35a38;
  --olive: #2c3624;
  --olive-soft: #3f4a32;
  --serif: "Bodoni Moda", Didot, "Bodoni MT", "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ribbon-opacity: 0.2;
}

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

html {
  background: var(--ivory);
  color-scheme: only light;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 42%, #f7f3ea 0%, var(--ivory) 46%, #e9e1d2 100%);
  color: var(--graphite);
  font-family: var(--sans);
  font-weight: 300;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
}

::selection {
  background: #e4c9a2;
  color: var(--graphite);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.layer {
  position: fixed;
  inset: -48px;
  z-index: 0;
  pointer-events: none;
}

.wash {
  position: absolute;
  pointer-events: none;
}

.wash-terra {
  width: 58vw;
  height: 78vh;
  left: -14vw;
  top: -20vh;
  background: radial-gradient(ellipse at 42% 42%, rgba(163, 90, 56, 0.22), rgba(163, 90, 56, 0) 68%);
  animation: drift-a 26s var(--ease) infinite;
}

.wash-olive {
  width: 52vw;
  height: 72vh;
  right: -16vw;
  bottom: -22vh;
  background: radial-gradient(ellipse at 58% 58%, rgba(63, 74, 50, 0.2), rgba(63, 74, 50, 0) 70%);
  animation: drift-b 30s var(--ease) infinite;
}

.wash-gold {
  width: min(46vw, 540px);
  height: min(46vw, 540px);
  left: 50%;
  top: 40%;
  margin-left: calc(min(46vw, 540px) / -2);
  margin-top: calc(min(46vw, 540px) / -2);
  background: radial-gradient(circle, rgba(196, 163, 106, 0.2), rgba(196, 163, 106, 0) 68%);
  animation: drift-a 22s var(--ease) infinite;
}

.ribbon {
  position: absolute;
  height: auto;
  opacity: var(--ribbon-opacity);
  pointer-events: none;
}

.ribbon-a {
  width: min(38vw, 520px);
  left: -4vw;
  top: -6vh;
  animation: drift-a 19s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(90deg, #000 28%, transparent 76%);
  mask-image: linear-gradient(90deg, #000 28%, transparent 76%);
}

.ribbon-b {
  width: min(36vw, 500px);
  right: -6vw;
  bottom: -8vh;
  animation: drift-b 23s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(270deg, #000 28%, transparent 76%);
  mask-image: linear-gradient(270deg, #000 28%, transparent 76%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, transparent 40%, rgba(92, 68, 40, 0.07) 100%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-repeat: repeat;
  background-size: 180px 180px;
}

.crop {
  position: fixed;
  z-index: 3;
  width: 22px;
  height: 22px;
  pointer-events: none;
  color: rgba(110, 78, 44, 0.2);
}

.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.crop::before {
  width: 100%;
  height: 1px;
}

.crop::after {
  width: 1px;
  height: 100%;
}

.crop-tl { top: 16px; left: 16px; }
.crop-tl::before, .crop-tl::after { top: 0; left: 0; }

.crop-tr { top: 16px; right: 16px; }
.crop-tr::before { top: 0; right: 0; }
.crop-tr::after { top: 0; right: 0; }

.crop-bl { bottom: 16px; left: 16px; }
.crop-bl::before { bottom: 0; left: 0; }
.crop-bl::after { bottom: 0; left: 0; }

.crop-br { bottom: 16px; right: 16px; }
.crop-br::before { bottom: 0; right: 0; }
.crop-br::after { bottom: 0; right: 0; }

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    max(clamp(40px, 5vh, 64px), env(safe-area-inset-top))
    max(clamp(22px, 4vw, 64px), env(safe-area-inset-right))
    max(clamp(22px, 3.5vh, 48px), env(safe-area-inset-bottom))
    max(clamp(22px, 4vw, 64px), env(safe-area-inset-left));
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(18px, 2.6vh, 34px);
  min-height: 0;
  padding-bottom: clamp(8px, 2vh, 28px);
}

.emblem-float {
  width: min(76vw, 44vh, 500px);
}

.emblem {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
}

.emblem-glow,
.emblem-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.emblem-glow {
  inset: -7%;
  background: radial-gradient(circle at 50% 46%, rgba(255, 244, 214, 0.0) 42%, rgba(212, 176, 112, 0.0) 62%, transparent 74%);
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 0;
}

.emblem-sheen {
  z-index: 2;
  overflow: hidden;
}

.emblem-sheen::before {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -70%;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 250, 236, 0.78), transparent);
  transform: translateX(0) skewX(-16deg);
  opacity: 0;
}

.emblem img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(72, 48, 24, 0.1));
  transition: transform 0.8s var(--ease), filter 0.7s ease;
}

@media (hover: hover) and (pointer: fine) {
  .emblem:hover .emblem-glow {
    opacity: 1;
    background: radial-gradient(circle at 50% 44%, rgba(255, 246, 220, 0.72) 0%, rgba(214, 180, 120, 0.34) 38%, rgba(196, 163, 106, 0) 68%);
  }

  .emblem:hover img {
    transform: scale(1.022) translateY(-3px);
    filter:
      drop-shadow(0 18px 26px rgba(72, 48, 24, 0.12))
      drop-shadow(0 0 28px rgba(214, 180, 120, 0.55))
      brightness(1.05);
  }

  .emblem:hover .emblem-sheen::before {
    opacity: 1;
    animation: sheen 1.15s var(--ease);
  }
}


.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 920px);
  gap: clamp(14px, 1.7vh, 20px);
}

.headline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  column-gap: 0.28em;
  row-gap: 0.04em;
  margin: 0;
  max-width: 100%;
  color: #c7ab8c;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 4.7vw, 4.85rem);
  font-optical-sizing: auto;
  line-height: 0.92;
  text-transform: uppercase;
  transition: color 0.45s ease;
}

.word {
  display: inline-block;
  overflow: hidden;
  padding: 0.1em 0.02em 0.14em;
  margin: -0.1em 0 -0.14em;
}

.word span {
  display: inline-block;
  letter-spacing: 0.12em;
  margin-right: -0.12em;
}

.rule {
  display: block;
  width: 72px;
  height: 1px;
  background: rgba(110, 78, 44, 0.65);
  transform-origin: center;
}

.lede {
  margin: 0;
  max-width: 34rem;
  color: rgba(67, 62, 57, 0.78);
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.line {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding-top: clamp(8px, 1.4vh, 14px);
}

.signoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.swatches {
  display: flex;
  gap: 7px;
}

.swatch {
  display: block;
  width: 18px;
  height: 1px;
}

.swatch-terra { background: var(--terracotta); }
.swatch-gold { background: #b8925a; }
.swatch-olive { background: var(--olive-soft); }

.signature {
  margin: 0;
  color: rgba(58, 52, 46, 0.55);
  font-size: clamp(0.56rem, 1.1vw, 0.66rem);
  font-weight: 400;
  letter-spacing: clamp(0.14em, 0.32vw, 0.26em);
  line-height: 1.4;
  text-transform: uppercase;
}

.follow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  margin-top: clamp(8px, 1.2vh, 14px);
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(110, 78, 44, 0.38);
  color: var(--graphite);
  background: rgba(255, 252, 247, 0.28);
  box-shadow: 0 0 0 rgba(92, 68, 40, 0);
  font-family: var(--sans);
  font-size: clamp(0.6rem, 1.05vw, 0.68rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, color 0.45s ease;
}

.follow-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  transition: transform 0.45s var(--ease);
}

.arrow {
  display: inline-block;
  color: var(--bronze);
  transition: transform 0.45s var(--ease), color 0.45s ease;
}

.follow:hover,
.follow:focus-visible {
  color: var(--graphite);
  background: rgba(228, 206, 168, 0.42);
  border-color: rgba(110, 78, 44, 0.62);
  box-shadow: 0 12px 28px rgba(92, 68, 40, 0.1);
}

.follow:hover .follow-inner,
.follow:focus-visible .follow-inner {
  transform: translateY(-2px);
}

.follow:hover .arrow,
.follow:focus-visible .arrow {
  color: var(--bronze-deep);
  transform: translate3d(3px, -3px, 0);
}

.follow:focus-visible,
.credit a:focus-visible {
  outline: 1px solid var(--graphite);
  outline-offset: 4px;
}

.light {
  --lx: 50%;
  --ly: 36%;
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    72vmax 54vmax at var(--lx) var(--ly),
    rgba(255, 248, 234, 0.72) 0%,
    rgba(232, 210, 168, 0.28) 24%,
    rgba(198, 168, 116, 0.1) 46%,
    rgba(242, 238, 227, 0) 70%
  );
}

.credit {
  margin: 0;
  color: rgba(146, 134, 120, 0.55);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-align: center;
}

.credit a,
.credit a:link,
.credit a:visited {
  color: rgba(146, 134, 120, 0.62);
  text-decoration: none;
  transition: color 0.45s ease;
}

.credit a:hover,
.credit a:focus-visible {
  color: rgba(110, 78, 44, 0.72);
}

.will-animate .wash,
.will-animate .ribbon,
.will-animate .emblem,
.will-animate .headline,
.will-animate .lede,
.will-animate .swatches,
.will-animate .signature,
.will-animate .follow,
.will-animate .credit {
  opacity: 0;
}

.will-animate .rule {
  transform: scaleX(0);
}

.is-shown .wash,
.is-shown .emblem,
.is-shown .headline,
.is-shown .lede,
.is-shown .swatches,
.is-shown .signature,
.is-shown .follow,
.is-shown .credit,
.is-shown .word span,
.is-shown .lede .line-inner {
  opacity: 1 !important;
  transform: none !important;
}

.is-shown .ribbon {
  opacity: var(--ribbon-opacity) !important;
  transform: none !important;
}

.is-shown .rule {
  transform: none !important;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, 18px, 0); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-14px, -16px, 0); }
}

@keyframes sheen {
  from { transform: translateX(0) skewX(-16deg); }
  to { transform: translateX(320%) skewX(-16deg); }
}

@media (hover: none) {
  .follow:active {
    background: rgba(228, 206, 168, 0.42);
    border-color: rgba(110, 78, 44, 0.62);
  }
}

@media (min-width: 1600px) {
  .emblem-float {
    width: min(34vw, 40vh, 540px);
  }

  .headline {
    font-size: clamp(3.4rem, 3.1vw, 5.6rem);
  }
}

@media (max-width: 720px) {
  :root {
    --ribbon-opacity: 0.2;
  }

  .ribbon-a,
  .ribbon-b {
    width: 64vw;
  }

  .ribbon-a { left: -26vw; top: -4vh; }
  .ribbon-b { right: -28vw; bottom: -2vh; }

  .wash-terra,
  .wash-olive {
    opacity: 0.85;
  }

  .crop {
    width: 14px;
    height: 14px;
  }

  .crop-tl, .crop-tr { top: 10px; }
  .crop-bl, .crop-br { bottom: 10px; }
  .crop-tl, .crop-bl { left: 10px; }
  .crop-tr, .crop-br { right: 10px; }
}

@media (max-width: 420px) {
  .headline {
    font-size: clamp(0.92rem, 4.15vw, 1.2rem);
    column-gap: 0.22em;
  }

  .word span {
    letter-spacing: 0.07em;
    margin-right: -0.07em;
  }

  .follow {
    letter-spacing: 0.1em;
    padding: 0.8rem 0.75rem;
  }

  .signature {
    letter-spacing: 0.12em;
  }
}

@media (max-height: 740px) and (min-width: 721px) {
  .emblem-float {
    width: min(34vh, 300px);
  }

  .page {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  .stage {
    gap: 8px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .emblem-float {
    width: min(24vh, 180px);
  }

  .lede {
    font-size: 0.86rem;
  }

  .page {
    padding-top: 24px;
    padding-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wash,
  .ribbon,
  .arrow,
  .follow,
  .follow-inner,
  .credit a,
  .emblem img,
  .emblem-glow,
  .emblem-sheen::before {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .follow {
    border: 1px solid ButtonText;
  }
}
