@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #131316;
  --line: #34302a;
  --gold: #c7a557;
  --gold-soft: rgba(199, 165, 87, 0.45);
  --ivory: #eee7d7;
  --muted: #a8a091;
  --white: #ffffff;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 74rem;
  --oct: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  --oct-in: polygon(9.6px 0, calc(100% - 9.6px) 0, 100% 9.6px, 100% calc(100% - 9.6px), calc(100% - 9.6px) 100%, 9.6px 100%, 0 calc(100% - 9.6px), 0 9.6px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ivory);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--ground);
  font-family: var(--sans);
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* Header */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem var(--gutter);
  padding-top: max(0.9rem, env(safe-area-inset-top));
  background: rgba(19, 19, 22, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .bar { background: rgba(19, 19, 22, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.bar.is-stuck { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--gold);
  margin-right: auto;
}
.brand-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1;
  margin-right: -0.42em;
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--ivory); border-bottom-color: var(--gold-soft); }

/* Octagonal button: an emerald-cut outline drawn by two clipped layers */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 450;
  letter-spacing: 0.03em;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.25s ease;
}
.btn::before, .btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  transition: background-color 0.25s ease;
}
.btn::before { inset: 0; background: var(--gold); clip-path: var(--oct); }
.btn::after { inset: 1px; background: var(--ground); clip-path: var(--oct-in); }
.btn:hover { color: var(--ground); }
.btn:hover::after { background: var(--gold); }
.btn-small { min-height: 2.5rem; padding: 0.5rem 1.15rem; font-size: 0.9rem; }

.link {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.link:hover { color: var(--ivory); }

/* Hero: the loupe */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 5vh, 3.5rem) var(--gutter) clamp(4rem, 9vh, 6.5rem);
}

.hero-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.loupe {
  position: relative;
  width: clamp(14rem, min(76vw, 43svh), 30rem);
  aspect-ratio: 1;
  margin: 0;
}
.loupe-toggle {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: var(--ground);
  color: var(--gold);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.loupe-toggle[hidden] { display: none; }
.loupe-toggle:hover { border-color: var(--gold); color: var(--ivory); }
.loupe-toggle svg { width: 0.85rem; height: 0.85rem; }
.loupe-toggle .icon-play { display: none; }
.loupe-toggle[aria-pressed="true"] .icon-play { display: block; }
.loupe-toggle[aria-pressed="true"] .icon-pause { display: none; }
.loupe-lens {
  position: absolute;
  inset: 11.8%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.7);
}
.loupe-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loupe-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.ring { fill: none; stroke: var(--gold); }
.ring-a { stroke-width: 1.6; }
.ring-b { stroke-width: 0.7; }
.ring-c { stroke-width: 0.7; }
.ring-dots {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-dasharray: 0.1 6.05;
  stroke-linecap: round;
}

.loupe-note {
  max-width: 31rem;
  margin: 1.1rem auto 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-title {
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  max-width: 14em;
  font-weight: 450;
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 43rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ivory);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem 2rem;
  margin-top: 2.2rem;
}

/* Sections */
.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.hero + .section { border-top-color: transparent; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 5vw, 5.5rem);
  align-items: start;
}

.h2 {
  margin: 0;
  font-weight: 450;
  font-size: clamp(2rem, 1.45rem + 2.1vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.2;
}

.prose p { margin: 0 0 1.1em; max-width: 34rem; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* From source to setting */
.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}
.path::before {
  content: "";
  position: absolute;
  top: 0.6875rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-soft);
}
.step { position: relative; padding-top: 3rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1rem;
  height: 1.375rem;
  background: var(--gold);
  clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 84%, 78% 100%, 22% 100%, 0 84%, 0 16%);
}
.step p { margin: 0.75rem 0 0; font-size: 1.0625rem; line-height: 1.6; }

