/* Atomic Skills Industries — landing page (implementation of "Atomicskills Landing v3").
   Palette below mirrors the ASI Stack design system; the dark-panel neutrals are
   page-local and are declared here so every hex has exactly one home. */

:root {
  --as-ground: #F2EEE4;
  --as-ink: #16181B;
  --as-body: #5A5750;
  --as-faint: #A29B8E;
  --as-rule: rgba(22, 24, 27, .15);

  --as-orange: #FA8E2C;
  --as-orange-deep: #C7560A;

  --as-panel: #15171A;
  --as-panel-raise: #1E2226;
  --as-panel-sink: #101215;
  --as-panel-rule: #33383E;
  --as-on-panel: #E7E4DE;
  --as-on-panel-dim: #969CA3;
  --as-on-panel-mute: #63696F;
  --as-on-panel-faint: #464E56;
  --as-on-panel-trace: #7A8794;

  --as-blue: #3D9BEA;
  --as-green: #4BB07A;
  --as-red: #E8543C;

  --as-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --as-ease: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- base ---------- */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--as-ground);
  color: var(--as-ink);
  font-family: 'Red Hat Display', -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--as-ink); }
a:hover { color: var(--as-orange-deep); }

/* The pointer field sits behind everything and follows the cursor, so the whole
   page reads as one surface being sampled. */
.as-shell {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  background: var(--as-ground);
}
/* width/height are load-bearing: a canvas is a replaced element, so with only
   insets set its intrinsic (attribute) size wins over right/bottom and the
   resize loop grows it without bound. */
.as-field {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%; display: block;
}
.as-page { position: relative; z-index: 2; }

.as-wrap { max-width: 960px; margin: 0 auto; padding: 0 40px; }

/* ---------- nav ---------- */

.as-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; gap: 20px;
}
.as-lockup { line-height: 1.06; }
.as-lockup-1 { display: block; width: fit-content; font-size: 16px; white-space: nowrap; }
.as-lockup-2 {
  display: block; width: fit-content; font-size: 14px; white-space: nowrap;
  text-transform: uppercase; color: var(--as-orange);
}
.as-navlinks { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.as-navlink { color: var(--as-body); text-decoration: none; }
.as-navlink:hover { color: var(--as-ink); }
.as-btn {
  background: var(--as-orange); color: var(--as-ink); text-decoration: none;
  padding: 9px 18px; border-radius: 2px; font-weight: 500;
}
.as-btn:hover { opacity: .86; color: var(--as-ink); }
.as-navrule { height: 1px; background: var(--as-orange); opacity: .5; }

/* ---------- hero video frame ---------- */

/* Capped at 16:9 so a full-bleed 1920x1080 loop never letterboxes more than it
   has to; the video itself is contained, so nothing is ever cropped away. */
.as-heroframe {
  height: min(calc(100vh - 87px), 56.25vw); min-height: 420px;
  position: relative; background: var(--as-panel); overflow: hidden;
}
.as-heroframe video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.as-heroph {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 10px;
}
.as-heroph-1 {
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--as-on-panel-mute); font-family: var(--as-mono);
}
.as-heroph-2 { font-size: 11px; color: var(--as-on-panel-faint); font-family: var(--as-mono); }

/* ---------- team / logo marquee ---------- */

.as-team { position: relative; }
.as-teaminner { position: relative; background: var(--as-panel); padding: 34px 0 32px; }
.as-teamhead {
  font-size: 14px; font-weight: 400; color: var(--as-on-panel-dim);
  letter-spacing: .01em; margin: 0;
}
.as-marqwrap {
  overflow: hidden; margin-top: 26px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.as-marq {
  display: flex; align-items: center; gap: 56px; width: max-content;
  animation: as-marquee 36s linear infinite; padding-right: 56px;
}
.as-marqwrap:hover .as-marq { animation-play-state: paused; }
@keyframes as-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.as-logos img { height: 24px; width: auto; opacity: .62; filter: grayscale(1); }
.as-logos img.as-logo-tall { height: 30px; }
.as-prev {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--as-panel-rule);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.as-prev-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--as-on-panel-mute); font-family: var(--as-mono);
}
.as-prev img { height: 17px; width: auto; opacity: .5; }

/* ---------- masthead ---------- */

.as-masthead { padding: 54px 0 0; position: relative; }
.as-eyebrow {
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--as-faint); margin-bottom: 20px;
}
.as-h1 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: .98; letter-spacing: -.03em;
  font-weight: 400; margin: 0;
}
.as-h1 span { color: var(--as-faint); }
.as-lede { font-size: 17px; max-width: 620px; margin: 28px 0 0; }

