/* 239Tech — shared styles.
   Monochrome, taken straight from the logo: white on black, nothing else.
   The logo's forward lean (~15°) is the one motif — it shows up as the
   sheared lead on each rule, the cut corner on panels, and the slanted
   buttons and step badges. */

:root {
  --bg: #0a0a0b;
  --panel: #131315;
  --panel-hi: #1a1a1d;
  --line: #26262a;
  --text: #f3f3f1;
  --muted: #9b9ba2;
  --label: #86868e;

  --display: "Saira", "Eurostile", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --lean: 0.268;          /* tan(15°) — the logo's slant */
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; text-decoration-color: var(--muted); }
a:hover { text-decoration-color: var(--text); }

:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--text); color: var(--bg); padding: .5rem 1rem; z-index: 10; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  margin: 0;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--label);
}

/* ---------- Header ---------- */

.site-header { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand img { height: 1.35rem; width: auto; }

.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a { color: var(--muted); text-decoration: none; padding: .25rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--text); }

/* ---------- The speed rule ----------
   A short sheared white lead, then a hairline that runs out to the edge
   of the viewport, as if the logo were still moving. */

.rule {
  position: relative;
  height: 6px;
  margin-right: calc(50% - 50vw);   /* bleed to the right edge */
  display: flex; align-items: center;
}
.rule::before {
  content: "";
  flex: none;
  width: 3.25rem; height: 6px;
  background: var(--text);
  transform: skewX(-15deg);
  transform-origin: bottom left;
}
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: .6rem;
  background: linear-gradient(90deg, var(--line), var(--line) 70%, transparent);
}

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

.hero { padding-top: clamp(4rem, 13vw, 10rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }

.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { width: min(100%, 52rem); height: auto; }

.hero .rule { margin-top: clamp(2rem, 5vw, 3.5rem); }

.hero-copy {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}
.hero-copy h2 {
  margin: 0;
  font-family: var(--display); font-stretch: 125%; font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.01em;
}
.hero-copy p { margin: .3rem 0 0; color: var(--muted); max-width: 36ch; }

/* Page-load: the logo eases in along its own slant, the rule draws out after it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-logo img { animation: arrive .9s cubic-bezier(.2, .7, .1, 1) both; }
  .hero .rule::before { animation: arrive .7s .25s cubic-bezier(.2, .7, .1, 1) both; }
  .hero .rule::after { transform-origin: left; animation: draw 1.4s .35s cubic-bezier(.2, .7, .1, 1) both; }
  .hero-copy { animation: fade .8s .55s ease both; }
}
@keyframes arrive { from { opacity: 0; translate: -1.5rem 0; } to { opacity: 1; translate: 0 0; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Product cards ---------- */

.products { padding-bottom: clamp(4rem, 9vw, 7rem); }
.products > .label { margin-bottom: 1.25rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

/* The cut corner: the top-right edge leans at the logo's angle. */
.cut { --cut-h: 4.5rem; clip-path: polygon(0 0, calc(100% - var(--cut-h) * var(--lean)) 0, 100% var(--cut-h), 100% 100%, 0 100%); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 19rem;
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--panel);
  color: var(--text); text-decoration: none;
  transition: background-color .25s ease;
}
.card::before {       /* top edge light that sweeps in on hover */
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2, .7, .1, 1);
}
.card:hover { background: var(--panel-hi); }
.card:hover::before, .card:focus-visible::before { transform: scaleX(1); }
.card:focus-visible { outline-offset: 3px; }

