:root {
  --paper: #f4f0e7;
  --paper-deep: #e9e1d2;
  --ink: #171715;
  --ink-soft: #69645c;
  --night: #11110f;
  --night-soft: #25231f;
  --gold: #b9944f;
  --gold-light: #d8bd83;
  --gold-dark: #8d6c31;
  --white: #fffefa;
  --line: rgba(23, 23, 21, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 2%, rgba(185, 148, 79, 0.14), transparent 30rem),
    linear-gradient(135deg, #f8f5ee 0%, var(--paper) 48%, #eee7da 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  background: var(--night);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.page-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1rem, 2.6vw, 2.5rem);
  place-items: center;
}

.transition-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(22rem, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  width: min(100%, 88rem);
  min-height: min(52rem, calc(100svh - clamp(2rem, 5.2vw, 5rem)));
  overflow: hidden;
  border: 1px solid rgba(23, 23, 21, 0.09);
  background: rgba(255, 254, 250, 0.84);
  box-shadow: 0 2.5rem 7rem rgba(39, 33, 21, 0.15);
  isolation: isolate;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: clamp(1.4rem, 3vw, 2.75rem);
  overflow: hidden;
}

.brand-panel--legacy {
  grid-column: 1;
  grid-row: 1;
  background: var(--white);
}

.brand-panel--legacy::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: var(--line);
  content: "";
}

.brand-panel--new {
  grid-column: 1;
  grid-row: 2;
  min-height: 16rem;
  background:
    radial-gradient(circle at 74% 0%, rgba(216, 189, 131, 0.16), transparent 46%),
    linear-gradient(145deg, #191815, var(--night));
  color: var(--white);
}

.brand-panel__topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-panel__label,
.brand-panel__number {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-panel__label {
  color: var(--ink-soft);
}

.brand-panel__number {
  color: var(--gold-dark);
}

.brand-panel--new .brand-panel__label {
  color: rgba(255, 254, 250, 0.58);
}

.brand-panel--new .brand-panel__number {
  color: var(--gold-light);
}

.legacy-brand,
.new-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.legacy-brand {
  padding-right: clamp(0rem, 4vw, 3rem);
}

.legacy-brand__logo {
  width: min(100%, 22rem);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.legacy-brand__caption,
.new-brand__caption {
  margin: 1.15rem 0 0;
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  font-style: italic;
}

.legacy-brand__caption {
  color: var(--ink-soft);
}

.new-brand__caption {
  color: rgba(255, 254, 250, 0.55);
}

.brand-panel__transition {
  position: absolute;
  right: clamp(1.4rem, 3vw, 2.75rem);
  bottom: clamp(1.5rem, 3vw, 2.75rem);
  left: clamp(1.4rem, 3vw, 2.75rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold-dark);
}

.brand-panel__transition span {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 108, 49, 0.55));
}

.brand-panel__transition svg {
  width: 3rem;
  flex: 0 0 auto;
}

.new-brand {
  min-width: 0;
}

.new-brand__glow {
  position: absolute;
  top: 50%;
  left: 18%;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(216, 189, 131, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 5rem rgba(185, 148, 79, 0.08);
  transform: translate(-50%, -50%);
}

.new-brand__logo {
  position: relative;
  z-index: 1;
  width: min(100%, 20rem);
  height: auto;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.3));
}

.message-panel {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(2rem, 5.8vw, 6rem) clamp(1.7rem, 5.5vw, 5.8rem) clamp(2rem, 4.2vw, 4.25rem);
  background:
    linear-gradient(rgba(255, 254, 250, 0.93), rgba(255, 254, 250, 0.93)),
    repeating-linear-gradient(90deg, transparent 0 4.95rem, rgba(23, 23, 21, 0.035) 5rem);
}

.message-panel::before {
  position: absolute;
  top: clamp(2rem, 4vw, 4rem);
  right: clamp(1.5rem, 3vw, 3rem);
  width: clamp(6rem, 12vw, 11rem);
  aspect-ratio: 1;
  border-top: 1px solid rgba(185, 148, 79, 0.45);
  border-right: 1px solid rgba(185, 148, 79, 0.45);
  content: "";
  pointer-events: none;
}

.message-panel__copy,
.message-panel__action {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(1.4rem, 3vw, 2.7rem);
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.1rem;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6vw, 7.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-wrap: balance;
}

h1 em {
  display: block;
  margin-top: 0.12em;
  color: var(--gold-dark);
  font-weight: 400;
}

.lead {
  max-width: 35rem;
  margin: clamp(1.7rem, 3vw, 3rem) 0 0;
  color: #49463f;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  letter-spacing: -0.02em;
  line-height: 1.7;
}

.lead strong {
  color: var(--ink);
  font-weight: 650;
}

.message-panel__action {
  width: min(100%, 31rem);
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 4.2rem;
  padding: 1rem 1.25rem 1rem 1.55rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  box-shadow: 0 0.8rem 2rem rgba(141, 108, 49, 0.2);
  color: var(--night);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms var(--ease-out);
}

.primary-button svg {
  width: 1.55rem;
  height: 1.55rem;
  transition: transform 260ms var(--ease-out);
}

.primary-button:hover {
  background: var(--night);
  box-shadow: 0 1rem 2.8rem rgba(23, 23, 21, 0.22);
  color: var(--white);
  transform: translateY(-2px);
}

.primary-button:hover svg {
  transform: translateX(0.24rem);
}

.primary-button:focus-visible,
.text-button:focus-visible,
.card-footer a:focus-visible {
  outline: 3px solid rgba(185, 148, 79, 0.42);
  outline-offset: 4px;
}