.as-readout {
  position: fixed; right: 18px; bottom: 14px; z-index: 20; font-size: 11px;
  color: var(--as-faint); font-family: var(--as-mono); letter-spacing: .02em;
  pointer-events: none;
}

/* ---------- demo: chrome ---------- */

.as-demo { margin: 28px 0 0; position: relative; }
.as-demostack { position: relative; }
/* Bleeds the cream ground over the field so the panel reads as a solid object. */
.as-demoveil {
  position: absolute; inset: 0; background: var(--as-ground);
  box-shadow: 0 0 10px 10px var(--as-ground); pointer-events: none;
}
.as-tabs { position: relative; overflow-x: auto; }
.as-tabgrid {
  display: grid; grid-template-columns: repeat(4, auto); gap: 1px;
  width: fit-content; max-width: 100%;
}
.as-schem {
  background: var(--as-panel-raise); border: none; padding: 0; margin: 0;
  cursor: pointer; height: 52px; display: block; min-width: 110px;
  transition: background .16s var(--as-ease);
}
.as-schem svg { width: 100%; height: 52px; display: block; }
button.as-schem[aria-pressed="true"] { background: var(--as-panel); }
.as-tab {
  background: var(--as-panel-raise); border: none; border-top: 2px solid transparent;
  color: var(--as-on-panel-mute); font-family: var(--as-mono); font-size: 12px;
  padding: 8px 15px; cursor: pointer; transition: all .16s var(--as-ease);
}
.as-tab:hover { color: var(--as-on-panel-dim); }
.as-tab[aria-pressed="true"] {
  background: var(--as-panel); border-top-color: var(--as-blue); color: var(--as-on-panel);
}

/* ---------- demo: panel ---------- */

.as-panel { position: relative; background: var(--as-panel); padding: 16px 20px 13px; }

.as-pid {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--as-panel-rule);
}
.as-pid-l { display: flex; gap: 12px; min-width: 0; }
.as-pid-bar { width: 3px; flex: 0 0 3px; background: var(--as-blue); }
.as-pid-task { font-size: 16.5px; line-height: 1.25; color: var(--as-on-panel); text-wrap: pretty; }
.as-pid-meta {
  margin-top: 3px; font-size: 11.5px; color: var(--as-on-panel-dim);
  font-family: var(--as-mono); font-variant-numeric: tabular-nums;
}
.as-chip {
  font-size: 12.5px; padding: 5px 11px; border: 1px solid transparent;
  white-space: nowrap; font-family: var(--as-mono);
}
.as-chip[data-tone="pass"] { border-color: rgba(75, 176, 122, .5); color: var(--as-green); }
.as-chip[data-tone="fail"] { border-color: rgba(232, 84, 60, .5); color: var(--as-red); }

