/* ===========================================================================
   PES + Eclipse Power — access page
   ---------------------------------------------------------------------------
   Built 01-10-2026 from the Claude Design comp (PES x Eclipse Login.html).

   WHAT CHANGED FROM THE COMP, AND WHY

   - No React. The comp loaded react and react-dom from unpkg.com. This page
     has two panels and a form; that is forty lines of plain JS, and an
     external script host would be blocked outright by the CSP in _headers.
   - The background flare is the brand asset at 1676px (42KB as webp), not the
     comp's 14,799 x 14,733 PNG. That export was 2.3MB on the wire and about
     870MB once decoded, which stalls a phone.
   - style-hover="" is not a browser attribute, so every hover in the comp was
     the design tool's runtime. They are real CSS here.
   - Fonts are the portal's own self-hosted set rather than ten new files.

   Palette and geometry are taken from the comp verbatim: the bottom glow
   stops, the flare position, the heading sheen gradient, the type sizes.
   =========================================================================== */

/* ------------------------------------------------------------------ fonts -- */
/* Aeonik — licensed webfonts from CoType Foundry.
   Clash Display — free licence, supplied in the brand toolkit.
   Both are copied from the Price List Portal, which serves the same two
   families. The comp asked for Aeonik 300 and Clash 500; PES holds neither
   weight, so those map to 400 and 600. */
@font-face {
  font-family: "Aeonik";
  src: url("/fonts/aeonik-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("/fonts/aeonik-semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/fonts/ClashDisplay-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------------ tokens -- */
:root {
  --font-display: "Clash Display", "Aeonik", system-ui, sans-serif;
  --font-body: "Aeonik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, .62);
  --ink-faint: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .30);
  --line-lit: rgba(255, 255, 255, .68);

  --eclipse-orange: #ff5800;
  --pes-purple: #6d2899;
  --light-grey: #d3d3d3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ layout -- */
.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;          /* iOS: svh excludes the collapsing toolbar */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(26px, 4vh, 44px) clamp(24px, 4vw, 56px);
}

.top  { position: relative; z-index: 2; display: flex; justify-content: center;
        animation: fade .6s ease-out both; }
.mid  { position: relative; z-index: 2; display: flex; flex-direction: column;
        align-items: center; text-align: center;
        gap: clamp(22px, 3.4vh, 34px); padding: 32px 0; }
.foot { position: relative; z-index: 2; display: flex; align-items: baseline;
        justify-content: space-between; gap: 18px;
        font-size: 9px; font-weight: 600; letter-spacing: .16em;
        animation: fade .8s ease-out .2s both; }

.lockup {
  width: min(290px, 68%);
  height: auto;
  display: block;
  margin-top: clamp(28px, 9vh, 96px);
}

/* -------------------------------------------------------------- decoration -- */
.glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  pointer-events: none;
  background: radial-gradient(115% 100% at 50% 112%,
    var(--eclipse-orange) 0%, var(--eclipse-orange) 16%,
    #d24b1e 30%, var(--pes-purple) 48%,
    rgba(109, 40, 153, .25) 57%, rgba(0, 0, 0, 0) 66%);
}

.edge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 6%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, 0) 94%);
}

.flare {
  position: absolute; top: 26%; left: 83.5%;
  transform: translate(-50%, -50%);
  width: min(820px, 85vw);
  height: auto;
  max-width: none;
  mix-blend-mode: screen;
  opacity: .85;
  filter: brightness(1.7) saturate(1.15);
  pointer-events: none;
  animation: flareIn 1.6s cubic-bezier(.2, .7, .2, 1) .25s both;
}

/* ---------------------------------------------------------------- headings -- */
.eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: .3em;
  color: var(--light-grey);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .9);
  animation: slide .7s cubic-bezier(.2, .7, .2, 1) .05s both;
}
.eyebrow.light { color: var(--ink); letter-spacing: .22em; animation: none; }

.hero {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 5.6vw, 92px);
  line-height: 1.04;
  letter-spacing: .002em;
  text-wrap: balance;
  animation: slide .9s cubic-bezier(.2, .7, .2, 1) .14s both;
}

/* The second line carries a gradient that drifts across it. background-clip
   needs the -webkit- prefix to survive Safari. */
