/* (c) 2026 SKUMAN SYSTEMES LLC. All rights reserved.
   SKUMan landing page. Static, no build step: open index.html or serve the folder.
   Look follows animejs.com (charcoal stage, circular instrument, inverted line-art section,
   one accent per feature) in SKUMan's own palette, sampled from the logo. */

:root {
  --ink: #13202c;          /* page base: the logo's navy, pushed toward charcoal */
  --ink-2: #1a2a39;        /* raised surfaces */
  --ink-3: #26394b;        /* hairlines on dark */
  --text: #eee9e1;         /* warm white */
  --muted: #8fa1b1;
  --paper: #e8dcc6;        /* kraft carton, the light section */
  --paper-2: #dccdb3;
  --paper-ink: #1a354f;    /* the logo's outline navy */
  --orange: #f69838;       /* SKU guy's face */
  --sky: #59b1d3;          /* face bezel */
  --blue: #387fb5;         /* head box */
  --tan: #d2a06e;          /* cartons */
  --green: #7cc48b;
  --coral: #f2705e;
  --violet: #9a8ff0;
  --yellow: #f5c451;
  --peach: #f3b38a;        /* the arcs in the hero instrument (site.js C.peach) */
  --display: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 4.4vw, 4rem);
  /* horizontal edge of every content row: the gutter, plus whatever a window wider than 120rem has spare.
     % resolves where it is used (padding, left, right), against a full-width box. */
  --edge: max(var(--gutter), 50% - 60rem + var(--gutter));
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Everything below is sized in rem, so this one rule scales the page. 16px up to a 1920x1080 window;
   past that the page grows with the smaller of width/1920 and height/1080, so a 4K screen at 100%
   shows the 1080p layout twice as big instead of the same small page in an empty canvas.
   Media queries stay in px: they read the real viewport, and every one of them is false on both. */
