* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  min-height: 100%;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body {
  position: static !important;
  height: auto !important;
  overflow-x: hidden;
}

#assembly-app {
  display: block;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior-y: auto;
}

.assembly-chat-only {
  display: none !important;
}

html.assembly-editing, html.assembly-editing body {
  overflow: hidden !important;
}

body.assembly-editing #assembly-app {
  position: fixed;
  top: var(--assembly-viewport-top, 0px);
  left: 0;
  right: 0;
  z-index: 10;
}

body.assembly-chat-active .assembly-chat-only {
  display: block !important;
}

body:not(.assembly-chat-active) {
  overflow-y: hidden !important;
}

html:not(.assembly-chat-active) {
  overflow-y: hidden !important;
  overscroll-behavior-y: none;
}

body:not(.assembly-chat-active) #assembly-app {
  overscroll-behavior-y: contain;
}

body.assembly-chat-active #assembly-app,
body.assembly-chat-active #assembly-app *,
body.assembly-chat-active #assembly-app flutter-view,
body.assembly-chat-active #assembly-app flt-glass-pane {
  touch-action: pan-y !important;
}

body.assembly-editing #assembly-app,
body.assembly-editing #assembly-app * {
  touch-action: none !important;
}

.assembly-content {
  position: relative;
  padding: 52px max(52px, calc((100vw - 1080px) / 2 + 52px)) 110px;
  background: #050505;
  color: #fff;
  font: 24px/1.62 Arial, Helvetica, sans-serif;
}



@keyframes assembly-blue-pulse {
  0%, 100% { opacity: .58; box-shadow: 0 0 5px rgba(49, 92, 255, .38); }
  50% { opacity: .95; box-shadow: 0 0 10px rgba(49, 92, 255, .7); }
}

.assembly-story-inner { max-width: 1000px; margin: 0 auto; }
.assembly-content p { margin: 0 0 28px; }
.assembly-content .short { margin-bottom: 8px; }
.remembered { font-weight: 700; }

.after-assembly {
  position: relative;
  width: 100%;
  padding: 95px 28px 110px;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, #14224d 0%, #071126 26%, #020611 58%, #000 100%);
  border-top: 2px solid #b58a2a;
  overflow: hidden;
}

.after-assembly::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 70%;
  height: 2px;
  transform: translateX(-50%);
  background: #e0b54d;
  box-shadow: 0 0 12px rgba(224, 181, 77, .65), 0 0 28px rgba(224, 181, 77, .25);
}

