/* Workbench Innovations — production homepage
 * Static, responsive, no JS required.
 * Single accent + white on deep indigo. Accent is a CSS variable.
 */

:root {
  --indigo: #0B1030;
  --indigo-deep: #060A20;
  --ink: #FFFFFF;
  --ink-dim: rgba(255,255,255,0.55);
  --accent: #E6FF3A;
  --accent-rgb: 230,255,58;
  --accent-soft: rgba(var(--accent-rgb), 0.55);
  --line-dim: rgba(var(--accent-rgb), 0.18);
  --grid: rgba(var(--accent-rgb), 0.05);
  --grid-strong: rgba(var(--accent-rgb), 0.09);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--indigo);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

/* ─── Sheet shell ─────────────────────────────────────────── */
.sheet {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

/* Graph paper */
.sheet::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  pointer-events: none;
  z-index: 0;
}

/* Soft accent flares */
.sheet::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 360px at calc(100% + 60px) -120px,
      rgba(var(--accent-rgb), 0.12) 0%, transparent 60%),
    radial-gradient(circle 360px at -120px calc(100% + 80px),
      rgba(var(--accent-rgb), 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Drafting border */
.border-outer,
.border-inner {
  position: absolute;
  border: 1px solid var(--line-dim);
  pointer-events: none;
  z-index: 1;
}
.border-outer { inset: 24px; }
.border-inner { inset: 30px; }

/* Header (in-flow) */
.sheet-header {
  position: relative;
  z-index: 2;
  padding: 44px 56px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.sheet-header .left { display: flex; align-items: center; gap: 10px; }
.sheet-header .swatch { width: 9px; height: 9px; background: var(--accent); display: block; }
.sheet-header .brand { color: var(--ink); margin-left: 6px; }
.sheet-header .right { display: flex; gap: 28px; }
.sheet-header .right .accent { color: var(--accent); }
.brand-short { display: none; }

/* ─── Body — two-column on desktop ─────────────────────────── */
.body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  padding: 56px 56px;
  max-width: none;
}

.col-left { display: flex; flex-direction: column; gap: 36px; min-width: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow .rule {
  width: 40px; height: 1px;
  background: var(--accent); opacity: 0.6;
}

/* Wordmark */
.wordmark { display: flex; flex-direction: column; gap: 10px; }
.pixel-row {
  display: flex;
  align-items: flex-start;
  gap: var(--px);
  flex-wrap: wrap;
}
.glyph {
  display: grid;
  grid-template-columns: repeat(5, var(--px));
  grid-template-rows: repeat(7, var(--px));
  gap: 1px;
  flex-shrink: 0;
}
.px { width: var(--px); height: var(--px); background: transparent; }
.px.on { background: var(--glyph-color, var(--accent)); }

.tagline {
  font-family: "Space Grotesk", -apple-system, system-ui, sans-serif;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}
.tagline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* Spec list */
.specs {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-dim);
}
.spec-row {
  display: grid;
  grid-template-columns: 40px 140px minmax(0, 1fr);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-dim);
}
.spec-row .n { color: var(--accent); }
.spec-row .v { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Right column — pixel block */
.col-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
.col-right .pb-desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.col-right .pb-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Dim lines */
.dim-line {
  position: relative;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  display: flex; align-items: center; justify-content: center;
}
.dim-line.h { width: var(--len); height: 16px; }
.dim-line.v { width: 16px; height: var(--len); }
.dim-line .label {
  background: var(--indigo);
  position: relative;
  padding: 0 6px;
  z-index: 1;
}
.dim-line.v .label {
  padding: 2px 4px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.dim-line.h::before, .dim-line.h::after {
  content: ""; position: absolute; top: 50%;
  width: 1px; height: 9px;
  background: var(--accent);
  transform: translateY(-50%);
}
.dim-line.h::before { left: 0; }
.dim-line.h::after  { right: 0; }
.dim-line.v::before, .dim-line.v::after {
  content: ""; position: absolute; left: 50%;
  width: 9px; height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
}
.dim-line.v::before { top: 0; }
.dim-line.v::after  { bottom: 0; }
.dim-line .axis {
  position: absolute;
  background: var(--accent);
}
.dim-line.h .axis { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.dim-line.v .axis { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }

/* Pixel block */
.pixel-block-wrap { display: flex; align-items: center; gap: 14px; }
.pixel-block-frame { position: relative; padding: 2px; }
.pixel-block-frame .corner {
  position: absolute; width: 16px; height: 16px;
  border: 0 solid var(--accent);
}
.pixel-block-frame .corner.tl { top: -10px; left: -10px;  border-top-width: 1px; border-left-width: 1px; }
.pixel-block-frame .corner.tr { top: -10px; right: -10px; border-top-width: 1px; border-right-width: 1px; }
.pixel-block-frame .corner.bl { bottom: -10px; left: -10px;  border-bottom-width: 1px; border-left-width: 1px; }
.pixel-block-frame .corner.br { bottom: -10px; right: -10px; border-bottom-width: 1px; border-right-width: 1px; }

.pixel-block { display: grid; gap: 1px; }
.pixel-block .pb { background: transparent; }

.fig-caption {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.fig-caption .label { color: var(--accent); }
.fig-caption .sub { color: var(--ink-dim); }

/* ─── Footer row — title block + notes ───────────────────── */
.sheet-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding: 0 56px 56px;
}

/* Notes (left) */
.notes {
  max-width: 360px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.notes .heading { color: var(--accent); }
.notes .notes-body { color: var(--ink); line-height: 1.6; }
.notes .notes-body .n { color: var(--accent); }

/* Title block (right) */
.titleblock {
  display: grid;
  grid-template-columns: 180px 180px 120px;
  border: 1px solid var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--indigo-deep);
}
.tb-cell {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
}
.tb-cell:nth-child(3n)   { border-right: none; }
.tb-cell:nth-child(n+7)  { border-bottom: none; }
.tb-cell.accent { background: rgba(var(--accent-rgb), 0.04); }
.tb-cell .k { color: var(--ink-dim); font-size: 9px; }
.tb-cell .v { color: var(--ink); font-size: 12px; }
.tb-cell.accent .v { color: var(--accent); }

/* ─── Tablet / smaller desktop (≤ 1100px) ─────────────────── */
@media (max-width: 1100px) {
  .body { grid-template-columns: 1fr; gap: 40px; padding: 40px 48px; }
  .col-right { padding-top: 8px; }
}

/* ─── Mobile (≤ 720px) ────────────────────────────────────── */
@media (max-width: 720px) {
  .border-outer { inset: 12px; }
  .border-inner { inset: 16px; }

  .sheet-header {
    padding: 26px 24px 0;
    font-size: 9px;
    letter-spacing: 0.18em;
    gap: 8px;
  }
  .sheet-header .left { gap: 6px; }
  .brand-full { display: none; }
  .brand-short { display: inline; color: var(--ink); }
  .sheet-header .right { gap: 12px; }
  .sheet-header .right .file { display: none; }

  .body {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 24px 24px;
  }
  .col-left { gap: 22px; }

  .eyebrow { font-size: 9px; letter-spacing: 0.28em; gap: 8px; }
  .eyebrow .rule { width: 18px; }

  .wordmark { gap: 7px; }

  .tagline { font-size: 22px; }

  .specs { gap: 6px; }
  .spec-row {
    grid-template-columns: 24px 90px minmax(0, 1fr);
    font-size: 9px;
    letter-spacing: 0.14em;
    padding-bottom: 5px;
  }

  .col-right { gap: 8px; padding: 0; }
  .col-right .pb-desktop { display: none; }
  .col-right .pb-mobile  { display: flex; }

  .dim-line { font-size: 9px; }
  .pixel-block-wrap { gap: 8px; }
  .pixel-block-frame .corner { width: 12px; height: 12px; }
  .pixel-block-frame .corner.tl,
  .pixel-block-frame .corner.tr { top: -8px; }
  .pixel-block-frame .corner.bl,
  .pixel-block-frame .corner.br { bottom: -8px; }
  .pixel-block-frame .corner.tl,
  .pixel-block-frame .corner.bl { left: -8px; }
  .pixel-block-frame .corner.tr,
  .pixel-block-frame .corner.br { right: -8px; }

  .fig-caption { font-size: 8.5px; letter-spacing: 0.28em; gap: 6px; }

  .sheet-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 24px 32px;
  }
  .titleblock {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 9px;
  }
  .tb-cell { padding: 7px 8px; }
  .tb-cell .k { font-size: 7.5px; }
  .tb-cell .v { font-size: 10px; }

  .notes {
    max-width: none;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
}

/* Print */
@media print {
  html, body { background: white; color: black; }
  .sheet::before, .sheet::after { display: none; }
}