.redirect-status {
  margin-top: 1.15rem;
}

.redirect-status__text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.redirect-status p,
.text-button {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.redirect-status p {
  margin: 0;
}

.text-button {
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.text-button:hover {
  color: var(--ink);
}

.progress-track {
  height: 1px;
  margin-top: 0.8rem;
  overflow: hidden;
  background: rgba(23, 23, 21, 0.12);
}

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-dark);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 1s linear;
}

.card-footer {
  position: absolute;
  right: clamp(1.7rem, 5.5vw, 5.8rem);
  bottom: 1rem;
  left: calc(41.85% + clamp(1.7rem, 5.5vw, 5.8rem));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: #8a847b;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-footer p {
  margin: 0;
}

.card-footer a {
  color: var(--gold-dark);
  text-decoration: none;
}

.noscript-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.9rem 1rem;
  background: var(--night);
  color: var(--white);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 1rem;
  }

  .transition-card {
    grid-template-columns: minmax(13rem, 0.72fr) minmax(20rem, 1.2fr);
    min-height: calc(100svh - 2rem);
  }

  .brand-panel {
    padding: 1.5rem;
  }

  .brand-panel__transition {
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
  }

  .message-panel {
    padding-right: 2.25rem;
    padding-left: 2.25rem;
  }

  .card-footer {
    right: 2.25rem;
    left: calc(37.5% + 2.25rem);
  }

  .card-footer p:first-child {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    background: var(--white);
  }

  body::before {
    opacity: 0.1;
  }

  .page-shell {
    display: block;
    padding: 0;
  }

  .transition-card {
    display: flex;
    min-height: 100svh;
    border: 0;
    box-shadow: none;
    flex-direction: column;
  }

  .brand-panel {
    min-height: auto;
    padding: 1.5rem clamp(1.35rem, 6.5vw, 2.1rem);
  }

  .brand-panel--legacy {
    min-height: 13rem;
    order: 1;
  }

  .brand-panel--legacy::after {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 1px;
  }

  .brand-panel--new {
    min-height: 13rem;
    order: 2;
  }

  .brand-panel__topline {
    margin-bottom: 1.2rem;
  }

  .legacy-brand,
  .new-brand {
    min-height: 7.5rem;
    justify-content: flex-start;
  }

  .legacy-brand {
    padding-right: 4rem;
  }

  .legacy-brand__logo {
    width: min(55vw, 14rem);
  }

  .new-brand__logo {
    width: min(74vw, 18rem);
  }

  .legacy-brand__caption,
  .new-brand__caption {
    margin-top: 0.65rem;
  }

  .brand-panel__transition {
    top: 55%;
    right: 1.5rem;
    bottom: auto;
    left: auto;
    width: 3rem;
    transform: translateY(-50%);
  }

  .brand-panel__transition span {
    display: none;
  }

  .new-brand__glow {
    left: 20%;
    width: 9rem;
    height: 9rem;
  }

  .message-panel {
    order: 3;
    padding: clamp(3rem, 12vw, 5rem) clamp(1.35rem, 6.5vw, 2.1rem) 6.4rem;
    background: var(--white);
  }

  .message-panel::before {
    top: 2rem;
    right: 1.5rem;
    width: 4rem;
  }

  h1 {
    max-width: 9.8ch;
    font-size: clamp(3rem, 14vw, 5.25rem);
  }

  .message-panel__action {
    width: 100%;
  }

  .primary-button {
    min-height: 4rem;
  }

  .card-footer {
    position: absolute;
    right: clamp(1.35rem, 6.5vw, 2.1rem);
    bottom: 1.15rem;
    left: clamp(1.35rem, 6.5vw, 2.1rem);
    flex-wrap: wrap;
  }

  .card-footer p:first-child {
    display: block;
  }
}

@media (max-width: 430px) {
  .brand-panel--legacy,
  .brand-panel--new {
    min-height: 11.2rem;
  }

  .brand-panel__label,
  .brand-panel__number {
    font-size: 0.6rem;
  }

  .legacy-brand,
  .new-brand {
    min-height: 6rem;
  }

  .legacy-brand__caption,
  .new-brand__caption {
    display: none;
  }

  .message-panel {
    padding-top: 3.2rem;
  }

  .eyebrow {
    letter-spacing: 0.2em;
  }

  .lead {
    line-height: 1.6;
  }

  .card-footer {
    justify-content: center;
  }

  .card-footer p:first-child {
    display: none;
  }
}

@media (max-height: 730px) and (min-width: 701px) {
  .transition-card {
    min-height: 43rem;
  }

  .message-panel {
    padding-top: 3rem;
  }

  h1 {
    font-size: clamp(3.8rem, 6.5vw, 5.8rem);
  }

  .lead {
    margin-top: 1.5rem;
  }

  .message-panel__action {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .transition-card {
    animation: card-enter 900ms var(--ease-out) both;
  }

  .brand-panel--legacy,
  .brand-panel--new,
  .message-panel__copy,
  .message-panel__action {
    animation: content-enter 900ms var(--ease-out) both;
  }

  .brand-panel--new {
    animation-delay: 120ms;
  }

  .message-panel__copy {
    animation-delay: 180ms;
  }

  .message-panel__action {
    animation-delay: 280ms;
  }

  @keyframes card-enter {
    from {
      opacity: 0;
      transform: translateY(1rem) scale(0.992);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes content-enter {
    from {
      opacity: 0;
      transform: translateY(0.9rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

@media print {
  .redirect-status,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }

  .page-shell {
    padding: 0;
  }

  .transition-card {
    box-shadow: none;
  }
}
