:root {
  --navy: #132c44;
  --paper: #ece9e3;
  --accent: #a68d63;
  --paper-strong: rgba(236, 233, 227, 0.96);
  --ink-soft: rgba(19, 44, 68, 0.72);
  --rule: rgba(19, 44, 68, 0.18);
  --shadow: rgba(19, 44, 68, 0.08);
  --max-width: 760px;
  --ribbon-height: 3rem;
  --masthead-main-height: 7.5rem;
  --masthead-main-height-compact: 4.8rem;
  --masthead-nav-height: 3.4rem;
  --header-offset: calc(var(--ribbon-height) + var(--masthead-main-height) + var(--masthead-nav-height));
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--navy);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

body.drawer-open {
  overflow: hidden;
}

.flash-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.6rem;
  width: min(calc(100% - 2rem), 25rem);
  pointer-events: none;
}

.flash {
  position: relative;
  overflow: hidden;
  padding: 0.9rem 1rem 1.05rem;
  border: 1px solid rgba(19, 44, 68, 0.14);
  background: rgba(236, 233, 227, 0.96);
  color: var(--navy);
  box-shadow: 0 12px 24px rgba(19, 44, 68, 0.08);
  pointer-events: auto;
}

.flash--error {
  border-color: rgba(155, 53, 53, 0.18);
}

.flash__body {
  line-height: 1.55;
}

.flash__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(19, 44, 68, 0.14);
  transform-origin: left center;
  animation: flash-progress 4.6s linear forwards;
}

img {
  display: block;
  max-width: 100%;
}

p,
li {
  line-height: 1.72;
}

.utility-ribbon {
  position: relative;
  max-height: 3rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(236, 233, 227, 0.96);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: max-height 240ms ease, border-color 240ms ease, opacity 180ms ease;
}

.utility-ribbon.is-compact {
  max-height: 0;
  border-bottom-color: transparent;
}

.utility-ribbon__viewport {
  width: 100%;
  overflow: hidden;
}

.utility-ribbon__track {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  width: min(calc(100% - 2.5rem), 1320px);
  margin: 0 auto;
  padding: 0.72rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: opacity 120ms ease;
}

.utility-ribbon.is-compact .utility-ribbon__track {
  opacity: 0;
}

.utility-ribbon__track p {
  margin: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.utility-ribbon__track p:first-child {
  justify-self: start;
}

.utility-ribbon__track p:nth-child(2) {
  justify-self: center;
}

.utility-ribbon__track p:nth-child(3) {
  justify-self: end;
}

.utility-ribbon__track p::after {
  display: none;
}

.utility-ribbon__track p:last-child::after {
  display: none;
}

.utility-ribbon__track p:nth-child(n + 4) {
  display: none;
}

.masthead {
  position: relative;
  background: rgba(236, 233, 227, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.masthead.is-compact {
  box-shadow: 0 10px 30px var(--shadow);
}

.header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.masthead-main,
.masthead-nav {
  width: min(calc(100% - 2.5rem), 1320px);
  margin: 0 auto;
}

.masthead-main {
  position: relative;
  min-height: var(--masthead-main-height);
  transition: min-height 180ms ease;
}

.masthead.is-compact .masthead-main {
  min-height: var(--masthead-main-height-compact);
}

.masthead-control {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  transform: translateY(-50%);
}

.menu-toggle {
  left: 0;
}

.masthead-control__label,
.masthead-login,
.masthead-cta,
.drawer-login,
.masthead-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 0.34rem;
  width: 2.4rem;
}

.menu-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) {
  transform: translateY(0.44rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) {
  transform: translateY(-0.44rem) rotate(-45deg);
}

.masthead-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24rem;
  display: block;
  font-size: 0;
  line-height: 0;
  color: transparent;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  transition: transform 180ms ease;
}

.masthead-brand__logo {
  display: block;
  width: 100%;
  height: auto;
}

.masthead-brand__logo.is-intro-pending {
  opacity: 0;
  transition: opacity 180ms ease;
}

.masthead-brand__logo.is-intro-pending.is-ready {
  opacity: 1;
}

.masthead.is-compact .masthead-brand {
  transform: translate(-50%, -50%) scale(0.77);
}

.masthead-actions {
  position: absolute;
  right: 0;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(-50%);
}

.masthead-login,
.masthead-cta {
  color: var(--navy);
  text-decoration: none;
}

.masthead-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--navy);
  text-decoration: none;
}

