:root {
  --ink: #17191d;
  --soft-ink: #4d5058;
  --paper: #f7f5ef;
  --white: #ffffff;
  --line: #d9d7d0;
  --coral: #ef644c;
  --blue: #1b5fa7;
  --green: #2e7359;
  --shadow: 0 18px 50px rgba(23, 25, 29, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(23, 25, 29, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 6px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--coral);
}

.nav-links { display: flex; gap: clamp(16px, 3vw, 34px); }
.nav-links a { color: inherit; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: #ffb4a6; }

.inquiry-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px 8px 15px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.inquiry-button strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  font-size: 0.78rem;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(860px, 94vh);
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 50% 47%; }
.hero-shade { z-index: 1; background: linear-gradient(90deg, rgba(10,12,15,0.93) 0%, rgba(10,12,15,0.62) 43%, rgba(10,12,15,0.14) 76%), linear-gradient(0deg, rgba(10,12,15,0.7), transparent 48%); }

.ring-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.flying-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--size);
  aspect-ratio: 1;
  opacity: var(--opacity);
  filter: drop-shadow(0 22px 18px rgba(0,0,0,0.46));
  animation: ring-flight var(--duration) linear var(--delay) infinite;
  will-change: transform;
}

.flying-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--position, 50% 50%);
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 50%;
  clip-path: circle(48% at 50% 50%);
}

.ring-sky.is-paused .flying-ring { animation-play-state: paused; }

.motion-toggle {
  position: absolute;
  top: 84px;
  right: 22px;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: rgba(23,25,29,0.7);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(92px, 15vh, 154px) clamp(18px, 7vw, 108px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 11vw, 9rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy > p:last-of-type { max-width: 610px; margin: 24px 0 0; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-actions, .contact-actions, .drawer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--ink); background: var(--white); }
.button-accent { color: var(--white); background: var(--coral); }
.button-dark { color: var(--white); background: var(--ink); }

.hero-note {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: 32px;
  left: clamp(18px, 4vw, 58px);
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.4);
  font-size: 0.8rem;
  font-weight: 750;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 40px;
  align-items: center;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 7vw, 108px);
  background: var(--white);
}
.intro-band > p { max-width: 780px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 3.2rem); line-height: 1.15; }
.intro-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.intro-facts span { padding: 14px 10px; border-top: 2px solid var(--ink); color: var(--soft-ink); font-size: 0.82rem; font-weight: 800; }

