/* PUBLIC-WEB-THEME-CONTROL-001: theme tokens. Dark is the historical
   default and stays visually unchanged (same values as before this
   token pass). Light equivalents are declared once, below, under
   html[data-theme="light"] -- see that block for the full light
   palette. Brand accent hues (--red/--red-2/--green/--green-2) and the
   structural Titanium values (--ti-seam, --ti-brush-opacity-raised,
   --ti-brush-opacity-elevated, --ti-radius-control, --ti-radius-panel,
   --ti-button-specular) are intentionally NOT theme-switched -- they
   are PulseForm's locked brand identity, constant in both themes,
   matching this mission's explicit "no new colorful design system"
   instruction. --panel/--panel-2/--line existed before this pass but
   were never actually referenced anywhere in this file (verified by
   grep) -- repurposed here as real, wired semantic tokens rather than
   left dead. */
:root{
  --bg:#09090a;
  --bg-elevated:#141416;
  --panel:#171719;
  --panel-inset:#080809;
  --panel-2:#0c0d10;
  --header-bg:rgb(9 9 10 / 0.86);
  --text:#f4f4f5;
  --text-strong:#fff;
  --text-secondary:#b5b5bb;
  --muted:#a1a1aa;
  --muted-2:#8d8d95;
  --prose:#c6c6cb;
  --card-text:#d6d6da;
  --line:#2b2b30;
  --line-panel:#2a2a2f;
  --line-panel-2:#262629;
  --line-strong:#35353b;
  --org-locked:#3d3d42;
  --org-bullet:#1f7a45;
  --section-muted-bg:rgb(17 17 19 / 0.94);
  --section-alt-bg:#2c3036;
  --nav-open-bg:#0b0b0c;
  --red:#d5183c;
  --red-2:#ff3559;
  --green:#32d16d;
  --green-2:#66e39a;
  --max:1180px;
  color-scheme:dark;

  --ti-raised:#22262b;
  --ti-elevated:#2c3036;
  --ti-edge-highlight:rgb(255 255 255 / 0.14);
  --ti-edge-shadow:rgb(0 0 0 / 0.55);
  --ti-seam:rgb(255 255 255 / 0.03);
  --ti-radius-control:10px;
  --ti-radius-panel:14px;
  --ti-brush-opacity-raised:0.035;
  --ti-brush-opacity-elevated:0.045;

  --ti-button-specular: linear-gradient(to bottom, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.14) 6%, rgb(255 255 255 / 0.07) 14%, rgb(255 255 255 / 0.02) 22%, rgb(255 255 255 / 0) 30%);

  --ti-desktop-bg: url(assets/backgrounds/DesktopDark.png);
}

/* LIGHT MODE BACKGROUND ASSET RULE: no approved light-titanium desktop
   wallpaper exists in any current PulseForm asset kit (checked before
   writing this -- 01_MASTERS/02_iOS/03_Android/04_Portal, and this
   site's own assets/backgrounds/, contain a DesktopDark.png but no
   DesktopLight.png anywhere). Per explicit instruction, light mode
   uses theme-aware surface colors with background-image:none for the
   wallpaper layer, rather than inventing unauthorized artwork. Dark
   mode is completely unaffected -- it keeps the existing approved
   DesktopDark.png. */
html[data-theme="light"]{
  --bg:#eef0ee;
  --bg-elevated:#dfe1df;
  --panel:#f6f7f6;
  --panel-inset:#e7e9e7;
  --panel-2:#e3e5e3;
  --header-bg:rgb(238 240 238 / 0.86);
  --text:#17181a;
  --text-strong:#000;
  --text-secondary:#4b4c4f;
  --muted:#5a5b5e;
  --muted-2:#68696c;
  --prose:#34363a;
  --card-text:#26282b;
  --line:#cfd1cf;
  --line-panel:#c7c9c7;
  --line-panel-2:#bfc1bf;
  --line-strong:#b3b5b3;
  --org-locked:#9a9b9d;
  --nav-open-bg:#f6f7f6;
  --section-alt-bg:#dfe1df;
  --section-muted-bg:rgb(223 225 223 / 0.94);
  color-scheme:light;

  /* --ti-raised/--ti-elevated deliberately NOT redefined here: these
     represent the physical "brushed titanium control" material
     (buttons, the step-number chip), not page-background lightness --
     matching the Portal's own light-mode buttons, which stay a
     metallic graphite tone rather than inverting to white (confirmed
     by direct visual comparison). Flipping them to a light gray broke
     .button.primary/.button.portal's #8ff0b3 mint text to near-zero
     contrast -- caught in local visual QA, fixed by leaving the button
     material constant and giving .section.light its own dedicated
     --section-alt-bg token instead (see .section.light below). */

  --ti-desktop-bg:none;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ti-desktop-bg) center top / cover no-repeat fixed, var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;line-height:1.6}