.masthead-account svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.masthead-login {
  white-space: nowrap;
}

.masthead-cta,
.drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(19, 44, 68, 0.16);
  border-radius: 999px;
  background: rgba(19, 44, 68, 0.05);
  white-space: nowrap;
}

.masthead-cta--mobile {
  display: none;
}

.masthead-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.6rem, 4vw, 4rem);
  padding: 1rem 0 1.15rem;
  border-top: 1px solid var(--rule);
  transition: max-height 240ms ease, opacity 180ms ease, padding 240ms ease, border-color 240ms ease;
}

.masthead-nav a {
  color: var(--navy);
  text-decoration: none;
}

.masthead.is-compact .masthead-nav {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
  border-top-color: transparent;
}

.site-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(23rem, calc(100vw - 2rem));
  padding: 1.6rem 1.4rem 2rem;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  transform: translateX(-100%);
  transition: transform 220ms ease;
  overflow-y: auto;
}

.site-drawer.is-open {
  transform: translateX(0);
}

.site-drawer__close {
  position: absolute;
  top: 1.2rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.site-drawer__close span {
  position: absolute;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-drawer__close span:first-child {
  transform: rotate(45deg);
}

.site-drawer__close span:last-child {
  transform: rotate(-45deg);
}

.site-drawer__content {
  display: grid;
  gap: 1.35rem;
  max-width: 18.5rem;
  margin-top: 4.75rem;
}

.site-drawer__actions {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.site-drawer .drawer-cta {
  min-height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.drawer-cta,
.drawer-login {
  text-decoration: none;
  color: var(--navy);
}

.drawer-logout {
  margin: 0;
}

.drawer-logout .drawer-login {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.drawer-login {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-drawer__secondary {
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}

.site-drawer__about {
  color: var(--navy);
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(19, 44, 68, 0.18);
}

.page-shell {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
  padding: calc(var(--header-offset) + 2rem) 0 5rem;
  text-align: center;
}

.page-shell--wide {
  width: min(calc(100% - 3rem), 1180px);
}

.page-shell--simple-header {
  padding-top: calc(var(--masthead-main-height-compact) + 0.9rem);
}

.page-hero {
  padding-bottom: 3.25rem;
  border-bottom: 1px solid var(--rule);
}

.page-hero__title {
  max-width: 16ch;
  margin: 0.8rem auto 1.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: 0.93;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}

.page-hero__intro {
  max-width: 46rem;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.eyebrow,
.kicker,
.section-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow {
  margin-bottom: 1rem;
}

.section-display {
  max-width: 16ch;
  margin: 0.9rem auto 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}


.site-footer {
  margin-top: 5rem;
  width: 100%;
  background: var(--navy);
  color: rgba(236, 233, 227, 0.86);
  overflow: hidden;
}

.site-footer__inner {
  width: min(calc(100% - 3rem), 1320px);
  margin: 0 auto;
  padding: 4rem 0 2.25rem;
}

.footer-links a,
.footer-meta a {
  color: rgba(236, 233, 227, 0.72);
  text-decoration: none;
}

.footer-copy {
  max-width: 24rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(236, 233, 227, 0.76);
}

.footer-line {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  min-width: 0;
  max-width: 28rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(236, 233, 227, 0.22);
  color: var(--paper);
}

.footer-line > span {
  min-width: 0;
}

.footer-line > span:first-child {
  overflow-wrap: anywhere;
}

.footer-origin {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start;
  text-align: left;
  max-width: 100%;
  white-space: normal;
}

.footer-origin img {
  width: 1rem;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(236, 233, 227, 0.14);
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}

.footer-brand {
  display: inline-block;
  width: min(100%, 24rem);
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.footer-brand img {
  display: block;
  width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .masthead-main,
  .masthead-nav {
    width: min(calc(100% - 1.5rem), 1320px);
  }

  :root {
    --masthead-main-height: 6.2rem;
    --masthead-main-height-compact: 4.5rem;
    --masthead-nav-height: 0rem;
  }

  .utility-ribbon__track {
    display: flex;
    justify-content: flex-start;
    grid-template-columns: none;
    gap: 1.6rem;
    width: max-content;
    margin: 0;
    padding: 0.62rem 0;
    animation: ribbon-scroll 18s linear infinite;
  }

  .utility-ribbon__track p:nth-child(n + 4) {
    display: inline-flex;
  }

  .utility-ribbon__track p::after {
    content: "";
    display: block;
    width: 0.28rem;
    height: 0.28rem;
    margin-left: 1.6rem;
    border-radius: 999px;
    background: rgba(19, 44, 68, 0.38);
  }

  .masthead-brand {
    width: 19rem;
  }

  .masthead.is-compact .masthead-brand {
    transform: translate(-50%, -50%) scale(0.76);
  }

  .masthead-actions {
    gap: 0;
  }

  .masthead-login {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
  }

  .masthead-account {
    width: 2.35rem;
    height: 2.35rem;
  }

  .masthead-cta {
    display: none;
  }

  .masthead-nav {
    display: none;
  }

  .page-shell {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .page-shell--wide {
    width: min(calc(100% - 2rem), 980px);
  }

  .site-footer__inner {
    width: min(calc(100% - 2rem), 1320px);
    padding-top: 3.25rem;
  }

  .footer-bottom {
    margin-top: 4rem;
  }
}

@media (max-width: 560px) {
  :root {
    --ribbon-height: 2.4rem;
    --masthead-main-height: 5.6rem;
    --masthead-main-height-compact: 4.65rem;
    --masthead-nav-height: 0rem;
  }

  .utility-ribbon__track {
    gap: 1.25rem;
    padding: 0.52rem 0;
    font-size: 0.56rem;
    animation-duration: 18s;
  }

  .utility-ribbon__track p::after {
    margin-left: 1.25rem;
    width: 0.24rem;
    height: 0.24rem;
  }

  .masthead-main {
    gap: 0.75rem;
  }

  .masthead-actions {
    gap: 0.45rem;
  }

  .masthead-control {
    gap: 0.7rem;
  }

  .masthead-control__label {
    display: none;
  }

  .menu-toggle__icon {
    width: 1.9rem;
  }

  .masthead-brand {
    width: 13.5rem;
  }

  .masthead.is-compact .masthead-brand {
    transform: translate(-50%, -50%) scale(0.83);
  }

  .masthead-login {
    display: none;
  }

  .masthead-cta--mobile {
    display: inline-flex;
    min-height: 2.18rem;
    padding: 0.42rem 0.72rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .masthead-account {
    width: 2.2rem;
    height: 2.2rem;
  }

  .page-shell {
    padding-bottom: 3rem;
  }

  .flash-stack {
    right: 50%;
    bottom: 0.8rem;
    width: min(calc(100% - 1rem), 24rem);
    transform: translateX(50%);
  }

  .page-hero__title {
    max-width: none;
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .section-display {
    max-width: none;
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }

  .site-footer {
    margin-top: 4rem;
  }

  .site-footer__inner {
    padding: 3rem 0 2rem;
  }

  .footer-bottom,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    margin-top: 2.25rem;
    gap: 2.4rem;
  }

  .footer-brand {
    order: 2;
  }

  .footer-meta {
    order: 1;
  }

  .footer-brand {
    width: min(100%, 18rem);
  }
}

@media (min-width: 1100px) {
  .page-hero__title {
    max-width: 18ch;
  }

  .page-hero__intro {
    max-width: 50rem;
  }

  .section-display {
    max-width: 18ch;
  }
}

@keyframes ribbon-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes flash-progress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .utility-ribbon__track {
    animation: none;
  }
}
