/* ==========================================================================
   SixTwelve Studio — Design System & Storefront
   Palette: Cream, Ink, Rust, Brass, Hairline
   Typography: Source Serif 4 (display) · JetBrains Mono (interface)
   Both faces are served from this origin. The site argues that the apps call nobody, so
   the site calls nobody either: no font CDN, no third-party request on any page.
   ========================================================================== */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: oklch(0.972 0.006 80);
  --cream-deep: oklch(0.945 0.014 82);
  --ink: oklch(0.22 0.012 60);
  --ink-soft: oklch(0.32 0.014 60);
  --ink-mute: oklch(0.45 0.02 60);
  --rust: oklch(0.56 0.13 42);
  --brass: oklch(0.78 0.11 78);
  --hairline: oklch(0.88 0.025 68);
  --hairline-d: oklch(0.92 0.018 72);

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --header-h: 74px;
}

@supports not (color: oklch(0 0 0)) {
  :root {
    --cream: #f8f5f1;
    --cream-deep: #f0e8db;
    --ink: #201d1a;
    --ink-soft: #38312c;
    --ink-mute: #645c55;
    --rust: #bc6142;
    --brass: #c79a5b;
    --hairline: #ddd1bd;
    --hairline-d: #e9e0d4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--rust);
  color: var(--cream);
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 3px; }

.page {
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page > main { flex: 1; min-width: 0; }
.page { overflow-x: clip; }

.shell {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
  box-sizing: border-box;
}

.shell-narrow { max-width: 640px; }

/* A sticky header would otherwise sit on top of whatever an anchor scrolls to. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px 18px;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header & Product Navigation
   ========================================================================== */
.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.972 0.006 80 / 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-d);
  font-family: var(--font-mono);
}

@supports not (color: oklch(0 0 0)) {
  .site-header {
    background: rgba(248, 245, 241, 0.94);
  }
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(12px, 1.8vh, 16px) clamp(16px, 3vw, 28px);
  box-sizing: border-box;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 160ms ease;
  flex-shrink: 0;
}

.brand-link:hover { opacity: 0.85; }

/* Wordmark Lockup */
.wordmark-lockup {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.025em;
  user-select: none;
  white-space: nowrap;
}

.wordmark-lockup.header {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
}

.part-sixtwelve {
  color: var(--ink);
  font-weight: 500;
}

.part-studio {
  display: inline-flex;
  align-items: baseline;
  color: var(--rust);
  font-weight: 500;
}

.text-studi {
  color: var(--rust);
}

.dial-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.53em;
  height: 0.53em;
  margin-left: 0.03em;
  position: relative;
  top: -0.015em;
  vertical-align: baseline;
}

.dial-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* ==========================================================================
   Unified Instruments Navigation Pill & Catalogue Dropdown
   ========================================================================== */
.nav-instruments-group {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-instruments-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  background: var(--cream-deep);
  border: 1px solid var(--hairline-d);
  border-radius: 999px;
  padding: 3px;
  position: relative;
}

.product-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 130ms ease;
  white-space: nowrap;
  user-select: none;
}

.tab-btn:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}


.tab-name {
  font-weight: 500;
}

.tab-btn[aria-current="page"] {
  background: var(--ink);
  color: var(--cream);
}

.tab-btn[aria-current="page"]:hover {
  background: var(--ink);
  color: var(--cream);
}



.catalog-dropdown-root {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  cursor: pointer;
  transition: all 130ms ease;
  user-select: none;
  line-height: 1;
}

.catalog-pill-btn:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.catalog-pill-btn[aria-expanded="true"] {
  background: var(--ink);
  color: var(--cream);
}

.catalog-pill-label {
  font-weight: 500;
}

.catalog-footer-note {
  color: var(--ink-mute);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}




.catalog-chevron {
  width: 8px;
  height: 5px;
  transition: transform 140ms ease;
  color: inherit;
  flex-shrink: 0;
}

.catalog-pill-btn[aria-expanded="true"] .catalog-chevron {
  transform: rotate(180deg);
}

/* Floating Catalogue Popover */
.catalog-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: clamp(340px, 44vw, 460px);
  background: oklch(0.975 0.008 80 / 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 24px 60px -14px rgba(32, 29, 26, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: popoverFadeIn 130ms cubic-bezier(0.16, 1, 0.3, 1);
}

@supports not (color: oklch(0 0 0)) {
  .catalog-popover {
    background: rgba(248, 245, 241, 0.98);
  }
}

.catalog-popover[hidden] {
  display: none !important;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.catalog-popover-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--hairline-d);
  background: oklch(0.96 0.01 80 / 0.6);
}

