:root {
  --cream: #f3ecdf;
  --cream-deep: #e7dccb;
  --ink: #1c1916;
  --ink-soft: rgba(28, 25, 22, 0.62);
  --gold: #c4a27a;
  --line: rgba(28, 25, 22, 0.14);
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--cream); color: var(--ink); }
body {
  font-family: var(--sans);
  overflow: hidden;
  cursor: default;
}
button, a { font-family: inherit; }
img { user-select: none; -webkit-user-drag: none; }

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #efe4d4;
  clip-path: circle(0px at 50% 46%);
  touch-action: none;
}
body.opening .stage {
  clip-path: circle(150vmax at 50% 46%);
  transition: clip-path 1.45s cubic-bezier(0.76, 0, 0.18, 1);
}

.scene {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.scene > .base {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.hit {
  position: absolute;
  z-index: 4;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.ring {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1.5px solid rgba(255, 252, 247, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(28, 25, 22, 0.08);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
body.ready .ring {
  opacity: 0.85;
  transform: scale(1);
  animation: pulse 3.4s ease-in-out infinite;
}
.ring.hot {
  opacity: 1;
  transform: scale(1.35);
  background: rgba(255, 252, 247, 0.35);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 252, 247, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(255, 252, 247, 0); }
}

.hud { z-index: 30; }
.dock { z-index: 30; }
.sheet { z-index: 8; }
.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s var(--ease) 0.15s;
}
body.ready .hud { opacity: 1; transform: none; pointer-events: none; }
.brand, .escape { pointer-events: auto; }
.brand {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 1px 8px rgba(28, 25, 22, 0.28);
}
.brand span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.brand small {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
}
.hint {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(28, 25, 22, 0.28);
  text-decoration: none;
  pointer-events: auto;
  display: inline-block;
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.hint[href]:hover {
  transform: scale(1.18);
}
.escape {
  border: 1px solid var(--line);
  background: rgba(243, 236, 223, 0.78);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
}
.escape[hidden] { display: none; }

.mute {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 12;
  border: 1px solid rgba(255, 252, 247, 0.7);
  background: rgba(243, 236, 223, 0.78);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 24px rgba(70, 48, 24, 0.1);
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s var(--ease) 0.3s;
}
body.ready .mute { opacity: 1; transform: translateX(-50%); }
.mute.is-muted { opacity: 0.72; }

.dock {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(243, 236, 223, 0.78);
  border: 1px solid rgba(255, 252, 247, 0.7);
  box-shadow: 0 16px 40px rgba(70, 48, 24, 0.12);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.8s ease 0.3s, transform 0.8s var(--ease) 0.3s;
}
body.ready .dock { opacity: 1; transform: translateX(-50%); }
.dock button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
}
.dock button.active,
.dock button:hover {
  background: var(--ink);
  color: var(--cream);
}

.sheet {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: end;
  padding: 96px 40px 96px 28px;
  pointer-events: none;
}
.sheet.open { pointer-events: none; }
.sheet-card {
  width: min(440px, calc(100vw - 48px));
  max-height: min(72vh, 640px);
  overflow: auto;
  pointer-events: none;
  background: rgba(250, 246, 239, 0.9);
  border: 1px solid rgba(255, 252, 247, 0.8);
  border-radius: 22px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px rgba(60, 40, 18, 0.16);
  backdrop-filter: blur(18px);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.6s ease;
}
.sheet.open .sheet-card { transform: none; opacity: 1; pointer-events: auto; }
.sheet-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.sheet-card h2 a {
  color: #c89006;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12em;
  transition: color 0.2s ease;
}
.sheet-card h2 a:hover {
  color: #1c48e5;
}
.know strong { font-weight: 700; }
.know a {
  color: #1c48e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.know a.bmc {
  display: inline-block;
  margin-top: 6px;
}
.know a.bmc img {
  width: min(140px, 70%);
  height: auto;
  display: block;
  transform-origin: 50% 80%;
  animation: bmc-wiggle 1.8s ease-in-out infinite;
}
@keyframes bmc-wiggle {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  25% { transform: rotate(3deg) translateY(-2px); }
  50% { transform: rotate(-2deg) translateY(0); }
  75% { transform: rotate(2.5deg) translateY(-1px); }
}
.know a.bmc:hover { opacity: 0.82; }
.sheet-card .eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sheet-card p { margin: 0 0 14px; line-height: 1.6; font-weight: 300; color: #3a342c; }
.works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 22px;
}
.work {
  background: #efe6d8;
  border-radius: 14px;
  min-height: 92px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.work strong { font-weight: 500; font-size: 14px; }
.work span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.work:nth-child(1) { background: #e7d3bc; }
.work:nth-child(2) { background: #d9e0d4; }
.work:nth-child(3) { background: #eadfce; }
.work:nth-child(4) { background: #e4d4c4; }
.work:nth-child(5) { background: #d8d3c8; }
.work:nth-child(6) { background: #e9ddd0; }
.lead { margin: 2px 0 16px; }
.lead strong { font-weight: 700; }
.beyond .explore {
  display: inline-block;
  margin-top: 2px;
  color: #1c48e5;
  text-decoration: none;
  transition: color 0.2s ease;
}
.beyond .explore strong { font-weight: 700; color: inherit; }
.beyond .explore:hover,
.beyond .explore:hover strong {
  color: #c89006;
  background: none;
  padding: 0;
}
.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.timeline li span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.timeline a {
  color: #c89006;
  text-decoration: none;
  transition: color 0.2s ease;
}
.timeline a:hover {
  color: #1c48e5;
  background: none;
  padding: 0;
}
.hello-form { display: grid; gap: 8px; margin-top: 8px; }
.hello-form input, .hello-form textarea {
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.7);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
.form-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.hello-form button {
  border: 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
}
.hello-form input:disabled,
.hello-form textarea:disabled,
.hello-form button:disabled {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--cream);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease 1.15s, visibility 0.6s linear 1.15s;
}
.veil.opening {
  background: transparent;
  pointer-events: none;
}
.veil.done { opacity: 0; visibility: hidden; }
.iris {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  animation: spin 14s linear infinite;
}
.iris span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 18px;
  margin-top: -9px;
  background: linear-gradient(90deg, transparent, #d9c7ae 18%, #f7f1e7 55%, #cbb89d);
  transform-origin: 0 50%;
  border-radius: 0 8px 8px 0;
  opacity: 0.9;
}
.iris span:nth-child(1) { transform: rotate(0deg); }
.iris span:nth-child(2) { transform: rotate(30deg); }
.iris span:nth-child(3) { transform: rotate(60deg); }
.iris span:nth-child(4) { transform: rotate(90deg); }
.iris span:nth-child(5) { transform: rotate(120deg); }
.iris span:nth-child(6) { transform: rotate(150deg); }
.iris span:nth-child(7) { transform: rotate(180deg); }
.iris span:nth-child(8) { transform: rotate(210deg); }
.iris span:nth-child(9) { transform: rotate(240deg); }
.iris span:nth-child(10) { transform: rotate(270deg); }
.iris span:nth-child(11) { transform: rotate(300deg); }
.iris span:nth-child(12) { transform: rotate(330deg); }
.veil.opening .iris {
  animation: iris-open 1.35s var(--ease) forwards;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes iris-open {
  to { transform: scale(8) rotate(40deg); opacity: 0; }
}
.loader {
  position: relative;
  text-align: center;
  z-index: 2;
  transition: opacity 0.45s ease, transform 0.7s var(--ease);
}
.veil.opening .loader { opacity: 0; transform: translateY(-10px); }
.loader-kicker, .loader-line, .loader-count {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0;
}
.loader-name {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 72px;
  margin: 8px 0 6px;
  letter-spacing: -0.04em;
}
.loader-meter {
  width: 180px;
  height: 1px;
  margin: 22px auto 12px;
  background: rgba(28, 25, 22, 0.12);
}
.loader-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
}
.loader-count { font-variant-numeric: tabular-nums; }

@media (max-width: 1200px) {
  .hud { padding: 16px 14px; }
  .hint {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.18em;
    max-width: 48vw;
    text-align: right;
    line-height: 1.15;
  }
  .brand span { font-size: 24px; }
  .dock {
    width: calc(100% - 16px);
    overflow: visible;
    justify-content: space-between;
    gap: 2px;
    padding: 4px;
    bottom: 10px;
  }
  .dock button {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 4px;
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }
  .mute { bottom: 66px; }
  .loader-name { font-size: 52px; }
  .sheet {
    padding: 12px 12px 118px;
    align-items: end;
    justify-items: center;
  }
  .sheet-card {
    width: min(440px, calc(100vw - 24px));
    max-height: min(46vh, 420px);
    padding: 16px 16px 14px;
  }
  .sheet-card h2 { font-size: 28px; margin-bottom: 6px; }
  .sheet-card p { font-size: 13px; line-height: 1.45; margin-bottom: 8px; }
  .sheet-card .eyebrow { font-size: 10px; margin-bottom: 6px; }
  .work { min-height: 68px; padding: 10px; }
  .work strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