html { font-size: max(16px, min(100vw / 120, 100svh / 67.5)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 500 1.125rem/1.45 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: .125rem solid var(--orange); outline-offset: .1875rem; border-radius: .25rem; }
.sr-only { position: absolute; width: .0625rem; height: .0625rem; padding: 0; margin: -.0625rem; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem var(--edge);
}
.brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; }
.brand__face { width: 1.75rem; height: 1.75rem; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(.875rem, 2.4vw, 1.875rem); font-size: .9375rem; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--text); }
@media (max-width: 640px) { .nav .nav__wide { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .625rem;
  min-height: 3rem; padding: 0 1.25rem; border-radius: .375rem;
  font: 600 .9375rem/1 var(--display); text-decoration: none; letter-spacing: .01em;
  border: .0625rem solid var(--ink-3); background: transparent; color: var(--text); cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(.0625rem); }
.btn--solid { background: var(--orange); border-color: var(--orange); color: #1b1206; }
.btn--solid:hover { background: #ffab52; border-color: #ffab52; }
.btn--small { min-height: 2.375rem; padding: 0 .875rem; font-size: .875rem; }
.btn svg { width: 1rem; height: 1rem; flex: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: max(100svh, 45rem);
  display: grid; grid-template-columns: minmax(18.75rem, 25rem) 1fr minmax(13.75rem, 18.75rem);
  grid-template-rows: 1fr auto; column-gap: 1.5rem;
  padding: 7.5rem var(--edge) 3.5rem;
  overflow: hidden;
}
.hero__copy { grid-column: 1; grid-row: 1; align-self: start; position: relative; z-index: 2; margin-top: 2vh; }
.hero h1 {
  margin: 0; font-weight: 700; font-size: clamp(3.25rem, 4.7vw, 5.5rem); line-height: .9; letter-spacing: -.025em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.12em; } /* room for the g's tail */
.hero h1 .line > span { display: inline-block; }
.dot { color: var(--orange); }
h1, h2, .section__lede { text-wrap: balance; }
.hero__lede, .toolbox p, .connect p, .finale p { text-wrap: pretty; }
.hero__lede { margin: 1.625rem 0 0; max-width: 22ch; font-size: clamp(1.1875rem, 1.5vw, 1.375rem); line-height: 1.3; color: #c5ccd2; }
.hero__actions { grid-column: 1; grid-row: 2; align-self: end; display: flex; align-items: center; gap: .875rem; flex-wrap: wrap; position: relative; z-index: 2; }
.hero__stage {
  position: absolute; left: calc(50% + min(3%, 3.6rem)); top: 50%; /* 53%, until a window wider than 120rem centres the content */
  width: min(80svh, 52vw, 50rem); aspect-ratio: 1;
  translate: -50% -47%;
}
.readout {
  grid-column: 3; grid-row: 2; justify-self: end; align-self: end; position: relative; z-index: 2;
  font: 500 .75rem/1.6 var(--mono); color: var(--muted); text-align: right; min-width: 13.125rem;
}
.readout b { display: block; font-weight: 500; color: var(--text); font-size: .8125rem; }
.readout__bar { display: block; height: .1875rem; margin-top: .5rem; border-radius: .125rem; background: var(--ink-3); overflow: hidden; }
.readout__bar i { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }

@media (min-width: 1101px) { .hero { min-height: max(100svh, 37.5rem); } } /* short laptop windows keep the buttons in view */

/* the instrument */
.ring { position: absolute; inset: 0; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring__ticks, .ring__heat {
  position: absolute; inset: 7.5%; border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, transparent 0 85.6%, #000 86% 97.6%, transparent 98%);
          mask: radial-gradient(closest-side, transparent 0 85.6%, #000 86% 97.6%, transparent 98%);
}
.ring__ticks { background: repeating-conic-gradient(rgb(238 233 225 / .26) 0 .32deg, transparent .32deg 1.5deg); animation: spin 140s linear infinite; }
.ring__heat {
  background:
    repeating-conic-gradient(transparent 0 .32deg, var(--ink) .32deg 1.5deg),
    conic-gradient(from 0deg, transparent 0 250deg, rgb(246 152 56 / .25) 300deg, var(--orange) 358deg, transparent 360deg);
  animation: spin 9s linear infinite;
}
.ring__mascot {
  position: absolute; left: 50%; top: 52%; width: 40%; translate: -50% -50%; z-index: 3;
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes spin-rev { to { rotate: -360deg; } }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
.spin-mid { transform-box: view-box; transform-origin: 0 0; animation: spin 24s linear infinite; }
.spin-rev { transform-box: view-box; transform-origin: 0 0; animation: spin-rev 38s linear infinite; }
.bar { transform-box: fill-box; transform-origin: center; animation: bar 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.38); } }

/* ---------- SKU guy ---------- */
.skuguy {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.skuguy:focus-visible { outline-offset: .625rem; border-radius: .75rem; }
/* loops stop while their section is off screen (site.js toggles .is-paused) */
.hero.is-paused *, .stage__dial.is-paused * { animation-play-state: paused !important; }
.skuguy { --stroke: .125rem; --wave-up: -10deg; --wave-out: 6deg; }
.finale .skuguy { --stroke: .1875rem; --wave-up: -7deg; --wave-out: 4deg; } /* smaller swing: the joint stays spotless at this size */
.skuguy__sticker {
  filter: drop-shadow(var(--stroke) 0 0 #fff) drop-shadow(calc(var(--stroke) * -1) 0 0 #fff) drop-shadow(0 var(--stroke) 0 #fff) drop-shadow(0 calc(var(--stroke) * -1) 0 #fff) drop-shadow(0 1.25rem 1.625rem rgb(0 0 0 / .38));
}
.skuguy__shadow {
  position: absolute; left: 10%; right: 18%; bottom: -1.5%; height: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .45), transparent);
  animation: shadow 2.8s ease-in-out infinite;
}
.skuguy__bob { animation: bob 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-3.2%) scale(.99, 1.01); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .7; } }
.skuguy.is-hopping .skuguy__bob { animation: hop .7s var(--ease-out); }
@keyframes hop {
  0% { transform: translateY(0) scale(1.06, .92); }
  35% { transform: translateY(-16%) scale(.96, 1.05) rotate(-3deg); }
  70% { transform: translateY(0) scale(1.05, .94); }
  100% { transform: translateY(0) scale(1, 1); }
}
/* The rig: the real logo artwork cut into three same-size layers (landing/tools/build-mascot.py).
   Back to front: the waving arm, the body (arm cut out at the sleeve), the closed-eyes overlay.
   At rest arm + body match the logo to within 1/255. Never put the full skuguy.webp in here:
   its baked-in arm would show behind the moving one. */
.skuguy__rig { position: relative; aspect-ratio: 1006 / 1000; }
.skuguy__rig img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.skuguy__arm { transform-origin: 76.413% 43.192%; animation: wave 6s ease-in-out 4s infinite; } /* pivot = deepest point of the sleeve cut */
.skuguy__blink { opacity: 0; animation: blink 3.8s linear infinite; }
.finale .skuguy__arm { animation-delay: 1.5s; }
.finale .skuguy__blink { animation-delay: -1.7s; }
.skuguy.is-waving .skuguy__arm { animation: wave-once 1.6s ease-in-out; }
@keyframes wave {
  0% { rotate: 0deg; } 7% { rotate: var(--wave-up); } 14% { rotate: var(--wave-out); }
  21% { rotate: var(--wave-up); } 28%, 100% { rotate: 0deg; }
}
@keyframes wave-once {
  0% { rotate: 0deg; } 25% { rotate: var(--wave-up); } 50% { rotate: var(--wave-out); }
  75% { rotate: var(--wave-up); } 100% { rotate: 0deg; }
}
@keyframes blink { 0%, 95% { opacity: 0; } 95.01%, 98.2% { opacity: 1; } 98.21%, 100% { opacity: 0; } }
.skuguy.is-paused * { animation-play-state: paused !important; }

/* ---------- toolbox (light, line-art) ---------- */
.toolbox { position: relative; height: 290vh; background: var(--paper); color: var(--paper-ink); }
.toolbox__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.toolbox__copy { position: absolute; left: var(--edge); top: clamp(5rem, 11vh, 7.5rem); z-index: 2; max-width: 28.75rem; }
.toolbox h2, .section h2, .connect h2, .access h2, .extras h2, .faq h2 { margin: 0; font-weight: 700; font-size: clamp(2.25rem, 3.4vw, 3.375rem); line-height: .95; letter-spacing: -.02em; }
.toolbox p { margin: 1.125rem 0 0; font-size: 1.1875rem; line-height: 1.32; }
.toolbox__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.toolbox__art text { font: 500 14px var(--mono); fill: var(--paper-ink); }
.toolbox__chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.125rem 0 0; max-width: 26.25rem; }
.toolbox__chips li { font: 500 .8125rem var(--mono); padding: .3125rem .625rem; border: .0625rem solid var(--paper-ink); border-radius: 62.4375rem; }
@media (min-width: 1101px) {
  .toolbox__chips { position: absolute; width: .0625rem; height: .0625rem; padding: 0; margin: -.0625rem; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
.scrubber {
  position: absolute; right: var(--edge); bottom: 3rem; z-index: 2;
  width: min(21rem, 60vw); height: 2.5rem; border-radius: .5625rem; background: #22272c;
  display: flex; align-items: center; padding: 0 .875rem;
}
.scrubber__ticks { position: relative; flex: 1; height: .875rem; background: repeating-linear-gradient(90deg, #8a8f94 0 .0625rem, transparent .0625rem .375rem); opacity: .55; }
.scrubber__ticks::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #c9ccce 0 .0625rem, transparent .0625rem 1.875rem); }
.scrubber__head { position: absolute; top: -.1875rem; bottom: -.1875rem; width: .1875rem; border-radius: .125rem; background: var(--coral); left: var(--p, 0%); }

/* ---------- feature sections ---------- */
.section {
  --accent: var(--orange);
  position: relative; display: grid; grid-template-columns: minmax(17.5rem, 23.75rem) 1fr; gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center; min-height: 100svh; padding: 6.875rem var(--edge);
}
.section h2 { color: var(--accent); }
.section__lede { margin: 1.25rem 0 0; font-size: 1.25rem; line-height: 1.3; font-weight: 600; max-width: 22ch; }
.section__rule { margin: 2rem 0 1.375rem; height: .0625rem; border: 0; background: rgb(238 233 225 / .5); width: min(16rem, 80%); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; font-size: 1rem; color: #c5ccd2; }
.points li { text-wrap: pretty; display: grid; grid-template-columns: 1.125rem 1fr; gap: .75rem; align-items: start; }
.points li::before {
  content: ''; width: .875rem; height: .875rem; margin-top: .25rem; border-radius: .1875rem;
  border: .125rem solid var(--accent); box-sizing: border-box;
}
/* the stage hugs its copy and fills its column. Its cap is the old 73.75rem (1180px), raised on windows tall enough to
   show more: section padding (2 x 6.875rem) + the window bar (1.875rem) + a 16:10 picture fit one screen. Never below
   73.75rem, so a maximised browser on a short screen keeps the old size. Stacked layouts (<=1100px) use 100%. */
.stage { position: relative; min-width: 0; width: min(100%, max(73.75rem, (100svh - 15.625rem) * 1.6)); justify-self: start; }
.stage__dial { position: absolute; width: min(104%, 96svh); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none; }
.stage__dial svg { width: 100%; height: 100%; overflow: visible; }
.shot {
  position: relative; z-index: 1; margin: 0; border-radius: .625rem; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 .0625rem rgb(255 255 255 / .08), 0 2.5rem 5rem -1.25rem rgb(0 0 0 / .6), 0 0 0 .4375rem rgb(255 255 255 / .03);
  width: 100%;
}
.shot__bar { display: flex; align-items: center; gap: .4375rem; height: 1.875rem; padding: 0 .75rem; background: #e9ecef; border-bottom: .0625rem solid #d6dadf; }
.shot__bar i { width: .625rem; height: .625rem; border-radius: 50%; background: #cfd4d9; }
.shot__bar span { margin-left: .625rem; font: 500 .6875rem var(--mono); color: #5a6570; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; } /* tall screens crop to their top */
/* a second screen of the same feature, laid over the first; the view buttons (site.js) fade it in. Without JS it stays hidden. */
.shot__alt { position: absolute; left: 0; top: 1.875rem; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s .35s; }
.shot__alt.is-on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out); }
.views { display: none; position: absolute; z-index: 2; left: 0; top: calc(100% + 1.25rem); align-items: center; gap: .375rem; font: 500 .75rem var(--mono); color: var(--muted); }
.js .views { display: flex; }
.views span { margin-right: .375rem; }
.views button {
  min-height: 2rem; padding: 0 .75rem; border-radius: 62.4375rem; border: .0625rem solid var(--ink-3);
  background: var(--ink-2); color: #c9d2da; font: inherit; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s;
}
.views button:hover { border-color: var(--muted); color: var(--text); }
.views button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--ink-2)); color: var(--text); }

/* hang tag: the feature's sample record, where anime has a code block */
.tag {
  position: absolute; z-index: 2; right: 2%; bottom: -2.875rem; width: 15.5rem;
  padding: 2.125rem 1.125rem 1rem; border-radius: .625rem .625rem .75rem .75rem;
  background: var(--ink-2); border: .0625rem solid var(--ink-3);
  font: 500 .78125rem/1.75 var(--mono); color: #c9d2da;
  clip-path: polygon(22% 0, 78% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  transform-origin: 50% -1.875rem;
}
.tag::before { content: ''; position: absolute; top: .75rem; left: 50%; width: .75rem; height: .75rem; margin-left: -.375rem; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 .125rem var(--ink-3); }
.tag__title { display: block; color: var(--accent); font-weight: 600; margin-bottom: .25rem; }
.tag dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: .875rem; }
.tag dt { color: var(--muted); }
.tag dd { margin: 0; text-align: right; color: var(--text); }
.tag.is-swinging { animation: swing 1.6s var(--ease-out); }
@keyframes swing { 0% { rotate: 0deg; } 18% { rotate: 7deg; } 40% { rotate: -4.5deg; } 62% { rotate: 2.2deg; } 82% { rotate: -.8deg; } 100% { rotate: 0deg; } }

/* ---------- gallery ---------- */
.gallery { padding: 6.875rem 0 7.5rem; overflow: hidden; }
.gallery__head { padding: 0 var(--edge); display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.gallery h2 { margin: 0; font-weight: 700; font-size: clamp(2.25rem, 3.4vw, 3.375rem); line-height: .95; letter-spacing: -.02em; }
.gallery__head p { margin: .75rem 0 0; color: var(--muted); max-width: 40ch; }
.marquee { display: flex; gap: 1.375rem; width: max-content; animation: marquee var(--dur, 70s) linear infinite; }
.marquee + .marquee { margin-top: 1.375rem; animation-direction: reverse; }
.gallery.is-paused .marquee, .gallery.is-offscreen .marquee { animation-play-state: paused; }
@media (hover: hover) { .gallery:has(.marquee:hover) .marquee { animation-play-state: paused; } } /* not while on the Play button */
@keyframes marquee { to { transform: translateX(calc(-50% - .6875rem)); } } /* half the 22px gap: the copy starts one gap later */
.marquee figure { margin: 0; width: clamp(17.5rem, 30vw, 28.75rem); flex: none; border-radius: .5rem; overflow: hidden; background: #fff; box-shadow: 0 1.5rem 3.125rem -1.5rem rgb(0 0 0 / .7); }
.marquee img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.marquee figcaption { padding: .625rem .875rem; font-size: .875rem; font-weight: 600; color: var(--paper-ink); background: #f3f4f6; }

/* ---------- connect (light) ---------- */
.connect { background: var(--paper); color: var(--paper-ink); padding: 6.875rem var(--edge) 7.5rem; }
.connect__grid { display: grid; grid-template-columns: minmax(17.5rem, 25rem) 1fr; gap: clamp(1.75rem, 5vw, 5rem); align-items: center; }
.connect p { margin: 1.125rem 0 0; font-size: 1.1875rem; line-height: 1.32; max-width: 60ch; }
.flow { width: 100%; height: auto; overflow: visible; }
.flow text { font: 500 14px var(--mono); fill: var(--paper-ink); }
.flow .node rect { fill: var(--paper); stroke: var(--paper-ink); stroke-width: 1.5; }
.flow .node--hub rect { fill: var(--paper-ink); }
.flow .node--hub text { fill: var(--paper); font: 700 22px var(--display); }
.flow .wire { fill: none; stroke: var(--paper-ink); stroke-width: 1.25; opacity: .55; }
.flow .packet { fill: var(--orange); stroke: var(--paper-ink); stroke-width: 1.25; }

@media (max-width: 1280px) { .connect__grid { grid-template-columns: 1fr; } .flow { max-width: 60rem; } }
@media (max-width: 900px) and (orientation: portrait), (max-width: 600px) { .flow { max-width: 26.25rem; margin: 0 auto; display: block; } } /* site.js switches it to top-to-bottom */
@media (max-width: 480px) { .flow text { font-size: 17px; } } /* the vertical diagram renders below 1:1 on small phones */
@media (min-width: 601px) and (max-width: 900px) and (orientation: landscape) { .flow text { font-size: 16px; } }

/* ---------- finale ---------- */
.finale { position: relative; padding: 8.75rem var(--edge) 3.75rem; overflow: hidden; }
.finale__grid { display: grid; grid-template-columns: 1fr minmax(15rem, 26.25rem); align-items: center; gap: 2.5rem; }
.finale h2 { margin: 0; font-weight: 700; font-size: clamp(3.5rem, 8.4vw, 8.5rem); line-height: .88; letter-spacing: -.03em; }
.finale p { margin: 1.75rem 0 2.125rem; font-size: 1.3125rem; color: #c5ccd2; max-width: 32ch; }
.finale__actions { display: flex; gap: .875rem; flex-wrap: wrap; }
.finale .finale__note { margin: 1.125rem 0 0; font-size: .9375rem; color: var(--muted); }
.site-footer {
  display: flex; justify-content: space-between; gap: 1.125rem; flex-wrap: wrap;
  margin-top: 7.5rem; padding-top: 1.625rem; border-top: .0625rem solid var(--ink-3);
  font-size: .875rem; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: .375rem 1.375rem; }
.site-footer a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--ink-3); }
.site-footer a:hover { color: var(--text); }
.site-footer a[href^="terms"], .site-footer a[href^="privacy"] { color: var(--text); text-decoration-color: currentColor; } /* legal links have to stand out from the line they sit in */
.site-footer__legal { flex-basis: 100%; display: grid; gap: .625rem; }
.site-footer__legal p { margin: 0; max-width: 120ch; font-size: .8125rem; line-height: 1.5; color: var(--muted); }

/* ---------- legal: the mark, the line by the Sign in buttons, and terms.html / privacy.html ---------- */
.tm { margin-left: .0625rem; font-size: .45em; font-weight: 700; line-height: 0; vertical-align: .8em; }
.assent { margin: 0; max-width: 44ch; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.hero__actions .assent { flex-basis: 100%; }
.finale .assent { margin: .5rem 0 0; font-size: .9375rem; color: var(--muted); }
.assent a { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }

.legal-head { padding: 8rem var(--edge) 3.5rem; }
.legal-head h1 { margin: 0; font-weight: 700; font-size: clamp(2.75rem, 5vw, 5rem); line-height: .95; letter-spacing: -.025em; }
.legal-head p { margin: 1.125rem 0 0; font: 500 .875rem var(--mono); color: var(--muted); }
.legal {
  display: grid; grid-template-columns: minmax(15rem, 20rem) minmax(0, 50rem); justify-content: center; gap: clamp(2rem, 5vw, 5.5rem);
  padding: 4.5rem var(--edge) 7rem; background: var(--paper); color: var(--paper-ink);
}
.legal :focus-visible { outline-color: var(--paper-ink); }
.legal__toc { position: sticky; top: 2rem; align-self: start; max-height: calc(100svh - 4rem); overflow-y: auto; font-size: .9375rem; line-height: 1.35; }
.legal__toc h2 { margin: 0 0 .75rem; font-size: 1rem; }
.legal__toc ol { display: grid; gap: .375rem; margin: 0; padding: 0 0 0 1.75rem; }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal__body { font-size: 1.0625rem; line-height: 1.6; overflow-wrap: break-word; }
.legal__body h2 { margin: 3rem 0 .75rem; scroll-margin-top: 1.5rem; font-size: 1.625rem; line-height: 1.15; letter-spacing: -.01em; }
.legal__body h3 { margin: 1.75rem 0 .375rem; font-size: 1.125rem; line-height: 1.3; }
.legal__body p { margin: 0 0 .875rem; }
.legal__body ul, .legal__body ol { margin: 0 0 .875rem; padding-left: 1.75rem; display: grid; gap: .5rem; }
.legal__body a { text-underline-offset: .2em; }
.legal__body dl { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: .625rem 1.5rem; margin: 0 0 1.25rem; padding: 1.125rem 0; border: solid var(--paper-ink); border-width: .0625rem 0; }
.legal__body dt { font-weight: 700; }
.legal__body dd { margin: 0; }
.legal__box { margin: 0 0 1.25rem; padding: 1.25rem 1.5rem; border: .125rem solid var(--paper-ink); border-radius: .5rem; background: #efe6d6; font-weight: 700; }
.legal__box > :last-child { margin-bottom: 0; }
.legal-foot { padding: 0 var(--edge) 3.75rem; }
.legal-foot .site-footer { margin-top: 0; border-top: 0; padding-top: 2.5rem; }
@media (max-width: 1100px) {
  .legal { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; }
  .legal__toc { position: static; max-height: none; }
  .legal__toc ol { display: block; columns: 2; }
  .legal__toc li { break-inside: avoid; margin-bottom: .375rem; }
}
@media (max-height: 780px) { .legal__toc { position: static; max-height: none; } } /* taller than the window: let it scroll away, not draw a second scrollbar */
@media (max-width: 600px) {
  .legal__toc ol { columns: 1; }
  .legal__body dl { grid-template-columns: minmax(0, 1fr); gap: .125rem; }
  .legal__body dd { margin-bottom: .75rem; }
}
@media print { /* people keep a copy of terms: dark ink on white, no chrome */
  html { font-size: 11px; }
  .legal-page, .legal-page .legal, .legal-page .legal-head p { background: none; color: #000; }
  .legal { display: block; padding: 0; } .legal-head { padding: 0 0 1rem; }
  .legal-page .site-header, .legal__toc, .legal-foot { display: none; }
  .legal__box { background: none; break-inside: avoid; }
}

/* ---------- HTML cards in three stages: the part of a feature a screenshot is too small to read ---------- */
.shot--native img { aspect-ratio: auto; } /* a screen that is not 16:10, shown whole */
.stage--ui .shot { width: 84%; }
/* in flow under the screen, pulled up over its lower right corner only, so the screen's top rows stay readable and the stage
   grows to hold the card at every width */
.ui {
  position: relative; z-index: 2; width: min(26rem, 52%); margin: -7rem 0 0 auto;
  border-radius: .75rem; overflow: hidden; background: #fff; color: #1f2937;
  font: 400 .8125rem/1.45 'Helvetica Neue', Arial, sans-serif; text-align: left;
  box-shadow: 0 0 0 .0625rem rgb(255 255 255 / .1), 0 2rem 4rem -1rem rgb(0 0 0 / .7);
}
.ui__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .125rem .75rem; padding: .75rem 1rem; background: #f3f4f6; border-bottom: .0625rem solid #e5e7eb; }
.ui__head b { font-weight: 700; color: #111827; }
.ui__head span { color: #4b5563; font-size: .75rem; }
/* the email a colleague gets: wording and order follow the real one (server/services/reportDelivery.js buildEmail) */
.ui__head .mail__subject { grid-column: 1 / -1; color: #374151; font-size: .8125rem; font-weight: 600; }
.mail__body { padding: .875rem 1rem 1rem; }
.mail__body p { margin: 0 0 .5rem; }
.mail__logo { display: block; margin-bottom: .625rem; font: 800 .875rem var(--display); letter-spacing: .14em; color: var(--paper-ink); }
.mail__team { padding: .5rem .625rem; border-radius: .375rem; background: #eef4fa; border-left: .1875rem solid var(--blue); }
.mail__file { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; padding: .5rem .625rem; border: .0625rem solid #e5e7eb; border-radius: .5rem; font-weight: 600; color: #111827; }
.mail__file::before { content: 'XLSX'; flex: none; padding: .125rem .3125rem; border-radius: .25rem; background: #1d6f42; color: #fff; font: 700 .625rem var(--mono); }
/* the order form: Excel Studio's "Order form" (excel-studio.md:94,177). Grey cells are locked, white ones take a quantity */
.sheet { width: min(30rem, 66%); } /* the table needs about 22.25rem: at 62% the narrowest 2-column stage (1101px) clipped its last column */
.sheet__grid { width: 100%; border-collapse: collapse; font: 500 .75rem/1.2 var(--mono); }
.sheet__grid th { padding: .4375rem .5rem; background: #24497b; color: #fff; font-weight: 600; text-align: right; }
.sheet__grid td { padding: .4375rem .5rem; border-bottom: .0625rem solid #e5e7eb; background: #f3f4f6; color: #4b5563; text-align: right; white-space: nowrap; }
.sheet__grid th:first-child, .sheet__grid td:first-child { text-align: left; }
.sheet__grid td.sheet__in { background: #fff; color: #111827; font-weight: 700; box-shadow: inset 0 0 0 .0625rem #9fd3b0; }
.sheet__grid td.is-sel { position: relative; box-shadow: inset 0 0 0 .125rem #1d6f42; }
.sheet__tip { position: absolute; right: 0; top: calc(100% + .125rem); z-index: 1; padding: .25rem .5rem; border: .0625rem solid #d8c56f; border-radius: .25rem; background: #fffbe6; color: #3f3a1f; font: 500 .6875rem/1.3 'Helvetica Neue', Arial, sans-serif; white-space: nowrap; box-shadow: 0 .25rem .75rem -.25rem rgb(0 0 0 / .3); }
.sheet__grid tfoot td { background: #fff; color: #111827; font-weight: 700; border-top: .125rem solid #24497b; border-bottom: 0; }
/* the Share dialog (list-collaboration.md: the search box, the pinned Everyone row, the three levels) */
.share { width: min(24rem, 50%); }
.share__body { display: grid; gap: .375rem; padding: .75rem 1rem 1rem; }
.share__search { padding: .4375rem .625rem; border: .0625rem solid #d1d5db; border-radius: .375rem; color: #6b7280; }
.share__row { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; align-items: center; gap: .625rem; padding: .1875rem 0; color: #111827; font-weight: 600; }
.share__row em { padding: .1875rem .5rem; border: .0625rem solid #d1d5db; border-radius: .375rem; color: #374151; font-size: .75rem; font-style: normal; font-weight: 500; white-space: nowrap; }
.share__row em::after { content: ' \25BE'; color: #6b7280; }
.share__all { padding-bottom: .5rem; border-bottom: .0625rem solid #e5e7eb; }
.share__all em::after, .share__row .share__owner::after { content: none; }
.share__row .share__owner { background: #fef3c7; border-color: #f2d48a; }
.share__tick { justify-self: center; width: 1rem; height: 1rem; border-radius: .25rem;
  background: #2563eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 85% no-repeat; }
.share__av { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .5625rem var(--display); font-style: normal; }
.share__row:nth-child(4) .share__av { background: #7a5bd1; }
.share__row:nth-child(5) .share__av { background: #c2410c; }
.share__row:nth-child(6) .share__av { background: #0f766e; }
.share__foot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .375rem; }
.share__foot span, .share__foot b { padding: .375rem .875rem; border-radius: .375rem; font-weight: 600; }
.share__foot span { border: .0625rem solid #d1d5db; color: #374151; }
.share__foot b { background: #111827; color: #fff; }

/* ---------- access (light): pick a role ---------- */
/* borders are whole px at 16px (.0625rem, .125rem): a 1.5px one renders 1px at 1x but 3px at 2x, and the page drifts */
.access :focus-visible, .toolbox :focus-visible, .connect :focus-visible { outline-color: var(--paper-ink); }
.roles__picker button:focus-visible { outline-offset: -.25rem; }
.access { background: var(--paper); color: var(--paper-ink); padding: 7.5rem var(--edge); }
.access__grid { display: grid; grid-template-columns: minmax(17.5rem, 28rem) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 5rem); align-items: center; }
.access__copy > p { margin: 1.125rem 0 0; font-size: 1.1875rem; line-height: 1.32; text-wrap: pretty; }
.access__facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; font-size: 1rem; line-height: 1.4; }
.access__facts li { position: relative; padding-left: 1.75rem; }
.access__facts li::before { content: ''; position: absolute; left: 0; top: .25rem; width: .875rem; height: .875rem; border: .125rem solid var(--paper-ink); border-radius: .1875rem; background: var(--tan); }
.access__facts b { font-weight: 700; }
.roles { justify-self: end; width: min(100%, 60rem); padding: clamp(1rem, 2.4vw, 1.75rem); border: .0625rem solid var(--paper-ink); border-radius: 1rem; background: #efe6d6; box-shadow: .5rem .5rem 0 var(--paper-2); }
.roles__picker { display: none; position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .25rem; border: .0625rem solid var(--paper-ink); border-radius: .75rem; background: var(--paper); }
.js .roles__picker { display: grid; }
.roles__picker button { position: relative; z-index: 1; min-height: 2.75rem; padding: 0 .25rem; border: 0; border-radius: .5rem; background: none; font: 700 1rem var(--display); color: var(--paper-ink); cursor: pointer; transition: color .3s; }
.roles__picker button[aria-pressed="true"] { color: var(--paper); }
.roles__thumb { position: absolute; top: .25rem; bottom: .25rem; left: .25rem; width: calc((100% - .5rem) / 4); border-radius: .5rem; background: var(--paper-ink); transform: translateX(calc(var(--i, 2) * 100%)); transition: transform .45s var(--ease-out); }
.roles__list { list-style: none; margin: 1rem 0 0; padding: 0; }
.roles__list li { display: grid; grid-template-columns: 1.125rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .5625rem .25rem; border-bottom: .0625rem dashed rgb(26 53 79 / .28); font-size: .9375rem; line-height: 1.3; transition: opacity .3s; }
.roles__list li::before {
  content: ''; width: 1.125rem; height: 1.125rem; box-sizing: border-box; border-radius: .25rem; border: .125rem solid var(--paper-ink);
  background: var(--paper-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23e8dcc6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 90% no-repeat;
  transition: background-color .25s, background-size .25s var(--ease-out);
}
.roles__list li.is-off { opacity: .6; } /* still readable (about 3.5:1); the empty box says "off" */
.roles__list li.is-off::before { background-color: transparent; background-size: 0; }
/* line-height 1 keeps the chip shorter than the text line: a 'normal' line height rounds differently at 2x */
.roles__list small { font: 500 .6875rem/1 var(--mono); padding: .1875rem .5rem; border: .0625rem solid currentColor; border-radius: 62.4375rem; opacity: .75; }
.roles__readout { display: none; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .75rem; align-items: baseline; margin: 1.25rem 0 0; padding: .875rem 1rem; border-radius: .5625rem; background: #22272c; color: var(--paper); font: 500 .8125rem/1.45 var(--mono); }
.js .roles__readout { display: grid; }
.roles__readout b { color: var(--orange); font-weight: 600; white-space: nowrap; }
.roles__bar { grid-column: 1 / -1; height: .1875rem; margin-top: .375rem; border-radius: .125rem; background: #3a4148; overflow: hidden; }
.roles__bar i { display: block; height: 100%; width: var(--fill, 75%); background: var(--orange); transition: width .45s var(--ease-out); }
.roles__note { margin: .875rem 0 0; font-size: .8125rem; line-height: 1.4; opacity: .8; }

/* ---------- the rest of the box: small tools, each with a drawn loop ---------- */
.extras { padding: 7.5rem var(--edge) 0; }
.extras__head p { margin: .75rem 0 0; color: var(--muted); }
.tiles { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tile { display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.5rem; border-radius: .875rem; background: var(--ink-2); border: .0625rem solid var(--ink-3); }
.tile h3 { text-wrap: balance; margin: 0; font-size: 1.25rem; line-height: 1.1; font-weight: 700; color: var(--accent); }
.tile p { margin: .5rem 0 0; font-size: .9375rem; line-height: 1.4; color: #c5ccd2; }
.tile__art { position: relative; height: 8.75rem; margin-bottom: 1.25rem; border-radius: .625rem; background: var(--ink); border: .0625rem solid var(--ink-3); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; }
.extras.is-paused * { animation-play-state: paused !important; }
/* every art's resting style is its finished frame, so reduced motion (no animation) still reads */
.tile__art kbd { font: 600 .8125rem var(--mono); color: var(--text); }
/* scan */
.art-scan__code { position: absolute; left: 50%; top: 1.125rem; width: 9.5rem; height: 4.25rem; translate: -50% 0; opacity: .85;
  background: repeating-linear-gradient(90deg, var(--text) 0 .125rem, transparent .125rem .3125rem, var(--text) .3125rem .375rem, transparent .375rem .5rem, var(--text) .5rem .6875rem, transparent .6875rem .8125rem, var(--text) .8125rem .875rem, transparent .875rem 1.0625rem); }
.art-scan__beam { position: absolute; left: 50%; top: 1.125rem; width: 11.5rem; height: .125rem; translate: -50% 0; background: var(--accent); box-shadow: 0 0 .75rem .1875rem color-mix(in srgb, var(--accent) 55%, transparent); animation: scan-beam 2.8s ease-in-out infinite; }
.art-scan__hit { position: absolute; bottom: .75rem; font: 600 .75rem var(--mono); color: var(--accent); animation: scan-hit 2.8s ease-out infinite; }
@keyframes scan-beam { 0%, 100% { transform: none; } 45% { transform: translateY(4.25rem); } }
@keyframes scan-hit { 0%, 42% { opacity: 0; transform: translateY(.25rem); } 50%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* install */
.art-app { flex-direction: row; align-items: flex-end; gap: 1.125rem; padding-bottom: 1.625rem; }
.art-app > span { position: relative; display: grid; place-items: center; border: .125rem solid var(--muted); border-radius: .375rem; }
.art-app__laptop { width: 6.5rem; height: 4.125rem; }
.art-app__laptop::after { content: ''; position: absolute; left: -.875rem; right: -.875rem; bottom: -.625rem; height: .375rem; border-radius: 0 0 .375rem .375rem; background: var(--muted); }
.art-app__tablet { width: 3.25rem; height: 4.5rem; }
.art-app__phone { width: 2rem; height: 3.625rem; border-radius: .5rem; }
.art-app i { width: 1.375rem; height: 1.375rem; border-radius: .375rem; background: #fff url('assets/skuguy-head.png') center / 92% no-repeat; animation: app-pop 3.6s var(--ease-out) infinite; }
.art-app__tablet i { animation-delay: .25s; }
.art-app__phone i { animation-delay: .5s; }
@keyframes app-pop { 0%, 6% { transform: scale(0); } 16%, 86% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
/* search */
.art-search { align-items: stretch; padding: 0 1rem; }
.art-search__box { display: flex; align-items: center; gap: .5rem; padding: .5rem .625rem; border-radius: .5rem; background: var(--ink-2); border: .0625rem solid var(--ink-3); font: 500 .875rem var(--mono); color: var(--text); }
.art-search kbd { font-size: .625rem; padding: .125rem .375rem; border: .0625rem solid var(--ink-3); border-radius: .25rem; color: var(--muted); }
.art-search__typed { display: inline-block; width: 10ch; overflow: hidden; white-space: nowrap; border-right: .125rem solid var(--accent); animation: type-search 4.4s steps(10, end) infinite; }
.art-search__hit { padding: .5rem .625rem; border-radius: .5rem; background: color-mix(in srgb, var(--accent) 14%, var(--ink-2)); font-size: .8125rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: search-hit 4.4s ease-out infinite; }
.art-search__hit b { margin-right: .375rem; font: 600 .75rem var(--mono); color: var(--accent); }
@keyframes type-search { 0%, 8% { width: 0; } 42%, 90% { width: 10ch; } 100% { width: 0; } }
@keyframes search-hit { 0%, 44% { opacity: 0; transform: translateY(-.25rem); } 52%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* live */
.art-live { flex-direction: row; gap: 0; }
.art-live__pane { display: grid; gap: .25rem; width: 5.75rem; padding: .625rem .75rem; border-radius: .5rem; background: var(--ink-2); border: .0625rem solid var(--ink-3); }
.art-live__pane i { font: 500 .6875rem var(--mono); font-style: normal; color: var(--muted); }
.art-live__pane b { display: block; height: 1.375rem; overflow: hidden; font: 700 1.0625rem/1.375rem var(--display); color: var(--text); }
.art-live__pane b span { display: block; transform: translateY(-100%); } /* rests on the new price in both panes */
.art-live__a span { animation: tick-a 4.4s infinite; }
.art-live__b span { animation: tick-b 4.4s infinite; }
.art-live__b { animation: live-flash 4.4s infinite; }
.art-live__wire { position: relative; width: 2.75rem; height: .125rem; background: repeating-linear-gradient(90deg, var(--ink-3) 0 .375rem, transparent .375rem .625rem); }
.art-live__wire::after { content: ''; position: absolute; top: -.1875rem; left: 0; width: .5rem; height: .5rem; border-radius: .125rem; background: var(--accent); opacity: 0; animation: live-packet 4.4s infinite; }
@keyframes tick-a { 0%, 24% { transform: none; } 30%, 90% { transform: translateY(-100%); } 96%, 100% { transform: none; } }
@keyframes tick-b { 0%, 44% { transform: none; } 50%, 90% { transform: translateY(-100%); } 96%, 100% { transform: none; } }
@keyframes live-flash { 0%, 46%, 70%, 100% { color: var(--text); } 50%, 62% { color: var(--accent); } }
@keyframes live-packet { 0%, 28% { opacity: 0; transform: none; } 31% { opacity: 1; } 44% { opacity: 1; transform: translateX(2.25rem); } 47%, 100% { opacity: 0; transform: translateX(2.25rem); } }
/* fields */
.art-fields { gap: .875rem; }
.art-fields__chip { display: grid; height: 2.25rem; overflow: hidden; padding: 0 .875rem; border-radius: .5rem; border: .0625rem solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--ink-2)); font: 600 .9375rem/2.25rem var(--display); color: var(--text); }
.art-fields__chip span { grid-area: 1 / 1; text-align: center; animation: swap-out 4.4s infinite; }
.art-fields__chip span:first-child { opacity: 0; } /* rests on the renamed field */
.art-fields__chip span + span { animation-name: swap-in; }
.art-fields__row { display: flex; gap: .375rem; }
.art-fields__row i { padding: .25rem .5rem; border: .0625rem dashed var(--ink-3); border-radius: .375rem; font: 500 .6875rem var(--mono); font-style: normal; color: var(--muted); animation: chip-in 4.4s infinite; }
.art-fields__row i:nth-child(2) { animation-delay: .15s; }
.art-fields__row i:nth-child(3) { animation-delay: .3s; }
@keyframes swap-out { 0%, 40% { transform: none; opacity: 1; } 48%, 90% { transform: translateY(-100%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes swap-in { 0%, 40% { transform: translateY(100%); opacity: 0; } 48%, 90% { transform: none; opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }
@keyframes chip-in { 0%, 8% { opacity: 0; transform: translateY(.375rem); } 18%, 100% { opacity: 1; transform: none; } }
/* automatic fields */
.art-rule { gap: .375rem; font: 500 .75rem var(--mono); }
.art-rule__if, .art-rule__then { padding: .375rem .625rem; border-radius: .375rem; background: var(--ink-2); border: .0625rem solid var(--ink-3); color: var(--muted); white-space: nowrap; }
.art-rule__then { color: var(--text); }
.art-rule__then span { display: inline-block; width: 11ch; overflow: hidden; vertical-align: bottom; color: var(--accent); animation: type-rule 4.4s steps(11, end) infinite; }
.art-rule__arrow { position: relative; width: .125rem; height: 1.125rem; background: var(--accent); }
.art-rule__arrow::after { content: ''; position: absolute; left: 50%; bottom: -.3125rem; translate: -50% 0; border: .3125rem solid transparent; border-top-color: var(--accent); border-bottom-width: 0; }
@keyframes type-rule { 0%, 22% { width: 0; } 52%, 90% { width: 11ch; } 100% { width: 0; } }
/* storefront: an iPad of product tiles, locked with a 4-digit PIN */
.art-store { flex-direction: row; gap: 1.5rem; }
.art-store__pad { display: grid; grid-template-columns: repeat(2, 1.625rem); gap: .3125rem; padding: .5rem; border: .125rem solid var(--muted); border-radius: .625rem; }
.art-store__pad i { height: 2rem; border-radius: .25rem; background: color-mix(in srgb, var(--accent) 20%, var(--ink-2)); }
.art-store__pad i:nth-child(1), .art-store__pad i:nth-child(4) { background: color-mix(in srgb, var(--accent) 55%, var(--ink-2)); }
.art-store__pin { display: flex; gap: .4375rem; }
.art-store__pin i { width: .75rem; height: .75rem; border-radius: 50%; border: .125rem solid var(--accent); background: var(--accent); animation: pin-dot 3.2s infinite; }
.art-store__pin i:nth-child(2) { animation-delay: .2s; }
.art-store__pin i:nth-child(3) { animation-delay: .4s; }
.art-store__pin i:nth-child(4) { animation-delay: .6s; }
@keyframes pin-dot { 0%, 10% { background: transparent; } 20%, 84% { background: var(--accent); } 94%, 100% { background: transparent; } }
.tile__beta { margin-left: .25rem; padding: .125rem .375rem; border: .0625rem solid currentColor; border-radius: 62.4375rem; font: 600 .625rem var(--mono); vertical-align: .1875rem; }
/* buyer history */
.art-buyer__card { display: grid; gap: .125rem; width: min(12.5rem, 86%); padding: .75rem .875rem; border-radius: .5rem; background: #fff; color: #1f2937; font-size: .8125rem; line-height: 1.35; box-shadow: 0 .75rem 1.5rem -.75rem rgb(0 0 0 / .6); }
.art-buyer__card b { color: var(--paper-ink); font-weight: 700; }
.art-buyer__card i { font: 600 .75rem var(--mono); font-style: normal; }
.art-buyer > em { padding: .25rem .625rem; border-radius: 62.4375rem; background: var(--accent); color: #1b1206; font: 600 .6875rem var(--mono); font-style: normal; animation: badge 2.4s ease-in-out infinite; }
@keyframes badge { 0%, 100% { transform: none; } 50% { transform: scale(1.08); } }

/* ---------- connect: three steps under the diagram ---------- */
.steps { list-style: none; margin: 4.5rem 0 0; padding: 2.5rem 0 0; border-top: .0625rem solid var(--paper-ink); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.steps__n { display: inline-block; padding: .25rem .5rem; border: .0625rem solid var(--paper-ink); border-radius: .375rem; font: 600 .875rem var(--mono); }
.steps h3 { margin: .875rem 0 0; font-size: 1.375rem; line-height: 1.1; font-weight: 700; }
.connect .steps p { margin: .5rem 0 0; font-size: 1rem; line-height: 1.4; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(17.5rem, 25rem) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 5rem); align-items: start; padding: 7.5rem var(--edge) 0; }
.faq__head p { margin: .875rem 0 0; color: var(--muted); }
.faq__list { border-top: .0625rem solid var(--ink-3); }
.faq details { border-bottom: .0625rem solid var(--ink-3); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.125rem 0; list-style: none; cursor: pointer; font-size: 1.1875rem; font-weight: 600; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: .875rem; height: .875rem; transition: rotate .3s var(--ease-out);
  background: linear-gradient(var(--orange) 0 0) center / 100% .125rem no-repeat, linear-gradient(var(--orange) 0 0) center / .125rem 100% no-repeat;
}
.faq summary:hover { color: #fff; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 1.375rem; max-width: 62ch; font-size: 1rem; line-height: 1.5; color: #c5ccd2; text-wrap: pretty; }
@supports (interpolate-size: allow-keywords) { /* open and close smoothly where the browser can animate to auto */
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; padding-top: 6rem; row-gap: 1.75rem; }
  .hero__stage { position: relative; left: auto; top: auto; translate: none; width: min(92vw, 35rem); justify-self: center; grid-row: 2; }
  .hero__copy { grid-row: 1; margin-top: 0; }
  .hero__lede { max-width: 30ch; }
  .hero__actions { grid-row: 3; }
  .readout { grid-column: 1; grid-row: 4; justify-self: start; text-align: left; }
  .section, .connect__grid, .access__grid, .faq { grid-template-columns: 1fr; }
  .roles { justify-self: stretch; width: auto; }
  .section { min-height: 0; padding-top: 5.625rem; padding-bottom: 8.125rem; }
  .stage { width: 100%; }
  .stage__dial { width: 92%; right: -20%; }
  .finale__grid { grid-template-columns: 1fr; }
  .finale .skuguy { justify-self: center; max-width: min(26.25rem, 78vw); --stroke: .125rem; }
  .ring__mascot { width: 46%; }
  .ring__mascot .skuguy { --stroke: .09375rem; }
}
@media (max-width: 1100px) {
  .toolbox__art .label { display: none; }
}
/* tablets on their side: two columns, so the whole instrument and both buttons fit */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: landscape) and (min-height: 561px) {
  .hero { grid-template-columns: minmax(18.75rem, 1fr) 1fr; grid-template-rows: 1fr auto auto; }
  .hero__stage { grid-column: 2; grid-row: 1 / -1; align-self: center; width: min(46vw, 80svh); }
  .hero__actions { grid-row: 2; }
  .readout { grid-row: 3; }
}
/* phones on their side: the same two columns, squeezed to fit one short screen */
@media (min-width: 640px) and (max-width: 1100px) and (orientation: landscape) and (max-height: 560px) {
  .hero { grid-template-columns: minmax(18.75rem, 1fr) 1fr; grid-template-rows: 1fr auto auto; min-height: 100svh; padding-top: 4.5rem; padding-bottom: 1.25rem; row-gap: .875rem; }
  .hero h1 { font-size: 2.625rem; }
  .hero__lede { margin-top: .875rem; font-size: 1.0625rem; }
  .hero__stage { grid-column: 2; grid-row: 1 / -1; align-self: end; width: min(44vw, 74svh); }
  .hero__actions { grid-row: 2; }
  .readout { display: none; }
}
/* pinned with chips (tablets): the scrubber moves left, clear of the bottom carton */
@media (max-width: 1100px) { .scrubber { right: auto; left: var(--edge); } }
/* tablets upright: still pinned, the stack fills the space between the chips and the scrubber */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .toolbox__art { top: auto; bottom: 6.5rem; height: 62svh; }
}
/* phones, and any small screen too short to pin: the toolbox scrolls like a normal section (site.js uses the same query) */
@media (max-width: 760px), (max-width: 1100px) and (max-height: 560px) {
  .toolbox { height: auto; }
  .toolbox__pin { position: relative; height: auto; padding: 6rem var(--edge) 4rem; }
  .toolbox__copy { position: relative; left: auto; top: auto; }
  .toolbox__art { position: relative; height: auto; aspect-ratio: 780 / 840; margin-top: 1.5rem; max-height: 90svh; } /* site.js crops the viewBox to the stack */
  .scrubber { display: none; }
}
@media (max-width: 1280px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; margin-top: 3rem; } }
@media (max-width: 680px) { .tiles { grid-template-columns: 1fr; } } /* below this a 2-column tile is too narrow for its drawing */
@media (min-width: 1500px) { .roles__list { columns: 2; column-gap: 2.5rem; } .roles__list li { break-inside: avoid; } } /* a wide panel, two short columns */
@media (max-width: 760px) {
  .stage--ui .shot { width: 100%; }
  .ui { width: auto; margin-top: 1rem; }
  .sheet__grid { font-size: .6875rem; }
  .sheet__grid th, .sheet__grid td { padding: .375rem .3125rem; }
  .access, .extras, .faq { padding-top: 5rem; }
  .access { padding-bottom: 5rem; }
  .tag { position: relative; right: auto; bottom: auto; margin: .875rem 0 0 auto; width: min(15.5rem, 86%); }
  .views { position: static; margin-top: 1rem; }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .stage__dial { display: none; }
  body { font-size: 1.0625rem; }
}

/* ---------- intro states (only when JS runs; content is visible without it) ---------- */
.js .hero h1 .line > span { transform: translateY(120%); }
.js .hero__lede, .js .hero__actions, .js .readout { opacity: 0; }
.js .ring__mascot { opacity: 0; }
.js .ring__ticks, .js .ring__heat { opacity: 0; }
.js.is-ready .hero h1 .line > span, .js.is-ready .hero__lede, .js.is-ready .hero__actions, .js.is-ready .readout, .js.is-ready .ring__mascot, .js.is-ready .ring__ticks, .js.is-ready .ring__heat { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* the marquee stops, so lay the screens out as a wrapped grid instead of clipping them */
  .marquee { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--edge); }
  .marquee figure[aria-hidden] { display: none; }
  [data-marquee-toggle] { display: none; }
  .toolbox { height: auto; } .toolbox__pin { position: relative; } .scrubber { display: none; }
}
.skuguy.is-winking .skuguy__blink { opacity: 1; } /* reduced motion: a press closes his eyes instead of a hop */
