/* 3DFastCraft — promo site.
   The aesthetic is a machinist's drawing sheet: graphite ground, a 10 mm grid (the same
   squares the app puts on its build plate), monospaced dimension labels, and one hot
   accent the colour of a safety marking. Nothing here is decoration for its own sake -
   the dimension lines and figure numbers are how the app itself talks. */

:root {
  --ink:        #0c0e11;
  --ink-2:      #12151a;
  --ink-3:      #171b21;
  --line:       #232830;
  --line-2:     #2e343d;
  --text:       #d7dce4;
  --text-dim:   #8c96a4;
  --text-faint: #616b78;
  --hot:        #ff6b2c;
  --hot-dim:    #c14e1e;
  --cool:       #4d9bff;

  --grid: 10px;

  --display: "Chakra Petch", "Bahnschrift", "DIN Alternate", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", ui-monospace, monospace;

  --page: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16.5px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The plate. 10 mm squares, exactly as the app draws them, fading out downward. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 100% var(--grid),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 0 / var(--grid) 100%;
  opacity: .55;
  mask-image: radial-gradient(120% 80% at 70% -10%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% -10%, #000 0%, transparent 72%);
}

/* A warm bloom behind the hero, as if a lamp were over the bench. */
body::after {
  content: "";
  position: fixed;
  inset: -20% 0 auto -10%;
  height: 90vh;
  z-index: -3;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(255,107,44,.13), transparent 70%),
    radial-gradient(50% 50% at 12% 0%, rgba(77,155,255,.10), transparent 70%);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

code, .mono { font-family: var(--mono); font-size: .92em; }

/* ── the bar ─────────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 13px max(24px, calc(50vw - var(--page) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(12, 14, 17, .82);
  backdrop-filter: blur(10px);
}

.mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 17px/1 var(--display);
  letter-spacing: .02em;
  text-decoration: none;
}
.mark svg { fill: none; stroke: var(--hot); stroke-width: 1.5; }

.bar-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14.5px;
  color: var(--text-dim);
}
.bar-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.bar-nav a:hover { color: var(--text); border-bottom-color: var(--hot); }

@media (max-width: 860px) { .bar-nav { display: none; } .bar { gap: 14px; } .btn-sm { margin-left: auto; } }

/* ── buttons ─────────────────────────────────────────────────────────── */

.btn {
  --pad: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad);
  font: 600 15px/1 var(--display);
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--ink);
  background: var(--hot);
  border: 1px solid var(--hot);
  position: relative;
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s, background .16s;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--hot-dim);
  background: #ff7d45;
}
.btn:active { transform: none; box-shadow: 0 0 0 var(--hot-dim); }

.btn-sm { --pad: 8px 14px; font-size: 13.5px; }
.btn-lg { --pad: 15px 26px; font-size: 17px; }

/* ── hero ────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: 78px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hot);
}

h1 {
  margin: 0;
  font: 700 clamp(46px, 6.4vw, 82px)/0.98 var(--display);
  letter-spacing: -.015em;
}
h1 em {
  font-style: normal;
  color: var(--hot);
  position: relative;
}
/* the caliper ticks either side of the emphasised word */
h1 em::before, h1 em::after {
  content: "";
  position: absolute;
  top: 14%;
  bottom: 14%;
  width: 2px;
  background: var(--hot);
  opacity: .5;
}
h1 em::before { left: -.36em; }
h1 em::after  { right: -.36em; }

.lede {
  margin: 26px 0 0;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 17px;
}
.lede code {
  color: var(--text);
  background: var(--ink-3);
  border: 1px solid var(--line);
  padding: 1px 5px;
}

.cta { margin: 34px 0 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-note { font: 400 13px/1.4 var(--mono); color: var(--text-faint); }

.memorial {
  margin: 40px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--line-2);
  font-size: 14px;
  font-style: italic;
  color: var(--text-faint);
}

