/* PHNTM One website in the device's Midnight look (owner, 2026-11-21 ~22:15 CST: "apply the Midnight theme to the
   website just like the PHNTM One device"). Loaded LAST, after bright-20261120.css, on every page that carries the
   shell. Values come from the device's own tokens (phntm_one/static/phntm-tokens.css, html[data-theme=midnight]):
   ground #101b25, raised #16232d, surface #1b2b35, border #324652, text #f2f6f3, muted #b3c0c8, accent #51d6ad.
   Contrast (WCAG 2.x) on the worst ground used here (#1b2b35 card): text 13.4, muted 8.3, faint 7.2, accent 8.0,
   amber #eab764 8.4, ember #ff968d 7.0; ink #101b25 on the accent button 9.6. Never gradient text, never glow halos
   without offset; depth is a soft offset shadow and a hairline. */

:root, .ph-root {
  --cream: #101b25; --sand: #16232d; --sage: #132630; --white: #f2f6f3; --card: #1b2b35;
  --ink: #101b25; --ink2: #16232d; --panel: #1b2b35; --panel2: #22343f;
  --edge: #2b3e49; --edge2: #3a505d; --line: #5b7482; --hairline: #ffffff17;
  --text: #f2f6f3; --muted: #b3c0c8; --faint: #a3b1ba;
  --phosphor: #51d6ad; --phosphor-dim: #49bd9a; --phosphor-hover: #79e6c4; --on-phosphor: #0c1a14;
  --mint: #51d6ad; --teal: #51d6ad; --signal: #51d6ad; --signal-blue: #92c8ff; --sky: #92c8ff;
  --amber: #eab764; --planned: #eab764; --ember: #ff968d;
  --glass: color-mix(in srgb, #16232d 78%, transparent);
  --shadow-soft: 0 1px 2px rgba(2, 8, 14, .35), 0 10px 28px rgba(2, 8, 14, .32);
  --shadow-pop: 0 2px 6px rgba(2, 8, 14, .4), 0 24px 60px rgba(2, 8, 14, .45);
  --mid-glow: rgba(81, 214, 173, .14);
  --mid-ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
html { background: var(--cream); }
body { background: var(--cream); color: var(--text); }
::selection { background: rgba(81, 214, 173, .32); color: #f2f6f3; }
html { scrollbar-color: #3a505d var(--cream); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #2f4450; border-radius: 999px; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: #3f5866; }
input, textarea, select { caret-color: var(--phosphor); }
a { text-underline-offset: .18em; }

/* the page itself: one quiet light source top-right, the way the device's Home glows */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 88% -10%, rgba(81, 214, 173, .07), transparent 70%),
    radial-gradient(50vmax 40vmax at -10% 30%, rgba(146, 200, 255, .045), transparent 70%);
}

/* buttons: the device's accent with ink text, a press that answers the finger */
.ph-btn { background: var(--phosphor); color: var(--on-phosphor); box-shadow: 0 1px 2px rgba(2, 8, 14, .4), 0 8px 22px rgba(81, 214, 173, .16); }
.ph-btn:hover, .ph-btn:active { background: var(--phosphor-hover); color: var(--on-phosphor); }
.ph-btn--ghost { background: var(--card); color: var(--text); border-color: var(--edge2); box-shadow: var(--shadow-soft); }
.ph-btn--ghost:hover, .ph-btn--ghost:active { background: var(--panel2); color: var(--text); border-color: var(--line); }
.button, .btn.primary, body:not(.storefront) .btn.primary, .site-header .nav .cta, .mnav .sheet .order {
  background: var(--phosphor); border-color: var(--phosphor); color: var(--on-phosphor);
}
.button:hover, .btn.primary:hover, .site-header .nav .cta:hover { background: var(--phosphor-hover); border-color: var(--phosphor-hover); color: var(--on-phosphor); }
.btn.ghost, body:not(.storefront) .btn.ghost { background: var(--card); color: var(--text); border-color: var(--edge2); }
.ph-btn, .button, .btn, .site-header .nav .cta { transition: transform .18s var(--mid-ease), background-color .18s ease, box-shadow .25s ease, border-color .18s ease; }
.ph-btn:active, .button:active, .btn:active, .site-header .nav .cta:active { transform: scale(.97); }
.ph-link:hover { color: var(--phosphor); border-color: var(--phosphor); }

/* header and footer */
.ph-header { background: color-mix(in srgb, #0f1a23 86%, transparent); border-bottom: 1px solid var(--edge); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.ph-header .ph-brand svg, .ph-footer .ph-brand svg { color: var(--phosphor); }
.ph-footer { background: #0c161e; border-top: 1px solid var(--edge); }
.site-header::before { background: color-mix(in srgb, #0f1a23 90%, transparent); }
.site-footer { background: #0c161e; }

/* cards: the device's surface, a hairline, and a soft lift */
.flagship-card, .ph-card, .ph-tile, .ph-status, :is(.ph-root, #ph) .ph-tile, :is(.ph-root, #ph) .ph-status {
  background: linear-gradient(180deg, #1e2f3a, #182834); border-color: var(--edge); box-shadow: var(--shadow-soft);
}
.flagship-figures > div { background: var(--cream); border-color: var(--edge); }

/* section bands follow the device: ground, raised, and a teal-tinted rail */
.flagship-section { background: linear-gradient(180deg, var(--sage), var(--cream)); }
.ph-section--deep, :is(.ph-root, #ph).ph-section--deep { background: var(--sand); }
.ph-local-strip.ph-root { background: var(--sage); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.flagship-card-photo img { box-shadow: var(--shadow-soft); }

/* ── Landing hero: the unit on a Midnight stage ── */
.ph-hero { background: radial-gradient(80% 60% at 70% 0%, #17303a 0%, transparent 70%), var(--cream); }
.ph-frame {
  background:
    radial-gradient(70% 90% at 26% 38%, rgba(81, 214, 173, .10) 0%, rgba(81, 214, 173, 0) 62%),
    linear-gradient(160deg, #1b2b35 0%, #132630 55%, #101b25 100%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-pop);
}
.ph-frame__photo img { filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .55)) drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.ph-frame__photo figcaption, :is(.ph-root, #ph) .ph-hero__screen figcaption { color: var(--faint); }
:is(.ph-root, #ph) .ph-hero__screen img {
  border-color: var(--edge2); background: var(--card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 70px rgba(0, 0, 0, .5);
}

/* the homepage proof band was the one dark band on a light site; in Midnight it becomes the deepest band */
#offline.ph-local.ph-root {
  --ink: #0a131b; --ink2: #0c161e; --panel: #16232d; --panel2: #1b2b35;
  --edge: #2b3e49; --edge2: #3a505d; --line: #5b7482; --hairline: #ffffff14;
  --text: #f2f6f3; --muted: #c1ced3; --faint: #b3c0c8;
  --phosphor: #51d6ad; --phosphor-dim: #51d6ad; --phosphor-hover: #79e6c4; --on-phosphor: #0c1a14;
  background: radial-gradient(110% 90% at 85% 0%, #15303a 0%, transparent 60%), linear-gradient(180deg, #0c161e, #0a131b);
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
}
:is(.ph-root, #ph)#offline.ph-local .ph-local__grid > li { background: rgba(255, 255, 255, .035); border-color: var(--edge); }
:is(.ph-root, #ph)#offline.ph-local .ph-wire { background: #0a131b; border-color: #2f6f5c; color: var(--phosphor); }
:is(.ph-root, #ph)#offline.ph-local .ph-wire::before { background: var(--phosphor); box-shadow: 0 0 0 4px rgba(81, 214, 173, .16); }
.ph-local.ph-root:not(#offline) { background: linear-gradient(180deg, var(--sage), var(--cream)); }
:is(.ph-root, #ph).ph-local:not(#offline) .ph-local__grid > li { background: var(--card); border-color: var(--edge); box-shadow: var(--shadow-soft); }
:is(.ph-root, #ph).ph-local:not(#offline) .ph-wire { background: var(--card); border-color: #2f6f5c; color: var(--phosphor); }

/* who it's for */
.ph-desks { background: var(--cream); border-top: 1px solid var(--edge); }
.ph-desks__row { border-top-color: var(--edge2); }

/* ── Older stylesheets hard-coded light grounds; bright-20261120.css mapped them to stone. Map them to Midnight. ── */
.product-hero, .home-store .product-hero { background: radial-gradient(80% 60% at 70% 0%, #17303a 0%, transparent 70%), var(--cream) !important; }
.product-facts, .home-store .product-facts { background: var(--sand); border-color: var(--edge); }
.home-store .experience-card, .home-store .dossier-grid > a, .build-panel { background: var(--card); border-color: var(--edge); }
.home-store .current-build, .ft-group:nth-of-type(even) { background: var(--sand); }
.gallery-photo a, .order-store .order-intro img.real-photo, .first-pass-demo video, .home-store .hero-product.real-product a { background: var(--panel2); }
.gallery-viewer { background: var(--card); border-color: var(--edge); }
.gallery-viewer::backdrop { background: rgba(6, 12, 18, .88); }
.site-header .mnav .sheet { background: var(--cream); }
.feature-page .page-hero, .home-screen-section, .film-section, .versus-section { background: var(--sand); }
.feature-page .ft, .release-note, .instruction-example, .order-panel, .order-assurance, .tour-invitation,
.home-store .buyer-next, .explore-panel, .feature-group-details[open] > summary { background: var(--card); }
.screen { background: linear-gradient(160deg, var(--panel2), var(--sand)); }
.tour-toolbar button, .tour-overview button, .tour-jump select { background: var(--card); color: var(--text); }
.viz.rv-term, video { background-color: var(--panel2); }
.ly, .l3 .ram { background-color: var(--card); }
.cur-tools { background: var(--cream); }
.cur-chip[aria-pressed="true"] { color: var(--on-phosphor); }
.cur-chip[aria-pressed="true"] span { color: #0c1a14; }
.smp-card__img { background: #fff; box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .7); }
input, textarea, select { background-color: var(--card); color: var(--text); border-color: var(--edge2); }
::placeholder { color: var(--faint); opacity: 1; }
table { color: var(--text); }
th, td { border-color: var(--edge); }
hr { border-color: var(--edge); }

/* ── Motion (see motion-20261121.js). Everything is visible by default; the hidden start state exists only when the
   script has marked the page (html.mid-motion) and the visitor has not asked for reduced motion. ── */
.mid-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--mid-p, 0)); background: linear-gradient(90deg, #49bd9a, #51d6ad 60%, #92c8ff); }
.ph-header { transition: box-shadow .3s ease, background-color .3s ease; }
html.mid-scrolled .ph-header { box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }

html.mid-motion [data-mid] { opacity: 0; transform: translate3d(0, 16px, 0); filter: blur(3px);
  transition: opacity .7s var(--mid-ease), transform .9s var(--mid-ease), filter .7s var(--mid-ease);
  transition-delay: var(--mid-d, 0s); }
html.mid-motion [data-mid="left"] { transform: translate3d(-22px, 0, 0); }
html.mid-motion [data-mid="right"] { transform: translate3d(22px, 0, 0); }
html.mid-motion [data-mid="scale"] { transform: scale(.965); }
html.mid-motion [data-mid].mid-in { opacity: 1; transform: none; filter: none; }

/* the hero entrance: the unit settles onto its stage, the screen capture slides in after it */
html.mid-motion .ph-frame__photo img { animation: mid-settle 1.1s var(--mid-ease) both; }
html.mid-motion .ph-hero__screen { animation: mid-slide 1s .25s var(--mid-ease) both; }
@keyframes mid-settle { from { opacity: 0; transform: translate3d(0, 26px, 0) rotate(-1.5deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mid-slide { from { opacity: 0; translate: 28px 0; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: none; } }

/* the unit breathes: a slow accent light behind it, like the orb on its screen */
.ph-frame__photo { position: relative; }
.ph-frame__photo::before {
  content: ""; position: absolute; left: 12%; right: 18%; top: 14%; bottom: 22%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(81, 214, 173, .22), transparent); filter: blur(30px);
  animation: mid-breathe 6s ease-in-out infinite;
}
@keyframes mid-breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }

/* the pointer is a soft lamp on cards and tiles; the card lifts a little toward it */
.mid-lamp { position: relative; isolation: isolate; transition: transform .35s var(--mid-ease), border-color .25s ease, box-shadow .35s ease; }
.mid-lamp::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(81, 214, 173, .10), transparent 45%);
  transition: opacity .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .mid-lamp:hover { transform: translateY(-3px); border-color: var(--edge2); box-shadow: var(--shadow-pop); }
  .mid-lamp:hover::after { opacity: 1; }
}

/* the facts strip ticks across: each fact lights up as it arrives */
html.mid-motion .product-facts span { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--mid-ease), transform .6s var(--mid-ease); transition-delay: var(--mid-d, 0s); }
html.mid-motion .product-facts.mid-in span { opacity: 1; transform: none; }
.product-facts strong { color: var(--phosphor); }

/* the desks: the rule draws across when the row arrives */
.ph-desks__row { position: relative; }
html.mid-motion .ph-desks__row { border-top-color: transparent; }
html.mid-motion .ph-desks__row::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--edge2);
  transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--mid-ease); }
html.mid-motion .ph-desks__row.mid-in::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html.mid-motion [data-mid], html.mid-motion .product-facts span { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  html.mid-motion .ph-frame__photo img, html.mid-motion .ph-hero__screen { animation: none !important; }
  .ph-frame__photo::before { animation: none; }
  .mid-lamp, .mid-lamp:hover { transform: none !important; transition: none !important; }
  .mid-progress { display: none; }
  html.mid-motion .ph-desks__row::before { transform: none; transition: none; }
  .ph-btn:active, .button:active, .btn:active { transform: none; }
}

/* ── Generated 2026-11-21 from the hard-coded light-theme literals in the older stylesheets (dark text → Midnight text,
   muted, accent, amber or ember by hue; light grounds → surface; light borders → edge). Same selectors, loaded later. ── */
.home-store .buyer-shortcuts,
.home-store .buyer-next,
.italy-order-note,
.order-panel,
.tour-invitation,
.feature-group-details,
.feature-group-details[open]>summary,
.flagship-card,
.flagship-figures>div,
.flagship-card-photo img,
.gallery-viewer,
.interest-panel,
.language-photo a,
.model-viewer,
.model-load button,
.model-panel,
.model-control-group+.model-control-group,
.model-panel button,
.photo-original,
.home-store .hero-product.real-product a { border-color: var(--edge); }
.release-note,
.claim-status,
.instruction-example,
.tour-toolbar button,.tour-overview button,
.tour-jump select,
.tour-device,
.tour-device-bottom,
.tour-overview article,
.ph-local-strip.ph-root,
.home-store .product-facts,
.home-store .store-section,
.ft-list .ft,
.screen .side,
.chat .m.u,
.rv-term .tbar,
.day-track .screen,
.l2,
.l3,
.l4,
.l5 { border-color: var(--edge); }
.home-store .buyer-shortcuts a,
.home-store .buyer-next li p,
.hero-product figcaption,
.home-store .hero-product figcaption,
.home-store .hero-detail,
.capability-context,
.notes-layout figcaption,
.notes-layout p,
.release-details summary,
.feature-group-details>summary small,
.flagship-points li,
.flagship-figures dd,
.flagship-card .flagship-note,
.flagship-foot,
.gallery-photo figcaption,
.gallery-toolbar,
.gallery-viewer-note,
.lang-switch,
.lang-switch a,
.language-copy>p { color: var(--muted); }
.language-options li,
.language-copy .smallprint,
.language-photo figcaption,
.language-photo-note,
.model-eyebrow,
.model-panel button,
.model-separation label,
.model-separation>div,
.model-detail p:last-child,
.model-keyboard,
.ship-to option:disabled,
.flagship-card-photo figcaption,
.photo-original summary,
.release-note,
.tour-facts,
.tour-device-top,.tour-device-bottom,
.tour-device-top>span:first-child,
.tour-start p,
.tour-start small,
.home-store .hero-description { color: var(--muted); }
.rv-term .tl { color: var(--muted); }
.home-store .buyer-next,
.storefront video,
.hero-product::after,
.product-facts,
.final-reserve,
.reserve-success,
.order-panel,
.order-assurance,
.drawing-dialog,
.home-store .hero-product.real-product a,
.tour-invitation,
.feature-group-details[open]>summary,
.flagship-card,
.flagship-figures>div,
.gallery-photo a,
.gallery-viewer,
.gallery-viewer button,
.contact-section,
.interest-link:hover,
.interest-panel input:not([type=checkbox]),.interest-panel select,.interest-panel textarea { background: var(--card); }
.language-photo a,
.model-viewer,
.model-load button,
.model-panel button:hover:enabled,
.ship-to select,
.referral-field input,
.release-note,
.feature-page .page-hero,
.feature-page .ft,
.instruction-example,
.tour-toolbar button,.tour-overview button,
.tour-toolbar button:hover:enabled,.tour-overview button:hover,
.tour-jump select,
.tour-device,
.tour-device-top,.tour-device-bottom,
.tour-screen-frame iframe,
.tour-start,
.ph-local.ph-root,
:is(.ph-root, #ph) .ph-wire,
.ph-local-strip.ph-root { background: var(--card); }
body,
.home-store .product-facts,
.home-store .current-build,
.ft-group:nth-of-type(even),
.why .for,
.frame,
.screen,
.chat .m.u,
.chat .m.b,
.chat .typing,
.rv-term,
.rv-term .tbar,
.rv-term .tbar i,
.pgal .frame,
.lb,
.day-track .screen,
.screen .notch,
.l2,
.l3,
.l3 .ram { background: var(--card); }
.l4,
.l4 .fan,
.l5,
.l5 .grille,
.ld-t,
.promo-film video,
.press-downloads { background: var(--card); }
.italy-order-note strong,
.sheet-number,
.drawing-dialog,
.feature-group-details>summary,
.flagship-card .flagship-lead,
.gallery-viewer,
.gallery-viewer button,
.interest-panel input:not([type=checkbox]),.interest-panel select,.interest-panel textarea,
.lang-switch a[aria-current=page],
.pt-device-lang p,
.language-copy .language-intro,
.model-load button,
.model-panel,
.model-panel button:hover:enabled,
.release-note strong,
.tour-toolbar button,.tour-overview button,
.tour-jump select,
body,
::selection { color: var(--text); }
.product-hero { background: var(--card) !important; }
.ownership-section em,
.ownership-points article>span,
.capability-status,
.feature-shortcuts a,
.feature-group-details summary:hover,
.flagship-section .section-heading h2 em,
.flagship-card h3 span,
.gallery-all,
.gallery-viewer a,
.lang-switch a:hover,.lang-switch a:focus-visible,
.pt-device-lang strong,
.language-copy h2 em,
.model-separation output,
.model-detail-kicker,
.release-note>a,
.feature-page .ft .ft-tag,
.claim-status,
.comparison-sources a,.article .body a,
.instruction-example strong,
.tour-caption #tour-caption-try { color: var(--phosphor); }
.storefront .form-error,
.ladder li.hazard b,
.form-error:not(:empty) { color: var(--ember); }
.feature-page .ft .status-planned,.status-planned,.feature-page .ft .status-unverified,.status-unverified,
.why .for.no .tag { color: var(--amber); }
.home-store .hero-copy h1 em,
.home-store .store-section h2 em { color: var(--phosphor) !important; }

/* the consent notice on pages that do not load the storefront bundle (404) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 620px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 14px 16px 14px 18px; border-radius: 16px; font-family: inherit;
  background: color-mix(in srgb, #16232d 94%, transparent); border: 1px solid var(--edge2); color: var(--text); box-shadow: var(--shadow-pop); }
.consent p { flex: 1 1 280px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent-b { display: flex; gap: 8px; }
.consent a { color: var(--phosphor); }
.consent button { background: transparent; color: var(--text); border: 1px solid var(--edge2); border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
.consent button:hover { border-color: var(--phosphor); }