.catalog-popover-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.catalog-popover-eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-weight: 500;
}

.catalog-popover-count {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--rust);
  font-weight: 500;
}

.catalog-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--hairline-d);
  border-radius: 7px;
  padding: 6px 10px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.catalog-search-wrap:focus-within {
  border-color: var(--rust);
  box-shadow: 0 0 0 1px var(--rust);
}

.catalog-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  width: 100%;
}

.catalog-search-shortcut {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  background: var(--cream-deep);
  color: var(--ink-mute);
}

.catalog-cards-container {
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overscroll-behavior: contain;
}

.catalog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: all 120ms ease;
  color: inherit;
}

.catalog-item:hover {
  background: var(--cream-deep);
  border-color: var(--hairline-d);
}

.catalog-item.is-current {
  background: oklch(0.95 0.014 80);
  border-color: var(--brass);
}

.catalog-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 3px 8px -2px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
  background: var(--cream-deep);
}

.catalog-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.catalog-item-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.catalog-item-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}

.catalog-item-platform {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  white-space: nowrap;
}

.catalog-item-price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--rust);
  background: oklch(0.56 0.13 42 / 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.catalog-item-desc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--cream-deep);
  border-top: 1px solid var(--hairline-d);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
}



.catalog-footer-link {
  color: var(--rust);
  text-decoration: none;
  font-weight: 500;
}

.catalog-footer-link:hover {
  text-decoration: underline;
}

/* Nav Actions & Links */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 18px);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 140ms ease;
}

.nav-links a:hover {
  color: var(--rust);
}

@media (max-width: 780px) {
  .product-tabs { display: none; }
  .nav-actions .nav-links a:not([href="/licence"]) { display: none; }
  .catalog-popover {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    max-height: calc(100vh - var(--header-h));
  }
}

/* ==========================================================================
   Product View Toggle
   ========================================================================== */
.product-view { display: none; }
.product-view.is-active { display: block; }

/* ==========================================================================
   Hero Layout
   ========================================================================== */
.crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin: 0;
}

.crumb a { color: inherit; }

.hero { margin-top: 36px; }
.hero-plain { margin-top: 32px; }
.hero-plain h1 { font-size: clamp(38px, 6vw, 56px); }

.hero-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.mark {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 15px;
  flex-shrink: 0;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.5);
}

.hero-head .eyebrow {
  line-height: 1.5;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(46px, 8vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 8px 0 18px;
  color: var(--ink);
}

.lede {
  font-size: 22px;
  line-height: 1.45;
  text-wrap: pretty;
  margin: 0 0 26px;
  max-width: min(44ch, 100%);
  color: var(--ink);
}

.price-line {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 22px;
  color: var(--ink-mute);
}

.price {
  color: var(--rust);
  font-weight: 500;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.actions-spaced { margin-top: 24px; }

.buy {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 160ms ease;
}

.buy:hover { background: var(--rust); color: var(--cream); }
.buy:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 160ms ease;
}

.btn:hover { background: var(--rust); color: var(--cream); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn[disabled]:hover { background: var(--ink); }

.ghost {
  display: inline-block;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: color 140ms ease;
}

.ghost:hover { color: var(--rust); }

.fineprint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-mute);
  margin: 18px 0 0;
  max-width: 52ch;
}

/* ==========================================================================
   Refusals Band
   ========================================================================== */
.band {
  margin: 56px -24px 0;
  padding: 38px 24px 34px;
  background: var(--cream-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.band h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.band-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0 0 26px;
  max-width: 46ch;
}

.refusals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px 30px;
  margin: 0;
}

.refusal { margin: 0; }

.refusal dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--brass);
}

.refusal dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

/* ==========================================================================
   Product Hero Frame & Editorial Screen Presentation

   A plate is wider than the prose it sits under, so the screenshots read as
   exhibits rather than as illustrations squeezed into a column of text.
   ========================================================================== */
.plate-wide {
  width: 100%;
}

@media (min-width: 900px) {
  .plate-wide {
    width: min(1120px, calc(100vw - 48px));
    margin-left: 50%;
    margin-right: 0;
    transform: translateX(-50%);
  }
}

.hero-media {
  margin-top: 44px;
  margin-bottom: 8px;
}

