/* ---------------------------------------------------------------------------
   site.css — BlankSmith.

   Pop, warm. Cream paper, near-black ink, clay red and a sunshine yellow
   blocked hard against each other. No brand glyph: the name IS the mark, set
   heavy and tight.

   The whole page is about 600 words. A factory owner should get the pitch
   before they've finished scrolling.

   No dependencies, no build step, no webfonts.
--------------------------------------------------------------------------- */

:root {
  --paper:    #faf7f2;
  --ink:      #141210;
  --clay:     #d1462a;   /* the pop colour — BIG type and flat shapes only */
  --clay-ink: #be3a20;   /* small text, and blocks carrying cream text (5.1:1) */
  --sun:      #f2b705;
  --mute:     #6a635c;

  --edge:  4px;                     /* the thick keyline that does a lot here */
  --max:   1400px;
  --ease:  cubic-bezier(.22,.61,.36,1);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.04em; line-height: .95; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--clay-ink); outline-offset: 3px; }

/* --- shell ----------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px,4vw,64px); }
.sec  { padding: clamp(72px,9vw,140px) 0; }
.sec--tight { padding: clamp(56px,6vw,88px) 0; }

/* the colour blocks that give the page its rhythm */
.on-ink  { background: var(--ink);  color: var(--paper); }
.on-sun  { background: var(--sun);  color: var(--ink); }
.on-clay { background: var(--clay-ink); color: var(--paper); }

/* --- type ------------------------------------------------------------------ */

h1 { font-size: clamp(48px, 9.5vw, 132px); }
h2 { font-size: clamp(34px, 5.6vw, 76px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.025em; }

.kick {
  font-size: clamp(12px,1.1vw,14px); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--clay-ink); margin-bottom: 20px;
}
.on-ink .kick, .on-clay .kick { color: var(--sun); }
.on-sun .kick { color: var(--ink); }

.lead { font-size: clamp(19px,2.1vw,27px); line-height: 1.34; font-weight: 500; max-width: 20ch; }
.note { font-size: clamp(15px,1.3vw,17px); line-height: 1.5; color: var(--mute); max-width: 46ch; }
.on-ink .note, .on-clay .note { color: rgba(250,247,242,.72); }
.on-sun .note { color: rgba(20,18,16,.7); }

/* --- buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: clamp(16px,1.4vw,19px); font-weight: 700;
  padding: clamp(14px,1.5vw,20px) clamp(24px,2.6vw,38px);
  background: var(--clay); color: #fff; border: var(--edge) solid var(--ink);
  text-decoration: none; cursor: pointer; border-radius: 999px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover  { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--ink); }
.btn:active { transform: translate(3px,3px);  box-shadow: 2px 2px 0 var(--ink); }

.btn--sun { background: var(--sun); color: var(--ink); }
.btn--plain { background: transparent; color: inherit; box-shadow: none; border-color: currentColor; }
.btn--plain:hover { background: var(--ink); color: var(--paper); transform: none; box-shadow: none; }
.on-ink .btn, .on-clay .btn { border-color: var(--paper); box-shadow: 6px 6px 0 var(--paper); }
.on-ink .btn:hover, .on-clay .btn:hover { box-shadow: 9px 9px 0 var(--paper); }

.btn--sm { padding: 10px 20px; font-size: 15px; border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
.btn--sm:hover { box-shadow: 6px 6px 0 var(--ink); }

/* --- header: the name is the mark ------------------------------------------ */

.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: var(--edge) solid var(--ink);
}
.top-in { display: flex; align-items: center; gap: 24px; height: clamp(64px,7vw,84px); }

.mark {
  font-size: clamp(20px,2.3vw,30px); font-weight: 800; letter-spacing: -0.045em;
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.mark span { color: var(--clay-ink); }

.top nav { display: flex; gap: clamp(16px,2vw,30px); }
.top nav a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; padding: 4px 0; border-bottom: 3px solid transparent;
}
.top nav a:hover { border-bottom-color: var(--clay); }
@media (max-width: 860px) { .top nav { display: none; } }

/* --- hero ------------------------------------------------------------------ */

.hero { padding: clamp(48px,6vw,90px) 0 clamp(60px,7vw,110px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,30%); gap: clamp(32px,5vw,80px); align-items: center; }

