/* Axion Global — Powers of Ten animatic */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold: #e8b44a;
  --cyan: #7fd8e8;
  --ink: #0a0c10;
  --paper: #c9ccd2;
  --dim: #7a7f88;
}
html { scroll-behavior: auto; }
body { background: #000; color: var(--paper); font-family: -apple-system, "Helvetica Neue", Inter, Arial, sans-serif; }

/* ---------- film ---------- */
#film { height: 1940vh; position: relative; }
#viewport { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
#screen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loopvid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 5; opacity: 0; pointer-events: none;
}

#loader {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: #000; z-index: 30; transition: opacity .8s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
#loader span { letter-spacing: .5em; font-size: 13px; color: var(--dim); padding-left: .5em; }
#loadbar { width: 140px; height: 1px; background: #22262e; }
#loadbar i { display: block; height: 100%; width: 0%; background: var(--gold); transition: width .2s; }

.overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8vw; opacity: 0; pointer-events: none;
}
.overlay.visible { pointer-events: auto; }

/* Legibility: scrim gradients between the film and the type */
.stop::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,
    rgba(3, 5, 9, .82) 0%,
    rgba(3, 5, 9, .58) 36%,
    rgba(3, 5, 9, 0) 68%);
}
#ov-intro::before, #ov-finale::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 62% 46% at 50% 50%,
    rgba(3, 5, 9, .68) 0%,
    rgba(3, 5, 9, .38) 55%,
    rgba(3, 5, 9, 0) 100%);
}

#skip {
  position: absolute; right: 28px; bottom: 26px; z-index: 25;
  background: rgba(5, 7, 11, .45); color: #d7dae0;
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 10px 18px; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s, color .3s, border-color .3s;
}
#skip:hover { background: rgba(232, 180, 74, .92); color: #000; border-color: transparent; }
#skip.gone { display: none; }

.navbtn {
  background: rgba(5, 7, 11, .55); color: var(--gold);
  border: 1px solid rgba(232, 180, 74, .65);
  padding: 13px 26px; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .5);
  transition: background .3s, color .3s, border-color .3s;
}
.navbtn:hover { background: var(--gold); color: #000; border-color: transparent; }

.stopnav { display: flex; gap: 12px; margin-top: 30px; }
.stopnav.centered { justify-content: center; }

.startbtn { margin-top: 6vh; padding: 15px 38px; font-size: 13px; }

@media (max-width: 640px) {
  .navbtn { padding: 11px 18px; font-size: 11px; }
}

/* ---------- mobile film experience ---------- */
@media (max-width: 700px) {
  /* Stop content moves to the thumb zone with a bottom-anchored scrim,
     leaving the upper frame clear for the imagery's vertical safe spine. */
  .stop { justify-content: flex-end; padding: 0 7vw 13vh; max-width: none; }
  .stop::before {
    background: linear-gradient(0deg,
      rgba(3, 5, 9, .9) 0%,
      rgba(3, 5, 9, .62) 34%,
      rgba(3, 5, 9, 0) 66%);
  }
  .stop h2 { font-size: 40px; }
  .lede { font-size: 16px; }
  .stopnav { margin-top: 24px; width: 100%; }
  .stopnav .navbtn { flex: 1; padding: 15px 8px; text-align: center; }
  .startbtn { padding: 15px 44px; }
  .wordmark img { width: min(70vw, 340px); }
  #skip {
    bottom: auto; top: calc(14px + env(safe-area-inset-top)); right: 14px;
    padding: 9px 14px; font-size: 10px;
  }
  .masthead { padding: 18vh 20px 14vh; }
  .band { padding: 14vh 20px !important; }
  .footerlogo { width: 120px; }
  #signup-form { flex-direction: column; }
  #signup-form button { padding: 15px 20px; }
}

#ov-intro { align-items: center; justify-content: center; text-align: center; }
.wordmark img {
  width: clamp(240px, 30vw, 420px); display: block;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .9));
}
.scrollcue {
  margin-top: 6vh; font-size: 11px; letter-spacing: .4em; padding-left: .4em;
  color: #b6bac2; text-transform: uppercase; animation: pulse 2.6s ease-in-out infinite;
  text-shadow: 0 1px 14px rgba(0,0,0,.9);
}
@keyframes pulse { 0%,100% { opacity:.25 } 50% { opacity:.9 } }