.sheen {
  background: linear-gradient(92deg,
    #ff5800 0%, #ff7d33 26%, #a85fd0 62%, #8a3fbf 84%, #6d2899 100%);
  background-size: 260% 100%;
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheenDrift 9s ease-in-out -4.5s infinite alternate;
  filter: drop-shadow(0 0 30px rgba(255, 88, 0, .18));
}

/* ------------------------------------------------------------------ panels -- */
.panel {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; width: min(340px, 100%); margin-top: 6px;
  animation: slide .9s cubic-bezier(.2, .7, .2, 1) .3s both;
}
.panel[hidden] { display: none; }

.go {
  display: block; width: 100%;
  padding: 13px 20px;
  background: var(--ink); color: #000;
  font-family: var(--font-body); font-weight: 600;
  font-size: 11px; letter-spacing: .22em;
  text-align: center; text-decoration: none;
  border: 1px solid var(--ink);
  transition: background .18s ease-out, color .18s ease-out;
}
.go:hover, .go:focus-visible { background: #d3d3d3; border-color: #d3d3d3; color: #000; }

.linkish {
  background: none; border: 0; padding: 2px 0;
  color: rgba(255, 255, 255, .5);
  font-family: var(--font-body); font-size: 10px; letter-spacing: .16em;
  cursor: pointer;
  transition: color .18s ease-out;
}
.linkish:hover, .linkish:focus-visible { color: var(--ink); }

/* -------------------------------------------------------------------- form -- */
.form { display: flex; flex-direction: column; gap: 10px; width: 100%; }

.field {
  width: 100%; padding: 12px 16px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line); border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body); font-size: 11px; letter-spacing: .1em;
  text-align: center; outline: none;
  backdrop-filter: blur(3px);
  transition: border-color .18s ease-out;
}
.field::placeholder { color: var(--ink-faint); letter-spacing: .14em; }
.field:focus { border-color: var(--line-lit); }
.field:disabled { opacity: .5; }

/* Email and SEND share one bordered box, so the border lives on the wrapper
   and the input inside it goes bare. */
.combo {
  display: flex; align-items: stretch; overflow: hidden;
  border: 1px solid var(--line); border-radius: 0;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(3px);
  transition: border-color .18s ease-out;
}
.combo:focus-within { border-color: var(--line-lit); }
.field.bare { flex: 1; min-width: 0; background: transparent; border: none; }

.send {
  background: var(--ink); border: none; color: #000;
  font-family: var(--font-body); font-weight: 600;
  font-size: 10px; letter-spacing: .16em;
  padding: 0 20px; cursor: pointer; white-space: nowrap;
  transition: background .18s ease-out;
}
.send:hover:not(:disabled), .send:focus-visible:not(:disabled) { background: #d3d3d3; }
.send:disabled { opacity: .55; cursor: default; }

/* The honeypot. Off-screen rather than display:none, because some bots skip
   fields they can see are hidden. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.formmsg {
  margin: 0; min-height: 1em;
  font-size: 11.5px; line-height: 1.6; color: var(--ink-dim);
}
.formmsg.bad { color: #ffb3a1; }

.sentcopy {
  margin: 0; max-width: 44ch;
  font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .65);
}
.sentcopy a { color: var(--ink); }

/* ------------------------------------------------------------------ footer -- */
.footgroup { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: rgba(255, 255, 255, .55); text-decoration: none;
          transition: color .18s ease-out;
          /* The footer sits on the brightest part of the orange glow. White at
             55% on that is marginal, so it carries the same shadow as the
             eyebrow rather than being lightened — lightening it would wash it
             out against the black at the other end of the row. */
          text-shadow: 0 1px 10px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .8); }
.foot a:hover, .foot a:focus-visible { color: var(--ink); }

/* Focus is never removed, only restyled — this page is reachable by keyboard. */
:focus-visible { outline: 1px solid var(--line-lit); outline-offset: 3px; }

/* ...except on the inputs, which already announce focus by lighting their own
   border. The ring on top of that reads as two boxes, not one focused field. */
.field:focus-visible, .field.bare:focus-visible { outline: none; }