img{max-width:100%;display:block}
a{color:inherit}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:1rem;top:1rem;z-index:999;background:#fff;color:#000;padding:.75rem 1rem;border-radius:.5rem}
.shell{width:min(calc(100% - 2rem),var(--max));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:var(--header-bg);backdrop-filter:blur(18px);border-bottom:1px solid transparent;border-image:linear-gradient(to right,var(--ti-edge-highlight),var(--ti-edge-shadow)) 1}
.header-inner{min-height:72px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:clamp(1rem,2vw,2.5rem)}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;min-width:0}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,53,89,.8);border-radius:12px;background:linear-gradient(145deg,#26262a,#0d0d0f);box-shadow:0 0 25px rgba(213,24,60,.18);font-weight:900;letter-spacing:-.05em;flex:none}
.brand-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;line-height:1.25}
.brand strong,.brand small{display:block;white-space:nowrap}
.brand strong{font-size:.98rem;font-weight:800}
.brand small{font-size:.68rem;color:var(--muted);letter-spacing:.07em;text-transform:uppercase}
nav{display:flex;align-items:center;gap:clamp(1rem,1.8vw,1.6rem)}
nav a{text-decoration:none;color:var(--muted);font-size:.92rem;white-space:nowrap}
nav a:hover,nav a:focus{color:var(--text)}
.primary-nav{justify-self:center}
.header-actions{display:flex;align-items:center;gap:.7rem;justify-self:end}
.header-portal-button{white-space:nowrap}
a.nav-portal-mobile{display:none}
.hero{padding:4.5rem 0 5rem;background:linear-gradient(180deg,var(--bg-elevated) 0%,var(--bg) 100%)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:3.5rem;align-items:center}
.eyebrow{margin:0 0 .7rem;color:var(--green);font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2.3rem,2.9vw,2.95rem);line-height:1.1;letter-spacing:-.02em;margin-bottom:1.5rem}
h1 span{color:var(--text-secondary)}
h2{font-size:clamp(2.2rem,4vw,4rem);line-height:1.04;letter-spacing:-.045em;margin-bottom:1rem}
h3{font-size:1.22rem;line-height:1.2;margin-bottom:.55rem}
.lead{max-width:760px;color:var(--prose);font-size:clamp(1.05rem,2vw,1.3rem)}
.actions{display:flex;flex-wrap:wrap;gap:.8rem;margin:2rem 0 1.25rem}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.8rem 1.15rem;border-radius:var(--ti-radius-control);text-decoration:none;font-weight:800;border:1px solid transparent;transition:transform .12s ease-out,filter .12s ease-out}
.button:active{transform:scale(0.98);filter:brightness(0.92)}
.button.primary,.button.secondary,.button.portal{position:relative;overflow:hidden;isolation:isolate}
.button.primary::after,.button.secondary::after{position:absolute;inset:0;border-radius:inherit;filter:url(#ti-brush);content:"";pointer-events:none}
.button.primary::before,.button.portal::before{position:absolute;inset:0;border-radius:inherit;content:"";pointer-events:none;background:var(--green);mix-blend-mode:color;opacity:.55;transition:opacity .12s ease-out}
.button.primary:hover::before,.button.portal:hover::before{opacity:.72}
.button.primary{
  background-image:var(--ti-button-specular), linear-gradient(to bottom, rgb(255 255 255 / 0.10) 0%, rgb(255 255 255 / 0) 42%, rgb(0 0 0 / 0.22) 100%), linear-gradient(var(--ti-elevated), var(--ti-elevated)), linear-gradient(to bottom,color-mix(in srgb,var(--green) 35%,var(--ti-edge-highlight)),color-mix(in srgb,var(--green) 13%,var(--ti-edge-shadow)));
  background-origin:border-box;
  background-clip:padding-box, padding-box, padding-box, border-box;
  color:#8ff0b3;
  box-shadow:0 6px 16px rgb(0 0 0 / 0.26),inset 0 1px 0 rgb(255 255 255 / 0.16),inset 0 -1px 0 rgb(0 0 0 / 0.35),inset 0 0 0 1px var(--ti-seam);
}
.button.primary::after{opacity:var(--ti-brush-opacity-elevated)}
.button.secondary{
  background:var(--ti-button-specular), linear-gradient(to bottom, rgb(255 255 255 / 0.08) 0%, rgb(255 255 255 / 0) 42%, rgb(0 0 0 / 0.18) 100%), var(--ti-raised);
  border-color:var(--line-strong);
  color:var(--text-strong);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / 0.12),inset 0 -1px 0 rgb(0 0 0 / 0.3);
}
.button.secondary::after{opacity:var(--ti-brush-opacity-raised)}
.preview-note{font-size:.88rem;color:var(--muted-2);max-width:720px}

/* WEB-HERO-SCREENSHOT-STYLING-INCONSISTENCY-001 (physical-QA rejection,
   2026-09-15): matching border/radius/background alone left the actual
   COMPOSITION wrong -- `.hero-grid`'s own column track
   (`minmax(310px,.65fr)`) stretched this container to fill the whole
   grid cell (grid items default to `justify-self: stretch`), while the
   image inside stayed capped at a much narrower 280px -- a "frame inside
   a frame" with large empty gutters on both sides, nothing like the
   gallery's own tight image-to-card ratio. Fix: `justify-self: center`
   stops the container from stretching across its full grid track, and
   `max-width` sizes it to closely wrap its own image content (320px
   image + 2x20px padding + 2x1px border = 362px; 380px leaves a small,
   deliberate margin) -- so the container's size is now driven BY the
   image, exactly like `.product-card` is sized by its own image, not by
   an independent grid-track width. The image itself is also sized up
   slightly (280px -> 320px) to give the hero a bit more visual weight
   than a gallery card, matching "same system, different scale" rather
   than an identical size. */
.hero-visual{position:relative;overflow:hidden;background:var(--panel);border:1px solid var(--line-panel);border-radius:20px;display:flex;justify-content:center;max-width:380px;justify-self:center}
.hero-visual img{width:100%;max-width:320px;height:auto;display:block;object-fit:contain;object-position:center;background:var(--panel-inset);padding:1.25rem;box-sizing:border-box}

.section{padding:6rem 0}
.section.muted{background:var(--section-muted-bg);border-block:1px solid transparent;border-image:linear-gradient(to right,var(--ti-edge-highlight),var(--ti-edge-shadow)) 1}
.split{display:grid;grid-template-columns:1fr 1fr;gap:4rem}
.prose{font-size:1.08rem;color:var(--prose)}
.section-heading{max-width:780px;margin-bottom:2.5rem}
.section-heading h1{font-size:clamp(2.2rem,4vw,4rem);line-height:1.04;letter-spacing:-.045em;margin-bottom:1rem}
.section-heading>p:last-child{color:var(--prose);font-size:1.05rem}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.product-card{overflow:hidden;background:var(--panel);border:1px solid var(--line-panel);border-radius:20px}
.product-card img{width:100%;height:auto;object-fit:contain;object-position:center;background:var(--panel-inset);padding:1.25rem;box-sizing:border-box;display:block}
.product-card>div{padding:1.15rem}
.product-card p:last-child{color:var(--muted);font-size:.92rem;margin-bottom:0}
.card-label{color:var(--green);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;font-weight:800;margin-bottom:.4rem}
footer{border-top:1px solid transparent;border-image:linear-gradient(to right,var(--ti-edge-highlight),var(--ti-edge-shadow)) 1;padding:2rem 0;color:var(--muted)}
.footer-inner{display:flex;justify-content:space-between;gap:2rem}
.footer-inner p{margin-bottom:0;font-size:.88rem}
.footer-inner strong{color:var(--text-strong)}

.brand-mark{padding:0;border:none;box-shadow:none;background:none;overflow:hidden}
.brand-mark img{width:100%;height:100%;object-fit:contain}

.nav-toggle{display:none;background:none;border:1px solid var(--line-strong);border-radius:10px;color:var(--text);width:44px;height:44px;align-items:center;justify-content:center;cursor:pointer}
.theme-toggle{background:none;border:1px solid var(--line-strong);border-radius:10px;color:var(--text);width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.theme-toggle:hover{border-color:var(--muted)}
.theme-toggle svg{width:20px;height:20px;display:block}
.theme-toggle .theme-icon-moon{display:none}
html[data-theme="light"] .theme-toggle .theme-icon-sun{display:none}
html[data-theme="light"] .theme-toggle .theme-icon-moon{display:block}
.nav-toggle svg{filter:drop-shadow(0 0.4px 0.4px rgb(0 0 0 / 0.28))}
.nav-toggle:focus-visible,a:focus-visible,button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--green) !important}