.stop { max-width: 560px; }
.stop .chapter, .stop h2, .stop .lede, .stop .link, .stop .stopnav {
  transform: translateY(16px); opacity: 0;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s ease;
}
.stop.visible .chapter { transform: none; opacity: 1; transition-delay: 0s; }
.stop.visible h2      { transform: none; opacity: 1; transition-delay: .12s; }
.stop.visible .lede   { transform: none; opacity: 1; transition-delay: .26s; }
.stop.visible .link   { transform: none; opacity: 1; transition-delay: .42s; }
.stop.visible .stopnav { transform: none; opacity: 1; transition-delay: .56s; }
.chapter { font-size: 11px; letter-spacing: .4em; color: #aeb3bd; margin-bottom: 12px; text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.stop h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 300; letter-spacing: .04em; color: #ffffff; text-shadow: 0 2px 30px rgba(0,0,0,.95), 0 0 3px rgba(0,0,0,.6); }
.dot { color: var(--gold); }
.lede { margin-top: 14px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 300; color: #e6e8ed; line-height: 1.6; text-shadow: 0 1px 18px rgba(0,0,0,.9); }
.link { display: inline-block; margin-top: 22px; font-size: 13px; letter-spacing: .12em; color: #9fe4f2; text-decoration: none; border-bottom: 1px solid rgba(159,228,242,.5); padding-bottom: 3px; width: fit-content; text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.link:hover { color: #fff; border-color: #fff; }

#ov-finale { align-items: center; justify-content: center; text-align: center; }
.finale-line { font-size: clamp(17px, 2vw, 26px); font-weight: 300; letter-spacing: .18em; color: #f2f4f7; text-shadow: 0 2px 26px rgba(0,0,0,.95); }

/* ---------- editorial ---------- */
#site { background: var(--ink); position: relative; z-index: 20; }
#site section, #site footer { max-width: 1060px; margin: 0 auto; padding: 11vh 24px; }

.masthead {
  position: relative; text-align: center; padding: 24vh 24px 20vh;
  background: url('img/constellation.jpg') center / cover no-repeat;
}
.masthead::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,.2), rgba(10,12,16,.55) 60%, var(--ink) 100%);
}
.masthead .inner { position: relative; }
.marklogo { width: clamp(54px, 6vw, 84px); margin-bottom: 4vh; filter: drop-shadow(0 2px 14px rgba(0,0,0,.8)); }
.foundations { font-size: clamp(24px, 3.8vw, 46px); font-weight: 300; letter-spacing: .06em; color: #f4f5f8; text-shadow: 0 2px 24px rgba(0,0,0,.8); }
.foundations span { color: var(--gold); }
.foundations .star { text-shadow: 0 0 14px rgba(232,180,74,.95); }
.positioning { margin-top: 4vh; color: #a9aeb8; font-weight: 300; line-height: 1.9; font-size: 15px; text-shadow: 0 1px 12px rgba(0,0,0,.8); }

#site h3 {
  font-weight: 300; font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: .02em; color: #eef0f4; margin-bottom: 16px; line-height: 1.1;
}
.sechead { max-width: 640px; margin-bottom: 6vh; }
.sub { color: var(--dim); font-size: 15px; line-height: 1.75; }

/* About */
.aboutlead { max-width: 640px; margin-bottom: 7vh; }
.aboutlead p { font-weight: 300; font-size: 16.5px; line-height: 1.85; color: #b9bdc6; }
.aboutlist { list-style: none; margin-top: 4vh; }
.aboutlist li {
  padding: 14px 0 14px 26px; border-top: 1px solid #1b1f27;
  font-weight: 300; font-size: 15px; line-height: 1.6; color: #b9bdc6;
  position: relative;
}
.aboutlist li:last-child { border-bottom: 1px solid #1b1f27; }
.aboutlist li::before { content: "."; position: absolute; left: 4px; top: 4px; color: var(--gold); font-size: 24px; }
.aboutnote { margin-top: 4vh; color: #3d424b; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

/* Artifact grid (unnamed brands) */
.artifacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.artifact { border: 1px solid #1b1f27; background: #0d1016; transition: border-color .3s, transform .3s; }
.artifact:hover { border-color: rgba(232, 180, 74, .45); transform: translateY(-3px); }
.artifact img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.artifact figcaption { padding: 18px 20px 22px; font-weight: 300; font-size: 14px; line-height: 1.65; color: #b9bdc6; }
.artifact figcaption span { display: block; color: var(--gold); font-size: 11px; letter-spacing: .22em; margin-bottom: 8px; }

/* Ruminations row */
.rumrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.rumcard { text-decoration: none; border: 1px solid #1b1f27; background: #0d1016; transition: border-color .3s, transform .3s; }
.rumcard:hover { border-color: rgba(127, 216, 232, .45); transform: translateY(-3px); }
.rumcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.rumcard .rumcat { padding: 16px 20px 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.rumcard h4 { padding: 8px 20px 20px; font-weight: 300; font-size: 17px; line-height: 1.4; color: #e6e8ed; }
.more { margin-top: 5vh; }

/* We are Thinkers — newsletter sign-up */
#signup-form { display: flex; gap: 12px; max-width: 560px; }
#signup-form input {
  flex: 1; background: #0f1218; border: 1px solid #1b1f27; color: #e7e9ee;
  padding: 15px 18px; font-size: 16px; font-family: inherit; font-weight: 300; min-width: 0;
}
#signup-form input:focus { outline: none; border-color: var(--gold); }
#signup-form button {
  background: none; border: 1px solid var(--gold); color: var(--gold);
  padding: 15px 32px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
#signup-form button:hover { background: var(--gold); color: #000; }
#signup-status { margin-top: 14px; font-size: 13px; color: var(--dim); min-height: 1em; }
.signupnote { margin-top: 3vh; color: #3d424b; font-size: 12px; letter-spacing: .04em; }
.signupnote a { color: #5a606b; }
.signupnote a:hover { color: var(--gold); }

/* Do Good band */
.band {
  max-width: none !important; position: relative; text-align: center;
  padding: 20vh 24px !important;
  background: url('img/dawn-band.jpg') center / cover no-repeat;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(10,12,16,.35) 30%, rgba(10,12,16,.35) 70%, var(--ink) 100%);
}
.bandinner { position: relative; max-width: 620px; margin: 0 auto; }
.bandline { margin: 3vh 0 4vh; font-weight: 300; font-size: clamp(17px, 2vw, 24px); color: #e6e8ed; text-shadow: 0 1px 16px rgba(0,0,0,.8); }

#contact { max-width: 720px !important; }

.strategy { color: var(--cyan); text-decoration: none; font-size: 16px; font-weight: 300; letter-spacing: .04em; border-bottom: 1px solid rgba(127,216,232,.35); padding-bottom: 3px; }
.strategy:hover { color: #fff; border-color: #fff; }

#contact-form { display: flex; flex-direction: column; gap: 20px; }
#contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
#contact-form input, #contact-form textarea {
  background: #0f1218; border: 1px solid #1b1f27; color: #e7e9ee;
  padding: 12px 14px; font-size: 16px; font-family: inherit; font-weight: 300;
}
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--gold); }
#contact-form button {
  align-self: flex-start; background: none; border: 1px solid var(--gold); color: var(--gold);
  padding: 12px 34px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer;
}
#contact-form button:hover { background: var(--gold); color: #000; }
/* Honeypot field: out of sight, out of the tab order, still in the DOM for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-status { font-size: 13px; color: var(--dim); min-height: 1em; }

footer { text-align: center; }
.footerlogo { width: 150px; opacity: .55; margin-bottom: 22px; }
footer p { color: #3d424b; font-size: 12px; letter-spacing: .08em; }
.footerlinks { margin-top: 10px; }
.footerlinks a { color: #5a606b; text-decoration: none; }
.footerlinks a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .stop { padding-right: 10vw; }
  #site section, #site header, #site footer { padding: 9vh 20px; }
}
