:root {
  --cobalt: #2036c8;
  --cobalt-deep: #14238f;
  --plaster: #f7f4ec;
  --plaster-dim: #d9dcf3;
  --key: #ffc53d;
  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(120% 90% at 62% 30%, #2c45e2 0%, var(--cobalt) 52%, #1a2db4 100%) fixed var(--cobalt);
  color: var(--plaster);
  font: 400 clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem)/1.5 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--key); outline-offset: 3px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 10;
  padding: 8px 14px; background: var(--plaster); color: var(--cobalt-deep);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

#arch { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fallback-mark { display: none; }
.no3d #arch { display: none; }
.no3d .fallback-mark {
  display: block; position: fixed; z-index: 0; right: 6vw; top: 50%;
  width: min(46vw, 560px); height: auto; transform: translateY(-50%); opacity: .55;
}

.top {
  position: fixed; inset: 0 0 auto; z-index: 5;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: clamp(14px, 2.4vw, 28px) var(--gutter);
}
.brand { font: 400 1.5rem/1 var(--serif); text-decoration: none; }
.touch { text-underline-offset: 4px; }

main { position: relative; z-index: 1; }

h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }

.hero {
  min-height: 100svh;
  padding: 18vh var(--gutter) clamp(24px, 5vh, 56px);
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(20px, 3vh, 36px);
}
.hero h1 {
  font-size: clamp(3.1rem, 8.4vw, 9rem);
  line-height: .95; letter-spacing: -.015em;
  max-width: 9.5em;
}
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(24px, 4vw, 56px); }
.hero-foot p { margin: 0; max-width: 44ch; }

.button {
  display: inline-block; padding: .8em 1.5em;
  background: var(--key); color: var(--cobalt-deep);
  font-weight: 600; text-decoration: none; border-radius: 999px;
  transition: background-color .2s, transform .2s;
}
.button:hover { background: var(--plaster); transform: translateY(-2px); }

.product {
  min-height: 118vh;
  padding: 10vh var(--gutter);
  display: flex; align-items: center; justify-content: flex-start;
}
.product.flip { justify-content: flex-end; }
.panel { width: min(100%, 500px); }
.panel h2 {
  display: flex; align-items: center; gap: .32em;
  font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1.05;
}
.stone {
  flex: none; width: .5em; height: .62em; background: var(--c);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}
.panel p { margin: .6em 0 1.2em; max-width: 34ch; }
.shot { display: block; overflow: hidden; border: 1px solid rgba(247, 244, 236, .4); aspect-ratio: 760 / 345; }
.has3d .shot { border-color: transparent; }
.has3d .shot img { visibility: hidden; }
.shot img { width: 100%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.shot:hover img { transform: scale(1.035); }
.fine { font-size: .84rem; opacity: .86; margin: .8em 0 0; }
.sha { overflow-wrap: anywhere; font-size: .72rem; opacity: .72; }
.visit { display: inline-block; margin-top: 1em; font-weight: 500; text-underline-offset: 4px; }

.close { height: 240vh; }
.close-inner {
  position: sticky; top: 0;
  min-height: 100svh;
  padding: 72px var(--gutter) 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.close h2 { font-size: clamp(2.1rem, 4.4vw, 4.6rem); line-height: 1.05; max-width: 9.5em; }
.close p { margin: .7em 0 1.1em; max-width: 36ch; }
.close .mail { margin-top: .9em; text-underline-offset: 4px; }

dialog {
  width: min(100% - 32px, 520px); max-height: calc(100dvh - 32px);
  border: 0; border-radius: 18px; padding: clamp(20px, 4vw, 34px);
  background: var(--plaster); color: var(--cobalt-deep);
  box-shadow: 0 40px 90px rgba(6, 12, 70, .55);
}
dialog::backdrop { background: rgba(10, 18, 90, .62); backdrop-filter: blur(6px); }
dialog h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; padding-right: 1.4em; }
dialog p { margin: .5em 0 1em; }
dialog form { position: relative; }
dialog label { display: block; font-weight: 500; margin-bottom: .85em; }
dialog input, dialog textarea {
  display: block; width: 100%; margin-top: .3em; padding: .65em .75em;
  font: inherit; color: inherit; background: #fff;
  border: 1px solid #aeb5e0; border-radius: 10px;
}
dialog .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; background: var(--cobalt); color: #fff; }
dialog .button:hover { background: var(--cobalt-deep); }
dialog .button:disabled { opacity: .6; cursor: progress; }
dialog .x {
  position: absolute; top: -8px; right: -8px; width: 40px; height: 40px;
  border: 0; background: none; font-size: 1.7rem; line-height: 1; color: inherit; cursor: pointer;
}
dialog .status { min-height: 1.4em; font-weight: 500; }
dialog :focus-visible { outline-color: var(--cobalt); }
.trap { position: absolute; left: -9999px; }

@media (max-width: 820px) {
  .product, .product.flip { align-items: flex-end; justify-content: flex-start; min-height: 112vh; padding-bottom: 6vh; }
  .panel {
    width: 100%; padding: 18px;
    background: rgba(20, 35, 143, .88);
  }
  .panel h2 { font-size: 2.5rem; }
  .has3d .shot { border-color: rgba(247, 244, 236, .4); }
  .has3d .shot img { visibility: visible; }
  .close-inner { padding-top: 68px; justify-content: flex-start; align-items: center; text-align: center; }
  .close h2 { font-size: 2.1rem; }
  .close p { margin: .5em 0 .8em; }
  .close .mail { margin-top: .5em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .shot img { transition: none; }
  .button:hover { transform: none; }
  .shot:hover img { transform: none; }
}