.rings-section, .custom-section, .maker-section { width: min(1240px, calc(100% - 36px)); margin: 0 auto; }
.rings-section { padding: clamp(70px, 10vw, 128px) 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr); gap: 38px; align-items: end; margin-bottom: 36px; }
.section-heading h2, .custom-form h2, .maker-copy h2, .order-section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 6vw, 5.8rem); font-weight: 500; line-height: 0.95; }
.section-heading > p, .custom-form > p, .maker-copy > p, .order-section p { margin: 0; color: var(--soft-ink); line-height: 1.65; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.product-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #d8d5ce; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.product-card:hover .product-photo img { transform: scale(1.025); }
.photo-dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.photo-dot { width: 11px; height: 11px; padding: 0; background: rgba(255,255,255,0.55); border: 1px solid var(--ink); border-radius: 50%; cursor: pointer; }
.photo-dot.is-active { background: var(--coral); }
.product-body { display: grid; gap: 10px; padding: 18px; }
.product-topline { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.product-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; }
.availability { flex: 0 0 auto; color: var(--green); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
.product-card p { min-height: 48px; margin: 0; color: var(--soft-ink); line-height: 1.5; }
.product-body .button { width: 100%; margin-top: 4px; }

.custom-section { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); margin-bottom: clamp(70px, 10vw, 130px); background: var(--white); box-shadow: var(--shadow); }
.custom-visual { position: relative; min-height: 720px; overflow: hidden; }
.custom-visual > img { width: 100%; height: 100%; object-fit: cover; }
.custom-caption { position: absolute; right: 18px; bottom: 18px; left: 18px; padding: 18px; color: var(--white); background: rgba(23,25,29,0.86); }
.custom-caption span, .custom-caption strong { display: block; }
.custom-caption span { margin-bottom: 4px; color: #ffb4a6; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.custom-form { display: grid; align-content: center; gap: 20px; padding: clamp(28px, 6vw, 78px); }
.custom-form fieldset { margin: 0; padding: 0; border: 0; }
.custom-form legend, .custom-form label { color: var(--ink); font-size: 0.86rem; font-weight: 800; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.swatch { width: 42px; height: 42px; padding: 0; background: var(--swatch); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.is-active { box-shadow: 0 0 0 3px var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.custom-form label { display: grid; gap: 8px; }
.custom-form select, .custom-form textarea { width: 100%; padding: 12px; color: var(--ink); background: var(--paper); border: 1px solid #b8b6af; border-radius: 5px; }
.custom-form textarea { resize: vertical; line-height: 1.5; }

.maker-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 8vw, 110px); align-items: center; padding-bottom: clamp(80px, 10vw, 140px); }
.maker-copy { display: grid; gap: 18px; }
.text-link { width: fit-content; color: var(--blue); font-weight: 850; text-underline-offset: 4px; }
.maker-gallery { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 14px; align-items: end; }
.maker-gallery img { width: 100%; height: 440px; object-fit: cover; }
.maker-gallery img:first-child { height: 340px; }

.order-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr); gap: 48px; align-items: center; padding: clamp(54px, 8vw, 100px) clamp(18px, 7vw, 108px); color: var(--white); background: var(--ink); }
.order-section .eyebrow { color: #ff9d8c; }
.order-section p { max-width: 650px; margin-top: 18px; color: #c9cbd0; }
.contact-actions { align-items: center; }
.light-link { color: var(--white); }

.bag-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; }
.bag-drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(0,0,0,0.58); border: 0; opacity: 0; transition: opacity 180ms ease; }
.bag-drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; width: min(460px, 100%); height: 100%; padding: 24px; overflow: auto; background: var(--paper); transform: translateX(100%); transition: transform 180ms ease; }
.bag-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.close-button { width: 40px; height: 40px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.bag-items { display: grid; gap: 10px; margin-top: 20px; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.bag-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.bag-line strong, .bag-line span { display: block; }
.bag-line span { margin-top: 4px; color: var(--soft-ink); font-size: 0.82rem; }
.remove-button { padding: 6px; color: #a03828; background: transparent; border: 0; cursor: pointer; font-weight: 800; }
.bag-empty { margin: 26px 0; color: var(--soft-ink); }
.drawer-actions { display: grid; margin-top: auto; padding-top: 24px; }
.drawer-actions p { margin: 2px 0 0; color: var(--soft-ink); font-size: 0.78rem; text-align: center; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 26px clamp(18px, 4vw, 56px); color: #c9cbd0; background: #0e1013; font-size: 0.82rem; }
.footer-brand { color: var(--white); }
.site-footer p { margin: 0; text-align: center; }
.site-footer > a:last-child { justify-self: end; color: var(--white); }

@keyframes ring-flight {
  0% { transform: translate3d(calc(108vw + var(--offset-x)), calc(-32vh + var(--offset-y)), 0) rotate(var(--start-rotate)) scale(0.72); }
  34% { transform: translate3d(calc(62vw + var(--offset-x)), calc(12vh + var(--offset-y)), 0) rotate(calc(var(--start-rotate) + 145deg)) scale(1); }
  68% { transform: translate3d(calc(14vw + var(--offset-x)), calc(54vh + var(--offset-y)), 0) rotate(calc(var(--start-rotate) + 290deg)) scale(0.88); }
  100% { transform: translate3d(calc(-38vw + var(--offset-x)), calc(112vh + var(--offset-y)), 0) rotate(calc(var(--start-rotate) + 470deg)) scale(0.62); }
}

@media (max-width: 900px) {
  .intro-band, .section-heading, .custom-section, .maker-section, .order-section { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-visual { min-height: 540px; }
  .maker-copy { max-width: 720px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer p, .site-footer > a, .site-footer > a:last-child { justify-self: center; }
}

@media (max-width: 660px) {
  .site-header { min-height: 62px; padding: 9px 12px; }
  .nav-links { display: none; }
  .inquiry-button { min-height: 40px; }
  .hero { min-height: 88vh; }
  .hero-image { object-position: 58% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,12,15,0.92) 0%, rgba(10,12,15,0.45) 66%, rgba(10,12,15,0.08) 100%); }
  .motion-toggle { top: 74px; right: 12px; width: 38px; height: 38px; }
  .flying-ring { width: min(var(--size), 130px); opacity: 0.72; }
  .hero-copy { width: calc(100% - 28px); margin: 0 14px 116px; }
  .hero h1 { font-size: clamp(3.5rem, 21vw, 6.4rem); }
  .hero-actions { display: grid; }
  .hero-note { right: 14px; bottom: 20px; left: 14px; gap: 10px; justify-content: space-between; font-size: 0.68rem; }
  .intro-band { padding-right: 18px; padding-left: 18px; }
  .intro-facts { grid-template-columns: 1fr; }
  .intro-facts span { padding: 10px 0; }
  .rings-section, .custom-section, .maker-section { width: min(100% - 24px, 1240px); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card p { min-height: 0; }
  .custom-visual { min-height: 420px; }
  .custom-form { padding: 28px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .maker-gallery { gap: 8px; }
  .maker-gallery img, .maker-gallery img:first-child { height: 270px; }
  .order-section { padding-right: 18px; padding-left: 18px; }
  .contact-actions { display: grid; }
  .bag-line { grid-template-columns: 58px 1fr auto; }
  .bag-line img { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .flying-ring { display: none; animation: none; }
  .motion-toggle { display: none; }
}
