:root {
  --black: #040a0c;
  --lacquer: #071316;
  --ink: #0a1b20;
  --ivory: #f4eedf;
  --champagne: #e3c178;
  --brass: #b98b3f;
  --oxblood: #8f293b;
  --berry: #d45269;
  --grove: #6d9b81;
  --moon: #a88db5;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 67% 46%, rgba(25, 53, 66, 0.66) 0, rgba(8, 20, 27, 0) 39%),
    linear-gradient(145deg, #061017 0%, var(--lacquer) 50%, #09171c 100%);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

.lacquer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 18% 26%, rgba(227, 193, 120, 0.045), transparent 23%),
    radial-gradient(circle at 84% 75%, rgba(143, 41, 59, 0.055), transparent 24%);
}

.masthead,
footer {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.masthead {
  padding: 31px 0 13px;
  border-bottom: 1px solid rgba(227, 193, 120, 0.18);
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: var(--ivory);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.miniature {
  width: 31px;
  height: 31px;
  border: 1px solid var(--champagne);
  background: url("assets/crane-emblem.png") center / 42px 42px no-repeat;
  box-shadow: 0 0 0 3px var(--lacquer), 0 0 0 4px rgba(227, 193, 120, 0.18);
  transform: rotate(45deg);
}

.masthead p,
footer span {
  margin: 0;
  color: rgba(244, 238, 223, 0.44);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

main {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(480px, 1.55fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100svh - 150px);
  padding: 34px 0 74px;
}

.copy {
  position: relative;
  z-index: 5;
  padding-left: clamp(8px, 3vw, 36px);
}

h1 {
  margin: 0;
  font-size: clamp(68px, 8.8vw, 126px);
  font-weight: 250;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

h1 span {
  color: var(--champagne);
  font-weight: 500;
}

.motto {
  margin: 25px 0 0 5px;
  color: rgba(244, 238, 223, 0.56);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.constellation {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.sunburst {
  position: absolute;
  z-index: -3;
  width: min(62vw, 690px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.11;
  background: repeating-conic-gradient(from -4deg, var(--champagne) 0 0.65deg, transparent 0.65deg 9deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 31%, black 32% 69%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 0 31%, black 32% 69%, transparent 70%);
}

.deco-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: min(57vw, 610px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  cursor: crosshair;
  isolation: isolate;
  transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.deco-seal:focus-visible {
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--champagne), 0 0 0 7px rgba(227, 193, 120, 0.12);
}

.deco-seal img {
  z-index: 1;
  width: 77%;
  height: 77%;
  border: 1px solid rgba(227, 193, 120, 0.36);
  border-radius: 50%;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.82) sepia(0.08);
  box-shadow:
    0 0 0 7px rgba(4, 10, 12, 0.72),
    0 0 0 8px rgba(227, 193, 120, 0.12),
    0 28px 90px rgba(0, 0, 0, 0.42);
  transition: filter 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.deco-seal:hover img,
.deco-seal.illuminated img {
  filter: contrast(1.07) saturate(1.03) brightness(1.08);
  transform: scale(1.012);
}

.halo {
  position: absolute;
  inset: 19%;
  z-index: -2;
  border-radius: 50%;
  box-shadow: 0 0 105px rgba(227, 193, 120, 0.13);
  transition: box-shadow 700ms ease;
}

.deco-seal.illuminated .halo { box-shadow: 0 0 145px rgba(227, 193, 120, 0.3); }

.orbit {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.orbit::before,
.orbit::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid var(--champagne);
  background: var(--lacquer);
  transform: translateY(-50%) rotate(45deg);
}

.orbit::before { left: -4px; }
.orbit::after { right: -4px; }

.orbit-outer {
  inset: 1.5%;
  border: 1px solid rgba(227, 193, 120, 0.35);
  animation: revolve 38s linear infinite;
}

.orbit-middle {
  inset: 7.5%;
  border: 1px dashed rgba(227, 193, 120, 0.26);
  transform: rotate(24deg);
  animation: revolve-offset 56s linear infinite reverse;
}

.orbit-inner {
  inset: 14%;
  border: 1px solid rgba(244, 238, 223, 0.2);
  transform: rotate(-19deg);
  animation: revolve-counter 28s linear infinite;
}

.deco-seal.illuminated .orbit {
  border-color: rgba(227, 193, 120, 0.7);
}

.medallion {
  position: absolute;
  z-index: 4;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(227, 193, 120, 0.75);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 48%, rgba(227, 193, 120, 0.09) 49% 51%, transparent 52%),
    rgba(4, 12, 15, 0.96);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.48));
}

.medallion::before {
  box-shadow: inset 0 0 0 4px rgba(4, 12, 15, 0.96), inset 0 0 0 5px rgba(227, 193, 120, 0.16);
}
.grove { top: 28%; left: 0; }
.berry { right: 0; bottom: 28%; }
.stella { top: 0; right: 28%; }
.phedre { bottom: 0; left: 28%; }

.grove i {
  position: absolute;
  bottom: 15px;
  width: 0;
  height: 0;
  border-right: 9px solid transparent;
  border-bottom: 27px solid var(--grove);
  border-left: 9px solid transparent;
  filter: drop-shadow(0 4px 0 #315445);
}

.grove i::after {
  position: absolute;
  top: 23px;
  left: -1px;
  width: 2px;
  height: 9px;
  content: "";
  background: var(--champagne);
}

.grove i:nth-child(1) { left: 8px; transform: scale(0.72); }
.grove i:nth-child(2) { left: 23px; }
.grove i:nth-child(3) { left: 39px; transform: scale(0.72); }

.berry i {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 32px;
  height: 39px;
  clip-path: polygon(50% 100%, 28% 82%, 10% 57%, 3% 31%, 18% 10%, 50% 1%, 82% 10%, 97% 31%, 90% 57%, 72% 82%);
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 225, 173, 0.3) 49% 51%, transparent 51%),
    linear-gradient(110deg, #922a40 0 29%, #bd4057 30% 68%, #e16a7d 69%);
  filter:
    drop-shadow(1px 0 0 rgba(227, 193, 120, 0.56))
    drop-shadow(-1px 0 0 rgba(227, 193, 120, 0.56))
    drop-shadow(0 1px 0 rgba(227, 193, 120, 0.56));
}

.berry i::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 14px;
  content: "";
  clip-path: polygon(50% 100%, 38% 50%, 2% 78%, 27% 30%, 8% 0, 43% 26%, 50% 0, 57% 26%, 92% 0, 73% 30%, 98% 78%, 62% 50%);
  background: linear-gradient(90deg, #537963 0 33%, #86aa91 34% 66%, #b1c7b5 67%);
}

.berry b {
  position: absolute;
  z-index: 2;
  width: 3px;
  height: 3px;
  background: #ffe4a7;
  transform: rotate(45deg);
}

.berry b:nth-of-type(1) { top: 25px; left: 25px; }
.berry b:nth-of-type(2) { top: 28px; left: 38px; }
.berry b:nth-of-type(3) { top: 34px; left: 31px; }
.berry b:nth-of-type(4) { top: 40px; left: 40px; }
.berry b:nth-of-type(5) { top: 44px; left: 27px; }
.berry b:nth-of-type(6) { top: 36px; left: 47px; }

.stella {
  background: rgba(4, 12, 15, 0.96);
}

.stella::before {
  position: absolute;
  top: 3px;
  left: 7px;
  z-index: 1;
  width: 50px;
  height: 58px;
  content: "";
  clip-path: polygon(50% 0, 58% 31%, 82% 12%, 69% 39%, 100% 50%, 69% 61%, 82% 88%, 58% 69%, 50% 100%, 42% 69%, 18% 88%, 31% 61%, 0 50%, 31% 39%, 18% 12%, 42% 31%);
  background: linear-gradient(90deg, #b98537 0, #f0c35d 47%, #d29a3f 100%);
  filter: drop-shadow(0 0 6px rgba(227, 193, 120, 0.34));
}

.stella::after {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  content: "";
  border-radius: 82% 0 82% 0;
  background: #f5efdf;
  box-shadow: 0 0 7px rgba(244, 238, 223, 0.18);
  transform: rotate(45deg);
}

.stella i {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #efbd55 0 27%, #315f78 30% 100%);
  box-shadow: 0 0 0 1px rgba(8, 20, 27, 0.2);
}

.phedre {
  background:
    repeating-conic-gradient(from -7deg, rgba(227, 193, 120, 0.14) 0 2deg, transparent 2deg 18deg),
    rgba(4, 12, 15, 0.96);
}

.phedre::before {
  position: absolute;
  inset: 12px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(145deg, #efe5ef 0 9%, #c8b4cf 30%, var(--moon) 58%, #634b75 100%);
  box-shadow:
    inset 4px -5px 8px rgba(66, 41, 78, 0.42),
    inset -2px 3px 5px rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 0 8px rgba(168, 141, 181, 0.58));
}

.phedre::after {
  position: absolute;
  top: 7px;
  left: 30px;
  width: 38px;
  height: 38px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle at 35% 65%, #0b2026, #071316 72%);
  box-shadow: -2px 1px 5px rgba(4, 8, 12, 0.58);
}

.pedestal {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: grid;
  grid-template-columns: 70px 14px 10px 14px 70px;
  gap: 10px;
  align-items: center;
  transform: translateX(-50%);
}

.pedestal span { height: 1px; background: linear-gradient(90deg, transparent, var(--champagne)); }
.pedestal span:last-child { transform: scaleX(-1); }
.pedestal i { width: 10px; height: 10px; border: 1px solid var(--champagne); transform: rotate(45deg); }
.pedestal b { width: 6px; height: 24px; background: var(--oxblood); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

footer {
  padding: 10px 0 30px;
}

@keyframes revolve {
  to { transform: rotate(360deg); }
}

@keyframes revolve-offset {
  from { transform: rotate(24deg); }
  to { transform: rotate(384deg); }
}

@keyframes revolve-counter {
  from { transform: rotate(-19deg); }
  to { transform: rotate(341deg); }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding: 70px 0 104px;
  }

  .copy { padding: 0; text-align: center; }
  .motto { margin-left: 0; }
  .deco-seal { width: min(88vw, 590px); }
}

@media (max-width: 560px) {
  .masthead, footer { width: calc(100% - 62px); }
  .masthead { padding-top: 22px; }
  .masthead p { font-size: 6px; }
  .brand { font-size: 9px; }
  .miniature { width: 26px; height: 26px; background-size: 36px 36px; }
  main { width: calc(100% - 34px); }
  .hero { padding-top: 54px; }
  h1 { font-size: clamp(64px, 20vw, 92px); }
  .deco-seal { width: min(108vw, 520px); }
  .medallion { width: 54px; height: 54px; transform: scale(0.86); }
  .grove { left: 3%; }
  .berry { right: 3%; }
  .stella { right: 29%; }
  .phedre { left: 29%; }
  .pedestal { grid-template-columns: 42px 10px 8px 10px 42px; }
  footer span { font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