.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-right: 1.25rem; }
.card h3 {
  margin: auto 0 .6rem; padding-top: 2.5rem;
  font-family: var(--display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.05; letter-spacing: -.01em;
}
.card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.card-go {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
}
.card-go svg { width: 1.1rem; transition: translate .3s cubic-bezier(.2, .7, .1, 1); }
.card:hover .card-go svg { translate: 4px 0; }

.status { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.status::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; vertical-align: .05em;
  background: var(--text); transform: skewX(-15deg);
}
.status.pending { color: var(--muted); }
.status.pending::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* ---------- Product pages ---------- */

.product-hero { padding-top: clamp(3rem, 9vw, 6.5rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
.product-hero h1 {
  margin: .9rem 0 0;
  font-family: var(--display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(2.5rem, 8.5vw, 6.25rem); line-height: .95; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.product-hero .lede { margin: 1.4rem 0 0; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.45; color: var(--muted); max-width: 36ch; }
.product-hero .rule { margin-top: clamp(2.25rem, 5vw, 3.5rem); }

@media (prefers-reduced-motion: no-preference) {
  .product-hero h1 { animation: arrive .8s cubic-bezier(.2, .7, .1, 1) both; }
  .product-hero .rule::after { transform-origin: left; animation: draw 1.2s .2s cubic-bezier(.2, .7, .1, 1) both; }
}

.product-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.product-body h2 {
  margin: 3rem 0 1rem;
  font-family: var(--display); font-stretch: 125%; font-weight: 600;
  font-size: 1.3rem; line-height: 1.2; letter-spacing: 0;
}
.product-body h2:first-child { margin-top: 0; }
.product-body p { margin: 0 0 1rem; max-width: 62ch; color: #d4d4d1; }
.product-body strong { color: var(--text); font-weight: 600; }

.steps { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: step; max-width: 62ch; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem .9rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid; place-items: center;
  width: 2.1rem; height: 1.6rem; margin-top: .1rem;
  background: var(--text); color: var(--bg);
  clip-path: polygon(calc(1.6rem * var(--lean)) 0, 100% 0, calc(100% - 1.6rem * var(--lean)) 100%, 0 100%);
  font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: .9rem; line-height: 1;
}
.steps span { color: var(--muted); }

.points { margin: 0 0 1rem; padding: 0; list-style: none; max-width: 62ch; }
.points li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; color: #d4d4d1; }
.points li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: .7rem; height: 2px; background: var(--text); transform: skewX(-15deg); }

/* Fact panel. */
.facts {
  --cut-h: 3.5rem;
  align-self: start;
  position: sticky; top: 1.5rem;
  background: var(--panel);
  padding: 1.6rem 1.6rem 1.7rem;
}
.facts dl { margin: 0; }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin-top: 1.1rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: .2rem 0 0; font-size: .98rem; line-height: 1.45; }

.button {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  margin-top: 1.6rem; padding: .95rem 1.4rem .9rem 1.3rem;
  background: var(--text); color: var(--bg);
  clip-path: polygon(calc(3rem * var(--lean)) 0, 100% 0, calc(100% - 3rem * var(--lean)) 100%, 0 100%);
  font-family: var(--display); font-stretch: 112.5%; font-weight: 700; font-size: .98rem; line-height: 1.1;
  text-decoration: none;
  transition: background-color .2s ease;
}
.button:hover { background: #ffffff; }
.button svg { width: 1.1rem; flex: none; transition: translate .3s cubic-bezier(.2, .7, .1, 1); }
.button:hover svg { translate: 3px 0; }
.facts .also { list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: .92rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Other products, at the foot of each product page. */
.next { padding-bottom: clamp(3rem, 7vw, 5rem); }
.next .rule { margin-bottom: 1.5rem; }
.next-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 2.5rem; }
.next-links a {
  font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  text-decoration: none; color: var(--muted); transition: color .2s ease;
}
.next-links a:hover { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-top: 1.75rem; padding-bottom: 2.5rem; color: var(--label); font-size: .85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; }
.site-footer p { margin: 0; }
.site-footer img { height: .9rem; width: auto; opacity: .55; display: block; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { padding-top: 1.75rem; }
}

@media (max-width: 760px) {
  .hero-copy { grid-template-columns: 1fr; }
  .product-body { grid-template-columns: 1fr; }
  .facts { position: static; }
  .site-nav { gap: 1rem; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