.button.portal{
  position:relative;
  background-image:var(--ti-button-specular), linear-gradient(to bottom, rgb(255 255 255 / 0.10) 0%, rgb(255 255 255 / 0) 42%, rgb(0 0 0 / 0.22) 100%), linear-gradient(var(--ti-elevated), var(--ti-elevated)), linear-gradient(to bottom,color-mix(in srgb,var(--green) 35%,var(--ti-edge-highlight)),color-mix(in srgb,var(--green) 13%,var(--ti-edge-shadow)));
  background-origin:border-box;
  background-clip:padding-box, padding-box, padding-box, border-box;
  color:#8ff0b3;
  font-weight:900;
  box-shadow:0 6px 16px rgb(0 0 0 / 0.26),inset 0 1px 0 rgb(255 255 255 / 0.16),inset 0 -1px 0 rgb(0 0 0 / 0.35),inset 0 0 0 1px var(--ti-seam);
}
.pilot-note{font-size:.86rem;color:var(--muted-2);max-width:640px;margin:.75rem 0 0}
.pilot-note a{color:var(--green-2);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.pilot-note .button{margin-top:.35rem;text-decoration:none}

.status-badge{display:inline-block;border-radius:999px;padding:.22rem .6rem;font-size:.66rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.status-badge.shipped{background:rgba(50,209,109,.14);color:#59e28a}
.status-badge.pilot{background:rgba(102,227,154,.15);color:#8ff0b3}

.capability-list{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:2.5rem 0 0}
.capability-list>div{background:var(--bg-elevated);border:1px solid var(--line-panel-2);border-radius:14px;padding:1rem 1.15rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.capability-list p{margin:0;font-size:.94rem;color:var(--card-text)}

.steps{counter-reset:step;display:grid;gap:1.4rem;margin:2rem 0}
.step{display:grid;grid-template-columns:56px 1fr;gap:1.2rem;align-items:start}
.step-num{counter-increment:step;display:grid;place-items:center;width:56px;height:56px;border-radius:16px;border:1px solid transparent;background-image:linear-gradient(var(--panel),var(--panel)),linear-gradient(to bottom,rgb(255 255 255 / 0.09),rgb(0 0 0 / 0.36));background-origin:border-box;background-clip:padding-box,border-box;color:var(--green);font-weight:900;font-size:1.2rem}
.step-num::before{content:counter(step)}
.step h3{margin-bottom:.3rem}
.step p{color:var(--muted);margin-bottom:0}

.section.light{background:var(--section-alt-bg);color:var(--text);border-block:1px solid transparent;border-image:linear-gradient(to right,var(--ti-edge-highlight),var(--ti-edge-shadow)) 1}
.section.light .eyebrow{color:var(--green)}
.section.light .prose{color:var(--prose)}
.section.light .section-heading>p:last-child{color:var(--prose)}
.section.light .org-list li{color:var(--prose)}
.section.light .pilot-note{color:var(--muted)}
.org-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:3.5rem;align-items:center;margin-bottom:3rem}
.org-mark{display:grid;place-items:center}
.org-mark img{width:min(320px,80%)}
.org-list{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;gap:.9rem}
.org-list li{display:flex;gap:.7rem;color:var(--org-locked);font-size:1rem}
.org-list li::before{content:"";width:8px;height:8px;border-radius:999px;background:var(--org-bullet);margin-top:.55rem;flex:none}

.feature-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:3.5rem;align-items:center}
.feature-grid .org-list li{color:var(--prose)}
.feature-visual{overflow:hidden;border:1px solid var(--line-panel);border-radius:var(--ti-radius-panel);background:var(--panel)}
.feature-visual img{width:100%;display:block}

#portal .org-list li{color:var(--prose)}

.portal-showcase{display:grid;gap:1.5rem;margin:2.5rem 0}
.portal-showcase figure{margin:0;overflow:hidden;border:1px solid var(--line-panel);border-radius:var(--ti-radius-panel);background:var(--panel)}
.portal-showcase img{width:100%;height:auto;display:block;object-fit:contain;background:var(--panel-2)}
.portal-showcase figcaption{padding:1rem 1.25rem;color:var(--prose);font-size:.92rem;line-height:1.5}
.portal-showcase figcaption strong{color:var(--text)}
.portal-showcase-secondary{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}

.ecosystem-diagram{margin-top:1rem;overflow-x:auto}
.ecosystem-diagram svg{width:100%;min-width:640px;height:auto;display:block}
.eco-node{fill:var(--bg-elevated);stroke:var(--line-panel)}
.eco-title{fill:var(--text);font-size:15px;font-weight:700;font-family:inherit}

.disclaimer{background:var(--bg-elevated);border:1px solid var(--line-panel);border-radius:16px;padding:1.4rem 1.6rem;color:var(--prose);font-size:.94rem;max-width:820px;margin-top:2.5rem}
.disclaimer strong{color:var(--text-strong);display:block;margin-bottom:.4rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}

.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin:2rem 0 0}
.trust-item h3{font-size:1.05rem;margin-bottom:.5rem}
.trust-item p{color:var(--muted);font-size:.92rem;margin-bottom:0;line-height:1.55}

.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
.contact-card{background:var(--bg-elevated);border:1px solid var(--line-panel-2);border-radius:18px;padding:1.6rem}
.contact-card a.email{color:var(--green-2);font-weight:800;text-decoration:none}
.contact-card a.email:hover{text-decoration:underline}
.policy-links{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem}
.policy-links a{font-size:.9rem;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.policy-links a:hover{color:var(--text)}

.policy-meta{color:var(--muted);font-size:.88rem}
.policy-body{max-width:780px}
.policy-body h3{margin-top:2.2rem;font-size:1.1rem}
.policy-body p{margin-bottom:1rem}
.policy-body ul{margin:0 0 1rem;padding-left:1.2rem;display:grid;gap:.6rem}
.policy-body li{color:var(--prose)}
.policy-body a{color:var(--green-2);text-decoration:underline;text-underline-offset:3px}
.policy-body a:hover{color:var(--text-strong)}
.policy-body a.email{color:var(--green-2);font-weight:800;text-decoration:none}
.policy-body a.email:hover{text-decoration:underline}

.footer-links{display:flex;gap:1.25rem}
.footer-links a{font-size:.85rem;color:var(--muted);text-decoration:none}
.footer-links a:hover{color:var(--text);text-decoration:underline}
@media (max-width:640px){
  .footer-inner{gap:.6rem}
  .footer-links{order:2}
}

body.nav-open nav.primary-nav{display:flex!important;position:fixed;top:72px;left:0;right:0;height:calc(100vh - 72px);height:calc(100dvh - 72px);background:var(--nav-open-bg);flex-direction:column;padding:2rem 1.5rem;gap:1.4rem;overflow-y:auto;z-index:60}
body.nav-open nav.primary-nav a{font-size:1.15rem}

@media (max-width:1200px){
  .brand small{display:none}
}
@media (max-width:900px){
  .hero-grid,.split,.callout-inner,.feature-grid{grid-template-columns:1fr;gap:2rem}
  .gallery{grid-template-columns:repeat(2,1fr)}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .hero{padding-top:3.5rem}
  nav.primary-nav{display:none}
  .nav-toggle{display:inline-flex}
  a.header-portal-button{display:none}
  a.nav-portal-mobile{display:inline-flex}
  .org-grid{grid-template-columns:1fr}
  .capability-list,.contact-grid{grid-template-columns:1fr}
  .portal-showcase-secondary{grid-template-columns:1fr}
}
@media (max-width:640px){
  .gallery,.trust-grid{grid-template-columns:1fr}
  .footer-inner{display:block}
  .footer-inner>p{margin-top:1rem}
  h1{font-size:3.3rem}
  .step{grid-template-columns:44px 1fr;gap:.9rem}
  .step-num{width:44px;height:44px;font-size:1rem;border-radius:12px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
