:root {
  --ink: #0b0b0c;
  --paper: #f4efe6;
  --red: #e0201b;
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 44px;
  padding: 0 var(--gutter);
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
.nav-name {
  font-family: var(--serif);
  font-size: 28px;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a,
.login,
.menu-toggle {
  font: 600 11.5px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links > a { position: relative; padding: 8px 0; }
.nav-links > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links > a:hover::after,
.nav-links > a:focus-visible::after { transform: scaleX(1); }
.nav-social-mobile { display: none; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.social {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  opacity: .85; transition: opacity .2s, background .2s;
}
.social:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.login {
  margin-left: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.login:hover { background: var(--paper); color: var(--ink); }
.menu-toggle {
  display: none;
  margin-left: 8px; padding: 10px 14px;
  color: inherit; background: none;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px;
    background: rgba(14, 14, 15, .96);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-links > a::after { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .nav-name { font-size: 24px; }
  .social { display: none; }
  .nav-social-mobile { display: flex; gap: 22px; padding: 18px 0; }
  .login { padding: 9px 13px; }
}

/* ---------- Hero ---------- */

.hero {
  --bx: 76%; --by: 50%; --size: 150px;
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--bx) var(--by), rgba(255, 70, 50, .16), rgba(255, 70, 50, 0) calc(var(--size) * 2.2)),
    radial-gradient(ellipse 60% 75% at var(--bx) 20%, #2c2622 0%, #151312 55%, var(--ink) 100%);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.hero.has-photo .hero-photo { display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 55%);
}

/* The pedestal the button stands on, only while there's no photo. */
.plinth {
  position: absolute; z-index: 1;
  left: var(--bx); top: var(--by);
  width: calc(var(--size) * 1.3); height: 120vh;
  transform: translateX(-50%);
  border-radius: 50% / calc(var(--size) * .22);
  background:
    radial-gradient(ellipse 50% calc(var(--size) * .22) at 50% calc(var(--size) * .22), #3b3b40, #26262a 70%, transparent 71%),
    linear-gradient(90deg, #121214 0%, #2e2e33 38%, #3a3a40 50%, #1b1b1e 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, .6);
}
.hero.has-photo .plinth { display: none; }

.flash {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at var(--bx) var(--by), rgba(255, 245, 220, .95), rgba(255, 120, 60, .5) 18%, rgba(255, 60, 30, 0) 55%);
  opacity: 0;
}
.flash.go { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

.hero-copy {
  position: absolute; z-index: 2;
  left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 7vh, 72px);
  pointer-events: none;
}
.name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 13vw, 210px);
  line-height: .86;
  letter-spacing: -.01em;
}
.letters .word { display: inline-block; white-space: nowrap; }
.letters .char {
  display: inline-block;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.hero.exploded .letters .char { pointer-events: auto; cursor: grab; }

.tagline {
  position: relative; z-index: 1; /* stays readable over fallen letters */
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
  margin: .4em 0 0;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1.15;
}
.hero.exploded .tagline { transform: translateY(calc(var(--name-h) * -1)); transition-delay: .25s; }
.rotator { display: inline-grid; vertical-align: bottom; font-style: italic; }
.rotator > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; }
.rotator > span.is-in { opacity: 1; animation: phrase-in .8s ease both; }
.rotator > span.is-out { animation: phrase-out .8s ease both; }
@keyframes phrase-in { from { opacity: 0; transform: translateX(-44px); } to { opacity: 1; transform: none; } }
@keyframes phrase-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(44px); } }

/* ---------- The button ---------- */

.button-wrap {
  position: absolute; z-index: 5;
  left: var(--bx); top: var(--by);
  width: var(--size);
  transform: translate(-50%, -50%);
}
.housing {
  position: relative;
  aspect-ratio: 1;
  padding: 11%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #55555b, #232326 62%, #121214);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 -4px 10px rgba(0, 0, 0, .7),
    0 calc(var(--size) * .12) calc(var(--size) * .25) rgba(0, 0, 0, .6);
}
.housing::after {
  content: ""; position: absolute; inset: -4%; border-radius: 50%;
  border: 2px solid rgba(255, 60, 40, .55);
  animation: beckon 2.4s ease-out infinite;
  pointer-events: none;
}
.hero.exploded .housing::after { animation: none; opacity: 0; }
@keyframes beckon {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

.red-button {
  appearance: none; border: 0; margin: 0; padding: 0;
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font: 800 calc(var(--size) * .085)/1.05 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  background: radial-gradient(circle at 38% 28%, #ff9a88 0%, #f3352c 20%, #c8120f 55%, #780606 100%);
  box-shadow:
    0 calc(var(--size) * .065) 0 #560404,
    0 calc(var(--size) * .1) calc(var(--size) * .08) rgba(0, 0, 0, .55),
    inset 0 -6px 14px rgba(0, 0, 0, .35);
  transform: translateY(calc(var(--size) * -.06));
  transition: transform .07s ease-out, box-shadow .07s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.red-button::before {
  content: ""; position: absolute;
  top: 9%; left: 20%; width: 42%; height: 24%;
  border-radius: 50%;
  background: radial-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.red-button .label { position: relative; max-width: 70%; }
.red-button:active {
  transform: translateY(0);
  box-shadow: 0 0 0 #560404, 0 2px 4px rgba(0, 0, 0, .5), inset 0 5px 14px rgba(0, 0, 0, .45);
}
.red-button:focus-visible { outline: 3px solid #fff; outline-offset: calc(var(--size) * .14); }

.caption {
  position: absolute; top: 100%; left: 50%;
  margin: 18px 0 0;
  padding: 9px 14px;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 600 11.5px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
}
.caption.show { animation: caption .35s ease-out both; }
@keyframes caption {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .housing::after, .flash.go { animation: none; }
  .rotator > span.is-in, .rotator > span.is-out { animation-duration: .01s; }
}
