[hidden] { display: none !important; }
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/instrument-sans.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url('/fonts/jetbrains-mono.woff2') format('woff2');}

/* ============================================================
   TexParton design system
   ============================================================ */
:root {
  --ink: #202a30;
  --ink-soft: #343d43;
  --paper: #f4f5f5;
  --paper-deep: #eceff0;
  --white: #ffffff;
  --copper: #e4483d;
  --copper-soft: #ef6a5f;
  --steel: #6f7276;
  --muted: #5f6a70;
  --line: rgba(32, 42, 48, 0.14);
  --line-strong: rgba(32, 42, 48, 0.28);
  --line-invert: rgba(255, 255, 255, 0.16);
  --font: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.6, 0.15, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(28px, 3.6vw, 52px); }
.section--tight { padding-block: clamp(20px, 2.4vw, 32px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--paper-deep); }

.hairline { height: 1px; background: var(--line); border: 0; }
.hairline--invert { background: var(--line-invert); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section--dark .eyebrow { color: rgba(247, 245, 240, 0.55); }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.display {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.section--dark .lede { color: rgba(247, 245, 240, 0.66); }
.small { font-size: 0.9rem; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn::after {
  content: "→";
  font-family: var(--mono);
  font-size: 13px;
  transition: transform 0.25s var(--ease);
}
.btn:hover { --btn-bg: var(--copper); border-color: var(--copper); }
.btn:hover::after { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); border-color: var(--ink); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--copper); --btn-fg: #fff; border-color: var(--copper); }
.btn--sm { padding: 10px 16px; font-size: 12px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link:hover { color: var(--copper); border-color: var(--copper); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 245, 245, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__icon { display: block; width: 32px; height: 32px; }
.brand__name {
  font-family: var(--font);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink-soft);
}
.brand__logo { display: block; width: 124px; height: auto; }
@media (max-width: 700px) {
  .brand__logo { width: 104px; }
}
.brand__mark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand__mark span { color: var(--copper); }
.brand__sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- hero ---------- */
.hero { background: var(--ink); }
.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(320px, 29vw, 440px);
  padding-block: clamp(28px, 3.2vw, 52px);
  background-color: var(--ink);
  background-image: url("/assets/hero-spinning.jpg");
  background-image: image-set(
    url("/assets/hero-spinning.webp") type("image/webp"),
    url("/assets/hero-spinning.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--paper);
  overflow: hidden;
}
.hero__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,13,0.88) 0%, rgba(10,12,13,0.7) 38%, rgba(10,12,13,0.24) 68%, rgba(10,12,13,0.06) 100%),
    linear-gradient(0deg, rgba(10,12,13,0.4), rgba(10,12,13,0) 45%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-block: 14px 16px;
  max-width: 20ch;
}
.hero .lede { max-width: 54ch; font-size: 0.98rem; color: rgba(247,245,240,0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__actions .btn--ghost {
  color: var(--paper);
  border-color: rgba(255,255,255,0.42);
  background: transparent;
}
.hero__actions .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- section head ---------- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(22px, 2.6vw, 36px);
}
.section-head > div { max-width: 62ch; }

/* ---------- family list (home) ---------- */
.families { border-top: 1px solid var(--line); }
.family-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 120px 44px;
  align-items: center;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.family-row:hover { background: rgba(255,255,255,0.55); padding-inline: 12px; }
.family-row__name { font-size: clamp(1rem, 1.05vw, 1.1rem); letter-spacing: -0.01em; font-weight: 500; }
.family-row__desc { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.family-row__count { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.family-row__arrow { justify-self: end; font-family: var(--mono); color: var(--steel); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.family-row:hover .family-row__arrow { transform: translateX(6px); color: var(--copper); }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pcard {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background 0.25s var(--ease);
}
.pcard:hover { background: #ffffff; }
.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f5f6f7;
  overflow: hidden;
}
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.6s var(--ease);
  mix-blend-mode: multiply;
}
.pcard:hover .pcard__media img { transform: scale(1.035); }
.pcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.pcard__title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.pcard__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.pcard__price { font-size: 0.95rem; font-weight: 500; }
.pcard__price small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 400; }

/* ---------- applications ---------- */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.app {
  background: var(--paper);
  padding: 30px 28px 34px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.app:hover { background: var(--ink); color: var(--paper); }
.app h3 { margin-top: auto; }
.app p { font-size: 0.9rem; color: var(--muted); }
.app:hover p { color: rgba(247,245,240,0.62); }

/* ---------- spec table ---------- */
.specs { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.specs th, .specs td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.specs th {
  width: 42%;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 18px;
}
.specs td { font-weight: 500; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: clamp(40px, 4.5vw, 64px); align-items: start; }
.pdp > div:last-child { max-width: 700px; }

.gallery__main {
  background: #f5f6f7;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  /* thumbnails share the exact width of the main image above */
  justify-content: space-between;
}
.gallery__thumb {
  flex: 1 1 0;
  min-width: 56px;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  height: auto;
  background: #f5f6f7;
  border: 1px solid var(--line);
  padding: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}
.gallery__thumb[data-active="true"], .gallery__thumb:hover { opacity: 1; border-color: var(--ink); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.pdp__title { font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1.14; letter-spacing: -0.025em; font-weight: 500; margin-block: 14px 18px; }
.pdp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(20px, 3vw, 40px);
  padding-block: 16px;
  border-block: 1px solid var(--line);
  margin-block: 22px;
}
.pdp-fact { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.pdp-fact span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdp-fact b { font-size: 0.95rem; font-weight: 500; }

.pdp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pdp-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.pdp-tag:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-deep); }

.pdp__quick { padding-block: 18px; border-block: 1px solid var(--line); margin-block: 24px; }
.pdp__quick dl { margin: 12px 0 0; display: grid; gap: 12px; max-width: 56ch; }
.pdp__quick dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pdp__quick dd { margin: 4px 0 0; font-size: 0.95rem; line-height: 1.5; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 24px; }
.kv > div { border-top: 1px solid var(--line); padding-top: 12px; }
.kv > div:nth-child(1), .kv > div:nth-child(2) { border-top: 0; padding-top: 0; }
.kv dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 6px 0 0; font-size: 0.95rem; font-weight: 500; }

/* ---------- specification band ---------- */
.spec-band {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}
.spec-band__inner { padding-block: clamp(26px, 3.2vw, 48px); }
.spec-head { margin-bottom: clamp(18px, 2.2vw, 28px); }
.spec-list {
  margin: 0;
  column-count: 4;
  column-gap: clamp(20px, 3vw, 40px);
}
.spec-line {
  break-inside: avoid;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.spec-line dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.spec-line dd { margin: 5px 0 0; font-size: 0.9rem; font-weight: 500; line-height: 1.45; }

@media (max-width: 1080px) {
  .spec-head { grid-template-columns: 1fr; align-items: start; }
  .spec-list { column-count: 2; }
}
@media (max-width: 700px) {
  .spec-list { column-count: 1; }
}

/* ---------- pills / filters ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
}
.pill:hover, .pill[data-active="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill small { font-family: var(--mono); opacity: 0.5; margin-left: 6px; }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 18px; border-block: 1px solid var(--line); margin-bottom: 34px;
  font-size: 13px; color: var(--muted);
}
.toolbar__sorts { display: flex; gap: 18px; }
.toolbar__sorts a { font-size: 12px; color: var(--muted); }
.toolbar__sorts a[data-active="true"] { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* ---------- pagination ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 56px; }
.pager a, .pager span {
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px;
}
.pager a:hover { border-color: var(--ink); }
.pager span[data-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--copper); }
.field textarea { resize: vertical; min-height: 88px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px 32px; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 72px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247,245,240,0.45); margin-bottom: 18px; font-weight: 500; }
.footer-grid a { font-size: 0.9rem; color: rgba(247,245,240,0.82); display: block; padding-block: 5px; }
.footer-grid a:hover { color: var(--copper-soft); }
.footer-bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-invert);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: rgba(247,245,240,0.45);
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom nav a { color: rgba(247,245,240,0.62); }
.footer-bottom nav a:hover { color: var(--paper); }

/* ---------- product description ---------- */
.desc-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(20px, 2.4vw, 36px);
  align-items: start;
}
.desc-block__media {
  margin: 0;
  background: var(--paper-deep);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.desc-block__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  margin: 0;
}
.desc-block .prose { max-width: none; }

@media (max-width: 900px) {
  .desc-block { grid-template-columns: 1fr; }
  .desc-block__media { max-width: 320px; }
}

/* ---------- machine brands ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line);
}
.brand-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.brand-card__name { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-card__count { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); }
.brand-card__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.brand-card:hover .brand-card__arrow { color: var(--ink); transform: translateX(3px); }
.brand-card:hover .brand-card__name { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .brand-grid { grid-template-columns: 1fr; } }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span.sep { opacity: 0.4; }

/* ---------- prose ---------- */
.prose {
  max-width: 72ch;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #3d3a35;
}
.prose::first-letter { text-transform: uppercase; }

/* ---------- misc ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.note { font-size: 0.82rem; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-strong); padding: 4px 8px; color: var(--ink);
}
.badge--accent { border-color: var(--copper); color: var(--copper); }

@media (max-width: 1080px) {
  .pdp { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .section-head { flex-direction: column; align-items: start; }
  .family-row { grid-template-columns: 1fr 44px; gap: 14px; }
  .family-row__desc, .family-row__count { display: none; }
  .apps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .site-header__inner { height: 62px; gap: 12px; }
  .brand__sub { display: none; }
  .brand__mark { font-size: 17px; }
  .header-actions .btn { padding: 9px 12px; font-size: 11px; }
  .header-actions .btn::after { display: none; }
  .display { font-size: clamp(2rem, 8.6vw, 3rem); }
  .hero__inner { padding-block: 24px; min-height: 380px; background-position: center; }
  .hero__inner::before {
    background: linear-gradient(180deg, rgba(10,12,13,0.74) 0%, rgba(10,12,13,0.8) 100%);
  }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .section-head .link { display: none; }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .pdp__price { flex-wrap: wrap; }
  .family-row { grid-template-columns: 1fr 2rem; }
}

/* ---------- header dropdown ---------- */
.nav-item { position: relative; }
.has-menu .menu {
  position: absolute; top: calc(100% + 18px); left: -24px;
  width: 380px; padding: 10px; background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(14,16,17,.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu--narrow { width: 268px; }
.menu__inner { display: grid; }
.menu__link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; font-size: 13.5px; }
.menu__link:hover { background: var(--paper-deep); }
.menu__count { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.menu__name { letter-spacing: -0.01em; }

/* ---------- family cards (products index) ---------- */
.fam-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fam-card { position: relative; background: var(--paper); padding: 34px 32px 28px; display: flex; flex-direction: column; min-height: 260px; transition: background .25s var(--ease); }
.fam-card:hover { background: #ffffff; }
.fam-card__bar { position: absolute; left: 0; top: 0; width: 100%; height: 3px; opacity: .9; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.fam-card:hover .fam-card__bar { transform: scaleX(1); }
.fam-card__name { font-size: clamp(1.35rem,2vw,1.8rem); letter-spacing: -.025em; font-weight: 500; margin-block: 16px 12px; max-width: 16ch; line-height: 1.1; }
.fam-card__tag { color: var(--muted); font-size: .92rem; line-height: 1.5; max-width: 40ch; }
.fam-card__foot { margin-top: auto; padding-top: 26px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.fam-card:hover .fam-card__arrow { transform: translateX(5px); color: var(--copper); }
.fam-card__arrow { transition: transform .3s var(--ease), color .3s var(--ease); }
@media (max-width: 820px) { .fam-grid { grid-template-columns: 1fr; } }

/* ---------- application gallery ---------- */
.app-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.app-gallery__item { margin: 0; background: var(--paper); display: flex; flex-direction: column; }
.app-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #f5f6f7; }
.app-gallery__item figcaption { padding: 12px 16px 14px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 700px) { .app-gallery { grid-template-columns: 1fr; } }

/* ---------- mobile navigation ---------- */
.site-header__inner { position: relative; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px 6px; margin-left: auto; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .header-actions { display: none; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    z-index: 70;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 34px rgba(14,16,17,.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 13px 22px; font-size: 14px; }
  .nav a::after { display: none; }
  .nav .menu {
    display: block !important;
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav .menu__link { padding: 10px 22px 10px 38px; font-size: 13px; color: var(--muted); }
  .nav .menu__link:hover { background: transparent; color: var(--ink); }
  .nav .menu__count { display: none; }
}
/* keep the product layout inside the viewport */
.pdp > * { min-width: 0; }
.gallery__thumbs { max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
@media (max-width: 700px) { .gallery__thumb img { max-width: 68px; } }

/* ---------- product video ---------- */
.gallery__thumb--video { position: relative; }
.gallery__thumb--video img { filter: brightness(.82); }
.gallery__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(14,16,17,.38);
  color: #fff; font-size: 13px;
}
.gallery__thumb--video:hover .gallery__play { background: rgba(169,84,31,.55); }
.gallery__main video { width: 100%; height: 100%; object-fit: contain; background: #f5f6f7; display: block; }

/* phones: uniform thumbnails, five per row, aligned to the main image */
@media (max-width: 700px) {
  .gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .gallery__thumb { max-width: none; min-width: 0; }
}

/* ---------- search ---------- */
.search-mini input {
  width: 190px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
}
.search-mini input:focus { outline: none; border-color: var(--ink); }
@media (max-width: 1180px) { .search-mini { display: none; } }
.nav__search { display: none; }
@media (max-width: 820px) {
  .nav__search { display: block; padding: 12px 16px 8px; }
  .nav__search input { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 14px; }
}
.search-form { display: flex; gap: 10px; margin-top: 24px; max-width: 760px; }
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--line-strong);
  background: #fff;
}
.search-form input:focus { outline: none; border-color: var(--ink); }
.search-hints { margin-top: 26px; max-width: 660px; }
.search-empty { margin-top: 28px; padding: 56px 24px; border: 1px solid var(--line); text-align: center; }
@media (max-width: 600px) { .search-form { flex-direction: column; } }

/* ---------- search facets ---------- */
.search-facets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: center; }
.search-facets--types { margin-top: 10px; }
.search-facets__label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--ink);
  background: transparent;
}
.chip span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip--on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--on span { color: rgba(247,245,240,.65); }

.search-corrected {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
  font-size: 13.5px;
}
.search-corrected a { border-bottom: 1px solid currentColor; }

/* honeypot field: hidden from people, visible to naive bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer legal row ---------- */



/* ---------- enquiry modal ---------- */
dialog.modal { border: 0; padding: 0; background: transparent; width: min(680px, 94vw); max-width: none; }
dialog.modal::backdrop { background: rgba(10, 12, 13, 0.55); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 40px);
  max-height: 88vh;
  overflow: auto;
}
.modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
}
.modal__close:hover { color: var(--ink); }
html.modal-locked, body.modal-locked { overflow: hidden; }


/* ---------- wishlist button ---------- */
.wishlist-btn { display: inline-flex; align-items: center; gap: 8px; }
.wishlist-btn__icon { font-size: 13px; line-height: 1; color: var(--muted); transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.wishlist-btn[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.wishlist-btn[aria-pressed="true"] .wishlist-btn__icon { color: var(--copper); transform: scale(1.1); }


/* ---------- wishlist counter ---------- */
.wishlist-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  margin-right: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.wishlist-pill:hover { color: var(--ink); }
.wishlist-pill.is-empty { visibility: hidden; pointer-events: none; }
.wishlist-pill__icon { font-size: 14px; line-height: 1; }
.wishlist-pill__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 16px;
  text-align: center;
}


/* ---------- wishlist page ---------- */
.wish-list { border-top: 1px solid var(--line); }
.wish-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.wish-row img { width: 96px; height: 96px; object-fit: contain; background: var(--paper-deep); display: block; }
.wish-row__meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wish-row__title { margin-top: 5px; font-size: 1rem; font-weight: 500; }
.wish-row__ref { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); }
.wish-row:hover .wish-row__title { text-decoration: underline; text-underline-offset: 4px; }


.wish-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}


/* ---------- file input ---------- */
.file-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  position: relative;
}
.file-field:hover { border-color: var(--ink); }
.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-field__btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
}
.file-field__name {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }


/* ---------- card surfaces (neutral, bordered) ---------- */
.card-grid {
  gap: 18px;
  background: transparent;
  border: 0;
}
.pcard {
  background: #ffffff;
  border: 1px solid rgba(32, 42, 48, 0.10);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.pcard:hover {
  background: #ffffff;
  border-color: rgba(32, 42, 48, 0.34);
  box-shadow: 0 20px 36px -30px rgba(32, 42, 48, 0.45);
}
.pcard__media { background: #f5f6f7; }
.pcard__media img { padding: 14px; }

.fam-card {
  background: #ffffff;
  border: 1px solid rgba(32, 42, 48, 0.10);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.fam-card:hover {
  background: #ffffff;
  border-color: rgba(32, 42, 48, 0.34);
  box-shadow: 0 20px 36px -30px rgba(32, 42, 48, 0.45);
}

.brand-card {
  background: #ffffff;
  border: 1px solid rgba(32, 42, 48, 0.10);
}
.brand-card:hover {
  border-color: rgba(32, 42, 48, 0.34);
  box-shadow: 0 20px 36px -30px rgba(32, 42, 48, 0.45);
}

.family-row:hover { background: #ffffff; }
.apps { gap: 14px; }
.app { background: #ffffff; border: 1px solid rgba(32, 42, 48, 0.10); }
.app:hover { border-color: rgba(32, 42, 48, 0.34); }

.section--paper { background: #ffffff; }


.fam-grid { gap: 18px; background: transparent; border: 0; }
.apps { background: transparent; border: 0; }


/* ---------- gallery + brand cards: same surface system ---------- */
.gallery__main { border: 1px solid rgba(32, 42, 48, 0.10); background: #f5f6f7; }
.gallery__thumb { border: 1px solid rgba(32, 42, 48, 0.10); }
.gallery__thumb[data-active="true"], .gallery__thumb:hover { border-color: rgba(32, 42, 48, 0.55); }

.brand-grid {
  gap: 14px;
  border-top: 0;
}
.brand-card {
  background: #ffffff;
  border: 1px solid rgba(32, 42, 48, 0.10);
  padding: 16px 18px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.brand-card:hover {
  border-color: rgba(32, 42, 48, 0.34);
  box-shadow: 0 18px 32px -30px rgba(32, 42, 48, 0.45);
}

.app:hover {
  background: #ffffff;
  color: var(--ink);
}
.app:hover p { color: var(--muted); }


/* ---------- home family cards ---------- */
.fam-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fam-card--home { min-height: 0; padding: 22px 20px 16px; }
.fam-card--home .fam-card__name { font-size: 1.05rem; margin-block: 0 10px; max-width: none; letter-spacing: -0.01em; }
.fam-card--home .fam-card__tag { font-size: 0.88rem; line-height: 1.5; }
.fam-card--home .fam-card__foot { padding-top: 22px; }
@media (max-width: 1200px) { .fam-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .fam-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fam-grid--home { grid-template-columns: 1fr; } }


/* ---------- family icons ---------- */
.fam-card__icon { display: block; width: 44px; height: 44px; margin-bottom: 16px; }
.fam-card__icon--lg { width: 60px; height: 60px; margin-bottom: 18px; }
.fam-card--home .fam-card__icon { width: 46px; height: 46px; margin-bottom: 14px; }


/* ---------- photo edit button (admin only) ---------- */
.iopaint-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(32, 42, 48, 0.22);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(32, 42, 48, 0.55);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.iopaint-btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }


/* ---------- application page ---------- */
.app-component-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.app-component {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(32, 42, 48, 0.10);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.app-component:hover {
  border-color: rgba(32, 42, 48, 0.34);
  box-shadow: 0 16px 30px -28px rgba(32, 42, 48, 0.45);
}
.app-component__name { font-size: .95rem; }
.app-component__arrow { color: var(--muted); }
.app-component:hover .app-component__arrow { color: var(--accent, #e4483d); }

.spec-step {
  display: grid;
  grid-template-columns: 44px 180px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.spec-step:first-child { border-top: 0; }
.spec-step__no { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.spec-step__title { font-size: .95rem; font-weight: 500; }
.spec-step__body { font-size: .92rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1000px) { .app-component-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .spec-step { grid-template-columns: 32px 1fr; gap: 10px; }
  .spec-step__body { grid-column: 2; }
  .app-component-grid { grid-template-columns: 1fr; }
}


/* ---------- unified page titles ---------- */
.page-title {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
  margin: 0;
}
h3 { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.pdp__title { font-size: clamp(1.4rem, 1.9vw, 1.75rem); }


/* ---------- admin gallery ---------- */
.admin-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-photo { border: 1px solid rgba(32,42,48,.14); background: #fff; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.admin-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #f5f6f7; display: block; }
.admin-photo__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.admin-photo__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-photo__replace { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-photo__replace input[type="file"] { font-size: 10px; max-width: 100%; }


/* ---------- about: product range ---------- */
.about-families { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.about-family {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 18px;
  background: #fff;
  border: 1px solid rgba(32, 42, 48, 0.10);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.about-family:hover { border-color: rgba(32, 42, 48, 0.34); box-shadow: 0 18px 32px -30px rgba(32, 42, 48, 0.45); }
.about-family .fam-card__icon { width: 42px; height: 42px; margin-bottom: 6px; }
.about-family__name { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.about-family__tag { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.about-family__arrow { margin-top: auto; color: var(--muted); }
.about-family:hover .about-family__arrow { color: #e4483d; }
@media (max-width: 1100px) { .about-families { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .about-families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .about-families { grid-template-columns: 1fr; } }


/* ---------- prose (admin-authored page bodies) ---------- */
.prose { font-size: 1rem; line-height: 1.65; color: var(--ink); }
.prose .lede { font-size: 1.1rem; line-height: 1.6; color: var(--ink); margin-bottom: 1.2em; }
.prose p { margin: 0 0 1em; }
.prose h2 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2em 0 .55em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { margin: 0 0 1.2em 1.1em; }
.prose li { margin-bottom: .45em; }


/* ---------- admin video flag ---------- */
.video-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(32, 42, 48, 0.18);
  background: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}
.video-flag--off { color: var(--muted); border-style: dashed; }


.hidden-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px dashed #b3261e;
  color: #b3261e;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