.hero-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--cream-deep), oklch(0.93 0.016 82));
  padding: 14px 14px 0;
  box-shadow: 0 30px 70px -28px rgba(32, 29, 26, 0.45), 0 2px 6px -2px rgba(32, 29, 26, 0.08);
  overflow: hidden;
}

.hero-screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(32, 29, 26, 0.14), 0 10px 26px -14px rgba(32, 29, 26, 0.5);
}

.hero-caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 4px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.caption-label {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
  font-size: 9.5px;
  white-space: nowrap;
}

.caption-text {
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ==========================================================================
   Specimen Gallery (The Studio Exhibition)
   ========================================================================== */
.specimen-gallery {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.specimen-header {
  margin-bottom: 18px;
  max-width: 60ch;
}

.specimen-gallery h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.specimen-lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0;
  max-width: 48ch;
}

.specimen-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 12px;
}

.specimen-nav::-webkit-scrollbar { display: none; }

.specimen-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--cream-deep);
  border: 1px solid var(--hairline-d);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all 130ms ease;
  user-select: none;
}

.specimen-tab-btn:hover {
  background: var(--cream);
  border-color: var(--hairline);
  color: var(--ink);
}

.specimen-tab-btn[aria-selected="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.specimen-tab-index {
  font-size: 9.5px;
  opacity: 0.55;
  font-weight: 500;
}

.specimen-viewer {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  padding: 14px;
  box-shadow: 0 30px 70px -28px rgba(32, 29, 26, 0.45), 0 2px 6px -2px rgba(32, 29, 26, 0.08);
  background: linear-gradient(180deg, var(--cream-deep), oklch(0.93 0.016 82));
}

.specimen-panel {
  display: none;
}

.specimen-panel.is-active {
  display: block;
  animation: specimen-fade 260ms ease both;
}

@keyframes specimen-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.specimen-panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(32, 29, 26, 0.14), 0 10px 26px -14px rgba(32, 29, 26, 0.5);
}

.specimen-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 4px 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.specimen-caption-text {
  color: var(--ink);
  line-height: 1.45;
  flex: 1;
}

.specimen-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.specimen-counter {
  font-size: 11px;
  color: var(--ink-mute);
  padding: 0 4px;
}

.specimen-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--hairline-d);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  cursor: pointer;
  transition: all 120ms ease;
  user-select: none;
}

.specimen-ctrl-btn:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.specimen-tab-btn:focus-visible,
.specimen-ctrl-btn:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .specimen-panel.is-active { animation: none; }
  .specimen-tab-btn { transition: none; }
  .specimen-ctrl-btn { transition: none; }
}

/* Dedicated Hardware Specimen for photography */



/* ==========================================================================
   Panels (Craft, Downloads, Buying, Requirements)
   ========================================================================== */
.panel {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.panel h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.panel p, .panel li {
  font-size: 18px;
  line-height: 1.55;
}

.panel ol { padding-left: 1.2em; }
.panel ol li { margin-bottom: 6px; }

.panel a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid rgba(188, 97, 66, 0.4);
}

.panel a:hover { border-bottom-color: var(--rust); }

.panel a.buy,
.panel a.dl-link {
  border-bottom: none;
}

.panel a.buy {
  color: var(--cream);
}

.panel a.buy:hover {
  color: var(--cream);
}

.panel-lede {
  color: var(--ink-mute);
  max-width: 54ch;
  margin: 0 0 20px;
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 4px 0 0;
}

.note {
  font-size: 15.5px !important;
  line-height: 1.6;
  color: var(--ink-mute);
  margin-top: 16px;
  max-width: 56ch;
}

.req {
  font-family: var(--font-mono);
  font-size: 13px !important;
  line-height: 1.8;
  color: var(--ink-mute);
  max-width: 54ch;
}

.craft {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px 34px;
}

.craft-item h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}

.craft-item p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-mute);
}

/* Downloads List */
.downloads {
  list-style: none;
  padding: 0;
  margin: 0;
}

.downloads li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.downloads .fmt {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--rust);
}

.downloads .detail {
  font-size: 16px;
  line-height: 1.45;
}

.downloads .size {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.dl-link {
  color: var(--rust) !important;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--rust) !important;
}

/* ==========================================================================
   Engage Terminal Specimen Window
   ========================================================================== */
.term {
  margin-top: 40px;
  background: #0C0A09;
  border: 1px solid #292524;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(237, 232, 223, 0.10);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8A8179;
}