/* -------------------------------------------------------------- animations -- */
@keyframes fade   { from { opacity: 0; transform: translateY(10px); }
                    to   { opacity: 1; transform: translateY(0); } }
@keyframes slide  { from { opacity: 0; transform: translateY(64px); }
                    to   { opacity: 1; transform: translateY(0); } }
@keyframes flareIn{ from { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
                    to   { opacity: .85; transform: translate(-50%, -50%) scale(1); } }
@keyframes sheenDrift { from { background-position: 0% 50%; }
                        to   { background-position: 100% 50%; } }

/* Someone who has asked their machine for less movement gets the finished
   state, not a shorter version of the movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .flare { opacity: .85; transform: translate(-50%, -50%) scale(1); }
}

/* ----------------------------------------------------------------- narrow -- */
@media (max-width: 560px) {
  .foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .flare { top: 20%; left: 70%; width: 120vw; opacity: .7; }
  .lockup { margin-top: clamp(20px, 6vh, 56px); }
}

/* A short landscape phone has no room for 100vh of padding and a hero. */
@media (max-height: 560px) {
  .mid { padding: 16px 0; gap: 16px; }
  .lockup { margin-top: 12px; }
}

/* ======================================================= document pages == */
/* The privacy notice, and anything else that is genuinely prose.
   Note the max-width here, after the portal spent an hour removing one: a
   reading measure earns its keep over sustained paragraphs, which is exactly
   what the portal's two-line captions were not. Same rule, opposite answer,
   because the content is different. */

.docbody { background: #000; }

.doc {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) clamp(20px, 5vw, 32px) 96px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.7;
}

.docback {
  display: inline-block; margin-bottom: 36px;
  font-size: 10px; font-weight: 600; letter-spacing: .16em;
  color: rgba(255, 255, 255, .5); text-decoration: none;
  transition: color .18s ease-out;
}
.docback:hover, .docback:focus-visible { color: var(--ink); }

.doclockup { display: block; width: 220px; height: auto; margin-bottom: 40px; }

.doc h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(32px, 5vw, 46px); line-height: 1.1;
  margin: 0 0 6px; color: var(--ink);
}
.doc h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 21px; line-height: 1.25;
  margin: 44px 0 10px; color: var(--ink);
}
.doc h3 {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  margin: 26px 0 6px; color: var(--light-grey);
}

.docmeta { margin: 0 0 32px; font-size: 12px; letter-spacing: .1em;
           color: rgba(255, 255, 255, .45); }
.doc p { margin: 0 0 14px; }
.doc .lead { font-size: 16.5px; color: rgba(255, 255, 255, .88); margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); text-decoration: underline;
         text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { text-decoration-color: var(--eclipse-orange); }
.doc code { font-family: ui-monospace, Menlo, Consolas, monospace;
            font-size: .9em; color: var(--light-grey); }

.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 7px; }

.doctable { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.doctable td { padding: 9px 14px 9px 0; vertical-align: top;
               border-bottom: 1px solid rgba(255, 255, 255, .13); font-size: 14px; }
.doctable td:first-child { width: 36%; color: rgba(255, 255, 255, .55); }

/* Anything still to be filled in. Deliberately loud: this page must not go
   live with a placeholder in it, and a quiet one is a placeholder that ships. */
.doc mark {
  background: rgba(255, 88, 0, .18);
  color: #ffb27a;
  padding: 1px 6px;
  border: 1px solid rgba(255, 88, 0, .45);
}

.docrule { border: 0; border-top: 1px solid rgba(255, 255, 255, .14); margin: 44px 0 20px; }

.docnote {
  font-size: 13px; line-height: 1.6;
  color: #ffb27a;
  background: rgba(255, 88, 0, .08);
  border: 1px solid rgba(255, 88, 0, .3);
  padding: 14px 16px;
}

.docfoot {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 9px; font-weight: 600; letter-spacing: .16em;
}
.docfoot a { color: rgba(255, 255, 255, .5); text-decoration: none; }
.docfoot a:hover, .docfoot a:focus-visible { color: var(--ink); }

/* Turnstile host. Zero height until a widget is rendered into it, so an
   unconfigured site key leaves no gap in the form. */
.turnstile:empty { display: none; }
.turnstile { display: flex; justify-content: center; }