/* Stones */
.stones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.75rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3.5rem);
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  list-style: none;
}
.stone { text-align: center; }
.stone-lens {
  width: min(100%, 14.5rem);
  aspect-ratio: 1;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(199, 165, 87, 0.85),
    0 0 0 6px var(--ground),
    0 0 0 7px rgba(199, 165, 87, 0.4);
}
.stone-lens img { width: 100%; height: 100%; object-fit: cover; }
.stone-name { margin: 0; font-weight: 500; font-size: 1.45rem; line-height: 1.2; }
.stone-detail {
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ivory);
}
.stone-note {
  margin: 0.2rem 0 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}
.fine {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

/* How we work */
.rules { margin: 0; }
.rule {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.rule:first-child { border-top: 0; padding-top: 0.35rem; }
.rule dt { font-weight: 500; font-size: 1.2rem; line-height: 1.35; }
.rule dd { margin: 0; max-width: 34rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
}
.contact-block p { margin: 0.75rem 0 0; max-width: 26rem; }
.contact-block .btn { margin-top: 1.5rem; }
.contact-mail {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 1rem;
}
.contact-mail a { color: var(--gold); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.contact-mail a:hover { color: var(--ivory); }
address { font-style: normal; margin-top: 0.75rem; }

/* Footer */
.foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem var(--gutter) max(3rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 1.5rem 3rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold);
}
.foot-brand .brand-mark { width: 2.4rem; height: 2.4rem; }
.foot-name { color: var(--ivory); font-family: var(--serif); font-size: 1.05rem; }
.foot-legal p { margin: 0 0 0.6rem; max-width: 40rem; }
.foot-legal p:last-child { margin-bottom: 0; }

/* Legal page */
.legal {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}
.legal-title {
  margin: 0;
  font-weight: 450;
  font-size: clamp(2.4rem, 1.7rem + 2.8vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.legal-meta {
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.legal-part {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.legal-body { max-width: 42rem; }
.legal-body p { margin: 0 0 1em; text-wrap: pretty; }
.legal-body p:last-child { margin-bottom: 0; }
.clause { margin-top: 2rem; }
.clause .h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.facts { margin: 0; }
.fact {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.35rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.fact:first-child { border-top: 0; padding-top: 0.25rem; }
.fact dt { font-weight: 500; }
.fact dd { margin: 0; }
.fact a, .legal-body a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.fact a:hover, .legal-body a:hover { color: var(--ivory); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.foot-links a { color: var(--ivory); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.foot-links a:hover { color: var(--gold); }
@media (max-width: 47.5rem) {
  .fact { grid-template-columns: minmax(0, 1fr); }
}

/* One moment of motion: the rings are drawn, the lens opens */
@media (min-width: 47.5rem) {
  .split > .h2 { position: sticky; top: 6.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .ring {
    stroke-dasharray: 1.01;
    stroke-dashoffset: 1.01;
    animation: draw 1.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  }
  .ring-b { animation-delay: 0.15s; }
  .ring-c { animation-delay: 0.3s; }
  .ring-dots { opacity: 0; animation: appear 1.2s ease 1.1s forwards; }
  .loupe-lens { opacity: 0; animation: appear 1.4s ease 0.45s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Responsive */
@media (max-width: 60rem) {
  .nav { display: none; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .path::before { display: none; }
}
@media (max-width: 47.5rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .bar { gap: 1rem; }
  .brand { gap: 0.65rem; }
  .brand-mark { width: 1.85rem; height: 1.85rem; }
  .brand-word { font-size: 0.95rem; letter-spacing: 0.32em; margin-right: -0.32em; }
  .path { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .path::before { display: block; top: 0.5rem; bottom: 1rem; left: 0.5rem; right: auto; width: 1px; height: auto; }
  .step { padding: 0 0 2.25rem 2.5rem; }
  .step:last-child { padding-bottom: 0; }
  .stones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stone-lens { width: min(100%, 9.5rem); }
  .stone-name { font-size: 1.25rem; }
}
@media (max-width: 22rem) {
  .brand-word { display: none; }
}
