@font-face {
  font-family: "Cinzel Decorative";
  src: url("fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Marcellus SC";
  src: url("fonts/MarcellusSC-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #010912;
  --glass-top: #0e1f2a;
  --glass-bottom: #030a12;
  --bronze: #c7ab6e;
  --bronze-bright: #f2d485;
  --bronze-dark: #785929;
  --ivory: #f0e6d1;
  --ash: #a19c8c;
  --teal: #0ac7ba;
  --deep-teal: #0a333d;
  --gold: #ffd14d;
  --gutter: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% 0%, #0b2a33 0%, var(--night) 60%) fixed, var(--night);
  color: var(--ivory);
  font-family: "Alegreya Sans", "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--bronze-bright);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(var(--gutter), 3vw);
  background: linear-gradient(180deg, rgba(14, 31, 42, 0.97), rgba(3, 10, 18, 0.97));
  border-top: 2px solid var(--bronze);
  border-bottom: 2px solid var(--bronze);
  box-shadow: inset 0 3px 0 -1px rgba(120, 89, 41, 0.9), inset 0 -3px 0 -1px rgba(120, 89, 41, 0.9), 0 8px 30px rgba(0, 0, 0, 0.55);
}

.logo {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(180deg, #ffe6a3 0%, var(--bronze-bright) 45%, #b8862f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7));
  white-space: nowrap;
}

.bar nav {
  display: flex;
  gap: 34px;
  margin-left: 18px;
  padding-left: 30px;
  border-left: 1px solid var(--bronze-dark);
}

.bar nav a {
  font-family: "Marcellus SC", serif;
  font-size: 22px;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.2s;
}

.bar nav a:hover {
  color: var(--bronze-bright);
}

.crystal-wrap {
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(40, 230, 210, 0.45)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6));
  transition: filter 0.25s;
}

.crystal-wrap:hover {
  filter: drop-shadow(0 0 16px rgba(80, 255, 235, 0.75)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6));
}

.crystal {
  --cut: 13px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 52px;
  overflow: hidden;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background:
    radial-gradient(60% 90% at 28% 30%, rgba(170, 255, 240, 0.55), transparent 70%),
    radial-gradient(50% 80% at 78% 70%, rgba(20, 120, 150, 0.6), transparent 70%),
    linear-gradient(180deg, #5fe3d6 0%, #1fb8b6 42%, #0d8796 74%, #0a5d6c 100%);
  box-shadow: inset 0 0 0 2px rgba(200, 255, 250, 0.55), inset 0 0 0 4px rgba(6, 70, 82, 0.55), inset 0 -8px 14px rgba(3, 40, 52, 0.6);
  font-family: "Marcellus SC", serif;
  font-size: 21px;
  color: var(--ivory);
  text-decoration: none;
  text-shadow: 0 1px 2px #022a30, 0 0 6px rgba(2, 40, 48, 0.9);
  transition: filter 0.25s, transform 0.1s;
}

.crystal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 22%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 62%, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 74%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 38%);
  animation: twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}

.crystal::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(190, 255, 240, 0.55), transparent);
  transform: skewX(-25deg);
  animation: sweep 2.8s linear infinite;
  pointer-events: none;
}

.crystal span {
  position: relative;
  z-index: 1;
}

.crystal:hover {
  filter: brightness(1.2) saturate(1.1);
}

.crystal:active {
  transform: translateY(1px);
  filter: brightness(1.45);
}

.crystal.big {
  width: 260px;
  height: 66px;
  font-size: 27px;
  --cut: 16px;
}

@keyframes sweep {
  from {
    left: -60%;
  }
  to {
    left: 140%;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 0 max(var(--gutter), 6vw) 64px;
  background: linear-gradient(180deg, rgba(1, 9, 18, 0.15) 0%, rgba(1, 9, 18, 0.35) 45%, var(--night) 100%), var(--shot) center / cover no-repeat;
}

.hero-inner {
  max-width: 720px;
}

h1,
h2,
h3 {
  font-family: "Marcellus SC", serif;
  font-weight: 400;
  color: var(--bronze-bright);
  margin: 0 0 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.12;
}

h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  text-align: center;
}

h3 {
  font-size: 23px;
}

.lead {
  font-size: 21px;
  color: var(--ivory);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  margin: 0 0 26px;
}

.note {
  color: var(--ash);
  font-size: 16px;
  margin-top: 12px;
}

section {
  padding: 64px max(var(--gutter), 6vw);
  scroll-margin-top: 96px;
}

.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 28px auto 0;
}

.glass {
  position: relative;
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, rgba(14, 31, 42, 0.94), rgba(3, 10, 18, 0.96));
  border: 1px solid var(--bronze);
  box-shadow: inset 0 0 0 3px rgba(3, 10, 18, 0.9), inset 0 0 0 4px rgba(120, 89, 41, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border: 1px solid var(--bronze);
  transform: rotate(45deg);
  background: var(--deep-teal);
}

.glass .step span {
  transform: rotate(-45deg);
  font-family: "Marcellus SC", serif;
  color: var(--teal);
}

.glass p {
  margin: 0;
  color: var(--ivory);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  max-width: 1300px;
  margin: 28px auto 0;
}

.shots figure {
  margin: 0;
  border: 1px solid var(--bronze-dark);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  background: var(--glass-bottom);
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
}

.shots figcaption {
  padding: 10px 14px;
  font-size: 16px;
  color: var(--ash);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 28px auto 0;
}

.downloads .glass {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.downloads .meta {
  color: var(--ash);
  font-size: 16px;
}

.downloads ol {
  margin: 0;
  padding-left: 22px;
}

.downloads li {
  margin-bottom: 6px;
}

code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--teal);
  background: rgba(10, 51, 61, 0.6);
  padding: 2px 6px;
  overflow-wrap: anywhere;
}

.centre {
  text-align: center;
}

footer {
  padding: 36px max(var(--gutter), 6vw) 48px;
  border-top: 1px solid var(--bronze-dark);
  color: var(--ash);
  font-size: 15px;
  text-align: center;
}

@media (max-width: 760px) {
  .bar {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .bar nav {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    gap: 20px;
    width: 100%;
  }
  .bar nav a {
    font-size: 18px;
  }
  .crystal {
    width: 150px;
    height: 46px;
    font-size: 19px;
  }
  .crystal.big {
    width: 220px;
    height: 58px;
    font-size: 23px;
  }
  .hero {
    min-height: 70vh;
    padding-bottom: 40px;
  }
  .shots {
    grid-template-columns: 1fr;
  }
}