.video-wrap {
  position: relative;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 5px;
  background: linear-gradient(135deg, #d5ad48, #253d79, #d5ad48);
  box-shadow: 0 0 28px rgba(28, 60, 130, .38), 0 20px 48px rgba(0, 0, 0, .65);
}

.guitar-video { display: block; width: 100%; height: auto; background: #000; }

.assembly-content,
.after-assembly,
.privacy-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.guitar-song-title {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  color: #e3bc59;
  font: 600 14px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95);
  pointer-events: none;
}

.unmute-button, .replay-button {
  position: absolute;
  bottom: 18px;
  margin: 0;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  border: 1px solid #d5ad48;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.unmute-button { right: 18px; padding: 10px 16px; font-size: 14px; letter-spacing: .5px; }
.replay-button { left: 18px; width: 48px; height: 48px; padding: 0; font-size: 28px; line-height: 1; }
.unmute-button:hover, .replay-button:hover { background: rgba(15, 28, 58, .9); }

.founder-credit { margin: 18px 0 0; color: #fff; font: 16px/1.45 Arial, Helvetica, sans-serif; }
.founder-credit strong { color: #e3bc59; font-size: 18px; }

.privacy-section {
  width: 100%;
  background: #f0f0f0;
  color: #171717;
  font: 18px/1.6 Georgia, "Times New Roman", serif;
}

.privacy-content { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; }
.privacy-section h1 { margin: 0; font-size: clamp(32px, 6vw, 46px); font-weight: 600; line-height: 1.15; }
.privacy-section h2 { margin: 42px 0 16px; font-size: 25px; font-weight: 600; }
.privacy-section hr { margin: 20px 0 34px; border: 0; border-top: 1px solid #171717; }
.privacy-effective-date { margin: 0 0 28px; }
.privacy-section ul { margin: 0; padding-left: 24px; }
.privacy-section li { margin-bottom: 22px; padding-left: 4px; }
.privacy-section a { color: inherit; }
.privacy-contact { text-align: center; margin: 34px 0 22px; }
.privacy-contact-title { display: inline-block; margin: 0 0 28px; font-size: clamp(24px, 4.2vw, 26px); font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.privacy-home { text-align: center; margin: 0 0 20px; }
.privacy-home a { text-decoration: none; }
.privacy-footer { margin-top: 44px; padding-top: 20px; border-top: 1px solid #171717; color: #555; font-size: 14px; text-align: center; }

@media (max-width: 700px) {
  .assembly-content { padding: 38px 16px 90px; font-size: 21px; line-height: 1.58; }
  .after-assembly { padding: 60px 14px 80px; }
  .video-wrap { padding: 3px; }
  .guitar-song-title { top: 10px; right: 10px; font-size: 12px; }
  .unmute-button { right: 10px; bottom: 10px; padding: 8px 12px; font-size: 12px; }
  .replay-button { left: 10px; bottom: 10px; width: 44px; height: 44px; font-size: 26px; }
  .assembly-content::after {
    animation: none;
    filter: none;
    transform: none;
  }
  .thoth-threshold::after {
    animation: none;
    transform: none;
    opacity: .22;
  }
}

@media (prefers-reduced-motion: reduce) {
  
}

.thoth-threshold {
    position: relative;
    display: grid;
    min-height: 178px;
    padding: 20px clamp(18px, 5vw, 64px) 18px;
    place-items: center;
    overflow: hidden;
    color: #fff0c5;
    border-top: 1px solid #d7ad5b;
    border-bottom: 1px solid #d7ad5b;
    background:
        radial-gradient(circle at 50% 48%, rgba(215, 173, 91, 0.18), transparent 29%),
        linear-gradient(90deg, #050505, #151008 50%, #050505);
    box-shadow: inset 0 1px rgba(255, 238, 181, 0.18), inset 0 -1px rgba(255, 238, 181, 0.12);
    isolation: isolate;
}

.thoth-threshold::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-radial-gradient(circle at 50% 50%, transparent 0 28px, rgba(215, 173, 91, 0.09) 29px 30px, transparent 31px 58px);
    opacity: 0.62;
}

.thoth-threshold::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 36%, rgba(255, 229, 151, 0.13) 49%, transparent 62%);
    transform: translateX(-85%);
    animation: thoth-gold-pass 8s ease-in-out infinite;
}

.thoth-threshold-inner {
    width: min(1080px, 100%);
    text-align: center;
}

.thoth-ornament {
    display: grid;
    grid-template-columns: minmax(50px, 1fr) auto minmax(50px, 1fr);
    gap: clamp(16px, 3vw, 34px);
    align-items: center;
    width: 100%;
}

.thoth-rule {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8f5d0b 18%, #f0ca79 72%, #8f5d0b);
}

.thoth-rule:last-child {
    background: linear-gradient(90deg, #8f5d0b, #f0ca79 28%, #8f5d0b 82%, transparent);
}

.thoth-sigil {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border: 1px solid #ffe59d;
    background:
        linear-gradient(135deg, rgba(255, 243, 190, 0.42), transparent 32%),
        linear-gradient(135deg, #7c4d00, #e3ae2f 48%, #805000);
    box-shadow: 0 0 0 5px #080704, 0 0 0 6px rgba(215, 173, 91, 0.52), 0 0 26px rgba(240, 202, 121, 0.24);
    transform: rotate(45deg);
}

.thoth-eye-image {
    width: 74px;
    height: 60px;
    object-fit: contain;
    transform: rotate(-45deg);
    mix-blend-mode: multiply;
}

.thoth-quote {
    margin: 30px auto 0;
}

.thoth-quote p {
    margin: 0;
    color: #fff3d2;
    font: 500 clamp(0.96rem, 1.6vw, 1.24rem)/1.32 Georgia, "Times New Roman", serif;
    letter-spacing: 0.025em;
    text-wrap: balance;
}

.thoth-quote cite {
    display: block;
    margin-top: 8px;
    color: #d7ad5b;
    font: 800 clamp(0.58rem, 0.8vw, 0.72rem)/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

@keyframes thoth-gold-pass {
    0%, 32% { transform: translateX(-85%); opacity: 0; }
    48% { opacity: 1; }
    70%, 100% { transform: translateX(85%); opacity: 0; }
}


.assembly-content { isolation: isolate; overflow: hidden; }
.assembly-content::after {
 content: ""; position: absolute; inset: -15% -20%; z-index: -1;
 background: repeating-radial-gradient(ellipse at 23% 35%, transparent 0 7%, rgba(28, 32, 145, .11) 9%, transparent 13%), radial-gradient(ellipse at 75% 20%, rgba(30, 40, 170, .13), transparent 60%), radial-gradient(ellipse at 15% 80%, rgba(24, 30, 140, .12), transparent 55%);
 background-size: 160% 130%, 100% 100%, 100% 100%;
 filter: blur(16px); animation: marble-flow 28s ease-in-out infinite alternate;
 pointer-events: none;
}
@keyframes marble-flow { from { transform: translateY(-4%) scaleX(1); background-position: 0 0; } to { transform: translateY(5%) scaleX(1.15); background-position: 55% 100%; } }
@media (prefers-reduced-motion: reduce) { .assembly-content::after, .thoth-threshold::after { animation: none; } }
@media (max-width:700px) { .thoth-threshold { padding: 24px 20px; } .thoth-sigil { width:64px; height:64px; } .thoth-eye-image { width:58px; height:48px; } }

/* Quiet ornament between Contact and the site name. */
.privacy-contact { margin: 40px 0 26px; scroll-margin-top: 36px; }
.privacy-contact-title { margin: 0; font-size: 23px; font-weight: 400; letter-spacing: .055em; }
.privacy-contact::after { content: ""; display: block; width: min(240px, 65%); height: 9px; margin: 22px auto 0; background: linear-gradient(90deg, transparent, #292929 45%, transparent 45%, transparent 55%, #292929 55%, transparent) center / 100% 1px no-repeat; }
.privacy-contact::before { content: ""; position: absolute; width: 6px; height: 6px; background: #292929; transform: translate(-50%, -50%) rotate(45deg); left: 50%; bottom: 1.5px; }
.privacy-contact { position: relative; }
.privacy-contact-title:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Keep long mobile sections stable as they enter the screen. */
@media (pointer: coarse) {
  .assembly-content, .after-assembly, .privacy-section {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }
  .assembly-content::after, .thoth-threshold::after {
    animation: none;
    filter: none;
    transform: none;
  }
}
