:root {
  --ivory: #ffffff;
  --ivory-deep: #f3f6fb;
  --ink: #0e1a3a;
  --ink-soft: #1a2c5c;
  --gold: #1e4aa3;
  --gold-bright: #7ea0e6;
  --drape: #0b1630;
  --navy: #122b70;
  --paper: #f7f9fc;
  --line: rgba(14, 26, 58, 0.12);
  --serif: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--ivory);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--navy);
  color: #fff;
}

.az-grain::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.az-drape {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(105deg, var(--drape) 0%, var(--navy) 46%, #ffffff 46.2%);
  clip-path: inset(0 100% 0 0);
}

.az-drape.is-leaving {
  animation: az-drape-out 0.7s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.az-drape.is-entering {
  animation: az-drape-in 0.75s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes az-drape-out {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes az-drape-in {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

.az-ken {
  animation: az-ken 22s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes az-ken {
  from { transform: scale(1.04) translate3d(-1%, 0, 0); }
  to { transform: scale(1.12) translate3d(1.5%, -1%, 0); }
}

.az-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: az-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.az-delay-1 { animation-delay: 0.12s; }
.az-delay-2 { animation-delay: 0.24s; }
.az-delay-3 { animation-delay: 0.38s; }
.az-delay-4 { animation-delay: 0.52s; }

@keyframes az-up {
  to { opacity: 1; transform: none; }
}

.az-chapter {
  min-height: 88vh;
}

.az-swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 0 1px rgba(14,26,58,0.25);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}

.az-swatch.is-on,
.az-swatch:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--ink);
}

.az-accent-bar {
  height: 2px;
  width: 100%;
  transform-origin: left;
  transition: background-color 0.6s ease;
}

.az-cart-drawer {
  transform: translateX(104%);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.az-cart-drawer.is-open {
  transform: translateX(0);
}

.az-cart-item {
  opacity: 0;
  transform: translateY(12px);
  animation: az-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.az-consent {
  transform: translateY(110%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.az-consent.is-show {
  transform: none;
}

.az-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.az-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.18em;
}

.az-icon-sm {
  width: 0.95em;
  height: 0.95em;
}

.az-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.az-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.4s ease;
}

.az-link:hover {
  background-size: 100% 1px;
}

.az-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.az-btn:hover {
  background: var(--ink);
  color: var(--ivory);
}

.az-btn-solid {
  background: var(--ink);
  color: var(--ivory);
}

.az-btn-solid:hover {
  background: transparent;
  color: var(--ink);
}

.az-btn-gold {
  border-color: var(--gold);
  color: var(--navy);
}

.az-btn-gold:hover {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

.az-field {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  color: inherit;
}

.az-field:focus {
  border-bottom-color: var(--ink);
}

.az-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(8, 14, 36, 0.45) 100%);
  pointer-events: none;
}

.prose-az ul {
  list-style: disc;
  padding-left: 1.2rem;
}
.prose-az li {
  margin: 0.4rem 0;
}
.prose-az strong {
  font-weight: 500;
  color: var(--ink);
}

.az-logo {
  height: 36px;
  width: auto;
  display: block;
}

.az-logo-lg {
  height: auto;
  width: min(520px, 86vw);
}

.az-logo-on-dark {
  filter: brightness(0) invert(1);
}

.az-silk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.az-silk-wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 46%;
  opacity: 0.22;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.85) 46%, rgba(255,255,255,0.12) 100%);
  border-radius: 46% 54% 48% 52% / 60% 40% 70% 30%;
  filter: blur(8px);
  animation: az-silk 14s ease-in-out infinite;
}

.az-silk-wave:nth-child(2) {
  top: 18%;
  opacity: 0.16;
  animation-duration: 18s;
  animation-delay: -4s;
  border-radius: 52% 48% 40% 60% / 40% 60% 30% 70%;
}

.az-silk-wave:nth-child(3) {
  top: 42%;
  opacity: 0.28;
  animation-duration: 11s;
  animation-delay: -7s;
}

.az-silk-wave:nth-child(4) {
  top: 62%;
  height: 38%;
  opacity: 0.14;
  animation-duration: 16s;
  animation-delay: -2s;
}

@keyframes az-silk {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg) scaleX(1); }
  33% { transform: translate3d(4%, 6%, 0) rotate(3deg) scaleX(1.08); }
  66% { transform: translate3d(-5%, -4%, 0) rotate(-2deg) scaleX(0.96); }
}

.az-gallery-thumbs button {
  width: 3.4rem;
  height: 4.4rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
  opacity: 0.7;
}
.az-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.az-gallery-thumbs .is-on {
  opacity: 1;
  outline: 2px solid #fff;
}

.az-site-header {
  background: rgba(11, 22, 48, 0.92);
  color: #fff;
  backdrop-filter: blur(14px);
}

.az-headline-bar {
  height: 2.15rem;
  overflow: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.45s ease;
}

.az-headline-viewport {
  position: relative;
  height: 100%;
}

.az-headline-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  text-decoration: none;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease;
}

.az-headline-item.is-on {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.az-headline-item[href]:hover {
  text-decoration: underline;
}

.az-headline-item.is-leaving {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .az-headline-item {
    padding: 0 2.75rem;
    letter-spacing: 0.2em;
  }
}

.az-wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 75;
  width: 3.35rem;
  height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(11, 22, 48, 0.25);
}

.az-wa-float .az-icon {
  width: 1.5rem;
  height: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .az-reveal { opacity: 1; transform: none; }
  .az-ken { animation: none; transform: none; }
  .az-silk-wave { animation: none; }
  .az-headline-item,
  .az-headline-item.is-on,
  .az-headline-item.is-leaving {
    transform: none;
    opacity: 1;
    position: static;
  }
  .az-headline-bar { height: auto; }
  .az-headline-item:not(.is-on) { display: none; }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.55s;
}
