/* PerthTek: site styles. Dark, quiet, typographic. The intro's own pieces are at the end ("Build mode"). */

:root {
  color-scheme: dark;

  --bg: #000;
  --bg-raised: #0b0b0c;
  --surface: #161616;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --mark: #e2e2e2;
  --accent: #2997ff;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1080px;
  --nav-h: 52px;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: #000;
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: auto;
  fill: var(--mark);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
}

.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* ---------- Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 72px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(56% 42% at 50% 38%, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
  transition: opacity 1.4s var(--ease);
}

.hero-mark {
  width: clamp(104px, 13vw, 152px);
  height: auto;
  margin-bottom: clamp(28px, 4vw, 40px);
  overflow: visible;
  fill: var(--mark);
}

.hero-mark path {
  transform-box: fill-box;
  transform-origin: center;
}

.hero-title {
  font-size: clamp(44px, 8.2vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.03;
  transition: letter-spacing 0.6s var(--ease), color 0.6s var(--ease);
}

.hero-lede {
  max-width: 620px;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(18px, 2.1vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 980px;
  background: var(--text);
  color: #000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease),
    border-radius 0.5s var(--ease), transform 0.2s var(--ease);
}

.button:hover {
  background: #fff;
}

.button:active {
  transform: scale(0.98);
}

.text-link {
  color: var(--accent);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Overview */

.overview {
  padding: clamp(96px, 14vw, 160px) 0;
  scroll-margin-top: var(--nav-h);
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.07;
  text-align: center;
}

.section-lede {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.45;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 7vw, 80px);
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.card-eyebrow {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 {
  margin-top: auto;
  padding-top: 40px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.card-text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.45;
}

/* ---------- Facts */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.fact-value {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fact-label {
  max-width: 26ch;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.45;
}

/* ---------- Placeholder pages */

.page-hero {
  padding: calc(var(--nav-h) + clamp(88px, 13vw, 152px)) var(--gutter) clamp(48px, 7vw, 72px);
  text-align: center;
}

.page-eyebrow {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin-top: 14px;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.page-lede {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--text-2);
  font-size: clamp(18px, 2.1vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

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

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a,
.replay {
  transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.replay:hover {
  color: var(--text);
}

.replay {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.can-replay .replay {
  display: inline;
}

/* ---------- Pages: on desktop each section fills the window, so one scroll moves one whole page */

@media (min-width: 821px) {
  .overview {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 32px) 0 32px;
  }
}

/* Paging is on: site.js moves between pages, so the window itself does not scroll. */
.is-paged {
  overflow: hidden;
}

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

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

  .card {
    min-height: 0;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Build mode: the self-building intro */

.is-building,
.is-building body {
  overflow: hidden;
}

.is-building [data-build],
.is-rebuilding .hero [data-build],
.has-assembly [data-assemble]:not(.is-assembled) [data-piece] {
  opacity: 0;
}

/* What the styling pass changes: each rule below is the "before", lifted by a class the agents add. */

:is(.is-building, .is-rebuilding) .hero::before {
  opacity: 0;
}

:is(.is-building, .is-rebuilding) .hero.is-lit::before {
  opacity: 1;
}

:is(.is-building, .is-rebuilding) .hero-title:not(.is-set) {
  color: var(--text-2);
  letter-spacing: 0.01em;
}

:is(.is-building, .is-rebuilding) .hero .button:not(.is-styled) {
  border-color: var(--line-strong);
  border-style: dashed;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
}

/* A word or a line of a text element, placed on its own. */
.part {
  display: inline-block;
  white-space: nowrap;
}

/* The mark drawing itself: its outline, drawn along the shape (pathLength is 1, so the dash is the whole line). */
.hero-mark .mark-lines path {
  fill: none;
  stroke: var(--mark);
  stroke-width: 2.6; /* in the mark's own 358-wide units: about a pixel on screen */
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.build-guides {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.build-guides div {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  border-right: 1px solid rgba(41, 151, 255, 0.14);
  border-left: 1px solid rgba(41, 151, 255, 0.14);
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(100% / 12 - 1px),
    rgba(41, 151, 255, 0.07) calc(100% / 12 - 1px) calc(100% / 12)
  );
}

.build-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 40; /* under the header once the page scrolls */
  width: 100%;
  height: 0;
  pointer-events: none;
}

.is-building .build-layer {
  z-index: 60; /* over the header while the agents build it */
}

.agent {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  will-change: transform;
}

.agent svg {
  width: 15px;
  height: 18px;
  overflow: visible;
  transform-origin: 2px 2px;
}

.agent path {
  fill: var(--c);
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 1;
  stroke-linejoin: round;
}

/* A line of code, typed where the work happens. */
.src {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  color: #8e8e93;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  opacity: 0.85;
  white-space: pre;
  transform: translate(-50%, -50%);
}

.src.is-clipped {
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
  mask-image: linear-gradient(90deg, #000 82%, transparent);
}

.src-caret {
  display: inline-block;
  width: 4px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--text-2);
  vertical-align: -0.18em;
}

/* Muted syntax colours: enough to read as code, not enough to shout. */
.t-tag {
  color: #c98aa6;
}

.t-attr,
.t-prop {
  color: #7fa8a0;
}

.t-str {
  color: #c9968c;
}

.t-num {
  color: #b5ab82;
}

.sel {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.measure {
  position: absolute;
  width: 1px;
  background: #2997ff;
}

.measure::before,
.measure::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 9px;
  height: 1px;
  background: #2997ff;
}

.measure::before {
  top: 0;
}

.measure::after {
  bottom: 0;
}

.measure b {
  position: absolute;
  top: 50%;
  left: 9px;
  padding: 1px 6px 2px;
  border-radius: 4px;
  background: #2997ff;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  transform: translateY(-50%);
}

/* File, agent count and progress along the bottom edge. */
.build-status {
  position: fixed;
  inset: auto 0 0;
  z-index: 70;
  padding-bottom: 18px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: pre;
  pointer-events: none;
}

.build-status i {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.build-status b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--text);
  transition: width 0.3s var(--ease);
}

.build-skip {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 71;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.build-skip:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {
  .build-skip {
    top: calc(var(--nav-h) + 12px);
    right: 16px;
    bottom: auto;
  }

  .src {
    font-size: 9.5px;
  }
}


/* ---------- The whole site: one navigation, and the content pages */

.nav-links {
  align-items: center;
}

.nav-links .nav-book {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 980px;
  background: var(--text);
  color: #000;
  font-weight: 500;
}

.nav-links .nav-book:hover,
.nav-links .nav-book[aria-current="page"] {
  background: #fff;
  color: #000;
}

@media (max-width: 720px) {
  .nav-links .nav-wide {
    display: none; /* still in the footer */
  }
}

.section-title.is-small {
  font-size: clamp(26px, 3.6vw, 38px);
}

.page-body {
  padding-bottom: clamp(88px, 11vw, 136px);
}

.page-body.is-narrow {
  max-width: calc(860px + 2 * var(--gutter));
}

.page-body .page-section {
  margin-top: clamp(64px, 8vw, 104px);
}

.page-body > .cards:first-child {
  margin-top: 0;
}

.page-body .panel .actions {
  margin-top: 20px;
}

.page-section > .section-lede {
  margin-top: 12px;
}

.page-section > .steps,
.page-section > .addons {
  margin-top: clamp(28px, 4vw, 44px);
}

.addons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raised);
  color: var(--text-2);
  font-size: 15px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.addon:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.addon strong {
  color: var(--text);
  font-weight: 600;
}

.closing {
  margin-top: clamp(80px, 10vw, 128px);
  text-align: center;
}

/* The Software page: one statement, then small boxes of real screenshots that open larger. */
.page-title.is-statement {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
}

.shots[hidden] {
  display: none;
}

.shots[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.shots[data-count="2"] { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
.shots[data-count="1"] { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }

.shot {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

/* (Keyboard focus keeps the site's own outline.) */
.shot:hover,
.shot:focus-visible {
  border-color: var(--line-strong);
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.shot-name {
  padding: 12px 14px 14px;
  font-size: 14px;
  font-weight: 500;
}

.shot-view {
  max-width: min(1200px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}

.shot-view::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.shot-view img {
  display: block;
  max-width: 100%;
  height: auto;
}

.shot-view-name {
  padding: 14px 18px 16px;
  color: var(--text-2);
  font-size: 14px;
}

.shot-close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .shots,
  .shots[data-count="3"] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .shots,
  .shots[data-count="3"],
  .shots[data-count="2"] { grid-template-columns: 1fr; }
}

/* The Software page's showcase sections: PerthTek Shell, then PerthTek World. Each is a title, one sentence, its
   pictures, a few plain points; the Shell also has what was measured and the ten seconds played back. */
.page-jump {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  color: var(--text-2);
  font-size: 15px;
}

.page-jump a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-jump a:hover {
  color: var(--text);
  border-color: var(--text-2);
}

.product {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.product + .product {
  margin-top: clamp(96px, 12vw, 160px);
  padding-top: clamp(72px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.inline-link {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

.shots.is-three:not([data-count="1"]):not([data-count="2"]) {
  grid-template-columns: repeat(3, 1fr);
}

.shots.is-two,
.shots.is-two[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
  max-width: none;
}

.shots.is-two .shot img {
  aspect-ratio: 7 / 5;
}

.shots.is-strip,
.shots.is-strip[data-count="1"] {
  grid-template-columns: 1fr;
  max-width: none;
  margin-top: 36px;
}

.shots.is-strip .shot img {
  aspect-ratio: auto;
  object-fit: contain;
}

.points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
  margin-top: clamp(48px, 6vw, 72px);
}

.point {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}

.point h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.point p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
}

.measured {
  margin-top: clamp(56px, 7vw, 88px);
}

.measured-title {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.measured .facts-grid {
  margin-top: 20px;
}

.facts-grid.is-two {
  grid-template-columns: repeat(2, 1fr);
}

.measured .fact-value {
  font-size: clamp(44px, 6.4vw, 72px);
  letter-spacing: -0.04em;
}

.measured-note {
  max-width: 78ch;
  margin-top: 20px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.55;
}

.measured-note.is-centred {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.compare {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.compare[hidden] {
  display: none;
}

.compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.compare-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.compare-clock {
  flex: none;
  color: var(--text-2);
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.compare-track {
  height: 2px;
  margin-top: 16px;
  background: var(--line);
}

.compare-bar {
  height: 100%;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
}

.compare-sides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 32px;
}

.compare-sides[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.compare-name {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-value {
  margin-top: 10px;
  font-size: clamp(40px, 5.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.compare-label {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
}

.compare-frame {
  position: relative;
  margin-top: 22px;
}

.compare-chart {
  width: 100%;
  height: 170px;
  overflow: visible;
}

.compare-rule {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.compare-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.compare-top,
.compare-zero {
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.compare-top {
  top: 6px;
}

.compare-zero {
  bottom: 6px;
}

.compare-rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 22px 0 0;
}

.compare-sides[data-count="2"] .compare-rows {
  grid-template-columns: repeat(2, 1fr);
}

.compare-rows dt {
  color: var(--text-3);
  font-size: 13px;
}

.compare-rows dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.compare-note,
.compare-foot {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.55;
}

.compare-foot {
  max-width: 78ch;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .shots.is-three:not([data-count="1"]):not([data-count="2"]) { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: 1fr; }
  .compare-sides[data-count="2"] { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* A 1,200-pixel strip of table rows can't be read at phone width; the figures above it say the same. */
  .shots.is-strip { display: none; }
  .facts-grid.is-two { grid-template-columns: 1fr; gap: 28px; }
  .compare-rows,
  .compare-sides[data-count="2"] .compare-rows { grid-template-columns: repeat(2, 1fr); }
  .compare-head { flex-direction: column; gap: 6px; }
}

@media (max-width: 520px) {
  .shots.is-three:not([data-count="1"]):not([data-count="2"]),
  .shots.is-two,
  .shots.is-two[data-count="2"] { grid-template-columns: 1fr; }
}

/* Services: the one opening statement, and Limitless and Elite as a name and a price. */
.page-title.is-statement.is-long {
  max-width: 26ch;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.14;
}

/* ---------- The first page as a tour (23 Nov 2026): what we do first, the prices last */

.hero-title.is-long {
  max-width: 15ch;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.05;
}

.is-tour .section-title {
  font-size: clamp(28px, 4.2vw, 46px);
}

.section-lede.is-wide {
  max-width: 760px;
}

.is-tour .section-lede {
  margin-top: 16px;
  font-size: clamp(16px, 1.6vw, 19px);
}

.is-tour .shots {
  margin-top: clamp(24px, 3.2vw, 36px);
}

.is-tour .shots + .section-lede {
  margin-top: clamp(24px, 3.2vw, 36px);
}

.shots.is-bench,
.shots.is-bench[data-count="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.shots.is-bench .shot img {
  aspect-ratio: 7 / 5;
  object-position: top center;
}

.is-tour .shots.is-two,
.is-tour .shots.is-two[data-count="2"] {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.shot-name i {
  margin-left: 8px;
  color: var(--text-3);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tour-eyebrow {
  margin-bottom: 12px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 821px) {
  /* The last page shares the window with the footer (site.js measures it). */
  .overview.is-last {
    min-height: calc(100vh - var(--footer-h, 86px));
    min-height: calc(100svh - var(--footer-h, 86px));
  }
}

@media (max-width: 820px) {
  .is-tour {
    padding: 72px 0;
  }

  .shots.is-bench,
  .shots.is-bench[data-count="3"] {
    grid-template-columns: 1fr;
  }

  .shots.is-bench {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Skip intro: easy to see, through the whole tour. */
.build-skip {
  height: 44px;
  padding: 0 22px;
  border-color: transparent;
  background: var(--text);
  color: #000;
  font-size: 15px;
}

.build-skip:hover {
  background: #fff;
}

/* The menu's two long names have a short form for phones. */
.nav-links a {
  white-space: nowrap;
}

.nav-short {
  display: none;
}

@media (max-width: 720px) {
  .nav-full {
    display: none;
  }

  .nav-short {
    display: inline;
  }
}

@media (max-width: 640px) {
  .build-skip {
    top: auto;
    right: 16px;
    bottom: 20px;
  }
}

.tour-claim {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--text);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
}

.tour-claim + .section-lede {
  margin-top: 12px;
}

.is-tour .shots.is-three .shot img {
  aspect-ratio: 3 / 2;
}

@media (min-width: 821px) {
  .overview.is-last {
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: 16px;
  }
}

/* One tall picture on a tour page (PerthTek AI): as large as the window allows. */
.is-tour .shots.is-one,
.is-tour .shots.is-one[data-count="1"] {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.is-tour .shots.is-one .shot img {
  aspect-ratio: 6 / 5;
  object-position: top left;
}

.shots.is-bench .shot img[src$=".jpg"] {
  object-position: center;
}

@media (min-width: 821px) {
  .is-tour .shots.is-one,
  .is-tour .shots.is-one[data-count="1"] {
    max-width: min(520px, 58vh);
  }
}

/* ---------- The two services as two plans, each with its own list (23 Nov 2026) */

.tiers {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-top: 24px;
  text-align: left;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 22px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(22, 22, 23, 0.82);
}

.tier.is-lead {
  border-color: var(--line-strong);
}

.tier h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tier-price {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 16px;
}

.tier ul {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.tier ul.is-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
}

.tier li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.35;
}

.tier em {
  flex: none;
  color: var(--text);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier .button {
  align-self: flex-start;
  margin-top: auto;
  height: 40px;
}

@media (max-width: 820px) {
  .tiers,
  .tier ul.is-two {
    grid-template-columns: 1fr;
  }
}

/* ---------- Artwork behind the sections: the hardware from the owner's banners, dim, fading into the black */

.has-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.has-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -7vw;
  top: 50%;
  width: min(820px, 58vw);
  aspect-ratio: 3 / 2;
  transform: translateY(-50%);
  background: center / contain no-repeat;
  filter: contrast(1.32) brightness(0.92);
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  pointer-events: none;
}

.art-left::after {
  right: auto;
  left: -9vw;
}

.art-low::after {
  top: auto;
  right: 50%;
  bottom: -16vh;
  width: min(900px, 70vw);
  transform: translateX(50%);
  opacity: 0.4;
}

.art-gpu::after { background-image: url("../img/art/gpu.jpg"); aspect-ratio: 1500 / 760; }
.art-ram-cpu::after { background-image: url("../img/art/ram-cpu.jpg"); aspect-ratio: 1460 / 920; }
.art-board::after { background-image: url("../img/art/board.jpg"); aspect-ratio: 1480 / 1000; }
.art-keycap::after { background-image: url("../img/art/keycap.jpg"); aspect-ratio: 1000 / 920; width: min(560px, 42vw); }

@media (max-width: 820px) {
  .has-art::after {
    display: none;
  }
}

.tier {
  background: #141415;
}

@media (min-width: 821px) {
  .overview.is-last .tour-claim {
    margin-top: 10px;
    font-size: clamp(17px, 1.6vw, 21px);
  }

  .overview.is-last .section-lede {
    margin-top: 6px;
    font-size: 15px;
  }

  .overview.is-last .tiers {
    margin-top: 18px;
  }

  .tier {
    padding: 18px 24px 20px;
  }

  .tier li {
    padding: 6px 0;
    font-size: 14px;
  }

  .tier ul {
    margin: 10px 0 14px;
  }
}

/* ---------- PerthTek Shell against Windows Explorer: the figure and the Task Manager rows it comes from */

.versus {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 22px auto 0;
}

.versus figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121212;
  overflow: hidden;
}

.versus figcaption {
  padding: 12px 16px 10px;
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
}

.versus strong {
  margin-right: 8px;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.versus img {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid var(--line);
}

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

/* ---------- The building cursors (23 Nov 2026): an arrow, a text cursor and a crosshair, one shown at a time */

.agent svg {
  display: none;
  width: auto;
  height: auto;
  transform-origin: 50% 50%;
}

.agent-glyph {
  display: block;
  transform-origin: 2px 2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

.agent.is-arrow .a-arrow,
.agent.is-text .a-text,
.agent.is-cross .a-cross {
  display: block;
}

.agent .a-arrow {
  width: 16px;
  height: 20px;
}

/* The text cursor and the crosshair are centred on the point the arrow's tip would touch. */
.agent .a-text {
  width: 9px;
  height: 18px;
  transform: translate(-2.5px, -7px);
}

.agent .a-cross {
  width: 15px;
  height: 15px;
  transform: translate(-5.5px, -5.5px);
}

.agent .a-text path,
.agent .a-cross path {
  fill: none;
  stroke: var(--c);
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* The caret that runs along a line as it is typed. */
.type-caret {
  position: absolute;
  z-index: 2;
  width: 1.5px;
  border-radius: 1px;
  background: var(--text);
}

.sel {
  border-color: rgba(255, 255, 255, 0.5);
}

/* The headline is typed at its final spacing, so its lines never move once written; the styling pass only lights it. */
:is(.is-building, .is-rebuilding) .hero-title:not(.is-set) {
  letter-spacing: -0.04em;
}

/* The plans on the Services page: the same two panels as the first page, with room above them. */
.page-body > .tiers {
  margin-top: 0;
}

.tier-price [data-aud] {
  margin-left: 10px;
  color: var(--text-3);
  font-size: 14px;
}

/* "vs" between the two figures. */
.versus {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.versus-mark {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

  .versus-mark {
    text-align: center;
  }
}

/* The mark's outline as the cursor draws it: a clear pen line, square corners. */
.hero-mark .mark-lines path {
  stroke-width: 4; /* in the mark's own 358-wide units: under two pixels on screen */
  stroke-linecap: butt;
}

/* The two taskbars, one under the other at full width, each named under it. */
.bars {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.bars figure {
  margin: 0;
}

.bars img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bars figcaption {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13px;
}