.hero h1 { margin-bottom: clamp(22px,2.4vw,34px); }
.hero h1 em { font-style: normal; color: var(--clay); }
/* the word sitting in a yellow block — the loudest thing on the page */
.hero h1 mark {
  background: var(--sun); color: var(--ink);
  padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero .lead { margin-bottom: clamp(28px,3vw,40px); max-width: 26ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* The disc is sized off the BOARD, not the column — sized off the column it
   balloons the moment the layout stacks. */
.hero-board { position: relative; width: fit-content; margin: 0 auto; }
.hero-board img {
  position: relative; z-index: 1;
  width: min(100%, 300px); filter: drop-shadow(10px 14px 0 rgba(20,18,16,.14));
}
.hero-board::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 150%; aspect-ratio: 1; border-radius: 50%; background: var(--sun);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-board { order: -1; }
  .hero-board img { width: 170px; }
}

/* --- ticker ---------------------------------------------------------------- */

.ticker {
  background: var(--ink); color: var(--paper); overflow: hidden;
  border-top: var(--edge) solid var(--ink); border-bottom: var(--edge) solid var(--ink);
  padding: 14px 0;
}
.ticker-run { display: flex; gap: 46px; width: max-content; animation: run 34s linear infinite; }
.ticker span {
  font-weight: 800; font-size: clamp(15px,1.6vw,20px); letter-spacing: -0.02em;
  white-space: nowrap; display: flex; align-items: center; gap: 46px;
}
.ticker span::after { content: "●"; color: var(--sun); font-size: .7em; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-run { animation: none; } }

/* --- the demo -------------------------------------------------------------- */

.demo {
  margin-top: clamp(28px,3vw,44px);
  max-width: 1120px;   /* wide enough that the configurator puts its stage and
                          controls side by side (it stacks under 940px, which
                          pushed every control below a capped frame) */
  border: var(--edge) solid var(--paper); background: var(--paper);
  box-shadow: 12px 12px 0 var(--clay);
}
.demo-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: var(--paper); color: var(--ink);
  border-bottom: var(--edge) solid var(--ink);
  font-weight: 700; font-size: 14px;
}
.demo-bar b { color: var(--clay-ink); }
.demo-bar span:last-child { margin-left: auto; font-weight: 500; color: var(--mute); }
.demo-stage { position: relative; background: var(--paper); }

.poster {
  display: flex; align-items: center; justify-content: center; position: relative;
  width: 100%; height: clamp(380px,48vh,520px); overflow: hidden;
  border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit;
  background: var(--paper);
}
.poster-in { position: relative; z-index: 2; text-align: center; display: grid; gap: 14px; justify-items: center; }
.poster-board {
  position: absolute; top: -10%; height: 120%; width: auto; opacity: .28; z-index: 1;
  left: 10%; transform: rotate(-11deg); pointer-events: none;
}
.poster-board--2 { left: auto; right: 10%; transform: rotate(11deg); }
.demo iframe { display: block; width: 100%; border: 0; height: 520px; }

/* the shield that stops the live frame stealing the page scroll */
.demo-stage { position: relative; }
.shield {
  position: absolute; inset: 0; z-index: 3;
  border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 18px; font: inherit;
}
.shield[hidden] { display: none; }
.shield span {
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px;
  border: 3px solid var(--paper); box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .14s var(--ease);
}
.shield:hover span { transform: translateY(-3px); }

/* --- the ten, as chips ----------------------------------------------------- */

.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
         border: var(--edge) solid var(--ink); margin-top: clamp(36px,4vw,56px); }