.term-dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}

.term-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3F3B37;
  flex: none;
}

.term-bar .dot:first-child { background: #C2410C; }

.term-title { flex: 1; text-align: center; }
.term-clock { flex: none; }

.term-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(237, 232, 223, 0.10);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8A8179;
}

.term-tabs::-webkit-scrollbar { display: none; }

.term-tabs .tab {
  padding: 8px 16px;
  border-right: 1px solid rgba(237, 232, 223, 0.10);
  white-space: nowrap;
  flex: none;
}

.term-tabs .tab-add { flex: none; }

.term-tabs .tab.is-active {
  color: #EDE8DF;
  background: #1C1917;
  box-shadow: inset 0 -1px 0 0 #C2410C;
}

.term-tabs .tab-add { padding: 8px 14px; }

.term-body {
  padding: 20px 18px 22px;
  overflow-x: auto;
}

.term-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #EDE8DF;
  white-space: pre;
}

.term-body .p { color: #6E9BB5; }
.term-body .r { color: #C2410C; }
.term-body .g { color: #4E8C57; }
.term-body .y { color: #D97706; }
.term-body .d { color: #8A8179; }

.term-body .cur {
  display: inline-block;
  width: 0.62em;
  background: #C2410C;
  animation: engageBlink 1.15s steps(1, end) infinite;
}

@keyframes engageBlink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.15; }
}

/* Engage Licence Claim Form */
.claim-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 14px;
}

.claim-form input[type=email] {
  flex: 1 1 260px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: var(--cream-deep);
  color: var(--ink);
}

.claim-form input[type=email]:focus-visible {
  outline: 2px solid var(--rust);
}

.licence-block {
  background: var(--cream-deep);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--rust);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
}

.licence-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink);
}

.status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 10px 0;
}

/* ==========================================================================
   Shared Support & Post-Purchase Pages (/licence, /refund, /thanks)
   ========================================================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}

.row input[type=email],
.row select {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: var(--cream-deep);
  color: var(--ink);
  min-width: 260px;
}

.btn-quiet {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--ink);
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  cursor: pointer;
  transition: all 140ms ease;
}

.btn-quiet:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.error { color: #C2410C; }

/* ==========================================================================
   Footer
   The product column is generated from the catalogue, so it grows with the studio without
   this file being touched.
   ========================================================================== */
.site-foot {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  background: var(--cream-deep);
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  position: relative;
}

.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-d) 20%, var(--rust) 50%, var(--hairline-d) 80%, transparent);
  opacity: 0.65;
}

.site-foot-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 48px) 44px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(240px, 1fr);
  gap: 48px 64px;
  align-items: start;
}

.foot-brand-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.foot-brand-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.foot-brand .wordmark-lockup.foot {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.foot-line {
  margin: 0 0 18px;
  max-width: 44ch;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.foot-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--hairline);
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
}

.foot-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rust);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 36px 28px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.foot-col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline-d);
  width: 100%;
}

.foot-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.01em;
  transition: color 150ms ease, transform 150ms ease;
}

.foot-links a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.foot-legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.foot-copy {
  margin: 0;
}

.foot-colophon {
  margin: 0;
  max-width: 52ch;
}

.site-foot a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-foot a:hover {
  color: var(--rust);
}

.foot-legal a {
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot-legal a:hover {
  color: var(--ink);
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 860px) {
  :root { --header-h: 112px; }

  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px clamp(16px, 4vw, 24px);
  }

  /* The strip takes the full row and scrolls within it, so a fourth or a fifth title
     lengthens the strip rather than breaking the header apart. */
  .product-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links {
    font-size: 11px;
    gap: 16px;
  }

  .site-foot-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 720px) {
  :root { --header-h: 108px; }

  .shell {
    padding: 36px 20px 64px;
  }

  .band { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }

  h1 { font-size: 42px; }
  .lede { font-size: 20px; }

  .downloads li {
    grid-template-columns: 1fr auto;
  }

  .downloads .detail {
    grid-column: 1 / -1;
  }

  .row input[type=email],
  .row select {
    min-width: 0;
    width: 100%;
  }

  .claim-form .buy,
  .row .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  :root { --header-h: 146px; }

  .nav-container {
    padding: 14px 16px;
  }

  .wordmark-lockup.header { font-size: 1.3rem; }

  .brand-link { width: 100%; }

  .nav-links {
    order: 4;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
  }

  .band { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