/* The screenshot bleeds off the right edge. Boxed inside the column it was 630 px wide and
   the app's own ribbon was unreadable, which is a poor advertisement for a desktop tool. */
.hero-shot { margin: 0 calc(-1 * max(24px, calc(50vw - var(--page) / 2))) 0 0; position: relative; }
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  box-shadow: 0 30px 70px -30px #000, 0 0 0 6px rgba(255,255,255,.015);
}

/* the dimension bracket under the screenshot */
.dim { margin-top: 14px; padding-right: max(24px, calc(50vw - var(--page) / 2)); display: flex; align-items: center; gap: 12px; }
.dim-line {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.dim-line::before, .dim-line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--line-2);
}
.dim-line::before { left: 0; }
.dim-line::after  { right: 0; }
.dim-label {
  font: 400 12px/1 var(--mono);
  color: var(--text-faint);
  white-space: nowrap;
}

@media (max-width: 940px) {
  /* minmax(0, 1fr) rather than 1fr: a bare 1fr track cannot shrink below its content's
     min-content width, and "millimetres." at 46px is wider than a phone. The column grew
     past the padding and the whole hero ran off the right edge. */
  .hero { grid-template-columns: minmax(0, 1fr); gap: 38px; padding-top: 48px; }
  .hero-shot { margin-right: 0; }
  .dim { padding-right: 0; }
  .memorial { margin-top: 28px; }
}

@media (max-width: 560px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: clamp(34px, 10.5vw, 52px); }
  .band { padding: 60px 20px; }
  .strip dl { padding: 0 20px; }
  .foot-in { padding-left: 20px; padding-right: 20px; }
  .get-main, .get-side { padding: 26px 22px 28px; }
  .card { padding: 26px 22px 28px; }
}

/* ── spec strip ──────────────────────────────────────────────────────── */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 21, 26, .6);
}
.strip dl {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.strip div {
  padding: 20px 0;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.strip div:first-child { border-left: 0; padding-left: 0; }
.strip dt {
  font: 500 11px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.strip dd {
  margin: 8px 0 0;
  font: 600 16px/1.2 var(--display);
  color: var(--text);
}
@media (max-width: 780px) {
  .strip dl { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .strip div { border-left: 0; padding-left: 0; }
}

/* ── bands and rules ─────────────────────────────────────────────────── */

.band {
  max-width: var(--page);
  margin: 0 auto;
  padding: 84px 24px;
}
.band-plate { position: relative; }

.rule {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 34px;
  font: 700 clamp(26px, 3.2vw, 38px)/1 var(--display);
  letter-spacing: -.01em;
}
.rule span { flex: none; }
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
  transform: translateY(-6px);
}
.rule i {
  flex: none;
  font: 400 12px/1 var(--mono);
  font-style: normal;
  letter-spacing: .12em;
  color: var(--hot);
  transform: translateY(-6px);
}

.band-lede {
  max-width: 62ch;
  margin: -14px 0 34px;
  color: var(--text-dim);
}
.band-lede b { color: var(--text); font-weight: 600; }

/* ── feature grid ────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--ink-2);
  transition: background .2s;
}
.card.wide { grid-column: span 2; }
.card.alt { background: var(--ink-3); }
.card:hover { background: #171c23; }

/* registration ticks in the corner, drawn only on hover */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: solid var(--hot);
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.card::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; transform: translate(4px, 4px); }
.card::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; transform: translate(-4px, -4px); }
.card:hover::before, .card:hover::after { opacity: 1; transform: none; }

.card h3 {
  margin: 0 0 12px;
  font: 600 19px/1.25 var(--display);
  letter-spacing: .005em;
}
.card p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.card b { color: var(--text); font-weight: 600; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
}
.tags li {
  font: 400 12px/1 var(--mono);
  color: var(--text-faint);
  border: 1px solid var(--line-2);
  padding: 5px 8px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
}

/* ── plates (the gallery) ────────────────────────────────────────────── */

.plates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.plate { margin: 0; grid-column: span 2; }
.plate.span2 { grid-column: span 4; }

.plate img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  transition: border-color .2s, transform .3s cubic-bezier(.2,.8,.3,1);
}
.plate:hover img { border-color: var(--hot-dim); transform: translateY(-3px); }