.chip {
  padding: clamp(20px,2vw,30px);
  border-right: var(--edge) solid var(--ink); border-bottom: var(--edge) solid var(--ink);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.chip:nth-child(5n) { border-right: 0; }
.chip:nth-child(n+6) { border-bottom: 0; }
.chip b { display: block; font-size: clamp(17px,1.6vw,21px); font-weight: 800;
          letter-spacing: -0.03em; margin-bottom: 7px; }
.chip span { font-size: 15px; line-height: 1.4; color: var(--mute); }
.chip:hover { background: var(--sun); }
.chip:hover span { color: rgba(20,18,16,.72); }

@media (max-width: 1080px) {
  .chips { grid-template-columns: repeat(2, 1fr); }
  .chip:nth-child(n) { border-right: var(--edge) solid var(--ink); border-bottom: var(--edge) solid var(--ink); }
  .chip:nth-child(2n) { border-right: 0; }
  .chip:nth-child(9), .chip:nth-child(10) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .chips { grid-template-columns: 1fr; }
  .chip:nth-child(n) { border-right: 0; border-bottom: var(--edge) solid var(--ink); }
  .chip:last-child { border-bottom: 0; }
}

/* --- the "not on the list" box --------------------------------------------- */
/* Sits straight after the ten chips, because that is the moment someone scans
   the list, doesn't find the thing they actually do, and leaves. */

.callout {
  margin-top: clamp(28px,3vw,44px);
  background: var(--sun); border: var(--edge) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(24px,3vw,40px);
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: clamp(20px,3vw,44px); align-items: center;
}
.callout b {
  display: block; font-size: clamp(22px,2.6vw,34px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 12px;
}
.callout p { font-size: clamp(16px,1.5vw,18px); line-height: 1.45; max-width: 54ch;
             color: rgba(20,18,16,.78); }
.callout .btn { white-space: nowrap; }

@media (max-width: 780px) {
  .callout { grid-template-columns: 1fr; }
  .callout .btn { justify-self: start; }
}

/* --- outlines -------------------------------------------------------------- */

.ols { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px,1.4vw,22px);
       align-items: end; margin-top: clamp(36px,4vw,60px); }
.ol { margin: 0; text-align: center; }
.ol-art { display: flex; align-items: flex-end; justify-content: center;
          height: clamp(180px,24vw,320px); margin-bottom: 16px; }
.ol-art svg { height: calc(var(--scale,1) * 100%); width: auto; overflow: visible; }
.ol-art path {
  fill: none; stroke: var(--ink); stroke-width: 7; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 1.4s var(--ease), fill .18s var(--ease);
}
.ol-art path.is-drawing { transition: none; }
.ol:hover .ol-art path { fill: var(--clay); }
.ol b { display: block; font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.ol span { display: block; font-size: 12.5px; color: rgba(20,18,16,.62); line-height: 1.35; }

@media (max-width: 1080px) { .ols { grid-template-columns: repeat(3,1fr); row-gap: 30px; } }
@media (max-width: 620px)  { .ols { grid-template-columns: repeat(2,1fr); row-gap: 26px; }
                             .ol-art { height: 165px; } }

/* --- steps ----------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,2.4vw,36px);
         margin-top: clamp(36px,4vw,56px); }
.step-n {
  display: flex; align-items: center; justify-content: center;
  width: clamp(52px,5vw,72px); aspect-ratio: 1; border-radius: 50%;
  background: var(--clay); color: #fff; border: var(--edge) solid var(--ink);
  font-size: clamp(22px,2.2vw,30px); font-weight: 800; margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 16.5px; line-height: 1.45; color: var(--mute); }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; gap: 30px; } }

/* --- the big statement ----------------------------------------------------- */

.shout { text-align: center; }
.shout h2 { max-width: 16ch; margin: 0 auto clamp(20px,2vw,28px); }
.shout .note { margin: 0 auto clamp(28px,3vw,40px); text-align: center; max-width: 42ch; }

/* --- contact --------------------------------------------------------------- */

.form { display: grid; gap: 14px; max-width: 560px; margin-top: clamp(28px,3vw,40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form input, .form textarea {
  font: inherit; font-size: 17px; width: 100%; padding: 15px 18px;
  background: var(--paper); color: var(--ink);
  border: var(--edge) solid var(--ink); border-radius: 0;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--sun); }
.form input::placeholder, .form textarea::placeholder { color: var(--mute); }
.msg { font-weight: 700; padding: 12px 16px; display: none; border: 3px solid; }
.msg.is-on { display: block; }
.msg.is-err { background: var(--clay-ink); color: #fff; border-color: var(--ink); }
.msg.is-ok  { background: var(--sun); color: var(--ink); border-color: var(--ink); }

/* --- footer ---------------------------------------------------------------- */

.foot { border-top: var(--edge) solid var(--ink); padding: 32px 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot a { font-weight: 700; text-decoration: none; }
.foot a:hover { color: var(--clay-ink); }

/* --- reveal ---------------------------------------------------------------- */
/* Nothing is hidden until JS says it is running, so a broken script can never
   leave a blank page — it only loses the animation. */

.js-reveal .rev { opacity: 0; transform: translateY(18px); }
.rev.is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js-reveal .rev.is-in > * { animation: pop .5s var(--ease) backwards; }
.js-reveal .rev.is-in > *:nth-child(1){animation-delay:0s}
.js-reveal .rev.is-in > *:nth-child(2){animation-delay:.05s}
.js-reveal .rev.is-in > *:nth-child(3){animation-delay:.1s}
.js-reveal .rev.is-in > *:nth-child(4){animation-delay:.15s}
.js-reveal .rev.is-in > *:nth-child(5){animation-delay:.2s}
.js-reveal .rev.is-in > *:nth-child(6){animation-delay:.25s}
.js-reveal .rev.is-in > *:nth-child(7){animation-delay:.3s}
.js-reveal .rev.is-in > *:nth-child(n+8){animation-delay:.35s}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .rev, .rev.is-in { opacity: 1; transform: none; transition: none; }
  .js-reveal .rev.is-in > * { animation: none; }
  .ol-art path { transition: none; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .btn:hover, .btn:active { transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