.as-viewrow { display: flex; gap: 10px; margin-top: 12px; align-items: flex-end; }
.as-view {
  flex: 0 0 auto; width: 230px; height: 130px; background: var(--as-panel-sink);
  border: 1px solid var(--as-panel-rule); position: relative; overflow: hidden;
}
.as-view video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.as-view-tag, .as-view-frame {
  position: absolute; font-size: 10.5px; color: var(--as-on-panel);
  font-family: var(--as-mono); text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.as-view-tag { top: 7px; left: 9px; letter-spacing: .08em; text-transform: uppercase; }
.as-view-frame { bottom: 6px; right: 8px; }
.as-addcam {
  flex: 0 0 auto; background: none; border: 1px dashed var(--as-panel-rule);
  color: var(--as-on-panel-mute); font-family: var(--as-mono); font-size: 11.5px;
  padding: 8px 13px; cursor: pointer; transition: all .16s var(--as-ease);
}
.as-addcam:hover { border-color: var(--as-on-panel-mute); color: var(--as-on-panel-dim); }

/* ---------- demo: trace ---------- */

.as-viz {
  display: block; width: 100%; height: auto; margin: 4px 0 0;
  touch-action: none; cursor: crosshair;
}
.as-viz-base { stroke: var(--as-panel-rule); stroke-width: 1; }
.as-viz-trace { fill: none; stroke: var(--as-on-panel-trace); stroke-width: 1.3; }
.as-viz-tick { stroke: var(--as-blue); stroke-width: 1; }
.as-viz-fail { stroke: var(--as-red); stroke-width: 1.5; }
.as-viz-ph { stroke: var(--as-blue); stroke-width: 1; }
.as-phlabel { fill: var(--as-blue); font-size: 10.5px; font-family: var(--as-mono); }
.as-axislabel {
  fill: var(--as-on-panel-mute); font-size: 10.5px; letter-spacing: 1.1px;
  font-family: var(--as-mono);
}
.as-seglabel { font-size: 11px; font-family: var(--as-mono); pointer-events: none; }
.as-ruler {
  fill: var(--as-on-panel-mute); font-size: 10px; text-anchor: middle;
  font-family: var(--as-mono);
}
.as-faillabel { fill: var(--as-red); font-size: 10.5px; font-family: var(--as-mono); }
.as-seg { cursor: pointer; }

/* ---------- demo: phase cards ---------- */

.as-cards { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.as-card {
  flex: 1 1 0; min-width: 104px; text-align: left; padding: 7px 9px 6px; cursor: pointer;
  background: var(--as-panel-sink); border: 1px solid var(--as-panel-rule);
  transition: border-color .16s var(--as-ease);
}
.as-card[data-bad="1"] { border-color: rgba(232, 84, 60, .55); }
.as-card[data-sel="1"] { border-color: var(--as-blue); background: rgba(61, 155, 234, .06); }
.as-card[data-bad="1"][data-sel="1"] { border-color: var(--as-red); }
.as-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.as-card-n { font-size: 10px; color: var(--as-on-panel-mute); font-family: var(--as-mono); }
.as-dot { width: 6px; height: 6px; flex: 0 0 6px; background: var(--as-green); }
.as-card[data-bad="1"] .as-dot { background: var(--as-red); }
.as-card-title {
  margin-top: 3px; font-size: 11.5px; line-height: 1.3; color: var(--as-on-panel);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.as-card-sub {
  margin-top: 3px; font-size: 10px; color: var(--as-on-panel-dim); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; font-family: var(--as-mono);
}

/* ---------- demo: rubrics + verdict ---------- */

.as-rubrics {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 11px 0 0;
  border-top: 1px solid var(--as-panel-rule); margin-top: 10px;
}
.as-rubrics-label {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--as-on-panel-mute);
}
.as-rbtn {
  background: transparent; border: 1px solid var(--as-panel-rule);
  color: var(--as-on-panel-dim); font-family: var(--as-mono); font-size: 13px;
  padding: 7px 14px; cursor: pointer; transition: all .16s var(--as-ease);
}
.as-rbtn:hover { border-color: var(--as-on-panel-mute); }
.as-rbtn[aria-pressed="true"] {
  border-color: var(--as-blue); color: var(--as-blue); background: rgba(61, 155, 234, .1);
}
.as-reread {
  margin-left: auto; font-size: 11.5px; color: var(--as-on-panel-mute);
  font-family: var(--as-mono); font-variant-numeric: tabular-nums;
}
.as-reread b { color: var(--as-green); font-weight: 400; }
@keyframes fl { 0% { color: var(--as-blue); opacity: .35; } 100% { color: var(--as-green); opacity: 1; } }

.as-verdict {
  padding: 10px 0 0; font-size: 13px; color: var(--as-on-panel-dim);
  line-height: 1.5; min-height: 42px;
}
.as-verdict b { color: var(--as-on-panel); font-weight: 400; }
.as-nudge {
  display: block; margin-top: 6px; font-size: 13px; color: var(--as-blue);
  background: none; border: none; font-family: var(--as-mono); cursor: pointer;
  padding: 0; text-align: left; line-height: 1.45;
}
.as-nudge:hover { text-decoration: underline; }

/* ---------- demo: evidence ---------- */

.as-evidence { margin-top: 10px; border-top: 1px solid var(--as-panel-rule); }
.as-evhead {
  display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 5px;
}
.as-evhead-l {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--as-on-panel-mute);
}
.as-evhead-r { font-size: 11px; color: var(--as-on-panel-mute); font-family: var(--as-mono); }
.as-erow {
  display: grid; grid-template-columns: 64px 150px 170px 1fr; gap: 10px; padding: 4px 6px;
  font-family: var(--as-mono);
}
.as-erow-head {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--as-on-panel-faint);
}
.as-erow-data {
  border-top: 1px solid rgba(51, 56, 62, .55); font-size: 12px;
  font-variant-numeric: tabular-nums; color: var(--as-on-panel-trace);
  align-items: baseline; transition: background .16s var(--as-ease);
}
.as-erow-data > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-erow-data .as-et { color: var(--as-on-panel-dim); }
.as-erow-data .as-econs { color: var(--as-on-panel-dim); }
.as-erow[data-hl="1"] { background: rgba(61, 155, 234, .08); }
.as-erow[data-tone="fail"] .as-em, .as-erow[data-tone="fail"] .as-econs { color: var(--as-red); }
.as-erow[data-tone="pass"] .as-em, .as-erow[data-tone="pass"] .as-econs { color: var(--as-green); }

.as-demofoot {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 8px;
}
.as-demofoot div { font-size: 11px; color: var(--as-on-panel-mute); }
.as-demohint { white-space: nowrap; font-family: var(--as-mono); }