.plate figcaption {
  margin-top: 11px;
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.plate figcaption i {
  font: 500 11.5px/1 var(--mono);
  font-style: normal;
  letter-spacing: .1em;
  color: var(--hot);
  flex: none;
}
.plate figcaption em { font-style: italic; color: var(--text); }

@media (max-width: 900px) {
  .plates { grid-template-columns: 1fr; }
  .plate, .plate.span2 { grid-column: span 1; }
}

/* ── download ────────────────────────────────────────────────────────── */

.band-get { padding-bottom: 96px; }

.get {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.get-main, .get-side { padding: 34px 32px 36px; background: var(--ink-2); }
.get-side { background: var(--ink-3); }

.get-sub { margin: 20px 0 0; color: var(--text-dim); max-width: 42ch; }

.warn {
  margin: 22px 0 0;
  padding: 13px 15px;
  border-left: 2px solid var(--hot);
  background: rgba(255, 107, 44, .06);
  font-size: 14.5px;
  color: var(--text-dim);
}
.warn b { color: var(--text); }
.warn em { font-style: normal; font-family: var(--mono); font-size: .93em; color: var(--text); }

.hash {
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hash span {
  font: 500 11px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hash code {
  font-size: 11.5px;
  color: var(--text-dim);
  word-break: break-all;
  line-height: 1.5;
}

.get-side h3 {
  margin: 0 0 12px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.get-side h3 + ul + h3 { margin-top: 26px; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  font-size: 15px;
  color: var(--text-dim);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  border: solid var(--hot);
  border-width: 0 0 1px 1px;
  transform: rotate(-45deg) translateY(-1px);
}

.more { margin: 24px 0 0; font-size: 14.5px; }
.more a { color: var(--hot); text-decoration: none; border-bottom: 1px solid transparent; }
.more a:hover { border-bottom-color: var(--hot); }

@media (max-width: 820px) { .get { grid-template-columns: 1fr; } }

/* ── footer ──────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  background: rgba(18, 21, 26, .5);
}
.foot-in {
  max-width: var(--page);
  margin: 0 auto;
  padding: 40px 24px 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
}
.foot-mark {
  margin: 0;
  font: 700 16px/1 var(--display);
  letter-spacing: .02em;
}
.foot-note { margin: 0; font-size: 13.5px; color: var(--text-faint); line-height: 1.7; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; text-align: right; }
.foot-nav a { color: var(--text-dim); text-decoration: none; }
.foot-nav a:hover { color: var(--hot); }

@media (max-width: 780px) {
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
  .foot-nav { text-align: left; flex-direction: row; gap: 18px; flex-wrap: wrap; }
}

/* ── motion ──────────────────────────────────────────────────────────── */

.reveal { animation: rise .7s cubic-bezier(.2,.8,.3,1) both; }

/* The delays live here rather than in style attributes on the elements: a style attribute is
   an inline style, and the page's own Content-Security-Policy blocks those. It did - six
   console errors a load, and every line of the hero arriving at once. */
.r1 { animation-delay: 0ms; }
.r2 { animation-delay: 60ms; }
.r3 { animation-delay: 140ms; }
.r4 { animation-delay: 180ms; }
.r5 { animation-delay: 220ms; }
.r6 { animation-delay: 300ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* There is no scroll-reveal. There was, and it hid every section until a script removed the
   class again - so a blocked script, or a crawler, or a screenshot taken before the transition
   finished, all saw an empty page. A promo page that is invisible without JavaScript is a bad
   trade for a fade. The hero animation above is CSS-only and hurts nothing if it never runs. */

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .btn:hover, .plate:hover img { transform: none; }
}

::selection { background: var(--hot); color: var(--ink); }

:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

/* ── the six tabs ────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.tab {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 34px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.tab-num {
  margin: 0 0 8px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .12em;
  color: var(--hot);
}

.tab-text h3 {
  margin: 0 0 12px;
  font: 700 24px/1.1 var(--display);
  letter-spacing: -.005em;
}
.tab-text p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.tab-text b { color: var(--text); font-weight: 600; }
.tab-text em { font-style: italic; color: var(--text); }

/* What is actually on the plate in the picture, set apart from the description of the tab. */
.tab-eg {
  margin-top: 14px !important;
  padding-left: 13px;
  border-left: 2px solid var(--line-2);
  font-size: 14px !important;
  color: var(--text-faint) !important;
}

.tab-shot { margin: 0; }
.tab-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  transition: border-color .2s;
}
.tab:hover .tab-shot img { border-color: var(--hot-dim); }

@media (max-width: 900px) {
  .tab { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0; }
}

/* ── consent ─────────────────────────────────────────────────────────── */

/* The hidden attribute hides through a user-agent rule, [hidden] { display: none }, and ANY
   author display declaration outranks it - so `display: flex` below quietly made banner.hidden
   do nothing at all. The attribute was set, the element stayed on screen, and a test that read
   the .hidden property saw exactly what it wanted to see. This rule is what actually hides it. */
.consent[hidden] { display: none; }

.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 18px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--hot);
  box-shadow: 0 20px 50px -20px #000;
  animation: rise .5s cubic-bezier(.2,.8,.3,1) both;
  animation-delay: .5s;
}

.consent-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}
.consent-text a { color: var(--hot); text-decoration: none; border-bottom: 1px solid transparent; }
.consent-text a:hover { border-bottom-color: var(--hot); }

.consent-acts { display: flex; gap: 10px; }

/* Both buttons the same size and weight. Refusing must not be the harder thing to do. */
.consent-btn {
  flex: 1;
  padding: 10px 14px;
  font: 600 14px/1 var(--display);
  letter-spacing: .03em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: border-color .16s, background .16s, color .16s;
}
.consent-btn:hover { border-color: var(--text-faint); background: var(--ink-3); }

.consent-yes { color: var(--ink); background: var(--hot); border-color: var(--hot); }
.consent-yes:hover { background: #ff7d45; border-color: #ff7d45; color: var(--ink); }

@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
}

/* ── prose pages ─────────────────────────────────────────────────────── */

.prose { max-width: 760px; }

.prose-h1 {
  margin: 0 0 20px;
  font: 700 clamp(34px, 5vw, 52px)/1 var(--display);
  letter-spacing: -.015em;
}

.prose-lede {
  margin: 0 0 36px;
  font-size: 17.5px;
  color: var(--text-dim);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.prose h2 {
  margin: 38px 0 12px;
  font: 700 24px/1.2 var(--display);
  letter-spacing: -.005em;
}
.prose h3 {
  margin: 26px 0 8px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hot);
}
.prose p { margin: 0 0 14px; color: var(--text-dim); }
.prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--hot); text-decoration: none; border-bottom: 1px solid transparent; }
.prose a:hover { border-bottom-color: var(--hot); }

.prose-note {
  margin-top: 40px !important;
  padding: 14px 16px;
  border-left: 2px solid var(--line-2);
  font-size: 14px;
  color: var(--text-faint) !important;
}

/* A way out that is not an answer: no decision means no analytics, so closing the panel is
   only about getting it off the screen. It must never read as agreement.

   Only padding here. Re-declaring position on .consent overrode the fixed positioning set
   above it, and the whole panel dropped into the page flow. A fixed element is already a
   containing block for an absolutely positioned child. */
.consent { padding-right: 34px; }

.consent-shut {
  position: absolute;
  align-self: flex-end;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  padding: 0;
  font: 400 18px/1 var(--body);
  color: var(--text-faint);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .16s;
}
.consent-shut:hover { color: var(--text); }