.as-ghost {
  position: absolute; width: 18px; height: 22px; pointer-events: none; z-index: 5;
  opacity: 0; transition: opacity .25s; will-change: transform; top: 0; left: 0;
}
.as-ghost svg { width: 100%; height: 100%; display: block; }
.as-ghost path {
  fill: var(--as-panel); stroke: var(--as-ground); stroke-width: 1.2; stroke-linejoin: round;
}

.as-demonote { font-size: 14.5px; color: var(--as-body); margin: 18px 0 0; max-width: 760px; }
.as-thesis {
  margin: 34px 0 0; font-size: 16.5px; color: var(--as-ink); max-width: 760px;
  border-left: 2px solid var(--as-orange); padding-left: 20px;
}

/* ---------- three points ---------- */

.as-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin: 60px 0 0;
}
.as-pointnum {
  font-size: 11.5px; letter-spacing: .12em; color: var(--as-orange);
  margin-bottom: 12px; font-family: var(--as-mono);
}
.as-points h2 { font-size: 17.5px; font-weight: 500; margin: 0 0 8px; letter-spacing: -.008em; }
.as-points p { font-size: 15px; color: var(--as-body); margin: 0; }

/* ---------- integrations ---------- */

.as-connect { margin: 64px 0 0; padding: 32px 0 0; border-top: 1px solid var(--as-rule); }
.as-h2 {
  font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -.025em;
  font-weight: 400; max-width: 620px; margin: 0;
}
.as-connect > p { font-size: 16px; color: var(--as-body); max-width: 660px; margin: 16px 0 0; }
.as-grid4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--as-rule); border: 1px solid var(--as-rule); margin: 32px 0 0;
}
.as-grid4 > div { background: var(--as-ground); padding: 20px 18px; }
.as-grid4 h3 {
  font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--as-faint); font-weight: 400; margin: 0 0 12px;
}
.as-grid4 ul {
  list-style: none; font-size: 14px; color: var(--as-body); line-height: 1.85;
  margin: 0; padding: 0;
}

/* ---------- ribbon, CTA, footer ---------- */

.as-ribbon { position: relative; margin-top: 68px; }
.as-ribboninner { position: relative; background: var(--as-panel); padding: 36px 0 34px; }
.as-ribboninner p {
  font-size: 14px; color: var(--as-on-panel-mute); max-width: 720px; margin: 0; line-height: 1.6;
}

.as-cta { margin: 64px 0 0; }
.as-cta h2 {
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -.028em;
  font-weight: 400; max-width: 620px; margin: 0;
}
.as-cta > p { font-size: 16.5px; color: var(--as-body); max-width: 620px; margin: 18px 0 0; }
.as-ctarow { display: flex; align-items: center; gap: 26px; margin-top: 32px; flex-wrap: wrap; }
.as-btn-lg { display: inline-block; padding: 15px 28px; font-size: 16px; }
.as-ctaor { font-size: 15px; color: var(--as-body); }
.as-ctaor a { color: var(--as-ink); text-decoration: none; border-bottom: 1px solid var(--as-rule); }

.as-footer {
  margin-top: 64px; padding: 22px 0 46px; border-top: 1px solid var(--as-rule);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--as-faint);
}
.as-footer-r { font-family: var(--as-mono); }
.as-footer a { color: var(--as-faint); text-decoration: none; }

/* ---------- reveal ---------- */

.as-rv {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--as-ease), transform .7s var(--as-ease);
}
.as-rv.as-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .as-wrap { padding: 0 22px; }
  .as-points, .as-grid4 { grid-template-columns: 1fr; }
  .as-hidem { display: none; }
  .as-marq { gap: 26px 34px; }
  .as-logos img, .as-logos img.as-logo-tall { height: 21px; }
}

@media (max-width: 660px) {
  .as-tabs { overflow-x: auto; scrollbar-width: none; }
  .as-tab { flex: 0 0 auto; padding: 10px 14px; font-size: 12px; }
  .as-panel { padding: 16px 14px 15px; }
  .as-rbtn { flex: 1 1 auto; text-align: center; padding: 9px 8px; }
  .as-reread { margin-left: 0; width: 100%; padding-top: 4px; }
  .as-seglabel, .as-ruler, .as-faillabel, .as-demohint { display: none; }
  .as-axislabel { font-size: 27px; letter-spacing: 2px; }
  .as-phlabel { font-size: 27px; }
  .as-erow { grid-template-columns: 56px 130px 1fr; }
  .as-esig { display: none; }
  .as-schem { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .as-rv { opacity: 1 !important; transform: none !important; }
  .as-marq { animation: none; }
}
